@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/lists.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
|
/** Initial item data. */
|
|
6
5
|
export type CreateItemRequestInitialFieldsList = Array<unknown>;
|
|
7
|
-
export declare const CreateItemRequestInitialFieldsList: S.Schema<CreateItemRequestInitialFieldsList>;
|
|
8
6
|
export interface CreateItemRequest {
|
|
9
7
|
/** ID of the List to add the item to. */
|
|
10
8
|
list_id: string;
|
|
@@ -15,19 +13,15 @@ export interface CreateItemRequest {
|
|
|
15
13
|
/** Initial item data. */
|
|
16
14
|
initial_fields?: CreateItemRequestInitialFieldsList;
|
|
17
15
|
}
|
|
18
|
-
export declare const CreateItemRequest: S.Schema<CreateItemRequest>;
|
|
19
16
|
export interface CreateItemResponse {
|
|
20
17
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
21
18
|
ok: boolean;
|
|
22
19
|
item: unknown;
|
|
23
20
|
}
|
|
24
|
-
export declare const CreateItemResponse: S.Schema<CreateItemResponse>;
|
|
25
21
|
/** A rich text description of the List. */
|
|
26
22
|
export type CreateSlackListRequestDescriptionBlocksList = Array<unknown>;
|
|
27
|
-
export declare const CreateSlackListRequestDescriptionBlocksList: S.Schema<CreateSlackListRequestDescriptionBlocksList>;
|
|
28
23
|
/** Column definition for the List. */
|
|
29
24
|
export type CreateSlackListRequestSchemaList = Array<unknown>;
|
|
30
|
-
export declare const CreateSlackListRequestSchemaList: S.Schema<CreateSlackListRequestSchemaList>;
|
|
31
25
|
export interface CreateSlackListRequest {
|
|
32
26
|
/** Name of the List. */
|
|
33
27
|
name: string;
|
|
@@ -42,7 +36,6 @@ export interface CreateSlackListRequest {
|
|
|
42
36
|
/** Boolean indicating whether the List should be used to track todo tasks. */
|
|
43
37
|
todo_mode?: boolean;
|
|
44
38
|
}
|
|
45
|
-
export declare const CreateSlackListRequest: S.Schema<CreateSlackListRequest>;
|
|
46
39
|
export interface CreateSlackListResponse {
|
|
47
40
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
48
41
|
ok: boolean;
|
|
@@ -51,13 +44,10 @@ export interface CreateSlackListResponse {
|
|
|
51
44
|
/** The metadata of the List created. */
|
|
52
45
|
list_metadata?: unknown;
|
|
53
46
|
}
|
|
54
|
-
export declare const CreateSlackListResponse: S.Schema<CreateSlackListResponse>;
|
|
55
47
|
/** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
|
|
56
48
|
export type DeleteAccessRequestChannelIdsList = Array<string>;
|
|
57
|
-
export declare const DeleteAccessRequestChannelIdsList: S.Schema<DeleteAccessRequestChannelIdsList>;
|
|
58
49
|
/** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
|
|
59
50
|
export type DeleteAccessRequestUserIdsList = Array<string>;
|
|
60
|
-
export declare const DeleteAccessRequestUserIdsList: S.Schema<DeleteAccessRequestUserIdsList>;
|
|
61
51
|
export interface DeleteAccessRequest {
|
|
62
52
|
/** Encoded ID of the List. */
|
|
63
53
|
list_id: string;
|
|
@@ -66,13 +56,10 @@ export interface DeleteAccessRequest {
|
|
|
66
56
|
/** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
|
|
67
57
|
user_ids?: DeleteAccessRequestUserIdsList;
|
|
68
58
|
}
|
|
69
|
-
export declare const DeleteAccessRequest: S.Schema<DeleteAccessRequest>;
|
|
70
59
|
/** The channel IDs that could not be updated. */
|
|
71
60
|
export type DeleteAccessResponseFailedToUpdateChannelIdsList = Array<string>;
|
|
72
|
-
export declare const DeleteAccessResponseFailedToUpdateChannelIdsList: S.Schema<DeleteAccessResponseFailedToUpdateChannelIdsList>;
|
|
73
61
|
/** The user IDs that could not be updated. */
|
|
74
62
|
export type DeleteAccessResponseFailedToUpdateUserIdsList = Array<string>;
|
|
75
|
-
export declare const DeleteAccessResponseFailedToUpdateUserIdsList: S.Schema<DeleteAccessResponseFailedToUpdateUserIdsList>;
|
|
76
63
|
export interface DeleteAccessResponse {
|
|
77
64
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
78
65
|
ok: boolean;
|
|
@@ -81,32 +68,26 @@ export interface DeleteAccessResponse {
|
|
|
81
68
|
/** The user IDs that could not be updated. */
|
|
82
69
|
failed_to_update_user_ids?: DeleteAccessResponseFailedToUpdateUserIdsList;
|
|
83
70
|
}
|
|
84
|
-
export declare const DeleteAccessResponse: S.Schema<DeleteAccessResponse>;
|
|
85
71
|
export interface DeleteItemRequest {
|
|
86
72
|
/** ID of the List containing the item. */
|
|
87
73
|
list_id: string;
|
|
88
74
|
/** ID of item to delete. */
|
|
89
75
|
id: string;
|
|
90
76
|
}
|
|
91
|
-
export declare const DeleteItemRequest: S.Schema<DeleteItemRequest>;
|
|
92
77
|
export interface DeleteItemResponse {
|
|
93
78
|
ok: boolean;
|
|
94
79
|
}
|
|
95
|
-
export declare const DeleteItemResponse: S.Schema<DeleteItemResponse>;
|
|
96
80
|
/** IDs of items to delete. */
|
|
97
81
|
export type DeleteMultipleRequestIdsList = Array<string>;
|
|
98
|
-
export declare const DeleteMultipleRequestIdsList: S.Schema<DeleteMultipleRequestIdsList>;
|
|
99
82
|
export interface DeleteMultipleRequest {
|
|
100
83
|
/** ID of the List containing the items. */
|
|
101
84
|
list_id: string;
|
|
102
85
|
/** IDs of items to delete. */
|
|
103
86
|
ids: DeleteMultipleRequestIdsList;
|
|
104
87
|
}
|
|
105
|
-
export declare const DeleteMultipleRequest: S.Schema<DeleteMultipleRequest>;
|
|
106
88
|
export interface DeleteMultipleResponse {
|
|
107
89
|
ok: boolean;
|
|
108
90
|
}
|
|
109
|
-
export declare const DeleteMultipleResponse: S.Schema<DeleteMultipleResponse>;
|
|
110
91
|
export interface DownloadGetRequest {
|
|
111
92
|
/** ID of the List to export. */
|
|
112
93
|
list_id: string;
|
|
@@ -119,7 +100,6 @@ export interface DownloadGetRequest {
|
|
|
119
100
|
/** Must match the `include_attachments` passed to `slackLists.download.start`. The returned `download_url` carries this through so the served export matches what was generated. Only applies when `format` is `json`. */
|
|
120
101
|
include_attachments?: boolean;
|
|
121
102
|
}
|
|
122
|
-
export declare const DownloadGetRequest: S.Schema<DownloadGetRequest>;
|
|
123
103
|
export interface DownloadGetResponse {
|
|
124
104
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
125
105
|
ok: boolean;
|
|
@@ -128,7 +108,6 @@ export interface DownloadGetResponse {
|
|
|
128
108
|
/** The URL at which to download the CSV. */
|
|
129
109
|
download_url?: string;
|
|
130
110
|
}
|
|
131
|
-
export declare const DownloadGetResponse: S.Schema<DownloadGetResponse>;
|
|
132
111
|
export interface DownloadStartRequest {
|
|
133
112
|
/** ID of the List to export. */
|
|
134
113
|
list_id: string;
|
|
@@ -140,14 +119,12 @@ export interface DownloadStartRequest {
|
|
|
140
119
|
/** Include file attachment metadata and access paths in the export. Only applies when `format` is `json`. */
|
|
141
120
|
include_attachments?: boolean;
|
|
142
121
|
}
|
|
143
|
-
export declare const DownloadStartRequest: S.Schema<DownloadStartRequest>;
|
|
144
122
|
export interface DownloadStartResponse {
|
|
145
123
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
146
124
|
ok: boolean;
|
|
147
125
|
/** The ID of the recently started job to export the List. */
|
|
148
126
|
job_id: number;
|
|
149
127
|
}
|
|
150
|
-
export declare const DownloadStartResponse: S.Schema<DownloadStartResponse>;
|
|
151
128
|
export interface ItemsInfoRequest {
|
|
152
129
|
/** ID of the List. */
|
|
153
130
|
list_id: string;
|
|
@@ -156,9 +133,7 @@ export interface ItemsInfoRequest {
|
|
|
156
133
|
/** Set to `true` to include `is_subscribed` data for the returned List row. */
|
|
157
134
|
include_is_subscribed?: boolean;
|
|
158
135
|
}
|
|
159
|
-
export declare const ItemsInfoRequest: S.Schema<ItemsInfoRequest>;
|
|
160
136
|
export type ItemsInfoResponseSubtasksList = Array<unknown>;
|
|
161
|
-
export declare const ItemsInfoResponseSubtasksList: S.Schema<ItemsInfoResponseSubtasksList>;
|
|
162
137
|
export interface ItemsInfoResponse {
|
|
163
138
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
164
139
|
ok: boolean;
|
|
@@ -167,7 +142,6 @@ export interface ItemsInfoResponse {
|
|
|
167
142
|
parent_task?: unknown;
|
|
168
143
|
subtasks?: ItemsInfoResponseSubtasksList;
|
|
169
144
|
}
|
|
170
|
-
export declare const ItemsInfoResponse: S.Schema<ItemsInfoResponse>;
|
|
171
145
|
export interface ListItemsRequest {
|
|
172
146
|
/** ID of the List. */
|
|
173
147
|
list_id: string;
|
|
@@ -180,15 +154,12 @@ export interface ListItemsRequest {
|
|
|
180
154
|
/** Set to `true` to also return the parent `list` object, including its title, column schema, and total row count. Defaults to `false` to keep the response small. */
|
|
181
155
|
include_list?: boolean;
|
|
182
156
|
}
|
|
183
|
-
export declare const ListItemsRequest: S.Schema<ListItemsRequest>;
|
|
184
157
|
export type ListItemsResponseItemsList = Array<unknown>;
|
|
185
|
-
export declare const ListItemsResponseItemsList: S.Schema<ListItemsResponseItemsList>;
|
|
186
158
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
187
159
|
export interface ListItemsResponseResponseMetadata {
|
|
188
|
-
/** Cursor for the next page
|
|
160
|
+
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
189
161
|
next_cursor?: string;
|
|
190
162
|
}
|
|
191
|
-
export declare const ListItemsResponseResponseMetadata: S.Schema<ListItemsResponseResponseMetadata>;
|
|
192
163
|
export interface ListItemsResponse {
|
|
193
164
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
194
165
|
ok: boolean;
|
|
@@ -198,13 +169,10 @@ export interface ListItemsResponse {
|
|
|
198
169
|
/** The parent list. Only returned when `include_list` is `true`. `list_limits` carries `row_count` and no other key: the number of items matching this request's `archived` value, counting Slack-suggested items that `items` itself does not return, so it can exceed the number of items you can page through. Sharing and access fields (`channels`, `groups`, `ims`, `access`) are omitted; call `files.info` if you need those or the full set of list limits. */
|
|
199
170
|
list?: unknown;
|
|
200
171
|
}
|
|
201
|
-
export declare const ListItemsResponse: S.Schema<ListItemsResponse>;
|
|
202
172
|
/** List of channels you wish to update access for. Can only be used if `user_ids` is not provided. */
|
|
203
173
|
export type SetAccessRequestChannelIdsList = Array<string>;
|
|
204
|
-
export declare const SetAccessRequestChannelIdsList: S.Schema<SetAccessRequestChannelIdsList>;
|
|
205
174
|
/** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
|
|
206
175
|
export type SetAccessRequestUserIdsList = Array<string>;
|
|
207
|
-
export declare const SetAccessRequestUserIdsList: S.Schema<SetAccessRequestUserIdsList>;
|
|
208
176
|
export interface SetAccessRequest {
|
|
209
177
|
/** Encoded ID of the List. */
|
|
210
178
|
list_id: string;
|
|
@@ -215,13 +183,10 @@ export interface SetAccessRequest {
|
|
|
215
183
|
/** List of users you wish to update access for. Can only be used if `channel_ids` is not provided. */
|
|
216
184
|
user_ids?: SetAccessRequestUserIdsList;
|
|
217
185
|
}
|
|
218
|
-
export declare const SetAccessRequest: S.Schema<SetAccessRequest>;
|
|
219
186
|
/** The channel IDs that could not be updated. */
|
|
220
187
|
export type SetAccessResponseFailedToUpdateChannelIdsList = Array<string>;
|
|
221
|
-
export declare const SetAccessResponseFailedToUpdateChannelIdsList: S.Schema<SetAccessResponseFailedToUpdateChannelIdsList>;
|
|
222
188
|
/** The user IDs that could not be updated. */
|
|
223
189
|
export type SetAccessResponseFailedToUpdateUserIdsList = Array<string>;
|
|
224
|
-
export declare const SetAccessResponseFailedToUpdateUserIdsList: S.Schema<SetAccessResponseFailedToUpdateUserIdsList>;
|
|
225
190
|
export interface SetAccessResponse {
|
|
226
191
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
227
192
|
ok: boolean;
|
|
@@ -230,25 +195,20 @@ export interface SetAccessResponse {
|
|
|
230
195
|
/** The user IDs that could not be updated. */
|
|
231
196
|
failed_to_update_user_ids?: SetAccessResponseFailedToUpdateUserIdsList;
|
|
232
197
|
}
|
|
233
|
-
export declare const SetAccessResponse: S.Schema<SetAccessResponse>;
|
|
234
198
|
/** Cells to update. */
|
|
235
199
|
export type UpdateItemRequestCellsList = Array<unknown>;
|
|
236
|
-
export declare const UpdateItemRequestCellsList: S.Schema<UpdateItemRequestCellsList>;
|
|
237
200
|
export interface UpdateItemRequest {
|
|
238
201
|
/** ID of the List to add or update cells. */
|
|
239
202
|
list_id: string;
|
|
240
203
|
/** Cells to update. */
|
|
241
204
|
cells: UpdateItemRequestCellsList;
|
|
242
205
|
}
|
|
243
|
-
export declare const UpdateItemRequest: S.Schema<UpdateItemRequest>;
|
|
244
206
|
export interface UpdateItemResponse {
|
|
245
207
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
246
208
|
ok: boolean;
|
|
247
209
|
}
|
|
248
|
-
export declare const UpdateItemResponse: S.Schema<UpdateItemResponse>;
|
|
249
210
|
/** A rich text description of the List. */
|
|
250
211
|
export type UpdateSlackListRequestDescriptionBlocksList = Array<unknown>;
|
|
251
|
-
export declare const UpdateSlackListRequestDescriptionBlocksList: S.Schema<UpdateSlackListRequestDescriptionBlocksList>;
|
|
252
212
|
export interface UpdateSlackListRequest {
|
|
253
213
|
/** The ID of the List to update. */
|
|
254
214
|
id: string;
|
|
@@ -259,46 +219,44 @@ export interface UpdateSlackListRequest {
|
|
|
259
219
|
/** Boolean indicating whether the List should be in todo mode. */
|
|
260
220
|
todo_mode?: boolean;
|
|
261
221
|
}
|
|
262
|
-
export declare const UpdateSlackListRequest: S.Schema<UpdateSlackListRequest>;
|
|
263
222
|
export interface UpdateSlackListResponse {
|
|
264
223
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
265
224
|
ok: boolean;
|
|
266
225
|
}
|
|
267
|
-
export declare const UpdateSlackListResponse: S.Schema<UpdateSlackListResponse>;
|
|
268
226
|
export type CreateItemError = SlackOpError;
|
|
269
|
-
/** Add a new item to an existing List. Required scopes
|
|
227
|
+
/** Add a new item to an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `over_row_maximum` -- Cannot create more items over the maximum. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `duplicated_item_not_found` -- The item to duplicate cannot be found. - `invalid_option_id` -- Option ID provided does not match column definition. - `invalid_args` -- The provided arguments are invalid. - `uneditable_column` -- Initial values provided for an uneditable column. - `invalid_input_type` -- The field value type does not match the column type. - `invalid_column_id` -- The column ID provided does not exist in the List. - `over_cell_fields_limit` -- Too many values provided for a single field. - `file_not_found` -- The attachment file could not be found. - `invalid_vote_value` -- Invalid value provided for a vote column. See https://docs.slack.dev/reference/methods/slackLists.items.create */
|
|
270
228
|
export declare const createItem: API.OperationMethod<CreateItemRequest, CreateItemResponse, CreateItemError, SlackOpContext>;
|
|
271
229
|
export type CreateSlackListError = SlackOpError;
|
|
272
|
-
/** Create a List. Required scopes
|
|
230
|
+
/** Create a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `permission_denied` -- The user does not have permission to perform this action. - `invalid_schema` -- The schema was invalid. - `invalid_primary_column` -- Missing or more than one primary column. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `over_list_file_maximum` -- Cannot create any more List files. - `over_title_length_maximum` -- Title can not exceed defined length. - `invalid_column_type` -- Column type not allowed. - `missing_arg_copy_from_list_id` -- Missing argument `copy_from_list_id`. - `invalid_copy_and_schema_args` -- Cannot provide both `copy_from_list_id` and `schema`. - `over_column_maximum` -- Cannot create List with more than allowed column count. See https://docs.slack.dev/reference/methods/slackLists.create */
|
|
273
231
|
export declare const createSlackList: API.OperationMethod<CreateSlackListRequest, CreateSlackListResponse, CreateSlackListError, SlackOpContext>;
|
|
274
232
|
export type DeleteAccessError = SlackOpError;
|
|
275
|
-
/** Revoke access to a List for specified entities. Required scopes
|
|
233
|
+
/** Revoke access to a List for specified entities. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `lists_disabled_user_team` -- Lists is disabled on user's team. - `list_not_found` -- The List 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/slackLists.access.delete */
|
|
276
234
|
export declare const deleteAccess: API.OperationMethod<DeleteAccessRequest, DeleteAccessResponse, DeleteAccessError, SlackOpContext>;
|
|
277
235
|
export type DeleteItemError = SlackOpError;
|
|
278
|
-
/** Deletes an item from an existing List. Required scopes
|
|
236
|
+
/** Deletes an item from an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `record_not_found` -- The record was not found in the List. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.delete */
|
|
279
237
|
export declare const deleteItem: API.OperationMethod<DeleteItemRequest, DeleteItemResponse, DeleteItemError, SlackOpContext>;
|
|
280
238
|
export type DeleteMultipleError = SlackOpError;
|
|
281
|
-
/** Deletes multiple items from an existing List. Required scopes
|
|
239
|
+
/** Deletes multiple items from an existing List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.deleteMultiple */
|
|
282
240
|
export declare const deleteMultiple: API.OperationMethod<DeleteMultipleRequest, DeleteMultipleResponse, DeleteMultipleError, SlackOpContext>;
|
|
283
241
|
export type DownloadGetError = SlackOpError;
|
|
284
|
-
/** Retrieve List download URL from an export job to download List contents. Required scopes
|
|
242
|
+
/** Retrieve List download URL from an export job to download List contents. Required scopes -- bot: `lists:read`; user: `lists:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `permission_denied` -- The bot does not have permission to perform this action. - `unknown_method` -- Feature not enabled for this team. - `job_not_found` -- Could not find an export job matching that ID. See https://docs.slack.dev/reference/methods/slackLists.download.get */
|
|
285
243
|
export declare const downloadGet: API.OperationMethod<DownloadGetRequest, DownloadGetResponse, DownloadGetError, SlackOpContext>;
|
|
286
244
|
export type DownloadStartError = SlackOpError;
|
|
287
|
-
/** Initiate a job to export List contents. Required scopes
|
|
245
|
+
/** Initiate a job to export List contents. Required scopes -- bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `permission_denied` -- The bot does not have permission to perform this action. - `unknown_method` -- Feature not enabled for this team. See https://docs.slack.dev/reference/methods/slackLists.download.start */
|
|
288
246
|
export declare const downloadStart: API.OperationMethod<DownloadStartRequest, DownloadStartResponse, DownloadStartError, SlackOpContext>;
|
|
289
247
|
export type ItemsInfoError = SlackOpError;
|
|
290
|
-
/** Get a row from a List. Required scopes
|
|
248
|
+
/** Get a row from a List. Required scopes -- bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `record_not_found` -- The record was not found in the List. - `record_deleted` -- The record has been deleted. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.info */
|
|
291
249
|
export declare const itemsInfo: API.OperationMethod<ItemsInfoRequest, ItemsInfoResponse, ItemsInfoError, SlackOpContext>;
|
|
292
250
|
export type ListItemsError = SlackOpError;
|
|
293
|
-
/** Get records from a List. Required scopes
|
|
251
|
+
/** Get records from a List. Required scopes -- bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `archive_not_supported` -- Archiving is not supported. See https://docs.slack.dev/reference/methods/slackLists.items.list */
|
|
294
252
|
export declare const listItems: API.PaginatedOperationMethod<ListItemsRequest, ListItemsResponse, ListItemsError, SlackOpContext, unknown>;
|
|
295
253
|
export type SetAccessError = SlackOpError;
|
|
296
|
-
/** Set the access level to a List for specified entities. Required scopes
|
|
254
|
+
/** Set the access level to a List for specified entities. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `lists_disabled_user_team` -- Lists is disabled on user's team. - `list_not_found` -- The List 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/slackLists.access.set */
|
|
297
255
|
export declare const setAccess: API.OperationMethod<SetAccessRequest, SetAccessResponse, SetAccessError, SlackOpContext>;
|
|
298
256
|
export type UpdateItemError = SlackOpError;
|
|
299
|
-
/** Updates cells in a List. Required scopes
|
|
257
|
+
/** Updates cells in a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `row_not_found` -- The row was not found. - `column_not_found` -- The column was not found. - `file_not_found` -- Invalid file ID for this List. - `invalid_input_type` -- Supplied value key or value type is invalid for the given column type. - `invalid_row_id` -- Invalid row ID for this List. - `invalid_column_id` -- Invalid column ID for this List. - `permission_denied` -- The user does not have permission to perform this action. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `channel_not_found` -- The channel cannot be found. - `uneditable_column` -- The column cannot be updated. - `invalid_blocks` -- Rich text payload supplied is invalid. - `invalid_text_block` -- Rich text payload supplied is invalid. - `invalid_email` -- Email supplied is invalid. - `invalid_link` -- Message archive link supplied is invalid. - `invalid_date` -- Date supplied is invalid. - `invalid_option_id` -- Option supplied is invalid. - `row_id_not_provided` -- The `row_id` or `row_id_to_create` field must be provided. - `column_id_not_provided` -- The `column_id` or `column_id_to_create` field must be provided. - `over_cell_fields_limit` -- The supplied cell fields are over the cell field maximum. - `invalid_message` -- Invalid message provided. - `invalid_attachment` -- Invalid attachment provided. - `invalid_phone_number` -- Invalid phone number provided. - `invalid_vote_value` -- Invalid vote value is supplied. See https://docs.slack.dev/reference/methods/slackLists.items.update */
|
|
300
258
|
export declare const updateItem: API.OperationMethod<UpdateItemRequest, UpdateItemResponse, UpdateItemError, SlackOpContext>;
|
|
301
259
|
export type UpdateSlackListError = SlackOpError;
|
|
302
|
-
/** Update a List. Required scopes
|
|
260
|
+
/** Update a List. Required scopes -- bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` -- The List was not found. - `team_not_found` -- The team cannot be found. - `user_not_found` -- The user cannot be found. - `list_edits_update_error` -- Failed to update List metadata. - `list_editor_upsert_error` -- Failed to upsert List editor. - `over_title_length_maximum` -- Title can not exceed defined length. - `file_channel_rename_error` -- Failed to rename file channel based on file title. - `unexpected_description_blocks_arg` -- Unexpected description blocks argument. - `missing_arguments` -- No arguments were provided to update the List. See https://docs.slack.dev/reference/methods/slackLists.update */
|
|
303
261
|
export declare const updateSlackList: API.OperationMethod<UpdateSlackListRequest, UpdateSlackListResponse, UpdateSlackListError, SlackOpContext>;
|
|
304
262
|
//# sourceMappingURL=lists.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/services/lists.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../src/services/lists.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,yBAAyB;AACzB,MAAM,MAAM,kCAAkC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAChE,MAAM,WAAW,iBAAiB;IAChC,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yBAAyB;IACzB,cAAc,CAAC,EAAE,kCAAkC,CAAC;CACrD;AACD,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;CACf;AACD,2CAA2C;AAC3C,MAAM,MAAM,2CAA2C,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AACzE,sCAAsC;AACtC,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAC9D,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,kBAAkB,CAAC,EAAE,2CAA2C,CAAC;IACjE,sCAAsC;IACtC,MAAM,CAAC,EAAE,gCAAgC,CAAC;IAC1C,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2EAA2E;IAC3E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AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,ugBAAugB;AACvgB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,wBAAwB,CAClD,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,OAAO,CAiBD,CAAC;AAET,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,8vBAA8vB;AAC9vB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,wtDAAwtD;AACxtD,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAChD,6xBAA6xB;AAC7xB,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,CAOb,CAAC"}
|
package/lib/services/lists.js
CHANGED
|
@@ -1,255 +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 { slackPaginate } from "../pagination.js";
|
|
6
|
-
import { SlackProtocol } from "../protocol.js";
|
|
7
|
-
import * as Retry from "../retry.js";
|
|
8
|
-
import * as T from "../traits.js";
|
|
9
|
-
export const CreateItemRequestInitialFieldsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
10
|
-
export const CreateItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
11
|
-
list_id: S.String,
|
|
12
|
-
duplicated_item_id: S.optional(S.String),
|
|
13
|
-
parent_item_id: S.optional(S.String),
|
|
14
|
-
initial_fields: S.optional(CreateItemRequestInitialFieldsList),
|
|
15
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.items.create", code: 200 }))).annotate({ identifier: "CreateItemRequest" });
|
|
16
|
-
export const CreateItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
17
|
-
ok: S.Boolean,
|
|
18
|
-
item: S.Unknown,
|
|
19
|
-
})).annotate({ identifier: "CreateItemResponse" });
|
|
20
|
-
export const CreateSlackListRequestDescriptionBlocksList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
21
|
-
export const CreateSlackListRequestSchemaList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
22
|
-
export const CreateSlackListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
23
|
-
name: S.String,
|
|
24
|
-
description_blocks: S.optional(CreateSlackListRequestDescriptionBlocksList),
|
|
25
|
-
schema: S.optional(CreateSlackListRequestSchemaList),
|
|
26
|
-
copy_from_list_id: S.optional(S.String),
|
|
27
|
-
include_copied_list_records: S.optional(S.Boolean),
|
|
28
|
-
todo_mode: S.optional(S.Boolean),
|
|
29
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.create", code: 200 }))).annotate({ identifier: "CreateSlackListRequest" });
|
|
30
|
-
export const CreateSlackListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
31
|
-
ok: S.Boolean,
|
|
32
|
-
list_id: S.String,
|
|
33
|
-
list_metadata: S.optional(S.Unknown),
|
|
34
|
-
})).annotate({ identifier: "CreateSlackListResponse" });
|
|
35
|
-
export const DeleteAccessRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
36
|
-
export const DeleteAccessRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
37
|
-
export const DeleteAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
-
list_id: S.String,
|
|
39
|
-
channel_ids: S.optional(DeleteAccessRequestChannelIdsList),
|
|
40
|
-
user_ids: S.optional(DeleteAccessRequestUserIdsList),
|
|
41
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.access.delete", code: 200 }))).annotate({ identifier: "DeleteAccessRequest" });
|
|
42
|
-
export const DeleteAccessResponseFailedToUpdateChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
43
|
-
export const DeleteAccessResponseFailedToUpdateUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
44
|
-
export const DeleteAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
-
ok: S.Boolean,
|
|
46
|
-
failed_to_update_channel_ids: S.optional(DeleteAccessResponseFailedToUpdateChannelIdsList),
|
|
47
|
-
failed_to_update_user_ids: S.optional(DeleteAccessResponseFailedToUpdateUserIdsList),
|
|
48
|
-
})).annotate({ identifier: "DeleteAccessResponse" });
|
|
49
|
-
export const DeleteItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
-
list_id: S.String,
|
|
51
|
-
id: S.String,
|
|
52
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.items.delete", code: 200 }))).annotate({ identifier: "DeleteItemRequest" });
|
|
53
|
-
export const DeleteItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
54
|
-
ok: S.Boolean,
|
|
55
|
-
})).annotate({ identifier: "DeleteItemResponse" });
|
|
56
|
-
export const DeleteMultipleRequestIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
57
|
-
export const DeleteMultipleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
-
list_id: S.String,
|
|
59
|
-
ids: DeleteMultipleRequestIdsList,
|
|
60
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.items.deleteMultiple", code: 200 }))).annotate({ identifier: "DeleteMultipleRequest" });
|
|
61
|
-
export const DeleteMultipleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
-
ok: S.Boolean,
|
|
63
|
-
})).annotate({ identifier: "DeleteMultipleResponse" });
|
|
64
|
-
export const DownloadGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
-
list_id: S.String,
|
|
66
|
-
job_id: S.String,
|
|
67
|
-
format: S.optional(S.String),
|
|
68
|
-
include_threads: S.optional(S.Boolean),
|
|
69
|
-
include_attachments: S.optional(S.Boolean),
|
|
70
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.download.get", code: 200 }))).annotate({ identifier: "DownloadGetRequest" });
|
|
71
|
-
export const DownloadGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
72
|
-
ok: S.Boolean,
|
|
73
|
-
status: S.Unknown,
|
|
74
|
-
download_url: S.optional(S.String),
|
|
75
|
-
})).annotate({ identifier: "DownloadGetResponse" });
|
|
76
|
-
export const DownloadStartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
77
|
-
list_id: S.String,
|
|
78
|
-
include_archived: S.optional(S.Boolean),
|
|
79
|
-
format: S.optional(S.String),
|
|
80
|
-
include_threads: S.optional(S.Boolean),
|
|
81
|
-
include_attachments: S.optional(S.Boolean),
|
|
82
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.download.start", code: 200 }))).annotate({ identifier: "DownloadStartRequest" });
|
|
83
|
-
export const DownloadStartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
|
-
ok: S.Boolean,
|
|
85
|
-
job_id: S.Number,
|
|
86
|
-
})).annotate({ identifier: "DownloadStartResponse" });
|
|
87
|
-
export const ItemsInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
88
|
-
list_id: S.String,
|
|
89
|
-
id: S.String,
|
|
90
|
-
include_is_subscribed: S.optional(S.Boolean),
|
|
91
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.items.info", code: 200 }))).annotate({ identifier: "ItemsInfoRequest" });
|
|
92
|
-
export const ItemsInfoResponseSubtasksList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
93
|
-
export const ItemsInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
-
ok: S.Boolean,
|
|
95
|
-
list: S.Unknown,
|
|
96
|
-
record: S.Unknown,
|
|
97
|
-
parent_task: S.optional(S.Unknown),
|
|
98
|
-
subtasks: S.optional(ItemsInfoResponseSubtasksList),
|
|
99
|
-
})).annotate({ identifier: "ItemsInfoResponse" });
|
|
100
|
-
export const ListItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
101
|
-
list_id: S.String,
|
|
102
|
-
limit: S.optional(S.Number),
|
|
103
|
-
cursor: S.optional(S.String),
|
|
104
|
-
archived: S.optional(S.Boolean),
|
|
105
|
-
include_list: S.optional(S.Boolean),
|
|
106
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.items.list", code: 200 }))).annotate({ identifier: "ListItemsRequest" });
|
|
107
|
-
export const ListItemsResponseItemsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
108
|
-
export const ListItemsResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
109
|
-
next_cursor: S.optional(S.String),
|
|
110
|
-
})).annotate({
|
|
111
|
-
identifier: "ListItemsResponseResponseMetadata",
|
|
112
|
-
});
|
|
113
|
-
export const ListItemsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
ok: S.Boolean,
|
|
115
|
-
items: ListItemsResponseItemsList,
|
|
116
|
-
response_metadata: S.optional(ListItemsResponseResponseMetadata),
|
|
117
|
-
list: S.optional(S.Unknown),
|
|
118
|
-
})).annotate({ identifier: "ListItemsResponse" });
|
|
119
|
-
export const SetAccessRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
120
|
-
export const SetAccessRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
121
|
-
export const SetAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
122
|
-
list_id: S.String,
|
|
123
|
-
access_level: S.String,
|
|
124
|
-
channel_ids: S.optional(SetAccessRequestChannelIdsList),
|
|
125
|
-
user_ids: S.optional(SetAccessRequestUserIdsList),
|
|
126
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.access.set", code: 200 }))).annotate({ identifier: "SetAccessRequest" });
|
|
127
|
-
export const SetAccessResponseFailedToUpdateChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
128
|
-
export const SetAccessResponseFailedToUpdateUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
129
|
-
export const SetAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
130
|
-
ok: S.Boolean,
|
|
131
|
-
failed_to_update_channel_ids: S.optional(SetAccessResponseFailedToUpdateChannelIdsList),
|
|
132
|
-
failed_to_update_user_ids: S.optional(SetAccessResponseFailedToUpdateUserIdsList),
|
|
133
|
-
})).annotate({ identifier: "SetAccessResponse" });
|
|
134
|
-
export const UpdateItemRequestCellsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
135
|
-
export const UpdateItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
-
list_id: S.String,
|
|
137
|
-
cells: UpdateItemRequestCellsList,
|
|
138
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.items.update", code: 200 }))).annotate({ identifier: "UpdateItemRequest" });
|
|
139
|
-
export const UpdateItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
-
ok: S.Boolean,
|
|
141
|
-
})).annotate({ identifier: "UpdateItemResponse" });
|
|
142
|
-
export const UpdateSlackListRequestDescriptionBlocksList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
143
|
-
export const UpdateSlackListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
144
|
-
id: S.String,
|
|
145
|
-
name: S.optional(S.String),
|
|
146
|
-
description_blocks: S.optional(UpdateSlackListRequestDescriptionBlocksList),
|
|
147
|
-
todo_mode: S.optional(S.Boolean),
|
|
148
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackLists.update", code: 200 }))).annotate({ identifier: "UpdateSlackListRequest" });
|
|
149
|
-
export const UpdateSlackListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
-
ok: S.Boolean,
|
|
151
|
-
})).annotate({ identifier: "UpdateSlackListResponse" });
|
|
152
|
-
/** Add a new item to an existing List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `over_row_maximum` — Cannot create more items over the maximum. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `duplicated_item_not_found` — The item to duplicate cannot be found. - `invalid_option_id` — Option ID provided does not match column definition. - `invalid_args` — The provided arguments are invalid. - `uneditable_column` — Initial values provided for an uneditable column. - `invalid_input_type` — The field value type does not match the column type. - `invalid_column_id` — The column ID provided does not exist in the List. - `over_cell_fields_limit` — Too many values provided for a single field. - `file_not_found` — The attachment file could not be found. - `invalid_vote_value` — Invalid value provided for a vote column. See https://docs.slack.dev/reference/methods/slackLists.items.create */
|
|
153
|
-
export const createItem = /*@__PURE__*/ API.make(() => ({
|
|
154
|
-
input: CreateItemRequest,
|
|
155
|
-
output: CreateItemResponse,
|
|
156
|
-
errors: [SlackError, SlackRateLimited],
|
|
157
|
-
protocol: SlackProtocol,
|
|
158
|
-
retry: Retry.Retry,
|
|
159
|
-
}));
|
|
160
|
-
/** Create a List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `permission_denied` — The user does not have permission to perform this action. - `invalid_schema` — The schema was invalid. - `invalid_primary_column` — Missing or more than one primary column. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `over_list_file_maximum` — Cannot create any more List files. - `over_title_length_maximum` — Title can not exceed defined length. - `invalid_column_type` — Column type not allowed. - `missing_arg_copy_from_list_id` — Missing argument `copy_from_list_id`. - `invalid_copy_and_schema_args` — Cannot provide both `copy_from_list_id` and `schema`. - `over_column_maximum` — Cannot create List with more than allowed column count. See https://docs.slack.dev/reference/methods/slackLists.create */
|
|
161
|
-
export const createSlackList = /*@__PURE__*/ API.make(() => ({
|
|
162
|
-
input: CreateSlackListRequest,
|
|
163
|
-
output: CreateSlackListResponse,
|
|
164
|
-
errors: [SlackError, SlackRateLimited],
|
|
165
|
-
protocol: SlackProtocol,
|
|
166
|
-
retry: Retry.Retry,
|
|
167
|
-
}));
|
|
168
|
-
/** Revoke access to a List for specified entities. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `lists_disabled_user_team` — Lists is disabled on user's team. - `list_not_found` — The List 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/slackLists.access.delete */
|
|
169
|
-
export const deleteAccess = /*@__PURE__*/ API.make(() => ({
|
|
170
|
-
input: DeleteAccessRequest,
|
|
171
|
-
output: DeleteAccessResponse,
|
|
172
|
-
errors: [SlackError, SlackRateLimited],
|
|
173
|
-
protocol: SlackProtocol,
|
|
174
|
-
retry: Retry.Retry,
|
|
175
|
-
}));
|
|
176
|
-
/** Deletes an item from an existing List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `record_not_found` — The record was not found in the List. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.delete */
|
|
177
|
-
export const deleteItem = /*@__PURE__*/ API.make(() => ({
|
|
178
|
-
input: DeleteItemRequest,
|
|
179
|
-
output: DeleteItemResponse,
|
|
180
|
-
errors: [SlackError, SlackRateLimited],
|
|
181
|
-
protocol: SlackProtocol,
|
|
182
|
-
retry: Retry.Retry,
|
|
183
|
-
}));
|
|
184
|
-
/** Deletes multiple items from an existing List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.deleteMultiple */
|
|
185
|
-
export const deleteMultiple = /*@__PURE__*/ API.make(() => ({
|
|
186
|
-
input: DeleteMultipleRequest,
|
|
187
|
-
output: DeleteMultipleResponse,
|
|
188
|
-
errors: [SlackError, SlackRateLimited],
|
|
189
|
-
protocol: SlackProtocol,
|
|
190
|
-
retry: Retry.Retry,
|
|
191
|
-
}));
|
|
192
|
-
/** Retrieve List download URL from an export job to download List contents. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `permission_denied` — The bot does not have permission to perform this action. - `unknown_method` — Feature not enabled for this team. - `job_not_found` — Could not find an export job matching that ID. See https://docs.slack.dev/reference/methods/slackLists.download.get */
|
|
193
|
-
export const downloadGet = /*@__PURE__*/ API.make(() => ({
|
|
194
|
-
input: DownloadGetRequest,
|
|
195
|
-
output: DownloadGetResponse,
|
|
196
|
-
errors: [SlackError, SlackRateLimited],
|
|
197
|
-
protocol: SlackProtocol,
|
|
198
|
-
retry: Retry.Retry,
|
|
199
|
-
}));
|
|
200
|
-
/** Initiate a job to export List contents. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `permission_denied` — The bot does not have permission to perform this action. - `unknown_method` — Feature not enabled for this team. See https://docs.slack.dev/reference/methods/slackLists.download.start */
|
|
201
|
-
export const downloadStart = /*@__PURE__*/ API.make(() => ({
|
|
202
|
-
input: DownloadStartRequest,
|
|
203
|
-
output: DownloadStartResponse,
|
|
204
|
-
errors: [SlackError, SlackRateLimited],
|
|
205
|
-
protocol: SlackProtocol,
|
|
206
|
-
retry: Retry.Retry,
|
|
207
|
-
}));
|
|
208
|
-
/** Get a row from a List. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `record_not_found` — The record was not found in the List. - `record_deleted` — The record has been deleted. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. See https://docs.slack.dev/reference/methods/slackLists.items.info */
|
|
209
|
-
export const itemsInfo = /*@__PURE__*/ API.make(() => ({
|
|
210
|
-
input: ItemsInfoRequest,
|
|
211
|
-
output: ItemsInfoResponse,
|
|
212
|
-
errors: [SlackError, SlackRateLimited],
|
|
213
|
-
protocol: SlackProtocol,
|
|
214
|
-
retry: Retry.Retry,
|
|
215
|
-
}));
|
|
216
|
-
/** Get records from a List. Required scopes — bot: `lists:read`; user: `lists:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `archive_not_supported` — Archiving is not supported. See https://docs.slack.dev/reference/methods/slackLists.items.list */
|
|
217
|
-
export const listItems = /*@__PURE__*/ API.makePaginated(() => ({
|
|
218
|
-
input: ListItemsRequest,
|
|
219
|
-
output: ListItemsResponse,
|
|
220
|
-
errors: [SlackError, SlackRateLimited],
|
|
221
|
-
protocol: SlackProtocol,
|
|
222
|
-
retry: Retry.Retry,
|
|
223
|
-
pagination: {
|
|
224
|
-
mode: "cursor",
|
|
225
|
-
inputToken: "cursor",
|
|
226
|
-
outputToken: "response_metadata.next_cursor",
|
|
227
|
-
items: "items",
|
|
228
|
-
pageSize: "limit",
|
|
229
|
-
},
|
|
230
|
-
}), slackPaginate);
|
|
231
|
-
/** Set the access level to a List for specified entities. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `lists_disabled_user_team` — Lists is disabled on user's team. - `list_not_found` — The List 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/slackLists.access.set */
|
|
232
|
-
export const setAccess = /*@__PURE__*/ API.make(() => ({
|
|
233
|
-
input: SetAccessRequest,
|
|
234
|
-
output: SetAccessResponse,
|
|
235
|
-
errors: [SlackError, SlackRateLimited],
|
|
236
|
-
protocol: SlackProtocol,
|
|
237
|
-
retry: Retry.Retry,
|
|
238
|
-
}));
|
|
239
|
-
/** Updates cells in a List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `row_not_found` — The row was not found. - `column_not_found` — The column was not found. - `file_not_found` — Invalid file ID for this List. - `invalid_input_type` — Supplied value key or value type is invalid for the given column type. - `invalid_row_id` — Invalid row ID for this List. - `invalid_column_id` — Invalid column ID for this List. - `permission_denied` — The user does not have permission to perform this action. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `channel_not_found` — The channel cannot be found. - `uneditable_column` — The column cannot be updated. - `invalid_blocks` — Rich text payload supplied is invalid. - `invalid_text_block` — Rich text payload supplied is invalid. - `invalid_email` — Email supplied is invalid. - `invalid_link` — Message archive link supplied is invalid. - `invalid_date` — Date supplied is invalid. - `invalid_option_id` — Option supplied is invalid. - `row_id_not_provided` — The `row_id` or `row_id_to_create` field must be provided. - `column_id_not_provided` — The `column_id` or `column_id_to_create` field must be provided. - `over_cell_fields_limit` — The supplied cell fields are over the cell field maximum. - `invalid_message` — Invalid message provided. - `invalid_attachment` — Invalid attachment provided. - `invalid_phone_number` — Invalid phone number provided. - `invalid_vote_value` — Invalid vote value is supplied. See https://docs.slack.dev/reference/methods/slackLists.items.update */
|
|
240
|
-
export const updateItem = /*@__PURE__*/ API.make(() => ({
|
|
241
|
-
input: UpdateItemRequest,
|
|
242
|
-
output: UpdateItemResponse,
|
|
243
|
-
errors: [SlackError, SlackRateLimited],
|
|
244
|
-
protocol: SlackProtocol,
|
|
245
|
-
retry: Retry.Retry,
|
|
246
|
-
}));
|
|
247
|
-
/** Update a List. Required scopes — bot: `lists:write`; user: `lists:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `list_not_found` — The List was not found. - `team_not_found` — The team cannot be found. - `user_not_found` — The user cannot be found. - `list_edits_update_error` — Failed to update List metadata. - `list_editor_upsert_error` — Failed to upsert List editor. - `over_title_length_maximum` — Title can not exceed defined length. - `file_channel_rename_error` — Failed to rename file channel based on file title. - `unexpected_description_blocks_arg` — Unexpected description blocks argument. - `missing_arguments` — No arguments were provided to update the List. See https://docs.slack.dev/reference/methods/slackLists.update */
|
|
248
|
-
export const updateSlackList = /*@__PURE__*/ API.make(() => ({
|
|
249
|
-
input: UpdateSlackListRequest,
|
|
250
|
-
output: UpdateSlackListResponse,
|
|
251
|
-
errors: [SlackError, SlackRateLimited],
|
|
252
|
-
protocol: SlackProtocol,
|
|
253
|
-
retry: Retry.Retry,
|
|
254
|
-
}));
|
|
1
|
+
import{c as e,d as t,errors$SlackError as n,errors$SlackRateLimited as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,pagination$slackPaginate as p,protocol$SlackProtocol as m,retry$Retry as h,s as g,t as _,traits$Http as v,u as y}from"../_bundle/sdk.js";const b=/*@__PURE__*/ o(a=>a===i?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"CreateItemRequest";$6(>4)@"CreateItemResponse";$5({list_id:$2,duplicated_item_id:$3($2),parent_item_id:$3($2),initial_fields:$3(#4:0)}).pipe($1({method:"POST",uri:"/slackLists.items.create",code:200}));$5({ok:$7,item:$8})`,[c,v,d,y,__d0,g,t,u,e,n,r,m,h]]:f(b,a));const x=/*@__PURE__*/ o(a=>a===i?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$7(>3)@"CreateSlackListRequest";$7(>4)@"CreateSlackListResponse";$6({name:$2,description_blocks:$4(#3:0),schema:$4(#3:0),copy_from_list_id:$4($2),include_copied_list_records:$4($5),todo_mode:$4($5)}).pipe($1({method:"POST",uri:"/slackLists.create",code:200}));$6({ok:$5,list_id:$2,list_metadata:$4($8)})`,[c,v,d,__d0,y,u,g,t,e,n,r,m,h]]:f(x,a));const S=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"DeleteAccessRequest";$5({list_id:$2,channel_ids:$4(#3:0),user_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/slackLists.access.delete",code:200}))`,[c,v,d,__d1,y,g,t,__d2,n,r,m,h]]:f(S,e));const C=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"DeleteItemRequest";$3({list_id:$2,id:$2}).pipe($1({method:"POST",uri:"/slackLists.items.delete",code:200}))`,[c,v,d,g,t,__d3,n,r,m,h]]:f(C,e));const w=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteMultipleRequest";$4({list_id:$2,ids:#3:0}).pipe($1({method:"POST",uri:"/slackLists.items.deleteMultiple",code:200}))`,[c,v,d,__d1,g,t,__d3,n,r,m,h]]:f(w,e));const T=/*@__PURE__*/ o(a=>a===i?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"DownloadGetRequest";$6(>4)@"DownloadGetResponse";$5({list_id:$2,job_id:$2,format:$3($2),include_threads:$3($4),include_attachments:$3($4)}).pipe($1({method:"POST",uri:"/slackLists.download.get",code:200}));$5({ok:$4,status:$7,download_url:$3($2)})`,[c,v,d,y,u,g,t,e,n,r,m,h]]:f(T,a));const E=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"DownloadStartRequest";$6(>4)@"DownloadStartResponse";$5({list_id:$2,include_archived:$4($3),format:$4($2),include_threads:$4($3),include_attachments:$4($3)}).pipe($1({method:"POST",uri:"/slackLists.download.start",code:200}));$5({ok:$3,job_id:$7})`,[c,v,d,u,y,g,t,s,n,r,m,h]]:f(E,e));const D=/*@__PURE__*/ o(a=>a===i?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"ItemsInfoRequest";$6(>4)@"ItemsInfoResponse";$5({list_id:$2,id:$2,include_is_subscribed:$4($3)}).pipe($1({method:"POST",uri:"/slackLists.items.info",code:200}));$5({ok:$3,list:$7,record:$7,parent_task:$4($7),subtasks:$4(#8:0)})`,[c,v,d,u,y,g,t,e,__d0,n,r,m,h]]:f(D,a));const O=/*@__PURE__*/ a(a=>a===i?l(`ListItemsResponse`,`{input:#1,output:#3,errors:[$10,$11],protocol:$12,retry:$13,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"items",pageSize:"limit"},strategy:$14};$7(>4)@"ListItemsRequest";$7(>5)@"%ResponseMetadata";$7(>6)@"%";$6({list_id:$2,limit:$4($3),cursor:$4($2),archived:$4($5),include_list:$4($5)}).pipe($1({method:"POST",uri:"/slackLists.items.list",code:200}));$6({next_cursor:$4($2)});$6({ok:$5,items:#8:0,response_metadata:$4(#2),list:$4($9)})`,[c,v,d,s,y,u,g,t,__d0,e,n,r,m,h,p]):f(O,a));const k=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetAccessRequest";$5({list_id:$2,access_level:$2,channel_ids:$4(#3:0),user_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/slackLists.access.set",code:200}))`,[c,v,d,__d1,y,g,t,__d2,n,r,m,h]]:f(k,e));const A=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"UpdateItemRequest";$4({list_id:$2,cells:#3:0}).pipe($1({method:"POST",uri:"/slackLists.items.update",code:200}))`,[c,v,d,__d0,g,t,__d3,n,r,m,h]]:f(A,e));const j=/*@__PURE__*/ o(e=>e===i?[`{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"UpdateSlackListRequest";$6({id:$2,name:$3($2),description_blocks:$3(#4:0),todo_mode:$3($5)}).pipe($1({method:"POST",uri:"/slackLists.update",code:200}))`,[c,v,d,y,__d0,u,g,t,__d3,n,r,m,h]]:f(j,e));function __d0(){return[`$2($1)`,[c,e,_]]}function __d1(){return[`$2($1)`,[c,d,_]]}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)})`,[c,u,__d1,y,g,t]]}function __d3(){return[`$3(>1)@"DeleteItemResponse";$2({ok:$1})`,[c,u,g,t]]}export{b as createItem,x as createSlackList,S as deleteAccess,C as deleteItem,w as deleteMultiple,T as downloadGet,E as downloadStart,D as itemsInfo,O as listItems,k as setAccess,A as updateItem,j as updateSlackList};
|
|
255
2
|
//# sourceMappingURL=lists.js.map
|