@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +6 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +10 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +47 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts +1 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/admin.d.ts +268 -87
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +154 -149
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +54 -28
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +69 -9
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +36 -34
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -1
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +1 -1
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +5 -5
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -39
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +1 -1
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +28 -28
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +6 -6
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +2 -2
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +299 -7
- package/lib/services/slackbot.d.ts.map +1 -1
- package/lib/services/slackbot.js +1 -1
- package/lib/services/slackbot.js.map +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +73 -1
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +4 -4
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +2 -2
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/package.json +6 -7
- package/src/credentials.ts +20 -15
- package/src/errors.ts +12 -1
- package/src/index.ts +0 -1
- package/src/protocol.ts +96 -86
- package/src/retry.ts +1 -2
- package/src/services/admin.ts +1527 -955
- package/src/services/agents.ts +110 -50
- package/src/services/api.ts +3 -2
- package/src/services/apps.ts +307 -136
- package/src/services/assistant.ts +17 -8
- package/src/services/auth.ts +7 -4
- package/src/services/blocks.ts +3 -2
- package/src/services/bookmarks.ts +9 -5
- package/src/services/bots.ts +3 -2
- package/src/services/calls.ts +13 -7
- package/src/services/canvases.ts +16 -9
- package/src/services/chat.ts +27 -14
- package/src/services/conversations.ts +62 -34
- package/src/services/dialog.ts +3 -2
- package/src/services/dnd.ts +11 -6
- package/src/services/emoji.ts +3 -2
- package/src/services/entity.ts +7 -4
- package/src/services/files.ts +32 -17
- package/src/services/functions.ts +17 -9
- package/src/services/lists.ts +25 -13
- package/src/services/migration.ts +3 -2
- package/src/services/oauth.ts +23 -17
- package/src/services/openid.ts +8 -6
- package/src/services/pins.ts +7 -4
- package/src/services/reactions.ts +9 -5
- package/src/services/reminders.ts +11 -6
- package/src/services/rtm.ts +5 -3
- package/src/services/search.ts +7 -4
- package/src/services/slackbot.ts +700 -74
- package/src/services/stars.ts +7 -4
- package/src/services/team.ts +20 -11
- package/src/services/tooling.ts +5 -4
- package/src/services/usergroups.ts +15 -8
- package/src/services/users.ts +136 -17
- package/src/services/views.ts +9 -5
- package/src/services/workflows.ts +21 -13
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
|
@@ -2,7 +2,8 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import
|
|
5
|
+
import type * as Redacted from "effect/Redacted";
|
|
6
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
7
|
import { slackPaginate } from "../pagination.ts";
|
|
7
8
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
9
|
import * as Retry from "../retry.ts";
|
|
@@ -54,7 +55,7 @@ export interface SearchContextRequest {
|
|
|
54
55
|
/** User prompt or search query */
|
|
55
56
|
query: string;
|
|
56
57
|
/** Send `action_token` as received in a message event. */
|
|
57
|
-
action_token?: string | undefined;
|
|
58
|
+
action_token?: string | Redacted.Redacted<string> | undefined;
|
|
58
59
|
/** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im`. */
|
|
59
60
|
channel_types?: SearchContextRequestChannelTypesList | undefined;
|
|
60
61
|
/** Content types to include, a comma-separated list of any combination of `messages`, `files`, `channels`, `users`. */
|
|
@@ -238,6 +239,8 @@ export interface SearchContextResponse {
|
|
|
238
239
|
response_metadata?: SearchContextResponseResponseMetadata | undefined;
|
|
239
240
|
/** Requested content types whose search failed. Their lists in `results` are empty because they could not be searched, not because nothing matched. Present only when at least one failed; see the `content_type_search_failed` warning. */
|
|
240
241
|
failed_content_types: SearchContextResponseFailedContentTypesList;
|
|
242
|
+
/** True when this is the last page that can be fetched but more results exist past it. `next_cursor` is then an empty string even though results were cut off; narrow the query to see the rest. Present only when true; see the `search_page_limit_reached` warning. */
|
|
243
|
+
page_limit_reached?: boolean | undefined;
|
|
241
244
|
}
|
|
242
245
|
export interface SearchInfoRequest {}
|
|
243
246
|
export interface SearchInfoResponse {
|
|
@@ -306,7 +309,8 @@ export const searchContext: API.PaginatedOperationMethod<
|
|
|
306
309
|
() => ({
|
|
307
310
|
input: __S(1, __c0, 1) as any as S.Schema<SearchContextRequest>,
|
|
308
311
|
output: __S(14, __c0, 14) as any as S.Schema<SearchContextResponse>,
|
|
309
|
-
errors: [
|
|
312
|
+
errors: [],
|
|
313
|
+
serviceErrors: SlackServiceErrors,
|
|
310
314
|
protocol: SlackProtocol,
|
|
311
315
|
retry: Retry.Retry,
|
|
312
316
|
telemetry: TELEMETRY,
|
|
@@ -332,7 +336,8 @@ export const searchInfo: API.OperationMethod<
|
|
|
332
336
|
> = /*@__PURE__*/ API.make(() => ({
|
|
333
337
|
input: __S(32, __c2, 0) as any as S.Schema<SearchInfoRequest>,
|
|
334
338
|
output: __S(33, __c2, 1) as any as S.Schema<SearchInfoResponse>,
|
|
335
|
-
errors: [
|
|
339
|
+
errors: [],
|
|
340
|
+
serviceErrors: SlackServiceErrors,
|
|
336
341
|
protocol: SlackProtocol,
|
|
337
342
|
retry: Retry.Retry,
|
|
338
343
|
telemetry: TELEMETRY,
|
|
@@ -349,7 +354,8 @@ export const setStatus: API.OperationMethod<
|
|
|
349
354
|
> = /*@__PURE__*/ API.make(() => ({
|
|
350
355
|
input: __S(48, __c3, 0) as any as S.Schema<SetStatusRequest>,
|
|
351
356
|
output: __S(64, __c4, 0) as any as S.Schema<SetStatusResponse>,
|
|
352
|
-
errors: [
|
|
357
|
+
errors: [],
|
|
358
|
+
serviceErrors: SlackServiceErrors,
|
|
353
359
|
protocol: SlackProtocol,
|
|
354
360
|
retry: Retry.Retry,
|
|
355
361
|
telemetry: TELEMETRY,
|
|
@@ -366,7 +372,8 @@ export const setSuggestedPrompts: API.OperationMethod<
|
|
|
366
372
|
> = /*@__PURE__*/ API.make(() => ({
|
|
367
373
|
input: __S(80, __c5, 0) as any as S.Schema<SetSuggestedPromptsRequest>,
|
|
368
374
|
output: __S(64, __c4, 0) as any as S.Schema<SetSuggestedPromptsResponse>,
|
|
369
|
-
errors: [
|
|
375
|
+
errors: [],
|
|
376
|
+
serviceErrors: SlackServiceErrors,
|
|
370
377
|
protocol: SlackProtocol,
|
|
371
378
|
retry: Retry.Retry,
|
|
372
379
|
telemetry: TELEMETRY,
|
|
@@ -383,7 +390,8 @@ export const setTitle: API.OperationMethod<
|
|
|
383
390
|
> = /*@__PURE__*/ API.make(() => ({
|
|
384
391
|
input: __S(96, __c6, 0) as any as S.Schema<SetTitleRequest>,
|
|
385
392
|
output: __S(64, __c4, 0) as any as S.Schema<SetTitleResponse>,
|
|
386
|
-
errors: [
|
|
393
|
+
errors: [],
|
|
394
|
+
serviceErrors: SlackServiceErrors,
|
|
387
395
|
protocol: SlackProtocol,
|
|
388
396
|
retry: Retry.Retry,
|
|
389
397
|
telemetry: TELEMETRY,
|
|
@@ -399,7 +407,7 @@ function __c0(j: number): any {
|
|
|
399
407
|
return S.suspend(() =>
|
|
400
408
|
S.Struct({
|
|
401
409
|
query: S.String,
|
|
402
|
-
action_token: S.optional(S.String),
|
|
410
|
+
action_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
403
411
|
channel_types: S.optional(__S(0, __c0, 0)),
|
|
404
412
|
content_types: S.optional(__S(0, __c0, 0)),
|
|
405
413
|
include_bots: S.optional(S.Boolean),
|
|
@@ -524,6 +532,7 @@ function __c0(j: number): any {
|
|
|
524
532
|
results: __S(12, __c0, 12),
|
|
525
533
|
response_metadata: S.optional(__S(13, __c0, 13)),
|
|
526
534
|
failed_content_types: __S(0, __c0, 0),
|
|
535
|
+
page_limit_reached: S.optional(S.Boolean),
|
|
527
536
|
}),
|
|
528
537
|
).annotate({ identifier: "SearchContextResponse" });
|
|
529
538
|
}
|
package/src/services/auth.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { slackPaginate } from "../pagination.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
@@ -102,7 +102,8 @@ export const listTeams: API.PaginatedOperationMethod<
|
|
|
102
102
|
() => ({
|
|
103
103
|
input: __S(0, __c0, 0) as any as S.Schema<ListTeamsRequest>,
|
|
104
104
|
output: __S(5, __c0, 5) as any as S.Schema<ListTeamsResponse>,
|
|
105
|
-
errors: [
|
|
105
|
+
errors: [],
|
|
106
|
+
serviceErrors: SlackServiceErrors,
|
|
106
107
|
protocol: SlackProtocol,
|
|
107
108
|
retry: Retry.Retry,
|
|
108
109
|
telemetry: TELEMETRY,
|
|
@@ -128,7 +129,8 @@ export const revokeAuth: API.OperationMethod<
|
|
|
128
129
|
> = /*@__PURE__*/ API.make(() => ({
|
|
129
130
|
input: __S(8, __c1, 0) as any as S.Schema<RevokeAuthRequest>,
|
|
130
131
|
output: __S(9, __c1, 1) as any as S.Schema<RevokeAuthResponse>,
|
|
131
|
-
errors: [
|
|
132
|
+
errors: [],
|
|
133
|
+
serviceErrors: SlackServiceErrors,
|
|
132
134
|
protocol: SlackProtocol,
|
|
133
135
|
retry: Retry.Retry,
|
|
134
136
|
telemetry: TELEMETRY,
|
|
@@ -145,7 +147,8 @@ export const testAuth: API.OperationMethod<
|
|
|
145
147
|
> = /*@__PURE__*/ API.make(() => ({
|
|
146
148
|
input: __S(16, __c2, 0) as any as S.Schema<TestAuthRequest>,
|
|
147
149
|
output: __S(17, __c2, 1) as any as S.Schema<TestAuthResponse>,
|
|
148
|
-
errors: [
|
|
150
|
+
errors: [],
|
|
151
|
+
serviceErrors: SlackServiceErrors,
|
|
149
152
|
protocol: SlackProtocol,
|
|
150
153
|
retry: Retry.Retry,
|
|
151
154
|
telemetry: TELEMETRY,
|
package/src/services/blocks.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -50,7 +50,8 @@ export const validateBlock: API.OperationMethod<
|
|
|
50
50
|
> = /*@__PURE__*/ API.make(() => ({
|
|
51
51
|
input: __S(1, __c0, 1) as any as S.Schema<ValidateBlockRequest>,
|
|
52
52
|
output: __S(2, __c0, 2) as any as S.Schema<ValidateBlockResponse>,
|
|
53
|
-
errors: [
|
|
53
|
+
errors: [],
|
|
54
|
+
serviceErrors: SlackServiceErrors,
|
|
54
55
|
protocol: SlackProtocol,
|
|
55
56
|
retry: Retry.Retry,
|
|
56
57
|
telemetry: TELEMETRY,
|
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -98,7 +98,8 @@ export const addBookmark: API.OperationMethod<
|
|
|
98
98
|
> = /*@__PURE__*/ API.make(() => ({
|
|
99
99
|
input: __S(0, __c0, 0) as any as S.Schema<AddBookmarkRequest>,
|
|
100
100
|
output: __S(4, __c1, 0) as any as S.Schema<AddBookmarkResponse>,
|
|
101
|
-
errors: [
|
|
101
|
+
errors: [],
|
|
102
|
+
serviceErrors: SlackServiceErrors,
|
|
102
103
|
protocol: SlackProtocol,
|
|
103
104
|
retry: Retry.Retry,
|
|
104
105
|
telemetry: TELEMETRY,
|
|
@@ -115,7 +116,8 @@ export const editBookmark: API.OperationMethod<
|
|
|
115
116
|
> = /*@__PURE__*/ API.make(() => ({
|
|
116
117
|
input: __S(8, __c2, 0) as any as S.Schema<EditBookmarkRequest>,
|
|
117
118
|
output: __S(4, __c1, 0) as any as S.Schema<EditBookmarkResponse>,
|
|
118
|
-
errors: [
|
|
119
|
+
errors: [],
|
|
120
|
+
serviceErrors: SlackServiceErrors,
|
|
119
121
|
protocol: SlackProtocol,
|
|
120
122
|
retry: Retry.Retry,
|
|
121
123
|
telemetry: TELEMETRY,
|
|
@@ -132,7 +134,8 @@ export const listBookmarks: API.OperationMethod<
|
|
|
132
134
|
> = /*@__PURE__*/ API.make(() => ({
|
|
133
135
|
input: __S(12, __c3, 0) as any as S.Schema<ListBookmarksRequest>,
|
|
134
136
|
output: __S(14, __c3, 2) as any as S.Schema<ListBookmarksResponse>,
|
|
135
|
-
errors: [
|
|
137
|
+
errors: [],
|
|
138
|
+
serviceErrors: SlackServiceErrors,
|
|
136
139
|
protocol: SlackProtocol,
|
|
137
140
|
retry: Retry.Retry,
|
|
138
141
|
telemetry: TELEMETRY,
|
|
@@ -149,7 +152,8 @@ export const removeBookmark: API.OperationMethod<
|
|
|
149
152
|
> = /*@__PURE__*/ API.make(() => ({
|
|
150
153
|
input: __S(16, __c4, 0) as any as S.Schema<RemoveBookmarkRequest>,
|
|
151
154
|
output: __S(17, __c4, 1) as any as S.Schema<RemoveBookmarkResponse>,
|
|
152
|
-
errors: [
|
|
155
|
+
errors: [],
|
|
156
|
+
serviceErrors: SlackServiceErrors,
|
|
153
157
|
protocol: SlackProtocol,
|
|
154
158
|
retry: Retry.Retry,
|
|
155
159
|
telemetry: TELEMETRY,
|
package/src/services/bots.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -79,7 +79,8 @@ export const botsInfo: API.OperationMethod<
|
|
|
79
79
|
> = /*@__PURE__*/ API.make(() => ({
|
|
80
80
|
input: __S(0, __c0, 0) as any as S.Schema<BotsInfoRequest>,
|
|
81
81
|
output: __S(5, __c0, 5) as any as S.Schema<BotsInfoResponse>,
|
|
82
|
-
errors: [
|
|
82
|
+
errors: [],
|
|
83
|
+
serviceErrors: SlackServiceErrors,
|
|
83
84
|
protocol: SlackProtocol,
|
|
84
85
|
retry: Retry.Retry,
|
|
85
86
|
telemetry: TELEMETRY,
|
package/src/services/calls.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -120,7 +120,8 @@ export const addCall: API.OperationMethod<
|
|
|
120
120
|
> = /*@__PURE__*/ API.make(() => ({
|
|
121
121
|
input: __S(0, __c0, 0) as any as S.Schema<AddCallRequest>,
|
|
122
122
|
output: __S(2, __c1, 0) as any as S.Schema<AddCallResponse>,
|
|
123
|
-
errors: [
|
|
123
|
+
errors: [],
|
|
124
|
+
serviceErrors: SlackServiceErrors,
|
|
124
125
|
protocol: SlackProtocol,
|
|
125
126
|
retry: Retry.Retry,
|
|
126
127
|
telemetry: TELEMETRY,
|
|
@@ -137,7 +138,8 @@ export const addParticipant: API.OperationMethod<
|
|
|
137
138
|
> = /*@__PURE__*/ API.make(() => ({
|
|
138
139
|
input: __S(6, __c3, 0) as any as S.Schema<AddParticipantRequest>,
|
|
139
140
|
output: __S(2, __c1, 0) as any as S.Schema<AddParticipantResponse>,
|
|
140
|
-
errors: [
|
|
141
|
+
errors: [],
|
|
142
|
+
serviceErrors: SlackServiceErrors,
|
|
141
143
|
protocol: SlackProtocol,
|
|
142
144
|
retry: Retry.Retry,
|
|
143
145
|
telemetry: TELEMETRY,
|
|
@@ -154,7 +156,8 @@ export const callsEnd: API.OperationMethod<
|
|
|
154
156
|
> = /*@__PURE__*/ API.make(() => ({
|
|
155
157
|
input: __S(8, __c4, 0) as any as S.Schema<CallsEndRequest>,
|
|
156
158
|
output: __S(2, __c1, 0) as any as S.Schema<CallsEndResponse>,
|
|
157
|
-
errors: [
|
|
159
|
+
errors: [],
|
|
160
|
+
serviceErrors: SlackServiceErrors,
|
|
158
161
|
protocol: SlackProtocol,
|
|
159
162
|
retry: Retry.Retry,
|
|
160
163
|
telemetry: TELEMETRY,
|
|
@@ -171,7 +174,8 @@ export const callsInfo: API.OperationMethod<
|
|
|
171
174
|
> = /*@__PURE__*/ API.make(() => ({
|
|
172
175
|
input: __S(10, __c5, 0) as any as S.Schema<CallsInfoRequest>,
|
|
173
176
|
output: __S(2, __c1, 0) as any as S.Schema<CallsInfoResponse>,
|
|
174
|
-
errors: [
|
|
177
|
+
errors: [],
|
|
178
|
+
serviceErrors: SlackServiceErrors,
|
|
175
179
|
protocol: SlackProtocol,
|
|
176
180
|
retry: Retry.Retry,
|
|
177
181
|
telemetry: TELEMETRY,
|
|
@@ -188,7 +192,8 @@ export const removeParticipant: API.OperationMethod<
|
|
|
188
192
|
> = /*@__PURE__*/ API.make(() => ({
|
|
189
193
|
input: __S(12, __c6, 0) as any as S.Schema<RemoveParticipantRequest>,
|
|
190
194
|
output: __S(2, __c1, 0) as any as S.Schema<RemoveParticipantResponse>,
|
|
191
|
-
errors: [
|
|
195
|
+
errors: [],
|
|
196
|
+
serviceErrors: SlackServiceErrors,
|
|
192
197
|
protocol: SlackProtocol,
|
|
193
198
|
retry: Retry.Retry,
|
|
194
199
|
telemetry: TELEMETRY,
|
|
@@ -205,7 +210,8 @@ export const updateCall: API.OperationMethod<
|
|
|
205
210
|
> = /*@__PURE__*/ API.make(() => ({
|
|
206
211
|
input: __S(14, __c7, 0) as any as S.Schema<UpdateCallRequest>,
|
|
207
212
|
output: __S(2, __c1, 0) as any as S.Schema<UpdateCallResponse>,
|
|
208
|
-
errors: [
|
|
213
|
+
errors: [],
|
|
214
|
+
serviceErrors: SlackServiceErrors,
|
|
209
215
|
protocol: SlackProtocol,
|
|
210
216
|
retry: Retry.Retry,
|
|
211
217
|
telemetry: TELEMETRY,
|
package/src/services/canvases.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
7
|
import * as Retry from "../retry.ts";
|
|
8
8
|
import * as T from "../traits.ts";
|
|
@@ -144,7 +144,7 @@ export interface SetAccessResponse {
|
|
|
144
144
|
failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList | undefined;
|
|
145
145
|
}
|
|
146
146
|
export type CreateCanvaseError = SlackOpError;
|
|
147
|
-
/** Create canvas for a user Required scopes -- bot: `canvases:write`; user: `canvases:write`; seamless_user: `seamless.user` 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. - `canvas_creation_failed` -- Canvas was unable to be created. - `free_team_canvas_tab_already_exists` -- Free teams are limited to one canvas tab per channel - `free_teams_cannot_create_standalone_canvases` -- Free teams cannot create standalone canvases See https://docs.slack.dev/reference/methods/canvases.create */
|
|
147
|
+
/** Create canvas for a user Required scopes -- bot: `canvases:write`; user: `canvases:write`; seamless_user: `seamless.user` 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_not_found` -- Value passed for `channel_id` was invalid, or the caller doesn't have access to that channel. - `canvas_creation_failed` -- Canvas was unable to be created. - `free_team_canvas_tab_already_exists` -- Free teams are limited to one canvas tab per channel - `free_teams_cannot_create_standalone_canvases` -- Free teams cannot create standalone canvases See https://docs.slack.dev/reference/methods/canvases.create */
|
|
148
148
|
export const createCanvase: API.OperationMethod<
|
|
149
149
|
CreateCanvaseRequest,
|
|
150
150
|
CreateCanvaseResponse,
|
|
@@ -153,7 +153,8 @@ export const createCanvase: API.OperationMethod<
|
|
|
153
153
|
> = /*@__PURE__*/ API.make(() => ({
|
|
154
154
|
input: __S(0, __c0, 0) as any as S.Schema<CreateCanvaseRequest>,
|
|
155
155
|
output: __S(1, __c0, 1) as any as S.Schema<CreateCanvaseResponse>,
|
|
156
|
-
errors: [
|
|
156
|
+
errors: [],
|
|
157
|
+
serviceErrors: SlackServiceErrors,
|
|
157
158
|
protocol: SlackProtocol,
|
|
158
159
|
retry: Retry.Retry,
|
|
159
160
|
telemetry: TELEMETRY,
|
|
@@ -170,7 +171,8 @@ export const deleteAccess: API.OperationMethod<
|
|
|
170
171
|
> = /*@__PURE__*/ API.make(() => ({
|
|
171
172
|
input: __S(4, __c1, 0) as any as S.Schema<DeleteAccessRequest>,
|
|
172
173
|
output: __S(16, __c4, 0) as any as S.Schema<DeleteAccessResponse>,
|
|
173
|
-
errors: [
|
|
174
|
+
errors: [],
|
|
175
|
+
serviceErrors: SlackServiceErrors,
|
|
174
176
|
protocol: SlackProtocol,
|
|
175
177
|
retry: Retry.Retry,
|
|
176
178
|
telemetry: TELEMETRY,
|
|
@@ -187,7 +189,8 @@ export const deleteCanvase: API.OperationMethod<
|
|
|
187
189
|
> = /*@__PURE__*/ API.make(() => ({
|
|
188
190
|
input: __S(20, __c5, 0) as any as S.Schema<DeleteCanvaseRequest>,
|
|
189
191
|
output: __S(24, __c6, 0) as any as S.Schema<DeleteCanvaseResponse>,
|
|
190
|
-
errors: [
|
|
192
|
+
errors: [],
|
|
193
|
+
serviceErrors: SlackServiceErrors,
|
|
191
194
|
protocol: SlackProtocol,
|
|
192
195
|
retry: Retry.Retry,
|
|
193
196
|
telemetry: TELEMETRY,
|
|
@@ -204,7 +207,8 @@ export const editCanvase: API.OperationMethod<
|
|
|
204
207
|
> = /*@__PURE__*/ API.make(() => ({
|
|
205
208
|
input: __S(28, __c7, 0) as any as S.Schema<EditCanvaseRequest>,
|
|
206
209
|
output: __S(24, __c6, 0) as any as S.Schema<EditCanvaseResponse>,
|
|
207
|
-
errors: [
|
|
210
|
+
errors: [],
|
|
211
|
+
serviceErrors: SlackServiceErrors,
|
|
208
212
|
protocol: SlackProtocol,
|
|
209
213
|
retry: Retry.Retry,
|
|
210
214
|
telemetry: TELEMETRY,
|
|
@@ -221,7 +225,8 @@ export const getContent: API.OperationMethod<
|
|
|
221
225
|
> = /*@__PURE__*/ API.make(() => ({
|
|
222
226
|
input: __S(32, __c8, 0) as any as S.Schema<GetContentRequest>,
|
|
223
227
|
output: __S(33, __c8, 1) as any as S.Schema<GetContentResponse>,
|
|
224
|
-
errors: [
|
|
228
|
+
errors: [],
|
|
229
|
+
serviceErrors: SlackServiceErrors,
|
|
225
230
|
protocol: SlackProtocol,
|
|
226
231
|
retry: Retry.Retry,
|
|
227
232
|
telemetry: TELEMETRY,
|
|
@@ -238,7 +243,8 @@ export const lookupSection: API.OperationMethod<
|
|
|
238
243
|
> = /*@__PURE__*/ API.make(() => ({
|
|
239
244
|
input: __S(36, __c9, 0) as any as S.Schema<LookupSectionRequest>,
|
|
240
245
|
output: __S(39, __c9, 3) as any as S.Schema<LookupSectionResponse>,
|
|
241
|
-
errors: [
|
|
246
|
+
errors: [],
|
|
247
|
+
serviceErrors: SlackServiceErrors,
|
|
242
248
|
protocol: SlackProtocol,
|
|
243
249
|
retry: Retry.Retry,
|
|
244
250
|
telemetry: TELEMETRY,
|
|
@@ -255,7 +261,8 @@ export const setAccess: API.OperationMethod<
|
|
|
255
261
|
> = /*@__PURE__*/ API.make(() => ({
|
|
256
262
|
input: __S(40, __c10, 0) as any as S.Schema<SetAccessRequest>,
|
|
257
263
|
output: __S(16, __c4, 0) as any as S.Schema<SetAccessResponse>,
|
|
258
|
-
errors: [
|
|
264
|
+
errors: [],
|
|
265
|
+
serviceErrors: SlackServiceErrors,
|
|
259
266
|
protocol: SlackProtocol,
|
|
260
267
|
retry: Retry.Retry,
|
|
261
268
|
telemetry: TELEMETRY,
|
package/src/services/chat.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
3
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
4
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
-
import {
|
|
5
|
+
import { SlackServiceErrors } from "../errors.ts";
|
|
6
6
|
import { slackPaginate } from "../pagination.ts";
|
|
7
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
8
8
|
import * as Retry from "../retry.ts";
|
|
@@ -435,7 +435,8 @@ export const appendStream: API.OperationMethod<
|
|
|
435
435
|
> = /*@__PURE__*/ API.make(() => ({
|
|
436
436
|
input: __S(0, __c0, 0) as any as S.Schema<AppendStreamRequest>,
|
|
437
437
|
output: __S(32, __c2, 0) as any as S.Schema<AppendStreamResponse>,
|
|
438
|
-
errors: [
|
|
438
|
+
errors: [],
|
|
439
|
+
serviceErrors: SlackServiceErrors,
|
|
439
440
|
protocol: SlackProtocol,
|
|
440
441
|
retry: Retry.Retry,
|
|
441
442
|
telemetry: TELEMETRY,
|
|
@@ -452,7 +453,8 @@ export const chatUnfurl: API.OperationMethod<
|
|
|
452
453
|
> = /*@__PURE__*/ API.make(() => ({
|
|
453
454
|
input: __S(48, __c3, 0) as any as S.Schema<ChatUnfurlRequest>,
|
|
454
455
|
output: __S(64, __c4, 0) as any as S.Schema<ChatUnfurlResponse>,
|
|
455
|
-
errors: [
|
|
456
|
+
errors: [],
|
|
457
|
+
serviceErrors: SlackServiceErrors,
|
|
456
458
|
protocol: SlackProtocol,
|
|
457
459
|
retry: Retry.Retry,
|
|
458
460
|
telemetry: TELEMETRY,
|
|
@@ -469,7 +471,8 @@ export const deleteChat: API.OperationMethod<
|
|
|
469
471
|
> = /*@__PURE__*/ API.make(() => ({
|
|
470
472
|
input: __S(128, __c8, 0) as any as S.Schema<DeleteChatRequest>,
|
|
471
473
|
output: __S(32, __c2, 0) as any as S.Schema<DeleteChatResponse>,
|
|
472
|
-
errors: [
|
|
474
|
+
errors: [],
|
|
475
|
+
serviceErrors: SlackServiceErrors,
|
|
473
476
|
protocol: SlackProtocol,
|
|
474
477
|
retry: Retry.Retry,
|
|
475
478
|
telemetry: TELEMETRY,
|
|
@@ -486,7 +489,8 @@ export const deleteScheduledMessage: API.OperationMethod<
|
|
|
486
489
|
> = /*@__PURE__*/ API.make(() => ({
|
|
487
490
|
input: __S(144, __c9, 0) as any as S.Schema<DeleteScheduledMessageRequest>,
|
|
488
491
|
output: __S(64, __c4, 0) as any as S.Schema<DeleteScheduledMessageResponse>,
|
|
489
|
-
errors: [
|
|
492
|
+
errors: [],
|
|
493
|
+
serviceErrors: SlackServiceErrors,
|
|
490
494
|
protocol: SlackProtocol,
|
|
491
495
|
retry: Retry.Retry,
|
|
492
496
|
telemetry: TELEMETRY,
|
|
@@ -503,7 +507,8 @@ export const getPermalink: API.OperationMethod<
|
|
|
503
507
|
> = /*@__PURE__*/ API.make(() => ({
|
|
504
508
|
input: __S(160, __c10, 0) as any as S.Schema<GetPermalinkRequest>,
|
|
505
509
|
output: __S(161, __c10, 1) as any as S.Schema<GetPermalinkResponse>,
|
|
506
|
-
errors: [
|
|
510
|
+
errors: [],
|
|
511
|
+
serviceErrors: SlackServiceErrors,
|
|
507
512
|
protocol: SlackProtocol,
|
|
508
513
|
retry: Retry.Retry,
|
|
509
514
|
telemetry: TELEMETRY,
|
|
@@ -522,7 +527,8 @@ export const listScheduledMessages: API.PaginatedOperationMethod<
|
|
|
522
527
|
() => ({
|
|
523
528
|
input: __S(176, __c11, 0) as any as S.Schema<ListScheduledMessagesRequest>,
|
|
524
529
|
output: __S(180, __c11, 4) as any as S.Schema<ListScheduledMessagesResponse>,
|
|
525
|
-
errors: [
|
|
530
|
+
errors: [],
|
|
531
|
+
serviceErrors: SlackServiceErrors,
|
|
526
532
|
protocol: SlackProtocol,
|
|
527
533
|
retry: Retry.Retry,
|
|
528
534
|
telemetry: TELEMETRY,
|
|
@@ -548,7 +554,8 @@ export const meMessage: API.OperationMethod<
|
|
|
548
554
|
> = /*@__PURE__*/ API.make(() => ({
|
|
549
555
|
input: __S(192, __c12, 0) as any as S.Schema<MeMessageRequest>,
|
|
550
556
|
output: __S(193, __c12, 1) as any as S.Schema<MeMessageResponse>,
|
|
551
|
-
errors: [
|
|
557
|
+
errors: [],
|
|
558
|
+
serviceErrors: SlackServiceErrors,
|
|
552
559
|
protocol: SlackProtocol,
|
|
553
560
|
retry: Retry.Retry,
|
|
554
561
|
telemetry: TELEMETRY,
|
|
@@ -565,7 +572,8 @@ export const postEphemeral: API.OperationMethod<
|
|
|
565
572
|
> = /*@__PURE__*/ API.make(() => ({
|
|
566
573
|
input: __S(210, __c13, 2) as any as S.Schema<PostEphemeralRequest>,
|
|
567
574
|
output: __S(211, __c13, 3) as any as S.Schema<PostEphemeralResponse>,
|
|
568
|
-
errors: [
|
|
575
|
+
errors: [],
|
|
576
|
+
serviceErrors: SlackServiceErrors,
|
|
569
577
|
protocol: SlackProtocol,
|
|
570
578
|
retry: Retry.Retry,
|
|
571
579
|
telemetry: TELEMETRY,
|
|
@@ -582,7 +590,8 @@ export const postMessage: API.OperationMethod<
|
|
|
582
590
|
> = /*@__PURE__*/ API.make(() => ({
|
|
583
591
|
input: __S(226, __c14, 2) as any as S.Schema<PostMessageRequest>,
|
|
584
592
|
output: __S(227, __c14, 3) as any as S.Schema<PostMessageResponse>,
|
|
585
|
-
errors: [
|
|
593
|
+
errors: [],
|
|
594
|
+
serviceErrors: SlackServiceErrors,
|
|
586
595
|
protocol: SlackProtocol,
|
|
587
596
|
retry: Retry.Retry,
|
|
588
597
|
telemetry: TELEMETRY,
|
|
@@ -599,7 +608,8 @@ export const scheduleMessage: API.OperationMethod<
|
|
|
599
608
|
> = /*@__PURE__*/ API.make(() => ({
|
|
600
609
|
input: __S(242, __c15, 2) as any as S.Schema<ScheduleMessageRequest>,
|
|
601
610
|
output: __S(243, __c15, 3) as any as S.Schema<ScheduleMessageResponse>,
|
|
602
|
-
errors: [
|
|
611
|
+
errors: [],
|
|
612
|
+
serviceErrors: SlackServiceErrors,
|
|
603
613
|
protocol: SlackProtocol,
|
|
604
614
|
retry: Retry.Retry,
|
|
605
615
|
telemetry: TELEMETRY,
|
|
@@ -616,7 +626,8 @@ export const startStream: API.OperationMethod<
|
|
|
616
626
|
> = /*@__PURE__*/ API.make(() => ({
|
|
617
627
|
input: __S(80, __c5, 0) as any as S.Schema<StartStreamRequest>,
|
|
618
628
|
output: __S(32, __c2, 0) as any as S.Schema<StartStreamResponse>,
|
|
619
|
-
errors: [
|
|
629
|
+
errors: [],
|
|
630
|
+
serviceErrors: SlackServiceErrors,
|
|
620
631
|
protocol: SlackProtocol,
|
|
621
632
|
retry: Retry.Retry,
|
|
622
633
|
telemetry: TELEMETRY,
|
|
@@ -633,7 +644,8 @@ export const stopStream: API.OperationMethod<
|
|
|
633
644
|
> = /*@__PURE__*/ API.make(() => ({
|
|
634
645
|
input: __S(96, __c6, 0) as any as S.Schema<StopStreamRequest>,
|
|
635
646
|
output: __S(97, __c6, 1) as any as S.Schema<StopStreamResponse>,
|
|
636
|
-
errors: [
|
|
647
|
+
errors: [],
|
|
648
|
+
serviceErrors: SlackServiceErrors,
|
|
637
649
|
protocol: SlackProtocol,
|
|
638
650
|
retry: Retry.Retry,
|
|
639
651
|
telemetry: TELEMETRY,
|
|
@@ -650,7 +662,8 @@ export const updateChat: API.OperationMethod<
|
|
|
650
662
|
> = /*@__PURE__*/ API.make(() => ({
|
|
651
663
|
input: __S(118, __c7, 6) as any as S.Schema<UpdateChatRequest>,
|
|
652
664
|
output: __S(120, __c7, 8) as any as S.Schema<UpdateChatResponse>,
|
|
653
|
-
errors: [
|
|
665
|
+
errors: [],
|
|
666
|
+
serviceErrors: SlackServiceErrors,
|
|
654
667
|
protocol: SlackProtocol,
|
|
655
668
|
retry: Retry.Retry,
|
|
656
669
|
telemetry: TELEMETRY,
|