@distilled.cloud/slack 0.0.0 → 1.0.0-rc.11
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/LICENSE +201 -0
- package/lib/credentials.d.ts +27 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +53 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +59 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +17 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +31 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +31 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +230 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +52 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +45 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/admin.d.ts +2796 -0
- package/lib/services/admin.d.ts.map +1 -0
- package/lib/services/admin.js +3217 -0
- package/lib/services/admin.js.map +1 -0
- package/lib/services/api.d.ts +23 -0
- package/lib/services/api.d.ts.map +1 -0
- package/lib/services/api.js +26 -0
- package/lib/services/api.js.map +1 -0
- package/lib/services/apps.d.ts +568 -0
- package/lib/services/apps.d.ts.map +1 -0
- package/lib/services/apps.js +584 -0
- package/lib/services/apps.js.map +1 -0
- package/lib/services/assistant.d.ts +290 -0
- package/lib/services/assistant.d.ts.map +1 -0
- package/lib/services/assistant.js +232 -0
- package/lib/services/assistant.js.map +1 -0
- package/lib/services/auth.d.ts +90 -0
- package/lib/services/auth.d.ts.map +1 -0
- package/lib/services/auth.js +114 -0
- package/lib/services/auth.js.map +1 -0
- package/lib/services/blocks.d.ts +31 -0
- package/lib/services/blocks.d.ts.map +1 -0
- package/lib/services/blocks.js +31 -0
- package/lib/services/blocks.js.map +1 -0
- package/lib/services/bookmarks.d.ts +91 -0
- package/lib/services/bookmarks.d.ts.map +1 -0
- package/lib/services/bookmarks.js +98 -0
- package/lib/services/bookmarks.js.map +1 -0
- package/lib/services/bots.d.ts +60 -0
- package/lib/services/bots.d.ts.map +1 -0
- package/lib/services/bots.js +68 -0
- package/lib/services/bots.js.map +1 -0
- package/lib/services/calls.d.ts +124 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +136 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/canvases.d.ts +152 -0
- package/lib/services/canvases.d.ts.map +1 -0
- package/lib/services/canvases.js +152 -0
- package/lib/services/canvases.js.map +1 -0
- package/lib/services/chat.d.ts +525 -0
- package/lib/services/chat.d.ts.map +1 -0
- package/lib/services/chat.js +436 -0
- package/lib/services/chat.js.map +1 -0
- package/lib/services/conversations.d.ts +642 -0
- package/lib/services/conversations.d.ts.map +1 -0
- package/lib/services/conversations.js +769 -0
- package/lib/services/conversations.js.map +1 -0
- package/lib/services/dialog.d.ts +20 -0
- package/lib/services/dialog.d.ts.map +1 -0
- package/lib/services/dialog.js +27 -0
- package/lib/services/dialog.js.map +1 -0
- package/lib/services/dnd.d.ts +94 -0
- package/lib/services/dnd.d.ts.map +1 -0
- package/lib/services/dnd.js +111 -0
- package/lib/services/dnd.js.map +1 -0
- package/lib/services/emoji.d.ts +35 -0
- package/lib/services/emoji.d.ts.map +1 -0
- package/lib/services/emoji.js +40 -0
- package/lib/services/emoji.js.map +1 -0
- package/lib/services/entity.d.ts +93 -0
- package/lib/services/entity.d.ts.map +1 -0
- package/lib/services/entity.js +89 -0
- package/lib/services/entity.js.map +1 -0
- package/lib/services/files.d.ts +473 -0
- package/lib/services/files.d.ts.map +1 -0
- package/lib/services/files.js +510 -0
- package/lib/services/files.js.map +1 -0
- package/lib/services/functions.d.ts +235 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +256 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +36 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/lists.d.ts +300 -0
- package/lib/services/lists.d.ts.map +1 -0
- package/lib/services/lists.js +366 -0
- package/lib/services/lists.js.map +1 -0
- package/lib/services/migration.d.ts +34 -0
- package/lib/services/migration.d.ts.map +1 -0
- package/lib/services/migration.js +36 -0
- package/lib/services/migration.js.map +1 -0
- package/lib/services/oauth.d.ts +307 -0
- package/lib/services/oauth.d.ts.map +1 -0
- package/lib/services/oauth.js +278 -0
- package/lib/services/oauth.js.map +1 -0
- package/lib/services/openid.d.ts +86 -0
- package/lib/services/openid.d.ts.map +1 -0
- package/lib/services/openid.js +93 -0
- package/lib/services/openid.js.map +1 -0
- package/lib/services/pins.d.ts +64 -0
- package/lib/services/pins.d.ts.map +1 -0
- package/lib/services/pins.js +75 -0
- package/lib/services/pins.js.map +1 -0
- package/lib/services/reactions.d.ts +108 -0
- package/lib/services/reactions.d.ts.map +1 -0
- package/lib/services/reactions.js +119 -0
- package/lib/services/reactions.js.map +1 -0
- package/lib/services/reminders.d.ts +89 -0
- package/lib/services/reminders.d.ts.map +1 -0
- package/lib/services/reminders.js +109 -0
- package/lib/services/reminders.js.map +1 -0
- package/lib/services/rtm.d.ts +68 -0
- package/lib/services/rtm.d.ts.map +1 -0
- package/lib/services/rtm.js +74 -0
- package/lib/services/rtm.js.map +1 -0
- package/lib/services/search.d.ts +239 -0
- package/lib/services/search.d.ts.map +1 -0
- package/lib/services/search.js +190 -0
- package/lib/services/search.js.map +1 -0
- package/lib/services/stars.d.ts +126 -0
- package/lib/services/stars.d.ts.map +1 -0
- package/lib/services/stars.js +145 -0
- package/lib/services/stars.js.map +1 -0
- package/lib/services/team.d.ts +309 -0
- package/lib/services/team.d.ts.map +1 -0
- package/lib/services/team.js +333 -0
- package/lib/services/team.js.map +1 -0
- package/lib/services/tooling.d.ts +31 -0
- package/lib/services/tooling.d.ts.map +1 -0
- package/lib/services/tooling.js +38 -0
- package/lib/services/tooling.js.map +1 -0
- package/lib/services/usergroups.d.ts +183 -0
- package/lib/services/usergroups.d.ts.map +1 -0
- package/lib/services/usergroups.js +180 -0
- package/lib/services/usergroups.js.map +1 -0
- package/lib/services/users.d.ts +246 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +309 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/views.d.ts +84 -0
- package/lib/services/views.d.ts.map +1 -0
- package/lib/services/views.js +95 -0
- package/lib/services/views.js.map +1 -0
- package/lib/services/workflows.d.ts +231 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +238 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +12 -0
- package/lib/traits.js.map +1 -0
- package/package.json +82 -4
- package/src/credentials.ts +86 -0
- package/src/errors.ts +101 -0
- package/src/index.ts +20 -0
- package/src/pagination.ts +35 -0
- package/src/protocol.ts +326 -0
- package/src/retry.ts +76 -0
- package/src/services/admin.ts +7722 -0
- package/src/services/api.ts +58 -0
- package/src/services/apps.ts +1441 -0
- package/src/services/assistant.ts +639 -0
- package/src/services/auth.ts +241 -0
- package/src/services/blocks.ts +80 -0
- package/src/services/bookmarks.ts +223 -0
- package/src/services/bots.ts +144 -0
- package/src/services/calls.ts +318 -0
- package/src/services/canvases.ts +392 -0
- package/src/services/chat.ts +1191 -0
- package/src/services/conversations.ts +1754 -0
- package/src/services/dialog.ts +55 -0
- package/src/services/dnd.ts +246 -0
- package/src/services/emoji.ts +91 -0
- package/src/services/entity.ts +225 -0
- package/src/services/files.ts +1192 -0
- package/src/services/functions.ts +642 -0
- package/src/services/index.ts +35 -0
- package/src/services/lists.ts +832 -0
- package/src/services/migration.ts +85 -0
- package/src/services/oauth.ts +658 -0
- package/src/services/openid.ts +243 -0
- package/src/services/pins.ts +167 -0
- package/src/services/reactions.ts +272 -0
- package/src/services/reminders.ts +240 -0
- package/src/services/rtm.ts +162 -0
- package/src/services/search.ts +507 -0
- package/src/services/stars.ts +323 -0
- package/src/services/team.ts +834 -0
- package/src/services/tooling.ts +78 -0
- package/src/services/usergroups.ts +441 -0
- package/src/services/users.ts +685 -0
- package/src/services/views.ts +212 -0
- package/src/services/workflows.ts +605 -0
- package/src/traits.ts +45 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
|
+
export type { SlackOpError, SlackOpContext };
|
|
5
|
+
/** Comma-separated array of trigger IDs to add; max 15 */
|
|
6
|
+
export type AddFeaturedRequestTriggerIdsList = Array<string>;
|
|
7
|
+
export declare const AddFeaturedRequestTriggerIdsList: S.Schema<AddFeaturedRequestTriggerIdsList>;
|
|
8
|
+
export interface AddFeaturedRequest {
|
|
9
|
+
/** Channel to add featured workflow in. */
|
|
10
|
+
channel_id: string;
|
|
11
|
+
/** Comma-separated array of trigger IDs to add; max 15 */
|
|
12
|
+
trigger_ids: AddFeaturedRequestTriggerIdsList;
|
|
13
|
+
}
|
|
14
|
+
export declare const AddFeaturedRequest: S.Schema<AddFeaturedRequest>;
|
|
15
|
+
export interface AddFeaturedResponse {
|
|
16
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
17
|
+
ok: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const AddFeaturedResponse: S.Schema<AddFeaturedResponse>;
|
|
20
|
+
/** List of encoded user IDs */
|
|
21
|
+
export type AddTriggersPermissionsRequestUserIdsList = Array<string>;
|
|
22
|
+
export declare const AddTriggersPermissionsRequestUserIdsList: S.Schema<AddTriggersPermissionsRequestUserIdsList>;
|
|
23
|
+
/** List of encoded channel IDs */
|
|
24
|
+
export type AddTriggersPermissionsRequestChannelIdsList = Array<string>;
|
|
25
|
+
export declare const AddTriggersPermissionsRequestChannelIdsList: S.Schema<AddTriggersPermissionsRequestChannelIdsList>;
|
|
26
|
+
/** List of encoded workspace IDs */
|
|
27
|
+
export type AddTriggersPermissionsRequestTeamIdsList = Array<string>;
|
|
28
|
+
export declare const AddTriggersPermissionsRequestTeamIdsList: S.Schema<AddTriggersPermissionsRequestTeamIdsList>;
|
|
29
|
+
/** List of encoded organization IDs */
|
|
30
|
+
export type AddTriggersPermissionsRequestOrgIdsList = Array<string>;
|
|
31
|
+
export declare const AddTriggersPermissionsRequestOrgIdsList: S.Schema<AddTriggersPermissionsRequestOrgIdsList>;
|
|
32
|
+
export interface AddTriggersPermissionsRequest {
|
|
33
|
+
/** Encoded ID of the trigger */
|
|
34
|
+
trigger_id: string;
|
|
35
|
+
/** List of encoded user IDs */
|
|
36
|
+
user_ids?: AddTriggersPermissionsRequestUserIdsList;
|
|
37
|
+
/** List of encoded channel IDs */
|
|
38
|
+
channel_ids?: AddTriggersPermissionsRequestChannelIdsList;
|
|
39
|
+
/** List of encoded workspace IDs */
|
|
40
|
+
team_ids?: AddTriggersPermissionsRequestTeamIdsList;
|
|
41
|
+
/** List of encoded organization IDs */
|
|
42
|
+
org_ids?: AddTriggersPermissionsRequestOrgIdsList;
|
|
43
|
+
}
|
|
44
|
+
export declare const AddTriggersPermissionsRequest: S.Schema<AddTriggersPermissionsRequest>;
|
|
45
|
+
export interface AddTriggersPermissionsResponse {
|
|
46
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
47
|
+
ok: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const AddTriggersPermissionsResponse: S.Schema<AddTriggersPermissionsResponse>;
|
|
50
|
+
/** Comma-separated array of channel IDs to list featured workflows for. */
|
|
51
|
+
export type ListFeaturedRequestChannelIdsList = Array<string>;
|
|
52
|
+
export declare const ListFeaturedRequestChannelIdsList: S.Schema<ListFeaturedRequestChannelIdsList>;
|
|
53
|
+
export interface ListFeaturedRequest {
|
|
54
|
+
/** Comma-separated array of channel IDs to list featured workflows for. */
|
|
55
|
+
channel_ids: ListFeaturedRequestChannelIdsList;
|
|
56
|
+
}
|
|
57
|
+
export declare const ListFeaturedRequest: S.Schema<ListFeaturedRequest>;
|
|
58
|
+
export interface ListFeaturedResponseFeaturedWorkflowsItemTriggersItem {
|
|
59
|
+
id: string;
|
|
60
|
+
title: string;
|
|
61
|
+
}
|
|
62
|
+
export declare const ListFeaturedResponseFeaturedWorkflowsItemTriggersItem: S.Schema<ListFeaturedResponseFeaturedWorkflowsItemTriggersItem>;
|
|
63
|
+
/** Array of triggers associated with channel */
|
|
64
|
+
export type ListFeaturedResponseFeaturedWorkflowsItemTriggersList = Array<ListFeaturedResponseFeaturedWorkflowsItemTriggersItem>;
|
|
65
|
+
export declare const ListFeaturedResponseFeaturedWorkflowsItemTriggersList: S.Schema<ListFeaturedResponseFeaturedWorkflowsItemTriggersList>;
|
|
66
|
+
export interface ListFeaturedResponseFeaturedWorkflowsItem {
|
|
67
|
+
/** Channel where workflows are featured */
|
|
68
|
+
channel_id: string;
|
|
69
|
+
/** Array of triggers associated with channel */
|
|
70
|
+
triggers: ListFeaturedResponseFeaturedWorkflowsItemTriggersList;
|
|
71
|
+
}
|
|
72
|
+
export declare const ListFeaturedResponseFeaturedWorkflowsItem: S.Schema<ListFeaturedResponseFeaturedWorkflowsItem>;
|
|
73
|
+
export type ListFeaturedResponseFeaturedWorkflowsList = Array<ListFeaturedResponseFeaturedWorkflowsItem>;
|
|
74
|
+
export declare const ListFeaturedResponseFeaturedWorkflowsList: S.Schema<ListFeaturedResponseFeaturedWorkflowsList>;
|
|
75
|
+
export interface ListFeaturedResponse {
|
|
76
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
77
|
+
ok: boolean;
|
|
78
|
+
featured_workflows: ListFeaturedResponseFeaturedWorkflowsList;
|
|
79
|
+
}
|
|
80
|
+
export declare const ListFeaturedResponse: S.Schema<ListFeaturedResponse>;
|
|
81
|
+
export interface ListTriggersPermissionsRequest {
|
|
82
|
+
/** Encoded ID of the trigger */
|
|
83
|
+
trigger_id: string;
|
|
84
|
+
}
|
|
85
|
+
export declare const ListTriggersPermissionsRequest: S.Schema<ListTriggersPermissionsRequest>;
|
|
86
|
+
export interface ListTriggersPermissionsResponse {
|
|
87
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
88
|
+
ok: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare const ListTriggersPermissionsResponse: S.Schema<ListTriggersPermissionsResponse>;
|
|
91
|
+
/** Comma-separated array of trigger IDs to remove; max 15 */
|
|
92
|
+
export type RemoveFeaturedRequestTriggerIdsList = Array<string>;
|
|
93
|
+
export declare const RemoveFeaturedRequestTriggerIdsList: S.Schema<RemoveFeaturedRequestTriggerIdsList>;
|
|
94
|
+
export interface RemoveFeaturedRequest {
|
|
95
|
+
/** Channel to remove featured workflow from. */
|
|
96
|
+
channel_id: string;
|
|
97
|
+
/** Comma-separated array of trigger IDs to remove; max 15 */
|
|
98
|
+
trigger_ids: RemoveFeaturedRequestTriggerIdsList;
|
|
99
|
+
}
|
|
100
|
+
export declare const RemoveFeaturedRequest: S.Schema<RemoveFeaturedRequest>;
|
|
101
|
+
export interface RemoveFeaturedResponse {
|
|
102
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
103
|
+
ok: boolean;
|
|
104
|
+
}
|
|
105
|
+
export declare const RemoveFeaturedResponse: S.Schema<RemoveFeaturedResponse>;
|
|
106
|
+
/** List of encoded user IDs */
|
|
107
|
+
export type RemoveTriggersPermissionsRequestUserIdsList = Array<string>;
|
|
108
|
+
export declare const RemoveTriggersPermissionsRequestUserIdsList: S.Schema<RemoveTriggersPermissionsRequestUserIdsList>;
|
|
109
|
+
/** List of encoded channel IDs */
|
|
110
|
+
export type RemoveTriggersPermissionsRequestChannelIdsList = Array<string>;
|
|
111
|
+
export declare const RemoveTriggersPermissionsRequestChannelIdsList: S.Schema<RemoveTriggersPermissionsRequestChannelIdsList>;
|
|
112
|
+
/** List of encoded workspace IDs */
|
|
113
|
+
export type RemoveTriggersPermissionsRequestTeamIdsList = Array<string>;
|
|
114
|
+
export declare const RemoveTriggersPermissionsRequestTeamIdsList: S.Schema<RemoveTriggersPermissionsRequestTeamIdsList>;
|
|
115
|
+
/** List of encoded organization IDs */
|
|
116
|
+
export type RemoveTriggersPermissionsRequestOrgIdsList = Array<string>;
|
|
117
|
+
export declare const RemoveTriggersPermissionsRequestOrgIdsList: S.Schema<RemoveTriggersPermissionsRequestOrgIdsList>;
|
|
118
|
+
export interface RemoveTriggersPermissionsRequest {
|
|
119
|
+
/** Encoded ID of the trigger */
|
|
120
|
+
trigger_id: string;
|
|
121
|
+
/** List of encoded user IDs */
|
|
122
|
+
user_ids?: RemoveTriggersPermissionsRequestUserIdsList;
|
|
123
|
+
/** List of encoded channel IDs */
|
|
124
|
+
channel_ids?: RemoveTriggersPermissionsRequestChannelIdsList;
|
|
125
|
+
/** List of encoded workspace IDs */
|
|
126
|
+
team_ids?: RemoveTriggersPermissionsRequestTeamIdsList;
|
|
127
|
+
/** List of encoded organization IDs */
|
|
128
|
+
org_ids?: RemoveTriggersPermissionsRequestOrgIdsList;
|
|
129
|
+
}
|
|
130
|
+
export declare const RemoveTriggersPermissionsRequest: S.Schema<RemoveTriggersPermissionsRequest>;
|
|
131
|
+
export type RemoveTriggersPermissionsResponsePermissionType = "everyone" | "app_collaborators" | "named_entities";
|
|
132
|
+
export declare const RemoveTriggersPermissionsResponsePermissionType: any;
|
|
133
|
+
/** A list of encoded user IDs. */
|
|
134
|
+
export type RemoveTriggersPermissionsResponseUserIdsList = Array<string>;
|
|
135
|
+
export declare const RemoveTriggersPermissionsResponseUserIdsList: S.Schema<RemoveTriggersPermissionsResponseUserIdsList>;
|
|
136
|
+
/** A list of encoded channel IDs. */
|
|
137
|
+
export type RemoveTriggersPermissionsResponseChannelIdsList = Array<string>;
|
|
138
|
+
export declare const RemoveTriggersPermissionsResponseChannelIdsList: S.Schema<RemoveTriggersPermissionsResponseChannelIdsList>;
|
|
139
|
+
/** Encoded workspace IDs. */
|
|
140
|
+
export type RemoveTriggersPermissionsResponseTeamIdsList = Array<string>;
|
|
141
|
+
export declare const RemoveTriggersPermissionsResponseTeamIdsList: S.Schema<RemoveTriggersPermissionsResponseTeamIdsList>;
|
|
142
|
+
export type RemoveTriggersPermissionsResponseOrgIdsList = Array<string>;
|
|
143
|
+
export declare const RemoveTriggersPermissionsResponseOrgIdsList: S.Schema<RemoveTriggersPermissionsResponseOrgIdsList>;
|
|
144
|
+
export interface RemoveTriggersPermissionsResponse {
|
|
145
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
146
|
+
ok: boolean;
|
|
147
|
+
permission_type: RemoveTriggersPermissionsResponsePermissionType;
|
|
148
|
+
/** A list of encoded user IDs. */
|
|
149
|
+
user_ids?: RemoveTriggersPermissionsResponseUserIdsList;
|
|
150
|
+
/** A list of encoded channel IDs. */
|
|
151
|
+
channel_ids?: RemoveTriggersPermissionsResponseChannelIdsList;
|
|
152
|
+
/** Encoded workspace IDs. */
|
|
153
|
+
team_ids?: RemoveTriggersPermissionsResponseTeamIdsList;
|
|
154
|
+
org_ids?: RemoveTriggersPermissionsResponseOrgIdsList;
|
|
155
|
+
}
|
|
156
|
+
export declare const RemoveTriggersPermissionsResponse: S.Schema<RemoveTriggersPermissionsResponse>;
|
|
157
|
+
/** Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15 */
|
|
158
|
+
export type SetFeaturedRequestTriggerIdsList = Array<string>;
|
|
159
|
+
export declare const SetFeaturedRequestTriggerIdsList: S.Schema<SetFeaturedRequestTriggerIdsList>;
|
|
160
|
+
export interface SetFeaturedRequest {
|
|
161
|
+
/** Channel to set featured workflows in. */
|
|
162
|
+
channel_id: string;
|
|
163
|
+
/** Comma-separated array of trigger IDs that will replace any existing featured workflows in the channel; max 15 */
|
|
164
|
+
trigger_ids: SetFeaturedRequestTriggerIdsList;
|
|
165
|
+
}
|
|
166
|
+
export declare const SetFeaturedRequest: S.Schema<SetFeaturedRequest>;
|
|
167
|
+
export interface SetFeaturedResponse {
|
|
168
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
169
|
+
ok: boolean;
|
|
170
|
+
}
|
|
171
|
+
export declare const SetFeaturedResponse: S.Schema<SetFeaturedResponse>;
|
|
172
|
+
/** The type of permission that defines who can run a trigger */
|
|
173
|
+
export type SetTriggersPermissionsRequestPermissionType = "everyone" | "app_collaborators" | "named_entities";
|
|
174
|
+
export declare const SetTriggersPermissionsRequestPermissionType: any;
|
|
175
|
+
/** List of encoded user IDs */
|
|
176
|
+
export type SetTriggersPermissionsRequestUserIdsList = Array<string>;
|
|
177
|
+
export declare const SetTriggersPermissionsRequestUserIdsList: S.Schema<SetTriggersPermissionsRequestUserIdsList>;
|
|
178
|
+
/** List of encoded channel IDs */
|
|
179
|
+
export type SetTriggersPermissionsRequestChannelIdsList = Array<string>;
|
|
180
|
+
export declare const SetTriggersPermissionsRequestChannelIdsList: S.Schema<SetTriggersPermissionsRequestChannelIdsList>;
|
|
181
|
+
/** List of encoded workspace IDs */
|
|
182
|
+
export type SetTriggersPermissionsRequestTeamIdsList = Array<string>;
|
|
183
|
+
export declare const SetTriggersPermissionsRequestTeamIdsList: S.Schema<SetTriggersPermissionsRequestTeamIdsList>;
|
|
184
|
+
/** List of encoded organization IDs */
|
|
185
|
+
export type SetTriggersPermissionsRequestOrgIdsList = Array<string>;
|
|
186
|
+
export declare const SetTriggersPermissionsRequestOrgIdsList: S.Schema<SetTriggersPermissionsRequestOrgIdsList>;
|
|
187
|
+
export interface SetTriggersPermissionsRequest {
|
|
188
|
+
/** Encoded ID of the trigger */
|
|
189
|
+
trigger_id: string;
|
|
190
|
+
/** The type of permission that defines who can run a trigger */
|
|
191
|
+
permission_type: SetTriggersPermissionsRequestPermissionType | (string & {});
|
|
192
|
+
/** List of encoded user IDs */
|
|
193
|
+
user_ids?: SetTriggersPermissionsRequestUserIdsList;
|
|
194
|
+
/** List of encoded channel IDs */
|
|
195
|
+
channel_ids?: SetTriggersPermissionsRequestChannelIdsList;
|
|
196
|
+
/** List of encoded workspace IDs */
|
|
197
|
+
team_ids?: SetTriggersPermissionsRequestTeamIdsList;
|
|
198
|
+
/** List of encoded organization IDs */
|
|
199
|
+
org_ids?: SetTriggersPermissionsRequestOrgIdsList;
|
|
200
|
+
}
|
|
201
|
+
export declare const SetTriggersPermissionsRequest: S.Schema<SetTriggersPermissionsRequest>;
|
|
202
|
+
export interface SetTriggersPermissionsResponse {
|
|
203
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
204
|
+
ok: boolean;
|
|
205
|
+
}
|
|
206
|
+
export declare const SetTriggersPermissionsResponse: S.Schema<SetTriggersPermissionsResponse>;
|
|
207
|
+
export type AddFeaturedError = SlackOpError;
|
|
208
|
+
/** Add featured workflows to a channel. Required scopes — bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `error_modifying_workflows` — Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.add */
|
|
209
|
+
export declare const addFeatured: API.OperationMethod<AddFeaturedRequest, AddFeaturedResponse, AddFeaturedError, SlackOpContext>;
|
|
210
|
+
export type AddTriggersPermissionsError = SlackOpError;
|
|
211
|
+
/** Allows users to run a trigger that has its permission type set to named_entities Required scopes — bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `channel_not_found` — One or more of the listed channels could not be found. - `connected_org_denied` — The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` — The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` — The workspace admin does not allow connected users to be named_entities. - `invalid_permission_type` — This trigger requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` — None of the provided named entities were valid - `org_not_connected` — One of more of the listed organizations were not connected. - `org_not_found` — One or more of the listed organizations could not be found. - `shared_channel_denied` — The workspace admin does not allow shared channels to be named_entities. - `team_not_connected` — One of more of the listed teams were not connected by org. - `team_not_found` — One or more of the listed teams could not be found. - `too_many_named_entities` — Too many named entities passed into the trigger permissions setting. - `trigger_not_found` — This trigger does not exist. - `unknown_method` — This method does not exist. - `user_not_found` — One or more of the listed users could not be found. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.add */
|
|
212
|
+
export declare const addTriggersPermissions: API.OperationMethod<AddTriggersPermissionsRequest, AddTriggersPermissionsResponse, AddTriggersPermissionsError, SlackOpContext>;
|
|
213
|
+
export type ListFeaturedError = SlackOpError;
|
|
214
|
+
/** List the featured workflows for specified channels. Required scopes — bot: `bookmarks:read`; user: `bookmarks:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `channel_not_found` — Channel not found. - `error_invalid_channels` — Invalid channels provided. See https://docs.slack.dev/reference/methods/workflows.featured.list */
|
|
215
|
+
export declare const listFeatured: API.OperationMethod<ListFeaturedRequest, ListFeaturedResponse, ListFeaturedError, SlackOpContext>;
|
|
216
|
+
export type ListTriggersPermissionsError = SlackOpError;
|
|
217
|
+
/** Returns the permission type of a trigger and if applicable, includes the entities that have been granted access Required scopes — bot: `triggers:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the permissions on this resource. - `trigger_not_found` — This trigger does not exist. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.list */
|
|
218
|
+
export declare const listTriggersPermissions: API.OperationMethod<ListTriggersPermissionsRequest, ListTriggersPermissionsResponse, ListTriggersPermissionsError, SlackOpContext>;
|
|
219
|
+
export type RemoveFeaturedError = SlackOpError;
|
|
220
|
+
/** Remove featured workflows from a channel. Required scopes — bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `error_modifying_workflows` — Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.remove */
|
|
221
|
+
export declare const removeFeatured: API.OperationMethod<RemoveFeaturedRequest, RemoveFeaturedResponse, RemoveFeaturedError, SlackOpContext>;
|
|
222
|
+
export type RemoveTriggersPermissionsError = SlackOpError;
|
|
223
|
+
/** Revoke an entity's access to a trigger that has its permission type set to named_entities Required scopes — bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `connected_org_denied` — The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` — The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` — The workspace admin does not allow connected users to be named_entities. - `named_entities_cannot_be_empty` — There must be at least one valid named entity - `org_not_connected` — One of more of the listed organizations were not connected. - `org_not_found` — One or more of the listed organizations could not be found. - `shared_channel_denied` — The workspace admin does not allow shared channels to be named_entities. - `trigger_not_found` — This trigger does not exist. - `invalid_permission_type` — This trigger requires permission_type to be set as named_entities before adding users. - `too_many_named_entities` — Too many named entities passed into the trigger permissions setting. - `unknown_method` — This method does not exist. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.remove */
|
|
224
|
+
export declare const removeTriggersPermissions: API.OperationMethod<RemoveTriggersPermissionsRequest, RemoveTriggersPermissionsResponse, RemoveTriggersPermissionsError, SlackOpContext>;
|
|
225
|
+
export type SetFeaturedError = SlackOpError;
|
|
226
|
+
/** Set featured workflows for a channel. Required scopes — bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `error_modifying_workflows` — Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.set */
|
|
227
|
+
export declare const setFeatured: API.OperationMethod<SetFeaturedRequest, SetFeaturedResponse, SetFeaturedError, SlackOpContext>;
|
|
228
|
+
export type SetTriggersPermissionsError = SlackOpError;
|
|
229
|
+
/** Set the permission type for who can run a trigger Required scopes — bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `channel_not_found` — One or more of the listed channels could not be found. - `connected_org_denied` — The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` — The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` — The workspace admin does not allow connected users to be named_entities. - `external_workspace_denied` — The channel selected is not on the workflow team. - `invalid_permission_type` — This function requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` — Must pass at least one valid named entity. - `no_valid_named_entities` — None of the provided named entities were valid - `org_not_found` — One or more of the listed organizations could not be found. - `org_not_connected` — One of more of the listed organizations were not connected. - `shared_channel_denied` — The workspace admin does not allow shared channels to be named_entities. - `team_not_connected` — One of more of the listed teams were not connected by org. - `team_not_found` — One or more of the listed teams could not be found. - `too_many_named_entities` — Too many named_entities passed into the trigger permissions setting. - `trigger_not_found` — This trigger does not exist. - `unknown_method` — This method does not exist. - `user_not_found` — One or more of the listed users could not be found. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.set */
|
|
230
|
+
export declare const setTriggersPermissions: API.OperationMethod<SetTriggersPermissionsRequest, SetTriggersPermissionsResponse, SetTriggersPermissionsError, SlackOpContext>;
|
|
231
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,0DAA0D;AAC1D,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,MAAM,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gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,kbAAkb;AAClb,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,YAAY,CAAC;AACvD,2vDAA2vD;AAC3vD,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,cAAc,CAOb,CAAC"}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { SlackProtocol, } from "../protocol.js";
|
|
6
|
+
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export const AddFeaturedRequestTriggerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
9
|
+
export const AddFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
|
+
channel_id: S.String,
|
|
11
|
+
trigger_ids: AddFeaturedRequestTriggerIdsList,
|
|
12
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.add", code: 200 }))).annotate({
|
|
13
|
+
identifier: "AddFeaturedRequest",
|
|
14
|
+
});
|
|
15
|
+
export const AddFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
16
|
+
ok: S.Boolean,
|
|
17
|
+
})).annotate({
|
|
18
|
+
identifier: "AddFeaturedResponse",
|
|
19
|
+
});
|
|
20
|
+
export const AddTriggersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
21
|
+
export const AddTriggersPermissionsRequestChannelIdsList =
|
|
22
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
23
|
+
export const AddTriggersPermissionsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
24
|
+
export const AddTriggersPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
25
|
+
export const AddTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
26
|
+
trigger_id: S.String,
|
|
27
|
+
user_ids: S.optional(AddTriggersPermissionsRequestUserIdsList),
|
|
28
|
+
channel_ids: S.optional(AddTriggersPermissionsRequestChannelIdsList),
|
|
29
|
+
team_ids: S.optional(AddTriggersPermissionsRequestTeamIdsList),
|
|
30
|
+
org_ids: S.optional(AddTriggersPermissionsRequestOrgIdsList),
|
|
31
|
+
}).pipe(T.Http({
|
|
32
|
+
method: "POST",
|
|
33
|
+
uri: "/workflows.triggers.permissions.add",
|
|
34
|
+
code: 200,
|
|
35
|
+
}))).annotate({
|
|
36
|
+
identifier: "AddTriggersPermissionsRequest",
|
|
37
|
+
});
|
|
38
|
+
export const AddTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
39
|
+
ok: S.Boolean,
|
|
40
|
+
})).annotate({
|
|
41
|
+
identifier: "AddTriggersPermissionsResponse",
|
|
42
|
+
});
|
|
43
|
+
export const ListFeaturedRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
44
|
+
export const ListFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
channel_ids: ListFeaturedRequestChannelIdsList,
|
|
46
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.list", code: 200 }))).annotate({
|
|
47
|
+
identifier: "ListFeaturedRequest",
|
|
48
|
+
});
|
|
49
|
+
export const ListFeaturedResponseFeaturedWorkflowsItemTriggersItem =
|
|
50
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
+
id: S.String,
|
|
52
|
+
title: S.String,
|
|
53
|
+
})).annotate({
|
|
54
|
+
identifier: "ListFeaturedResponseFeaturedWorkflowsItemTriggersItem",
|
|
55
|
+
});
|
|
56
|
+
export const ListFeaturedResponseFeaturedWorkflowsItemTriggersList =
|
|
57
|
+
/*@__PURE__*/ S.Array(ListFeaturedResponseFeaturedWorkflowsItemTriggersItem);
|
|
58
|
+
export const ListFeaturedResponseFeaturedWorkflowsItem =
|
|
59
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
+
channel_id: S.String,
|
|
61
|
+
triggers: ListFeaturedResponseFeaturedWorkflowsItemTriggersList,
|
|
62
|
+
})).annotate({
|
|
63
|
+
identifier: "ListFeaturedResponseFeaturedWorkflowsItem",
|
|
64
|
+
});
|
|
65
|
+
export const ListFeaturedResponseFeaturedWorkflowsList = /*@__PURE__*/ S.Array(ListFeaturedResponseFeaturedWorkflowsItem);
|
|
66
|
+
export const ListFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
+
ok: S.Boolean,
|
|
68
|
+
featured_workflows: ListFeaturedResponseFeaturedWorkflowsList,
|
|
69
|
+
})).annotate({
|
|
70
|
+
identifier: "ListFeaturedResponse",
|
|
71
|
+
});
|
|
72
|
+
export const ListTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
|
+
trigger_id: S.String,
|
|
74
|
+
}).pipe(T.Http({
|
|
75
|
+
method: "POST",
|
|
76
|
+
uri: "/workflows.triggers.permissions.list",
|
|
77
|
+
code: 200,
|
|
78
|
+
}))).annotate({
|
|
79
|
+
identifier: "ListTriggersPermissionsRequest",
|
|
80
|
+
});
|
|
81
|
+
export const ListTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
+
ok: S.Boolean,
|
|
83
|
+
})).annotate({
|
|
84
|
+
identifier: "ListTriggersPermissionsResponse",
|
|
85
|
+
});
|
|
86
|
+
export const RemoveFeaturedRequestTriggerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
87
|
+
export const RemoveFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
88
|
+
channel_id: S.String,
|
|
89
|
+
trigger_ids: RemoveFeaturedRequestTriggerIdsList,
|
|
90
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.remove", code: 200 }))).annotate({
|
|
91
|
+
identifier: "RemoveFeaturedRequest",
|
|
92
|
+
});
|
|
93
|
+
export const RemoveFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
+
ok: S.Boolean,
|
|
95
|
+
})).annotate({
|
|
96
|
+
identifier: "RemoveFeaturedResponse",
|
|
97
|
+
});
|
|
98
|
+
export const RemoveTriggersPermissionsRequestUserIdsList =
|
|
99
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
100
|
+
export const RemoveTriggersPermissionsRequestChannelIdsList =
|
|
101
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
102
|
+
export const RemoveTriggersPermissionsRequestTeamIdsList =
|
|
103
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
104
|
+
export const RemoveTriggersPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
105
|
+
export const RemoveTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
106
|
+
trigger_id: S.String,
|
|
107
|
+
user_ids: S.optional(RemoveTriggersPermissionsRequestUserIdsList),
|
|
108
|
+
channel_ids: S.optional(RemoveTriggersPermissionsRequestChannelIdsList),
|
|
109
|
+
team_ids: S.optional(RemoveTriggersPermissionsRequestTeamIdsList),
|
|
110
|
+
org_ids: S.optional(RemoveTriggersPermissionsRequestOrgIdsList),
|
|
111
|
+
}).pipe(T.Http({
|
|
112
|
+
method: "POST",
|
|
113
|
+
uri: "/workflows.triggers.permissions.remove",
|
|
114
|
+
code: 200,
|
|
115
|
+
}))).annotate({
|
|
116
|
+
identifier: "RemoveTriggersPermissionsRequest",
|
|
117
|
+
});
|
|
118
|
+
export const RemoveTriggersPermissionsResponsePermissionType = S.String;
|
|
119
|
+
export const RemoveTriggersPermissionsResponseUserIdsList =
|
|
120
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
121
|
+
export const RemoveTriggersPermissionsResponseChannelIdsList =
|
|
122
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
123
|
+
export const RemoveTriggersPermissionsResponseTeamIdsList =
|
|
124
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
125
|
+
export const RemoveTriggersPermissionsResponseOrgIdsList =
|
|
126
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
127
|
+
export const RemoveTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
|
+
ok: S.Boolean,
|
|
129
|
+
permission_type: RemoveTriggersPermissionsResponsePermissionType,
|
|
130
|
+
user_ids: S.optional(RemoveTriggersPermissionsResponseUserIdsList),
|
|
131
|
+
channel_ids: S.optional(RemoveTriggersPermissionsResponseChannelIdsList),
|
|
132
|
+
team_ids: S.optional(RemoveTriggersPermissionsResponseTeamIdsList),
|
|
133
|
+
org_ids: S.optional(RemoveTriggersPermissionsResponseOrgIdsList),
|
|
134
|
+
})).annotate({
|
|
135
|
+
identifier: "RemoveTriggersPermissionsResponse",
|
|
136
|
+
});
|
|
137
|
+
export const SetFeaturedRequestTriggerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
138
|
+
export const SetFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
139
|
+
channel_id: S.String,
|
|
140
|
+
trigger_ids: SetFeaturedRequestTriggerIdsList,
|
|
141
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.set", code: 200 }))).annotate({
|
|
142
|
+
identifier: "SetFeaturedRequest",
|
|
143
|
+
});
|
|
144
|
+
export const SetFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
|
+
ok: S.Boolean,
|
|
146
|
+
})).annotate({
|
|
147
|
+
identifier: "SetFeaturedResponse",
|
|
148
|
+
});
|
|
149
|
+
export const SetTriggersPermissionsRequestPermissionType = S.String;
|
|
150
|
+
export const SetTriggersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
151
|
+
export const SetTriggersPermissionsRequestChannelIdsList =
|
|
152
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
153
|
+
export const SetTriggersPermissionsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
154
|
+
export const SetTriggersPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
155
|
+
export const SetTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
|
+
trigger_id: S.String,
|
|
157
|
+
permission_type: SetTriggersPermissionsRequestPermissionType,
|
|
158
|
+
user_ids: S.optional(SetTriggersPermissionsRequestUserIdsList),
|
|
159
|
+
channel_ids: S.optional(SetTriggersPermissionsRequestChannelIdsList),
|
|
160
|
+
team_ids: S.optional(SetTriggersPermissionsRequestTeamIdsList),
|
|
161
|
+
org_ids: S.optional(SetTriggersPermissionsRequestOrgIdsList),
|
|
162
|
+
}).pipe(T.Http({
|
|
163
|
+
method: "POST",
|
|
164
|
+
uri: "/workflows.triggers.permissions.set",
|
|
165
|
+
code: 200,
|
|
166
|
+
}))).annotate({
|
|
167
|
+
identifier: "SetTriggersPermissionsRequest",
|
|
168
|
+
});
|
|
169
|
+
export const SetTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
+
ok: S.Boolean,
|
|
171
|
+
})).annotate({
|
|
172
|
+
identifier: "SetTriggersPermissionsResponse",
|
|
173
|
+
});
|
|
174
|
+
/** Add featured workflows to a channel. Required scopes — bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `error_modifying_workflows` — Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.add */
|
|
175
|
+
export const addFeatured = /*@__PURE__*/ API.make(() => ({
|
|
176
|
+
input: AddFeaturedRequest,
|
|
177
|
+
output: AddFeaturedResponse,
|
|
178
|
+
errors: [SlackError, SlackRateLimited],
|
|
179
|
+
protocol: SlackProtocol,
|
|
180
|
+
retry: Retry.Retry,
|
|
181
|
+
}));
|
|
182
|
+
/** Allows users to run a trigger that has its permission type set to named_entities Required scopes — bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `channel_not_found` — One or more of the listed channels could not be found. - `connected_org_denied` — The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` — The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` — The workspace admin does not allow connected users to be named_entities. - `invalid_permission_type` — This trigger requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` — None of the provided named entities were valid - `org_not_connected` — One of more of the listed organizations were not connected. - `org_not_found` — One or more of the listed organizations could not be found. - `shared_channel_denied` — The workspace admin does not allow shared channels to be named_entities. - `team_not_connected` — One of more of the listed teams were not connected by org. - `team_not_found` — One or more of the listed teams could not be found. - `too_many_named_entities` — Too many named entities passed into the trigger permissions setting. - `trigger_not_found` — This trigger does not exist. - `unknown_method` — This method does not exist. - `user_not_found` — One or more of the listed users could not be found. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.add */
|
|
183
|
+
export const addTriggersPermissions = /*@__PURE__*/ API.make(() => ({
|
|
184
|
+
input: AddTriggersPermissionsRequest,
|
|
185
|
+
output: AddTriggersPermissionsResponse,
|
|
186
|
+
errors: [SlackError, SlackRateLimited],
|
|
187
|
+
protocol: SlackProtocol,
|
|
188
|
+
retry: Retry.Retry,
|
|
189
|
+
}));
|
|
190
|
+
/** List the featured workflows for specified channels. Required scopes — bot: `bookmarks:read`; user: `bookmarks:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `channel_not_found` — Channel not found. - `error_invalid_channels` — Invalid channels provided. See https://docs.slack.dev/reference/methods/workflows.featured.list */
|
|
191
|
+
export const listFeatured = /*@__PURE__*/ API.make(() => ({
|
|
192
|
+
input: ListFeaturedRequest,
|
|
193
|
+
output: ListFeaturedResponse,
|
|
194
|
+
errors: [SlackError, SlackRateLimited],
|
|
195
|
+
protocol: SlackProtocol,
|
|
196
|
+
retry: Retry.Retry,
|
|
197
|
+
}));
|
|
198
|
+
/** Returns the permission type of a trigger and if applicable, includes the entities that have been granted access Required scopes — bot: `triggers:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` — This method does not exist. - `access_denied` — This actor does not have access to the permissions on this resource. - `trigger_not_found` — This trigger does not exist. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.list */
|
|
199
|
+
export const listTriggersPermissions = /*@__PURE__*/ API.make(() => ({
|
|
200
|
+
input: ListTriggersPermissionsRequest,
|
|
201
|
+
output: ListTriggersPermissionsResponse,
|
|
202
|
+
errors: [SlackError, SlackRateLimited],
|
|
203
|
+
protocol: SlackProtocol,
|
|
204
|
+
retry: Retry.Retry,
|
|
205
|
+
}));
|
|
206
|
+
/** Remove featured workflows from a channel. Required scopes — bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `error_modifying_workflows` — Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.remove */
|
|
207
|
+
export const removeFeatured = /*@__PURE__*/ API.make(() => ({
|
|
208
|
+
input: RemoveFeaturedRequest,
|
|
209
|
+
output: RemoveFeaturedResponse,
|
|
210
|
+
errors: [SlackError, SlackRateLimited],
|
|
211
|
+
protocol: SlackProtocol,
|
|
212
|
+
retry: Retry.Retry,
|
|
213
|
+
}));
|
|
214
|
+
/** Revoke an entity's access to a trigger that has its permission type set to named_entities Required scopes — bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `connected_org_denied` — The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` — The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` — The workspace admin does not allow connected users to be named_entities. - `named_entities_cannot_be_empty` — There must be at least one valid named entity - `org_not_connected` — One of more of the listed organizations were not connected. - `org_not_found` — One or more of the listed organizations could not be found. - `shared_channel_denied` — The workspace admin does not allow shared channels to be named_entities. - `trigger_not_found` — This trigger does not exist. - `invalid_permission_type` — This trigger requires permission_type to be set as named_entities before adding users. - `too_many_named_entities` — Too many named entities passed into the trigger permissions setting. - `unknown_method` — This method does not exist. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.remove */
|
|
215
|
+
export const removeTriggersPermissions = /*@__PURE__*/ API.make(() => ({
|
|
216
|
+
input: RemoveTriggersPermissionsRequest,
|
|
217
|
+
output: RemoveTriggersPermissionsResponse,
|
|
218
|
+
errors: [SlackError, SlackRateLimited],
|
|
219
|
+
protocol: SlackProtocol,
|
|
220
|
+
retry: Retry.Retry,
|
|
221
|
+
}));
|
|
222
|
+
/** Set featured workflows for a channel. Required scopes — bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` — Method not yet supported - `restricted_action` — User does not have access to this method. - `error_modifying_workflows` — Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.set */
|
|
223
|
+
export const setFeatured = /*@__PURE__*/ API.make(() => ({
|
|
224
|
+
input: SetFeaturedRequest,
|
|
225
|
+
output: SetFeaturedResponse,
|
|
226
|
+
errors: [SlackError, SlackRateLimited],
|
|
227
|
+
protocol: SlackProtocol,
|
|
228
|
+
retry: Retry.Retry,
|
|
229
|
+
}));
|
|
230
|
+
/** Set the permission type for who can run a trigger Required scopes — bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` — This actor does not have access to the permissions on this resource. - `channel_not_found` — One or more of the listed channels could not be found. - `connected_org_denied` — The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` — The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` — The workspace admin does not allow connected users to be named_entities. - `external_workspace_denied` — The channel selected is not on the workflow team. - `invalid_permission_type` — This function requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` — Must pass at least one valid named entity. - `no_valid_named_entities` — None of the provided named entities were valid - `org_not_found` — One or more of the listed organizations could not be found. - `org_not_connected` — One of more of the listed organizations were not connected. - `shared_channel_denied` — The workspace admin does not allow shared channels to be named_entities. - `team_not_connected` — One of more of the listed teams were not connected by org. - `team_not_found` — One or more of the listed teams could not be found. - `too_many_named_entities` — Too many named_entities passed into the trigger permissions setting. - `trigger_not_found` — This trigger does not exist. - `unknown_method` — This method does not exist. - `user_not_found` — One or more of the listed users could not be found. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.set */
|
|
231
|
+
export const setTriggersPermissions = /*@__PURE__*/ API.make(() => ({
|
|
232
|
+
input: SetTriggersPermissionsRequest,
|
|
233
|
+
output: SetTriggersPermissionsResponse,
|
|
234
|
+
errors: [SlackError, SlackRateLimited],
|
|
235
|
+
protocol: SlackProtocol,
|
|
236
|
+
retry: Retry.Retry,
|
|
237
|
+
}));
|
|
238
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,aAAa,GAGd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK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sBAAsB,GAK/B,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,6BAA6B;IACpC,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
package/lib/traits.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slack SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place. Slack speaks bearer-token JSON with the
|
|
6
|
+
* `ok`/`error` envelope handled entirely by the protocol, so there are no
|
|
7
|
+
* provider-specific traits.
|
|
8
|
+
*/
|
|
9
|
+
export { Body, Header, Query, Label, Http, ResponseCode, HttpBody, FormDataFile, KeyDictionary, UnionCases, applyErrorMatchers, getErrorMatchers, type HttpTrait, type ErrorMatcher, bodySymbol, headerSymbol, querySymbol, labelSymbol, httpSymbol, responseCodeSymbol, httpBodySymbol, formDataFileSymbol, keyDictionarySymbol, unionCasesSymbol, errorMatchersSymbol, } from "@distilled.cloud/core/trait";
|
|
10
|
+
export { SensitiveValue, RawResponse, RawResponseRoot, sensitiveValueSymbol, rawResponseSymbol, rawResponseRootSymbol, } from "@distilled.cloud/core/protocol-rest";
|
|
11
|
+
//# sourceMappingURL=traits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traits.d.ts","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC"}
|
package/lib/traits.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slack SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place. Slack speaks bearer-token JSON with the
|
|
6
|
+
* `ok`/`error` envelope handled entirely by the protocol, so there are no
|
|
7
|
+
* provider-specific traits.
|
|
8
|
+
*/
|
|
9
|
+
export { Body, Header, Query, Label, Http, ResponseCode, HttpBody, FormDataFile, KeyDictionary, UnionCases, applyErrorMatchers, getErrorMatchers, bodySymbol, headerSymbol, querySymbol, labelSymbol, httpSymbol, responseCodeSymbol, httpBodySymbol, formDataFileSymbol, keyDictionarySymbol, unionCasesSymbol, errorMatchersSymbol, } from "@distilled.cloud/core/trait";
|
|
10
|
+
// Bearer-REST protocol traits (sensitive strings, bare-payload responses).
|
|
11
|
+
export { SensitiveValue, RawResponse, RawResponseRoot, sensitiveValueSymbol, rawResponseSymbol, rawResponseRootSymbol, } from "@distilled.cloud/core/protocol-rest";
|
|
12
|
+
//# sourceMappingURL=traits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traits.js","sourceRoot":"","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAGhB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,2EAA2E;AAC3E,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC"}
|