@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +6 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +10 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +47 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts +1 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/admin.d.ts +264 -83
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +154 -149
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +7 -7
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -34
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -1
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +1 -1
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +5 -5
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -39
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +1 -1
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +28 -28
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +6 -6
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +2 -2
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +2 -2
- package/lib/services/slackbot.d.ts.map +1 -1
- package/lib/services/slackbot.js +1 -1
- package/lib/services/slackbot.js.map +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +73 -1
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +4 -4
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/package.json +6 -7
- package/src/credentials.ts +20 -15
- package/src/errors.ts +12 -1
- package/src/index.ts +0 -1
- package/src/protocol.ts +96 -86
- package/src/retry.ts +1 -2
- package/src/services/admin.ts +1523 -951
- package/src/services/agents.ts +23 -12
- package/src/services/api.ts +3 -2
- package/src/services/apps.ts +57 -34
- package/src/services/assistant.ts +17 -8
- package/src/services/auth.ts +7 -4
- package/src/services/blocks.ts +3 -2
- package/src/services/bookmarks.ts +9 -5
- package/src/services/bots.ts +3 -2
- package/src/services/calls.ts +13 -7
- package/src/services/canvases.ts +16 -9
- package/src/services/chat.ts +27 -14
- package/src/services/conversations.ts +62 -34
- package/src/services/dialog.ts +3 -2
- package/src/services/dnd.ts +11 -6
- package/src/services/emoji.ts +3 -2
- package/src/services/entity.ts +7 -4
- package/src/services/files.ts +32 -17
- package/src/services/functions.ts +17 -9
- package/src/services/lists.ts +25 -13
- package/src/services/migration.ts +3 -2
- package/src/services/oauth.ts +23 -17
- package/src/services/openid.ts +8 -6
- package/src/services/pins.ts +7 -4
- package/src/services/reactions.ts +9 -5
- package/src/services/reminders.ts +11 -6
- package/src/services/rtm.ts +5 -3
- package/src/services/search.ts +7 -4
- package/src/services/slackbot.ts +17 -10
- package/src/services/stars.ts +7 -4
- package/src/services/team.ts +20 -11
- package/src/services/tooling.ts +5 -4
- package/src/services/usergroups.ts +15 -8
- package/src/services/users.ts +136 -17
- package/src/services/views.ts +9 -5
- package/src/services/workflows.ts +21 -13
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
package/src/services/search.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -217,7 +217,8 @@ export const searchAll: API.OperationMethod<
|
|
|
217
217
|
> = /*@__PURE__*/ API.make(() => ({
|
|
218
218
|
input: __S(0, __c0, 0) as any as S.Schema<SearchAllRequest>,
|
|
219
219
|
output: __S(1, __c0, 1) as any as S.Schema<SearchAllResponse>,
|
|
220
|
-
errors: [
|
|
220
|
+
errors: [],
|
|
221
|
+
serviceErrors: SlackServiceErrors,
|
|
221
222
|
protocol: SlackProtocol,
|
|
222
223
|
retry: Retry.Retry,
|
|
223
224
|
telemetry: TELEMETRY,
|
|
@@ -234,7 +235,8 @@ export const searchFiles: API.OperationMethod<
|
|
|
234
235
|
> = /*@__PURE__*/ API.make(() => ({
|
|
235
236
|
input: __S(8, __c1, 0) as any as S.Schema<SearchFilesRequest>,
|
|
236
237
|
output: __S(11, __c1, 3) as any as S.Schema<SearchFilesResponse>,
|
|
237
|
-
errors: [
|
|
238
|
+
errors: [],
|
|
239
|
+
serviceErrors: SlackServiceErrors,
|
|
238
240
|
protocol: SlackProtocol,
|
|
239
241
|
retry: Retry.Retry,
|
|
240
242
|
telemetry: TELEMETRY,
|
|
@@ -251,7 +253,8 @@ export const searchMessages: API.OperationMethod<
|
|
|
251
253
|
> = /*@__PURE__*/ API.make(() => ({
|
|
252
254
|
input: __S(24, __c3, 0) as any as S.Schema<SearchMessagesRequest>,
|
|
253
255
|
output: __S(28, __c3, 4) as any as S.Schema<SearchMessagesResponse>,
|
|
254
|
-
errors: [
|
|
256
|
+
errors: [],
|
|
257
|
+
serviceErrors: SlackServiceErrors,
|
|
255
258
|
protocol: SlackProtocol,
|
|
256
259
|
retry: Retry.Retry,
|
|
257
260
|
telemetry: TELEMETRY,
|
package/src/services/slackbot.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { slackPaginate } from "../pagination.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
@@ -462,7 +462,8 @@ export const addSkillsLibrary: API.OperationMethod<
|
|
|
462
462
|
> = /*@__PURE__*/ API.make(() => ({
|
|
463
463
|
input: __S(0, __c0, 0) as any as S.Schema<AddSkillsLibraryRequest>,
|
|
464
464
|
output: __S(4, __c1, 0) as any as S.Schema<AddSkillsLibraryResponse>,
|
|
465
|
-
errors: [
|
|
465
|
+
errors: [],
|
|
466
|
+
serviceErrors: SlackServiceErrors,
|
|
466
467
|
protocol: SlackProtocol,
|
|
467
468
|
retry: Retry.Retry,
|
|
468
469
|
telemetry: TELEMETRY,
|
|
@@ -470,7 +471,7 @@ export const addSkillsLibrary: API.OperationMethod<
|
|
|
470
471
|
}));
|
|
471
472
|
|
|
472
473
|
export type CreateSkillError = SlackOpError;
|
|
473
|
-
/** Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The arguments are invalid, for example both or neither of `instructions` and `canvas_id` were sent. - `canvas_not_found` -- The canvas doesn't exist or the caller can't see it. - `not_canvas_owner` -- Only the canvas owner can turn it into a skill. - `is_a_template` -- Canvas templates can't be turned into skills. - `already_a_skill` -- The canvas is already a skill. Use `slackbot.skills.update` to change it. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `restricted_action` -- The caller isn't allowed to author skills. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_disabled_user_team` -- Canvases are disabled for the caller's team. - `free_teams_cannot_create_standalone_canvases` -- Free teams can't create standalone canvases. - `canvas_editing_locked` -- Another edit to the canvas is in progress. Retry the request. - `canvas_creation_failed` -- The skill's canvas couldn't be created. - `internal_error` -- The skill couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.create */
|
|
474
|
+
/** Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The arguments are invalid, for example both or neither of `instructions` and `canvas_id` were sent. - `canvas_not_found` -- The canvas doesn't exist or the caller can't see it. - `not_canvas_owner` -- Only the canvas owner can turn it into a skill. - `is_a_template` -- Canvas templates can't be turned into skills. - `already_a_skill` -- The canvas is already a skill. Use `slackbot.skills.update` to change it. - `category_inactive` -- `category` is a built-in category the org's admins turned off. Pick an active category or omit `category`. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `restricted_action` -- The caller isn't allowed to author skills. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_disabled_user_team` -- Canvases are disabled for the caller's team. - `free_teams_cannot_create_standalone_canvases` -- Free teams can't create standalone canvases. - `canvas_editing_locked` -- Another edit to the canvas is in progress. Retry the request. - `canvas_creation_failed` -- The skill's canvas couldn't be created. - `internal_error` -- The skill couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.create */
|
|
474
475
|
export const createSkill: API.OperationMethod<
|
|
475
476
|
CreateSkillRequest,
|
|
476
477
|
CreateSkillResponse,
|
|
@@ -479,7 +480,8 @@ export const createSkill: API.OperationMethod<
|
|
|
479
480
|
> = /*@__PURE__*/ API.make(() => ({
|
|
480
481
|
input: __S(8, __c2, 0) as any as S.Schema<CreateSkillRequest>,
|
|
481
482
|
output: __S(16, __c4, 0) as any as S.Schema<CreateSkillResponse>,
|
|
482
|
-
errors: [
|
|
483
|
+
errors: [],
|
|
484
|
+
serviceErrors: SlackServiceErrors,
|
|
483
485
|
protocol: SlackProtocol,
|
|
484
486
|
retry: Retry.Retry,
|
|
485
487
|
telemetry: TELEMETRY,
|
|
@@ -496,7 +498,8 @@ export const deleteSkill: API.OperationMethod<
|
|
|
496
498
|
> = /*@__PURE__*/ API.make(() => ({
|
|
497
499
|
input: __S(24, __c6, 0) as any as S.Schema<DeleteSkillRequest>,
|
|
498
500
|
output: __S(4, __c1, 0) as any as S.Schema<DeleteSkillResponse>,
|
|
499
|
-
errors: [
|
|
501
|
+
errors: [],
|
|
502
|
+
serviceErrors: SlackServiceErrors,
|
|
500
503
|
protocol: SlackProtocol,
|
|
501
504
|
retry: Retry.Retry,
|
|
502
505
|
telemetry: TELEMETRY,
|
|
@@ -515,7 +518,8 @@ export const listSkills: API.PaginatedOperationMethod<
|
|
|
515
518
|
() => ({
|
|
516
519
|
input: __S(28, __c7, 0) as any as S.Schema<ListSkillsRequest>,
|
|
517
520
|
output: __S(31, __c7, 3) as any as S.Schema<ListSkillsResponse>,
|
|
518
|
-
errors: [
|
|
521
|
+
errors: [],
|
|
522
|
+
serviceErrors: SlackServiceErrors,
|
|
519
523
|
protocol: SlackProtocol,
|
|
520
524
|
retry: Retry.Retry,
|
|
521
525
|
telemetry: TELEMETRY,
|
|
@@ -541,7 +545,8 @@ export const removeSkillsLibrary: API.OperationMethod<
|
|
|
541
545
|
> = /*@__PURE__*/ API.make(() => ({
|
|
542
546
|
input: __S(32, __c8, 0) as any as S.Schema<RemoveSkillsLibraryRequest>,
|
|
543
547
|
output: __S(4, __c1, 0) as any as S.Schema<RemoveSkillsLibraryResponse>,
|
|
544
|
-
errors: [
|
|
548
|
+
errors: [],
|
|
549
|
+
serviceErrors: SlackServiceErrors,
|
|
545
550
|
protocol: SlackProtocol,
|
|
546
551
|
retry: Retry.Retry,
|
|
547
552
|
telemetry: TELEMETRY,
|
|
@@ -558,7 +563,8 @@ export const skillsInfo: API.OperationMethod<
|
|
|
558
563
|
> = /*@__PURE__*/ API.make(() => ({
|
|
559
564
|
input: __S(36, __c9, 0) as any as S.Schema<SkillsInfoRequest>,
|
|
560
565
|
output: __S(16, __c4, 0) as any as S.Schema<SkillsInfoResponse>,
|
|
561
|
-
errors: [
|
|
566
|
+
errors: [],
|
|
567
|
+
serviceErrors: SlackServiceErrors,
|
|
562
568
|
protocol: SlackProtocol,
|
|
563
569
|
retry: Retry.Retry,
|
|
564
570
|
telemetry: TELEMETRY,
|
|
@@ -566,7 +572,7 @@ export const skillsInfo: API.OperationMethod<
|
|
|
566
572
|
}));
|
|
567
573
|
|
|
568
574
|
export type UpdateSkillError = SlackOpError;
|
|
569
|
-
/** Changes a Slackbot skill's instructions or metadata. Only the inputs you send are changed; a call that changes nothing succeeds without writing. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `method_not_supported_for_skill_type` -- Only canvas skills can be changed. - `restricted_action` -- The caller isn't allowed to change this skill. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_editing_locked` -- Another edit to the skill is in progress. Retry the request. - `canvas_editing_failed` -- The skill's instructions or display name couldn't be saved. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `internal_error` -- The skill's metadata couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.update */
|
|
575
|
+
/** Changes a Slackbot skill's instructions or metadata. Only the inputs you send are changed; a call that changes nothing succeeds without writing. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `method_not_supported_for_skill_type` -- Only canvas skills can be changed. - `restricted_action` -- The caller isn't allowed to change this skill. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_editing_locked` -- Another edit to the skill is in progress. Retry the request. - `canvas_editing_failed` -- The skill's instructions or display name couldn't be saved. - `category_inactive` -- `category` is a built-in category the org's admins turned off. Pick an active category, resend the skill's current one, or omit `category`. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `internal_error` -- The skill's metadata couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.update */
|
|
570
576
|
export const updateSkill: API.OperationMethod<
|
|
571
577
|
UpdateSkillRequest,
|
|
572
578
|
UpdateSkillResponse,
|
|
@@ -575,7 +581,8 @@ export const updateSkill: API.OperationMethod<
|
|
|
575
581
|
> = /*@__PURE__*/ API.make(() => ({
|
|
576
582
|
input: __S(40, __c10, 0) as any as S.Schema<UpdateSkillRequest>,
|
|
577
583
|
output: __S(16, __c4, 0) as any as S.Schema<UpdateSkillResponse>,
|
|
578
|
-
errors: [
|
|
584
|
+
errors: [],
|
|
585
|
+
serviceErrors: SlackServiceErrors,
|
|
579
586
|
protocol: SlackProtocol,
|
|
580
587
|
retry: Retry.Retry,
|
|
581
588
|
telemetry: TELEMETRY,
|
package/src/services/stars.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { slackPaginate } from "../pagination.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
@@ -132,7 +132,8 @@ export const addStar: API.OperationMethod<
|
|
|
132
132
|
> = /*@__PURE__*/ API.make(() => ({
|
|
133
133
|
input: __S(0, __c0, 0) as any as S.Schema<AddStarRequest>,
|
|
134
134
|
output: __S(8, __c1, 0) as any as S.Schema<AddStarResponse>,
|
|
135
|
-
errors: [
|
|
135
|
+
errors: [],
|
|
136
|
+
serviceErrors: SlackServiceErrors,
|
|
136
137
|
protocol: SlackProtocol,
|
|
137
138
|
retry: Retry.Retry,
|
|
138
139
|
telemetry: TELEMETRY,
|
|
@@ -151,7 +152,8 @@ export const listStars: API.PaginatedOperationMethod<
|
|
|
151
152
|
() => ({
|
|
152
153
|
input: __S(16, __c2, 0) as any as S.Schema<ListStarsRequest>,
|
|
153
154
|
output: __S(20, __c2, 4) as any as S.Schema<ListStarsResponse>,
|
|
154
|
-
errors: [
|
|
155
|
+
errors: [],
|
|
156
|
+
serviceErrors: SlackServiceErrors,
|
|
155
157
|
protocol: SlackProtocol,
|
|
156
158
|
retry: Retry.Retry,
|
|
157
159
|
telemetry: TELEMETRY,
|
|
@@ -177,7 +179,8 @@ export const removeStar: API.OperationMethod<
|
|
|
177
179
|
> = /*@__PURE__*/ API.make(() => ({
|
|
178
180
|
input: __S(24, __c3, 0) as any as S.Schema<RemoveStarRequest>,
|
|
179
181
|
output: __S(8, __c1, 0) as any as S.Schema<RemoveStarResponse>,
|
|
180
|
-
errors: [
|
|
182
|
+
errors: [],
|
|
183
|
+
serviceErrors: SlackServiceErrors,
|
|
181
184
|
protocol: SlackProtocol,
|
|
182
185
|
retry: Retry.Retry,
|
|
183
186
|
telemetry: TELEMETRY,
|
package/src/services/team.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { slackPaginate } from "../pagination.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
@@ -183,7 +183,7 @@ export interface ListExternalTeamsRequest {
|
|
|
183
183
|
sort_field?: ListExternalTeamsRequestSortField | (string & {}) | undefined;
|
|
184
184
|
/** Direction to sort in asc or desc */
|
|
185
185
|
sort_direction?: ListExternalTeamsRequestSortDirection | (string & {}) | undefined;
|
|
186
|
-
/** Filters connected orgs by Slack Connect pref override(s). Value can be: `approved_orgs_only` `allow_sc_file_uploads` `profile_visibility` `away_team_sc_invite_permissions` `accept_sc_invites` `sc_mpdm_to_private` `
|
|
186
|
+
/** Filters connected orgs by Slack Connect pref override(s). Value can be: `approved_orgs_only` `allow_sc_file_uploads` `profile_visibility` `away_team_sc_invite_permissions` `accept_sc_invites` `sc_mpdm_to_private` `external_awareness_context_bar` */
|
|
187
187
|
slack_connect_pref_filter?: ListExternalTeamsRequestSlackConnectPrefFilterList | undefined;
|
|
188
188
|
/** Shows connected orgs which are connected on a specified encoded workspace ID */
|
|
189
189
|
workspace_filter?: ListExternalTeamsRequestWorkspaceFilterList | undefined;
|
|
@@ -295,7 +295,8 @@ export const accessLogs: API.PaginatedOperationMethod<
|
|
|
295
295
|
() => ({
|
|
296
296
|
input: __S(1, __c0, 1) as any as S.Schema<AccessLogsRequest>,
|
|
297
297
|
output: __S(5, __c0, 5) as any as S.Schema<AccessLogsResponse>,
|
|
298
|
-
errors: [
|
|
298
|
+
errors: [],
|
|
299
|
+
serviceErrors: SlackServiceErrors,
|
|
299
300
|
protocol: SlackProtocol,
|
|
300
301
|
retry: Retry.Retry,
|
|
301
302
|
telemetry: TELEMETRY,
|
|
@@ -321,7 +322,8 @@ export const billableInfo: API.OperationMethod<
|
|
|
321
322
|
> = /*@__PURE__*/ API.make(() => ({
|
|
322
323
|
input: __S(32, __c2, 0) as any as S.Schema<BillableInfoRequest>,
|
|
323
324
|
output: __S(33, __c2, 1) as any as S.Schema<BillableInfoResponse>,
|
|
324
|
-
errors: [
|
|
325
|
+
errors: [],
|
|
326
|
+
serviceErrors: SlackServiceErrors,
|
|
325
327
|
protocol: SlackProtocol,
|
|
326
328
|
retry: Retry.Retry,
|
|
327
329
|
telemetry: TELEMETRY,
|
|
@@ -338,7 +340,8 @@ export const billingInfo: API.OperationMethod<
|
|
|
338
340
|
> = /*@__PURE__*/ API.make(() => ({
|
|
339
341
|
input: __S(64, __c4, 0) as any as S.Schema<BillingInfoRequest>,
|
|
340
342
|
output: __S(65, __c4, 1) as any as S.Schema<BillingInfoResponse>,
|
|
341
|
-
errors: [
|
|
343
|
+
errors: [],
|
|
344
|
+
serviceErrors: SlackServiceErrors,
|
|
342
345
|
protocol: SlackProtocol,
|
|
343
346
|
retry: Retry.Retry,
|
|
344
347
|
telemetry: TELEMETRY,
|
|
@@ -355,7 +358,8 @@ export const disconnectExternalTeam: API.OperationMethod<
|
|
|
355
358
|
> = /*@__PURE__*/ API.make(() => ({
|
|
356
359
|
input: __S(80, __c5, 0) as any as S.Schema<DisconnectExternalTeamRequest>,
|
|
357
360
|
output: __S(81, __c5, 1) as any as S.Schema<DisconnectExternalTeamResponse>,
|
|
358
|
-
errors: [
|
|
361
|
+
errors: [],
|
|
362
|
+
serviceErrors: SlackServiceErrors,
|
|
359
363
|
protocol: SlackProtocol,
|
|
360
364
|
retry: Retry.Retry,
|
|
361
365
|
telemetry: TELEMETRY,
|
|
@@ -372,7 +376,8 @@ export const getProfile: API.OperationMethod<
|
|
|
372
376
|
> = /*@__PURE__*/ API.make(() => ({
|
|
373
377
|
input: __S(96, __c6, 0) as any as S.Schema<GetProfileRequest>,
|
|
374
378
|
output: __S(99, __c6, 3) as any as S.Schema<GetProfileResponse>,
|
|
375
|
-
errors: [
|
|
379
|
+
errors: [],
|
|
380
|
+
serviceErrors: SlackServiceErrors,
|
|
376
381
|
protocol: SlackProtocol,
|
|
377
382
|
retry: Retry.Retry,
|
|
378
383
|
telemetry: TELEMETRY,
|
|
@@ -389,7 +394,8 @@ export const integrationLogs: API.OperationMethod<
|
|
|
389
394
|
> = /*@__PURE__*/ API.make(() => ({
|
|
390
395
|
input: __S(112, __c7, 0) as any as S.Schema<IntegrationLogsRequest>,
|
|
391
396
|
output: __S(114, __c7, 2) as any as S.Schema<IntegrationLogsResponse>,
|
|
392
|
-
errors: [
|
|
397
|
+
errors: [],
|
|
398
|
+
serviceErrors: SlackServiceErrors,
|
|
393
399
|
protocol: SlackProtocol,
|
|
394
400
|
retry: Retry.Retry,
|
|
395
401
|
telemetry: TELEMETRY,
|
|
@@ -408,7 +414,8 @@ export const listExternalTeams: API.PaginatedOperationMethod<
|
|
|
408
414
|
() => ({
|
|
409
415
|
input: __S(130, __c8, 2) as any as S.Schema<ListExternalTeamsRequest>,
|
|
410
416
|
output: __S(138, __c8, 10) as any as S.Schema<ListExternalTeamsResponse>,
|
|
411
|
-
errors: [
|
|
417
|
+
errors: [],
|
|
418
|
+
serviceErrors: SlackServiceErrors,
|
|
412
419
|
protocol: SlackProtocol,
|
|
413
420
|
retry: Retry.Retry,
|
|
414
421
|
telemetry: TELEMETRY,
|
|
@@ -434,7 +441,8 @@ export const listPreferences: API.OperationMethod<
|
|
|
434
441
|
> = /*@__PURE__*/ API.make(() => ({
|
|
435
442
|
input: __S(144, __c9, 0) as any as S.Schema<ListPreferencesRequest>,
|
|
436
443
|
output: __S(145, __c9, 1) as any as S.Schema<ListPreferencesResponse>,
|
|
437
|
-
errors: [
|
|
444
|
+
errors: [],
|
|
445
|
+
serviceErrors: SlackServiceErrors,
|
|
438
446
|
protocol: SlackProtocol,
|
|
439
447
|
retry: Retry.Retry,
|
|
440
448
|
telemetry: TELEMETRY,
|
|
@@ -451,7 +459,8 @@ export const teamInfo: API.OperationMethod<
|
|
|
451
459
|
> = /*@__PURE__*/ API.make(() => ({
|
|
452
460
|
input: __S(160, __c10, 0) as any as S.Schema<TeamInfoRequest>,
|
|
453
461
|
output: __S(161, __c10, 1) as any as S.Schema<TeamInfoResponse>,
|
|
454
|
-
errors: [
|
|
462
|
+
errors: [],
|
|
463
|
+
serviceErrors: SlackServiceErrors,
|
|
455
464
|
protocol: SlackProtocol,
|
|
456
465
|
retry: Retry.Retry,
|
|
457
466
|
telemetry: TELEMETRY,
|
package/src/services/tooling.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import type * as Redacted from "effect/Redacted";
|
|
6
|
-
import {
|
|
6
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
9
9
|
import * as T from "../traits.ts";
|
|
@@ -33,7 +33,7 @@ export interface RotateTokenResponse {
|
|
|
33
33
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
34
34
|
ok: boolean;
|
|
35
35
|
/** The app configuration token used to access App Manifest APIs */
|
|
36
|
-
token: string
|
|
36
|
+
token: string | Redacted.Redacted<string>;
|
|
37
37
|
/** Refresh token for this credential */
|
|
38
38
|
refresh_token: string | Redacted.Redacted<string>;
|
|
39
39
|
/** ID of the team associated with the access token. */
|
|
@@ -55,7 +55,8 @@ export const rotateToken: API.OperationMethod<
|
|
|
55
55
|
> = /*@__PURE__*/ API.make(() => ({
|
|
56
56
|
input: __S(0, __c0, 0) as any as S.Schema<RotateTokenRequest>,
|
|
57
57
|
output: __S(1, __c0, 1) as any as S.Schema<RotateTokenResponse>,
|
|
58
|
-
errors: [
|
|
58
|
+
errors: [],
|
|
59
|
+
serviceErrors: SlackServiceErrors,
|
|
59
60
|
protocol: SlackProtocol,
|
|
60
61
|
retry: Retry.Retry,
|
|
61
62
|
telemetry: TELEMETRY,
|
|
@@ -82,7 +83,7 @@ function __c0(j: number): any {
|
|
|
82
83
|
return S.suspend(() =>
|
|
83
84
|
S.Struct({
|
|
84
85
|
ok: S.Boolean,
|
|
85
|
-
token: S.String,
|
|
86
|
+
token: S.String.pipe(T.SensitiveValue({})),
|
|
86
87
|
refresh_token: S.String.pipe(T.SensitiveValue({})),
|
|
87
88
|
team_id: S.String,
|
|
88
89
|
user_id: S.String,
|
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -173,7 +173,8 @@ export const createUsergroup: API.OperationMethod<
|
|
|
173
173
|
> = /*@__PURE__*/ API.make(() => ({
|
|
174
174
|
input: __S(0, __c0, 0) as any as S.Schema<CreateUsergroupRequest>,
|
|
175
175
|
output: __S(2, __c1, 0) as any as S.Schema<CreateUsergroupResponse>,
|
|
176
|
-
errors: [
|
|
176
|
+
errors: [],
|
|
177
|
+
serviceErrors: SlackServiceErrors,
|
|
177
178
|
protocol: SlackProtocol,
|
|
178
179
|
retry: Retry.Retry,
|
|
179
180
|
telemetry: TELEMETRY,
|
|
@@ -190,7 +191,8 @@ export const disableUsergroup: API.OperationMethod<
|
|
|
190
191
|
> = /*@__PURE__*/ API.make(() => ({
|
|
191
192
|
input: __S(6, __c3, 0) as any as S.Schema<DisableUsergroupRequest>,
|
|
192
193
|
output: __S(2, __c1, 0) as any as S.Schema<DisableUsergroupResponse>,
|
|
193
|
-
errors: [
|
|
194
|
+
errors: [],
|
|
195
|
+
serviceErrors: SlackServiceErrors,
|
|
194
196
|
protocol: SlackProtocol,
|
|
195
197
|
retry: Retry.Retry,
|
|
196
198
|
telemetry: TELEMETRY,
|
|
@@ -207,7 +209,8 @@ export const enableUsergroup: API.OperationMethod<
|
|
|
207
209
|
> = /*@__PURE__*/ API.make(() => ({
|
|
208
210
|
input: __S(8, __c4, 0) as any as S.Schema<EnableUsergroupRequest>,
|
|
209
211
|
output: __S(2, __c1, 0) as any as S.Schema<EnableUsergroupResponse>,
|
|
210
|
-
errors: [
|
|
212
|
+
errors: [],
|
|
213
|
+
serviceErrors: SlackServiceErrors,
|
|
211
214
|
protocol: SlackProtocol,
|
|
212
215
|
retry: Retry.Retry,
|
|
213
216
|
telemetry: TELEMETRY,
|
|
@@ -224,7 +227,8 @@ export const listUsergroups: API.OperationMethod<
|
|
|
224
227
|
> = /*@__PURE__*/ API.make(() => ({
|
|
225
228
|
input: __S(10, __c5, 0) as any as S.Schema<ListUsergroupsRequest>,
|
|
226
229
|
output: __S(11, __c5, 1) as any as S.Schema<ListUsergroupsResponse>,
|
|
227
|
-
errors: [
|
|
230
|
+
errors: [],
|
|
231
|
+
serviceErrors: SlackServiceErrors,
|
|
228
232
|
protocol: SlackProtocol,
|
|
229
233
|
retry: Retry.Retry,
|
|
230
234
|
telemetry: TELEMETRY,
|
|
@@ -241,7 +245,8 @@ export const listUsers: API.OperationMethod<
|
|
|
241
245
|
> = /*@__PURE__*/ API.make(() => ({
|
|
242
246
|
input: __S(14, __c7, 0) as any as S.Schema<ListUsersRequest>,
|
|
243
247
|
output: __S(15, __c7, 1) as any as S.Schema<ListUsersResponse>,
|
|
244
|
-
errors: [
|
|
248
|
+
errors: [],
|
|
249
|
+
serviceErrors: SlackServiceErrors,
|
|
245
250
|
protocol: SlackProtocol,
|
|
246
251
|
retry: Retry.Retry,
|
|
247
252
|
telemetry: TELEMETRY,
|
|
@@ -258,7 +263,8 @@ export const updateUser: API.OperationMethod<
|
|
|
258
263
|
> = /*@__PURE__*/ API.make(() => ({
|
|
259
264
|
input: __S(16, __c8, 0) as any as S.Schema<UpdateUserRequest>,
|
|
260
265
|
output: __S(2, __c1, 0) as any as S.Schema<UpdateUserResponse>,
|
|
261
|
-
errors: [
|
|
266
|
+
errors: [],
|
|
267
|
+
serviceErrors: SlackServiceErrors,
|
|
262
268
|
protocol: SlackProtocol,
|
|
263
269
|
retry: Retry.Retry,
|
|
264
270
|
telemetry: TELEMETRY,
|
|
@@ -275,7 +281,8 @@ export const updateUsergroup: API.OperationMethod<
|
|
|
275
281
|
> = /*@__PURE__*/ API.make(() => ({
|
|
276
282
|
input: __S(18, __c9, 0) as any as S.Schema<UpdateUsergroupRequest>,
|
|
277
283
|
output: __S(19, __c9, 1) as any as S.Schema<UpdateUsergroupResponse>,
|
|
278
|
-
errors: [
|
|
284
|
+
errors: [],
|
|
285
|
+
serviceErrors: SlackServiceErrors,
|
|
279
286
|
protocol: SlackProtocol,
|
|
280
287
|
retry: Retry.Retry,
|
|
281
288
|
telemetry: TELEMETRY,
|
package/src/services/users.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { slackPaginate } from "../pagination.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
@@ -50,10 +50,85 @@ export interface GetProfileRequest {
|
|
|
50
50
|
/** User to retrieve profile info for */
|
|
51
51
|
user?: string | undefined;
|
|
52
52
|
}
|
|
53
|
+
export interface GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoItem {
|
|
54
|
+
emoji_name: string;
|
|
55
|
+
display_alias?: string | undefined;
|
|
56
|
+
display_url?: string | undefined;
|
|
57
|
+
unicode?: string | undefined;
|
|
58
|
+
}
|
|
59
|
+
export type GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoList =
|
|
60
|
+
Array<GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoItem>;
|
|
61
|
+
/** The status fields, title and pronouns are set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
62
|
+
export interface GetProfileResponseProfileCase1Profile {
|
|
63
|
+
avatar_hash: string;
|
|
64
|
+
image_original?: string | undefined;
|
|
65
|
+
image_24?: string | undefined;
|
|
66
|
+
image_32?: string | undefined;
|
|
67
|
+
image_48?: string | undefined;
|
|
68
|
+
image_72?: string | undefined;
|
|
69
|
+
image_192?: string | undefined;
|
|
70
|
+
image_512?: string | undefined;
|
|
71
|
+
image_1024?: string | undefined;
|
|
72
|
+
first_name?: string | undefined;
|
|
73
|
+
last_name?: string | undefined;
|
|
74
|
+
/** Set only when the stranger's workspace allows displaying email addresses to external users. */
|
|
75
|
+
email?: string | undefined;
|
|
76
|
+
real_name: string;
|
|
77
|
+
display_name: string;
|
|
78
|
+
real_name_normalized: string;
|
|
79
|
+
display_name_normalized: string;
|
|
80
|
+
team?: string | undefined;
|
|
81
|
+
bot_id?: string | undefined;
|
|
82
|
+
api_app_id?: string | undefined;
|
|
83
|
+
status_text?: string | undefined;
|
|
84
|
+
status_text_canonical?: unknown | undefined;
|
|
85
|
+
status_emoji?: string | undefined;
|
|
86
|
+
status_emoji_display_info?:
|
|
87
|
+
| GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoList
|
|
88
|
+
| undefined;
|
|
89
|
+
status_expiration?: number | undefined;
|
|
90
|
+
status_clear_on_focus_end?: boolean | undefined;
|
|
91
|
+
title?: string | undefined;
|
|
92
|
+
pronouns?: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
/** A stranger: a user a guest can't see in full. */
|
|
95
|
+
export interface GetProfileResponseProfileCase1 {
|
|
96
|
+
id: string;
|
|
97
|
+
team_id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
color: string;
|
|
100
|
+
is_bot: boolean;
|
|
101
|
+
is_app_user: boolean;
|
|
102
|
+
/** Set when the user is deactivated or disconnected. */
|
|
103
|
+
deleted?: boolean | undefined;
|
|
104
|
+
/** Set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
105
|
+
tz?: string | undefined;
|
|
106
|
+
/** Set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
107
|
+
tz_label?: string | undefined;
|
|
108
|
+
/** Set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
109
|
+
tz_offset?: number | undefined;
|
|
110
|
+
/** The status fields, title and pronouns are set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
111
|
+
profile: GetProfileResponseProfileCase1Profile;
|
|
112
|
+
is_stranger: boolean;
|
|
113
|
+
updated: number;
|
|
114
|
+
is_workflow_bot?: boolean | undefined;
|
|
115
|
+
is_connector_bot?: boolean | undefined;
|
|
116
|
+
is_agentforce_bot?: boolean | undefined;
|
|
117
|
+
is_sidekick_bot?: boolean | undefined;
|
|
118
|
+
agent_status?: unknown | undefined;
|
|
119
|
+
app_acl_type?: unknown | undefined;
|
|
120
|
+
is_ai_app?: boolean | undefined;
|
|
121
|
+
is_migrated_dummy_quip_user?: boolean | undefined;
|
|
122
|
+
who_can_share_contact_card: string;
|
|
123
|
+
is_profile_only_user?: boolean | undefined;
|
|
124
|
+
}
|
|
125
|
+
/** The user's profile. When a guest looks up a user they can't see in full, this is the stranger's formatted user instead, with a limited profile under `profile`. */
|
|
126
|
+
export type GetProfileResponseProfile = unknown | GetProfileResponseProfileCase1;
|
|
53
127
|
export interface GetProfileResponse {
|
|
54
128
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
55
129
|
ok: boolean;
|
|
56
|
-
profile
|
|
130
|
+
/** The user's profile. When a guest looks up a user they can't see in full, this is the stranger's formatted user instead, with a limited profile under `profile`. */
|
|
131
|
+
profile: GetProfileResponseProfile;
|
|
57
132
|
}
|
|
58
133
|
export interface ListUsersRequest {
|
|
59
134
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
@@ -199,7 +274,8 @@ export const deletePhoto: API.OperationMethod<
|
|
|
199
274
|
> = /*@__PURE__*/ API.make(() => ({
|
|
200
275
|
input: __S(0, __c0, 0) as any as S.Schema<DeletePhotoRequest>,
|
|
201
276
|
output: __S(4, __c1, 0) as any as S.Schema<DeletePhotoResponse>,
|
|
202
|
-
errors: [
|
|
277
|
+
errors: [],
|
|
278
|
+
serviceErrors: SlackServiceErrors,
|
|
203
279
|
protocol: SlackProtocol,
|
|
204
280
|
retry: Retry.Retry,
|
|
205
281
|
telemetry: TELEMETRY,
|
|
@@ -216,7 +292,8 @@ export const getPresence: API.OperationMethod<
|
|
|
216
292
|
> = /*@__PURE__*/ API.make(() => ({
|
|
217
293
|
input: __S(8, __c2, 0) as any as S.Schema<GetPresenceRequest>,
|
|
218
294
|
output: __S(9, __c2, 1) as any as S.Schema<GetPresenceResponse>,
|
|
219
|
-
errors: [
|
|
295
|
+
errors: [],
|
|
296
|
+
serviceErrors: SlackServiceErrors,
|
|
220
297
|
protocol: SlackProtocol,
|
|
221
298
|
retry: Retry.Retry,
|
|
222
299
|
telemetry: TELEMETRY,
|
|
@@ -232,8 +309,9 @@ export const getProfile: API.OperationMethod<
|
|
|
232
309
|
SlackOpContext
|
|
233
310
|
> = /*@__PURE__*/ API.make(() => ({
|
|
234
311
|
input: __S(24, __c6, 0) as any as S.Schema<GetProfileRequest>,
|
|
235
|
-
output: __S(
|
|
236
|
-
errors: [
|
|
312
|
+
output: __S(26, __c6, 2) as any as S.Schema<GetProfileResponse>,
|
|
313
|
+
errors: [],
|
|
314
|
+
serviceErrors: SlackServiceErrors,
|
|
237
315
|
protocol: SlackProtocol,
|
|
238
316
|
retry: Retry.Retry,
|
|
239
317
|
telemetry: TELEMETRY,
|
|
@@ -252,7 +330,8 @@ export const listUsers: API.PaginatedOperationMethod<
|
|
|
252
330
|
() => ({
|
|
253
331
|
input: __S(28, __c7, 0) as any as S.Schema<ListUsersRequest>,
|
|
254
332
|
output: __S(29, __c7, 1) as any as S.Schema<ListUsersResponse>,
|
|
255
|
-
errors: [
|
|
333
|
+
errors: [],
|
|
334
|
+
serviceErrors: SlackServiceErrors,
|
|
256
335
|
protocol: SlackProtocol,
|
|
257
336
|
retry: Retry.Retry,
|
|
258
337
|
telemetry: TELEMETRY,
|
|
@@ -278,7 +357,8 @@ export const lookupByEmail: API.OperationMethod<
|
|
|
278
357
|
> = /*@__PURE__*/ API.make(() => ({
|
|
279
358
|
input: __S(40, __c10, 0) as any as S.Schema<LookupByEmailRequest>,
|
|
280
359
|
output: __S(41, __c10, 1) as any as S.Schema<LookupByEmailResponse>,
|
|
281
|
-
errors: [
|
|
360
|
+
errors: [],
|
|
361
|
+
serviceErrors: SlackServiceErrors,
|
|
282
362
|
protocol: SlackProtocol,
|
|
283
363
|
retry: Retry.Retry,
|
|
284
364
|
telemetry: TELEMETRY,
|
|
@@ -295,7 +375,8 @@ export const lookupDiscoverableContact: API.OperationMethod<
|
|
|
295
375
|
> = /*@__PURE__*/ API.make(() => ({
|
|
296
376
|
input: __S(44, __c11, 0) as any as S.Schema<LookupDiscoverableContactRequest>,
|
|
297
377
|
output: __S(45, __c11, 1) as any as S.Schema<LookupDiscoverableContactResponse>,
|
|
298
|
-
errors: [
|
|
378
|
+
errors: [],
|
|
379
|
+
serviceErrors: SlackServiceErrors,
|
|
299
380
|
protocol: SlackProtocol,
|
|
300
381
|
retry: Retry.Retry,
|
|
301
382
|
telemetry: TELEMETRY,
|
|
@@ -312,7 +393,8 @@ export const setActive: API.OperationMethod<
|
|
|
312
393
|
> = /*@__PURE__*/ API.make(() => ({
|
|
313
394
|
input: __S(48, __c12, 0) as any as S.Schema<SetActiveRequest>,
|
|
314
395
|
output: __S(4, __c1, 0) as any as S.Schema<SetActiveResponse>,
|
|
315
|
-
errors: [
|
|
396
|
+
errors: [],
|
|
397
|
+
serviceErrors: SlackServiceErrors,
|
|
316
398
|
protocol: SlackProtocol,
|
|
317
399
|
retry: Retry.Retry,
|
|
318
400
|
telemetry: TELEMETRY,
|
|
@@ -329,7 +411,8 @@ export const setPhoto: API.OperationMethod<
|
|
|
329
411
|
> = /*@__PURE__*/ API.make(() => ({
|
|
330
412
|
input: __S(52, __c13, 0) as any as S.Schema<SetPhotoRequest>,
|
|
331
413
|
output: __S(54, __c13, 2) as any as S.Schema<SetPhotoResponse>,
|
|
332
|
-
errors: [
|
|
414
|
+
errors: [],
|
|
415
|
+
serviceErrors: SlackServiceErrors,
|
|
333
416
|
protocol: SlackProtocol,
|
|
334
417
|
retry: Retry.Retry,
|
|
335
418
|
telemetry: TELEMETRY,
|
|
@@ -346,7 +429,8 @@ export const setPresence: API.OperationMethod<
|
|
|
346
429
|
> = /*@__PURE__*/ API.make(() => ({
|
|
347
430
|
input: __S(56, __c14, 0) as any as S.Schema<SetPresenceRequest>,
|
|
348
431
|
output: __S(4, __c1, 0) as any as S.Schema<SetPresenceResponse>,
|
|
349
|
-
errors: [
|
|
432
|
+
errors: [],
|
|
433
|
+
serviceErrors: SlackServiceErrors,
|
|
350
434
|
protocol: SlackProtocol,
|
|
351
435
|
retry: Retry.Retry,
|
|
352
436
|
telemetry: TELEMETRY,
|
|
@@ -363,7 +447,8 @@ export const setProfile: API.OperationMethod<
|
|
|
363
447
|
> = /*@__PURE__*/ API.make(() => ({
|
|
364
448
|
input: __S(60, __c15, 0) as any as S.Schema<SetProfileRequest>,
|
|
365
449
|
output: __S(61, __c15, 1) as any as S.Schema<SetProfileResponse>,
|
|
366
|
-
errors: [
|
|
450
|
+
errors: [],
|
|
451
|
+
serviceErrors: SlackServiceErrors,
|
|
367
452
|
protocol: SlackProtocol,
|
|
368
453
|
retry: Retry.Retry,
|
|
369
454
|
telemetry: TELEMETRY,
|
|
@@ -382,7 +467,8 @@ export const usersConversations: API.PaginatedOperationMethod<
|
|
|
382
467
|
() => ({
|
|
383
468
|
input: __S(12, __c3, 0) as any as S.Schema<UsersConversationsRequest>,
|
|
384
469
|
output: __S(13, __c3, 1) as any as S.Schema<UsersConversationsResponse>,
|
|
385
|
-
errors: [
|
|
470
|
+
errors: [],
|
|
471
|
+
serviceErrors: SlackServiceErrors,
|
|
386
472
|
protocol: SlackProtocol,
|
|
387
473
|
retry: Retry.Retry,
|
|
388
474
|
telemetry: TELEMETRY,
|
|
@@ -408,7 +494,8 @@ export const usersIdentity: API.OperationMethod<
|
|
|
408
494
|
> = /*@__PURE__*/ API.make(() => ({
|
|
409
495
|
input: __S(16, __c4, 0) as any as S.Schema<UsersIdentityRequest>,
|
|
410
496
|
output: __S(4, __c1, 0) as any as S.Schema<UsersIdentityResponse>,
|
|
411
|
-
errors: [
|
|
497
|
+
errors: [],
|
|
498
|
+
serviceErrors: SlackServiceErrors,
|
|
412
499
|
protocol: SlackProtocol,
|
|
413
500
|
retry: Retry.Retry,
|
|
414
501
|
telemetry: TELEMETRY,
|
|
@@ -425,7 +512,8 @@ export const usersInfo: API.OperationMethod<
|
|
|
425
512
|
> = /*@__PURE__*/ API.make(() => ({
|
|
426
513
|
input: __S(20, __c5, 0) as any as S.Schema<UsersInfoRequest>,
|
|
427
514
|
output: __S(21, __c5, 1) as any as S.Schema<UsersInfoResponse>,
|
|
428
|
-
errors: [
|
|
515
|
+
errors: [],
|
|
516
|
+
serviceErrors: SlackServiceErrors,
|
|
429
517
|
protocol: SlackProtocol,
|
|
430
518
|
retry: Retry.Retry,
|
|
431
519
|
telemetry: TELEMETRY,
|
|
@@ -534,10 +622,41 @@ function __c6(j: number): any {
|
|
|
534
622
|
}).pipe(T.Http({ method: "GET", uri: "/users.profile.get", code: 200 })),
|
|
535
623
|
).annotate({ identifier: "GetProfileRequest" });
|
|
536
624
|
case 1:
|
|
625
|
+
return S.Unknown.pipe(
|
|
626
|
+
/*@__PURE__*/ T.UnionCases([
|
|
627
|
+
[],
|
|
628
|
+
[
|
|
629
|
+
"id",
|
|
630
|
+
"team_id",
|
|
631
|
+
"name",
|
|
632
|
+
"color",
|
|
633
|
+
"is_bot",
|
|
634
|
+
"is_app_user",
|
|
635
|
+
"deleted",
|
|
636
|
+
"tz",
|
|
637
|
+
"tz_label",
|
|
638
|
+
"tz_offset",
|
|
639
|
+
"profile",
|
|
640
|
+
"is_stranger",
|
|
641
|
+
"updated",
|
|
642
|
+
"is_workflow_bot",
|
|
643
|
+
"is_connector_bot",
|
|
644
|
+
"is_agentforce_bot",
|
|
645
|
+
"is_sidekick_bot",
|
|
646
|
+
"agent_status",
|
|
647
|
+
"app_acl_type",
|
|
648
|
+
"is_ai_app",
|
|
649
|
+
"is_migrated_dummy_quip_user",
|
|
650
|
+
"who_can_share_contact_card",
|
|
651
|
+
"is_profile_only_user",
|
|
652
|
+
],
|
|
653
|
+
]),
|
|
654
|
+
);
|
|
655
|
+
case 2:
|
|
537
656
|
return S.suspend(() =>
|
|
538
657
|
S.Struct({
|
|
539
658
|
ok: S.Boolean,
|
|
540
|
-
profile:
|
|
659
|
+
profile: __S(25, __c6, 1),
|
|
541
660
|
}),
|
|
542
661
|
).annotate({ identifier: "GetProfileResponse" });
|
|
543
662
|
}
|