Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Jul 15, 2025

Summary

This PR adds the following API methods to @slack/web-api:

Preview

Examples of these methods with placeholder values can be found below:

const response = await client.admin.conversations.createForObjects({
  object_id: "0019000000DmehKAAR",
  salesforce_org_id: "0019000000DmehKAAR",
  invite_object_team: false,
});
const response = await client.admin.conversations.linkObjects({
  channel: "C0123456789",
  record_id: "0019000000DmehKAAR",
  salesforce_org_id: "0019000000DmehKAAR",
});
const response = await client.admin.conversations.unlinkObjects({
  channel: "C0123456789",
  new_name: "example-",
});

Requirements

@zimeg zimeg added this to the [email protected] milestone Jul 15, 2025
@zimeg zimeg self-assigned this Jul 15, 2025
@zimeg zimeg added semver:minor enhancement M-T: A feature request for new functionality pkg:web-api applies to `@slack/web-api` labels Jul 15, 2025
@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.71%. Comparing base (74a47aa) to head (24636cd).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2300      +/-   ##
==========================================
+ Coverage   92.69%   92.71%   +0.02%     
==========================================
  Files          38       38              
  Lines       10609    10639      +30     
  Branches      683      683              
==========================================
+ Hits         9834     9864      +30     
  Misses        763      763              
  Partials       12       12              
Flag Coverage Δ
cli-hooks 95.23% <ø> (ø)
cli-test 94.74% <ø> (ø)
oauth 77.39% <ø> (ø)
socket-mode 61.87% <ø> (ø)
web-api 97.95% <100.00%> (+<0.01%) ⬆️
webhook 96.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member Author

@zimeg zimeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Leaving a quick TODO comment!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoping to generate these responses before review 🙏 ✨

scripts/generate-web-api-types.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality pkg:web-api applies to `@slack/web-api` semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants