@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.16
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/lib/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +39 -34
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +31 -31
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +41 -41
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +9 -9
- package/lib/pagination.d.ts +2 -2
- package/lib/pagination.js +28 -28
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +61 -59
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +34 -33
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +123 -575
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +304 -2878
- package/lib/services/agents.d.ts +13 -55
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +48 -309
- package/lib/services/api.d.ts +0 -4
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +16 -18
- package/lib/services/apps.d.ts +25 -106
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +84 -509
- package/lib/services/assistant.d.ts +6 -40
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +33 -204
- package/lib/services/auth.d.ts +4 -15
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +22 -90
- package/lib/services/blocks.d.ts +1 -7
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +16 -21
- package/lib/services/bookmarks.d.ts +4 -15
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +27 -76
- package/lib/services/bots.d.ts +1 -9
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +17 -54
- package/lib/services/calls.d.ts +6 -22
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -110
- package/lib/services/canvases.d.ts +7 -35
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +39 -135
- package/lib/services/chat.d.ts +14 -83
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +59 -381
- package/lib/services/conversations.d.ts +31 -116
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +94 -690
- package/lib/services/dialog.d.ts +1 -4
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +13 -17
- package/lib/services/dnd.d.ts +5 -17
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +26 -91
- package/lib/services/emoji.d.ts +1 -8
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +18 -29
- package/lib/services/entity.d.ts +4 -16
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +29 -71
- package/lib/services/files.d.ts +16 -80
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +75 -433
- package/lib/services/functions.d.ts +8 -49
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +45 -203
- package/lib/services/lists.d.ts +13 -55
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +53 -248
- package/lib/services/migration.d.ts +1 -7
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +18 -27
- package/lib/services/oauth.d.ts +7 -43
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +34 -289
- package/lib/services/openid.d.ts +3 -10
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +19 -79
- package/lib/services/pins.d.ts +3 -13
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +27 -61
- package/lib/services/reactions.d.ts +5 -17
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +30 -96
- package/lib/services/reminders.d.ts +5 -17
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +33 -83
- package/lib/services/rtm.d.ts +2 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +22 -56
- package/lib/services/search.d.ts +4 -35
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +28 -167
- package/lib/services/stars.d.ts +4 -26
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +28 -128
- package/lib/services/team.d.ts +11 -63
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +45 -289
- package/lib/services/tooling.d.ts +2 -5
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +15 -28
- package/lib/services/usergroups.d.ts +7 -31
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +40 -146
- package/lib/services/users.d.ts +14 -48
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +54 -249
- package/lib/services/views.d.ts +4 -14
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +28 -73
- package/lib/services/workflows.d.ts +8 -51
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +37 -188
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +14 -10
- package/src/credentials.ts +20 -21
- package/src/errors.ts +31 -27
- package/src/index.ts +1 -1
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +30 -29
- package/src/retry.ts +6 -6
- package/src/services/admin.ts +2717 -3451
- package/src/services/agents.ts +380 -370
- package/src/services/api.ts +31 -21
- package/src/services/apps.ts +569 -621
- package/src/services/assistant.ts +235 -270
- package/src/services/auth.ts +118 -100
- package/src/services/blocks.ts +33 -29
- package/src/services/bookmarks.ts +101 -83
- package/src/services/bots.ts +74 -67
- package/src/services/calls.ts +118 -124
- package/src/services/canvases.ts +171 -178
- package/src/services/chat.ts +428 -496
- package/src/services/conversations.ts +675 -761
- package/src/services/dialog.ts +30 -17
- package/src/services/dnd.ts +125 -99
- package/src/services/emoji.ts +46 -42
- package/src/services/entity.ts +94 -92
- package/src/services/files.ts +536 -531
- package/src/services/functions.ts +209 -274
- package/src/services/lists.ts +289 -304
- package/src/services/migration.ts +39 -37
- package/src/services/oauth.ts +345 -361
- package/src/services/openid.ts +137 -122
- package/src/services/pins.ts +83 -70
- package/src/services/reactions.ts +119 -103
- package/src/services/reminders.ts +112 -90
- package/src/services/rtm.ts +73 -65
- package/src/services/search.ts +193 -244
- package/src/services/stars.ts +101 -160
- package/src/services/team.ts +333 -369
- package/src/services/tooling.ts +43 -30
- package/src/services/usergroups.ts +175 -179
- package/src/services/users.ts +301 -268
- package/src/services/views.ts +85 -80
- package/src/services/workflows.ts +184 -269
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -288
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/admin.js.map +0 -1
- package/lib/services/agents.js.map +0 -1
- package/lib/services/api.js.map +0 -1
- package/lib/services/apps.js.map +0 -1
- package/lib/services/assistant.js.map +0 -1
- package/lib/services/auth.js.map +0 -1
- package/lib/services/blocks.js.map +0 -1
- package/lib/services/bookmarks.js.map +0 -1
- package/lib/services/bots.js.map +0 -1
- package/lib/services/calls.js.map +0 -1
- package/lib/services/canvases.js.map +0 -1
- package/lib/services/chat.js.map +0 -1
- package/lib/services/conversations.js.map +0 -1
- package/lib/services/dialog.js.map +0 -1
- package/lib/services/dnd.js.map +0 -1
- package/lib/services/emoji.js.map +0 -1
- package/lib/services/entity.js.map +0 -1
- package/lib/services/files.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/lists.js.map +0 -1
- package/lib/services/migration.js.map +0 -1
- package/lib/services/oauth.js.map +0 -1
- package/lib/services/openid.js.map +0 -1
- package/lib/services/pins.js.map +0 -1
- package/lib/services/reactions.js.map +0 -1
- package/lib/services/reminders.js.map +0 -1
- package/lib/services/rtm.js.map +0 -1
- package/lib/services/search.js.map +0 -1
- package/lib/services/stars.js.map +0 -1
- package/lib/services/team.js.map +0 -1
- package/lib/services/tooling.js.map +0 -1
- package/lib/services/usergroups.js.map +0 -1
- package/lib/services/users.js.map +0 -1
- package/lib/services/views.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -372
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
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
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
4
5
|
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
5
6
|
import { slackPaginate } from "../pagination.ts";
|
|
6
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { SlackOpError, SlackOpContext };
|
|
11
14
|
|
|
@@ -16,26 +19,13 @@ export interface AcceptSharedInviteRequest {
|
|
|
16
19
|
is_private?: boolean;
|
|
17
20
|
/** Whether you'd like to use your workspace's free trial to begin using Slack Connect. */
|
|
18
21
|
free_trial_accepted?: boolean;
|
|
19
|
-
/** ID of the invite that you
|
|
22
|
+
/** ID of the invite that you'd like to accept. Must provide either `invite_id` or `channel_id`. See the [`shared_channel_invite_received`](/reference/events/shared_channel_invite_received) event payload for more details on how to retrieve the ID of the invitation. */
|
|
20
23
|
invite_id?: string;
|
|
21
24
|
/** ID of the channel that you'd like to accept. Must provide either `invite_id` or `channel_id`. */
|
|
22
25
|
channel_id?: string;
|
|
23
26
|
/** The ID of the workspace to accept the channel in. If an org-level token is used to call this method, the `team_id` argument is required. */
|
|
24
27
|
team_id?: string;
|
|
25
28
|
}
|
|
26
|
-
export const AcceptSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
27
|
-
S.Struct({
|
|
28
|
-
channel_name: S.String,
|
|
29
|
-
is_private: S.optional(S.Boolean),
|
|
30
|
-
free_trial_accepted: S.optional(S.Boolean),
|
|
31
|
-
invite_id: S.optional(S.String),
|
|
32
|
-
channel_id: S.optional(S.String),
|
|
33
|
-
team_id: S.optional(S.String),
|
|
34
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.acceptSharedInvite", code: 200 })),
|
|
35
|
-
).annotate({
|
|
36
|
-
identifier: "AcceptSharedInviteRequest",
|
|
37
|
-
}) as any as S.Schema<AcceptSharedInviteRequest>;
|
|
38
|
-
|
|
39
29
|
export interface AcceptSharedInviteResponse {
|
|
40
30
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
41
31
|
ok: boolean;
|
|
@@ -46,18 +36,6 @@ export interface AcceptSharedInviteResponse {
|
|
|
46
36
|
/** Indicates if the acceptor can SCDM the inviter */
|
|
47
37
|
can_open_scdm: boolean;
|
|
48
38
|
}
|
|
49
|
-
export const AcceptSharedInviteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
50
|
-
S.Struct({
|
|
51
|
-
ok: S.Boolean,
|
|
52
|
-
implicit_approval: S.Boolean,
|
|
53
|
-
channel_id: S.String,
|
|
54
|
-
invite_id: S.String,
|
|
55
|
-
can_open_scdm: S.Boolean,
|
|
56
|
-
}),
|
|
57
|
-
).annotate({
|
|
58
|
-
identifier: "AcceptSharedInviteResponse",
|
|
59
|
-
}) as any as S.Schema<AcceptSharedInviteResponse>;
|
|
60
|
-
|
|
61
39
|
/** Object describing the text to send along with the invite. If this object is specified, both `text` and `is_override` are required properties. If `is_override` is set to `true`, `text` will override the original invitation message. Otherwise, `text` will be appended to the original invitation message. The total length of the message cannot exceed 560 characters. If `is_override` is set to `false`, the length of `text` and the user specified message on the invite request in total must be less than 560 characters. */
|
|
62
40
|
export interface ApproveRequestSharedInviteRequestMessage {
|
|
63
41
|
/** text to include along with email invite */
|
|
@@ -65,15 +43,6 @@ export interface ApproveRequestSharedInviteRequestMessage {
|
|
|
65
43
|
/** When true will override the user specified message. Otherwise text will be appended to the user specified message on the invite request. */
|
|
66
44
|
is_override: boolean;
|
|
67
45
|
}
|
|
68
|
-
export const ApproveRequestSharedInviteRequestMessage = /*@__PURE__*/ S.suspend(() =>
|
|
69
|
-
S.Struct({
|
|
70
|
-
text: S.String,
|
|
71
|
-
is_override: S.Boolean,
|
|
72
|
-
}),
|
|
73
|
-
).annotate({
|
|
74
|
-
identifier: "ApproveRequestSharedInviteRequestMessage",
|
|
75
|
-
}) as any as S.Schema<ApproveRequestSharedInviteRequestMessage>;
|
|
76
|
-
|
|
77
46
|
export interface ApproveRequestSharedInviteRequest {
|
|
78
47
|
/** ID of the requested shared channel invite to approve. */
|
|
79
48
|
invite_id: string;
|
|
@@ -84,17 +53,6 @@ export interface ApproveRequestSharedInviteRequest {
|
|
|
84
53
|
/** Object describing the text to send along with the invite. If this object is specified, both `text` and `is_override` are required properties. If `is_override` is set to `true`, `text` will override the original invitation message. Otherwise, `text` will be appended to the original invitation message. The total length of the message cannot exceed 560 characters. If `is_override` is set to `false`, the length of `text` and the user specified message on the invite request in total must be less than 560 characters. */
|
|
85
54
|
message?: ApproveRequestSharedInviteRequestMessage;
|
|
86
55
|
}
|
|
87
|
-
export const ApproveRequestSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
88
|
-
S.Struct({
|
|
89
|
-
invite_id: S.String,
|
|
90
|
-
is_external_limited: S.optional(S.Boolean),
|
|
91
|
-
channel_id: S.optional(S.String),
|
|
92
|
-
message: S.optional(ApproveRequestSharedInviteRequestMessage),
|
|
93
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.approve", code: 200 })),
|
|
94
|
-
).annotate({
|
|
95
|
-
identifier: "ApproveRequestSharedInviteRequest",
|
|
96
|
-
}) as any as S.Schema<ApproveRequestSharedInviteRequest>;
|
|
97
|
-
|
|
98
56
|
export interface ApproveRequestSharedInviteResponse {
|
|
99
57
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
100
58
|
ok: boolean;
|
|
@@ -102,95 +60,33 @@ export interface ApproveRequestSharedInviteResponse {
|
|
|
102
60
|
confirmation_code?: string;
|
|
103
61
|
url?: string;
|
|
104
62
|
}
|
|
105
|
-
export const ApproveRequestSharedInviteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
106
|
-
S.Struct({
|
|
107
|
-
ok: S.Boolean,
|
|
108
|
-
invite_id: S.String,
|
|
109
|
-
confirmation_code: S.optional(S.String),
|
|
110
|
-
url: S.optional(S.String),
|
|
111
|
-
}),
|
|
112
|
-
).annotate({
|
|
113
|
-
identifier: "ApproveRequestSharedInviteResponse",
|
|
114
|
-
}) as any as S.Schema<ApproveRequestSharedInviteResponse>;
|
|
115
|
-
|
|
116
63
|
export interface ApproveSharedInviteRequest {
|
|
117
64
|
/** ID of the shared channel invite to approve */
|
|
118
65
|
invite_id: string;
|
|
119
66
|
/** The team or enterprise ID of the receiving party involved in the invitation you are approving */
|
|
120
67
|
target_team?: string;
|
|
121
68
|
}
|
|
122
|
-
export const ApproveSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
123
|
-
S.Struct({
|
|
124
|
-
invite_id: S.String,
|
|
125
|
-
target_team: S.optional(S.String),
|
|
126
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.approveSharedInvite", code: 200 })),
|
|
127
|
-
).annotate({
|
|
128
|
-
identifier: "ApproveSharedInviteRequest",
|
|
129
|
-
}) as any as S.Schema<ApproveSharedInviteRequest>;
|
|
130
|
-
|
|
131
69
|
export interface ApproveSharedInviteResponse {
|
|
132
70
|
ok: boolean;
|
|
133
71
|
}
|
|
134
|
-
export const ApproveSharedInviteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
135
|
-
S.Struct({
|
|
136
|
-
ok: S.Boolean,
|
|
137
|
-
}),
|
|
138
|
-
).annotate({
|
|
139
|
-
identifier: "ApproveSharedInviteResponse",
|
|
140
|
-
}) as any as S.Schema<ApproveSharedInviteResponse>;
|
|
141
|
-
|
|
142
72
|
export interface ArchiveConversationRequest {
|
|
143
73
|
/** ID of conversation to archive */
|
|
144
74
|
channel: string;
|
|
145
75
|
}
|
|
146
|
-
export const ArchiveConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
147
|
-
S.Struct({
|
|
148
|
-
channel: S.String,
|
|
149
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.archive", code: 200 })),
|
|
150
|
-
).annotate({
|
|
151
|
-
identifier: "ArchiveConversationRequest",
|
|
152
|
-
}) as any as S.Schema<ArchiveConversationRequest>;
|
|
153
|
-
|
|
154
76
|
export interface ArchiveConversationResponse {
|
|
155
77
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
156
78
|
ok: boolean;
|
|
157
79
|
}
|
|
158
|
-
export const ArchiveConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
-
S.Struct({
|
|
160
|
-
ok: S.Boolean,
|
|
161
|
-
}),
|
|
162
|
-
).annotate({
|
|
163
|
-
identifier: "ArchiveConversationResponse",
|
|
164
|
-
}) as any as S.Schema<ArchiveConversationResponse>;
|
|
165
|
-
|
|
166
80
|
export interface ConversationsCloseRequest {
|
|
167
81
|
/** Conversation to close. */
|
|
168
82
|
channel: string;
|
|
169
83
|
}
|
|
170
|
-
export const ConversationsCloseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
171
|
-
S.Struct({
|
|
172
|
-
channel: S.String,
|
|
173
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.close", code: 200 })),
|
|
174
|
-
).annotate({
|
|
175
|
-
identifier: "ConversationsCloseRequest",
|
|
176
|
-
}) as any as S.Schema<ConversationsCloseRequest>;
|
|
177
|
-
|
|
178
84
|
export interface ConversationsCloseResponse {
|
|
179
85
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
180
86
|
ok: boolean;
|
|
181
87
|
already_closed?: boolean;
|
|
182
88
|
no_op?: boolean;
|
|
183
89
|
}
|
|
184
|
-
export const ConversationsCloseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
185
|
-
S.Struct({
|
|
186
|
-
ok: S.Boolean,
|
|
187
|
-
already_closed: S.optional(S.Boolean),
|
|
188
|
-
no_op: S.optional(S.Boolean),
|
|
189
|
-
}),
|
|
190
|
-
).annotate({
|
|
191
|
-
identifier: "ConversationsCloseResponse",
|
|
192
|
-
}) as any as S.Schema<ConversationsCloseResponse>;
|
|
193
|
-
|
|
194
90
|
export interface ConversationsHistoryRequest {
|
|
195
91
|
/** Conversation ID to fetch history for. */
|
|
196
92
|
channel: string;
|
|
@@ -207,80 +103,22 @@ export interface ConversationsHistoryRequest {
|
|
|
207
103
|
/** Only messages after this Unix timestamp will be included in results. */
|
|
208
104
|
oldest?: string;
|
|
209
105
|
}
|
|
210
|
-
export const ConversationsHistoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
211
|
-
S.Struct({
|
|
212
|
-
channel: S.String.pipe(T.Query()),
|
|
213
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
214
|
-
include_all_metadata: S.optional(S.Boolean.pipe(T.Query())),
|
|
215
|
-
inclusive: S.optional(S.Boolean.pipe(T.Query())),
|
|
216
|
-
latest: S.optional(S.String.pipe(T.Query())),
|
|
217
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
218
|
-
oldest: S.optional(S.String.pipe(T.Query())),
|
|
219
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.history", code: 200 })),
|
|
220
|
-
).annotate({
|
|
221
|
-
identifier: "ConversationsHistoryRequest",
|
|
222
|
-
}) as any as S.Schema<ConversationsHistoryRequest>;
|
|
223
|
-
|
|
224
106
|
export type ConversationsHistoryResponseMessagesList = Array<unknown>;
|
|
225
|
-
export const ConversationsHistoryResponseMessagesList = /*@__PURE__*/ S.Array(
|
|
226
|
-
S.Unknown,
|
|
227
|
-
) as any as S.Schema<ConversationsHistoryResponseMessagesList>;
|
|
228
|
-
|
|
229
107
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
230
108
|
export interface ConversationsHistoryResponseResponseMetadata {
|
|
231
|
-
/** Cursor for the next page
|
|
109
|
+
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
232
110
|
next_cursor?: string;
|
|
233
111
|
}
|
|
234
|
-
export const ConversationsHistoryResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
235
|
-
S.Struct({
|
|
236
|
-
next_cursor: S.optional(S.String),
|
|
237
|
-
}),
|
|
238
|
-
).annotate({
|
|
239
|
-
identifier: "ConversationsHistoryResponseResponseMetadata",
|
|
240
|
-
}) as any as S.Schema<ConversationsHistoryResponseResponseMetadata>;
|
|
241
|
-
|
|
242
112
|
export type ConversationsHistoryResponseUsersMap = { [key: string]: unknown | undefined };
|
|
243
|
-
export const ConversationsHistoryResponseUsersMap = /*@__PURE__*/ S.Record(
|
|
244
|
-
S.String,
|
|
245
|
-
S.Unknown,
|
|
246
|
-
) as any as S.Schema<ConversationsHistoryResponseUsersMap>;
|
|
247
|
-
|
|
248
113
|
export type ConversationsHistoryResponseDeletedList = Array<string>;
|
|
249
|
-
export const ConversationsHistoryResponseDeletedList = /*@__PURE__*/ S.Array(
|
|
250
|
-
S.String,
|
|
251
|
-
) as any as S.Schema<ConversationsHistoryResponseDeletedList>;
|
|
252
|
-
|
|
253
114
|
export interface ConversationsHistoryResponseMutationTimestamps {
|
|
254
115
|
latest: string;
|
|
255
116
|
updated: string;
|
|
256
117
|
history_invalid: string;
|
|
257
118
|
}
|
|
258
|
-
export const ConversationsHistoryResponseMutationTimestamps = /*@__PURE__*/ S.suspend(() =>
|
|
259
|
-
S.Struct({
|
|
260
|
-
latest: S.String,
|
|
261
|
-
updated: S.String,
|
|
262
|
-
history_invalid: S.String,
|
|
263
|
-
}),
|
|
264
|
-
).annotate({
|
|
265
|
-
identifier: "ConversationsHistoryResponseMutationTimestamps",
|
|
266
|
-
}) as any as S.Schema<ConversationsHistoryResponseMutationTimestamps>;
|
|
267
|
-
|
|
268
119
|
export type ConversationsHistoryResponseWarningsList = Array<string>;
|
|
269
|
-
export const ConversationsHistoryResponseWarningsList = /*@__PURE__*/ S.Array(
|
|
270
|
-
S.String,
|
|
271
|
-
) as any as S.Schema<ConversationsHistoryResponseWarningsList>;
|
|
272
|
-
|
|
273
120
|
export type ConversationsHistoryResponseLatestUpdatesMap = { [key: string]: unknown | undefined };
|
|
274
|
-
export const ConversationsHistoryResponseLatestUpdatesMap = /*@__PURE__*/ S.Record(
|
|
275
|
-
S.String,
|
|
276
|
-
S.Unknown,
|
|
277
|
-
) as any as S.Schema<ConversationsHistoryResponseLatestUpdatesMap>;
|
|
278
|
-
|
|
279
121
|
export type ConversationsHistoryResponseUnchangedMessagesList = Array<string>;
|
|
280
|
-
export const ConversationsHistoryResponseUnchangedMessagesList = /*@__PURE__*/ S.Array(
|
|
281
|
-
S.String,
|
|
282
|
-
) as any as S.Schema<ConversationsHistoryResponseUnchangedMessagesList>;
|
|
283
|
-
|
|
284
122
|
export interface ConversationsHistoryResponse {
|
|
285
123
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
286
124
|
ok: boolean;
|
|
@@ -306,33 +144,6 @@ export interface ConversationsHistoryResponse {
|
|
|
306
144
|
/** Unix timestamp of when the user joined the channel */
|
|
307
145
|
date_joined?: number;
|
|
308
146
|
}
|
|
309
|
-
export const ConversationsHistoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
310
|
-
S.Struct({
|
|
311
|
-
ok: S.Boolean,
|
|
312
|
-
messages: ConversationsHistoryResponseMessagesList,
|
|
313
|
-
has_more: S.Boolean,
|
|
314
|
-
pin_count: S.optional(S.Number),
|
|
315
|
-
channel_actions_ts: S.Unknown,
|
|
316
|
-
channel_actions_count: S.Number,
|
|
317
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
318
|
-
oldest: S.optional(S.String),
|
|
319
|
-
is_limited: S.optional(S.Boolean),
|
|
320
|
-
latest: S.optional(S.String),
|
|
321
|
-
unread_count_display: S.optional(S.Number),
|
|
322
|
-
users: S.optional(ConversationsHistoryResponseUsersMap),
|
|
323
|
-
deleted: S.optional(ConversationsHistoryResponseDeletedList),
|
|
324
|
-
mutation_timestamps: S.optional(ConversationsHistoryResponseMutationTimestamps),
|
|
325
|
-
deleted_overflow: S.optional(S.Boolean),
|
|
326
|
-
warnings: S.optional(ConversationsHistoryResponseWarningsList),
|
|
327
|
-
next_ts: S.optional(S.Number),
|
|
328
|
-
latest_updates: S.optional(ConversationsHistoryResponseLatestUpdatesMap),
|
|
329
|
-
unchanged_messages: S.optional(ConversationsHistoryResponseUnchangedMessagesList),
|
|
330
|
-
date_joined: S.optional(S.Number),
|
|
331
|
-
}),
|
|
332
|
-
).annotate({
|
|
333
|
-
identifier: "ConversationsHistoryResponse",
|
|
334
|
-
}) as any as S.Schema<ConversationsHistoryResponse>;
|
|
335
|
-
|
|
336
147
|
export interface ConversationsInfoRequest {
|
|
337
148
|
/** Conversation ID to learn more about */
|
|
338
149
|
channel: string;
|
|
@@ -341,14 +152,6 @@ export interface ConversationsInfoRequest {
|
|
|
341
152
|
/** Set to `true` to include the member count for the specified conversation. Defaults to `false` */
|
|
342
153
|
include_num_members?: boolean;
|
|
343
154
|
}
|
|
344
|
-
export const ConversationsInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
345
|
-
S.Struct({
|
|
346
|
-
channel: S.String.pipe(T.Query()),
|
|
347
|
-
include_locale: S.optional(S.Boolean.pipe(T.Query())),
|
|
348
|
-
include_num_members: S.optional(S.Boolean.pipe(T.Query())),
|
|
349
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.info", code: 200 })),
|
|
350
|
-
).annotate({ identifier: "ConversationsInfoRequest" }) as any as S.Schema<ConversationsInfoRequest>;
|
|
351
|
-
|
|
352
155
|
export interface ConversationsInfoResponse {
|
|
353
156
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
354
157
|
ok: boolean;
|
|
@@ -356,67 +159,26 @@ export interface ConversationsInfoResponse {
|
|
|
356
159
|
channel: unknown;
|
|
357
160
|
home_view?: unknown | null;
|
|
358
161
|
}
|
|
359
|
-
export const ConversationsInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
360
|
-
S.Struct({
|
|
361
|
-
ok: S.Boolean,
|
|
362
|
-
app_home: S.optional(S.Unknown),
|
|
363
|
-
channel: S.Unknown,
|
|
364
|
-
home_view: S.optional(S.NullOr(S.Unknown)),
|
|
365
|
-
}),
|
|
366
|
-
).annotate({
|
|
367
|
-
identifier: "ConversationsInfoResponse",
|
|
368
|
-
}) as any as S.Schema<ConversationsInfoResponse>;
|
|
369
|
-
|
|
370
162
|
export interface ConversationsKickRequest {
|
|
371
163
|
/** ID of conversation to remove user from. */
|
|
372
164
|
channel: string;
|
|
373
165
|
/** User ID to be removed. */
|
|
374
166
|
user?: string;
|
|
375
167
|
}
|
|
376
|
-
export const ConversationsKickRequest = /*@__PURE__*/ S.suspend(() =>
|
|
377
|
-
S.Struct({
|
|
378
|
-
channel: S.String,
|
|
379
|
-
user: S.optional(S.String),
|
|
380
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.kick", code: 200 })),
|
|
381
|
-
).annotate({ identifier: "ConversationsKickRequest" }) as any as S.Schema<ConversationsKickRequest>;
|
|
382
|
-
|
|
383
168
|
export interface ConversationsKickResponse {
|
|
384
169
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
385
170
|
ok: boolean;
|
|
386
171
|
}
|
|
387
|
-
export const ConversationsKickResponse = /*@__PURE__*/ S.suspend(() =>
|
|
388
|
-
S.Struct({
|
|
389
|
-
ok: S.Boolean,
|
|
390
|
-
}),
|
|
391
|
-
).annotate({
|
|
392
|
-
identifier: "ConversationsKickResponse",
|
|
393
|
-
}) as any as S.Schema<ConversationsKickResponse>;
|
|
394
|
-
|
|
395
172
|
export interface ConversationsMarkRequest {
|
|
396
173
|
/** Channel or conversation to set the read cursor for. */
|
|
397
174
|
channel: string;
|
|
398
175
|
/** Unique identifier of message you want marked as most recently seen in this conversation. */
|
|
399
176
|
ts: string;
|
|
400
177
|
}
|
|
401
|
-
export const ConversationsMarkRequest = /*@__PURE__*/ S.suspend(() =>
|
|
402
|
-
S.Struct({
|
|
403
|
-
channel: S.String,
|
|
404
|
-
ts: S.String,
|
|
405
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.mark", code: 200 })),
|
|
406
|
-
).annotate({ identifier: "ConversationsMarkRequest" }) as any as S.Schema<ConversationsMarkRequest>;
|
|
407
|
-
|
|
408
178
|
export interface ConversationsMarkResponse {
|
|
409
179
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
410
180
|
ok: boolean;
|
|
411
181
|
}
|
|
412
|
-
export const ConversationsMarkResponse = /*@__PURE__*/ S.suspend(() =>
|
|
413
|
-
S.Struct({
|
|
414
|
-
ok: S.Boolean,
|
|
415
|
-
}),
|
|
416
|
-
).annotate({
|
|
417
|
-
identifier: "ConversationsMarkResponse",
|
|
418
|
-
}) as any as S.Schema<ConversationsMarkResponse>;
|
|
419
|
-
|
|
420
182
|
export interface ConversationsMembersRequest {
|
|
421
183
|
/** ID of the conversation to retrieve members for */
|
|
422
184
|
channel: string;
|
|
@@ -425,27 +187,10 @@ export interface ConversationsMembersRequest {
|
|
|
425
187
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. */
|
|
426
188
|
limit?: number;
|
|
427
189
|
}
|
|
428
|
-
export const ConversationsMembersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
429
|
-
S.Struct({
|
|
430
|
-
channel: S.String.pipe(T.Query()),
|
|
431
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
432
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
433
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.members", code: 200 })),
|
|
434
|
-
).annotate({
|
|
435
|
-
identifier: "ConversationsMembersRequest",
|
|
436
|
-
}) as any as S.Schema<ConversationsMembersRequest>;
|
|
437
|
-
|
|
438
190
|
export type ConversationsMembersResponseMembersList = Array<string>;
|
|
439
|
-
export const ConversationsMembersResponseMembersList = /*@__PURE__*/ S.Array(
|
|
440
|
-
S.String,
|
|
441
|
-
) as any as S.Schema<ConversationsMembersResponseMembersList>;
|
|
442
|
-
|
|
443
191
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
444
192
|
export type ConversationsMembersResponseResponseMetadata =
|
|
445
193
|
ConversationsHistoryResponseResponseMetadata;
|
|
446
|
-
export const ConversationsMembersResponseResponseMetadata =
|
|
447
|
-
ConversationsHistoryResponseResponseMetadata;
|
|
448
|
-
|
|
449
194
|
export interface ConversationsMembersResponse {
|
|
450
195
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
451
196
|
ok: boolean;
|
|
@@ -453,16 +198,6 @@ export interface ConversationsMembersResponse {
|
|
|
453
198
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
454
199
|
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
455
200
|
}
|
|
456
|
-
export const ConversationsMembersResponse = /*@__PURE__*/ S.suspend(() =>
|
|
457
|
-
S.Struct({
|
|
458
|
-
ok: S.Boolean,
|
|
459
|
-
members: ConversationsMembersResponseMembersList,
|
|
460
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
461
|
-
}),
|
|
462
|
-
).annotate({
|
|
463
|
-
identifier: "ConversationsMembersResponse",
|
|
464
|
-
}) as any as S.Schema<ConversationsMembersResponse>;
|
|
465
|
-
|
|
466
201
|
export interface ConversationsOpenRequest {
|
|
467
202
|
/** Resume a conversation by supplying an `im` or `mpim`'s ID. Or provide the `users` field instead. */
|
|
468
203
|
channel?: string | null;
|
|
@@ -473,15 +208,6 @@ export interface ConversationsOpenRequest {
|
|
|
473
208
|
/** Do not create a direct message or multi-person direct message. This is used to see if there is an existing dm or mpdm. */
|
|
474
209
|
prevent_creation?: boolean;
|
|
475
210
|
}
|
|
476
|
-
export const ConversationsOpenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
477
|
-
S.Struct({
|
|
478
|
-
channel: S.optional(S.NullOr(S.String)),
|
|
479
|
-
return_im: S.optional(S.Boolean),
|
|
480
|
-
users: S.optional(S.String),
|
|
481
|
-
prevent_creation: S.optional(S.Boolean),
|
|
482
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.open", code: 200 })),
|
|
483
|
-
).annotate({ identifier: "ConversationsOpenRequest" }) as any as S.Schema<ConversationsOpenRequest>;
|
|
484
|
-
|
|
485
211
|
export interface ConversationsOpenResponse {
|
|
486
212
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
487
213
|
ok: boolean;
|
|
@@ -491,19 +217,6 @@ export interface ConversationsOpenResponse {
|
|
|
491
217
|
app_home?: unknown;
|
|
492
218
|
home_view?: unknown | null;
|
|
493
219
|
}
|
|
494
|
-
export const ConversationsOpenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
495
|
-
S.Struct({
|
|
496
|
-
ok: S.Boolean,
|
|
497
|
-
already_open: S.optional(S.Boolean),
|
|
498
|
-
no_op: S.optional(S.Boolean),
|
|
499
|
-
channel: S.optional(S.Unknown),
|
|
500
|
-
app_home: S.optional(S.Unknown),
|
|
501
|
-
home_view: S.optional(S.NullOr(S.Unknown)),
|
|
502
|
-
}),
|
|
503
|
-
).annotate({
|
|
504
|
-
identifier: "ConversationsOpenResponse",
|
|
505
|
-
}) as any as S.Schema<ConversationsOpenResponse>;
|
|
506
|
-
|
|
507
220
|
export interface ConversationsRepliesRequest {
|
|
508
221
|
/** Conversation ID to fetch thread from. */
|
|
509
222
|
channel: string;
|
|
@@ -519,46 +232,15 @@ export interface ConversationsRepliesRequest {
|
|
|
519
232
|
limit?: number;
|
|
520
233
|
/** Only messages after this Unix timestamp will be included in results. */
|
|
521
234
|
oldest?: string;
|
|
522
|
-
/** Unique identifier of either a thread
|
|
235
|
+
/** Unique identifier of either a thread's parent message or a message in the thread. `ts` must be the timestamp of an existing message with 0 or more replies. If there are no replies then just the single message referenced by `ts` will return - it is just an ordinary, unthreaded message. */
|
|
523
236
|
ts: string;
|
|
524
237
|
}
|
|
525
|
-
export const ConversationsRepliesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
526
|
-
S.Struct({
|
|
527
|
-
channel: S.String.pipe(T.Query()),
|
|
528
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
529
|
-
include_all_metadata: S.optional(S.Boolean.pipe(T.Query())),
|
|
530
|
-
inclusive: S.optional(S.Boolean.pipe(T.Query())),
|
|
531
|
-
latest: S.optional(S.String.pipe(T.Query())),
|
|
532
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
533
|
-
oldest: S.optional(S.String.pipe(T.Query())),
|
|
534
|
-
ts: S.String.pipe(T.Query()),
|
|
535
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.replies", code: 200 })),
|
|
536
|
-
).annotate({
|
|
537
|
-
identifier: "ConversationsRepliesRequest",
|
|
538
|
-
}) as any as S.Schema<ConversationsRepliesRequest>;
|
|
539
|
-
|
|
540
238
|
export type ConversationsRepliesResponseMessagesList = Array<unknown>;
|
|
541
|
-
export const ConversationsRepliesResponseMessagesList = /*@__PURE__*/ S.Array(
|
|
542
|
-
S.Unknown,
|
|
543
|
-
) as any as S.Schema<ConversationsRepliesResponseMessagesList>;
|
|
544
|
-
|
|
545
239
|
export type ConversationsRepliesResponseLatestUpdatesMap = { [key: string]: unknown | undefined };
|
|
546
|
-
export const ConversationsRepliesResponseLatestUpdatesMap = /*@__PURE__*/ S.Record(
|
|
547
|
-
S.String,
|
|
548
|
-
S.Unknown,
|
|
549
|
-
) as any as S.Schema<ConversationsRepliesResponseLatestUpdatesMap>;
|
|
550
|
-
|
|
551
240
|
export type ConversationsRepliesResponseUnchangedMessagesList = Array<string>;
|
|
552
|
-
export const ConversationsRepliesResponseUnchangedMessagesList = /*@__PURE__*/ S.Array(
|
|
553
|
-
S.String,
|
|
554
|
-
) as any as S.Schema<ConversationsRepliesResponseUnchangedMessagesList>;
|
|
555
|
-
|
|
556
241
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
557
242
|
export type ConversationsRepliesResponseResponseMetadata =
|
|
558
243
|
ConversationsHistoryResponseResponseMetadata;
|
|
559
|
-
export const ConversationsRepliesResponseResponseMetadata =
|
|
560
|
-
ConversationsHistoryResponseResponseMetadata;
|
|
561
|
-
|
|
562
244
|
export interface ConversationsRepliesResponse {
|
|
563
245
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
564
246
|
ok: boolean;
|
|
@@ -569,19 +251,6 @@ export interface ConversationsRepliesResponse {
|
|
|
569
251
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
570
252
|
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
571
253
|
}
|
|
572
|
-
export const ConversationsRepliesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
573
|
-
S.Struct({
|
|
574
|
-
ok: S.Boolean,
|
|
575
|
-
has_more: S.optional(S.Boolean),
|
|
576
|
-
messages: ConversationsRepliesResponseMessagesList,
|
|
577
|
-
latest_updates: S.optional(ConversationsRepliesResponseLatestUpdatesMap),
|
|
578
|
-
unchanged_messages: S.optional(ConversationsRepliesResponseUnchangedMessagesList),
|
|
579
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
580
|
-
}),
|
|
581
|
-
).annotate({
|
|
582
|
-
identifier: "ConversationsRepliesResponse",
|
|
583
|
-
}) as any as S.Schema<ConversationsRepliesResponse>;
|
|
584
|
-
|
|
585
254
|
export interface CreateCanvaseRequest {
|
|
586
255
|
/** Channel ID of the channel the canvas will be tabbed in. */
|
|
587
256
|
channel_id: string;
|
|
@@ -590,27 +259,12 @@ export interface CreateCanvaseRequest {
|
|
|
590
259
|
/** Title of the newly created canvas */
|
|
591
260
|
title?: string;
|
|
592
261
|
}
|
|
593
|
-
export const CreateCanvaseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
594
|
-
S.Struct({
|
|
595
|
-
channel_id: S.String,
|
|
596
|
-
document_content: S.optional(S.Unknown),
|
|
597
|
-
title: S.optional(S.String),
|
|
598
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.canvases.create", code: 200 })),
|
|
599
|
-
).annotate({ identifier: "CreateCanvaseRequest" }) as any as S.Schema<CreateCanvaseRequest>;
|
|
600
|
-
|
|
601
262
|
export interface CreateCanvaseResponse {
|
|
602
263
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
603
264
|
ok: boolean;
|
|
604
265
|
/** Encoded ID of the canvas */
|
|
605
266
|
canvas_id: string;
|
|
606
267
|
}
|
|
607
|
-
export const CreateCanvaseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
608
|
-
S.Struct({
|
|
609
|
-
ok: S.Boolean,
|
|
610
|
-
canvas_id: S.String,
|
|
611
|
-
}),
|
|
612
|
-
).annotate({ identifier: "CreateCanvaseResponse" }) as any as S.Schema<CreateCanvaseResponse>;
|
|
613
|
-
|
|
614
268
|
export interface CreateConversationRequest {
|
|
615
269
|
/** Create a private channel instead of a public one */
|
|
616
270
|
is_private?: boolean;
|
|
@@ -619,30 +273,11 @@ export interface CreateConversationRequest {
|
|
|
619
273
|
/** encoded team id to create the channel in, required if org token is used */
|
|
620
274
|
team_id?: string | null;
|
|
621
275
|
}
|
|
622
|
-
export const CreateConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
623
|
-
S.Struct({
|
|
624
|
-
is_private: S.optional(S.Boolean),
|
|
625
|
-
name: S.String,
|
|
626
|
-
team_id: S.optional(S.NullOr(S.String)),
|
|
627
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.create", code: 200 })),
|
|
628
|
-
).annotate({
|
|
629
|
-
identifier: "CreateConversationRequest",
|
|
630
|
-
}) as any as S.Schema<CreateConversationRequest>;
|
|
631
|
-
|
|
632
276
|
export interface CreateConversationResponse {
|
|
633
277
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
634
278
|
ok: boolean;
|
|
635
279
|
channel: unknown;
|
|
636
280
|
}
|
|
637
|
-
export const CreateConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
638
|
-
S.Struct({
|
|
639
|
-
ok: S.Boolean,
|
|
640
|
-
channel: S.Unknown,
|
|
641
|
-
}),
|
|
642
|
-
).annotate({
|
|
643
|
-
identifier: "CreateConversationResponse",
|
|
644
|
-
}) as any as S.Schema<CreateConversationResponse>;
|
|
645
|
-
|
|
646
281
|
export interface InviteConversationRequest {
|
|
647
282
|
/** The ID of the public or private channel to invite user(s) to. */
|
|
648
283
|
channel: string;
|
|
@@ -651,21 +286,7 @@ export interface InviteConversationRequest {
|
|
|
651
286
|
/** A comma separated list of user IDs. Up to 1000 users may be listed. */
|
|
652
287
|
users: string;
|
|
653
288
|
}
|
|
654
|
-
export const InviteConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
655
|
-
S.Struct({
|
|
656
|
-
channel: S.String,
|
|
657
|
-
force: S.optional(S.Boolean),
|
|
658
|
-
users: S.String,
|
|
659
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.invite", code: 200 })),
|
|
660
|
-
).annotate({
|
|
661
|
-
identifier: "InviteConversationRequest",
|
|
662
|
-
}) as any as S.Schema<InviteConversationRequest>;
|
|
663
|
-
|
|
664
289
|
export type InviteConversationResponseErrorsList = Array<unknown>;
|
|
665
|
-
export const InviteConversationResponseErrorsList = /*@__PURE__*/ S.Array(
|
|
666
|
-
S.Unknown,
|
|
667
|
-
) as any as S.Schema<InviteConversationResponseErrorsList>;
|
|
668
|
-
|
|
669
290
|
export interface InviteConversationResponse {
|
|
670
291
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
671
292
|
ok: boolean;
|
|
@@ -673,55 +294,19 @@ export interface InviteConversationResponse {
|
|
|
673
294
|
group?: unknown;
|
|
674
295
|
errors?: InviteConversationResponseErrorsList;
|
|
675
296
|
}
|
|
676
|
-
export const InviteConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
677
|
-
S.Struct({
|
|
678
|
-
ok: S.Boolean,
|
|
679
|
-
channel: S.optional(S.Unknown),
|
|
680
|
-
group: S.optional(S.Unknown),
|
|
681
|
-
errors: S.optional(InviteConversationResponseErrorsList),
|
|
682
|
-
}),
|
|
683
|
-
).annotate({
|
|
684
|
-
identifier: "InviteConversationResponse",
|
|
685
|
-
}) as any as S.Schema<InviteConversationResponse>;
|
|
686
|
-
|
|
687
297
|
export interface InviteDeclineSharedRequest {
|
|
688
298
|
/** ID of the Slack Connect invite to decline. Subscribe to the [`shared_channel_invite_accepted`](/reference/events/shared_channel_invite_accepted) event to receive IDs of Slack Connect channel invites that have been accepted and are awaiting approval. */
|
|
689
299
|
invite_id: string;
|
|
690
300
|
/** The team or enterprise id of the other party involved in the invitation you are declining */
|
|
691
301
|
target_team?: string;
|
|
692
302
|
}
|
|
693
|
-
export const InviteDeclineSharedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
694
|
-
S.Struct({
|
|
695
|
-
invite_id: S.String.pipe(T.Query()),
|
|
696
|
-
target_team: S.optional(S.String.pipe(T.Query())),
|
|
697
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.declineSharedInvite", code: 200 })),
|
|
698
|
-
).annotate({
|
|
699
|
-
identifier: "InviteDeclineSharedRequest",
|
|
700
|
-
}) as any as S.Schema<InviteDeclineSharedRequest>;
|
|
701
|
-
|
|
702
303
|
export interface InviteDeclineSharedResponse {
|
|
703
304
|
ok: boolean;
|
|
704
305
|
}
|
|
705
|
-
export const InviteDeclineSharedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
706
|
-
S.Struct({
|
|
707
|
-
ok: S.Boolean,
|
|
708
|
-
}),
|
|
709
|
-
).annotate({
|
|
710
|
-
identifier: "InviteDeclineSharedResponse",
|
|
711
|
-
}) as any as S.Schema<InviteDeclineSharedResponse>;
|
|
712
|
-
|
|
713
306
|
/** Optional email to receive this invite. Either `emails` or `user_ids` must be provided. Only one email or one user ID may be invited at a time. */
|
|
714
307
|
export type InviteSharedRequestEmailsList = Array<string>;
|
|
715
|
-
export const InviteSharedRequestEmailsList = /*@__PURE__*/ S.Array(
|
|
716
|
-
S.String,
|
|
717
|
-
) as any as S.Schema<InviteSharedRequestEmailsList>;
|
|
718
|
-
|
|
719
308
|
/** Optional user_id to receive this invite. Either `emails` or `user_ids` must be provided. Only one email or one user ID may be invited at a time. */
|
|
720
309
|
export type InviteSharedRequestUserIdsList = Array<string>;
|
|
721
|
-
export const InviteSharedRequestUserIdsList = /*@__PURE__*/ S.Array(
|
|
722
|
-
S.String,
|
|
723
|
-
) as any as S.Schema<InviteSharedRequestUserIdsList>;
|
|
724
|
-
|
|
725
310
|
export interface InviteSharedRequest {
|
|
726
311
|
/** ID of the channel on your team that you'd like to share */
|
|
727
312
|
channel: string;
|
|
@@ -732,15 +317,6 @@ export interface InviteSharedRequest {
|
|
|
732
317
|
/** Optional boolean on whether invite is to an external limited member. Defaults to `true`. */
|
|
733
318
|
external_limited?: boolean;
|
|
734
319
|
}
|
|
735
|
-
export const InviteSharedRequest = /*@__PURE__*/ S.suspend(() =>
|
|
736
|
-
S.Struct({
|
|
737
|
-
channel: S.String,
|
|
738
|
-
emails: S.optional(InviteSharedRequestEmailsList),
|
|
739
|
-
user_ids: S.optional(InviteSharedRequestUserIdsList),
|
|
740
|
-
external_limited: S.optional(S.Boolean),
|
|
741
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.inviteShared", code: 200 })),
|
|
742
|
-
).annotate({ identifier: "InviteSharedRequest" }) as any as S.Schema<InviteSharedRequest>;
|
|
743
|
-
|
|
744
320
|
export interface InviteSharedResponse {
|
|
745
321
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
746
322
|
ok: boolean;
|
|
@@ -749,80 +325,29 @@ export interface InviteSharedResponse {
|
|
|
749
325
|
conf_code?: string;
|
|
750
326
|
is_legacy_shared_channel?: boolean;
|
|
751
327
|
}
|
|
752
|
-
export const InviteSharedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
753
|
-
S.Struct({
|
|
754
|
-
ok: S.Boolean,
|
|
755
|
-
url: S.optional(S.String),
|
|
756
|
-
invite_id: S.optional(S.String),
|
|
757
|
-
conf_code: S.optional(S.String),
|
|
758
|
-
is_legacy_shared_channel: S.optional(S.Boolean),
|
|
759
|
-
}),
|
|
760
|
-
).annotate({ identifier: "InviteSharedResponse" }) as any as S.Schema<InviteSharedResponse>;
|
|
761
|
-
|
|
762
328
|
export interface JoinConversationRequest {
|
|
763
329
|
/** ID of conversation to join */
|
|
764
330
|
channel: string;
|
|
765
331
|
}
|
|
766
|
-
export const JoinConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
767
|
-
S.Struct({
|
|
768
|
-
channel: S.String,
|
|
769
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.join", code: 200 })),
|
|
770
|
-
).annotate({ identifier: "JoinConversationRequest" }) as any as S.Schema<JoinConversationRequest>;
|
|
771
|
-
|
|
772
332
|
export type JoinConversationResponseResponseMetadataWarningsList = Array<string>;
|
|
773
|
-
export const JoinConversationResponseResponseMetadataWarningsList = /*@__PURE__*/ S.Array(
|
|
774
|
-
S.String,
|
|
775
|
-
) as any as S.Schema<JoinConversationResponseResponseMetadataWarningsList>;
|
|
776
|
-
|
|
777
333
|
export interface JoinConversationResponseResponseMetadata {
|
|
778
334
|
warnings?: JoinConversationResponseResponseMetadataWarningsList;
|
|
779
335
|
}
|
|
780
|
-
export const JoinConversationResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
781
|
-
S.Struct({
|
|
782
|
-
warnings: S.optional(JoinConversationResponseResponseMetadataWarningsList),
|
|
783
|
-
}),
|
|
784
|
-
).annotate({
|
|
785
|
-
identifier: "JoinConversationResponseResponseMetadata",
|
|
786
|
-
}) as any as S.Schema<JoinConversationResponseResponseMetadata>;
|
|
787
|
-
|
|
788
336
|
export interface JoinConversationResponse {
|
|
789
337
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
790
338
|
ok: boolean;
|
|
791
339
|
channel: unknown;
|
|
792
340
|
response_metadata?: JoinConversationResponseResponseMetadata;
|
|
793
341
|
}
|
|
794
|
-
export const JoinConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
795
|
-
S.Struct({
|
|
796
|
-
ok: S.Boolean,
|
|
797
|
-
channel: S.Unknown,
|
|
798
|
-
response_metadata: S.optional(JoinConversationResponseResponseMetadata),
|
|
799
|
-
}),
|
|
800
|
-
).annotate({ identifier: "JoinConversationResponse" }) as any as S.Schema<JoinConversationResponse>;
|
|
801
|
-
|
|
802
342
|
export interface LeaveConversationRequest {
|
|
803
343
|
/** Conversation to leave */
|
|
804
344
|
channel: string;
|
|
805
345
|
}
|
|
806
|
-
export const LeaveConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
807
|
-
S.Struct({
|
|
808
|
-
channel: S.String,
|
|
809
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.leave", code: 200 })),
|
|
810
|
-
).annotate({ identifier: "LeaveConversationRequest" }) as any as S.Schema<LeaveConversationRequest>;
|
|
811
|
-
|
|
812
346
|
export interface LeaveConversationResponse {
|
|
813
347
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
814
348
|
ok: boolean;
|
|
815
349
|
not_in_channel?: boolean;
|
|
816
350
|
}
|
|
817
|
-
export const LeaveConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
818
|
-
S.Struct({
|
|
819
|
-
ok: S.Boolean,
|
|
820
|
-
not_in_channel: S.optional(S.Boolean),
|
|
821
|
-
}),
|
|
822
|
-
).annotate({
|
|
823
|
-
identifier: "LeaveConversationResponse",
|
|
824
|
-
}) as any as S.Schema<LeaveConversationResponse>;
|
|
825
|
-
|
|
826
351
|
export interface ListConnectInvitesRequest {
|
|
827
352
|
/** Encoded team id for the workspace to retrieve invites for, required if org token is used */
|
|
828
353
|
team_id?: string;
|
|
@@ -831,27 +356,10 @@ export interface ListConnectInvitesRequest {
|
|
|
831
356
|
/** Set to `next_cursor` returned by previous call to list items in subsequent page */
|
|
832
357
|
cursor?: string;
|
|
833
358
|
}
|
|
834
|
-
export const ListConnectInvitesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
835
|
-
S.Struct({
|
|
836
|
-
team_id: S.optional(S.String),
|
|
837
|
-
count: S.optional(S.Number),
|
|
838
|
-
cursor: S.optional(S.String),
|
|
839
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.listConnectInvites", code: 200 })),
|
|
840
|
-
).annotate({
|
|
841
|
-
identifier: "ListConnectInvitesRequest",
|
|
842
|
-
}) as any as S.Schema<ListConnectInvitesRequest>;
|
|
843
|
-
|
|
844
359
|
export type ListConnectInvitesResponseInvitesList = Array<unknown>;
|
|
845
|
-
export const ListConnectInvitesResponseInvitesList = /*@__PURE__*/ S.Array(
|
|
846
|
-
S.Unknown,
|
|
847
|
-
) as any as S.Schema<ListConnectInvitesResponseInvitesList>;
|
|
848
|
-
|
|
849
360
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
850
361
|
export type ListConnectInvitesResponseResponseMetadata =
|
|
851
362
|
ConversationsHistoryResponseResponseMetadata;
|
|
852
|
-
export const ListConnectInvitesResponseResponseMetadata =
|
|
853
|
-
ConversationsHistoryResponseResponseMetadata;
|
|
854
|
-
|
|
855
363
|
export interface ListConnectInvitesResponse {
|
|
856
364
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
857
365
|
ok: boolean;
|
|
@@ -859,16 +367,6 @@ export interface ListConnectInvitesResponse {
|
|
|
859
367
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
860
368
|
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
861
369
|
}
|
|
862
|
-
export const ListConnectInvitesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
863
|
-
S.Struct({
|
|
864
|
-
ok: S.Boolean,
|
|
865
|
-
invites: ListConnectInvitesResponseInvitesList,
|
|
866
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
867
|
-
}),
|
|
868
|
-
).annotate({
|
|
869
|
-
identifier: "ListConnectInvitesResponse",
|
|
870
|
-
}) as any as S.Schema<ListConnectInvitesResponse>;
|
|
871
|
-
|
|
872
370
|
export interface ListConversationsRequest {
|
|
873
371
|
/** 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. */
|
|
874
372
|
cursor?: string;
|
|
@@ -881,27 +379,10 @@ export interface ListConversationsRequest {
|
|
|
881
379
|
/** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im` */
|
|
882
380
|
types?: string;
|
|
883
381
|
}
|
|
884
|
-
export const ListConversationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
885
|
-
S.Struct({
|
|
886
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
887
|
-
exclude_archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
888
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
889
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
890
|
-
types: S.optional(S.String.pipe(T.Query())),
|
|
891
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.list", code: 200 })),
|
|
892
|
-
).annotate({ identifier: "ListConversationsRequest" }) as any as S.Schema<ListConversationsRequest>;
|
|
893
|
-
|
|
894
382
|
export type ListConversationsResponseChannelsList = Array<unknown>;
|
|
895
|
-
export const ListConversationsResponseChannelsList = /*@__PURE__*/ S.Array(
|
|
896
|
-
S.Unknown,
|
|
897
|
-
) as any as S.Schema<ListConversationsResponseChannelsList>;
|
|
898
|
-
|
|
899
383
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
900
384
|
export type ListConversationsResponseResponseMetadata =
|
|
901
385
|
ConversationsHistoryResponseResponseMetadata;
|
|
902
|
-
export const ListConversationsResponseResponseMetadata =
|
|
903
|
-
ConversationsHistoryResponseResponseMetadata;
|
|
904
|
-
|
|
905
386
|
export interface ListConversationsResponse {
|
|
906
387
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
907
388
|
ok: boolean;
|
|
@@ -909,22 +390,8 @@ export interface ListConversationsResponse {
|
|
|
909
390
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
910
391
|
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
911
392
|
}
|
|
912
|
-
export const ListConversationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
913
|
-
S.Struct({
|
|
914
|
-
ok: S.Boolean,
|
|
915
|
-
channels: ListConversationsResponseChannelsList,
|
|
916
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
917
|
-
}),
|
|
918
|
-
).annotate({
|
|
919
|
-
identifier: "ListConversationsResponse",
|
|
920
|
-
}) as any as S.Schema<ListConversationsResponse>;
|
|
921
|
-
|
|
922
393
|
/** An optional list of invitation ids to look up */
|
|
923
394
|
export type ListRequestSharedInviteRequestInviteIdsList = Array<string>;
|
|
924
|
-
export const ListRequestSharedInviteRequestInviteIdsList = /*@__PURE__*/ S.Array(
|
|
925
|
-
S.String,
|
|
926
|
-
) as any as S.Schema<ListRequestSharedInviteRequestInviteIdsList>;
|
|
927
|
-
|
|
928
395
|
export interface ListRequestSharedInviteRequest {
|
|
929
396
|
/** Optional filter to return invitation requests for the inviting user. */
|
|
930
397
|
user_id?: string;
|
|
@@ -941,31 +408,10 @@ export interface ListRequestSharedInviteRequest {
|
|
|
941
408
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
942
409
|
cursor?: string;
|
|
943
410
|
}
|
|
944
|
-
export const ListRequestSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
945
|
-
S.Struct({
|
|
946
|
-
user_id: S.optional(S.String),
|
|
947
|
-
include_expired: S.optional(S.Boolean),
|
|
948
|
-
include_approved: S.optional(S.Boolean),
|
|
949
|
-
include_denied: S.optional(S.Boolean),
|
|
950
|
-
invite_ids: S.optional(ListRequestSharedInviteRequestInviteIdsList),
|
|
951
|
-
limit: S.optional(S.Number),
|
|
952
|
-
cursor: S.optional(S.String),
|
|
953
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.list", code: 200 })),
|
|
954
|
-
).annotate({
|
|
955
|
-
identifier: "ListRequestSharedInviteRequest",
|
|
956
|
-
}) as any as S.Schema<ListRequestSharedInviteRequest>;
|
|
957
|
-
|
|
958
411
|
export type ListRequestSharedInviteResponseInviteRequestsList = Array<unknown>;
|
|
959
|
-
export const ListRequestSharedInviteResponseInviteRequestsList = /*@__PURE__*/ S.Array(
|
|
960
|
-
S.Unknown,
|
|
961
|
-
) as any as S.Schema<ListRequestSharedInviteResponseInviteRequestsList>;
|
|
962
|
-
|
|
963
412
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
964
413
|
export type ListRequestSharedInviteResponseResponseMetadata =
|
|
965
414
|
ConversationsHistoryResponseResponseMetadata;
|
|
966
|
-
export const ListRequestSharedInviteResponseResponseMetadata =
|
|
967
|
-
ConversationsHistoryResponseResponseMetadata;
|
|
968
|
-
|
|
969
415
|
export interface ListRequestSharedInviteResponse {
|
|
970
416
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
971
417
|
ok: boolean;
|
|
@@ -973,75 +419,28 @@ export interface ListRequestSharedInviteResponse {
|
|
|
973
419
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
974
420
|
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
975
421
|
}
|
|
976
|
-
export const ListRequestSharedInviteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
977
|
-
S.Struct({
|
|
978
|
-
ok: S.Boolean,
|
|
979
|
-
invite_requests: ListRequestSharedInviteResponseInviteRequestsList,
|
|
980
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
981
|
-
}),
|
|
982
|
-
).annotate({
|
|
983
|
-
identifier: "ListRequestSharedInviteResponse",
|
|
984
|
-
}) as any as S.Schema<ListRequestSharedInviteResponse>;
|
|
985
|
-
|
|
986
422
|
export interface RenameConversationRequest {
|
|
987
423
|
/** ID of conversation to rename */
|
|
988
424
|
channel: string;
|
|
989
425
|
/** New name for conversation. */
|
|
990
426
|
name: string;
|
|
991
427
|
}
|
|
992
|
-
export const RenameConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
993
|
-
S.Struct({
|
|
994
|
-
channel: S.String,
|
|
995
|
-
name: S.String,
|
|
996
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.rename", code: 200 })),
|
|
997
|
-
).annotate({
|
|
998
|
-
identifier: "RenameConversationRequest",
|
|
999
|
-
}) as any as S.Schema<RenameConversationRequest>;
|
|
1000
|
-
|
|
1001
428
|
export interface RenameConversationResponse {
|
|
1002
429
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1003
430
|
ok: boolean;
|
|
1004
431
|
channel: unknown;
|
|
1005
432
|
}
|
|
1006
|
-
export const RenameConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1007
|
-
S.Struct({
|
|
1008
|
-
ok: S.Boolean,
|
|
1009
|
-
channel: S.Unknown,
|
|
1010
|
-
}),
|
|
1011
|
-
).annotate({
|
|
1012
|
-
identifier: "RenameConversationResponse",
|
|
1013
|
-
}) as any as S.Schema<RenameConversationResponse>;
|
|
1014
|
-
|
|
1015
433
|
export interface RequestSharedInviteDenyRequest {
|
|
1016
434
|
/** ID of the requested shared channel invite to deny. */
|
|
1017
435
|
invite_id: string;
|
|
1018
436
|
/** Optional message explaining why the request to invite was denied. */
|
|
1019
437
|
message?: string;
|
|
1020
438
|
}
|
|
1021
|
-
export const RequestSharedInviteDenyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1022
|
-
S.Struct({
|
|
1023
|
-
invite_id: S.String,
|
|
1024
|
-
message: S.optional(S.String),
|
|
1025
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.deny", code: 200 })),
|
|
1026
|
-
).annotate({
|
|
1027
|
-
identifier: "RequestSharedInviteDenyRequest",
|
|
1028
|
-
}) as any as S.Schema<RequestSharedInviteDenyRequest>;
|
|
1029
|
-
|
|
1030
439
|
export interface RequestSharedInviteDenyResponse {
|
|
1031
440
|
ok: boolean;
|
|
1032
441
|
}
|
|
1033
|
-
export const RequestSharedInviteDenyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1034
|
-
S.Struct({
|
|
1035
|
-
ok: S.Boolean,
|
|
1036
|
-
}),
|
|
1037
|
-
).annotate({
|
|
1038
|
-
identifier: "RequestSharedInviteDenyResponse",
|
|
1039
|
-
}) as any as S.Schema<RequestSharedInviteDenyResponse>;
|
|
1040
|
-
|
|
1041
442
|
/** Type of action to be taken: upgrade or downgrade */
|
|
1042
443
|
export type SetExternalInvitePermissionsRequestAction = "upgrade" | "downgrade";
|
|
1043
|
-
export const SetExternalInvitePermissionsRequestAction = S.String;
|
|
1044
|
-
|
|
1045
444
|
export interface SetExternalInvitePermissionsRequest {
|
|
1046
445
|
/** The channel ID to change external invite permissions for */
|
|
1047
446
|
channel: string;
|
|
@@ -1050,185 +449,116 @@ export interface SetExternalInvitePermissionsRequest {
|
|
|
1050
449
|
/** Type of action to be taken: upgrade or downgrade */
|
|
1051
450
|
action: SetExternalInvitePermissionsRequestAction | (string & {});
|
|
1052
451
|
}
|
|
1053
|
-
export const SetExternalInvitePermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1054
|
-
S.Struct({
|
|
1055
|
-
channel: S.String,
|
|
1056
|
-
target_team: S.String,
|
|
1057
|
-
action: SetExternalInvitePermissionsRequestAction,
|
|
1058
|
-
}).pipe(
|
|
1059
|
-
T.Http({
|
|
1060
|
-
method: "POST",
|
|
1061
|
-
uri: "/conversations.externalInvitePermissions.set",
|
|
1062
|
-
code: 200,
|
|
1063
|
-
contentType: "form-urlencoded",
|
|
1064
|
-
}),
|
|
1065
|
-
),
|
|
1066
|
-
).annotate({
|
|
1067
|
-
identifier: "SetExternalInvitePermissionsRequest",
|
|
1068
|
-
}) as any as S.Schema<SetExternalInvitePermissionsRequest>;
|
|
1069
|
-
|
|
1070
452
|
export interface SetExternalInvitePermissionsResponse {
|
|
1071
453
|
ok: boolean;
|
|
1072
454
|
}
|
|
1073
|
-
export const SetExternalInvitePermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1074
|
-
S.Struct({
|
|
1075
|
-
ok: S.Boolean,
|
|
1076
|
-
}),
|
|
1077
|
-
).annotate({
|
|
1078
|
-
identifier: "SetExternalInvitePermissionsResponse",
|
|
1079
|
-
}) as any as S.Schema<SetExternalInvitePermissionsResponse>;
|
|
1080
|
-
|
|
1081
455
|
export interface SetPurposeRequest {
|
|
1082
456
|
/** Channel to set the description of */
|
|
1083
457
|
channel: string;
|
|
1084
458
|
/** The description */
|
|
1085
459
|
purpose: string;
|
|
1086
460
|
}
|
|
1087
|
-
export const SetPurposeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1088
|
-
S.Struct({
|
|
1089
|
-
channel: S.String,
|
|
1090
|
-
purpose: S.String,
|
|
1091
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.setPurpose", code: 200 })),
|
|
1092
|
-
).annotate({ identifier: "SetPurposeRequest" }) as any as S.Schema<SetPurposeRequest>;
|
|
1093
|
-
|
|
1094
461
|
export interface SetPurposeResponse {
|
|
1095
462
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1096
463
|
ok: boolean;
|
|
1097
464
|
channel: unknown;
|
|
1098
465
|
}
|
|
1099
|
-
export const SetPurposeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1100
|
-
S.Struct({
|
|
1101
|
-
ok: S.Boolean,
|
|
1102
|
-
channel: S.Unknown,
|
|
1103
|
-
}),
|
|
1104
|
-
).annotate({ identifier: "SetPurposeResponse" }) as any as S.Schema<SetPurposeResponse>;
|
|
1105
|
-
|
|
1106
466
|
export interface SetTopicRequest {
|
|
1107
467
|
/** Conversation to set the topic of */
|
|
1108
468
|
channel: string;
|
|
1109
469
|
/** The new topic string. Does not support formatting or linkification. */
|
|
1110
470
|
topic: string;
|
|
1111
471
|
}
|
|
1112
|
-
export const SetTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1113
|
-
S.Struct({
|
|
1114
|
-
channel: S.String,
|
|
1115
|
-
topic: S.String,
|
|
1116
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.setTopic", code: 200 })),
|
|
1117
|
-
).annotate({ identifier: "SetTopicRequest" }) as any as S.Schema<SetTopicRequest>;
|
|
1118
|
-
|
|
1119
472
|
export interface SetTopicResponse {
|
|
1120
473
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1121
474
|
ok: boolean;
|
|
1122
475
|
channel: unknown;
|
|
1123
476
|
}
|
|
1124
|
-
export const SetTopicResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1125
|
-
S.Struct({
|
|
1126
|
-
ok: S.Boolean,
|
|
1127
|
-
channel: S.Unknown,
|
|
1128
|
-
}),
|
|
1129
|
-
).annotate({ identifier: "SetTopicResponse" }) as any as S.Schema<SetTopicResponse>;
|
|
1130
|
-
|
|
1131
477
|
export interface UnarchiveConversationRequest {
|
|
1132
478
|
/** ID of conversation to unarchive */
|
|
1133
479
|
channel: string;
|
|
1134
480
|
}
|
|
1135
|
-
export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1136
|
-
S.Struct({
|
|
1137
|
-
channel: S.String,
|
|
1138
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.unarchive", code: 200 })),
|
|
1139
|
-
).annotate({
|
|
1140
|
-
identifier: "UnarchiveConversationRequest",
|
|
1141
|
-
}) as any as S.Schema<UnarchiveConversationRequest>;
|
|
1142
|
-
|
|
1143
481
|
export interface UnarchiveConversationResponse {
|
|
1144
482
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1145
483
|
ok: boolean;
|
|
1146
484
|
}
|
|
1147
|
-
export const UnarchiveConversationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1148
|
-
S.Struct({
|
|
1149
|
-
ok: S.Boolean,
|
|
1150
|
-
}),
|
|
1151
|
-
).annotate({
|
|
1152
|
-
identifier: "UnarchiveConversationResponse",
|
|
1153
|
-
}) as any as S.Schema<UnarchiveConversationResponse>;
|
|
1154
|
-
|
|
1155
485
|
export type AcceptSharedInviteError = SlackOpError;
|
|
1156
|
-
/** Accepts an invitation to a Slack Connect channel. Required scopes
|
|
486
|
+
/** Accepts an invitation to a Slack Connect channel. Required scopes -- bot: `conversations.connect:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_conversion_in_progress` -- Unable to create a channel connection while a channel conversion is in progress - `connection_limit_exceeded` -- This channel has hit the limit of external connections. - `email_does_not_match` -- User's email does not match the email in the invite. - `failed_to_start_trial` -- Unable to initiate a trial on shared invite acceptance - `has_already_connected_to_org` -- A team on the workspace of the org is already in the channel. - `invalid_arguments` -- Invalid API arguments were provided. Either `sig` or `invite_id` must be specified. - `invalid_emoji_not_allowed` -- The desired name contains emoji. - `invalid_host_team` -- The host workspace is invalid. - `invalid_link` -- We couldn't find an invite associated with the ID provided. - `invalid_name` -- The value passed for `channel_name` was invalid. - `invalid_name_maxlength` -- The value passed for `channel_name` exceeded the maximum length. - `invalid_name_punctuation` -- The value passed for `channel_name` contained only punctuation. - `invalid_name_required` -- The value passed for `channel_name` was empty. - `invalid_name_specials` -- The value passed for `channel_name` contained unallowed special characters or upper case characters. - `invite_from_same_org` -- You can't accept an invite from the same org or workspace. - `invite_not_found` -- We couldn't find a Slack Connect channel invite with the ID provided. - `invalid_privacy` -- An invalid channel privacy was provided. - `invalid_recipient_team` -- The accepting team does not match the expected recipient team. - `invalid_target_team` -- The target workspace is invalid. - `invite_used` -- This invite has already been accepted. - `is_pending_connected_to_org` -- A team pending to join the channel is on the org of the team trying to accept. - `legacy_connection_invalid_org` -- Teams not previously connected to this legacy channel can't connect. - `legacy_connection_limit_exceeded` -- You cannot share a legacy ESC channel with a third team - `name_taken` -- The desired channel name is already taken in your workspace. - `not_allowed_for_grid_workspace` -- Acceptance is not allowed for this workspace. - `not_paid` -- This workspace doesn't have access to this feature. - `restricted_action` -- A team preference prevents the authenticated user from creating private channels. - `team_not_found` -- The team provided in the `team_id` argument does not exits. - `user_cannot_create_channel` -- This user is not allowed to create a channel. - `user_is_restricted` -- This user is restricted and cannot accept the invite. - `user_not_found` -- The user accepting the invite is not a member of the team provided in the `team_id` argument. - `user_required_to_accept_as_private_but_cannot` -- This uer cannot accept a private channel invitation. - `accepter_email_not_verified` -- The accepting user has not verified the email address on their account. They must verify it before accepting. See https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite */
|
|
1157
487
|
export const acceptSharedInvite: API.OperationMethod<
|
|
1158
488
|
AcceptSharedInviteRequest,
|
|
1159
489
|
AcceptSharedInviteResponse,
|
|
1160
490
|
AcceptSharedInviteError,
|
|
1161
491
|
SlackOpContext
|
|
1162
492
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1163
|
-
input: AcceptSharedInviteRequest
|
|
1164
|
-
output: AcceptSharedInviteResponse
|
|
493
|
+
input: __S(0, __c0, 0) as any as S.Schema<AcceptSharedInviteRequest>,
|
|
494
|
+
output: __S(1, __c0, 1) as any as S.Schema<AcceptSharedInviteResponse>,
|
|
1165
495
|
errors: [SlackError, SlackRateLimited],
|
|
1166
496
|
protocol: SlackProtocol,
|
|
1167
497
|
retry: Retry.Retry,
|
|
1168
498
|
}));
|
|
1169
499
|
|
|
1170
500
|
export type ApproveRequestSharedInviteError = SlackOpError;
|
|
1171
|
-
/** Approves a request to add an external user to a channel and sends them a Slack Connect invite Required scopes
|
|
501
|
+
/** Approves a request to add an external user to a channel and sends them a Slack Connect invite Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invite_not_found` -- We couldn't find a Slack Connect channel invite with the ID provided. - `invite_already_approved` -- This invite was already approved. - `invite_already_denied` -- This invite was already denied. - `invite_expired` -- This invite is expired. - `channel_not_found` -- The provided channel was not found or the channel is no longer visible to the user who requested the invite. - `user_not_found` -- Can not find the user who requested the invite. - `team_not_found` -- Can not find the team who requested the invite. - `restricted_action` -- A team preference prevents the invite from being approved. - `no_external_invite_permission` -- Channel manager has restricted external invites for a given channel. - `internal_error` -- Something unexpected went wrong. - `message_too_long` -- If the passed in approve message is greater than 560 characters. See https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve */
|
|
1172
502
|
export const approveRequestSharedInvite: API.OperationMethod<
|
|
1173
503
|
ApproveRequestSharedInviteRequest,
|
|
1174
504
|
ApproveRequestSharedInviteResponse,
|
|
1175
505
|
ApproveRequestSharedInviteError,
|
|
1176
506
|
SlackOpContext
|
|
1177
507
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1178
|
-
input: ApproveRequestSharedInviteRequest
|
|
1179
|
-
output: ApproveRequestSharedInviteResponse
|
|
508
|
+
input: __S(5, __c1, 1) as any as S.Schema<ApproveRequestSharedInviteRequest>,
|
|
509
|
+
output: __S(6, __c1, 2) as any as S.Schema<ApproveRequestSharedInviteResponse>,
|
|
1180
510
|
errors: [SlackError, SlackRateLimited],
|
|
1181
511
|
protocol: SlackProtocol,
|
|
1182
512
|
retry: Retry.Retry,
|
|
1183
513
|
}));
|
|
1184
514
|
|
|
1185
515
|
export type ApproveSharedInviteError = SlackOpError;
|
|
1186
|
-
/** Approves an invitation to a Slack Connect channel Required scopes
|
|
516
|
+
/** Approves an invitation to a Slack Connect channel Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `already_approved` -- This invite was already approved by this team. - `approval_inactive` -- The approval associated with the invite ID is not active. - `approval_not_found` -- We could not find an approval associated with the invite ID provided. - `channel_conversion_in_progress` -- A channel conversion is in progress - `channel_not_found` -- The channel associated with this invite wasn't found. - `invalid_action` -- This action is no longer valid, e.g., trying to approve an invite that has already been approved. - `invalid_link` -- The link provided was invalid. - `invite_not_found` -- The invite specified wasn't found. - `missing_target_team` -- The `target_team` parameter is required for this request. The inviting team must provide this argument. - `not_paid` -- The team attempting to approve this invite is not paid and therefore not eligible. - `restricted_action` -- A team preference prevents the authenticated user from creating private channels. See https://docs.slack.dev/reference/methods/conversations.approveSharedInvite */
|
|
1187
517
|
export const approveSharedInvite: API.OperationMethod<
|
|
1188
518
|
ApproveSharedInviteRequest,
|
|
1189
519
|
ApproveSharedInviteResponse,
|
|
1190
520
|
ApproveSharedInviteError,
|
|
1191
521
|
SlackOpContext
|
|
1192
522
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1193
|
-
input: ApproveSharedInviteRequest
|
|
1194
|
-
output: ApproveSharedInviteResponse
|
|
523
|
+
input: __S(52, __c13, 0) as any as S.Schema<ApproveSharedInviteRequest>,
|
|
524
|
+
output: __S(56, __c14, 0) as any as S.Schema<ApproveSharedInviteResponse>,
|
|
1195
525
|
errors: [SlackError, SlackRateLimited],
|
|
1196
526
|
protocol: SlackProtocol,
|
|
1197
527
|
retry: Retry.Retry,
|
|
1198
528
|
}));
|
|
1199
529
|
|
|
1200
530
|
export type ArchiveConversationError = SlackOpError;
|
|
1201
|
-
/** Archives a conversation. Required scopes
|
|
531
|
+
/** Archives a conversation. 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): - `already_archived` -- Channel has already been archived. - `cant_archive_general` -- You cannot archive the general channel - `cant_archive_required` -- You cannot archive a required 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. - `not_in_channel` -- The token can not be found in channel. - `restricted_action` -- A team preference prevents the authenticated user from archiving. See https://docs.slack.dev/reference/methods/conversations.archive */
|
|
1202
532
|
export const archiveConversation: API.OperationMethod<
|
|
1203
533
|
ArchiveConversationRequest,
|
|
1204
534
|
ArchiveConversationResponse,
|
|
1205
535
|
ArchiveConversationError,
|
|
1206
536
|
SlackOpContext
|
|
1207
537
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1208
|
-
input: ArchiveConversationRequest
|
|
1209
|
-
output: ArchiveConversationResponse
|
|
538
|
+
input: __S(92, __c23, 0) as any as S.Schema<ArchiveConversationRequest>,
|
|
539
|
+
output: __S(56, __c14, 0) as any as S.Schema<ArchiveConversationResponse>,
|
|
1210
540
|
errors: [SlackError, SlackRateLimited],
|
|
1211
541
|
protocol: SlackProtocol,
|
|
1212
542
|
retry: Retry.Retry,
|
|
1213
543
|
}));
|
|
1214
544
|
|
|
1215
545
|
export type ConversationsCloseError = SlackOpError;
|
|
1216
|
-
/** Closes a direct message or multi-person direct message. Required scopes
|
|
546
|
+
/** Closes a direct message or multi-person direct message. 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. - `user_does_not_own_channel` -- Calling user does not own this DM channel. - `not_permitted` -- Not permitted. - `external_channel_migrating` -- External channel migrating. See https://docs.slack.dev/reference/methods/conversations.close */
|
|
1217
547
|
export const conversationsClose: API.OperationMethod<
|
|
1218
548
|
ConversationsCloseRequest,
|
|
1219
549
|
ConversationsCloseResponse,
|
|
1220
550
|
ConversationsCloseError,
|
|
1221
551
|
SlackOpContext
|
|
1222
552
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1223
|
-
input: ConversationsCloseRequest
|
|
1224
|
-
output: ConversationsCloseResponse
|
|
553
|
+
input: __S(96, __c24, 0) as any as S.Schema<ConversationsCloseRequest>,
|
|
554
|
+
output: __S(97, __c24, 1) as any as S.Schema<ConversationsCloseResponse>,
|
|
1225
555
|
errors: [SlackError, SlackRateLimited],
|
|
1226
556
|
protocol: SlackProtocol,
|
|
1227
557
|
retry: Retry.Retry,
|
|
1228
558
|
}));
|
|
1229
559
|
|
|
1230
560
|
export type ConversationsHistoryError = SlackOpError;
|
|
1231
|
-
/** Fetches a conversation's history of messages and events. Required scopes
|
|
561
|
+
/** Fetches a conversation's history of messages and events. Required scopes -- bot: `groups:history`, `im:history`, `mpim:history`, `channels:history`; user: `groups:history`, `im:history`, `mpim:history`, `channels:history` 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. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `invalid_metadata_filter_keys` -- Value passed for `metadata_keys_to_include` was invalid. Must be valid json array of strings. - `invalid_ts_latest` -- Value passed for `latest` was invalid - `invalid_ts_oldest` -- Value passed for `oldest` was invalid - `not_in_channel` -- The token used does not have access to the proper channel. Only user tokens can access public channels they are not in. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/conversations.history */
|
|
1232
562
|
export const conversationsHistory: API.PaginatedOperationMethod<
|
|
1233
563
|
ConversationsHistoryRequest,
|
|
1234
564
|
ConversationsHistoryResponse,
|
|
@@ -1237,8 +567,8 @@ export const conversationsHistory: API.PaginatedOperationMethod<
|
|
|
1237
567
|
unknown
|
|
1238
568
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1239
569
|
() => ({
|
|
1240
|
-
input: ConversationsHistoryRequest
|
|
1241
|
-
output: ConversationsHistoryResponse
|
|
570
|
+
input: __S(100, __c25, 0) as any as S.Schema<ConversationsHistoryRequest>,
|
|
571
|
+
output: __S(102, __c25, 2) as any as S.Schema<ConversationsHistoryResponse>,
|
|
1242
572
|
errors: [SlackError, SlackRateLimited],
|
|
1243
573
|
protocol: SlackProtocol,
|
|
1244
574
|
retry: Retry.Retry,
|
|
@@ -1254,52 +584,52 @@ export const conversationsHistory: API.PaginatedOperationMethod<
|
|
|
1254
584
|
) as any;
|
|
1255
585
|
|
|
1256
586
|
export type ConversationsInfoError = SlackOpError;
|
|
1257
|
-
/** Retrieve information about a conversation. Required scopes
|
|
587
|
+
/** 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 */
|
|
1258
588
|
export const conversationsInfo: API.OperationMethod<
|
|
1259
589
|
ConversationsInfoRequest,
|
|
1260
590
|
ConversationsInfoResponse,
|
|
1261
591
|
ConversationsInfoError,
|
|
1262
592
|
SlackOpContext
|
|
1263
593
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1264
|
-
input: ConversationsInfoRequest
|
|
1265
|
-
output: ConversationsInfoResponse
|
|
594
|
+
input: __S(120, __c30, 0) as any as S.Schema<ConversationsInfoRequest>,
|
|
595
|
+
output: __S(121, __c30, 1) as any as S.Schema<ConversationsInfoResponse>,
|
|
1266
596
|
errors: [SlackError, SlackRateLimited],
|
|
1267
597
|
protocol: SlackProtocol,
|
|
1268
598
|
retry: Retry.Retry,
|
|
1269
599
|
}));
|
|
1270
600
|
|
|
1271
601
|
export type ConversationsKickError = SlackOpError;
|
|
1272
|
-
/** Removes a user from a conversation. Required scopes
|
|
602
|
+
/** 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 */
|
|
1273
603
|
export const conversationsKick: API.OperationMethod<
|
|
1274
604
|
ConversationsKickRequest,
|
|
1275
605
|
ConversationsKickResponse,
|
|
1276
606
|
ConversationsKickError,
|
|
1277
607
|
SlackOpContext
|
|
1278
608
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1279
|
-
input: ConversationsKickRequest
|
|
1280
|
-
output: ConversationsKickResponse
|
|
609
|
+
input: __S(124, __c31, 0) as any as S.Schema<ConversationsKickRequest>,
|
|
610
|
+
output: __S(56, __c14, 0) as any as S.Schema<ConversationsKickResponse>,
|
|
1281
611
|
errors: [SlackError, SlackRateLimited],
|
|
1282
612
|
protocol: SlackProtocol,
|
|
1283
613
|
retry: Retry.Retry,
|
|
1284
614
|
}));
|
|
1285
615
|
|
|
1286
616
|
export type ConversationsMarkError = SlackOpError;
|
|
1287
|
-
/** Sets the read cursor in a channel. Required scopes
|
|
617
|
+
/** Sets the read cursor in a channel. 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: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `invalid_timestamp` -- Value passed for `timestamp` was invalid. - `not_in_channel` -- Caller is not a member of the channel. See https://docs.slack.dev/reference/methods/conversations.mark */
|
|
1288
618
|
export const conversationsMark: API.OperationMethod<
|
|
1289
619
|
ConversationsMarkRequest,
|
|
1290
620
|
ConversationsMarkResponse,
|
|
1291
621
|
ConversationsMarkError,
|
|
1292
622
|
SlackOpContext
|
|
1293
623
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1294
|
-
input: ConversationsMarkRequest
|
|
1295
|
-
output: ConversationsMarkResponse
|
|
624
|
+
input: __S(128, __c32, 0) as any as S.Schema<ConversationsMarkRequest>,
|
|
625
|
+
output: __S(56, __c14, 0) as any as S.Schema<ConversationsMarkResponse>,
|
|
1296
626
|
errors: [SlackError, SlackRateLimited],
|
|
1297
627
|
protocol: SlackProtocol,
|
|
1298
628
|
retry: Retry.Retry,
|
|
1299
629
|
}));
|
|
1300
630
|
|
|
1301
631
|
export type ConversationsMembersError = SlackOpError;
|
|
1302
|
-
/** Retrieve members of a conversation. Required scopes
|
|
632
|
+
/** 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 */
|
|
1303
633
|
export const conversationsMembers: API.PaginatedOperationMethod<
|
|
1304
634
|
ConversationsMembersRequest,
|
|
1305
635
|
ConversationsMembersResponse,
|
|
@@ -1308,8 +638,8 @@ export const conversationsMembers: API.PaginatedOperationMethod<
|
|
|
1308
638
|
string
|
|
1309
639
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1310
640
|
() => ({
|
|
1311
|
-
input: ConversationsMembersRequest
|
|
1312
|
-
output: ConversationsMembersResponse
|
|
641
|
+
input: __S(132, __c33, 0) as any as S.Schema<ConversationsMembersRequest>,
|
|
642
|
+
output: __S(133, __c33, 1) as any as S.Schema<ConversationsMembersResponse>,
|
|
1313
643
|
errors: [SlackError, SlackRateLimited],
|
|
1314
644
|
protocol: SlackProtocol,
|
|
1315
645
|
retry: Retry.Retry,
|
|
@@ -1325,22 +655,22 @@ export const conversationsMembers: API.PaginatedOperationMethod<
|
|
|
1325
655
|
) as any;
|
|
1326
656
|
|
|
1327
657
|
export type ConversationsOpenError = SlackOpError;
|
|
1328
|
-
/** Opens or resumes a direct message or multi-person direct message. Required scopes
|
|
658
|
+
/** Opens or resumes a direct message or multi-person direct message. Required scopes -- bot: `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `invalid_user_combination` -- All external people must already be in at least one channel together to send a message. - `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_enough_users` -- Needs at least 2 users to open - `restricted_action` -- User does not have permission to perform this action. - `too_many_users` -- Needs at most 8 users to open - `user_disabled` -- A specified `user` has been disabled. - `user_not_found` -- Value(s) passed for `users` was invalid. - `user_not_visible` -- The calling user is restricted from seeing the requested user. - `users_list_not_supplied` -- Missing `users` in request - `app_cannot_join_channel` -- This app cannot be added to this conversation. See https://docs.slack.dev/reference/methods/conversations.open */
|
|
1329
659
|
export const conversationsOpen: API.OperationMethod<
|
|
1330
660
|
ConversationsOpenRequest,
|
|
1331
661
|
ConversationsOpenResponse,
|
|
1332
662
|
ConversationsOpenError,
|
|
1333
663
|
SlackOpContext
|
|
1334
664
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1335
|
-
input: ConversationsOpenRequest
|
|
1336
|
-
output: ConversationsOpenResponse
|
|
665
|
+
input: __S(8, __c2, 0) as any as S.Schema<ConversationsOpenRequest>,
|
|
666
|
+
output: __S(9, __c2, 1) as any as S.Schema<ConversationsOpenResponse>,
|
|
1337
667
|
errors: [SlackError, SlackRateLimited],
|
|
1338
668
|
protocol: SlackProtocol,
|
|
1339
669
|
retry: Retry.Retry,
|
|
1340
670
|
}));
|
|
1341
671
|
|
|
1342
672
|
export type ConversationsRepliesError = SlackOpError;
|
|
1343
|
-
/** Retrieve a thread of messages posted to a conversation Required scopes
|
|
673
|
+
/** Retrieve a thread of messages posted to a conversation Required scopes -- bot: `groups:history`, `im:history`, `mpim:history`, `channels:history`; user: `groups:history`, `im:history`, `mpim:history`, `channels:history` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value for `channel` was missing or invalid. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `invalid_metadata_filter_keys` -- Value passed for `metadata_keys_to_include` was invalid. Must be valid json array of strings. - `invalid_ts_latest` -- Value passed for `latest` was invalid - `invalid_ts_oldest` -- Value passed for `oldest` was invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `thread_not_found` -- Value for `ts` was missing or invalid. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `list_record_comment_fetch_failed` -- Failed to fetch list record comments. See https://docs.slack.dev/reference/methods/conversations.replies */
|
|
1344
674
|
export const conversationsReplies: API.PaginatedOperationMethod<
|
|
1345
675
|
ConversationsRepliesRequest,
|
|
1346
676
|
ConversationsRepliesResponse,
|
|
@@ -1349,8 +679,8 @@ export const conversationsReplies: API.PaginatedOperationMethod<
|
|
|
1349
679
|
unknown
|
|
1350
680
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1351
681
|
() => ({
|
|
1352
|
-
input: ConversationsRepliesRequest
|
|
1353
|
-
output: ConversationsRepliesResponse
|
|
682
|
+
input: __S(12, __c3, 0) as any as S.Schema<ConversationsRepliesRequest>,
|
|
683
|
+
output: __S(13, __c3, 1) as any as S.Schema<ConversationsRepliesResponse>,
|
|
1354
684
|
errors: [SlackError, SlackRateLimited],
|
|
1355
685
|
protocol: SlackProtocol,
|
|
1356
686
|
retry: Retry.Retry,
|
|
@@ -1366,112 +696,112 @@ export const conversationsReplies: API.PaginatedOperationMethod<
|
|
|
1366
696
|
) as any;
|
|
1367
697
|
|
|
1368
698
|
export type CreateCanvaseError = SlackOpError;
|
|
1369
|
-
/** Create a channel canvas for a channel Required scopes
|
|
699
|
+
/** Create a channel canvas for a channel Required scopes -- bot: `canvases:write`; user: `canvases:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` -- Canvas is disabled on user's team - `restricted_action` -- User does not have permission to perform this action. - `channel_canvas_creation_failed` -- Channel canvas was unable to be created. - `channel_canvas_already_exists` -- Channel canvas for the specified channel already exists. - `team_tier_cannot_create_channel_canvases` -- Team tier cannot create channel canvases - `canvas_creation_failed` -- Canvas was unable to be created. - `canvas_tab_creation_failed` -- Canvas tab was unable to be created. - `free_team_canvas_tab_already_exists` -- Canvas tab for specified channel and team tier already exists. - `posting_to_channel_denied` -- Permission to post to a channel denied See https://docs.slack.dev/reference/methods/conversations.canvases.create */
|
|
1370
700
|
export const createCanvase: API.OperationMethod<
|
|
1371
701
|
CreateCanvaseRequest,
|
|
1372
702
|
CreateCanvaseResponse,
|
|
1373
703
|
CreateCanvaseError,
|
|
1374
704
|
SlackOpContext
|
|
1375
705
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1376
|
-
input: CreateCanvaseRequest
|
|
1377
|
-
output: CreateCanvaseResponse
|
|
706
|
+
input: __S(16, __c4, 0) as any as S.Schema<CreateCanvaseRequest>,
|
|
707
|
+
output: __S(17, __c4, 1) as any as S.Schema<CreateCanvaseResponse>,
|
|
1378
708
|
errors: [SlackError, SlackRateLimited],
|
|
1379
709
|
protocol: SlackProtocol,
|
|
1380
710
|
retry: Retry.Retry,
|
|
1381
711
|
}));
|
|
1382
712
|
|
|
1383
713
|
export type CreateConversationError = SlackOpError;
|
|
1384
|
-
/** Initiates a public or private channel-based conversation Required scopes
|
|
714
|
+
/** Initiates a public or private channel-based conversation 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): - `cannot_create_channel` -- This channel is unable to be created. - `invalid_name` -- Value passed for `name` was invalid. - `invalid_name_maxlength` -- Value passed for `name` exceeded max length. - `invalid_name_punctuation` -- Value passed for `name` contained only punctuation. - `invalid_name_required` -- Value passed for `name` was empty. - `invalid_name_specials` -- Value passed for `name` contained unallowed special characters or upper case characters. - `missing_argument` -- A required argument is missing. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `name_taken` -- A channel cannot be created with the given name. - `no_channel` -- Value passed for `name` was empty. - `restricted_action` -- A team (workspace) preference prevents the authenticated user from creating channels. - `canvas_disabled_user_team` -- Canvas is disabled on user's team See https://docs.slack.dev/reference/methods/conversations.create */
|
|
1385
715
|
export const createConversation: API.OperationMethod<
|
|
1386
716
|
CreateConversationRequest,
|
|
1387
717
|
CreateConversationResponse,
|
|
1388
718
|
CreateConversationError,
|
|
1389
719
|
SlackOpContext
|
|
1390
720
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1391
|
-
input: CreateConversationRequest
|
|
1392
|
-
output: CreateConversationResponse
|
|
721
|
+
input: __S(20, __c5, 0) as any as S.Schema<CreateConversationRequest>,
|
|
722
|
+
output: __S(24, __c6, 0) as any as S.Schema<CreateConversationResponse>,
|
|
1393
723
|
errors: [SlackError, SlackRateLimited],
|
|
1394
724
|
protocol: SlackProtocol,
|
|
1395
725
|
retry: Retry.Retry,
|
|
1396
726
|
}));
|
|
1397
727
|
|
|
1398
728
|
export type InviteConversationError = SlackOpError;
|
|
1399
|
-
/** Invites users to a channel. Required scopes
|
|
729
|
+
/** Invites users to a channel. Required scopes -- bot: `channels:write.invites`, `groups:write.invites`, `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write.invites`, `groups:write.invites`, `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `already_in_channel` -- Invited user is already in the channel. - `app_cannot_join_channel` -- This app cannot be invited to this channel. - `cant_invite` -- User cannot be invited to this channel. - `cant_invite_self` -- Authenticated user cannot invite themselves to a channel. - `channel_not_found` -- Value passed for `channel` was invalid. - `invitee_cant_see_channel` -- The Enterprise org multi-workspace channel you are inviting a user to is not shared with any workspaces the user is currently a member of. - `is_archived` -- Channel has been archived. - `org_user_not_in_team` -- One or more members invited are part of the Enterprise organization but not the specific workspace you're interfacing with. - `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_permission` -- User does not have permission to invite that specific user to the channel - `no_external_invite_permission` -- User does not have permission to invite that external user to the channel - `no_user` -- No value was passed for `users`. - `not_in_channel` -- Authenticated user is not in the channel. - `ura_max_channels` -- An invited user is a single-channel guest user ('ultra restricted access') that is already in the maximum number of conversations. - `user_is_restricted` -- An invited user is a guest user that is restricted from accessing this conversation. - `user_not_found` -- Value passed for `users` was invalid. - `external_channel_migrating` -- External channel migrating. See https://docs.slack.dev/reference/methods/conversations.invite */
|
|
1400
730
|
export const inviteConversation: API.OperationMethod<
|
|
1401
731
|
InviteConversationRequest,
|
|
1402
732
|
InviteConversationResponse,
|
|
1403
733
|
InviteConversationError,
|
|
1404
734
|
SlackOpContext
|
|
1405
735
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1406
|
-
input: InviteConversationRequest
|
|
1407
|
-
output: InviteConversationResponse
|
|
736
|
+
input: __S(28, __c7, 0) as any as S.Schema<InviteConversationRequest>,
|
|
737
|
+
output: __S(29, __c7, 1) as any as S.Schema<InviteConversationResponse>,
|
|
1408
738
|
errors: [SlackError, SlackRateLimited],
|
|
1409
739
|
protocol: SlackProtocol,
|
|
1410
740
|
retry: Retry.Retry,
|
|
1411
741
|
}));
|
|
1412
742
|
|
|
1413
743
|
export type InviteDeclineSharedError = SlackOpError;
|
|
1414
|
-
/** Declines a Slack Connect channel invite. Required scopes
|
|
744
|
+
/** Declines a Slack Connect channel invite. Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `approval_inactive` -- This approval is no longer active, it may have expired or been declined. - `approval_not_found` -- We could not find a Slack Connect approval for the invite provided. - `inactive_invite` -- This invitation is no longer active, it may have expired or been revoked. - `invite_not_found` -- We could not find a Slack Connect invite associated with the ID provided. - `missing_target_team` -- The `target_team` parameter is required for this request. - `not_paid` -- The workspace is not eligible to use Slack Connect. - `restricted_action` -- A team preference prevents the authenticated user from declining Slack Connect invites.. See https://docs.slack.dev/reference/methods/conversations.declineSharedInvite */
|
|
1415
745
|
export const inviteDeclineShared: API.OperationMethod<
|
|
1416
746
|
InviteDeclineSharedRequest,
|
|
1417
747
|
InviteDeclineSharedResponse,
|
|
1418
748
|
InviteDeclineSharedError,
|
|
1419
749
|
SlackOpContext
|
|
1420
750
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1421
|
-
input: InviteDeclineSharedRequest
|
|
1422
|
-
output: InviteDeclineSharedResponse
|
|
751
|
+
input: __S(32, __c8, 0) as any as S.Schema<InviteDeclineSharedRequest>,
|
|
752
|
+
output: __S(56, __c14, 0) as any as S.Schema<InviteDeclineSharedResponse>,
|
|
1423
753
|
errors: [SlackError, SlackRateLimited],
|
|
1424
754
|
protocol: SlackProtocol,
|
|
1425
755
|
retry: Retry.Retry,
|
|
1426
756
|
}));
|
|
1427
757
|
|
|
1428
758
|
export type InviteSharedError = SlackOpError;
|
|
1429
|
-
/** Sends an invitation to a Slack Connect channel Required scopes
|
|
759
|
+
/** Sends an invitation to a Slack Connect channel Required scopes -- bot: `conversations.connect:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_channel` -- User is already in the channel. - `cannot_share_cross_workspace_channel` -- You cannot share a cross-workspace or org-wide channel. - `cannot_share_mandatory_channel` -- You cannot share #general or mandatory channels. - `channel_archived` -- You cannot share an archived channel. - `channel_not_found` -- The channel provided was not found. - `connection_limit_exceeded` -- This channel has hit the limit of external connections. - `connection_limit_exceeded_pending` -- This channel already has a pending invite. - `invalid_channel_type` -- You cannot share MPDMs or DMs. - `invalid_email` -- At least one email address provided is invalid. - `invite_lookup_error` -- An error occurred while attempting to look for existing invites. - `invite_not_found` -- An error occurred while inviting users. - `legacy_connection_limit_exceeded` -- You cannot share a legacy ESC channel with a third team - `member_limit_exceeded` -- This channel that has hit the limit of members - `message_too_long` -- The provided message was longer than 560 characters. - `not_allowed_for_grid_workspace` -- This workspace does not have Slack Connect enabled. - `not_in_channel` -- The app is not a member of the channel to invite. - `not_owner` -- Only the host organization for a channel can request to share it. - `not_paid` -- This feature is only available to paid teams. - `not_supported` -- This channel cannot be shared. - `ratelimit` -- The rate-limit for this method has been reached. The ratelimit is applied on a per-user basis when you pass the `emails` parameter. - `recipients_not_specified` -- Bots are required to specify which users to invite. - `restricted_action` -- A team preference does not allow this authorization to send invites. - `too_many_emails` -- Too many email recipients were passed in the `emails` parameter. - `url_in_message` -- The message contained a URL. - `user_not_found` -- User lookup failed. - `no_external_invite_permission` -- User does not have permission to invite an external user. See https://docs.slack.dev/reference/methods/conversations.inviteShared */
|
|
1430
760
|
export const inviteShared: API.OperationMethod<
|
|
1431
761
|
InviteSharedRequest,
|
|
1432
762
|
InviteSharedResponse,
|
|
1433
763
|
InviteSharedError,
|
|
1434
764
|
SlackOpContext
|
|
1435
765
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1436
|
-
input: InviteSharedRequest
|
|
1437
|
-
output: InviteSharedResponse
|
|
766
|
+
input: __S(36, __c9, 0) as any as S.Schema<InviteSharedRequest>,
|
|
767
|
+
output: __S(37, __c9, 1) as any as S.Schema<InviteSharedResponse>,
|
|
1438
768
|
errors: [SlackError, SlackRateLimited],
|
|
1439
769
|
protocol: SlackProtocol,
|
|
1440
770
|
retry: Retry.Retry,
|
|
1441
771
|
}));
|
|
1442
772
|
|
|
1443
773
|
export type JoinConversationError = SlackOpError;
|
|
1444
|
-
/** Joins an existing conversation. Required scopes
|
|
774
|
+
/** 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 */
|
|
1445
775
|
export const joinConversation: API.OperationMethod<
|
|
1446
776
|
JoinConversationRequest,
|
|
1447
777
|
JoinConversationResponse,
|
|
1448
778
|
JoinConversationError,
|
|
1449
779
|
SlackOpContext
|
|
1450
780
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1451
|
-
input: JoinConversationRequest
|
|
1452
|
-
output: JoinConversationResponse
|
|
781
|
+
input: __S(40, __c10, 0) as any as S.Schema<JoinConversationRequest>,
|
|
782
|
+
output: __S(42, __c10, 2) as any as S.Schema<JoinConversationResponse>,
|
|
1453
783
|
errors: [SlackError, SlackRateLimited],
|
|
1454
784
|
protocol: SlackProtocol,
|
|
1455
785
|
retry: Retry.Retry,
|
|
1456
786
|
}));
|
|
1457
787
|
|
|
1458
788
|
export type LeaveConversationError = SlackOpError;
|
|
1459
|
-
/** Leaves a conversation. Required scopes
|
|
789
|
+
/** Leaves a conversation. 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: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_leave_general` -- Authenticated user cannot leave the general channel - `channel_not_found` -- Value passed for `channel` was invalid. - `is_archived` -- Channel has been archived. - `last_member` -- The last member party to a channel cannot leave the channel. Someone else must join the channel before this user is permitted to exit. - `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. - `user_is_restricted` -- Restricted and guest users cannot leave channel See https://docs.slack.dev/reference/methods/conversations.leave */
|
|
1460
790
|
export const leaveConversation: API.OperationMethod<
|
|
1461
791
|
LeaveConversationRequest,
|
|
1462
792
|
LeaveConversationResponse,
|
|
1463
793
|
LeaveConversationError,
|
|
1464
794
|
SlackOpContext
|
|
1465
795
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1466
|
-
input: LeaveConversationRequest
|
|
1467
|
-
output: LeaveConversationResponse
|
|
796
|
+
input: __S(44, __c11, 0) as any as S.Schema<LeaveConversationRequest>,
|
|
797
|
+
output: __S(45, __c11, 1) as any as S.Schema<LeaveConversationResponse>,
|
|
1468
798
|
errors: [SlackError, SlackRateLimited],
|
|
1469
799
|
protocol: SlackProtocol,
|
|
1470
800
|
retry: Retry.Retry,
|
|
1471
801
|
}));
|
|
1472
802
|
|
|
1473
803
|
export type ListConnectInvitesError = SlackOpError;
|
|
1474
|
-
/** Lists shared channel invites that have been generated or received but have not been approved by all parties Required scopes
|
|
804
|
+
/** Lists shared channel invites that have been generated or received but have not been approved by all parties Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- An invalid argument was supplied to the method. - `restricted_action` -- A team preference prevents the authenticated user from viewing shared channel invites. See https://docs.slack.dev/reference/methods/conversations.listConnectInvites */
|
|
1475
805
|
export const listConnectInvites: API.PaginatedOperationMethod<
|
|
1476
806
|
ListConnectInvitesRequest,
|
|
1477
807
|
ListConnectInvitesResponse,
|
|
@@ -1480,8 +810,8 @@ export const listConnectInvites: API.PaginatedOperationMethod<
|
|
|
1480
810
|
unknown
|
|
1481
811
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1482
812
|
() => ({
|
|
1483
|
-
input: ListConnectInvitesRequest
|
|
1484
|
-
output: ListConnectInvitesResponse
|
|
813
|
+
input: __S(48, __c12, 0) as any as S.Schema<ListConnectInvitesRequest>,
|
|
814
|
+
output: __S(49, __c12, 1) as any as S.Schema<ListConnectInvitesResponse>,
|
|
1485
815
|
errors: [SlackError, SlackRateLimited],
|
|
1486
816
|
protocol: SlackProtocol,
|
|
1487
817
|
retry: Retry.Retry,
|
|
@@ -1496,7 +826,7 @@ export const listConnectInvites: API.PaginatedOperationMethod<
|
|
|
1496
826
|
) as any;
|
|
1497
827
|
|
|
1498
828
|
export type ListConversationsError = SlackOpError;
|
|
1499
|
-
/** Lists all channels in a Slack team. Required scopes
|
|
829
|
+
/** Lists all channels in a Slack team. Required scopes -- bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `invalid_limit` -- Value passed for `limit` is not understood. - `invalid_types` -- Value passed for `type` could not be used based on the method's capabilities or the permission scopes granted to the used token. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `missing_argument` -- A required argument is missing. - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/conversations.list */
|
|
1500
830
|
export const listConversations: API.PaginatedOperationMethod<
|
|
1501
831
|
ListConversationsRequest,
|
|
1502
832
|
ListConversationsResponse,
|
|
@@ -1505,8 +835,8 @@ export const listConversations: API.PaginatedOperationMethod<
|
|
|
1505
835
|
unknown
|
|
1506
836
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1507
837
|
() => ({
|
|
1508
|
-
input: ListConversationsRequest
|
|
1509
|
-
output: ListConversationsResponse
|
|
838
|
+
input: __S(60, __c15, 0) as any as S.Schema<ListConversationsRequest>,
|
|
839
|
+
output: __S(61, __c15, 1) as any as S.Schema<ListConversationsResponse>,
|
|
1510
840
|
errors: [SlackError, SlackRateLimited],
|
|
1511
841
|
protocol: SlackProtocol,
|
|
1512
842
|
retry: Retry.Retry,
|
|
@@ -1522,7 +852,7 @@ export const listConversations: API.PaginatedOperationMethod<
|
|
|
1522
852
|
) as any;
|
|
1523
853
|
|
|
1524
854
|
export type ListRequestSharedInviteError = SlackOpError;
|
|
1525
|
-
/** Lists requests to add external users to channels with ability to filter. Required scopes
|
|
855
|
+
/** Lists requests to add external users to channels with ability to filter. Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- A team preference prevents the user from listing invitation requests. - `invalid_cursor` -- The provided cursor is not valid. - `internal_error` -- Something unexpected went wrong. - `not_implemented` -- its not implemented! TODO: remove me See https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list */
|
|
1526
856
|
export const listRequestSharedInvite: API.PaginatedOperationMethod<
|
|
1527
857
|
ListRequestSharedInviteRequest,
|
|
1528
858
|
ListRequestSharedInviteResponse,
|
|
@@ -1531,8 +861,8 @@ export const listRequestSharedInvite: API.PaginatedOperationMethod<
|
|
|
1531
861
|
unknown
|
|
1532
862
|
> = /*@__PURE__*/ API.makePaginated(
|
|
1533
863
|
() => ({
|
|
1534
|
-
input: ListRequestSharedInviteRequest
|
|
1535
|
-
output: ListRequestSharedInviteResponse
|
|
864
|
+
input: __S(64, __c16, 0) as any as S.Schema<ListRequestSharedInviteRequest>,
|
|
865
|
+
output: __S(65, __c16, 1) as any as S.Schema<ListRequestSharedInviteResponse>,
|
|
1536
866
|
errors: [SlackError, SlackRateLimited],
|
|
1537
867
|
protocol: SlackProtocol,
|
|
1538
868
|
retry: Retry.Retry,
|
|
@@ -1548,91 +878,675 @@ export const listRequestSharedInvite: API.PaginatedOperationMethod<
|
|
|
1548
878
|
) as any;
|
|
1549
879
|
|
|
1550
880
|
export type RenameConversationError = SlackOpError;
|
|
1551
|
-
/** Renames a conversation. Required scopes
|
|
881
|
+
/** Renames a conversation. 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. - `invalid_name` -- Value passed for `name` was invalid. - `invalid_name_maxlength` -- Value passed for `name` exceeded max length. - `invalid_name_punctuation` -- Value passed for `name` contained only punctuation. - `invalid_name_required` -- Value passed for `name` was empty. - `invalid_name_specials` -- Value passed for `name` contained unallowed special characters or upper case characters. - `is_archived` -- Cannot rename archived channel. - `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. - `name_taken` -- New channel name is taken. - `not_authorized` -- Caller cannot rename this channel. - `not_in_channel` -- Caller is not a member of the channel. See https://docs.slack.dev/reference/methods/conversations.rename */
|
|
1552
882
|
export const renameConversation: API.OperationMethod<
|
|
1553
883
|
RenameConversationRequest,
|
|
1554
884
|
RenameConversationResponse,
|
|
1555
885
|
RenameConversationError,
|
|
1556
886
|
SlackOpContext
|
|
1557
887
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1558
|
-
input: RenameConversationRequest
|
|
1559
|
-
output: RenameConversationResponse
|
|
888
|
+
input: __S(68, __c17, 0) as any as S.Schema<RenameConversationRequest>,
|
|
889
|
+
output: __S(24, __c6, 0) as any as S.Schema<RenameConversationResponse>,
|
|
1560
890
|
errors: [SlackError, SlackRateLimited],
|
|
1561
891
|
protocol: SlackProtocol,
|
|
1562
892
|
retry: Retry.Retry,
|
|
1563
893
|
}));
|
|
1564
894
|
|
|
1565
895
|
export type RequestSharedInviteDenyError = SlackOpError;
|
|
1566
|
-
/** Denies a request to invite an external user to a channel Required scopes
|
|
896
|
+
/** Denies a request to invite an external user to a channel Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invite_not_found` -- We couldn't find a Slack Connect channel invite with the ID provided. - `user_not_found` -- We could not find the user who made the invite request. - `team_not_found` -- We could not find the team which made the invite request. - `channel_not_found` -- We could not find the channel where the request was made. - `invite_already_approved` -- This invite was already approved. - `invite_already_denied` -- This invite was already denied. - `invite_expired` -- This invite is expired. - `restricted_action` -- A team preference prevents the invite from being denied. - `internal_error` -- Something unexpected went wrong. - `message_too_long` -- If the passed in deny message is greater than 560 characters. See https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny */
|
|
1567
897
|
export const requestSharedInviteDeny: API.OperationMethod<
|
|
1568
898
|
RequestSharedInviteDenyRequest,
|
|
1569
899
|
RequestSharedInviteDenyResponse,
|
|
1570
900
|
RequestSharedInviteDenyError,
|
|
1571
901
|
SlackOpContext
|
|
1572
902
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1573
|
-
input: RequestSharedInviteDenyRequest
|
|
1574
|
-
output: RequestSharedInviteDenyResponse
|
|
903
|
+
input: __S(72, __c18, 0) as any as S.Schema<RequestSharedInviteDenyRequest>,
|
|
904
|
+
output: __S(56, __c14, 0) as any as S.Schema<RequestSharedInviteDenyResponse>,
|
|
1575
905
|
errors: [SlackError, SlackRateLimited],
|
|
1576
906
|
protocol: SlackProtocol,
|
|
1577
907
|
retry: Retry.Retry,
|
|
1578
908
|
}));
|
|
1579
909
|
|
|
1580
910
|
export type SetExternalInvitePermissionsError = SlackOpError;
|
|
1581
|
-
/** Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. Required scopes
|
|
911
|
+
/** Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Cannot find channel - `not_supported` -- Attempting to upgrade a channel that cannot be upgraded - `restricted_action` -- A team preference prevents the user from taking this action. - `invalid_target_team` -- The target team provided is not valid for the channel. - `invalid_action` -- The user did not provid a valid action. Valid actions are 'upgrade' or 'downgrade'. See https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set */
|
|
1582
912
|
export const setExternalInvitePermissions: API.OperationMethod<
|
|
1583
913
|
SetExternalInvitePermissionsRequest,
|
|
1584
914
|
SetExternalInvitePermissionsResponse,
|
|
1585
915
|
SetExternalInvitePermissionsError,
|
|
1586
916
|
SlackOpContext
|
|
1587
917
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1588
|
-
input: SetExternalInvitePermissionsRequest
|
|
1589
|
-
output: SetExternalInvitePermissionsResponse
|
|
918
|
+
input: __S(76, __c19, 0) as any as S.Schema<SetExternalInvitePermissionsRequest>,
|
|
919
|
+
output: __S(56, __c14, 0) as any as S.Schema<SetExternalInvitePermissionsResponse>,
|
|
1590
920
|
errors: [SlackError, SlackRateLimited],
|
|
1591
921
|
protocol: SlackProtocol,
|
|
1592
922
|
retry: Retry.Retry,
|
|
1593
923
|
}));
|
|
1594
924
|
|
|
1595
925
|
export type SetPurposeError = SlackOpError;
|
|
1596
|
-
/** Sets the channel description. Required scopes
|
|
926
|
+
/** Sets the channel description. Required scopes -- bot: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `is_archived` -- Channel has been archived. - `method_not_supported_for_channel_type` -- This conversation type cannot be used with this method. - `missing_scope` -- The calling token has not been granted the necessary scopes to complete this operation. - `not_in_channel` -- Authenticated user is not in the channel. - `too_long` -- Description was longer than 250 characters. - `user_is_restricted` -- Setting the channel description is a restricted action. See https://docs.slack.dev/reference/methods/conversations.setPurpose */
|
|
1597
927
|
export const setPurpose: API.OperationMethod<
|
|
1598
928
|
SetPurposeRequest,
|
|
1599
929
|
SetPurposeResponse,
|
|
1600
930
|
SetPurposeError,
|
|
1601
931
|
SlackOpContext
|
|
1602
932
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1603
|
-
input: SetPurposeRequest
|
|
1604
|
-
output: SetPurposeResponse
|
|
933
|
+
input: __S(80, __c20, 0) as any as S.Schema<SetPurposeRequest>,
|
|
934
|
+
output: __S(24, __c6, 0) as any as S.Schema<SetPurposeResponse>,
|
|
1605
935
|
errors: [SlackError, SlackRateLimited],
|
|
1606
936
|
protocol: SlackProtocol,
|
|
1607
937
|
retry: Retry.Retry,
|
|
1608
938
|
}));
|
|
1609
939
|
|
|
1610
940
|
export type SetTopicError = SlackOpError;
|
|
1611
|
-
/** Sets the topic for a conversation. Required scopes
|
|
941
|
+
/** Sets the topic for a conversation. Required scopes -- bot: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `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. - `not_in_channel` -- Authenticated user is not in the channel. - `too_long` -- Topic was longer than 250 characters. - `user_is_restricted` -- Setting the topic is a restricted action. See https://docs.slack.dev/reference/methods/conversations.setTopic */
|
|
1612
942
|
export const setTopic: API.OperationMethod<
|
|
1613
943
|
SetTopicRequest,
|
|
1614
944
|
SetTopicResponse,
|
|
1615
945
|
SetTopicError,
|
|
1616
946
|
SlackOpContext
|
|
1617
947
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1618
|
-
input: SetTopicRequest
|
|
1619
|
-
output: SetTopicResponse
|
|
948
|
+
input: __S(84, __c21, 0) as any as S.Schema<SetTopicRequest>,
|
|
949
|
+
output: __S(24, __c6, 0) as any as S.Schema<SetTopicResponse>,
|
|
1620
950
|
errors: [SlackError, SlackRateLimited],
|
|
1621
951
|
protocol: SlackProtocol,
|
|
1622
952
|
retry: Retry.Retry,
|
|
1623
953
|
}));
|
|
1624
954
|
|
|
1625
955
|
export type UnarchiveConversationError = SlackOpError;
|
|
1626
|
-
/** Reverses conversation archival. Required scopes
|
|
956
|
+
/** 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 */
|
|
1627
957
|
export const unarchiveConversation: API.OperationMethod<
|
|
1628
958
|
UnarchiveConversationRequest,
|
|
1629
959
|
UnarchiveConversationResponse,
|
|
1630
960
|
UnarchiveConversationError,
|
|
1631
961
|
SlackOpContext
|
|
1632
962
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1633
|
-
input: UnarchiveConversationRequest
|
|
1634
|
-
output: UnarchiveConversationResponse
|
|
963
|
+
input: __S(88, __c22, 0) as any as S.Schema<UnarchiveConversationRequest>,
|
|
964
|
+
output: __S(56, __c14, 0) as any as S.Schema<UnarchiveConversationResponse>,
|
|
1635
965
|
errors: [SlackError, SlackRateLimited],
|
|
1636
966
|
protocol: SlackProtocol,
|
|
1637
967
|
retry: Retry.Retry,
|
|
1638
968
|
}));
|
|
969
|
+
|
|
970
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
971
|
+
function __c0(j: number): any {
|
|
972
|
+
switch (j) {
|
|
973
|
+
case 0:
|
|
974
|
+
return S.suspend(() =>
|
|
975
|
+
S.Struct({
|
|
976
|
+
channel_name: S.String,
|
|
977
|
+
is_private: S.optional(S.Boolean),
|
|
978
|
+
free_trial_accepted: S.optional(S.Boolean),
|
|
979
|
+
invite_id: S.optional(S.String),
|
|
980
|
+
channel_id: S.optional(S.String),
|
|
981
|
+
team_id: S.optional(S.String),
|
|
982
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.acceptSharedInvite", code: 200 })),
|
|
983
|
+
).annotate({ identifier: "AcceptSharedInviteRequest" });
|
|
984
|
+
case 1:
|
|
985
|
+
return S.suspend(() =>
|
|
986
|
+
S.Struct({
|
|
987
|
+
ok: S.Boolean,
|
|
988
|
+
implicit_approval: S.Boolean,
|
|
989
|
+
channel_id: S.String,
|
|
990
|
+
invite_id: S.String,
|
|
991
|
+
can_open_scdm: S.Boolean,
|
|
992
|
+
}),
|
|
993
|
+
).annotate({ identifier: "AcceptSharedInviteResponse" });
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
function __c1(j: number): any {
|
|
997
|
+
switch (j) {
|
|
998
|
+
case 0:
|
|
999
|
+
return S.suspend(() =>
|
|
1000
|
+
S.Struct({
|
|
1001
|
+
text: S.String,
|
|
1002
|
+
is_override: S.Boolean,
|
|
1003
|
+
}),
|
|
1004
|
+
).annotate({ identifier: "ApproveRequestSharedInviteRequestMessage" });
|
|
1005
|
+
case 1:
|
|
1006
|
+
return S.suspend(() =>
|
|
1007
|
+
S.Struct({
|
|
1008
|
+
invite_id: S.String,
|
|
1009
|
+
is_external_limited: S.optional(S.Boolean),
|
|
1010
|
+
channel_id: S.optional(S.String),
|
|
1011
|
+
message: S.optional(__S(4, __c1, 0)),
|
|
1012
|
+
}).pipe(
|
|
1013
|
+
T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.approve", code: 200 }),
|
|
1014
|
+
),
|
|
1015
|
+
).annotate({ identifier: "ApproveRequestSharedInviteRequest" });
|
|
1016
|
+
case 2:
|
|
1017
|
+
return S.suspend(() =>
|
|
1018
|
+
S.Struct({
|
|
1019
|
+
ok: S.Boolean,
|
|
1020
|
+
invite_id: S.String,
|
|
1021
|
+
confirmation_code: S.optional(S.String),
|
|
1022
|
+
url: S.optional(S.String),
|
|
1023
|
+
}),
|
|
1024
|
+
).annotate({ identifier: "ApproveRequestSharedInviteResponse" });
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
function __c2(j: number): any {
|
|
1028
|
+
switch (j) {
|
|
1029
|
+
case 0:
|
|
1030
|
+
return S.suspend(() =>
|
|
1031
|
+
S.Struct({
|
|
1032
|
+
channel: S.optional(S.NullOr(S.String)),
|
|
1033
|
+
return_im: S.optional(S.Boolean),
|
|
1034
|
+
users: S.optional(S.String),
|
|
1035
|
+
prevent_creation: S.optional(S.Boolean),
|
|
1036
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.open", code: 200 })),
|
|
1037
|
+
).annotate({ identifier: "ConversationsOpenRequest" });
|
|
1038
|
+
case 1:
|
|
1039
|
+
return S.suspend(() =>
|
|
1040
|
+
S.Struct({
|
|
1041
|
+
ok: S.Boolean,
|
|
1042
|
+
already_open: S.optional(S.Boolean),
|
|
1043
|
+
no_op: S.optional(S.Boolean),
|
|
1044
|
+
channel: S.optional(S.Unknown),
|
|
1045
|
+
app_home: S.optional(S.Unknown),
|
|
1046
|
+
home_view: S.optional(S.NullOr(S.Unknown)),
|
|
1047
|
+
}),
|
|
1048
|
+
).annotate({ identifier: "ConversationsOpenResponse" });
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
function __c3(j: number): any {
|
|
1052
|
+
switch (j) {
|
|
1053
|
+
case 0:
|
|
1054
|
+
return S.suspend(() =>
|
|
1055
|
+
S.Struct({
|
|
1056
|
+
channel: S.String.pipe(T.Query()),
|
|
1057
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1058
|
+
include_all_metadata: S.optional(S.Boolean.pipe(T.Query())),
|
|
1059
|
+
inclusive: S.optional(S.Boolean.pipe(T.Query())),
|
|
1060
|
+
latest: S.optional(S.String.pipe(T.Query())),
|
|
1061
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1062
|
+
oldest: S.optional(S.String.pipe(T.Query())),
|
|
1063
|
+
ts: S.String.pipe(T.Query()),
|
|
1064
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations.replies", code: 200 })),
|
|
1065
|
+
).annotate({ identifier: "ConversationsRepliesRequest" });
|
|
1066
|
+
case 1:
|
|
1067
|
+
return S.suspend(() =>
|
|
1068
|
+
S.Struct({
|
|
1069
|
+
ok: S.Boolean,
|
|
1070
|
+
has_more: S.optional(S.Boolean),
|
|
1071
|
+
messages: __S(108, __c27, 0),
|
|
1072
|
+
latest_updates: S.optional(__S(104, __c26, 0)),
|
|
1073
|
+
unchanged_messages: S.optional(__S(112, __c28, 0)),
|
|
1074
|
+
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1075
|
+
}),
|
|
1076
|
+
).annotate({ identifier: "ConversationsRepliesResponse" });
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
function __c4(j: number): any {
|
|
1080
|
+
switch (j) {
|
|
1081
|
+
case 0:
|
|
1082
|
+
return S.suspend(() =>
|
|
1083
|
+
S.Struct({
|
|
1084
|
+
channel_id: S.String,
|
|
1085
|
+
document_content: S.optional(S.Unknown),
|
|
1086
|
+
title: S.optional(S.String),
|
|
1087
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.canvases.create", code: 200 })),
|
|
1088
|
+
).annotate({ identifier: "CreateCanvaseRequest" });
|
|
1089
|
+
case 1:
|
|
1090
|
+
return S.suspend(() =>
|
|
1091
|
+
S.Struct({
|
|
1092
|
+
ok: S.Boolean,
|
|
1093
|
+
canvas_id: S.String,
|
|
1094
|
+
}),
|
|
1095
|
+
).annotate({ identifier: "CreateCanvaseResponse" });
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
function __c5(j: number): any {
|
|
1099
|
+
switch (j) {
|
|
1100
|
+
case 0:
|
|
1101
|
+
return S.suspend(() =>
|
|
1102
|
+
S.Struct({
|
|
1103
|
+
is_private: S.optional(S.Boolean),
|
|
1104
|
+
name: S.String,
|
|
1105
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
1106
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.create", code: 200 })),
|
|
1107
|
+
).annotate({ identifier: "CreateConversationRequest" });
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
function __c6(j: number): any {
|
|
1111
|
+
switch (j) {
|
|
1112
|
+
case 0:
|
|
1113
|
+
return S.suspend(() =>
|
|
1114
|
+
S.Struct({
|
|
1115
|
+
ok: S.Boolean,
|
|
1116
|
+
channel: S.Unknown,
|
|
1117
|
+
}),
|
|
1118
|
+
).annotate({ identifier: "CreateConversationResponse" });
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
function __c7(j: number): any {
|
|
1122
|
+
switch (j) {
|
|
1123
|
+
case 0:
|
|
1124
|
+
return S.suspend(() =>
|
|
1125
|
+
S.Struct({
|
|
1126
|
+
channel: S.String,
|
|
1127
|
+
force: S.optional(S.Boolean),
|
|
1128
|
+
users: S.String,
|
|
1129
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.invite", code: 200 })),
|
|
1130
|
+
).annotate({ identifier: "InviteConversationRequest" });
|
|
1131
|
+
case 1:
|
|
1132
|
+
return S.suspend(() =>
|
|
1133
|
+
S.Struct({
|
|
1134
|
+
ok: S.Boolean,
|
|
1135
|
+
channel: S.optional(S.Unknown),
|
|
1136
|
+
group: S.optional(S.Unknown),
|
|
1137
|
+
errors: S.optional(__S(108, __c27, 0)),
|
|
1138
|
+
}),
|
|
1139
|
+
).annotate({ identifier: "InviteConversationResponse" });
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
function __c8(j: number): any {
|
|
1143
|
+
switch (j) {
|
|
1144
|
+
case 0:
|
|
1145
|
+
return S.suspend(() =>
|
|
1146
|
+
S.Struct({
|
|
1147
|
+
invite_id: S.String.pipe(T.Query()),
|
|
1148
|
+
target_team: S.optional(S.String.pipe(T.Query())),
|
|
1149
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations.declineSharedInvite", code: 200 })),
|
|
1150
|
+
).annotate({ identifier: "InviteDeclineSharedRequest" });
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
function __c9(j: number): any {
|
|
1154
|
+
switch (j) {
|
|
1155
|
+
case 0:
|
|
1156
|
+
return S.suspend(() =>
|
|
1157
|
+
S.Struct({
|
|
1158
|
+
channel: S.String,
|
|
1159
|
+
emails: S.optional(__S(112, __c28, 0)),
|
|
1160
|
+
user_ids: S.optional(__S(112, __c28, 0)),
|
|
1161
|
+
external_limited: S.optional(S.Boolean),
|
|
1162
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.inviteShared", code: 200 })),
|
|
1163
|
+
).annotate({ identifier: "InviteSharedRequest" });
|
|
1164
|
+
case 1:
|
|
1165
|
+
return S.suspend(() =>
|
|
1166
|
+
S.Struct({
|
|
1167
|
+
ok: S.Boolean,
|
|
1168
|
+
url: S.optional(S.String),
|
|
1169
|
+
invite_id: S.optional(S.String),
|
|
1170
|
+
conf_code: S.optional(S.String),
|
|
1171
|
+
is_legacy_shared_channel: S.optional(S.Boolean),
|
|
1172
|
+
}),
|
|
1173
|
+
).annotate({ identifier: "InviteSharedResponse" });
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
function __c10(j: number): any {
|
|
1177
|
+
switch (j) {
|
|
1178
|
+
case 0:
|
|
1179
|
+
return S.suspend(() =>
|
|
1180
|
+
S.Struct({
|
|
1181
|
+
channel: S.String,
|
|
1182
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.join", code: 200 })),
|
|
1183
|
+
).annotate({ identifier: "JoinConversationRequest" });
|
|
1184
|
+
case 1:
|
|
1185
|
+
return S.suspend(() =>
|
|
1186
|
+
S.Struct({
|
|
1187
|
+
warnings: S.optional(__S(112, __c28, 0)),
|
|
1188
|
+
}),
|
|
1189
|
+
).annotate({ identifier: "JoinConversationResponseResponseMetadata" });
|
|
1190
|
+
case 2:
|
|
1191
|
+
return S.suspend(() =>
|
|
1192
|
+
S.Struct({
|
|
1193
|
+
ok: S.Boolean,
|
|
1194
|
+
channel: S.Unknown,
|
|
1195
|
+
response_metadata: S.optional(__S(41, __c10, 1)),
|
|
1196
|
+
}),
|
|
1197
|
+
).annotate({ identifier: "JoinConversationResponse" });
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
function __c11(j: number): any {
|
|
1201
|
+
switch (j) {
|
|
1202
|
+
case 0:
|
|
1203
|
+
return S.suspend(() =>
|
|
1204
|
+
S.Struct({
|
|
1205
|
+
channel: S.String,
|
|
1206
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.leave", code: 200 })),
|
|
1207
|
+
).annotate({ identifier: "LeaveConversationRequest" });
|
|
1208
|
+
case 1:
|
|
1209
|
+
return S.suspend(() =>
|
|
1210
|
+
S.Struct({
|
|
1211
|
+
ok: S.Boolean,
|
|
1212
|
+
not_in_channel: S.optional(S.Boolean),
|
|
1213
|
+
}),
|
|
1214
|
+
).annotate({ identifier: "LeaveConversationResponse" });
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
function __c12(j: number): any {
|
|
1218
|
+
switch (j) {
|
|
1219
|
+
case 0:
|
|
1220
|
+
return S.suspend(() =>
|
|
1221
|
+
S.Struct({
|
|
1222
|
+
team_id: S.optional(S.String),
|
|
1223
|
+
count: S.optional(S.Number),
|
|
1224
|
+
cursor: S.optional(S.String),
|
|
1225
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.listConnectInvites", code: 200 })),
|
|
1226
|
+
).annotate({ identifier: "ListConnectInvitesRequest" });
|
|
1227
|
+
case 1:
|
|
1228
|
+
return S.suspend(() =>
|
|
1229
|
+
S.Struct({
|
|
1230
|
+
ok: S.Boolean,
|
|
1231
|
+
invites: __S(108, __c27, 0),
|
|
1232
|
+
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1233
|
+
}),
|
|
1234
|
+
).annotate({ identifier: "ListConnectInvitesResponse" });
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
function __c13(j: number): any {
|
|
1238
|
+
switch (j) {
|
|
1239
|
+
case 0:
|
|
1240
|
+
return S.suspend(() =>
|
|
1241
|
+
S.Struct({
|
|
1242
|
+
invite_id: S.String,
|
|
1243
|
+
target_team: S.optional(S.String),
|
|
1244
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.approveSharedInvite", code: 200 })),
|
|
1245
|
+
).annotate({ identifier: "ApproveSharedInviteRequest" });
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function __c14(j: number): any {
|
|
1249
|
+
switch (j) {
|
|
1250
|
+
case 0:
|
|
1251
|
+
return S.suspend(() =>
|
|
1252
|
+
S.Struct({
|
|
1253
|
+
ok: S.Boolean,
|
|
1254
|
+
}),
|
|
1255
|
+
).annotate({ identifier: "ApproveSharedInviteResponse" });
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
function __c15(j: number): any {
|
|
1259
|
+
switch (j) {
|
|
1260
|
+
case 0:
|
|
1261
|
+
return S.suspend(() =>
|
|
1262
|
+
S.Struct({
|
|
1263
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1264
|
+
exclude_archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
1265
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1266
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
1267
|
+
types: S.optional(S.String.pipe(T.Query())),
|
|
1268
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations.list", code: 200 })),
|
|
1269
|
+
).annotate({ identifier: "ListConversationsRequest" });
|
|
1270
|
+
case 1:
|
|
1271
|
+
return S.suspend(() =>
|
|
1272
|
+
S.Struct({
|
|
1273
|
+
ok: S.Boolean,
|
|
1274
|
+
channels: __S(108, __c27, 0),
|
|
1275
|
+
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1276
|
+
}),
|
|
1277
|
+
).annotate({ identifier: "ListConversationsResponse" });
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
function __c16(j: number): any {
|
|
1281
|
+
switch (j) {
|
|
1282
|
+
case 0:
|
|
1283
|
+
return S.suspend(() =>
|
|
1284
|
+
S.Struct({
|
|
1285
|
+
user_id: S.optional(S.String),
|
|
1286
|
+
include_expired: S.optional(S.Boolean),
|
|
1287
|
+
include_approved: S.optional(S.Boolean),
|
|
1288
|
+
include_denied: S.optional(S.Boolean),
|
|
1289
|
+
invite_ids: S.optional(__S(112, __c28, 0)),
|
|
1290
|
+
limit: S.optional(S.Number),
|
|
1291
|
+
cursor: S.optional(S.String),
|
|
1292
|
+
}).pipe(
|
|
1293
|
+
T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.list", code: 200 }),
|
|
1294
|
+
),
|
|
1295
|
+
).annotate({ identifier: "ListRequestSharedInviteRequest" });
|
|
1296
|
+
case 1:
|
|
1297
|
+
return S.suspend(() =>
|
|
1298
|
+
S.Struct({
|
|
1299
|
+
ok: S.Boolean,
|
|
1300
|
+
invite_requests: __S(108, __c27, 0),
|
|
1301
|
+
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1302
|
+
}),
|
|
1303
|
+
).annotate({ identifier: "ListRequestSharedInviteResponse" });
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
function __c17(j: number): any {
|
|
1307
|
+
switch (j) {
|
|
1308
|
+
case 0:
|
|
1309
|
+
return S.suspend(() =>
|
|
1310
|
+
S.Struct({
|
|
1311
|
+
channel: S.String,
|
|
1312
|
+
name: S.String,
|
|
1313
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.rename", code: 200 })),
|
|
1314
|
+
).annotate({ identifier: "RenameConversationRequest" });
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
function __c18(j: number): any {
|
|
1318
|
+
switch (j) {
|
|
1319
|
+
case 0:
|
|
1320
|
+
return S.suspend(() =>
|
|
1321
|
+
S.Struct({
|
|
1322
|
+
invite_id: S.String,
|
|
1323
|
+
message: S.optional(S.String),
|
|
1324
|
+
}).pipe(
|
|
1325
|
+
T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.deny", code: 200 }),
|
|
1326
|
+
),
|
|
1327
|
+
).annotate({ identifier: "RequestSharedInviteDenyRequest" });
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
function __c19(j: number): any {
|
|
1331
|
+
switch (j) {
|
|
1332
|
+
case 0:
|
|
1333
|
+
return S.suspend(() =>
|
|
1334
|
+
S.Struct({
|
|
1335
|
+
channel: S.String,
|
|
1336
|
+
target_team: S.String,
|
|
1337
|
+
action: S.String,
|
|
1338
|
+
}).pipe(
|
|
1339
|
+
T.Http({
|
|
1340
|
+
method: "POST",
|
|
1341
|
+
uri: "/conversations.externalInvitePermissions.set",
|
|
1342
|
+
code: 200,
|
|
1343
|
+
contentType: "form-urlencoded",
|
|
1344
|
+
}),
|
|
1345
|
+
),
|
|
1346
|
+
).annotate({ identifier: "SetExternalInvitePermissionsRequest" });
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
function __c20(j: number): any {
|
|
1350
|
+
switch (j) {
|
|
1351
|
+
case 0:
|
|
1352
|
+
return S.suspend(() =>
|
|
1353
|
+
S.Struct({
|
|
1354
|
+
channel: S.String,
|
|
1355
|
+
purpose: S.String,
|
|
1356
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.setPurpose", code: 200 })),
|
|
1357
|
+
).annotate({ identifier: "SetPurposeRequest" });
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
function __c21(j: number): any {
|
|
1361
|
+
switch (j) {
|
|
1362
|
+
case 0:
|
|
1363
|
+
return S.suspend(() =>
|
|
1364
|
+
S.Struct({
|
|
1365
|
+
channel: S.String,
|
|
1366
|
+
topic: S.String,
|
|
1367
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.setTopic", code: 200 })),
|
|
1368
|
+
).annotate({ identifier: "SetTopicRequest" });
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
function __c22(j: number): any {
|
|
1372
|
+
switch (j) {
|
|
1373
|
+
case 0:
|
|
1374
|
+
return S.suspend(() =>
|
|
1375
|
+
S.Struct({
|
|
1376
|
+
channel: S.String,
|
|
1377
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.unarchive", code: 200 })),
|
|
1378
|
+
).annotate({ identifier: "UnarchiveConversationRequest" });
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
function __c23(j: number): any {
|
|
1382
|
+
switch (j) {
|
|
1383
|
+
case 0:
|
|
1384
|
+
return S.suspend(() =>
|
|
1385
|
+
S.Struct({
|
|
1386
|
+
channel: S.String,
|
|
1387
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.archive", code: 200 })),
|
|
1388
|
+
).annotate({ identifier: "ArchiveConversationRequest" });
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
function __c24(j: number): any {
|
|
1392
|
+
switch (j) {
|
|
1393
|
+
case 0:
|
|
1394
|
+
return S.suspend(() =>
|
|
1395
|
+
S.Struct({
|
|
1396
|
+
channel: S.String,
|
|
1397
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.close", code: 200 })),
|
|
1398
|
+
).annotate({ identifier: "ConversationsCloseRequest" });
|
|
1399
|
+
case 1:
|
|
1400
|
+
return S.suspend(() =>
|
|
1401
|
+
S.Struct({
|
|
1402
|
+
ok: S.Boolean,
|
|
1403
|
+
already_closed: S.optional(S.Boolean),
|
|
1404
|
+
no_op: S.optional(S.Boolean),
|
|
1405
|
+
}),
|
|
1406
|
+
).annotate({ identifier: "ConversationsCloseResponse" });
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
function __c25(j: number): any {
|
|
1410
|
+
switch (j) {
|
|
1411
|
+
case 0:
|
|
1412
|
+
return S.suspend(() =>
|
|
1413
|
+
S.Struct({
|
|
1414
|
+
channel: S.String.pipe(T.Query()),
|
|
1415
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1416
|
+
include_all_metadata: S.optional(S.Boolean.pipe(T.Query())),
|
|
1417
|
+
inclusive: S.optional(S.Boolean.pipe(T.Query())),
|
|
1418
|
+
latest: S.optional(S.String.pipe(T.Query())),
|
|
1419
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1420
|
+
oldest: S.optional(S.String.pipe(T.Query())),
|
|
1421
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations.history", code: 200 })),
|
|
1422
|
+
).annotate({ identifier: "ConversationsHistoryRequest" });
|
|
1423
|
+
case 1:
|
|
1424
|
+
return S.suspend(() =>
|
|
1425
|
+
S.Struct({
|
|
1426
|
+
latest: S.String,
|
|
1427
|
+
updated: S.String,
|
|
1428
|
+
history_invalid: S.String,
|
|
1429
|
+
}),
|
|
1430
|
+
).annotate({ identifier: "ConversationsHistoryResponseMutationTimestamps" });
|
|
1431
|
+
case 2:
|
|
1432
|
+
return S.suspend(() =>
|
|
1433
|
+
S.Struct({
|
|
1434
|
+
ok: S.Boolean,
|
|
1435
|
+
messages: __S(108, __c27, 0),
|
|
1436
|
+
has_more: S.Boolean,
|
|
1437
|
+
pin_count: S.optional(S.Number),
|
|
1438
|
+
channel_actions_ts: S.Unknown,
|
|
1439
|
+
channel_actions_count: S.Number,
|
|
1440
|
+
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1441
|
+
oldest: S.optional(S.String),
|
|
1442
|
+
is_limited: S.optional(S.Boolean),
|
|
1443
|
+
latest: S.optional(S.String),
|
|
1444
|
+
unread_count_display: S.optional(S.Number),
|
|
1445
|
+
users: S.optional(__S(104, __c26, 0)),
|
|
1446
|
+
deleted: S.optional(__S(112, __c28, 0)),
|
|
1447
|
+
mutation_timestamps: S.optional(__S(101, __c25, 1)),
|
|
1448
|
+
deleted_overflow: S.optional(S.Boolean),
|
|
1449
|
+
warnings: S.optional(__S(112, __c28, 0)),
|
|
1450
|
+
next_ts: S.optional(S.Number),
|
|
1451
|
+
latest_updates: S.optional(__S(104, __c26, 0)),
|
|
1452
|
+
unchanged_messages: S.optional(__S(112, __c28, 0)),
|
|
1453
|
+
date_joined: S.optional(S.Number),
|
|
1454
|
+
}),
|
|
1455
|
+
).annotate({ identifier: "ConversationsHistoryResponse" });
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
function __c26(j: number): any {
|
|
1459
|
+
switch (j) {
|
|
1460
|
+
case 0:
|
|
1461
|
+
return S.Record(S.String, S.Unknown);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
function __c27(j: number): any {
|
|
1465
|
+
switch (j) {
|
|
1466
|
+
case 0:
|
|
1467
|
+
return S.Array(S.Unknown);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
function __c28(j: number): any {
|
|
1471
|
+
switch (j) {
|
|
1472
|
+
case 0:
|
|
1473
|
+
return S.Array(S.String);
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
function __c29(j: number): any {
|
|
1477
|
+
switch (j) {
|
|
1478
|
+
case 0:
|
|
1479
|
+
return S.suspend(() =>
|
|
1480
|
+
S.Struct({
|
|
1481
|
+
next_cursor: S.optional(S.String),
|
|
1482
|
+
}),
|
|
1483
|
+
).annotate({ identifier: "ConversationsHistoryResponseResponseMetadata" });
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
function __c30(j: number): any {
|
|
1487
|
+
switch (j) {
|
|
1488
|
+
case 0:
|
|
1489
|
+
return S.suspend(() =>
|
|
1490
|
+
S.Struct({
|
|
1491
|
+
channel: S.String.pipe(T.Query()),
|
|
1492
|
+
include_locale: S.optional(S.Boolean.pipe(T.Query())),
|
|
1493
|
+
include_num_members: S.optional(S.Boolean.pipe(T.Query())),
|
|
1494
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations.info", code: 200 })),
|
|
1495
|
+
).annotate({ identifier: "ConversationsInfoRequest" });
|
|
1496
|
+
case 1:
|
|
1497
|
+
return S.suspend(() =>
|
|
1498
|
+
S.Struct({
|
|
1499
|
+
ok: S.Boolean,
|
|
1500
|
+
app_home: S.optional(S.Unknown),
|
|
1501
|
+
channel: S.Unknown,
|
|
1502
|
+
home_view: S.optional(S.NullOr(S.Unknown)),
|
|
1503
|
+
}),
|
|
1504
|
+
).annotate({ identifier: "ConversationsInfoResponse" });
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
function __c31(j: number): any {
|
|
1508
|
+
switch (j) {
|
|
1509
|
+
case 0:
|
|
1510
|
+
return S.suspend(() =>
|
|
1511
|
+
S.Struct({
|
|
1512
|
+
channel: S.String,
|
|
1513
|
+
user: S.optional(S.String),
|
|
1514
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.kick", code: 200 })),
|
|
1515
|
+
).annotate({ identifier: "ConversationsKickRequest" });
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
function __c32(j: number): any {
|
|
1519
|
+
switch (j) {
|
|
1520
|
+
case 0:
|
|
1521
|
+
return S.suspend(() =>
|
|
1522
|
+
S.Struct({
|
|
1523
|
+
channel: S.String,
|
|
1524
|
+
ts: S.String,
|
|
1525
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations.mark", code: 200 })),
|
|
1526
|
+
).annotate({ identifier: "ConversationsMarkRequest" });
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
function __c33(j: number): any {
|
|
1530
|
+
switch (j) {
|
|
1531
|
+
case 0:
|
|
1532
|
+
return S.suspend(() =>
|
|
1533
|
+
S.Struct({
|
|
1534
|
+
channel: S.String.pipe(T.Query()),
|
|
1535
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1536
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1537
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations.members", code: 200 })),
|
|
1538
|
+
).annotate({ identifier: "ConversationsMembersRequest" });
|
|
1539
|
+
case 1:
|
|
1540
|
+
return S.suspend(() =>
|
|
1541
|
+
S.Struct({
|
|
1542
|
+
ok: S.Boolean,
|
|
1543
|
+
members: __S(112, __c28, 0),
|
|
1544
|
+
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1545
|
+
}),
|
|
1546
|
+
).annotate({ identifier: "ConversationsMembersResponse" });
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1550
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1551
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1552
|
+
}
|