@distilled.cloud/slack 1.0.0-rc.19 → 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
|
@@ -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";
|
|
@@ -509,7 +509,8 @@ export const acceptSharedInvite: API.OperationMethod<
|
|
|
509
509
|
> = /*@__PURE__*/ API.make(() => ({
|
|
510
510
|
input: __S(0, __c0, 0) as any as S.Schema<AcceptSharedInviteRequest>,
|
|
511
511
|
output: __S(1, __c0, 1) as any as S.Schema<AcceptSharedInviteResponse>,
|
|
512
|
-
errors: [
|
|
512
|
+
errors: [],
|
|
513
|
+
serviceErrors: SlackServiceErrors,
|
|
513
514
|
protocol: SlackProtocol,
|
|
514
515
|
retry: Retry.Retry,
|
|
515
516
|
telemetry: TELEMETRY,
|
|
@@ -526,7 +527,8 @@ export const approveRequestSharedInvite: API.OperationMethod<
|
|
|
526
527
|
> = /*@__PURE__*/ API.make(() => ({
|
|
527
528
|
input: __S(5, __c1, 1) as any as S.Schema<ApproveRequestSharedInviteRequest>,
|
|
528
529
|
output: __S(6, __c1, 2) as any as S.Schema<ApproveRequestSharedInviteResponse>,
|
|
529
|
-
errors: [
|
|
530
|
+
errors: [],
|
|
531
|
+
serviceErrors: SlackServiceErrors,
|
|
530
532
|
protocol: SlackProtocol,
|
|
531
533
|
retry: Retry.Retry,
|
|
532
534
|
telemetry: TELEMETRY,
|
|
@@ -543,7 +545,8 @@ export const approveSharedInvite: API.OperationMethod<
|
|
|
543
545
|
> = /*@__PURE__*/ API.make(() => ({
|
|
544
546
|
input: __S(52, __c13, 0) as any as S.Schema<ApproveSharedInviteRequest>,
|
|
545
547
|
output: __S(56, __c14, 0) as any as S.Schema<ApproveSharedInviteResponse>,
|
|
546
|
-
errors: [
|
|
548
|
+
errors: [],
|
|
549
|
+
serviceErrors: SlackServiceErrors,
|
|
547
550
|
protocol: SlackProtocol,
|
|
548
551
|
retry: Retry.Retry,
|
|
549
552
|
telemetry: TELEMETRY,
|
|
@@ -560,7 +563,8 @@ export const archiveConversation: API.OperationMethod<
|
|
|
560
563
|
> = /*@__PURE__*/ API.make(() => ({
|
|
561
564
|
input: __S(92, __c23, 0) as any as S.Schema<ArchiveConversationRequest>,
|
|
562
565
|
output: __S(56, __c14, 0) as any as S.Schema<ArchiveConversationResponse>,
|
|
563
|
-
errors: [
|
|
566
|
+
errors: [],
|
|
567
|
+
serviceErrors: SlackServiceErrors,
|
|
564
568
|
protocol: SlackProtocol,
|
|
565
569
|
retry: Retry.Retry,
|
|
566
570
|
telemetry: TELEMETRY,
|
|
@@ -577,7 +581,8 @@ export const conversationsClose: API.OperationMethod<
|
|
|
577
581
|
> = /*@__PURE__*/ API.make(() => ({
|
|
578
582
|
input: __S(96, __c24, 0) as any as S.Schema<ConversationsCloseRequest>,
|
|
579
583
|
output: __S(97, __c24, 1) as any as S.Schema<ConversationsCloseResponse>,
|
|
580
|
-
errors: [
|
|
584
|
+
errors: [],
|
|
585
|
+
serviceErrors: SlackServiceErrors,
|
|
581
586
|
protocol: SlackProtocol,
|
|
582
587
|
retry: Retry.Retry,
|
|
583
588
|
telemetry: TELEMETRY,
|
|
@@ -596,7 +601,8 @@ export const conversationsHistory: API.PaginatedOperationMethod<
|
|
|
596
601
|
() => ({
|
|
597
602
|
input: __S(100, __c25, 0) as any as S.Schema<ConversationsHistoryRequest>,
|
|
598
603
|
output: __S(102, __c25, 2) as any as S.Schema<ConversationsHistoryResponse>,
|
|
599
|
-
errors: [
|
|
604
|
+
errors: [],
|
|
605
|
+
serviceErrors: SlackServiceErrors,
|
|
600
606
|
protocol: SlackProtocol,
|
|
601
607
|
retry: Retry.Retry,
|
|
602
608
|
telemetry: TELEMETRY,
|
|
@@ -613,7 +619,7 @@ export const conversationsHistory: API.PaginatedOperationMethod<
|
|
|
613
619
|
) as any;
|
|
614
620
|
|
|
615
621
|
export type ConversationsInfoError = SlackOpError;
|
|
616
|
-
/** Retrieve information about a conversation. Required scopes -- bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` -- The user has no access to the channel. Only applicable to Salesforce limited access channels. - `channel_not_found` -- Value passed for `channel` was invalid. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/conversations.info */
|
|
622
|
+
/** Retrieve information about a conversation. Required scopes -- bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` -- The user has no access to the channel. Only applicable to Salesforce limited access channels. - `channel_not_found` -- Value passed for `channel` was invalid. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `external_channel_migrating` -- The channel is externally shared and is being migrated. Try again later. See https://docs.slack.dev/reference/methods/conversations.info */
|
|
617
623
|
export const conversationsInfo: API.OperationMethod<
|
|
618
624
|
ConversationsInfoRequest,
|
|
619
625
|
ConversationsInfoResponse,
|
|
@@ -622,7 +628,8 @@ export const conversationsInfo: API.OperationMethod<
|
|
|
622
628
|
> = /*@__PURE__*/ API.make(() => ({
|
|
623
629
|
input: __S(120, __c30, 0) as any as S.Schema<ConversationsInfoRequest>,
|
|
624
630
|
output: __S(121, __c30, 1) as any as S.Schema<ConversationsInfoResponse>,
|
|
625
|
-
errors: [
|
|
631
|
+
errors: [],
|
|
632
|
+
serviceErrors: SlackServiceErrors,
|
|
626
633
|
protocol: SlackProtocol,
|
|
627
634
|
retry: Retry.Retry,
|
|
628
635
|
telemetry: TELEMETRY,
|
|
@@ -630,7 +637,7 @@ export const conversationsInfo: API.OperationMethod<
|
|
|
630
637
|
}));
|
|
631
638
|
|
|
632
639
|
export type ConversationsKickError = SlackOpError;
|
|
633
|
-
/** Removes a user from a conversation. Required scopes -- bot: `groups:write`, `channels:manage`; user: `groups:write`, `channels:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_kick_from_general` -- User cannot be removed from #general. - `cant_kick_self` -- Authenticated user can't kick themselves from a channel. - `channel_not_found` -- Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `no_user` -- No value was passed for `user` or `users`. - `not_in_channel` -- User was not in the channel. - `not_supported` -- This is not supported for this channel and user combination. - `restricted_action` -- A team preference prevents the authenticated user from kicking. - `user_not_found` -- Value passed for `user` was invalid. See https://docs.slack.dev/reference/methods/conversations.kick */
|
|
640
|
+
/** Removes a user from a conversation. Required scopes -- bot: `groups:write`, `channels:manage`; user: `groups:write`, `channels:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_kick_from_general` -- User cannot be removed from #general. - `cant_kick_self` -- Authenticated user can't kick themselves from a channel. - `channel_not_found` -- Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `no_user` -- No value was passed for `user` or `users`. - `not_in_channel` -- User was not in the channel. - `not_supported` -- This is not supported for this channel and user combination. - `restricted_action` -- A team preference prevents the authenticated user from kicking. - `user_not_found` -- Value passed for `user` was invalid. - `leave_failed` -- The user could not be removed from the conversation, for example because their organization requires its members to stay in it. See https://docs.slack.dev/reference/methods/conversations.kick */
|
|
634
641
|
export const conversationsKick: API.OperationMethod<
|
|
635
642
|
ConversationsKickRequest,
|
|
636
643
|
ConversationsKickResponse,
|
|
@@ -639,7 +646,8 @@ export const conversationsKick: API.OperationMethod<
|
|
|
639
646
|
> = /*@__PURE__*/ API.make(() => ({
|
|
640
647
|
input: __S(124, __c31, 0) as any as S.Schema<ConversationsKickRequest>,
|
|
641
648
|
output: __S(125, __c31, 1) as any as S.Schema<ConversationsKickResponse>,
|
|
642
|
-
errors: [
|
|
649
|
+
errors: [],
|
|
650
|
+
serviceErrors: SlackServiceErrors,
|
|
643
651
|
protocol: SlackProtocol,
|
|
644
652
|
retry: Retry.Retry,
|
|
645
653
|
telemetry: TELEMETRY,
|
|
@@ -656,7 +664,8 @@ export const conversationsMark: API.OperationMethod<
|
|
|
656
664
|
> = /*@__PURE__*/ API.make(() => ({
|
|
657
665
|
input: __S(128, __c32, 0) as any as S.Schema<ConversationsMarkRequest>,
|
|
658
666
|
output: __S(56, __c14, 0) as any as S.Schema<ConversationsMarkResponse>,
|
|
659
|
-
errors: [
|
|
667
|
+
errors: [],
|
|
668
|
+
serviceErrors: SlackServiceErrors,
|
|
660
669
|
protocol: SlackProtocol,
|
|
661
670
|
retry: Retry.Retry,
|
|
662
671
|
telemetry: TELEMETRY,
|
|
@@ -664,7 +673,7 @@ export const conversationsMark: API.OperationMethod<
|
|
|
664
673
|
}));
|
|
665
674
|
|
|
666
675
|
export type ConversationsMembersError = SlackOpError;
|
|
667
|
-
/** Retrieve members of a conversation. Required scopes -- bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `fetch_members_failed` -- Failed to fetch members for the conversation. - `invalid_cursor` -- Value passed for `cursor` was invalid. - `invalid_limit` -- Value passed for `limit` was invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/conversations.members */
|
|
676
|
+
/** Retrieve members of a conversation. Required scopes -- bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `fetch_members_failed` -- Failed to fetch members for the conversation. - `invalid_cursor` -- Value passed for `cursor` was invalid. - `invalid_limit` -- Value passed for `limit` was invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `external_channel_migrating` -- The conversation is a Slack Connect channel that is being migrated to an Enterprise organization. Try again once the migration has finished. See https://docs.slack.dev/reference/methods/conversations.members */
|
|
668
677
|
export const conversationsMembers: API.PaginatedOperationMethod<
|
|
669
678
|
ConversationsMembersRequest,
|
|
670
679
|
ConversationsMembersResponse,
|
|
@@ -675,7 +684,8 @@ export const conversationsMembers: API.PaginatedOperationMethod<
|
|
|
675
684
|
() => ({
|
|
676
685
|
input: __S(132, __c33, 0) as any as S.Schema<ConversationsMembersRequest>,
|
|
677
686
|
output: __S(133, __c33, 1) as any as S.Schema<ConversationsMembersResponse>,
|
|
678
|
-
errors: [
|
|
687
|
+
errors: [],
|
|
688
|
+
serviceErrors: SlackServiceErrors,
|
|
679
689
|
protocol: SlackProtocol,
|
|
680
690
|
retry: Retry.Retry,
|
|
681
691
|
telemetry: TELEMETRY,
|
|
@@ -701,7 +711,8 @@ export const conversationsOpen: API.OperationMethod<
|
|
|
701
711
|
> = /*@__PURE__*/ API.make(() => ({
|
|
702
712
|
input: __S(8, __c2, 0) as any as S.Schema<ConversationsOpenRequest>,
|
|
703
713
|
output: __S(9, __c2, 1) as any as S.Schema<ConversationsOpenResponse>,
|
|
704
|
-
errors: [
|
|
714
|
+
errors: [],
|
|
715
|
+
serviceErrors: SlackServiceErrors,
|
|
705
716
|
protocol: SlackProtocol,
|
|
706
717
|
retry: Retry.Retry,
|
|
707
718
|
telemetry: TELEMETRY,
|
|
@@ -720,7 +731,8 @@ export const conversationsReplies: API.PaginatedOperationMethod<
|
|
|
720
731
|
() => ({
|
|
721
732
|
input: __S(12, __c3, 0) as any as S.Schema<ConversationsRepliesRequest>,
|
|
722
733
|
output: __S(13, __c3, 1) as any as S.Schema<ConversationsRepliesResponse>,
|
|
723
|
-
errors: [
|
|
734
|
+
errors: [],
|
|
735
|
+
serviceErrors: SlackServiceErrors,
|
|
724
736
|
protocol: SlackProtocol,
|
|
725
737
|
retry: Retry.Retry,
|
|
726
738
|
telemetry: TELEMETRY,
|
|
@@ -746,7 +758,8 @@ export const createCanvase: API.OperationMethod<
|
|
|
746
758
|
> = /*@__PURE__*/ API.make(() => ({
|
|
747
759
|
input: __S(16, __c4, 0) as any as S.Schema<CreateCanvaseRequest>,
|
|
748
760
|
output: __S(17, __c4, 1) as any as S.Schema<CreateCanvaseResponse>,
|
|
749
|
-
errors: [
|
|
761
|
+
errors: [],
|
|
762
|
+
serviceErrors: SlackServiceErrors,
|
|
750
763
|
protocol: SlackProtocol,
|
|
751
764
|
retry: Retry.Retry,
|
|
752
765
|
telemetry: TELEMETRY,
|
|
@@ -763,7 +776,8 @@ export const createConversation: API.OperationMethod<
|
|
|
763
776
|
> = /*@__PURE__*/ API.make(() => ({
|
|
764
777
|
input: __S(20, __c5, 0) as any as S.Schema<CreateConversationRequest>,
|
|
765
778
|
output: __S(24, __c6, 0) as any as S.Schema<CreateConversationResponse>,
|
|
766
|
-
errors: [
|
|
779
|
+
errors: [],
|
|
780
|
+
serviceErrors: SlackServiceErrors,
|
|
767
781
|
protocol: SlackProtocol,
|
|
768
782
|
retry: Retry.Retry,
|
|
769
783
|
telemetry: TELEMETRY,
|
|
@@ -780,7 +794,8 @@ export const inviteConversation: API.OperationMethod<
|
|
|
780
794
|
> = /*@__PURE__*/ API.make(() => ({
|
|
781
795
|
input: __S(28, __c7, 0) as any as S.Schema<InviteConversationRequest>,
|
|
782
796
|
output: __S(29, __c7, 1) as any as S.Schema<InviteConversationResponse>,
|
|
783
|
-
errors: [
|
|
797
|
+
errors: [],
|
|
798
|
+
serviceErrors: SlackServiceErrors,
|
|
784
799
|
protocol: SlackProtocol,
|
|
785
800
|
retry: Retry.Retry,
|
|
786
801
|
telemetry: TELEMETRY,
|
|
@@ -797,7 +812,8 @@ export const inviteDeclineShared: API.OperationMethod<
|
|
|
797
812
|
> = /*@__PURE__*/ API.make(() => ({
|
|
798
813
|
input: __S(32, __c8, 0) as any as S.Schema<InviteDeclineSharedRequest>,
|
|
799
814
|
output: __S(56, __c14, 0) as any as S.Schema<InviteDeclineSharedResponse>,
|
|
800
|
-
errors: [
|
|
815
|
+
errors: [],
|
|
816
|
+
serviceErrors: SlackServiceErrors,
|
|
801
817
|
protocol: SlackProtocol,
|
|
802
818
|
retry: Retry.Retry,
|
|
803
819
|
telemetry: TELEMETRY,
|
|
@@ -814,7 +830,8 @@ export const inviteShared: API.OperationMethod<
|
|
|
814
830
|
> = /*@__PURE__*/ API.make(() => ({
|
|
815
831
|
input: __S(36, __c9, 0) as any as S.Schema<InviteSharedRequest>,
|
|
816
832
|
output: __S(37, __c9, 1) as any as S.Schema<InviteSharedResponse>,
|
|
817
|
-
errors: [
|
|
833
|
+
errors: [],
|
|
834
|
+
serviceErrors: SlackServiceErrors,
|
|
818
835
|
protocol: SlackProtocol,
|
|
819
836
|
retry: Retry.Retry,
|
|
820
837
|
telemetry: TELEMETRY,
|
|
@@ -822,7 +839,7 @@ export const inviteShared: API.OperationMethod<
|
|
|
822
839
|
}));
|
|
823
840
|
|
|
824
841
|
export type JoinConversationError = SlackOpError;
|
|
825
|
-
/** Joins an existing conversation. Required scopes -- user: `channels:write`; bot: `channels:join` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` -- The user has no access to the channel. This is only applicable to private Salesforce record channels. - `channel_not_found` -- Value passed for `channel` was invalid. - `is_archived` -- Channel has been archived. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `too_many_members` -- The membership in the channel has exceeded our maximum member limit. No more users can join the channel. - `app_cannot_join_channel` -- This app cannot join this channel. See https://docs.slack.dev/reference/methods/conversations.join */
|
|
842
|
+
/** Joins an existing conversation. Required scopes -- user: `channels:write`; bot: `channels:join` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` -- The user has no access to the channel. This is only applicable to private Salesforce record channels. - `channel_not_found` -- Value passed for `channel` was invalid. - `is_archived` -- Channel has been archived. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `too_many_members` -- The membership in the channel has exceeded our maximum member limit. No more users can join the channel. - `app_cannot_join_channel` -- This app cannot join this channel. - `not_workspace_member` -- User doesn't belong to the workspace this channel is in. See https://docs.slack.dev/reference/methods/conversations.join */
|
|
826
843
|
export const joinConversation: API.OperationMethod<
|
|
827
844
|
JoinConversationRequest,
|
|
828
845
|
JoinConversationResponse,
|
|
@@ -831,7 +848,8 @@ export const joinConversation: API.OperationMethod<
|
|
|
831
848
|
> = /*@__PURE__*/ API.make(() => ({
|
|
832
849
|
input: __S(40, __c10, 0) as any as S.Schema<JoinConversationRequest>,
|
|
833
850
|
output: __S(42, __c10, 2) as any as S.Schema<JoinConversationResponse>,
|
|
834
|
-
errors: [
|
|
851
|
+
errors: [],
|
|
852
|
+
serviceErrors: SlackServiceErrors,
|
|
835
853
|
protocol: SlackProtocol,
|
|
836
854
|
retry: Retry.Retry,
|
|
837
855
|
telemetry: TELEMETRY,
|
|
@@ -848,7 +866,8 @@ export const leaveConversation: API.OperationMethod<
|
|
|
848
866
|
> = /*@__PURE__*/ API.make(() => ({
|
|
849
867
|
input: __S(44, __c11, 0) as any as S.Schema<LeaveConversationRequest>,
|
|
850
868
|
output: __S(45, __c11, 1) as any as S.Schema<LeaveConversationResponse>,
|
|
851
|
-
errors: [
|
|
869
|
+
errors: [],
|
|
870
|
+
serviceErrors: SlackServiceErrors,
|
|
852
871
|
protocol: SlackProtocol,
|
|
853
872
|
retry: Retry.Retry,
|
|
854
873
|
telemetry: TELEMETRY,
|
|
@@ -867,7 +886,8 @@ export const listConnectInvites: API.PaginatedOperationMethod<
|
|
|
867
886
|
() => ({
|
|
868
887
|
input: __S(48, __c12, 0) as any as S.Schema<ListConnectInvitesRequest>,
|
|
869
888
|
output: __S(49, __c12, 1) as any as S.Schema<ListConnectInvitesResponse>,
|
|
870
|
-
errors: [
|
|
889
|
+
errors: [],
|
|
890
|
+
serviceErrors: SlackServiceErrors,
|
|
871
891
|
protocol: SlackProtocol,
|
|
872
892
|
retry: Retry.Retry,
|
|
873
893
|
telemetry: TELEMETRY,
|
|
@@ -894,7 +914,8 @@ export const listConversations: API.PaginatedOperationMethod<
|
|
|
894
914
|
() => ({
|
|
895
915
|
input: __S(60, __c15, 0) as any as S.Schema<ListConversationsRequest>,
|
|
896
916
|
output: __S(61, __c15, 1) as any as S.Schema<ListConversationsResponse>,
|
|
897
|
-
errors: [
|
|
917
|
+
errors: [],
|
|
918
|
+
serviceErrors: SlackServiceErrors,
|
|
898
919
|
protocol: SlackProtocol,
|
|
899
920
|
retry: Retry.Retry,
|
|
900
921
|
telemetry: TELEMETRY,
|
|
@@ -922,7 +943,8 @@ export const listRequestSharedInvite: API.PaginatedOperationMethod<
|
|
|
922
943
|
() => ({
|
|
923
944
|
input: __S(64, __c16, 0) as any as S.Schema<ListRequestSharedInviteRequest>,
|
|
924
945
|
output: __S(65, __c16, 1) as any as S.Schema<ListRequestSharedInviteResponse>,
|
|
925
|
-
errors: [
|
|
946
|
+
errors: [],
|
|
947
|
+
serviceErrors: SlackServiceErrors,
|
|
926
948
|
protocol: SlackProtocol,
|
|
927
949
|
retry: Retry.Retry,
|
|
928
950
|
telemetry: TELEMETRY,
|
|
@@ -948,7 +970,8 @@ export const renameConversation: API.OperationMethod<
|
|
|
948
970
|
> = /*@__PURE__*/ API.make(() => ({
|
|
949
971
|
input: __S(68, __c17, 0) as any as S.Schema<RenameConversationRequest>,
|
|
950
972
|
output: __S(24, __c6, 0) as any as S.Schema<RenameConversationResponse>,
|
|
951
|
-
errors: [
|
|
973
|
+
errors: [],
|
|
974
|
+
serviceErrors: SlackServiceErrors,
|
|
952
975
|
protocol: SlackProtocol,
|
|
953
976
|
retry: Retry.Retry,
|
|
954
977
|
telemetry: TELEMETRY,
|
|
@@ -965,7 +988,8 @@ export const requestSharedInviteDeny: API.OperationMethod<
|
|
|
965
988
|
> = /*@__PURE__*/ API.make(() => ({
|
|
966
989
|
input: __S(72, __c18, 0) as any as S.Schema<RequestSharedInviteDenyRequest>,
|
|
967
990
|
output: __S(56, __c14, 0) as any as S.Schema<RequestSharedInviteDenyResponse>,
|
|
968
|
-
errors: [
|
|
991
|
+
errors: [],
|
|
992
|
+
serviceErrors: SlackServiceErrors,
|
|
969
993
|
protocol: SlackProtocol,
|
|
970
994
|
retry: Retry.Retry,
|
|
971
995
|
telemetry: TELEMETRY,
|
|
@@ -982,7 +1006,8 @@ export const setExternalInvitePermissions: API.OperationMethod<
|
|
|
982
1006
|
> = /*@__PURE__*/ API.make(() => ({
|
|
983
1007
|
input: __S(76, __c19, 0) as any as S.Schema<SetExternalInvitePermissionsRequest>,
|
|
984
1008
|
output: __S(56, __c14, 0) as any as S.Schema<SetExternalInvitePermissionsResponse>,
|
|
985
|
-
errors: [
|
|
1009
|
+
errors: [],
|
|
1010
|
+
serviceErrors: SlackServiceErrors,
|
|
986
1011
|
protocol: SlackProtocol,
|
|
987
1012
|
retry: Retry.Retry,
|
|
988
1013
|
telemetry: TELEMETRY,
|
|
@@ -999,7 +1024,8 @@ export const setPurpose: API.OperationMethod<
|
|
|
999
1024
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1000
1025
|
input: __S(80, __c20, 0) as any as S.Schema<SetPurposeRequest>,
|
|
1001
1026
|
output: __S(24, __c6, 0) as any as S.Schema<SetPurposeResponse>,
|
|
1002
|
-
errors: [
|
|
1027
|
+
errors: [],
|
|
1028
|
+
serviceErrors: SlackServiceErrors,
|
|
1003
1029
|
protocol: SlackProtocol,
|
|
1004
1030
|
retry: Retry.Retry,
|
|
1005
1031
|
telemetry: TELEMETRY,
|
|
@@ -1016,7 +1042,8 @@ export const setTopic: API.OperationMethod<
|
|
|
1016
1042
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1017
1043
|
input: __S(84, __c21, 0) as any as S.Schema<SetTopicRequest>,
|
|
1018
1044
|
output: __S(24, __c6, 0) as any as S.Schema<SetTopicResponse>,
|
|
1019
|
-
errors: [
|
|
1045
|
+
errors: [],
|
|
1046
|
+
serviceErrors: SlackServiceErrors,
|
|
1020
1047
|
protocol: SlackProtocol,
|
|
1021
1048
|
retry: Retry.Retry,
|
|
1022
1049
|
telemetry: TELEMETRY,
|
|
@@ -1024,7 +1051,7 @@ export const setTopic: API.OperationMethod<
|
|
|
1024
1051
|
}));
|
|
1025
1052
|
|
|
1026
1053
|
export type UnarchiveConversationError = SlackOpError;
|
|
1027
|
-
/** Reverses conversation archival. Required scopes -- bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_archived` -- Channel is not archived. See https://docs.slack.dev/reference/methods/conversations.unarchive */
|
|
1054
|
+
/** Reverses conversation archival. Required scopes -- bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_archived` -- Channel is not archived. - `channel_frozen` -- The channel is frozen and can't be unarchived. See https://docs.slack.dev/reference/methods/conversations.unarchive */
|
|
1028
1055
|
export const unarchiveConversation: API.OperationMethod<
|
|
1029
1056
|
UnarchiveConversationRequest,
|
|
1030
1057
|
UnarchiveConversationResponse,
|
|
@@ -1033,7 +1060,8 @@ export const unarchiveConversation: API.OperationMethod<
|
|
|
1033
1060
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1034
1061
|
input: __S(88, __c22, 0) as any as S.Schema<UnarchiveConversationRequest>,
|
|
1035
1062
|
output: __S(56, __c14, 0) as any as S.Schema<UnarchiveConversationResponse>,
|
|
1036
|
-
errors: [
|
|
1063
|
+
errors: [],
|
|
1064
|
+
serviceErrors: SlackServiceErrors,
|
|
1037
1065
|
protocol: SlackProtocol,
|
|
1038
1066
|
retry: Retry.Retry,
|
|
1039
1067
|
telemetry: TELEMETRY,
|
package/src/services/dialog.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";
|
|
@@ -44,7 +44,8 @@ export const dialogOpen: API.OperationMethod<
|
|
|
44
44
|
> = /*@__PURE__*/ API.make(() => ({
|
|
45
45
|
input: __S(0, __c0, 0) as any as S.Schema<DialogOpenRequest>,
|
|
46
46
|
output: __S(1, __c0, 1) as any as S.Schema<DialogOpenResponse>,
|
|
47
|
-
errors: [
|
|
47
|
+
errors: [],
|
|
48
|
+
serviceErrors: SlackServiceErrors,
|
|
48
49
|
protocol: SlackProtocol,
|
|
49
50
|
retry: Retry.Retry,
|
|
50
51
|
telemetry: TELEMETRY,
|
package/src/services/dnd.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";
|
|
@@ -93,7 +93,8 @@ export const dndInfo: API.OperationMethod<
|
|
|
93
93
|
> = /*@__PURE__*/ API.make(() => ({
|
|
94
94
|
input: __S(0, __c0, 0) as any as S.Schema<DndInfoRequest>,
|
|
95
95
|
output: __S(1, __c0, 1) as any as S.Schema<DndInfoResponse>,
|
|
96
|
-
errors: [
|
|
96
|
+
errors: [],
|
|
97
|
+
serviceErrors: SlackServiceErrors,
|
|
97
98
|
protocol: SlackProtocol,
|
|
98
99
|
retry: Retry.Retry,
|
|
99
100
|
telemetry: TELEMETRY,
|
|
@@ -110,7 +111,8 @@ export const endDnd: API.OperationMethod<
|
|
|
110
111
|
> = /*@__PURE__*/ API.make(() => ({
|
|
111
112
|
input: __S(4, __c1, 0) as any as S.Schema<EndDndRequest>,
|
|
112
113
|
output: __S(5, __c1, 1) as any as S.Schema<EndDndResponse>,
|
|
113
|
-
errors: [
|
|
114
|
+
errors: [],
|
|
115
|
+
serviceErrors: SlackServiceErrors,
|
|
114
116
|
protocol: SlackProtocol,
|
|
115
117
|
retry: Retry.Retry,
|
|
116
118
|
telemetry: TELEMETRY,
|
|
@@ -127,7 +129,8 @@ export const endSnooze: API.OperationMethod<
|
|
|
127
129
|
> = /*@__PURE__*/ API.make(() => ({
|
|
128
130
|
input: __S(8, __c2, 0) as any as S.Schema<EndSnoozeRequest>,
|
|
129
131
|
output: __S(9, __c2, 1) as any as S.Schema<EndSnoozeResponse>,
|
|
130
|
-
errors: [
|
|
132
|
+
errors: [],
|
|
133
|
+
serviceErrors: SlackServiceErrors,
|
|
131
134
|
protocol: SlackProtocol,
|
|
132
135
|
retry: Retry.Retry,
|
|
133
136
|
telemetry: TELEMETRY,
|
|
@@ -144,7 +147,8 @@ export const setSnooze: API.OperationMethod<
|
|
|
144
147
|
> = /*@__PURE__*/ API.make(() => ({
|
|
145
148
|
input: __S(12, __c3, 0) as any as S.Schema<SetSnoozeRequest>,
|
|
146
149
|
output: __S(13, __c3, 1) as any as S.Schema<SetSnoozeResponse>,
|
|
147
|
-
errors: [
|
|
150
|
+
errors: [],
|
|
151
|
+
serviceErrors: SlackServiceErrors,
|
|
148
152
|
protocol: SlackProtocol,
|
|
149
153
|
retry: Retry.Retry,
|
|
150
154
|
telemetry: TELEMETRY,
|
|
@@ -161,7 +165,8 @@ export const teamInfo: API.OperationMethod<
|
|
|
161
165
|
> = /*@__PURE__*/ API.make(() => ({
|
|
162
166
|
input: __S(16, __c4, 0) as any as S.Schema<TeamInfoRequest>,
|
|
163
167
|
output: __S(18, __c4, 2) as any as S.Schema<TeamInfoResponse>,
|
|
164
|
-
errors: [
|
|
168
|
+
errors: [],
|
|
169
|
+
serviceErrors: SlackServiceErrors,
|
|
165
170
|
protocol: SlackProtocol,
|
|
166
171
|
retry: Retry.Retry,
|
|
167
172
|
telemetry: TELEMETRY,
|
package/src/services/emoji.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";
|
|
@@ -53,7 +53,8 @@ export const listEmoji: API.OperationMethod<
|
|
|
53
53
|
> = /*@__PURE__*/ API.make(() => ({
|
|
54
54
|
input: __S(0, __c0, 0) as any as S.Schema<ListEmojiRequest>,
|
|
55
55
|
output: __S(5, __c0, 5) as any as S.Schema<ListEmojiResponse>,
|
|
56
|
-
errors: [
|
|
56
|
+
errors: [],
|
|
57
|
+
serviceErrors: SlackServiceErrors,
|
|
57
58
|
protocol: SlackProtocol,
|
|
58
59
|
retry: Retry.Retry,
|
|
59
60
|
telemetry: TELEMETRY,
|
package/src/services/entity.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";
|
|
@@ -96,7 +96,8 @@ export const acknowledgeCommentAction: API.OperationMethod<
|
|
|
96
96
|
> = /*@__PURE__*/ API.make(() => ({
|
|
97
97
|
input: __S(0, __c0, 0) as any as S.Schema<AcknowledgeCommentActionRequest>,
|
|
98
98
|
output: __S(8, __c2, 0) as any as S.Schema<AcknowledgeCommentActionResponse>,
|
|
99
|
-
errors: [
|
|
99
|
+
errors: [],
|
|
100
|
+
serviceErrors: SlackServiceErrors,
|
|
100
101
|
protocol: SlackProtocol,
|
|
101
102
|
retry: Retry.Retry,
|
|
102
103
|
telemetry: TELEMETRY,
|
|
@@ -113,7 +114,8 @@ export const presentComments: API.OperationMethod<
|
|
|
113
114
|
> = /*@__PURE__*/ API.make(() => ({
|
|
114
115
|
input: __S(13, __c3, 1) as any as S.Schema<PresentCommentsRequest>,
|
|
115
116
|
output: __S(15, __c3, 3) as any as S.Schema<PresentCommentsResponse>,
|
|
116
|
-
errors: [
|
|
117
|
+
errors: [],
|
|
118
|
+
serviceErrors: SlackServiceErrors,
|
|
117
119
|
protocol: SlackProtocol,
|
|
118
120
|
retry: Retry.Retry,
|
|
119
121
|
telemetry: TELEMETRY,
|
|
@@ -130,7 +132,8 @@ export const presentDetails: API.OperationMethod<
|
|
|
130
132
|
> = /*@__PURE__*/ API.make(() => ({
|
|
131
133
|
input: __S(16, __c4, 0) as any as S.Schema<PresentDetailsRequest>,
|
|
132
134
|
output: __S(8, __c2, 0) as any as S.Schema<PresentDetailsResponse>,
|
|
133
|
-
errors: [
|
|
135
|
+
errors: [],
|
|
136
|
+
serviceErrors: SlackServiceErrors,
|
|
134
137
|
protocol: SlackProtocol,
|
|
135
138
|
retry: Retry.Retry,
|
|
136
139
|
telemetry: TELEMETRY,
|
package/src/services/files.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";
|
|
@@ -393,7 +393,8 @@ export const addRemote: API.OperationMethod<
|
|
|
393
393
|
> = /*@__PURE__*/ API.make(() => ({
|
|
394
394
|
input: __S(0, __c0, 0) as any as S.Schema<AddRemoteRequest>,
|
|
395
395
|
output: __S(3, __c0, 3) as any as S.Schema<AddRemoteResponse>,
|
|
396
|
-
errors: [
|
|
396
|
+
errors: [],
|
|
397
|
+
serviceErrors: SlackServiceErrors,
|
|
397
398
|
protocol: SlackProtocol,
|
|
398
399
|
retry: Retry.Retry,
|
|
399
400
|
telemetry: TELEMETRY,
|
|
@@ -401,7 +402,7 @@ export const addRemote: API.OperationMethod<
|
|
|
401
402
|
}));
|
|
402
403
|
|
|
403
404
|
export type CompleteUploadExternalError = SlackOpError;
|
|
404
|
-
/** Finishes an upload started with files.getUploadURLExternal Required scopes -- bot: `files:write`; user: `files:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- User is not the owner of the file. - `channel_not_found` -- Value passed for `channel_id` was invalid. - `file_not_found` -- Could not find the file from the upload ticket. - `file_update_failed` -- Failure occurred when attempting to update the file. - `invalid_blocks` -- Provided blocks are in the incorrect format. - `invalid_channel` -- Channel could not be found or channel specified is invalid. - `not_in_channel` -- User/bot membership is required for the specified channel. - `posting_to_channel_denied` -- User is not authorized to post to channel. - `channels_limit_exceeded` -- Exceeded the channel limit. A maximum of 100 channels is allowed per request. - `file_type_not_allowed` -- The file type is not permitted based on the team's allowed_file_upload_types preference. - `file_uploads_except_images_disabled` -- Only image file uploads are permitted for this team. - `user_is_external_guest` -- External guests cannot upload or share files. See https://docs.slack.dev/reference/methods/files.completeUploadExternal */
|
|
405
|
+
/** Finishes an upload started with files.getUploadURLExternal Required scopes -- bot: `files:write`; user: `files:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- User is not the owner of the file. - `channel_not_found` -- Value passed for `channel_id` was invalid. - `file_not_found` -- Could not find the file from the upload ticket. - `file_update_failed` -- Failure occurred when attempting to update the file. - `invalid_blocks` -- Provided blocks are in the incorrect format. - `invalid_channel` -- Channel could not be found or channel specified is invalid. - `not_in_channel` -- User/bot membership is required for the specified channel. - `posting_to_channel_denied` -- User is not authorized to post to channel. - `channels_limit_exceeded` -- Exceeded the channel limit. A maximum of 100 channels is allowed per request. - `slack_connect_file_upload_sharing_blocked` -- Admin has disabled File uploads in all Slack Connect communications - `slack_connect_clip_sharing_blocked` -- Admin has disabled Clip sharing in Slack Connect channels - `slack_connect_blocked_file_type` -- Files with certain extensions are blocked from being uploaded in all Slack Connect communications - `blocked_file_type` -- Admin has disabled uploading this type of file - `file_type_not_allowed` -- The file type is not permitted based on the team's allowed_file_upload_types preference. - `file_uploads_except_images_disabled` -- Only image file uploads are permitted for this team. - `user_is_external_guest` -- External guests cannot upload or share files. - `msg_too_long` -- The initial comment or blocks are too long to store with the file. See https://docs.slack.dev/reference/methods/files.completeUploadExternal */
|
|
405
406
|
export const completeUploadExternal: API.OperationMethod<
|
|
406
407
|
CompleteUploadExternalRequest,
|
|
407
408
|
CompleteUploadExternalResponse,
|
|
@@ -410,7 +411,8 @@ export const completeUploadExternal: API.OperationMethod<
|
|
|
410
411
|
> = /*@__PURE__*/ API.make(() => ({
|
|
411
412
|
input: __S(19, __c2, 3) as any as S.Schema<CompleteUploadExternalRequest>,
|
|
412
413
|
output: __S(22, __c2, 6) as any as S.Schema<CompleteUploadExternalResponse>,
|
|
413
|
-
errors: [
|
|
414
|
+
errors: [],
|
|
415
|
+
serviceErrors: SlackServiceErrors,
|
|
414
416
|
protocol: SlackProtocol,
|
|
415
417
|
retry: Retry.Retry,
|
|
416
418
|
telemetry: TELEMETRY,
|
|
@@ -427,7 +429,8 @@ export const deleteComment: API.OperationMethod<
|
|
|
427
429
|
> = /*@__PURE__*/ API.make(() => ({
|
|
428
430
|
input: __S(88, __c11, 0) as any as S.Schema<DeleteCommentRequest>,
|
|
429
431
|
output: __S(96, __c12, 0) as any as S.Schema<DeleteCommentResponse>,
|
|
430
|
-
errors: [
|
|
432
|
+
errors: [],
|
|
433
|
+
serviceErrors: SlackServiceErrors,
|
|
431
434
|
protocol: SlackProtocol,
|
|
432
435
|
retry: Retry.Retry,
|
|
433
436
|
telemetry: TELEMETRY,
|
|
@@ -444,7 +447,8 @@ export const deleteFile: API.OperationMethod<
|
|
|
444
447
|
> = /*@__PURE__*/ API.make(() => ({
|
|
445
448
|
input: __S(104, __c13, 0) as any as S.Schema<DeleteFileRequest>,
|
|
446
449
|
output: __S(96, __c12, 0) as any as S.Schema<DeleteFileResponse>,
|
|
447
|
-
errors: [
|
|
450
|
+
errors: [],
|
|
451
|
+
serviceErrors: SlackServiceErrors,
|
|
448
452
|
protocol: SlackProtocol,
|
|
449
453
|
retry: Retry.Retry,
|
|
450
454
|
telemetry: TELEMETRY,
|
|
@@ -463,7 +467,8 @@ export const filesInfo: API.PaginatedOperationMethod<
|
|
|
463
467
|
() => ({
|
|
464
468
|
input: __S(112, __c14, 0) as any as S.Schema<FilesInfoRequest>,
|
|
465
469
|
output: __S(116, __c14, 4) as any as S.Schema<FilesInfoResponse>,
|
|
466
|
-
errors: [
|
|
470
|
+
errors: [],
|
|
471
|
+
serviceErrors: SlackServiceErrors,
|
|
467
472
|
protocol: SlackProtocol,
|
|
468
473
|
retry: Retry.Retry,
|
|
469
474
|
telemetry: TELEMETRY,
|
|
@@ -489,7 +494,8 @@ export const getUploadURLExternal: API.OperationMethod<
|
|
|
489
494
|
> = /*@__PURE__*/ API.make(() => ({
|
|
490
495
|
input: __S(128, __c16, 0) as any as S.Schema<GetUploadURLExternalRequest>,
|
|
491
496
|
output: __S(129, __c16, 1) as any as S.Schema<GetUploadURLExternalResponse>,
|
|
492
|
-
errors: [
|
|
497
|
+
errors: [],
|
|
498
|
+
serviceErrors: SlackServiceErrors,
|
|
493
499
|
protocol: SlackProtocol,
|
|
494
500
|
retry: Retry.Retry,
|
|
495
501
|
telemetry: TELEMETRY,
|
|
@@ -506,7 +512,8 @@ export const listFiles: API.OperationMethod<
|
|
|
506
512
|
> = /*@__PURE__*/ API.make(() => ({
|
|
507
513
|
input: __S(138, __c17, 2) as any as S.Schema<ListFilesRequest>,
|
|
508
514
|
output: __S(141, __c17, 5) as any as S.Schema<ListFilesResponse>,
|
|
509
|
-
errors: [
|
|
515
|
+
errors: [],
|
|
516
|
+
serviceErrors: SlackServiceErrors,
|
|
510
517
|
protocol: SlackProtocol,
|
|
511
518
|
retry: Retry.Retry,
|
|
512
519
|
telemetry: TELEMETRY,
|
|
@@ -525,7 +532,8 @@ export const listRemote: API.PaginatedOperationMethod<
|
|
|
525
532
|
() => ({
|
|
526
533
|
input: __S(152, __c19, 0) as any as S.Schema<ListRemoteRequest>,
|
|
527
534
|
output: __S(154, __c19, 2) as any as S.Schema<ListRemoteResponse>,
|
|
528
|
-
errors: [
|
|
535
|
+
errors: [],
|
|
536
|
+
serviceErrors: SlackServiceErrors,
|
|
529
537
|
protocol: SlackProtocol,
|
|
530
538
|
retry: Retry.Retry,
|
|
531
539
|
telemetry: TELEMETRY,
|
|
@@ -551,7 +559,8 @@ export const remoteInfo: API.OperationMethod<
|
|
|
551
559
|
> = /*@__PURE__*/ API.make(() => ({
|
|
552
560
|
input: __S(168, __c21, 0) as any as S.Schema<RemoteInfoRequest>,
|
|
553
561
|
output: __S(169, __c21, 1) as any as S.Schema<RemoteInfoResponse>,
|
|
554
|
-
errors: [
|
|
562
|
+
errors: [],
|
|
563
|
+
serviceErrors: SlackServiceErrors,
|
|
555
564
|
protocol: SlackProtocol,
|
|
556
565
|
retry: Retry.Retry,
|
|
557
566
|
telemetry: TELEMETRY,
|
|
@@ -568,7 +577,8 @@ export const removeRemote: API.OperationMethod<
|
|
|
568
577
|
> = /*@__PURE__*/ API.make(() => ({
|
|
569
578
|
input: __S(176, __c22, 0) as any as S.Schema<RemoveRemoteRequest>,
|
|
570
579
|
output: __S(96, __c12, 0) as any as S.Schema<RemoveRemoteResponse>,
|
|
571
|
-
errors: [
|
|
580
|
+
errors: [],
|
|
581
|
+
serviceErrors: SlackServiceErrors,
|
|
572
582
|
protocol: SlackProtocol,
|
|
573
583
|
retry: Retry.Retry,
|
|
574
584
|
telemetry: TELEMETRY,
|
|
@@ -585,7 +595,8 @@ export const revokePublicURL: API.OperationMethod<
|
|
|
585
595
|
> = /*@__PURE__*/ API.make(() => ({
|
|
586
596
|
input: __S(24, __c3, 0) as any as S.Schema<RevokePublicURLRequest>,
|
|
587
597
|
output: __S(40, __c5, 0) as any as S.Schema<RevokePublicURLResponse>,
|
|
588
|
-
errors: [
|
|
598
|
+
errors: [],
|
|
599
|
+
serviceErrors: SlackServiceErrors,
|
|
589
600
|
protocol: SlackProtocol,
|
|
590
601
|
retry: Retry.Retry,
|
|
591
602
|
telemetry: TELEMETRY,
|
|
@@ -602,7 +613,8 @@ export const sharedPublicURL: API.OperationMethod<
|
|
|
602
613
|
> = /*@__PURE__*/ API.make(() => ({
|
|
603
614
|
input: __S(49, __c6, 1) as any as S.Schema<SharedPublicURLRequest>,
|
|
604
615
|
output: __S(50, __c6, 2) as any as S.Schema<SharedPublicURLResponse>,
|
|
605
|
-
errors: [
|
|
616
|
+
errors: [],
|
|
617
|
+
serviceErrors: SlackServiceErrors,
|
|
606
618
|
protocol: SlackProtocol,
|
|
607
619
|
retry: Retry.Retry,
|
|
608
620
|
telemetry: TELEMETRY,
|
|
@@ -619,7 +631,8 @@ export const shareRemote: API.OperationMethod<
|
|
|
619
631
|
> = /*@__PURE__*/ API.make(() => ({
|
|
620
632
|
input: __S(56, __c7, 0) as any as S.Schema<ShareRemoteRequest>,
|
|
621
633
|
output: __S(64, __c8, 0) as any as S.Schema<ShareRemoteResponse>,
|
|
622
|
-
errors: [
|
|
634
|
+
errors: [],
|
|
635
|
+
serviceErrors: SlackServiceErrors,
|
|
623
636
|
protocol: SlackProtocol,
|
|
624
637
|
retry: Retry.Retry,
|
|
625
638
|
telemetry: TELEMETRY,
|
|
@@ -636,7 +649,8 @@ export const updateRemote: API.OperationMethod<
|
|
|
636
649
|
> = /*@__PURE__*/ API.make(() => ({
|
|
637
650
|
input: __S(72, __c9, 0) as any as S.Schema<UpdateRemoteRequest>,
|
|
638
651
|
output: __S(64, __c8, 0) as any as S.Schema<UpdateRemoteResponse>,
|
|
639
|
-
errors: [
|
|
652
|
+
errors: [],
|
|
653
|
+
serviceErrors: SlackServiceErrors,
|
|
640
654
|
protocol: SlackProtocol,
|
|
641
655
|
retry: Retry.Retry,
|
|
642
656
|
telemetry: TELEMETRY,
|
|
@@ -653,7 +667,8 @@ export const uploadFile: API.OperationMethod<
|
|
|
653
667
|
> = /*@__PURE__*/ API.make(() => ({
|
|
654
668
|
input: __S(80, __c10, 0) as any as S.Schema<UploadFileRequest>,
|
|
655
669
|
output: __S(40, __c5, 0) as any as S.Schema<UploadFileResponse>,
|
|
656
|
-
errors: [
|
|
670
|
+
errors: [],
|
|
671
|
+
serviceErrors: SlackServiceErrors,
|
|
657
672
|
protocol: SlackProtocol,
|
|
658
673
|
retry: Retry.Retry,
|
|
659
674
|
telemetry: TELEMETRY,
|