Skip to content

Commit

Permalink
feat: new Slack Connect APIs team.externalTeams.list and `users.dis…
Browse files Browse the repository at this point in the history
…coverableContacts.lookup`. (#105)
  • Loading branch information
Fil Maj authored Jun 18, 2024
1 parent 383c400 commit dc8772a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
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

0 comments on commit dc8772a

Please sign in to comment.