From 3404d34d63288bb125160e1c284ba231521946f6 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Tue, 18 Jun 2024 12:25:53 -0400 Subject: [PATCH] feat: new Slack Connect APIs `team.externalTeams.list` and `users.discoverableContacts.lookup`. --- scripts/src/public-api-methods.ts | 2 ++ src/generated/method-types/api_method_types_test.ts | 2 ++ src/generated/method-types/team.ts | 8 +++++++- src/generated/method-types/users.ts | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/src/public-api-methods.ts b/scripts/src/public-api-methods.ts index f1c8c66..fe14a05 100644 --- a/scripts/src/public-api-methods.ts +++ b/scripts/src/public-api-methods.ts @@ -198,6 +198,7 @@ export const getPublicAPIMethods = () => { "stars.remove", "team.accessLogs", "team.billableInfo", + "team.externalTeams.list", "team.info", "team.integrationLogs", "team.billing.info", @@ -213,6 +214,7 @@ export const getPublicAPIMethods = () => { "usergroups.users.update", "users.conversations", "users.deletePhoto", + "users.discoverableContacts.lookup", "users.getPresence", "users.identity", "users.info", diff --git a/src/generated/method-types/api_method_types_test.ts b/src/generated/method-types/api_method_types_test.ts index 318adfc..220ccef 100644 --- a/src/generated/method-types/api_method_types_test.ts +++ b/src/generated/method-types/api_method_types_test.ts @@ -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"); @@ -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"); diff --git a/src/generated/method-types/team.ts b/src/generated/method-types/team.ts index 7ace995..c25f6d7 100644 --- a/src/generated/method-types/team.ts +++ b/src/generated/method-types/team.ts @@ -1,4 +1,7 @@ -import type { SlackAPIMethod } from "../../types.ts"; +import type { + SlackAPICursorPaginatedMethod, + SlackAPIMethod, +} from "../../types.ts"; export type TeamAPIType = { accessLogs: SlackAPIMethod; @@ -6,6 +9,9 @@ export type TeamAPIType = { billing: { info: SlackAPIMethod; }; + externalTeams: { + list: SlackAPICursorPaginatedMethod; + }; info: SlackAPIMethod; integrationLogs: SlackAPIMethod; preferences: { diff --git a/src/generated/method-types/users.ts b/src/generated/method-types/users.ts index 76cb12f..2fb66e1 100644 --- a/src/generated/method-types/users.ts +++ b/src/generated/method-types/users.ts @@ -6,6 +6,9 @@ import type { export type UsersAPIType = { conversations: SlackAPICursorPaginatedMethod; deletePhoto: SlackAPIMethod; + discoverableContacts: { + lookup: SlackAPIMethod; + }; getPresence: SlackAPIMethod; identity: SlackAPIMethod; info: SlackAPIMethod;