@distilled.cloud/slack 1.0.0-rc.17 → 1.0.0-rc.19
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/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -139
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- 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 +2 -2
- 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 +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -33
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- 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 +27 -27
- 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 +3 -3
- 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 +19 -19
- 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 +23 -23
- 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 +10 -10
- 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 +18 -18
- 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 +103 -103
- 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 +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -38
- 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 +14 -14
- 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 +6 -6
- 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 +14 -14
- 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 +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +30 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- 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 +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- 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 +3 -3
- 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 +102 -102
- 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 +40 -40
- 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 +9 -9
- 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 +23 -23
- 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 +8 -8
- 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 +11 -11
- 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 +84 -80
- 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 +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- 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 +39 -37
- 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.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- 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 +37 -37
- 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 +9 -9
- 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 +16 -16
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +3 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +8 -7
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -4
- package/src/protocol.ts +23 -21
- package/src/services/admin.ts +1882 -1034
- package/src/services/agents.ts +128 -103
- package/src/services/api.ts +17 -2
- package/src/services/apps.ts +133 -74
- package/src/services/assistant.ts +109 -54
- package/src/services/auth.ts +46 -27
- package/src/services/blocks.ts +18 -3
- package/src/services/bookmarks.ts +40 -19
- package/src/services/bots.ts +38 -23
- package/src/services/calls.ts +35 -10
- package/src/services/canvases.ts +77 -46
- package/src/services/chat.ts +142 -103
- package/src/services/conversations.ts +195 -115
- package/src/services/dialog.ts +15 -0
- package/src/services/dnd.ts +37 -14
- package/src/services/emoji.ts +21 -6
- package/src/services/entity.ts +33 -14
- package/src/services/files.ts +149 -106
- package/src/services/functions.ts +66 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +86 -46
- package/src/services/migration.ts +18 -3
- package/src/services/oauth.ts +127 -102
- package/src/services/openid.ts +57 -40
- package/src/services/pins.ts +28 -9
- package/src/services/reactions.ts +44 -23
- package/src/services/reminders.ts +31 -8
- package/src/services/rtm.ts +28 -11
- package/src/services/search.ts +142 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +35 -16
- package/src/services/team.ts +73 -37
- package/src/services/tooling.ts +15 -0
- package/src/services/usergroups.ts +57 -30
- package/src/services/users.ts +76 -37
- package/src/services/views.ts +30 -9
- package/src/services/workflows.ts +45 -16
|
@@ -3,11 +3,11 @@ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
|
3
3
|
export type { SlackOpError, SlackOpContext };
|
|
4
4
|
export interface CreateCanvaseRequest {
|
|
5
5
|
/** Title of the newly created canvas */
|
|
6
|
-
title?: string;
|
|
6
|
+
title?: string | undefined;
|
|
7
7
|
/** Structure describing the type and value of the content to create. The markdown content is limited to 1 MiB (1,048,576 characters). */
|
|
8
|
-
document_content?: unknown;
|
|
8
|
+
document_content?: unknown | undefined;
|
|
9
9
|
/** Channel ID of the channel the canvas will be tabbed in. This is a required field for free teams. */
|
|
10
|
-
channel_id?: string;
|
|
10
|
+
channel_id?: string | undefined;
|
|
11
11
|
}
|
|
12
12
|
export interface CreateCanvaseResponse {
|
|
13
13
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -16,16 +16,16 @@ export interface CreateCanvaseResponse {
|
|
|
16
16
|
canvas_id: string;
|
|
17
17
|
}
|
|
18
18
|
/** List of channels you wish to update access for */
|
|
19
|
-
export type DeleteAccessRequestChannelIdsList = Array<
|
|
19
|
+
export type DeleteAccessRequestChannelIdsList = Array<unknown>;
|
|
20
20
|
/** List of users you wish to update access for */
|
|
21
21
|
export type DeleteAccessRequestUserIdsList = Array<string>;
|
|
22
22
|
export interface DeleteAccessRequest {
|
|
23
23
|
/** Encoded ID of the canvas */
|
|
24
24
|
canvas_id: string;
|
|
25
25
|
/** List of channels you wish to update access for */
|
|
26
|
-
channel_ids?: DeleteAccessRequestChannelIdsList;
|
|
26
|
+
channel_ids?: DeleteAccessRequestChannelIdsList | undefined;
|
|
27
27
|
/** List of users you wish to update access for */
|
|
28
|
-
user_ids?: DeleteAccessRequestUserIdsList;
|
|
28
|
+
user_ids?: DeleteAccessRequestUserIdsList | undefined;
|
|
29
29
|
}
|
|
30
30
|
/** The channel IDs that could not be updated */
|
|
31
31
|
export type DeleteAccessResponseFailedToUpdateChannelIdsList = Array<string>;
|
|
@@ -35,9 +35,9 @@ export interface DeleteAccessResponse {
|
|
|
35
35
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
36
36
|
ok: boolean;
|
|
37
37
|
/** The channel IDs that could not be updated */
|
|
38
|
-
failed_to_update_channel_ids?: DeleteAccessResponseFailedToUpdateChannelIdsList;
|
|
38
|
+
failed_to_update_channel_ids?: DeleteAccessResponseFailedToUpdateChannelIdsList | undefined;
|
|
39
39
|
/** The user IDs that could not be updated */
|
|
40
|
-
failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList;
|
|
40
|
+
failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList | undefined;
|
|
41
41
|
}
|
|
42
42
|
export interface DeleteCanvaseRequest {
|
|
43
43
|
/** Encoded ID of the canvas */
|
|
@@ -65,7 +65,7 @@ export interface GetContentRequest {
|
|
|
65
65
|
/** Encoded ID of the canvas */
|
|
66
66
|
canvas_id: string;
|
|
67
67
|
/** Format in which to return the canvas content. Defaults to markdown. */
|
|
68
|
-
content_type?: GetContentRequestContentType | (string & {});
|
|
68
|
+
content_type?: GetContentRequestContentType | (string & {}) | undefined;
|
|
69
69
|
}
|
|
70
70
|
export interface GetContentResponse {
|
|
71
71
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -84,7 +84,7 @@ export type LookupSectionResponseSectionsItemChildSectionIdsList = Array<string>
|
|
|
84
84
|
export interface LookupSectionResponseSectionsItem {
|
|
85
85
|
id: string;
|
|
86
86
|
/** IDs of child sections within a layout container (blockquote, callout, flexbox, or table). */
|
|
87
|
-
child_section_ids?: LookupSectionResponseSectionsItemChildSectionIdsList;
|
|
87
|
+
child_section_ids?: LookupSectionResponseSectionsItemChildSectionIdsList | undefined;
|
|
88
88
|
}
|
|
89
89
|
/** Sections in the canvas that match the provided criteria */
|
|
90
90
|
export type LookupSectionResponseSectionsList = Array<LookupSectionResponseSectionsItem>;
|
|
@@ -95,7 +95,7 @@ export interface LookupSectionResponse {
|
|
|
95
95
|
sections: LookupSectionResponseSectionsList;
|
|
96
96
|
}
|
|
97
97
|
/** List of channels you wish to update access for. Can only be used if user_ids is not provided. */
|
|
98
|
-
export type SetAccessRequestChannelIdsList = Array<
|
|
98
|
+
export type SetAccessRequestChannelIdsList = Array<unknown>;
|
|
99
99
|
/** List of users you wish to update access for. Can only be used if channel_ids is not provided. */
|
|
100
100
|
export type SetAccessRequestUserIdsList = Array<string>;
|
|
101
101
|
export interface SetAccessRequest {
|
|
@@ -104,9 +104,9 @@ export interface SetAccessRequest {
|
|
|
104
104
|
/** Desired level of access */
|
|
105
105
|
access_level: string;
|
|
106
106
|
/** List of channels you wish to update access for. Can only be used if user_ids is not provided. */
|
|
107
|
-
channel_ids?: SetAccessRequestChannelIdsList;
|
|
107
|
+
channel_ids?: SetAccessRequestChannelIdsList | undefined;
|
|
108
108
|
/** List of users you wish to update access for. Can only be used if channel_ids is not provided. */
|
|
109
|
-
user_ids?: SetAccessRequestUserIdsList;
|
|
109
|
+
user_ids?: SetAccessRequestUserIdsList | undefined;
|
|
110
110
|
}
|
|
111
111
|
/** The channel IDs that could not be updated */
|
|
112
112
|
export type SetAccessResponseFailedToUpdateChannelIdsList = Array<string>;
|
|
@@ -116,9 +116,9 @@ export interface SetAccessResponse {
|
|
|
116
116
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
117
117
|
ok: boolean;
|
|
118
118
|
/** The channel IDs that could not be updated */
|
|
119
|
-
failed_to_update_channel_ids?: SetAccessResponseFailedToUpdateChannelIdsList;
|
|
119
|
+
failed_to_update_channel_ids?: SetAccessResponseFailedToUpdateChannelIdsList | undefined;
|
|
120
120
|
/** The user IDs that could not be updated */
|
|
121
|
-
failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList;
|
|
121
|
+
failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList | undefined;
|
|
122
122
|
}
|
|
123
123
|
export type CreateCanvaseError = SlackOpError;
|
|
124
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 */
|
|
@@ -127,13 +127,13 @@ export type DeleteAccessError = SlackOpError;
|
|
|
127
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 */
|
|
128
128
|
export declare const deleteAccess: API.OperationMethod<DeleteAccessRequest, DeleteAccessResponse, DeleteAccessError, SlackOpContext>;
|
|
129
129
|
export type DeleteCanvaseError = SlackOpError;
|
|
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 */
|
|
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. - `use_skills_api` -- When the Skills API is enabled for the caller, skill canvases must be deleted with slackbot.skills.delete using a user OAuth token with skills:write. Pass the canvas ID as skill_id. The success response remains ok: true. The skill and its canvas have not been deleted. See https://docs.slack.dev/reference/methods/canvases.delete */
|
|
131
131
|
export declare const deleteCanvase: API.OperationMethod<DeleteCanvaseRequest, DeleteCanvaseResponse, DeleteCanvaseError, SlackOpContext>;
|
|
132
132
|
export type EditCanvaseError = SlackOpError;
|
|
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 */
|
|
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. - `use_skills_api` -- When the Skills API is enabled for the caller, skill canvases must be updated with slackbot.skills.update using a user OAuth token with skills:write. Pass the canvas ID as skill_id. The instructions input replaces the whole document; section edits are not supported. The response contains a skill object. No changes were made. See https://docs.slack.dev/reference/methods/canvases.edit */
|
|
134
134
|
export declare const editCanvase: API.OperationMethod<EditCanvaseRequest, EditCanvaseResponse, EditCanvaseError, SlackOpContext>;
|
|
135
135
|
export type GetContentError = SlackOpError;
|
|
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 */
|
|
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. - `internal_error` -- The server could not complete your operation(s) without encountering an error, likely due to a transient issue on our end. It's possible some aspect of the operation succeeded before the error was raised. See https://docs.slack.dev/reference/methods/canvases.getContent */
|
|
137
137
|
export declare const getContent: API.OperationMethod<GetContentRequest, GetContentResponse, GetContentError, SlackOpContext>;
|
|
138
138
|
export type LookupSectionError = SlackOpError;
|
|
139
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 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvases.d.ts","sourceRoot":"","sources":["../../src/services/canvases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAiB,KAAK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s,errors$SlackError as c,errors$SlackRateLimited as l,jd as u,k as d,kd as f,m as p,protocol$SlackProtocol as m,retry$Retry as h,traits$Http as g}from"../_bundle/sdk.js";const _={system:`slack-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`},{header:`x-slack-req-id`,name:`http.response.header.x-slack-req-id`,transform:`list`}],prefix:`Slack`,service:`Canvases`,propagate:`w3c`};const v=/*@__PURE__*/ p(e=>e===i?d(`CreateCanvase`,`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({title:$3($2),document_content:$3($4),channel_id:$3($2)}).pipe($1({method:"POST",uri:"/canvases.create",code:200}));$5({ok:$7,canvas_id:$2})`,[s,g,n,u,o,r,f,t,c,l,m,h,_]):a(v,e));const y=/*@__PURE__*/ p(e=>e===i?d(`DeleteAccess`,`{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({canvas_id:$2,channel_ids:$4(#3:0),user_ids:$4(#5:0)}).pipe($1({method:"POST",uri:"/canvases.access.delete",code:200}))`,[s,g,n,__d0,u,__d1,r,f,__d2,c,l,m,h,_]):a(y,e));const b=/*@__PURE__*/ p(e=>e===i?d(`DeleteCanvase`,`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9,telemetry:$10,span:"%"};$4(>2)@"%Request";$3({canvas_id:$2}).pipe($1({method:"POST",uri:"/canvases.delete",code:200}))`,[s,g,n,r,f,__d3,c,l,m,h,_]):a(b,e));const x=/*@__PURE__*/ p(e=>e===i?d(`EditCanvase`,`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({canvas_id:$2,changes:#3:0}).pipe($1({method:"POST",uri:"/canvases.edit",code:200}))`,[s,g,n,__d0,r,f,__d3,c,l,m,h,_]):a(x,e));const S=/*@__PURE__*/ p(e=>e===i?d(`GetContent`,`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({canvas_id:$2,content_type:$3($2)}).pipe($1({method:"POST",uri:"/canvases.getContent",code:200}));$4({ok:$6,content:$2})`,[s,g,n,u,r,f,t,c,l,m,h,_]):a(S,e));const C=/*@__PURE__*/ p(p=>p===i?d(`LookupSection`,`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseSectionsItem";$8(#2);$5(>7)@"%Response";$4({canvas_id:$2,criteria:$3}).pipe($1({method:"POST",uri:"/canvases.sections.lookup",code:200}));$4({id:$2,child_section_ids:$7(#6:0)});$4({ok:$9,sections:#3})`,[s,g,n,o,r,f,__d1,u,e,t,c,l,m,h,_]):a(C,p));const w=/*@__PURE__*/ p(e=>e===i?d(`SetAccess`,`{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({canvas_id:$2,access_level:$2,channel_ids:$4(#3:0),user_ids:$4(#5:0)}).pipe($1({method:"POST",uri:"/canvases.access.set",code:200}))`,[s,g,n,__d0,u,__d1,r,f,__d2,c,l,m,h,_]):a(w,e));function __d0(){return[`$2($1)`,[s,o,e]]}function __d1(){return[`$2($1)`,[s,n,e]]}function __d2(){return[`$5(>1)@"DeleteAccessResponse";$4({ok:$1,failed_to_update_channel_ids:$3(#2:0),failed_to_update_user_ids:$3(#2:0)})`,[s,t,__d1,u,r,f]]}function __d3(){return[`$3(>1)@"DeleteCanvaseResponse";$2({ok:$1})`,[s,t,r,f]]}export{v as createCanvase,y as deleteAccess,b as deleteCanvase,x as editCanvase,S as getContent,C as lookupSection,w as setAccess};
|
|
2
2
|
//# sourceMappingURL=canvases.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvases.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Unknown","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","S.Array","
|
|
1
|
+
{"version":3,"file":"canvases.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Unknown","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","S.Array","Array","Boolean","String","Struct","D","call","Unknown","at","SlackError","SlackRateLimited","optional","named","suspend","op","SlackProtocol","Retry","Http","TELEMETRY","createCanvase","i","deleteAccess","deleteCanvase","editCanvase","getContent","lookupSection","setAccess"],"sources":["../../src/services/canvases.ts"],"mappings":"6OAYA,MAAM8B,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,EACnF,CAAE,OAAQ,iBAAkB,KAAM,sCAAuC,UAAW,MAAO,CAC7F,EACA,OAAQ,QACR,QAAS,WACT,UAAW,KACb,EA2HA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMhC,EAAQC,EAAU,gBAAiB,yQAA0Q,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAWC,EAAUC,EAAWC,EAAWY,EAAYC,EAAkBK,EAAejB,EAAaoB,CAAS,CAAC,EAAInB,EAASoB,EAAeC,CAAC,CAAC,EAIjhB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMhC,EAAQC,EAAU,eAAgB,oOAAqO,CAACC,EAAQC,EAAQC,EAAU,KAAMC,EAAY,KAAME,EAAUC,EAAW,KAAMa,EAAYC,EAAkBK,EAAejB,EAAaoB,CAAS,CAAC,EAAInB,EAASsB,EAAcD,CAAC,CAAC,EAIte,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMhC,EAAQC,EAAU,gBAAiB,mLAAoL,CAACC,EAAQC,EAAQC,EAAUG,EAAUC,EAAW,KAAMa,EAAYC,EAAkBK,EAAejB,EAAaoB,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