@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.17
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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -53
- package/lib/errors.d.ts +31 -31
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -59
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -10
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +2 -2
- package/lib/pagination.js +1 -31
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -231
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -45
- package/lib/services/admin.d.ts +123 -575
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +141 -2884
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +13 -55
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -314
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts +0 -4
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -23
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +25 -106
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +35 -515
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +6 -40
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -209
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +4 -15
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -96
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +1 -7
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -26
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +4 -15
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -81
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +1 -9
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -59
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +6 -22
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -115
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +7 -35
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -140
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +14 -83
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -387
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +31 -116
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +40 -696
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts +1 -4
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -22
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +5 -17
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -96
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +1 -8
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -34
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +4 -16
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -76
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +16 -80
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +1 -439
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +8 -49
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -208
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/lists.d.ts +13 -55
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -254
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +1 -7
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -32
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +7 -43
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -294
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +3 -10
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -84
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +3 -13
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -66
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +5 -17
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -102
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +5 -17
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -88
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +2 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -61
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +4 -35
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -172
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts +4 -26
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -134
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +11 -63
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -295
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +2 -5
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -33
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +7 -31
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -151
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +14 -48
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -255
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +4 -14
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -78
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +8 -51
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -193
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +3 -0
- package/lib/services.lazy/agents.js +1 -0
- package/lib/services.lazy/api.js +1 -0
- package/lib/services.lazy/apps.js +3 -0
- package/lib/services.lazy/assistant.js +1 -0
- package/lib/services.lazy/auth.js +1 -0
- package/lib/services.lazy/blocks.js +1 -0
- package/lib/services.lazy/bookmarks.js +1 -0
- package/lib/services.lazy/bots.js +1 -0
- package/lib/services.lazy/calls.js +1 -0
- package/lib/services.lazy/canvases.js +1 -0
- package/lib/services.lazy/chat.js +1 -0
- package/lib/services.lazy/conversations.js +3 -0
- package/lib/services.lazy/dialog.js +1 -0
- package/lib/services.lazy/dnd.js +1 -0
- package/lib/services.lazy/emoji.js +1 -0
- package/lib/services.lazy/entity.js +1 -0
- package/lib/services.lazy/files.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/lists.js +1 -0
- package/lib/services.lazy/migration.js +1 -0
- package/lib/services.lazy/oauth.js +1 -0
- package/lib/services.lazy/openid.js +1 -0
- package/lib/services.lazy/pins.js +1 -0
- package/lib/services.lazy/reactions.js +1 -0
- package/lib/services.lazy/reminders.js +1 -0
- package/lib/services.lazy/rtm.js +1 -0
- package/lib/services.lazy/search.js +1 -0
- package/lib/services.lazy/stars.js +1 -0
- package/lib/services.lazy/team.js +1 -0
- package/lib/services.lazy/tooling.js +1 -0
- package/lib/services.lazy/usergroups.js +1 -0
- package/lib/services.lazy/users.js +1 -0
- package/lib/services.lazy/views.js +1 -0
- package/lib/services.lazy/workflows.js +1 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -12
- package/package.json +10 -8
- 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/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -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/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -372
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
package/lib/services/bots.js
CHANGED
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
import
|
|
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";
|
|
4
|
-
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
5
|
-
import { SlackProtocol } from "../protocol.js";
|
|
6
|
-
import * as Retry from "../retry.js";
|
|
7
|
-
import * as T from "../traits.js";
|
|
8
|
-
export const BotsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
-
bot: S.optional(S.String.pipe(T.Query())),
|
|
10
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
11
|
-
}).pipe(T.Http({ method: "GET", uri: "/bots.info", code: 200 }))).annotate({ identifier: "BotsInfoRequest" });
|
|
12
|
-
export const BotsInfoResponseBotsItemIcons = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
13
|
-
emoji: S.optional(S.String),
|
|
14
|
-
image_36: S.optional(S.String),
|
|
15
|
-
image_48: S.optional(S.String),
|
|
16
|
-
image_64: S.optional(S.String),
|
|
17
|
-
image_72: S.optional(S.String),
|
|
18
|
-
})).annotate({
|
|
19
|
-
identifier: "BotsInfoResponseBotsItemIcons",
|
|
20
|
-
});
|
|
21
|
-
export const BotsInfoResponseBotsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
22
|
-
updated: S.Number,
|
|
23
|
-
name: S.optional(S.String),
|
|
24
|
-
icons: S.optional(BotsInfoResponseBotsItemIcons),
|
|
25
|
-
deleted: S.Boolean,
|
|
26
|
-
app_id: S.optional(S.String),
|
|
27
|
-
id: S.String,
|
|
28
|
-
is_workflow_bot: S.optional(S.Boolean),
|
|
29
|
-
is_connector_bot: S.optional(S.Boolean),
|
|
30
|
-
is_legacy_workflow_bot: S.optional(S.Boolean),
|
|
31
|
-
user_id: S.optional(S.String),
|
|
32
|
-
})).annotate({ identifier: "BotsInfoResponseBotsItem" });
|
|
33
|
-
export const BotsInfoResponseBotsList = /*@__PURE__*/ S.Array(BotsInfoResponseBotsItem);
|
|
34
|
-
export const BotsInfoResponseBotIcons = BotsInfoResponseBotsItemIcons;
|
|
35
|
-
export const BotsInfoResponseBot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
36
|
-
updated: S.Number,
|
|
37
|
-
user_id: S.optional(S.String),
|
|
38
|
-
name: S.optional(S.String),
|
|
39
|
-
icons: S.optional(BotsInfoResponseBotsItemIcons),
|
|
40
|
-
deleted: S.Boolean,
|
|
41
|
-
app_id: S.optional(S.String),
|
|
42
|
-
id: S.String,
|
|
43
|
-
is_workflow_bot: S.optional(S.Boolean),
|
|
44
|
-
is_connector_bot: S.optional(S.Boolean),
|
|
45
|
-
is_legacy_workflow_bot: S.optional(S.Boolean),
|
|
46
|
-
})).annotate({ identifier: "BotsInfoResponseBot" });
|
|
47
|
-
export const BotsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
48
|
-
ok: S.Boolean,
|
|
49
|
-
bots: S.optional(BotsInfoResponseBotsList),
|
|
50
|
-
bot: S.optional(BotsInfoResponseBot),
|
|
51
|
-
})).annotate({ identifier: "BotsInfoResponse" });
|
|
52
|
-
/** Gets information about a bot user. Required scopes — bot: `users:read`; user: `users:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bot_not_found` — Value passed for `bot` was invalid. - `bots_not_found` — At least one value passed for `bots` was invalid. - `missing_argument` — A required argument is missing. - `team_not_found` — Value passed for `team_id` was invalid. See https://docs.slack.dev/reference/methods/bots.info */
|
|
53
|
-
export const botsInfo = /*@__PURE__*/ API.make(() => ({
|
|
54
|
-
input: BotsInfoRequest,
|
|
55
|
-
output: BotsInfoResponse,
|
|
56
|
-
errors: [SlackError, SlackRateLimited],
|
|
57
|
-
protocol: SlackProtocol,
|
|
58
|
-
retry: Retry.Retry,
|
|
59
|
-
}));
|
|
1
|
+
import{d as e,errors$SlackError as t,errors$SlackRateLimited as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,protocol$SlackProtocol as d,retry$Retry as f,s as p,t as m,traits$Http as h,traits$Query as g,u as _}from"../_bundle/sdk.js";const v=/*@__PURE__*/ i(i=>i===r?s(`BotsInfoResponse`,`{input:#1,output:#6,errors:[$10,$11],protocol:$12,retry:$13};$6(>7)@"BotsInfoRequest";$6(>8)@"%BotsItemIcons";$6(>9)@"%BotsItem";$9(#3);$6(>10)@"%Bot";$6(>11)@"%";$5({bot:$4($3.pipe($2())),team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/bots.info",code:200}));$5({emoji:$4($3),image_36:$4($3),image_48:$4($3),image_64:$4($3),image_72:$4($3)});$5({updated:$7,name:$4($3),icons:$4(#2),deleted:$8,app_id:$4($3),id:$3,is_workflow_bot:$4($8),is_connector_bot:$4($8),is_legacy_workflow_bot:$4($8),user_id:$4($3)});$5({updated:$7,user_id:$4($3),name:$4($3),icons:$4(#2),deleted:$8,app_id:$4($3),id:$3,is_workflow_bot:$4($8),is_connector_bot:$4($8),is_legacy_workflow_bot:$4($8)});$5({ok:$8,bots:$4(#4),bot:$4(#5)})`,[o,h,g,l,_,p,e,a,c,m,t,n,d,f]):u(v,i));export{v as botsInfo};
|
|
60
2
|
//# sourceMappingURL=bots.js.map
|
package/lib/services/bots.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bots.js","
|
|
1
|
+
{"version":3,"file":"bots.js","names":["API.D","API.named","__L.at","T.Http","T.Query","S.String","S.optional","S.Struct","S.suspend","S.Number","S.Boolean","S.Array","Retry.Retry","API.call","suspend","SlackError","SlackRateLimited","D","op","Number","at","named","Boolean","String","call","SlackProtocol","Retry","Struct","Array","Http","Query","optional","botsInfo"],"sources":["../../src/services/bots.ts"],"mappings":"uPA0DA,MAAagC,EAKK,gBAAQ,GAAgB,IAAMhC,EAAQC,EAAU,mBAAoB,8sBAA+sB,CAACC,EAAQC,EAAQC,EAASC,EAAUC,EAAYC,EAAUC,EAAWC,EAAUC,EAAWC,EAASI,EAAYC,EAAkBS,EAAeb,CAAW,CAAC,EAAIC,EAASmB,EAAU,CAAC,CAAC"}
|
package/lib/services/calls.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
2
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
3
|
export type { SlackOpError, SlackOpContext };
|
|
5
4
|
/** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
6
5
|
export type AddCallRequestUsersList = Array<unknown>;
|
|
7
|
-
export declare const AddCallRequestUsersList: S.Schema<AddCallRequestUsersList>;
|
|
8
6
|
export interface AddCallRequest {
|
|
9
7
|
/** An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service. */
|
|
10
8
|
external_unique_id: string;
|
|
@@ -23,69 +21,57 @@ export interface AddCallRequest {
|
|
|
23
21
|
/** The list of users to register as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
24
22
|
users?: AddCallRequestUsersList;
|
|
25
23
|
}
|
|
26
|
-
export declare const AddCallRequest: S.Schema<AddCallRequest>;
|
|
27
24
|
export interface AddCallResponse {
|
|
28
25
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
29
26
|
ok: boolean;
|
|
30
27
|
call: unknown;
|
|
31
28
|
}
|
|
32
|
-
export declare const AddCallResponse: S.Schema<AddCallResponse>;
|
|
33
29
|
/** The list of users to add as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
34
30
|
export type AddParticipantRequestUsersList = Array<unknown>;
|
|
35
|
-
export declare const AddParticipantRequestUsersList: S.Schema<AddParticipantRequestUsersList>;
|
|
36
31
|
export interface AddParticipantRequest {
|
|
37
32
|
/** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
|
|
38
33
|
id: string;
|
|
39
34
|
/** The list of users to add as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
40
35
|
users: AddParticipantRequestUsersList;
|
|
41
36
|
}
|
|
42
|
-
export declare const AddParticipantRequest: S.Schema<AddParticipantRequest>;
|
|
43
37
|
export interface AddParticipantResponse {
|
|
44
38
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
45
39
|
ok: boolean;
|
|
46
40
|
call: unknown;
|
|
47
41
|
}
|
|
48
|
-
export declare const AddParticipantResponse: S.Schema<AddParticipantResponse>;
|
|
49
42
|
export interface CallsEndRequest {
|
|
50
43
|
/** `id` returned when registering the call using the [`calls.add`](/reference/methods/calls.add) method. */
|
|
51
44
|
id: string;
|
|
52
45
|
/** Call duration in seconds */
|
|
53
46
|
duration?: number;
|
|
54
47
|
}
|
|
55
|
-
export declare const CallsEndRequest: S.Schema<CallsEndRequest>;
|
|
56
48
|
export interface CallsEndResponse {
|
|
57
49
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
58
50
|
ok: boolean;
|
|
59
51
|
call: unknown;
|
|
60
52
|
}
|
|
61
|
-
export declare const CallsEndResponse: S.Schema<CallsEndResponse>;
|
|
62
53
|
export interface CallsInfoRequest {
|
|
63
54
|
/** `id` of the Call returned by the [`calls.add`](/reference/methods/calls.add) method. */
|
|
64
55
|
id: string;
|
|
65
56
|
}
|
|
66
|
-
export declare const CallsInfoRequest: S.Schema<CallsInfoRequest>;
|
|
67
57
|
export interface CallsInfoResponse {
|
|
68
58
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
69
59
|
ok: boolean;
|
|
70
60
|
call: unknown;
|
|
71
61
|
}
|
|
72
|
-
export declare const CallsInfoResponse: S.Schema<CallsInfoResponse>;
|
|
73
62
|
/** The list of users to remove as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
74
63
|
export type RemoveParticipantRequestUsersList = Array<unknown>;
|
|
75
|
-
export declare const RemoveParticipantRequestUsersList: S.Schema<RemoveParticipantRequestUsersList>;
|
|
76
64
|
export interface RemoveParticipantRequest {
|
|
77
65
|
/** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
|
|
78
66
|
id: string;
|
|
79
67
|
/** The list of users to remove as participants in the Call. [Read more on how to specify users here](/apis/web-api/using-the-calls-api#users). */
|
|
80
68
|
users: RemoveParticipantRequestUsersList;
|
|
81
69
|
}
|
|
82
|
-
export declare const RemoveParticipantRequest: S.Schema<RemoveParticipantRequest>;
|
|
83
70
|
export interface RemoveParticipantResponse {
|
|
84
71
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
85
72
|
ok: boolean;
|
|
86
73
|
call: unknown;
|
|
87
74
|
}
|
|
88
|
-
export declare const RemoveParticipantResponse: S.Schema<RemoveParticipantResponse>;
|
|
89
75
|
export interface UpdateCallRequest {
|
|
90
76
|
/** `id` returned by the [`calls.add`](/reference/methods/calls.add) method. */
|
|
91
77
|
id: string;
|
|
@@ -96,29 +82,27 @@ export interface UpdateCallRequest {
|
|
|
96
82
|
/** When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL. */
|
|
97
83
|
desktop_app_join_url?: string;
|
|
98
84
|
}
|
|
99
|
-
export declare const UpdateCallRequest: S.Schema<UpdateCallRequest>;
|
|
100
85
|
export interface UpdateCallResponse {
|
|
101
86
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
102
87
|
ok: boolean;
|
|
103
88
|
call: unknown;
|
|
104
89
|
}
|
|
105
|
-
export declare const UpdateCallResponse: S.Schema<UpdateCallResponse>;
|
|
106
90
|
export type AddCallError = SlackOpError;
|
|
107
|
-
/** Registers a new Call. Required scopes
|
|
91
|
+
/** Registers a new Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected error has occurred while trying to register the Call. - `invalid_created_by` -- The `created_by` user ID is invalid. - `invalid_start_time` -- The start time is invalid. - `not_authorized` -- The specified user is not authorized to create a Call in this channel. - `not_implemented` -- This method is not available. - `user_not_found` -- A specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.add */
|
|
108
92
|
export declare const addCall: API.OperationMethod<AddCallRequest, AddCallResponse, AddCallError, SlackOpContext>;
|
|
109
93
|
export type AddParticipantError = SlackOpError;
|
|
110
|
-
/** Registers new participants added to a Call. Required scopes
|
|
94
|
+
/** Registers new participants added to a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` -- At least one specified user is already part of the Call. - `inactive_call` -- The Call has been already ended. - `internal_error` -- An unexpected exception occurred while adding a Call participant. - `invalid_call_id` -- The specified Call wasn't found. - `missing_argument` -- A required argument is missing. - `not_implemented` -- This method is not available. - `user_not_found` -- At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.add */
|
|
111
95
|
export declare const addParticipant: API.OperationMethod<AddParticipantRequest, AddParticipantResponse, AddParticipantError, SlackOpContext>;
|
|
112
96
|
export type CallsEndError = SlackOpError;
|
|
113
|
-
/** Ends a Call. Required scopes
|
|
97
|
+
/** Ends a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `inactive_call` -- The Call has been already stopped. - `internal_error` -- An unexpected error has occurred while ending the Call. - `invalid_call_id` -- Invalid Call ID. - `not_implemented` -- This method is not publicly available yet. See https://docs.slack.dev/reference/methods/calls.end */
|
|
114
98
|
export declare const callsEnd: API.OperationMethod<CallsEndRequest, CallsEndResponse, CallsEndError, SlackOpContext>;
|
|
115
99
|
export type CallsInfoError = SlackOpError;
|
|
116
|
-
/** Returns information about a Call. Required scopes
|
|
100
|
+
/** Returns information about a Call. Required scopes -- bot: `calls:read`; user: `calls:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected error occurred while finding information about this Call. - `not_implemented` -- This method is not available. See https://docs.slack.dev/reference/methods/calls.info */
|
|
117
101
|
export declare const callsInfo: API.OperationMethod<CallsInfoRequest, CallsInfoResponse, CallsInfoError, SlackOpContext>;
|
|
118
102
|
export type RemoveParticipantError = SlackOpError;
|
|
119
|
-
/** Registers participants removed from a Call. Required scopes
|
|
103
|
+
/** Registers participants removed from a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` -- At least one specified user is not part of the Call. - `inactive_call` -- The Call has been already ended. - `internal_error` -- An unexpected exception occurred while removing participants from the Call. - `invalid_call_id` -- The specified Call wasn't found. - `missing_argument` -- A required argument is missing. - `not_implemented` -- This method is not available. - `user_not_found` -- At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.remove */
|
|
120
104
|
export declare const removeParticipant: API.OperationMethod<RemoveParticipantRequest, RemoveParticipantResponse, RemoveParticipantError, SlackOpContext>;
|
|
121
105
|
export type UpdateCallError = SlackOpError;
|
|
122
|
-
/** Updates information about a Call. Required scopes
|
|
106
|
+
/** Updates information about a Call. Required scopes -- bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected exception occurred while updating the Call info. - `invalid_call_id` -- The Call's `id` was invalid. - `not_implemented` -- This method is not available. See https://docs.slack.dev/reference/methods/calls.update */
|
|
123
107
|
export declare const updateCall: API.OperationMethod<UpdateCallRequest, UpdateCallResponse, UpdateCallError, SlackOpContext>;
|
|
124
108
|
//# sourceMappingURL=calls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../src/services/calls.ts"],"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Ob,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAC/C,8rBAA8rB;AAC9rB,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,qcAAqc;AACrc,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,4XAA4X;AAC5X,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAClD,usBAAusB;AACvsB,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,eAAe,CACjD,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,2aAA2a;AAC3a,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAOb,CAAC"}
|
package/lib/services/calls.js
CHANGED
|
@@ -1,116 +1,2 @@
|
|
|
1
|
-
import
|
|
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";
|
|
4
|
-
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
5
|
-
import { SlackProtocol } from "../protocol.js";
|
|
6
|
-
import * as Retry from "../retry.js";
|
|
7
|
-
import * as T from "../traits.js";
|
|
8
|
-
export const AddCallRequestUsersList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
9
|
-
export const AddCallRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
|
-
external_unique_id: S.String,
|
|
11
|
-
external_display_id: S.optional(S.String),
|
|
12
|
-
join_url: S.String,
|
|
13
|
-
desktop_app_join_url: S.optional(S.String),
|
|
14
|
-
date_start: S.optional(S.Number),
|
|
15
|
-
title: S.optional(S.String),
|
|
16
|
-
created_by: S.optional(S.String),
|
|
17
|
-
users: S.optional(AddCallRequestUsersList),
|
|
18
|
-
}).pipe(T.Http({ method: "POST", uri: "/calls.add", code: 200 }))).annotate({ identifier: "AddCallRequest" });
|
|
19
|
-
export const AddCallResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
20
|
-
ok: S.Boolean,
|
|
21
|
-
call: S.Unknown,
|
|
22
|
-
})).annotate({ identifier: "AddCallResponse" });
|
|
23
|
-
export const AddParticipantRequestUsersList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
24
|
-
export const AddParticipantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
25
|
-
id: S.String,
|
|
26
|
-
users: AddParticipantRequestUsersList,
|
|
27
|
-
}).pipe(T.Http({ method: "POST", uri: "/calls.participants.add", code: 200 }))).annotate({ identifier: "AddParticipantRequest" });
|
|
28
|
-
export const AddParticipantResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
|
-
ok: S.Boolean,
|
|
30
|
-
call: S.Unknown,
|
|
31
|
-
})).annotate({ identifier: "AddParticipantResponse" });
|
|
32
|
-
export const CallsEndRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
33
|
-
id: S.String,
|
|
34
|
-
duration: S.optional(S.Number),
|
|
35
|
-
}).pipe(T.Http({ method: "POST", uri: "/calls.end", code: 200 }))).annotate({ identifier: "CallsEndRequest" });
|
|
36
|
-
export const CallsEndResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
37
|
-
ok: S.Boolean,
|
|
38
|
-
call: S.Unknown,
|
|
39
|
-
})).annotate({ identifier: "CallsEndResponse" });
|
|
40
|
-
export const CallsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
-
id: S.String,
|
|
42
|
-
}).pipe(T.Http({ method: "POST", uri: "/calls.info", code: 200 }))).annotate({ identifier: "CallsInfoRequest" });
|
|
43
|
-
export const CallsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
44
|
-
ok: S.Boolean,
|
|
45
|
-
call: S.Unknown,
|
|
46
|
-
})).annotate({ identifier: "CallsInfoResponse" });
|
|
47
|
-
export const RemoveParticipantRequestUsersList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
48
|
-
export const RemoveParticipantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
49
|
-
id: S.String,
|
|
50
|
-
users: RemoveParticipantRequestUsersList,
|
|
51
|
-
}).pipe(T.Http({ method: "POST", uri: "/calls.participants.remove", code: 200 }))).annotate({ identifier: "RemoveParticipantRequest" });
|
|
52
|
-
export const RemoveParticipantResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
-
ok: S.Boolean,
|
|
54
|
-
call: S.Unknown,
|
|
55
|
-
})).annotate({
|
|
56
|
-
identifier: "RemoveParticipantResponse",
|
|
57
|
-
});
|
|
58
|
-
export const UpdateCallRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
-
id: S.String,
|
|
60
|
-
title: S.optional(S.String),
|
|
61
|
-
join_url: S.optional(S.String),
|
|
62
|
-
desktop_app_join_url: S.optional(S.String),
|
|
63
|
-
}).pipe(T.Http({ method: "POST", uri: "/calls.update", code: 200 }))).annotate({ identifier: "UpdateCallRequest" });
|
|
64
|
-
export const UpdateCallResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
-
ok: S.Boolean,
|
|
66
|
-
call: S.Unknown,
|
|
67
|
-
})).annotate({ identifier: "UpdateCallResponse" });
|
|
68
|
-
/** Registers a new Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error has occurred while trying to register the Call. - `invalid_created_by` — The `created_by` user ID is invalid. - `invalid_start_time` — The start time is invalid. - `not_authorized` — The specified user is not authorized to create a Call in this channel. - `not_implemented` — This method is not available. - `user_not_found` — A specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.add */
|
|
69
|
-
export const addCall = /*@__PURE__*/ API.make(() => ({
|
|
70
|
-
input: AddCallRequest,
|
|
71
|
-
output: AddCallResponse,
|
|
72
|
-
errors: [SlackError, SlackRateLimited],
|
|
73
|
-
protocol: SlackProtocol,
|
|
74
|
-
retry: Retry.Retry,
|
|
75
|
-
}));
|
|
76
|
-
/** Registers new participants added to a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is already part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while adding a Call participant. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.add */
|
|
77
|
-
export const addParticipant = /*@__PURE__*/ API.make(() => ({
|
|
78
|
-
input: AddParticipantRequest,
|
|
79
|
-
output: AddParticipantResponse,
|
|
80
|
-
errors: [SlackError, SlackRateLimited],
|
|
81
|
-
protocol: SlackProtocol,
|
|
82
|
-
retry: Retry.Retry,
|
|
83
|
-
}));
|
|
84
|
-
/** Ends a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `inactive_call` — The Call has been already stopped. - `internal_error` — An unexpected error has occurred while ending the Call. - `invalid_call_id` — Invalid Call ID. - `not_implemented` — This method is not publicly available yet. See https://docs.slack.dev/reference/methods/calls.end */
|
|
85
|
-
export const callsEnd = /*@__PURE__*/ API.make(() => ({
|
|
86
|
-
input: CallsEndRequest,
|
|
87
|
-
output: CallsEndResponse,
|
|
88
|
-
errors: [SlackError, SlackRateLimited],
|
|
89
|
-
protocol: SlackProtocol,
|
|
90
|
-
retry: Retry.Retry,
|
|
91
|
-
}));
|
|
92
|
-
/** Returns information about a Call. Required scopes — bot: `calls:read`; user: `calls:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred while finding information about this Call. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.info */
|
|
93
|
-
export const callsInfo = /*@__PURE__*/ API.make(() => ({
|
|
94
|
-
input: CallsInfoRequest,
|
|
95
|
-
output: CallsInfoResponse,
|
|
96
|
-
errors: [SlackError, SlackRateLimited],
|
|
97
|
-
protocol: SlackProtocol,
|
|
98
|
-
retry: Retry.Retry,
|
|
99
|
-
}));
|
|
100
|
-
/** Registers participants removed from a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `bad_users` — At least one specified user is not part of the Call. - `inactive_call` — The Call has been already ended. - `internal_error` — An unexpected exception occurred while removing participants from the Call. - `invalid_call_id` — The specified Call wasn't found. - `missing_argument` — A required argument is missing. - `not_implemented` — This method is not available. - `user_not_found` — At least one specified user wasn't found. See https://docs.slack.dev/reference/methods/calls.participants.remove */
|
|
101
|
-
export const removeParticipant = /*@__PURE__*/ API.make(() => ({
|
|
102
|
-
input: RemoveParticipantRequest,
|
|
103
|
-
output: RemoveParticipantResponse,
|
|
104
|
-
errors: [SlackError, SlackRateLimited],
|
|
105
|
-
protocol: SlackProtocol,
|
|
106
|
-
retry: Retry.Retry,
|
|
107
|
-
}));
|
|
108
|
-
/** Updates information about a Call. Required scopes — bot: `calls:write`; user: `calls:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected exception occurred while updating the Call info. - `invalid_call_id` — The Call's `id` was invalid. - `not_implemented` — This method is not available. See https://docs.slack.dev/reference/methods/calls.update */
|
|
109
|
-
export const updateCall = /*@__PURE__*/ API.make(() => ({
|
|
110
|
-
input: UpdateCallRequest,
|
|
111
|
-
output: UpdateCallResponse,
|
|
112
|
-
errors: [SlackError, SlackRateLimited],
|
|
113
|
-
protocol: SlackProtocol,
|
|
114
|
-
retry: Retry.Retry,
|
|
115
|
-
}));
|
|
1
|
+
import{c as e,d as t,errors$SlackError as n,errors$SlackRateLimited as r,f as i,h as a,i as o,l as s,n as c,o as l,p as u,protocol$SlackProtocol as d,retry$Retry as f,s as p,t as m,traits$Http as h,u as g}from"../_bundle/sdk.js";const _=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"AddCallRequest";$6({external_unique_id:$2,external_display_id:$3($2),join_url:$2,desktop_app_join_url:$3($2),date_start:$3($4),title:$3($2),created_by:$3($2),users:$3(#5:0)}).pipe($1({method:"POST",uri:"/calls.add",code:200}))`,[s,h,l,g,o,__d1,p,t,__d0,n,r,d,f]]:u(_,e));const v=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"AddParticipantRequest";$4({id:$2,users:#3:0}).pipe($1({method:"POST",uri:"/calls.participants.add",code:200}))`,[s,h,l,__d1,p,t,__d0,n,r,d,f]]:u(v,e));const y=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"CallsEndRequest";$5({id:$2,duration:$4($3)}).pipe($1({method:"POST",uri:"/calls.end",code:200}))`,[s,h,l,o,g,p,t,__d0,n,r,d,f]]:u(y,e));const b=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"CallsInfoRequest";$3({id:$2}).pipe($1({method:"POST",uri:"/calls.info",code:200}))`,[s,h,l,p,t,__d0,n,r,d,f]]:u(b,e));const x=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RemoveParticipantRequest";$4({id:$2,users:#3:0}).pipe($1({method:"POST",uri:"/calls.participants.remove",code:200}))`,[s,h,l,__d1,p,t,__d0,n,r,d,f]]:u(x,e));const S=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"UpdateCallRequest";$4({id:$2,title:$3($2),join_url:$3($2),desktop_app_join_url:$3($2)}).pipe($1({method:"POST",uri:"/calls.update",code:200}))`,[s,h,l,g,p,t,__d0,n,r,d,f]]:u(S,e));function __d0(){return[`$4(>1)@"AddCallResponse";$3({ok:$1,call:$2})`,[s,c,e,p,t]]}function __d1(){return[`$2($1)`,[s,e,m]]}export{_ as addCall,v as addParticipant,y as callsEnd,b as callsInfo,x as removeParticipant,S as updateCall};
|
|
116
2
|
//# sourceMappingURL=calls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calls.js","
|
|
1
|
+
{"version":3,"file":"calls.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Number","S.Struct","S.suspend","Retry.Retry","API.call","S.Boolean","S.Unknown","S.Array","Unknown","suspend","SlackError","SlackRateLimited","D","op","Number","at","Boolean","String","call","SlackProtocol","Retry","Struct","Array","Http","optional","addCall","i","addParticipant","callsEnd","callsInfo","removeParticipant","updateCall"],"sources":["../../src/services/calls.ts"],"mappings":"qOAmGA,MAAa8B,EAKK,gBAAQ,GAAgBC,IAAM/B,EAAQ,CAAC,2SAA4S,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAU,KAAMC,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAehB,CAAW,CAAC,EAAIC,EAASqB,EAASC,CAAC,CAAC,EAIxgB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAM/B,EAAQ,CAAC,qLAAsL,CAACC,EAAQC,EAAQC,EAAU,KAAMG,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAehB,CAAW,CAAC,EAAIC,EAASuB,EAAgBD,CAAC,CAAC,EAInY,MAAaE,EAKK,gBAAQ,GAAgBF,IAAM/B,EAAQ,CAAC,wKAAyK,CAACC,EAAQC,EAAQC,EAAUE,EAAUD,EAAYE,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAehB,CAAW,CAAC,EAAIC,EAASwB,EAAUF,CAAC,CAAC,EAIhY,MAAaG,EAKK,gBAAQ,GAAgBH,IAAM/B,EAAQ,CAAC,wJAAyJ,CAACC,EAAQC,EAAQC,EAAUG,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAehB,CAAW,CAAC,EAAIC,EAASyB,EAAWH,CAAC,CAAC,EAI3V,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAM/B,EAAQ,CAAC,2LAA4L,CAACC,EAAQC,EAAQC,EAAU,KAAMG,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAehB,CAAW,CAAC,EAAIC,EAAS0B,EAAmBJ,CAAC,CAAC,EAI5Y,MAAaK,EAKK,gBAAQ,GAAgBL,IAAM/B,EAAQ,CAAC,qNAAsN,CAACC,EAAQC,EAAQC,EAAUC,EAAYE,EAAUC,EAAW,KAAMQ,EAAYC,EAAkBQ,EAAehB,CAAW,CAAC,EAAIC,EAAS2B,EAAYL,CAAC,CAAC,EAMra,SAAS,MAAY,CACnB,MAAO,CAAC,+CAAgD,CAAC9B,EAAQS,EAAWC,EAAWL,EAAUC,CAAS,CAAC,CAC7G,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAACN,EAAQU,EAAWC,CAAO,CAAC,CAChD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
2
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
3
|
export type { SlackOpError, SlackOpContext };
|
|
5
4
|
export interface CreateCanvaseRequest {
|
|
@@ -10,20 +9,16 @@ export interface CreateCanvaseRequest {
|
|
|
10
9
|
/** Channel ID of the channel the canvas will be tabbed in. This is a required field for free teams. */
|
|
11
10
|
channel_id?: string;
|
|
12
11
|
}
|
|
13
|
-
export declare const CreateCanvaseRequest: S.Schema<CreateCanvaseRequest>;
|
|
14
12
|
export interface CreateCanvaseResponse {
|
|
15
13
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
16
14
|
ok: boolean;
|
|
17
15
|
/** Encoded ID of the canvas */
|
|
18
16
|
canvas_id: string;
|
|
19
17
|
}
|
|
20
|
-
export declare const CreateCanvaseResponse: S.Schema<CreateCanvaseResponse>;
|
|
21
18
|
/** List of channels you wish to update access for */
|
|
22
19
|
export type DeleteAccessRequestChannelIdsList = Array<string>;
|
|
23
|
-
export declare const DeleteAccessRequestChannelIdsList: S.Schema<DeleteAccessRequestChannelIdsList>;
|
|
24
20
|
/** List of users you wish to update access for */
|
|
25
21
|
export type DeleteAccessRequestUserIdsList = Array<string>;
|
|
26
|
-
export declare const DeleteAccessRequestUserIdsList: S.Schema<DeleteAccessRequestUserIdsList>;
|
|
27
22
|
export interface DeleteAccessRequest {
|
|
28
23
|
/** Encoded ID of the canvas */
|
|
29
24
|
canvas_id: string;
|
|
@@ -32,13 +27,10 @@ export interface DeleteAccessRequest {
|
|
|
32
27
|
/** List of users you wish to update access for */
|
|
33
28
|
user_ids?: DeleteAccessRequestUserIdsList;
|
|
34
29
|
}
|
|
35
|
-
export declare const DeleteAccessRequest: S.Schema<DeleteAccessRequest>;
|
|
36
30
|
/** The channel IDs that could not be updated */
|
|
37
31
|
export type DeleteAccessResponseFailedToUpdateChannelIdsList = Array<string>;
|
|
38
|
-
export declare const DeleteAccessResponseFailedToUpdateChannelIdsList: S.Schema<DeleteAccessResponseFailedToUpdateChannelIdsList>;
|
|
39
32
|
/** The user IDs that could not be updated */
|
|
40
33
|
export type DeleteAccessResponseFailedToUpdateUserIdsList = Array<string>;
|
|
41
|
-
export declare const DeleteAccessResponseFailedToUpdateUserIdsList: S.Schema<DeleteAccessResponseFailedToUpdateUserIdsList>;
|
|
42
34
|
export interface DeleteAccessResponse {
|
|
43
35
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
44
36
|
ok: boolean;
|
|
@@ -47,81 +39,65 @@ export interface DeleteAccessResponse {
|
|
|
47
39
|
/** The user IDs that could not be updated */
|
|
48
40
|
failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList;
|
|
49
41
|
}
|
|
50
|
-
export declare const DeleteAccessResponse: S.Schema<DeleteAccessResponse>;
|
|
51
42
|
export interface DeleteCanvaseRequest {
|
|
52
43
|
/** Encoded ID of the canvas */
|
|
53
44
|
canvas_id: string;
|
|
54
45
|
}
|
|
55
|
-
export declare const DeleteCanvaseRequest: S.Schema<DeleteCanvaseRequest>;
|
|
56
46
|
export interface DeleteCanvaseResponse {
|
|
57
47
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
58
48
|
ok: boolean;
|
|
59
49
|
}
|
|
60
|
-
export declare const DeleteCanvaseResponse: S.Schema<DeleteCanvaseResponse>;
|
|
61
50
|
/** List of changes to apply on the specified canvas. The markdown content of each change is limited to 1 MiB (1,048,576 characters). */
|
|
62
51
|
export type EditCanvaseRequestChangesList = Array<unknown>;
|
|
63
|
-
export declare const EditCanvaseRequestChangesList: S.Schema<EditCanvaseRequestChangesList>;
|
|
64
52
|
export interface EditCanvaseRequest {
|
|
65
53
|
/** Encoded ID of the canvas */
|
|
66
54
|
canvas_id: string;
|
|
67
55
|
/** List of changes to apply on the specified canvas. The markdown content of each change is limited to 1 MiB (1,048,576 characters). */
|
|
68
56
|
changes: EditCanvaseRequestChangesList;
|
|
69
57
|
}
|
|
70
|
-
export declare const EditCanvaseRequest: S.Schema<EditCanvaseRequest>;
|
|
71
58
|
export interface EditCanvaseResponse {
|
|
72
59
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
73
60
|
ok: boolean;
|
|
74
61
|
}
|
|
75
|
-
export declare const EditCanvaseResponse: S.Schema<EditCanvaseResponse>;
|
|
76
62
|
/** Format in which to return the canvas content. Defaults to markdown. */
|
|
77
63
|
export type GetContentRequestContentType = "html" | "markdown";
|
|
78
|
-
export declare const GetContentRequestContentType: any;
|
|
79
64
|
export interface GetContentRequest {
|
|
80
65
|
/** Encoded ID of the canvas */
|
|
81
66
|
canvas_id: string;
|
|
82
67
|
/** Format in which to return the canvas content. Defaults to markdown. */
|
|
83
68
|
content_type?: GetContentRequestContentType | (string & {});
|
|
84
69
|
}
|
|
85
|
-
export declare const GetContentRequest: S.Schema<GetContentRequest>;
|
|
86
70
|
export interface GetContentResponse {
|
|
87
71
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
88
72
|
ok: boolean;
|
|
89
73
|
/** The content of the canvas in the requested content_type. */
|
|
90
74
|
content: string;
|
|
91
75
|
}
|
|
92
|
-
export declare const GetContentResponse: S.Schema<GetContentResponse>;
|
|
93
76
|
export interface LookupSectionRequest {
|
|
94
77
|
/** Encoded ID of the canvas */
|
|
95
78
|
canvas_id: string;
|
|
96
79
|
/** Filtering criteria */
|
|
97
80
|
criteria: unknown;
|
|
98
81
|
}
|
|
99
|
-
export declare const LookupSectionRequest: S.Schema<LookupSectionRequest>;
|
|
100
82
|
/** IDs of child sections within a layout container (blockquote, callout, flexbox, or table). */
|
|
101
83
|
export type LookupSectionResponseSectionsItemChildSectionIdsList = Array<string>;
|
|
102
|
-
export declare const LookupSectionResponseSectionsItemChildSectionIdsList: S.Schema<LookupSectionResponseSectionsItemChildSectionIdsList>;
|
|
103
84
|
export interface LookupSectionResponseSectionsItem {
|
|
104
85
|
id: string;
|
|
105
86
|
/** IDs of child sections within a layout container (blockquote, callout, flexbox, or table). */
|
|
106
87
|
child_section_ids?: LookupSectionResponseSectionsItemChildSectionIdsList;
|
|
107
88
|
}
|
|
108
|
-
export declare const LookupSectionResponseSectionsItem: S.Schema<LookupSectionResponseSectionsItem>;
|
|
109
89
|
/** Sections in the canvas that match the provided criteria */
|
|
110
90
|
export type LookupSectionResponseSectionsList = Array<LookupSectionResponseSectionsItem>;
|
|
111
|
-
export declare const LookupSectionResponseSectionsList: S.Schema<LookupSectionResponseSectionsList>;
|
|
112
91
|
export interface LookupSectionResponse {
|
|
113
92
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
114
93
|
ok: boolean;
|
|
115
94
|
/** Sections in the canvas that match the provided criteria */
|
|
116
95
|
sections: LookupSectionResponseSectionsList;
|
|
117
96
|
}
|
|
118
|
-
export declare const LookupSectionResponse: S.Schema<LookupSectionResponse>;
|
|
119
97
|
/** List of channels you wish to update access for. Can only be used if user_ids is not provided. */
|
|
120
98
|
export type SetAccessRequestChannelIdsList = Array<string>;
|
|
121
|
-
export declare const SetAccessRequestChannelIdsList: S.Schema<SetAccessRequestChannelIdsList>;
|
|
122
99
|
/** List of users you wish to update access for. Can only be used if channel_ids is not provided. */
|
|
123
100
|
export type SetAccessRequestUserIdsList = Array<string>;
|
|
124
|
-
export declare const SetAccessRequestUserIdsList: S.Schema<SetAccessRequestUserIdsList>;
|
|
125
101
|
export interface SetAccessRequest {
|
|
126
102
|
/** Encoded ID of the canvas */
|
|
127
103
|
canvas_id: string;
|
|
@@ -132,13 +108,10 @@ export interface SetAccessRequest {
|
|
|
132
108
|
/** List of users you wish to update access for. Can only be used if channel_ids is not provided. */
|
|
133
109
|
user_ids?: SetAccessRequestUserIdsList;
|
|
134
110
|
}
|
|
135
|
-
export declare const SetAccessRequest: S.Schema<SetAccessRequest>;
|
|
136
111
|
/** The channel IDs that could not be updated */
|
|
137
112
|
export type SetAccessResponseFailedToUpdateChannelIdsList = Array<string>;
|
|
138
|
-
export declare const SetAccessResponseFailedToUpdateChannelIdsList: S.Schema<SetAccessResponseFailedToUpdateChannelIdsList>;
|
|
139
113
|
/** The user IDs that could not be updated */
|
|
140
114
|
export type SetAccessResponseFailedToUpdateUserIdsList = Array<string>;
|
|
141
|
-
export declare const SetAccessResponseFailedToUpdateUserIdsList: S.Schema<SetAccessResponseFailedToUpdateUserIdsList>;
|
|
142
115
|
export interface SetAccessResponse {
|
|
143
116
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
144
117
|
ok: boolean;
|
|
@@ -147,26 +120,25 @@ export interface SetAccessResponse {
|
|
|
147
120
|
/** The user IDs that could not be updated */
|
|
148
121
|
failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList;
|
|
149
122
|
}
|
|
150
|
-
export declare const SetAccessResponse: S.Schema<SetAccessResponse>;
|
|
151
123
|
export type CreateCanvaseError = SlackOpError;
|
|
152
|
-
/** Create canvas for a user Required scopes
|
|
124
|
+
/** 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 */
|
|
153
125
|
export declare const createCanvase: API.OperationMethod<CreateCanvaseRequest, CreateCanvaseResponse, CreateCanvaseError, SlackOpContext>;
|
|
154
126
|
export type DeleteAccessError = SlackOpError;
|
|
155
|
-
/** Remove access to a canvas for specified entities Required scopes
|
|
127
|
+
/** Remove access to a canvas for specified entities Required scopes -- bot: `canvases:write`; user: `canvases:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_not_found` -- The canvas you wish to revoke permissions for is not available. - `restricted_action` -- User does not have permission to perform this action. - `canvas_disabled_user_team` -- Canvas is disabled on user's team. - `invalid_parameters` -- One of user_ids and channel_ids must be defined. - `channel_not_found` -- A channel could not be found. - `user_not_found` -- A user could not be found. See https://docs.slack.dev/reference/methods/canvases.access.delete */
|
|
156
128
|
export declare const deleteAccess: API.OperationMethod<DeleteAccessRequest, DeleteAccessResponse, DeleteAccessError, SlackOpContext>;
|
|
157
129
|
export type DeleteCanvaseError = SlackOpError;
|
|
158
|
-
/** Deletes a canvas Required scopes
|
|
130
|
+
/** Deletes a canvas Required scopes -- bot: `canvases:write`; user: `canvases:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_deleting_disabled` -- This functionality is disabled. - `canvas_not_found` -- The canvas does not exist, or is not visible to the calling user. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/canvases.delete */
|
|
159
131
|
export declare const deleteCanvase: API.OperationMethod<DeleteCanvaseRequest, DeleteCanvaseResponse, DeleteCanvaseError, SlackOpContext>;
|
|
160
132
|
export type EditCanvaseError = SlackOpError;
|
|
161
|
-
/** Update an existing canvas Required scopes
|
|
133
|
+
/** Update an existing canvas Required scopes -- bot: `canvases:write`; user: `canvases:write`; seamless_user: `seamless.user` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_not_found` -- The canvas you wish to apply changes to is not available. - `canvas_disabled_user_team` -- Canvas is disabled on user's team - `free_teams_cannot_edit_standalone_canvases` -- Free teams cannot edit standalone canvases - `restricted_action` -- User does not have permission to perform this action. - `canvas_editing_failed` -- The changes to the canvas failed to be applied. - `canvas_editing_locked` -- Another edit to this canvas is currently in progress. Please retry after a short delay. - `canvas_too_large` -- The canvas is too large to apply the requested changes. Reduce the size of the canvas or the edit and try again. See https://docs.slack.dev/reference/methods/canvases.edit */
|
|
162
134
|
export declare const editCanvase: API.OperationMethod<EditCanvaseRequest, EditCanvaseResponse, EditCanvaseError, SlackOpContext>;
|
|
163
135
|
export type GetContentError = SlackOpError;
|
|
164
|
-
/** Get the content of a canvas as markdown (default) or HTML. Required scopes
|
|
136
|
+
/** Get the content of a canvas as markdown (default) or HTML. Required scopes -- bot: `canvases:read`; user: `canvases:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` -- Canvas is disabled on user's team - `canvas_not_found` -- The canvas does not exist, or is not visible to the calling user. See https://docs.slack.dev/reference/methods/canvases.getContent */
|
|
165
137
|
export declare const getContent: API.OperationMethod<GetContentRequest, GetContentResponse, GetContentError, SlackOpContext>;
|
|
166
138
|
export type LookupSectionError = SlackOpError;
|
|
167
|
-
/** Find sections matching the provided criteria Required scopes
|
|
139
|
+
/** Find sections matching the provided criteria Required scopes -- bot: `canvases:read`; user: `canvases:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_deleted` -- The canvas you wish to search is not available. - `canvas_disabled_user_team` -- Canvas is disabled on user's team. - `canvas_not_found` -- The canvas you wish to search for is not available. - `internal_error` -- Something went wrong on our end, please try again. See https://docs.slack.dev/reference/methods/canvases.sections.lookup */
|
|
168
140
|
export declare const lookupSection: API.OperationMethod<LookupSectionRequest, LookupSectionResponse, LookupSectionError, SlackOpContext>;
|
|
169
141
|
export type SetAccessError = SlackOpError;
|
|
170
|
-
/** Sets the access level to a canvas for specified entities Required scopes
|
|
142
|
+
/** Sets the access level to a canvas for specified entities Required scopes -- bot: `canvases:write`; user: `canvases:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` -- Canvas is disabled on user's team - `canvas_not_found` -- The canvas you wish to update permissions for is not available. - `channel_not_found` -- A channel could not be found. - `failed_to_update_user_ids` -- Failed to update the specified user_ids. - `invalid_parameters` -- One of user_ids or channel_ids must be defined, but not both. - `restricted_action` -- User does not have permission to perform this action. - `user_not_found` -- A user could not be found. See https://docs.slack.dev/reference/methods/canvases.access.set */
|
|
171
143
|
export declare const setAccess: API.OperationMethod<SetAccessRequest, SetAccessResponse, SetAccessError, SlackOpContext>;
|
|
172
144
|
//# sourceMappingURL=canvases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvases.d.ts","sourceRoot":"","sources":["../../src/services/canvases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;
|
|
1
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