@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,697 +1,101 @@
|
|
|
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.js";
|
|
5
6
|
import { slackPaginate } from "../pagination.js";
|
|
6
7
|
import { SlackProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})).
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})).
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}).pipe(
|
|
40
|
-
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})).
|
|
48
|
-
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}).pipe(
|
|
54
|
-
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export const
|
|
62
|
-
|
|
63
|
-
}).pipe(
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export const
|
|
72
|
-
|
|
73
|
-
}).pipe(
|
|
74
|
-
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
export const ConversationsHistoryResponseDeletedList = /*@__PURE__*/ S.Array(S.String);
|
|
102
|
-
export const ConversationsHistoryResponseMutationTimestamps = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
latest: S.String,
|
|
104
|
-
updated: S.String,
|
|
105
|
-
history_invalid: S.String,
|
|
106
|
-
})).annotate({
|
|
107
|
-
identifier: "ConversationsHistoryResponseMutationTimestamps",
|
|
108
|
-
});
|
|
109
|
-
export const ConversationsHistoryResponseWarningsList = /*@__PURE__*/ S.Array(S.String);
|
|
110
|
-
export const ConversationsHistoryResponseLatestUpdatesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
111
|
-
export const ConversationsHistoryResponseUnchangedMessagesList = /*@__PURE__*/ S.Array(S.String);
|
|
112
|
-
export const ConversationsHistoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
-
ok: S.Boolean,
|
|
114
|
-
messages: ConversationsHistoryResponseMessagesList,
|
|
115
|
-
has_more: S.Boolean,
|
|
116
|
-
pin_count: S.optional(S.Number),
|
|
117
|
-
channel_actions_ts: S.Unknown,
|
|
118
|
-
channel_actions_count: S.Number,
|
|
119
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
120
|
-
oldest: S.optional(S.String),
|
|
121
|
-
is_limited: S.optional(S.Boolean),
|
|
122
|
-
latest: S.optional(S.String),
|
|
123
|
-
unread_count_display: S.optional(S.Number),
|
|
124
|
-
users: S.optional(ConversationsHistoryResponseUsersMap),
|
|
125
|
-
deleted: S.optional(ConversationsHistoryResponseDeletedList),
|
|
126
|
-
mutation_timestamps: S.optional(ConversationsHistoryResponseMutationTimestamps),
|
|
127
|
-
deleted_overflow: S.optional(S.Boolean),
|
|
128
|
-
warnings: S.optional(ConversationsHistoryResponseWarningsList),
|
|
129
|
-
next_ts: S.optional(S.Number),
|
|
130
|
-
latest_updates: S.optional(ConversationsHistoryResponseLatestUpdatesMap),
|
|
131
|
-
unchanged_messages: S.optional(ConversationsHistoryResponseUnchangedMessagesList),
|
|
132
|
-
date_joined: S.optional(S.Number),
|
|
133
|
-
})).annotate({
|
|
134
|
-
identifier: "ConversationsHistoryResponse",
|
|
135
|
-
});
|
|
136
|
-
export const ConversationsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
-
channel: S.String.pipe(T.Query()),
|
|
138
|
-
include_locale: S.optional(S.Boolean.pipe(T.Query())),
|
|
139
|
-
include_num_members: S.optional(S.Boolean.pipe(T.Query())),
|
|
140
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.info", code: 200 }))).annotate({ identifier: "ConversationsInfoRequest" });
|
|
141
|
-
export const ConversationsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
142
|
-
ok: S.Boolean,
|
|
143
|
-
app_home: S.optional(S.Unknown),
|
|
144
|
-
channel: S.Unknown,
|
|
145
|
-
home_view: S.optional(S.NullOr(S.Unknown)),
|
|
146
|
-
})).annotate({
|
|
147
|
-
identifier: "ConversationsInfoResponse",
|
|
148
|
-
});
|
|
149
|
-
export const ConversationsKickRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
-
channel: S.String,
|
|
151
|
-
user: S.optional(S.String),
|
|
152
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.kick", code: 200 }))).annotate({ identifier: "ConversationsKickRequest" });
|
|
153
|
-
export const ConversationsKickResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
154
|
-
ok: S.Boolean,
|
|
155
|
-
})).annotate({
|
|
156
|
-
identifier: "ConversationsKickResponse",
|
|
157
|
-
});
|
|
158
|
-
export const ConversationsMarkRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
159
|
-
channel: S.String,
|
|
160
|
-
ts: S.String,
|
|
161
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.mark", code: 200 }))).annotate({ identifier: "ConversationsMarkRequest" });
|
|
162
|
-
export const ConversationsMarkResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
163
|
-
ok: S.Boolean,
|
|
164
|
-
})).annotate({
|
|
165
|
-
identifier: "ConversationsMarkResponse",
|
|
166
|
-
});
|
|
167
|
-
export const ConversationsMembersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
-
channel: S.String.pipe(T.Query()),
|
|
169
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
170
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
171
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.members", code: 200 }))).annotate({
|
|
172
|
-
identifier: "ConversationsMembersRequest",
|
|
173
|
-
});
|
|
174
|
-
export const ConversationsMembersResponseMembersList = /*@__PURE__*/ S.Array(S.String);
|
|
175
|
-
export const ConversationsMembersResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
|
|
176
|
-
export const ConversationsMembersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
177
|
-
ok: S.Boolean,
|
|
178
|
-
members: ConversationsMembersResponseMembersList,
|
|
179
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
180
|
-
})).annotate({
|
|
181
|
-
identifier: "ConversationsMembersResponse",
|
|
182
|
-
});
|
|
183
|
-
export const ConversationsOpenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
184
|
-
channel: S.optional(S.NullOr(S.String)),
|
|
185
|
-
return_im: S.optional(S.Boolean),
|
|
186
|
-
users: S.optional(S.String),
|
|
187
|
-
prevent_creation: S.optional(S.Boolean),
|
|
188
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.open", code: 200 }))).annotate({ identifier: "ConversationsOpenRequest" });
|
|
189
|
-
export const ConversationsOpenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
190
|
-
ok: S.Boolean,
|
|
191
|
-
already_open: S.optional(S.Boolean),
|
|
192
|
-
no_op: S.optional(S.Boolean),
|
|
193
|
-
channel: S.optional(S.Unknown),
|
|
194
|
-
app_home: S.optional(S.Unknown),
|
|
195
|
-
home_view: S.optional(S.NullOr(S.Unknown)),
|
|
196
|
-
})).annotate({
|
|
197
|
-
identifier: "ConversationsOpenResponse",
|
|
198
|
-
});
|
|
199
|
-
export const ConversationsRepliesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
200
|
-
channel: S.String.pipe(T.Query()),
|
|
201
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
202
|
-
include_all_metadata: S.optional(S.Boolean.pipe(T.Query())),
|
|
203
|
-
inclusive: S.optional(S.Boolean.pipe(T.Query())),
|
|
204
|
-
latest: S.optional(S.String.pipe(T.Query())),
|
|
205
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
206
|
-
oldest: S.optional(S.String.pipe(T.Query())),
|
|
207
|
-
ts: S.String.pipe(T.Query()),
|
|
208
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.replies", code: 200 }))).annotate({
|
|
209
|
-
identifier: "ConversationsRepliesRequest",
|
|
210
|
-
});
|
|
211
|
-
export const ConversationsRepliesResponseMessagesList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
212
|
-
export const ConversationsRepliesResponseLatestUpdatesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
213
|
-
export const ConversationsRepliesResponseUnchangedMessagesList = /*@__PURE__*/ S.Array(S.String);
|
|
214
|
-
export const ConversationsRepliesResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
|
|
215
|
-
export const ConversationsRepliesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
-
ok: S.Boolean,
|
|
217
|
-
has_more: S.optional(S.Boolean),
|
|
218
|
-
messages: ConversationsRepliesResponseMessagesList,
|
|
219
|
-
latest_updates: S.optional(ConversationsRepliesResponseLatestUpdatesMap),
|
|
220
|
-
unchanged_messages: S.optional(ConversationsRepliesResponseUnchangedMessagesList),
|
|
221
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
222
|
-
})).annotate({
|
|
223
|
-
identifier: "ConversationsRepliesResponse",
|
|
224
|
-
});
|
|
225
|
-
export const CreateCanvaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
226
|
-
channel_id: S.String,
|
|
227
|
-
document_content: S.optional(S.Unknown),
|
|
228
|
-
title: S.optional(S.String),
|
|
229
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.canvases.create", code: 200 }))).annotate({ identifier: "CreateCanvaseRequest" });
|
|
230
|
-
export const CreateCanvaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
231
|
-
ok: S.Boolean,
|
|
232
|
-
canvas_id: S.String,
|
|
233
|
-
})).annotate({ identifier: "CreateCanvaseResponse" });
|
|
234
|
-
export const CreateConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
-
is_private: S.optional(S.Boolean),
|
|
236
|
-
name: S.String,
|
|
237
|
-
team_id: S.optional(S.NullOr(S.String)),
|
|
238
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.create", code: 200 }))).annotate({
|
|
239
|
-
identifier: "CreateConversationRequest",
|
|
240
|
-
});
|
|
241
|
-
export const CreateConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
-
ok: S.Boolean,
|
|
243
|
-
channel: S.Unknown,
|
|
244
|
-
})).annotate({
|
|
245
|
-
identifier: "CreateConversationResponse",
|
|
246
|
-
});
|
|
247
|
-
export const InviteConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
-
channel: S.String,
|
|
249
|
-
force: S.optional(S.Boolean),
|
|
250
|
-
users: S.String,
|
|
251
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.invite", code: 200 }))).annotate({
|
|
252
|
-
identifier: "InviteConversationRequest",
|
|
253
|
-
});
|
|
254
|
-
export const InviteConversationResponseErrorsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
255
|
-
export const InviteConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
256
|
-
ok: S.Boolean,
|
|
257
|
-
channel: S.optional(S.Unknown),
|
|
258
|
-
group: S.optional(S.Unknown),
|
|
259
|
-
errors: S.optional(InviteConversationResponseErrorsList),
|
|
260
|
-
})).annotate({
|
|
261
|
-
identifier: "InviteConversationResponse",
|
|
262
|
-
});
|
|
263
|
-
export const InviteDeclineSharedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
264
|
-
invite_id: S.String.pipe(T.Query()),
|
|
265
|
-
target_team: S.optional(S.String.pipe(T.Query())),
|
|
266
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.declineSharedInvite", code: 200 }))).annotate({
|
|
267
|
-
identifier: "InviteDeclineSharedRequest",
|
|
268
|
-
});
|
|
269
|
-
export const InviteDeclineSharedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
270
|
-
ok: S.Boolean,
|
|
271
|
-
})).annotate({
|
|
272
|
-
identifier: "InviteDeclineSharedResponse",
|
|
273
|
-
});
|
|
274
|
-
export const InviteSharedRequestEmailsList = /*@__PURE__*/ S.Array(S.String);
|
|
275
|
-
export const InviteSharedRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
276
|
-
export const InviteSharedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
277
|
-
channel: S.String,
|
|
278
|
-
emails: S.optional(InviteSharedRequestEmailsList),
|
|
279
|
-
user_ids: S.optional(InviteSharedRequestUserIdsList),
|
|
280
|
-
external_limited: S.optional(S.Boolean),
|
|
281
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.inviteShared", code: 200 }))).annotate({ identifier: "InviteSharedRequest" });
|
|
282
|
-
export const InviteSharedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
283
|
-
ok: S.Boolean,
|
|
284
|
-
url: S.optional(S.String),
|
|
285
|
-
invite_id: S.optional(S.String),
|
|
286
|
-
conf_code: S.optional(S.String),
|
|
287
|
-
is_legacy_shared_channel: S.optional(S.Boolean),
|
|
288
|
-
})).annotate({ identifier: "InviteSharedResponse" });
|
|
289
|
-
export const JoinConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
290
|
-
channel: S.String,
|
|
291
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.join", code: 200 }))).annotate({ identifier: "JoinConversationRequest" });
|
|
292
|
-
export const JoinConversationResponseResponseMetadataWarningsList = /*@__PURE__*/ S.Array(S.String);
|
|
293
|
-
export const JoinConversationResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
294
|
-
warnings: S.optional(JoinConversationResponseResponseMetadataWarningsList),
|
|
295
|
-
})).annotate({
|
|
296
|
-
identifier: "JoinConversationResponseResponseMetadata",
|
|
297
|
-
});
|
|
298
|
-
export const JoinConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
-
ok: S.Boolean,
|
|
300
|
-
channel: S.Unknown,
|
|
301
|
-
response_metadata: S.optional(JoinConversationResponseResponseMetadata),
|
|
302
|
-
})).annotate({ identifier: "JoinConversationResponse" });
|
|
303
|
-
export const LeaveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
304
|
-
channel: S.String,
|
|
305
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.leave", code: 200 }))).annotate({ identifier: "LeaveConversationRequest" });
|
|
306
|
-
export const LeaveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
307
|
-
ok: S.Boolean,
|
|
308
|
-
not_in_channel: S.optional(S.Boolean),
|
|
309
|
-
})).annotate({
|
|
310
|
-
identifier: "LeaveConversationResponse",
|
|
311
|
-
});
|
|
312
|
-
export const ListConnectInvitesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
313
|
-
team_id: S.optional(S.String),
|
|
314
|
-
count: S.optional(S.Number),
|
|
315
|
-
cursor: S.optional(S.String),
|
|
316
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.listConnectInvites", code: 200 }))).annotate({
|
|
317
|
-
identifier: "ListConnectInvitesRequest",
|
|
318
|
-
});
|
|
319
|
-
export const ListConnectInvitesResponseInvitesList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
320
|
-
export const ListConnectInvitesResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
|
|
321
|
-
export const ListConnectInvitesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
322
|
-
ok: S.Boolean,
|
|
323
|
-
invites: ListConnectInvitesResponseInvitesList,
|
|
324
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
325
|
-
})).annotate({
|
|
326
|
-
identifier: "ListConnectInvitesResponse",
|
|
327
|
-
});
|
|
328
|
-
export const ListConversationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
330
|
-
exclude_archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
331
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
332
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
333
|
-
types: S.optional(S.String.pipe(T.Query())),
|
|
334
|
-
}).pipe(T.Http({ method: "GET", uri: "/conversations.list", code: 200 }))).annotate({ identifier: "ListConversationsRequest" });
|
|
335
|
-
export const ListConversationsResponseChannelsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
336
|
-
export const ListConversationsResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
|
|
337
|
-
export const ListConversationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
338
|
-
ok: S.Boolean,
|
|
339
|
-
channels: ListConversationsResponseChannelsList,
|
|
340
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
341
|
-
})).annotate({
|
|
342
|
-
identifier: "ListConversationsResponse",
|
|
343
|
-
});
|
|
344
|
-
export const ListRequestSharedInviteRequestInviteIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
345
|
-
export const ListRequestSharedInviteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
346
|
-
user_id: S.optional(S.String),
|
|
347
|
-
include_expired: S.optional(S.Boolean),
|
|
348
|
-
include_approved: S.optional(S.Boolean),
|
|
349
|
-
include_denied: S.optional(S.Boolean),
|
|
350
|
-
invite_ids: S.optional(ListRequestSharedInviteRequestInviteIdsList),
|
|
351
|
-
limit: S.optional(S.Number),
|
|
352
|
-
cursor: S.optional(S.String),
|
|
353
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.list", code: 200 }))).annotate({
|
|
354
|
-
identifier: "ListRequestSharedInviteRequest",
|
|
355
|
-
});
|
|
356
|
-
export const ListRequestSharedInviteResponseInviteRequestsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
357
|
-
export const ListRequestSharedInviteResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
|
|
358
|
-
export const ListRequestSharedInviteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
359
|
-
ok: S.Boolean,
|
|
360
|
-
invite_requests: ListRequestSharedInviteResponseInviteRequestsList,
|
|
361
|
-
response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
|
|
362
|
-
})).annotate({
|
|
363
|
-
identifier: "ListRequestSharedInviteResponse",
|
|
364
|
-
});
|
|
365
|
-
export const RenameConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
366
|
-
channel: S.String,
|
|
367
|
-
name: S.String,
|
|
368
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.rename", code: 200 }))).annotate({
|
|
369
|
-
identifier: "RenameConversationRequest",
|
|
370
|
-
});
|
|
371
|
-
export const RenameConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
|
-
ok: S.Boolean,
|
|
373
|
-
channel: S.Unknown,
|
|
374
|
-
})).annotate({
|
|
375
|
-
identifier: "RenameConversationResponse",
|
|
376
|
-
});
|
|
377
|
-
export const RequestSharedInviteDenyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
378
|
-
invite_id: S.String,
|
|
379
|
-
message: S.optional(S.String),
|
|
380
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.deny", code: 200 }))).annotate({
|
|
381
|
-
identifier: "RequestSharedInviteDenyRequest",
|
|
382
|
-
});
|
|
383
|
-
export const RequestSharedInviteDenyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
384
|
-
ok: S.Boolean,
|
|
385
|
-
})).annotate({
|
|
386
|
-
identifier: "RequestSharedInviteDenyResponse",
|
|
387
|
-
});
|
|
388
|
-
export const SetExternalInvitePermissionsRequestAction = S.String;
|
|
389
|
-
export const SetExternalInvitePermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
390
|
-
channel: S.String,
|
|
391
|
-
target_team: S.String,
|
|
392
|
-
action: SetExternalInvitePermissionsRequestAction,
|
|
393
|
-
}).pipe(T.Http({
|
|
394
|
-
method: "POST",
|
|
395
|
-
uri: "/conversations.externalInvitePermissions.set",
|
|
396
|
-
code: 200,
|
|
397
|
-
contentType: "form-urlencoded",
|
|
398
|
-
}))).annotate({
|
|
399
|
-
identifier: "SetExternalInvitePermissionsRequest",
|
|
400
|
-
});
|
|
401
|
-
export const SetExternalInvitePermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
402
|
-
ok: S.Boolean,
|
|
403
|
-
})).annotate({
|
|
404
|
-
identifier: "SetExternalInvitePermissionsResponse",
|
|
405
|
-
});
|
|
406
|
-
export const SetPurposeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
|
-
channel: S.String,
|
|
408
|
-
purpose: S.String,
|
|
409
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.setPurpose", code: 200 }))).annotate({ identifier: "SetPurposeRequest" });
|
|
410
|
-
export const SetPurposeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
411
|
-
ok: S.Boolean,
|
|
412
|
-
channel: S.Unknown,
|
|
413
|
-
})).annotate({ identifier: "SetPurposeResponse" });
|
|
414
|
-
export const SetTopicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
415
|
-
channel: S.String,
|
|
416
|
-
topic: S.String,
|
|
417
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.setTopic", code: 200 }))).annotate({ identifier: "SetTopicRequest" });
|
|
418
|
-
export const SetTopicResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
419
|
-
ok: S.Boolean,
|
|
420
|
-
channel: S.Unknown,
|
|
421
|
-
})).annotate({ identifier: "SetTopicResponse" });
|
|
422
|
-
export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
423
|
-
channel: S.String,
|
|
424
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations.unarchive", code: 200 }))).annotate({
|
|
425
|
-
identifier: "UnarchiveConversationRequest",
|
|
426
|
-
});
|
|
427
|
-
export const UnarchiveConversationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
428
|
-
ok: S.Boolean,
|
|
429
|
-
})).annotate({
|
|
430
|
-
identifier: "UnarchiveConversationResponse",
|
|
431
|
-
});
|
|
432
|
-
/** 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 */
|
|
433
|
-
export const acceptSharedInvite = /*@__PURE__*/ API.make(() => ({
|
|
434
|
-
input: AcceptSharedInviteRequest,
|
|
435
|
-
output: AcceptSharedInviteResponse,
|
|
436
|
-
errors: [SlackError, SlackRateLimited],
|
|
437
|
-
protocol: SlackProtocol,
|
|
438
|
-
retry: Retry.Retry,
|
|
439
|
-
}));
|
|
440
|
-
/** 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 */
|
|
441
|
-
export const approveRequestSharedInvite = /*@__PURE__*/ API.make(() => ({
|
|
442
|
-
input: ApproveRequestSharedInviteRequest,
|
|
443
|
-
output: ApproveRequestSharedInviteResponse,
|
|
444
|
-
errors: [SlackError, SlackRateLimited],
|
|
445
|
-
protocol: SlackProtocol,
|
|
446
|
-
retry: Retry.Retry,
|
|
447
|
-
}));
|
|
448
|
-
/** 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 */
|
|
449
|
-
export const approveSharedInvite = /*@__PURE__*/ API.make(() => ({
|
|
450
|
-
input: ApproveSharedInviteRequest,
|
|
451
|
-
output: ApproveSharedInviteResponse,
|
|
452
|
-
errors: [SlackError, SlackRateLimited],
|
|
453
|
-
protocol: SlackProtocol,
|
|
454
|
-
retry: Retry.Retry,
|
|
455
|
-
}));
|
|
456
|
-
/** 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 */
|
|
457
|
-
export const archiveConversation = /*@__PURE__*/ API.make(() => ({
|
|
458
|
-
input: ArchiveConversationRequest,
|
|
459
|
-
output: ArchiveConversationResponse,
|
|
460
|
-
errors: [SlackError, SlackRateLimited],
|
|
461
|
-
protocol: SlackProtocol,
|
|
462
|
-
retry: Retry.Retry,
|
|
463
|
-
}));
|
|
464
|
-
/** 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 */
|
|
465
|
-
export const conversationsClose = /*@__PURE__*/ API.make(() => ({
|
|
466
|
-
input: ConversationsCloseRequest,
|
|
467
|
-
output: ConversationsCloseResponse,
|
|
468
|
-
errors: [SlackError, SlackRateLimited],
|
|
469
|
-
protocol: SlackProtocol,
|
|
470
|
-
retry: Retry.Retry,
|
|
471
|
-
}));
|
|
472
|
-
/** 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 */
|
|
473
|
-
export const conversationsHistory = /*@__PURE__*/ API.makePaginated(() => ({
|
|
474
|
-
input: ConversationsHistoryRequest,
|
|
475
|
-
output: ConversationsHistoryResponse,
|
|
476
|
-
errors: [SlackError, SlackRateLimited],
|
|
477
|
-
protocol: SlackProtocol,
|
|
478
|
-
retry: Retry.Retry,
|
|
479
|
-
pagination: {
|
|
480
|
-
mode: "cursor",
|
|
481
|
-
inputToken: "cursor",
|
|
482
|
-
outputToken: "response_metadata.next_cursor",
|
|
483
|
-
items: "messages",
|
|
484
|
-
pageSize: "limit",
|
|
485
|
-
},
|
|
486
|
-
}), slackPaginate);
|
|
487
|
-
/** 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 */
|
|
488
|
-
export const conversationsInfo = /*@__PURE__*/ API.make(() => ({
|
|
489
|
-
input: ConversationsInfoRequest,
|
|
490
|
-
output: ConversationsInfoResponse,
|
|
491
|
-
errors: [SlackError, SlackRateLimited],
|
|
492
|
-
protocol: SlackProtocol,
|
|
493
|
-
retry: Retry.Retry,
|
|
494
|
-
}));
|
|
495
|
-
/** 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 */
|
|
496
|
-
export const conversationsKick = /*@__PURE__*/ API.make(() => ({
|
|
497
|
-
input: ConversationsKickRequest,
|
|
498
|
-
output: ConversationsKickResponse,
|
|
499
|
-
errors: [SlackError, SlackRateLimited],
|
|
500
|
-
protocol: SlackProtocol,
|
|
501
|
-
retry: Retry.Retry,
|
|
502
|
-
}));
|
|
503
|
-
/** 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 */
|
|
504
|
-
export const conversationsMark = /*@__PURE__*/ API.make(() => ({
|
|
505
|
-
input: ConversationsMarkRequest,
|
|
506
|
-
output: ConversationsMarkResponse,
|
|
507
|
-
errors: [SlackError, SlackRateLimited],
|
|
508
|
-
protocol: SlackProtocol,
|
|
509
|
-
retry: Retry.Retry,
|
|
510
|
-
}));
|
|
511
|
-
/** 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 */
|
|
512
|
-
export const conversationsMembers = /*@__PURE__*/ API.makePaginated(() => ({
|
|
513
|
-
input: ConversationsMembersRequest,
|
|
514
|
-
output: ConversationsMembersResponse,
|
|
515
|
-
errors: [SlackError, SlackRateLimited],
|
|
516
|
-
protocol: SlackProtocol,
|
|
517
|
-
retry: Retry.Retry,
|
|
518
|
-
pagination: {
|
|
519
|
-
mode: "cursor",
|
|
520
|
-
inputToken: "cursor",
|
|
521
|
-
outputToken: "response_metadata.next_cursor",
|
|
522
|
-
items: "members",
|
|
523
|
-
pageSize: "limit",
|
|
524
|
-
},
|
|
525
|
-
}), slackPaginate);
|
|
526
|
-
/** 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 */
|
|
527
|
-
export const conversationsOpen = /*@__PURE__*/ API.make(() => ({
|
|
528
|
-
input: ConversationsOpenRequest,
|
|
529
|
-
output: ConversationsOpenResponse,
|
|
530
|
-
errors: [SlackError, SlackRateLimited],
|
|
531
|
-
protocol: SlackProtocol,
|
|
532
|
-
retry: Retry.Retry,
|
|
533
|
-
}));
|
|
534
|
-
/** 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 */
|
|
535
|
-
export const conversationsReplies = /*@__PURE__*/ API.makePaginated(() => ({
|
|
536
|
-
input: ConversationsRepliesRequest,
|
|
537
|
-
output: ConversationsRepliesResponse,
|
|
538
|
-
errors: [SlackError, SlackRateLimited],
|
|
539
|
-
protocol: SlackProtocol,
|
|
540
|
-
retry: Retry.Retry,
|
|
541
|
-
pagination: {
|
|
542
|
-
mode: "cursor",
|
|
543
|
-
inputToken: "cursor",
|
|
544
|
-
outputToken: "response_metadata.next_cursor",
|
|
545
|
-
items: "messages",
|
|
546
|
-
pageSize: "limit",
|
|
547
|
-
},
|
|
548
|
-
}), slackPaginate);
|
|
549
|
-
/** 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 */
|
|
550
|
-
export const createCanvase = /*@__PURE__*/ API.make(() => ({
|
|
551
|
-
input: CreateCanvaseRequest,
|
|
552
|
-
output: CreateCanvaseResponse,
|
|
553
|
-
errors: [SlackError, SlackRateLimited],
|
|
554
|
-
protocol: SlackProtocol,
|
|
555
|
-
retry: Retry.Retry,
|
|
556
|
-
}));
|
|
557
|
-
/** 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 */
|
|
558
|
-
export const createConversation = /*@__PURE__*/ API.make(() => ({
|
|
559
|
-
input: CreateConversationRequest,
|
|
560
|
-
output: CreateConversationResponse,
|
|
561
|
-
errors: [SlackError, SlackRateLimited],
|
|
562
|
-
protocol: SlackProtocol,
|
|
563
|
-
retry: Retry.Retry,
|
|
564
|
-
}));
|
|
565
|
-
/** 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 */
|
|
566
|
-
export const inviteConversation = /*@__PURE__*/ API.make(() => ({
|
|
567
|
-
input: InviteConversationRequest,
|
|
568
|
-
output: InviteConversationResponse,
|
|
569
|
-
errors: [SlackError, SlackRateLimited],
|
|
570
|
-
protocol: SlackProtocol,
|
|
571
|
-
retry: Retry.Retry,
|
|
572
|
-
}));
|
|
573
|
-
/** 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 */
|
|
574
|
-
export const inviteDeclineShared = /*@__PURE__*/ API.make(() => ({
|
|
575
|
-
input: InviteDeclineSharedRequest,
|
|
576
|
-
output: InviteDeclineSharedResponse,
|
|
577
|
-
errors: [SlackError, SlackRateLimited],
|
|
578
|
-
protocol: SlackProtocol,
|
|
579
|
-
retry: Retry.Retry,
|
|
580
|
-
}));
|
|
581
|
-
/** 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 */
|
|
582
|
-
export const inviteShared = /*@__PURE__*/ API.make(() => ({
|
|
583
|
-
input: InviteSharedRequest,
|
|
584
|
-
output: InviteSharedResponse,
|
|
585
|
-
errors: [SlackError, SlackRateLimited],
|
|
586
|
-
protocol: SlackProtocol,
|
|
587
|
-
retry: Retry.Retry,
|
|
588
|
-
}));
|
|
589
|
-
/** 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 */
|
|
590
|
-
export const joinConversation = /*@__PURE__*/ API.make(() => ({
|
|
591
|
-
input: JoinConversationRequest,
|
|
592
|
-
output: JoinConversationResponse,
|
|
593
|
-
errors: [SlackError, SlackRateLimited],
|
|
594
|
-
protocol: SlackProtocol,
|
|
595
|
-
retry: Retry.Retry,
|
|
596
|
-
}));
|
|
597
|
-
/** 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 */
|
|
598
|
-
export const leaveConversation = /*@__PURE__*/ API.make(() => ({
|
|
599
|
-
input: LeaveConversationRequest,
|
|
600
|
-
output: LeaveConversationResponse,
|
|
601
|
-
errors: [SlackError, SlackRateLimited],
|
|
602
|
-
protocol: SlackProtocol,
|
|
603
|
-
retry: Retry.Retry,
|
|
604
|
-
}));
|
|
605
|
-
/** 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 */
|
|
606
|
-
export const listConnectInvites = /*@__PURE__*/ API.makePaginated(() => ({
|
|
607
|
-
input: ListConnectInvitesRequest,
|
|
608
|
-
output: ListConnectInvitesResponse,
|
|
609
|
-
errors: [SlackError, SlackRateLimited],
|
|
610
|
-
protocol: SlackProtocol,
|
|
611
|
-
retry: Retry.Retry,
|
|
612
|
-
pagination: {
|
|
613
|
-
mode: "cursor",
|
|
614
|
-
inputToken: "cursor",
|
|
615
|
-
outputToken: "response_metadata.next_cursor",
|
|
616
|
-
items: "invites",
|
|
617
|
-
},
|
|
618
|
-
}), slackPaginate);
|
|
619
|
-
/** 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 */
|
|
620
|
-
export const listConversations = /*@__PURE__*/ API.makePaginated(() => ({
|
|
621
|
-
input: ListConversationsRequest,
|
|
622
|
-
output: ListConversationsResponse,
|
|
623
|
-
errors: [SlackError, SlackRateLimited],
|
|
624
|
-
protocol: SlackProtocol,
|
|
625
|
-
retry: Retry.Retry,
|
|
626
|
-
pagination: {
|
|
627
|
-
mode: "cursor",
|
|
628
|
-
inputToken: "cursor",
|
|
629
|
-
outputToken: "response_metadata.next_cursor",
|
|
630
|
-
items: "channels",
|
|
631
|
-
pageSize: "limit",
|
|
632
|
-
},
|
|
633
|
-
}), slackPaginate);
|
|
634
|
-
/** 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 */
|
|
635
|
-
export const listRequestSharedInvite = /*@__PURE__*/ API.makePaginated(() => ({
|
|
636
|
-
input: ListRequestSharedInviteRequest,
|
|
637
|
-
output: ListRequestSharedInviteResponse,
|
|
638
|
-
errors: [SlackError, SlackRateLimited],
|
|
639
|
-
protocol: SlackProtocol,
|
|
640
|
-
retry: Retry.Retry,
|
|
641
|
-
pagination: {
|
|
642
|
-
mode: "cursor",
|
|
643
|
-
inputToken: "cursor",
|
|
644
|
-
outputToken: "response_metadata.next_cursor",
|
|
645
|
-
items: "invite_requests",
|
|
646
|
-
pageSize: "limit",
|
|
647
|
-
},
|
|
648
|
-
}), slackPaginate);
|
|
649
|
-
/** 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 */
|
|
650
|
-
export const renameConversation = /*@__PURE__*/ API.make(() => ({
|
|
651
|
-
input: RenameConversationRequest,
|
|
652
|
-
output: RenameConversationResponse,
|
|
653
|
-
errors: [SlackError, SlackRateLimited],
|
|
654
|
-
protocol: SlackProtocol,
|
|
655
|
-
retry: Retry.Retry,
|
|
656
|
-
}));
|
|
657
|
-
/** 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 */
|
|
658
|
-
export const requestSharedInviteDeny = /*@__PURE__*/ API.make(() => ({
|
|
659
|
-
input: RequestSharedInviteDenyRequest,
|
|
660
|
-
output: RequestSharedInviteDenyResponse,
|
|
661
|
-
errors: [SlackError, SlackRateLimited],
|
|
662
|
-
protocol: SlackProtocol,
|
|
663
|
-
retry: Retry.Retry,
|
|
664
|
-
}));
|
|
665
|
-
/** 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 */
|
|
666
|
-
export const setExternalInvitePermissions = /*@__PURE__*/ API.make(() => ({
|
|
667
|
-
input: SetExternalInvitePermissionsRequest,
|
|
668
|
-
output: SetExternalInvitePermissionsResponse,
|
|
669
|
-
errors: [SlackError, SlackRateLimited],
|
|
670
|
-
protocol: SlackProtocol,
|
|
671
|
-
retry: Retry.Retry,
|
|
672
|
-
}));
|
|
673
|
-
/** 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 */
|
|
674
|
-
export const setPurpose = /*@__PURE__*/ API.make(() => ({
|
|
675
|
-
input: SetPurposeRequest,
|
|
676
|
-
output: SetPurposeResponse,
|
|
677
|
-
errors: [SlackError, SlackRateLimited],
|
|
678
|
-
protocol: SlackProtocol,
|
|
679
|
-
retry: Retry.Retry,
|
|
680
|
-
}));
|
|
681
|
-
/** 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 */
|
|
682
|
-
export const setTopic = /*@__PURE__*/ API.make(() => ({
|
|
683
|
-
input: SetTopicRequest,
|
|
684
|
-
output: SetTopicResponse,
|
|
685
|
-
errors: [SlackError, SlackRateLimited],
|
|
686
|
-
protocol: SlackProtocol,
|
|
687
|
-
retry: Retry.Retry,
|
|
688
|
-
}));
|
|
689
|
-
/** 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 */
|
|
690
|
-
export const unarchiveConversation = /*@__PURE__*/ API.make(() => ({
|
|
691
|
-
input: UnarchiveConversationRequest,
|
|
692
|
-
output: UnarchiveConversationResponse,
|
|
693
|
-
errors: [SlackError, SlackRateLimited],
|
|
694
|
-
protocol: SlackProtocol,
|
|
695
|
-
retry: Retry.Retry,
|
|
696
|
-
}));
|
|
697
|
-
//# sourceMappingURL=conversations.js.map
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = S.String;
|
|
13
|
+
const __3 = S.Boolean;
|
|
14
|
+
const __4 = S.optional;
|
|
15
|
+
const __5 = S.Struct;
|
|
16
|
+
const __6 = S.suspend;
|
|
17
|
+
const __7 = S.NullOr;
|
|
18
|
+
const __8 = S.Unknown;
|
|
19
|
+
const __9 = T.Query;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = S.Record;
|
|
22
|
+
const __12 = S.Array;
|
|
23
|
+
|
|
24
|
+
export const acceptSharedInvite = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$6(>3)@"AcceptSharedInviteRequest";$6(>4)@"AcceptSharedInviteResponse";$5({channel_name:$2,is_private:$4($3),free_trial_accepted:$4($3),invite_id:$4($2),channel_id:$4($2),team_id:$4($2)}).pipe($1({method:"POST",uri:"/conversations.acceptSharedInvite",code:200}));$5({ok:$3,implicit_approval:$3,channel_id:$2,invite_id:$2,can_open_scdm:$3})', [__0, __1, __2, __3, __4, __5, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(acceptSharedInvite, i));
|
|
25
|
+
|
|
26
|
+
export const approveRequestSharedInvite = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("ApproveRequestSharedInviteRequest", '{input:#2,output:#3,errors:[$7,$8],protocol:$9,retry:$10};$4(>4)@"%Message";$4(>5)@"%";$4(>6)@"ApproveRequestSharedInviteResponse";$3({text:$1,is_override:$2});$3({invite_id:$1,is_external_limited:$6($2),channel_id:$6($1),message:$6(#1)}).pipe($5({method:"POST",uri:"/conversations.requestSharedInvite.approve",code:200}));$3({ok:$2,invite_id:$1,confirmation_code:$6($1),url:$6($1)})', [__0, __2, __3, __5, __6, __1, __4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(approveRequestSharedInvite, i));
|
|
27
|
+
|
|
28
|
+
export const approveSharedInvite = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ApproveSharedInviteRequest";$4({invite_id:$2,target_team:$3($2)}).pipe($1({method:"POST",uri:"/conversations.approveSharedInvite",code:200}))', [__0, __1, __2, __4, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(approveSharedInvite, i));
|
|
29
|
+
|
|
30
|
+
export const archiveConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ArchiveConversationRequest";$3({channel:$2}).pipe($1({method:"POST",uri:"/conversations.archive",code:200}))', [__0, __1, __2, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(archiveConversation, i));
|
|
31
|
+
|
|
32
|
+
export const conversationsClose = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"ConversationsCloseRequest";$4(>4)@"ConversationsCloseResponse";$3({channel:$2}).pipe($1({method:"POST",uri:"/conversations.close",code:200}));$3({ok:$5,already_closed:$6($5),no_op:$6($5)})', [__0, __1, __2, __5, __6, __3, __4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(conversationsClose, i));
|
|
33
|
+
|
|
34
|
+
export const conversationsHistory = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ConversationsHistoryResponse", '{input:#1,output:#3,errors:[$14,$15],protocol:$16,retry:$17,pagination:{mode:"cursor",inputToken:"cursor",outputToken:~11:1,items:"messages",pageSize:"limit"},strategy:$18};$8(>4)@"ConversationsHistoryRequest";$8(>5)@"%MutationTimestamps";$8(>6)@"%";$7({channel:$3.pipe($2()),cursor:$4($3.pipe($2())),include_all_metadata:$4($5.pipe($2())),inclusive:$4($5.pipe($2())),latest:$4($3.pipe($2())),limit:$4($6.pipe($2())),oldest:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/conversations.history",code:200}));$7({latest:$3,updated:$3,history_invalid:$3});$7({ok:$5,messages:#9:0,has_more:$5,pin_count:$4($6),channel_actions_ts:$10,channel_actions_count:$6,response_metadata:$4(#11:0),oldest:$4($3),is_limited:$4($5),latest:$4($3),unread_count_display:$4($6),users:$4(#12:0),deleted:$4(#13:0),mutation_timestamps:$4(#2),deleted_overflow:$4($5),warnings:$4(#13:0),next_ts:$4($6),latest_updates:$4(#12:0),unchanged_messages:$4(#13:0),date_joined:$4($6)})', [__0, __1, __9, __2, __4, __3, __10, __5, __6, __d3, __8, __d5, __d2, __d4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(conversationsHistory, i));
|
|
35
|
+
|
|
36
|
+
export const conversationsInfo = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13};$7(>3)@"ConversationsInfoRequest";$7(>4)@"ConversationsInfoResponse";$6({channel:$3.pipe($2()),include_locale:$5($4.pipe($2())),include_num_members:$5($4.pipe($2()))}).pipe($1({method:"GET",uri:"/conversations.info",code:200}));$6({ok:$4,app_home:$5($8),channel:$8,home_view:$5($9($8))})', [__0, __1, __9, __2, __3, __4, __5, __6, __8, __7, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(conversationsInfo, i));
|
|
37
|
+
|
|
38
|
+
export const conversationsKick = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ConversationsKickRequest";$4({channel:$2,user:$3($2)}).pipe($1({method:"POST",uri:"/conversations.kick",code:200}))', [__0, __1, __2, __4, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(conversationsKick, i));
|
|
39
|
+
|
|
40
|
+
export const conversationsMark = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ConversationsMarkRequest";$3({channel:$2,ts:$2}).pipe($1({method:"POST",uri:"/conversations.mark",code:200}))', [__0, __1, __2, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(conversationsMark, i));
|
|
41
|
+
|
|
42
|
+
export const conversationsMembers = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("members", '{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:~10:1,items:"%",pageSize:"limit"},strategy:$15};$7(>3)@"ConversationsMembersRequest";$7(>4)@"ConversationsMembersResponse";$6({channel:$3.pipe($2()),cursor:$4($3.pipe($2())),limit:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/conversations.%",code:200}));$6({ok:$8,members:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __9, __2, __4, __10, __5, __6, __3, __d4, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(conversationsMembers, i));
|
|
43
|
+
|
|
44
|
+
export const conversationsOpen = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$7(>3)@"ConversationsOpenRequest";$7(>4)@"ConversationsOpenResponse";$6({channel:$4($3($2)),return_im:$4($5),users:$4($2),prevent_creation:$4($5)}).pipe($1({method:"POST",uri:"/conversations.open",code:200}));$6({ok:$5,already_open:$4($5),no_op:$4($5),channel:$4($8),app_home:$4($8),home_view:$4($3($8))})', [__0, __1, __2, __7, __4, __3, __5, __6, __8, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(conversationsOpen, i));
|
|
45
|
+
|
|
46
|
+
export const conversationsReplies = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? ['{input:#1,output:#2,errors:[$13,$14],protocol:$15,retry:$16,pagination:{mode:"cursor",inputToken:"cursor",outputToken:~12:1,items:"messages",pageSize:"limit"},strategy:$17};$8(>3)@"ConversationsRepliesRequest";$8(>4)@"ConversationsRepliesResponse";$7({channel:$3.pipe($2()),cursor:$4($3.pipe($2())),include_all_metadata:$4($5.pipe($2())),inclusive:$4($5.pipe($2())),latest:$4($3.pipe($2())),limit:$4($6.pipe($2())),oldest:$4($3.pipe($2())),ts:$3.pipe($2())}).pipe($1({method:"GET",uri:"/conversations.replies",code:200}));$7({ok:$5,has_more:$4($5),messages:#9:0,latest_updates:$4(#10:0),unchanged_messages:$4(#11:0),response_metadata:$4(#12:0)})', [__0, __1, __9, __2, __4, __3, __10, __5, __6, __d3, __d2, __d4, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]] : API.call(conversationsReplies, i));
|
|
47
|
+
|
|
48
|
+
export const createCanvase = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"CreateCanvaseRequest";$6(>4)@"CreateCanvaseResponse";$5({channel_id:$2,document_content:$4($3),title:$4($2)}).pipe($1({method:"POST",uri:"/conversations.canvases.create",code:200}));$5({ok:$7,canvas_id:$2})', [__0, __1, __2, __8, __4, __5, __6, __3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createCanvase, i));
|
|
49
|
+
|
|
50
|
+
export const createConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"CreateConversationRequest";$6({is_private:$3($2),name:$4,team_id:$3($5($4))}).pipe($1({method:"POST",uri:"/conversations.create",code:200}))', [__0, __1, __3, __4, __2, __7, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(createConversation, i));
|
|
51
|
+
|
|
52
|
+
export const inviteConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"InviteConversationRequest";$6(>4)@"InviteConversationResponse";$5({channel:$2,force:$4($3),users:$2}).pipe($1({method:"POST",uri:"/conversations.invite",code:200}));$5({ok:$3,channel:$4($7),group:$4($7),errors:$4(#8:0)})', [__0, __1, __2, __3, __4, __5, __6, __8, __d3, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(inviteConversation, i));
|
|
53
|
+
|
|
54
|
+
export const inviteDeclineShared = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"InviteDeclineSharedRequest";$5({invite_id:$3.pipe($2()),target_team:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/conversations.declineSharedInvite",code:200}))', [__0, __1, __9, __2, __4, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(inviteDeclineShared, i));
|
|
55
|
+
|
|
56
|
+
export const inviteShared = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$7(>3)@"InviteSharedRequest";$7(>4)@"InviteSharedResponse";$6({channel:$2,emails:$4(#3:0),user_ids:$4(#3:0),external_limited:$4($5)}).pipe($1({method:"POST",uri:"/conversations.inviteShared",code:200}));$6({ok:$5,url:$4($2),invite_id:$4($2),conf_code:$4($2),is_legacy_shared_channel:$4($5)})', [__0, __1, __2, __d4, __4, __3, __5, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(inviteShared, i));
|
|
57
|
+
|
|
58
|
+
export const joinConversation = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("JoinConversationResponse", '{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12};$4(>4)@"JoinConversationRequest";$4(>5)@"%ResponseMetadata";$4(>6)@"%";$3({channel:$2}).pipe($1({method:"POST",uri:"/conversations.join",code:200}));$3({warnings:$6(#5:0)});$3({ok:$7,channel:$8,response_metadata:$6(#2)})', [__0, __1, __2, __5, __6, __d4, __4, __3, __8, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(joinConversation, i));
|
|
59
|
+
|
|
60
|
+
export const leaveConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"LeaveConversationRequest";$4(>4)@"LeaveConversationResponse";$3({channel:$2}).pipe($1({method:"POST",uri:"/conversations.leave",code:200}));$3({ok:$5,not_in_channel:$6($5)})', [__0, __1, __2, __5, __6, __3, __4, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(leaveConversation, i));
|
|
61
|
+
|
|
62
|
+
export const listConnectInvites = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"cursor",inputToken:"cursor",outputToken:~9:1,items:"invites"},strategy:$14};$6(>3)@"ListConnectInvitesRequest";$6(>4)@"ListConnectInvitesResponse";$5({team_id:$3($2),count:$3($4),cursor:$3($2)}).pipe($1({method:"POST",uri:"/conversations.listConnectInvites",code:200}));$5({ok:$7,invites:#8:0,response_metadata:$3(#9:0)})', [__0, __1, __2, __4, __10, __5, __6, __3, __d3, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]] : API.call(listConnectInvites, i));
|
|
63
|
+
|
|
64
|
+
export const listConversations = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:~10:1,items:"channels",pageSize:"limit"},strategy:$15};$8(>3)@"ListConversationsRequest";$8(>4)@"ListConversationsResponse";$7({cursor:$4($3.pipe($2())),exclude_archived:$4($5.pipe($2())),limit:$4($6.pipe($2())),team_id:$4($3.pipe($2())),types:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/conversations.list",code:200}));$7({ok:$5,channels:#9:0,response_metadata:$4(#10:0)})', [__0, __1, __9, __2, __4, __3, __10, __5, __6, __d3, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]] : API.call(listConversations, i));
|
|
65
|
+
|
|
66
|
+
export const listRequestSharedInvite = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:~10:1,items:"invite_requests",pageSize:"limit"},strategy:$15};$8(>3)@"ListRequestSharedInviteRequest";$8(>4)@"ListRequestSharedInviteResponse";$7({user_id:$3($2),include_expired:$3($4),include_approved:$3($4),include_denied:$3($4),invite_ids:$3(#5:0),limit:$3($6),cursor:$3($2)}).pipe($1({method:"POST",uri:"/conversations.requestSharedInvite.list",code:200}));$7({ok:$4,invite_requests:#9:0,response_metadata:$3(#10:0)})', [__0, __1, __2, __4, __3, __d4, __10, __5, __6, __d3, __d5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]] : API.call(listRequestSharedInvite, i));
|
|
67
|
+
|
|
68
|
+
export const renameConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"RenameConversationRequest";$3({channel:$2,name:$2}).pipe($1({method:"POST",uri:"/conversations.rename",code:200}))', [__0, __1, __2, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(renameConversation, i));
|
|
69
|
+
|
|
70
|
+
export const requestSharedInviteDeny = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RequestSharedInviteDenyRequest";$4({invite_id:$2,message:$3($2)}).pipe($1({method:"POST",uri:"/conversations.requestSharedInvite.deny",code:200}))', [__0, __1, __2, __4, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(requestSharedInviteDeny, i));
|
|
71
|
+
|
|
72
|
+
export const setExternalInvitePermissions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetExternalInvitePermissionsRequest";$3({channel:$2,target_team:$2,action:$2}).pipe($1({method:"POST",uri:"/conversations.externalInvitePermissions.set",code:200,contentType:"form-urlencoded"}))', [__0, __1, __2, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setExternalInvitePermissions, i));
|
|
73
|
+
|
|
74
|
+
export const setPurpose = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetPurposeRequest";$3({channel:$2,purpose:$2}).pipe($1({method:"POST",uri:"/conversations.setPurpose",code:200}))', [__0, __1, __2, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setPurpose, i));
|
|
75
|
+
|
|
76
|
+
export const setTopic = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetTopicRequest";$3({channel:$2,topic:$2}).pipe($1({method:"POST",uri:"/conversations.setTopic",code:200}))', [__0, __1, __2, __5, __6, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setTopic, i));
|
|
77
|
+
|
|
78
|
+
export const unarchiveConversation = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"UnarchiveConversationRequest";$3({channel:$2}).pipe($1({method:"POST",uri:"/conversations.unarchive",code:200}))', [__0, __1, __2, __5, __6, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(unarchiveConversation, i));
|
|
79
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
80
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// Shared schema data (see `op` in core/api).
|
|
84
|
+
function __d0() {
|
|
85
|
+
return ['$4(>1)@"CreateConversationResponse";$3({ok:$1,channel:$2})', [__0, __3, __8, __5, __6]];
|
|
86
|
+
}
|
|
87
|
+
function __d1() {
|
|
88
|
+
return ['$3(>1)@"ApproveSharedInviteResponse";$2({ok:$1})', [__0, __3, __5, __6]];
|
|
89
|
+
}
|
|
90
|
+
function __d2() {
|
|
91
|
+
return ['$3($1,$2)', [__0, __2, __8, __11]];
|
|
92
|
+
}
|
|
93
|
+
function __d3() {
|
|
94
|
+
return ['$2($1)', [__0, __8, __12]];
|
|
95
|
+
}
|
|
96
|
+
function __d4() {
|
|
97
|
+
return ['$2($1)', [__0, __2, __12]];
|
|
98
|
+
}
|
|
99
|
+
function __d5() {
|
|
100
|
+
return ['$4(>2)@"ConversationsHistoryResponseResponseMetadata";"response_metadata.next_cursor";$3({next_cursor:$2($1)})', [__0, __2, __4, __5, __6]];
|
|
101
|
+
}
|