Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new Slack Connect APIs team.externalTeams.list and users.discoverableContacts.lookup #105

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/src/public-api-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export const getPublicAPIMethods = () => {
"stars.remove",
"team.accessLogs",
"team.billableInfo",
"team.externalTeams.list",
"team.info",
"team.integrationLogs",
"team.billing.info",
Expand All @@ -213,6 +214,7 @@ export const getPublicAPIMethods = () => {
"usergroups.users.update",
"users.conversations",
"users.deletePhoto",
"users.discoverableContacts.lookup",
"users.getPresence",
"users.identity",
"users.info",
Expand Down
2 changes: 2 additions & 0 deletions src/generated/method-types/api_method_types_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ Deno.test("SlackAPIMethodsType generated types", () => {
assertEquals(typeof client.team.accessLogs, "function");
assertEquals(typeof client.team.billableInfo, "function");
assertEquals(typeof client.team.billing.info, "function");
assertEquals(typeof client.team.externalTeams.list, "function");
assertEquals(typeof client.team.info, "function");
assertEquals(typeof client.team.integrationLogs, "function");
assertEquals(typeof client.team.preferences.list, "function");
Expand All @@ -246,6 +247,7 @@ Deno.test("SlackAPIMethodsType generated types", () => {
assertEquals(typeof client.usergroups.users.update, "function");
assertEquals(typeof client.users.conversations, "function");
assertEquals(typeof client.users.deletePhoto, "function");
assertEquals(typeof client.users.discoverableContacts.lookup, "function");
assertEquals(typeof client.users.getPresence, "function");
assertEquals(typeof client.users.identity, "function");
assertEquals(typeof client.users.info, "function");
Expand Down
8 changes: 7 additions & 1 deletion src/generated/method-types/team.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import type { SlackAPIMethod } from "../../types.ts";
import type {
SlackAPICursorPaginatedMethod,
SlackAPIMethod,
} from "../../types.ts";

export type TeamAPIType = {
accessLogs: SlackAPIMethod;
billableInfo: SlackAPIMethod;
billing: {
info: SlackAPIMethod;
};
externalTeams: {
list: SlackAPICursorPaginatedMethod;
};
info: SlackAPIMethod;
integrationLogs: SlackAPIMethod;
preferences: {
Expand Down
3 changes: 3 additions & 0 deletions src/generated/method-types/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import type {
export type UsersAPIType = {
conversations: SlackAPICursorPaginatedMethod;
deletePhoto: SlackAPIMethod;
discoverableContacts: {
lookup: SlackAPIMethod;
};
getPresence: SlackAPIMethod;
identity: SlackAPIMethod;
info: SlackAPIMethod;
Expand Down