@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.16
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/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +39 -34
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +31 -31
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +41 -41
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +9 -9
- package/lib/pagination.d.ts +2 -2
- package/lib/pagination.js +28 -28
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +61 -59
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +34 -33
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +123 -575
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +304 -2878
- package/lib/services/agents.d.ts +13 -55
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +48 -309
- package/lib/services/api.d.ts +0 -4
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +16 -18
- package/lib/services/apps.d.ts +25 -106
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +84 -509
- package/lib/services/assistant.d.ts +6 -40
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +33 -204
- package/lib/services/auth.d.ts +4 -15
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +22 -90
- package/lib/services/blocks.d.ts +1 -7
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +16 -21
- package/lib/services/bookmarks.d.ts +4 -15
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +27 -76
- package/lib/services/bots.d.ts +1 -9
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +17 -54
- package/lib/services/calls.d.ts +6 -22
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -110
- package/lib/services/canvases.d.ts +7 -35
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +39 -135
- package/lib/services/chat.d.ts +14 -83
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +59 -381
- package/lib/services/conversations.d.ts +31 -116
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +94 -690
- package/lib/services/dialog.d.ts +1 -4
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +13 -17
- package/lib/services/dnd.d.ts +5 -17
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +26 -91
- package/lib/services/emoji.d.ts +1 -8
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +18 -29
- package/lib/services/entity.d.ts +4 -16
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +29 -71
- package/lib/services/files.d.ts +16 -80
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +75 -433
- package/lib/services/functions.d.ts +8 -49
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +45 -203
- package/lib/services/lists.d.ts +13 -55
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +53 -248
- package/lib/services/migration.d.ts +1 -7
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +18 -27
- package/lib/services/oauth.d.ts +7 -43
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +34 -289
- package/lib/services/openid.d.ts +3 -10
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +19 -79
- package/lib/services/pins.d.ts +3 -13
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +27 -61
- package/lib/services/reactions.d.ts +5 -17
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +30 -96
- package/lib/services/reminders.d.ts +5 -17
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +33 -83
- package/lib/services/rtm.d.ts +2 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +22 -56
- package/lib/services/search.d.ts +4 -35
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +28 -167
- package/lib/services/stars.d.ts +4 -26
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +28 -128
- package/lib/services/team.d.ts +11 -63
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +45 -289
- package/lib/services/tooling.d.ts +2 -5
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +15 -28
- package/lib/services/usergroups.d.ts +7 -31
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +40 -146
- package/lib/services/users.d.ts +14 -48
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +54 -249
- package/lib/services/views.d.ts +4 -14
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +28 -73
- package/lib/services/workflows.d.ts +8 -51
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +37 -188
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +14 -10
- 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/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/services/admin.js.map +0 -1
- package/lib/services/agents.js.map +0 -1
- package/lib/services/api.js.map +0 -1
- package/lib/services/apps.js.map +0 -1
- package/lib/services/assistant.js.map +0 -1
- package/lib/services/auth.js.map +0 -1
- package/lib/services/blocks.js.map +0 -1
- package/lib/services/bookmarks.js.map +0 -1
- package/lib/services/bots.js.map +0 -1
- package/lib/services/calls.js.map +0 -1
- package/lib/services/canvases.js.map +0 -1
- package/lib/services/chat.js.map +0 -1
- package/lib/services/conversations.js.map +0 -1
- package/lib/services/dialog.js.map +0 -1
- package/lib/services/dnd.js.map +0 -1
- package/lib/services/emoji.js.map +0 -1
- package/lib/services/entity.js.map +0 -1
- package/lib/services/files.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/lists.js.map +0 -1
- package/lib/services/migration.js.map +0 -1
- package/lib/services/oauth.js.map +0 -1
- package/lib/services/openid.js.map +0 -1
- package/lib/services/pins.js.map +0 -1
- package/lib/services/reactions.js.map +0 -1
- package/lib/services/reminders.js.map +0 -1
- package/lib/services/rtm.js.map +0 -1
- package/lib/services/search.js.map +0 -1
- package/lib/services/stars.js.map +0 -1
- package/lib/services/team.js.map +0 -1
- package/lib/services/tooling.js.map +0 -1
- package/lib/services/usergroups.js.map +0 -1
- package/lib/services/users.js.map +0 -1
- package/lib/services/views.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -372
package/src/services/team.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
4
5
|
import { SlackError, SlackRateLimited } from "../errors.ts";
|
|
5
6
|
import { slackPaginate } from "../pagination.ts";
|
|
6
7
|
import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { SlackOpError, SlackOpContext };
|
|
11
14
|
|
|
12
15
|
export type AccessLogsRequestBeforeCase0 = "now";
|
|
13
|
-
export const AccessLogsRequestBeforeCase0 = S.String;
|
|
14
|
-
|
|
15
16
|
export type AccessLogsRequestBefore = AccessLogsRequestBeforeCase0 | (string & {}) | string;
|
|
16
|
-
export const AccessLogsRequestBefore = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
|
|
17
|
-
|
|
18
17
|
export interface AccessLogsRequest {
|
|
19
18
|
/** End of time range of logs to include in results (inclusive). */
|
|
20
19
|
before?: AccessLogsRequestBefore;
|
|
@@ -27,17 +26,6 @@ export interface AccessLogsRequest {
|
|
|
27
26
|
/** encoded team id to get logs from, required if org token is used */
|
|
28
27
|
team_id?: string;
|
|
29
28
|
}
|
|
30
|
-
export const AccessLogsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
31
|
-
S.Struct({
|
|
32
|
-
before: S.optional(AccessLogsRequestBefore.pipe(T.Query())),
|
|
33
|
-
count: S.optional(S.String.pipe(T.Query())),
|
|
34
|
-
page: S.optional(S.String.pipe(T.Query())),
|
|
35
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
36
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
37
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
38
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.accessLogs", code: 200 })),
|
|
39
|
-
).annotate({ identifier: "AccessLogsRequest" }) as any as S.Schema<AccessLogsRequest>;
|
|
40
|
-
|
|
41
29
|
export interface AccessLogsResponseLoginsItem {
|
|
42
30
|
username: string;
|
|
43
31
|
count: number;
|
|
@@ -50,56 +38,18 @@ export interface AccessLogsResponseLoginsItem {
|
|
|
50
38
|
date_first: number;
|
|
51
39
|
date_last: number;
|
|
52
40
|
}
|
|
53
|
-
export const AccessLogsResponseLoginsItem = /*@__PURE__*/ S.suspend(() =>
|
|
54
|
-
S.Struct({
|
|
55
|
-
username: S.String,
|
|
56
|
-
count: S.Number,
|
|
57
|
-
user_id: S.String,
|
|
58
|
-
ip: S.String,
|
|
59
|
-
region: S.NullOr(S.String),
|
|
60
|
-
isp: S.NullOr(S.String),
|
|
61
|
-
user_agent: S.String,
|
|
62
|
-
country: S.NullOr(S.String),
|
|
63
|
-
date_first: S.Number,
|
|
64
|
-
date_last: S.Number,
|
|
65
|
-
}),
|
|
66
|
-
).annotate({
|
|
67
|
-
identifier: "AccessLogsResponseLoginsItem",
|
|
68
|
-
}) as any as S.Schema<AccessLogsResponseLoginsItem>;
|
|
69
|
-
|
|
70
41
|
export type AccessLogsResponseLoginsList = Array<AccessLogsResponseLoginsItem>;
|
|
71
|
-
export const AccessLogsResponseLoginsList = /*@__PURE__*/ S.Array(
|
|
72
|
-
AccessLogsResponseLoginsItem,
|
|
73
|
-
) as any as S.Schema<AccessLogsResponseLoginsList>;
|
|
74
|
-
|
|
75
42
|
export interface AccessLogsResponsePaging {
|
|
76
43
|
count: number;
|
|
77
44
|
total: number;
|
|
78
45
|
page: number;
|
|
79
46
|
pages: number;
|
|
80
47
|
}
|
|
81
|
-
export const AccessLogsResponsePaging = /*@__PURE__*/ S.suspend(() =>
|
|
82
|
-
S.Struct({
|
|
83
|
-
count: S.Number,
|
|
84
|
-
total: S.Number,
|
|
85
|
-
page: S.Number,
|
|
86
|
-
pages: S.Number,
|
|
87
|
-
}),
|
|
88
|
-
).annotate({ identifier: "AccessLogsResponsePaging" }) as any as S.Schema<AccessLogsResponsePaging>;
|
|
89
|
-
|
|
90
48
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
91
49
|
export interface AccessLogsResponseResponseMetadata {
|
|
92
|
-
/** Cursor for the next page
|
|
50
|
+
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
93
51
|
next_cursor?: string;
|
|
94
52
|
}
|
|
95
|
-
export const AccessLogsResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
96
|
-
S.Struct({
|
|
97
|
-
next_cursor: S.optional(S.String),
|
|
98
|
-
}),
|
|
99
|
-
).annotate({
|
|
100
|
-
identifier: "AccessLogsResponseResponseMetadata",
|
|
101
|
-
}) as any as S.Schema<AccessLogsResponseResponseMetadata>;
|
|
102
|
-
|
|
103
53
|
export interface AccessLogsResponse {
|
|
104
54
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
105
55
|
ok: boolean;
|
|
@@ -108,15 +58,6 @@ export interface AccessLogsResponse {
|
|
|
108
58
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
109
59
|
response_metadata?: AccessLogsResponseResponseMetadata;
|
|
110
60
|
}
|
|
111
|
-
export const AccessLogsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
-
S.Struct({
|
|
113
|
-
ok: S.Boolean,
|
|
114
|
-
logins: AccessLogsResponseLoginsList,
|
|
115
|
-
paging: S.optional(AccessLogsResponsePaging),
|
|
116
|
-
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
117
|
-
}),
|
|
118
|
-
).annotate({ identifier: "AccessLogsResponse" }) as any as S.Schema<AccessLogsResponse>;
|
|
119
|
-
|
|
120
61
|
export interface BillableInfoRequest {
|
|
121
62
|
/** Set `cursor` to `next_cursor` returned by previous call, to indicate from where you want to list next page of users list. Default value fetches the first page. */
|
|
122
63
|
cursor?: string;
|
|
@@ -127,25 +68,9 @@ export interface BillableInfoRequest {
|
|
|
127
68
|
/** encoded team id to get the billable information from, required if org token is used */
|
|
128
69
|
team_id?: string;
|
|
129
70
|
}
|
|
130
|
-
export const BillableInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
131
|
-
S.Struct({
|
|
132
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
133
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
134
|
-
user: S.optional(S.String.pipe(T.Query())),
|
|
135
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
136
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.billableInfo", code: 200 })),
|
|
137
|
-
).annotate({ identifier: "BillableInfoRequest" }) as any as S.Schema<BillableInfoRequest>;
|
|
138
|
-
|
|
139
71
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
140
72
|
export type BillableInfoResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
141
|
-
export const BillableInfoResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
142
|
-
|
|
143
73
|
export type BillableInfoResponseBillableInfoMap = { [key: string]: unknown | undefined };
|
|
144
|
-
export const BillableInfoResponseBillableInfoMap = /*@__PURE__*/ S.Record(
|
|
145
|
-
S.String,
|
|
146
|
-
S.Unknown,
|
|
147
|
-
) as any as S.Schema<BillableInfoResponseBillableInfoMap>;
|
|
148
|
-
|
|
149
74
|
export interface BillableInfoResponse {
|
|
150
75
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
151
76
|
ok: boolean;
|
|
@@ -153,120 +78,43 @@ export interface BillableInfoResponse {
|
|
|
153
78
|
response_metadata?: AccessLogsResponseResponseMetadata;
|
|
154
79
|
billable_info: BillableInfoResponseBillableInfoMap;
|
|
155
80
|
}
|
|
156
|
-
export const BillableInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
157
|
-
S.Struct({
|
|
158
|
-
ok: S.Boolean,
|
|
159
|
-
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
160
|
-
billable_info: BillableInfoResponseBillableInfoMap,
|
|
161
|
-
}),
|
|
162
|
-
).annotate({ identifier: "BillableInfoResponse" }) as any as S.Schema<BillableInfoResponse>;
|
|
163
|
-
|
|
164
81
|
export interface BillingInfoRequest {}
|
|
165
|
-
export const BillingInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
166
|
-
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.billing.info", code: 200 })),
|
|
167
|
-
).annotate({ identifier: "BillingInfoRequest" }) as any as S.Schema<BillingInfoRequest>;
|
|
168
|
-
|
|
169
82
|
export interface BillingInfoResponse {
|
|
170
83
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
171
84
|
ok: boolean;
|
|
172
85
|
plan: string;
|
|
173
86
|
}
|
|
174
|
-
export const BillingInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
175
|
-
S.Struct({
|
|
176
|
-
ok: S.Boolean,
|
|
177
|
-
plan: S.String,
|
|
178
|
-
}),
|
|
179
|
-
).annotate({ identifier: "BillingInfoResponse" }) as any as S.Schema<BillingInfoResponse>;
|
|
180
|
-
|
|
181
87
|
export interface DisconnectExternalTeamRequest {
|
|
182
88
|
/** The team ID of the target team. */
|
|
183
89
|
target_team: string;
|
|
184
90
|
}
|
|
185
|
-
export const DisconnectExternalTeamRequest = /*@__PURE__*/ S.suspend(() =>
|
|
186
|
-
S.Struct({
|
|
187
|
-
target_team: S.String,
|
|
188
|
-
}).pipe(
|
|
189
|
-
T.Http({
|
|
190
|
-
method: "POST",
|
|
191
|
-
uri: "/team.externalTeams.disconnect",
|
|
192
|
-
code: 200,
|
|
193
|
-
contentType: "form-urlencoded",
|
|
194
|
-
}),
|
|
195
|
-
),
|
|
196
|
-
).annotate({
|
|
197
|
-
identifier: "DisconnectExternalTeamRequest",
|
|
198
|
-
}) as any as S.Schema<DisconnectExternalTeamRequest>;
|
|
199
|
-
|
|
200
91
|
export interface DisconnectExternalTeamResponse {
|
|
201
92
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
202
93
|
ok: boolean;
|
|
203
94
|
job_enqueued: boolean;
|
|
204
95
|
}
|
|
205
|
-
export const DisconnectExternalTeamResponse = /*@__PURE__*/ S.suspend(() =>
|
|
206
|
-
S.Struct({
|
|
207
|
-
ok: S.Boolean,
|
|
208
|
-
job_enqueued: S.Boolean,
|
|
209
|
-
}),
|
|
210
|
-
).annotate({
|
|
211
|
-
identifier: "DisconnectExternalTeamResponse",
|
|
212
|
-
}) as any as S.Schema<DisconnectExternalTeamResponse>;
|
|
213
|
-
|
|
214
96
|
export type GetProfileRequestVisibility = "all" | "visible" | "hidden";
|
|
215
|
-
export const GetProfileRequestVisibility = S.String;
|
|
216
|
-
|
|
217
97
|
export interface GetProfileRequest {
|
|
218
98
|
/** Filter by visibility. */
|
|
219
99
|
visibility?: GetProfileRequestVisibility | (string & {});
|
|
220
100
|
}
|
|
221
|
-
export const GetProfileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
222
|
-
S.Struct({
|
|
223
|
-
visibility: S.optional(GetProfileRequestVisibility.pipe(T.Query())),
|
|
224
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.profile.get", code: 200 })),
|
|
225
|
-
).annotate({ identifier: "GetProfileRequest" }) as any as S.Schema<GetProfileRequest>;
|
|
226
|
-
|
|
227
101
|
export type GetProfileResponseProfileFieldsList = Array<unknown>;
|
|
228
|
-
export const GetProfileResponseProfileFieldsList = /*@__PURE__*/ S.Array(
|
|
229
|
-
S.Unknown,
|
|
230
|
-
) as any as S.Schema<GetProfileResponseProfileFieldsList>;
|
|
231
|
-
|
|
232
102
|
export type GetProfileResponseProfileSectionsList = Array<unknown>;
|
|
233
|
-
export const GetProfileResponseProfileSectionsList = /*@__PURE__*/ S.Array(
|
|
234
|
-
S.Unknown,
|
|
235
|
-
) as any as S.Schema<GetProfileResponseProfileSectionsList>;
|
|
236
|
-
|
|
237
103
|
export interface GetProfileResponseProfile {
|
|
238
104
|
fields?: GetProfileResponseProfileFieldsList;
|
|
239
105
|
sections?: GetProfileResponseProfileSectionsList;
|
|
240
106
|
}
|
|
241
|
-
export const GetProfileResponseProfile = /*@__PURE__*/ S.suspend(() =>
|
|
242
|
-
S.Struct({
|
|
243
|
-
fields: S.optional(GetProfileResponseProfileFieldsList),
|
|
244
|
-
sections: S.optional(GetProfileResponseProfileSectionsList),
|
|
245
|
-
}),
|
|
246
|
-
).annotate({
|
|
247
|
-
identifier: "GetProfileResponseProfile",
|
|
248
|
-
}) as any as S.Schema<GetProfileResponseProfile>;
|
|
249
|
-
|
|
250
107
|
export interface GetProfileResponse {
|
|
251
108
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
252
109
|
ok: boolean;
|
|
253
110
|
profile: GetProfileResponseProfile;
|
|
254
111
|
}
|
|
255
|
-
export const GetProfileResponse = /*@__PURE__*/ S.suspend(() =>
|
|
256
|
-
S.Struct({
|
|
257
|
-
ok: S.Boolean,
|
|
258
|
-
profile: GetProfileResponseProfile,
|
|
259
|
-
}),
|
|
260
|
-
).annotate({ identifier: "GetProfileResponse" }) as any as S.Schema<GetProfileResponse>;
|
|
261
|
-
|
|
262
112
|
export type IntegrationLogsRequestChangeType =
|
|
263
113
|
| "added"
|
|
264
114
|
| "removed"
|
|
265
115
|
| "enabled"
|
|
266
116
|
| "disabled"
|
|
267
117
|
| "updated";
|
|
268
|
-
export const IntegrationLogsRequestChangeType = S.String;
|
|
269
|
-
|
|
270
118
|
export interface IntegrationLogsRequest {
|
|
271
119
|
/** Filter logs to this Slack app. Defaults to all logs. */
|
|
272
120
|
app_id?: string;
|
|
@@ -278,55 +126,22 @@ export interface IntegrationLogsRequest {
|
|
|
278
126
|
service_id?: string;
|
|
279
127
|
/** encoded team id to get logs from, required if org token is used */
|
|
280
128
|
team_id?: string;
|
|
281
|
-
/** Filter logs generated by this user
|
|
129
|
+
/** Filter logs generated by this user's actions. Defaults to all logs. */
|
|
282
130
|
user?: string;
|
|
283
131
|
}
|
|
284
|
-
export const IntegrationLogsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
285
|
-
S.Struct({
|
|
286
|
-
app_id: S.optional(S.String.pipe(T.Query())),
|
|
287
|
-
change_type: S.optional(IntegrationLogsRequestChangeType.pipe(T.Query())),
|
|
288
|
-
count: S.optional(S.String.pipe(T.Query())),
|
|
289
|
-
page: S.optional(S.String.pipe(T.Query())),
|
|
290
|
-
service_id: S.optional(S.String.pipe(T.Query())),
|
|
291
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
292
|
-
user: S.optional(S.String.pipe(T.Query())),
|
|
293
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.integrationLogs", code: 200 })),
|
|
294
|
-
).annotate({ identifier: "IntegrationLogsRequest" }) as any as S.Schema<IntegrationLogsRequest>;
|
|
295
|
-
|
|
296
132
|
export type IntegrationLogsResponseLogsItemMap = { [key: string]: unknown | undefined };
|
|
297
|
-
export const IntegrationLogsResponseLogsItemMap = /*@__PURE__*/ S.Record(
|
|
298
|
-
S.String,
|
|
299
|
-
S.Unknown,
|
|
300
|
-
) as any as S.Schema<IntegrationLogsResponseLogsItemMap>;
|
|
301
|
-
|
|
302
133
|
export type IntegrationLogsResponseLogsList = Array<IntegrationLogsResponseLogsItemMap>;
|
|
303
|
-
export const IntegrationLogsResponseLogsList = /*@__PURE__*/ S.Array(
|
|
304
|
-
IntegrationLogsResponseLogsItemMap,
|
|
305
|
-
) as any as S.Schema<IntegrationLogsResponseLogsList>;
|
|
306
|
-
|
|
307
134
|
export interface IntegrationLogsResponse {
|
|
308
135
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
309
136
|
ok: boolean;
|
|
310
137
|
paging: unknown;
|
|
311
138
|
logs: IntegrationLogsResponseLogsList;
|
|
312
139
|
}
|
|
313
|
-
export const IntegrationLogsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
314
|
-
S.Struct({
|
|
315
|
-
ok: S.Boolean,
|
|
316
|
-
paging: S.Unknown,
|
|
317
|
-
logs: IntegrationLogsResponseLogsList,
|
|
318
|
-
}),
|
|
319
|
-
).annotate({ identifier: "IntegrationLogsResponse" }) as any as S.Schema<IntegrationLogsResponse>;
|
|
320
|
-
|
|
321
140
|
export type ListExternalTeamsRequestSortField =
|
|
322
141
|
| "team_name"
|
|
323
142
|
| "last_active_timestamp"
|
|
324
143
|
| "connection_status";
|
|
325
|
-
export const ListExternalTeamsRequestSortField = S.String;
|
|
326
|
-
|
|
327
144
|
export type ListExternalTeamsRequestSortDirection = "asc" | "desc";
|
|
328
|
-
export const ListExternalTeamsRequestSortDirection = S.String;
|
|
329
|
-
|
|
330
145
|
export type ListExternalTeamsRequestSlackConnectPrefFilterItem =
|
|
331
146
|
| "approved_orgs_only"
|
|
332
147
|
| "allow_sc_file_uploads"
|
|
@@ -338,27 +153,15 @@ export type ListExternalTeamsRequestSlackConnectPrefFilterItem =
|
|
|
338
153
|
| "external_awareness_context_bar"
|
|
339
154
|
| "interact_with_externally_owned_workflows"
|
|
340
155
|
| "external_teams_interact_with_locally_owned_workflows";
|
|
341
|
-
export const ListExternalTeamsRequestSlackConnectPrefFilterItem = S.String;
|
|
342
|
-
|
|
343
156
|
export type ListExternalTeamsRequestSlackConnectPrefFilterList = Array<
|
|
344
157
|
ListExternalTeamsRequestSlackConnectPrefFilterItem | (string & {})
|
|
345
158
|
>;
|
|
346
|
-
export const ListExternalTeamsRequestSlackConnectPrefFilterList = /*@__PURE__*/ S.Array(
|
|
347
|
-
ListExternalTeamsRequestSlackConnectPrefFilterItem,
|
|
348
|
-
) as any as S.Schema<ListExternalTeamsRequestSlackConnectPrefFilterList>;
|
|
349
|
-
|
|
350
159
|
export type ListExternalTeamsRequestWorkspaceFilterList = Array<string>;
|
|
351
|
-
export const ListExternalTeamsRequestWorkspaceFilterList = /*@__PURE__*/ S.Array(
|
|
352
|
-
S.String,
|
|
353
|
-
) as any as S.Schema<ListExternalTeamsRequestWorkspaceFilterList>;
|
|
354
|
-
|
|
355
160
|
export type ListExternalTeamsRequestConnectionStatusFilter =
|
|
356
161
|
| "CONNECTED"
|
|
357
162
|
| "DISCONNECTED"
|
|
358
163
|
| "BLOCKED"
|
|
359
164
|
| "IN_REVIEW";
|
|
360
|
-
export const ListExternalTeamsRequestConnectionStatusFilter = S.String;
|
|
361
|
-
|
|
362
165
|
export interface ListExternalTeamsRequest {
|
|
363
166
|
/** The maximum number of items to return per page */
|
|
364
167
|
limit?: number;
|
|
@@ -375,44 +178,13 @@ export interface ListExternalTeamsRequest {
|
|
|
375
178
|
/** Status of the connected team. */
|
|
376
179
|
connection_status_filter?: ListExternalTeamsRequestConnectionStatusFilter | (string & {});
|
|
377
180
|
}
|
|
378
|
-
export const ListExternalTeamsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
379
|
-
S.Struct({
|
|
380
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
381
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
382
|
-
sort_field: S.optional(ListExternalTeamsRequestSortField.pipe(T.Query())),
|
|
383
|
-
sort_direction: S.optional(ListExternalTeamsRequestSortDirection.pipe(T.Query())),
|
|
384
|
-
slack_connect_pref_filter: S.optional(
|
|
385
|
-
ListExternalTeamsRequestSlackConnectPrefFilterList.pipe(T.Query()),
|
|
386
|
-
),
|
|
387
|
-
workspace_filter: S.optional(ListExternalTeamsRequestWorkspaceFilterList.pipe(T.Query())),
|
|
388
|
-
connection_status_filter: S.optional(
|
|
389
|
-
ListExternalTeamsRequestConnectionStatusFilter.pipe(T.Query()),
|
|
390
|
-
),
|
|
391
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.externalTeams.list", code: 200 })),
|
|
392
|
-
).annotate({ identifier: "ListExternalTeamsRequest" }) as any as S.Schema<ListExternalTeamsRequest>;
|
|
393
|
-
|
|
394
181
|
export interface ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem {
|
|
395
182
|
workspace_id: string;
|
|
396
183
|
/** Name of the workspace. */
|
|
397
184
|
workspace_name: string;
|
|
398
185
|
}
|
|
399
|
-
export const ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem =
|
|
400
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
401
|
-
S.Struct({
|
|
402
|
-
workspace_id: S.String,
|
|
403
|
-
workspace_name: S.String,
|
|
404
|
-
}),
|
|
405
|
-
).annotate({
|
|
406
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem",
|
|
407
|
-
}) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem>;
|
|
408
|
-
|
|
409
186
|
export type ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList =
|
|
410
187
|
Array<ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem>;
|
|
411
|
-
export const ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList =
|
|
412
|
-
/*@__PURE__*/ S.Array(
|
|
413
|
-
ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem,
|
|
414
|
-
) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList>;
|
|
415
|
-
|
|
416
188
|
/** Status of the connected team. (CONNECTED / DISCONNECTED / BLOCKED / IN_REVIEW / DISCONNECTiNG) */
|
|
417
189
|
export type ListExternalTeamsResponseOrganizationsItemConnectionStatus =
|
|
418
190
|
| "CONNECTED"
|
|
@@ -420,67 +192,24 @@ export type ListExternalTeamsResponseOrganizationsItemConnectionStatus =
|
|
|
420
192
|
| "BLOCKED"
|
|
421
193
|
| "IN_REVIEW"
|
|
422
194
|
| "DISCONNECTING";
|
|
423
|
-
export const ListExternalTeamsResponseOrganizationsItemConnectionStatus = S.String;
|
|
424
|
-
|
|
425
195
|
export interface ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem {
|
|
426
196
|
team_id: string;
|
|
427
197
|
count: number;
|
|
428
198
|
}
|
|
429
|
-
export const ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem =
|
|
430
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
431
|
-
S.Struct({
|
|
432
|
-
team_id: S.String,
|
|
433
|
-
count: S.Number,
|
|
434
|
-
}),
|
|
435
|
-
).annotate({
|
|
436
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem",
|
|
437
|
-
}) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem>;
|
|
438
|
-
|
|
439
199
|
export type ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList =
|
|
440
200
|
Array<ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem>;
|
|
441
|
-
export const ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList =
|
|
442
|
-
/*@__PURE__*/ S.Array(
|
|
443
|
-
ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem,
|
|
444
|
-
) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList>;
|
|
445
|
-
|
|
446
201
|
export interface ListExternalTeamsResponseOrganizationsItemCanvas {
|
|
447
202
|
total_count: number;
|
|
448
203
|
ownership_details: ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList;
|
|
449
204
|
}
|
|
450
|
-
export const ListExternalTeamsResponseOrganizationsItemCanvas = /*@__PURE__*/ S.suspend(() =>
|
|
451
|
-
S.Struct({
|
|
452
|
-
total_count: S.Number,
|
|
453
|
-
ownership_details: ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList,
|
|
454
|
-
}),
|
|
455
|
-
).annotate({
|
|
456
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemCanvas",
|
|
457
|
-
}) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemCanvas>;
|
|
458
|
-
|
|
459
205
|
export type ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsItem =
|
|
460
206
|
ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem;
|
|
461
|
-
export const ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsItem =
|
|
462
|
-
ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem;
|
|
463
|
-
|
|
464
207
|
export type ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList =
|
|
465
208
|
Array<ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem>;
|
|
466
|
-
export const ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList =
|
|
467
|
-
/*@__PURE__*/ S.Array(
|
|
468
|
-
ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem,
|
|
469
|
-
) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList>;
|
|
470
|
-
|
|
471
209
|
export interface ListExternalTeamsResponseOrganizationsItemLists {
|
|
472
210
|
total_count: number;
|
|
473
211
|
ownership_details: ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList;
|
|
474
212
|
}
|
|
475
|
-
export const ListExternalTeamsResponseOrganizationsItemLists = /*@__PURE__*/ S.suspend(() =>
|
|
476
|
-
S.Struct({
|
|
477
|
-
total_count: S.Number,
|
|
478
|
-
ownership_details: ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList,
|
|
479
|
-
}),
|
|
480
|
-
).annotate({
|
|
481
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemLists",
|
|
482
|
-
}) as any as S.Schema<ListExternalTeamsResponseOrganizationsItemLists>;
|
|
483
|
-
|
|
484
213
|
export interface ListExternalTeamsResponseOrganizationsItem {
|
|
485
214
|
team_id: string;
|
|
486
215
|
/** Name of the team that is connected */
|
|
@@ -506,37 +235,10 @@ export interface ListExternalTeamsResponseOrganizationsItem {
|
|
|
506
235
|
canvas?: ListExternalTeamsResponseOrganizationsItemCanvas;
|
|
507
236
|
lists?: ListExternalTeamsResponseOrganizationsItemLists;
|
|
508
237
|
}
|
|
509
|
-
export const ListExternalTeamsResponseOrganizationsItem = /*@__PURE__*/ S.suspend(() =>
|
|
510
|
-
S.Struct({
|
|
511
|
-
team_id: S.String,
|
|
512
|
-
team_name: S.String,
|
|
513
|
-
team_domain: S.String,
|
|
514
|
-
public_channel_count: S.Number,
|
|
515
|
-
private_channel_count: S.Number,
|
|
516
|
-
im_channel_count: S.Number,
|
|
517
|
-
mpim_channel_count: S.Number,
|
|
518
|
-
connected_workspaces: ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList,
|
|
519
|
-
slack_connect_prefs: S.Unknown,
|
|
520
|
-
connection_status: ListExternalTeamsResponseOrganizationsItemConnectionStatus,
|
|
521
|
-
last_active_timestamp: S.Number,
|
|
522
|
-
is_sponsored: S.Boolean,
|
|
523
|
-
canvas: S.optional(ListExternalTeamsResponseOrganizationsItemCanvas),
|
|
524
|
-
lists: S.optional(ListExternalTeamsResponseOrganizationsItemLists),
|
|
525
|
-
}),
|
|
526
|
-
).annotate({
|
|
527
|
-
identifier: "ListExternalTeamsResponseOrganizationsItem",
|
|
528
|
-
}) as any as S.Schema<ListExternalTeamsResponseOrganizationsItem>;
|
|
529
|
-
|
|
530
238
|
export type ListExternalTeamsResponseOrganizationsList =
|
|
531
239
|
Array<ListExternalTeamsResponseOrganizationsItem>;
|
|
532
|
-
export const ListExternalTeamsResponseOrganizationsList = /*@__PURE__*/ S.Array(
|
|
533
|
-
ListExternalTeamsResponseOrganizationsItem,
|
|
534
|
-
) as any as S.Schema<ListExternalTeamsResponseOrganizationsList>;
|
|
535
|
-
|
|
536
240
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
537
241
|
export type ListExternalTeamsResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
538
|
-
export const ListExternalTeamsResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
539
|
-
|
|
540
242
|
export interface ListExternalTeamsResponse {
|
|
541
243
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
542
244
|
ok: boolean;
|
|
@@ -545,22 +247,7 @@ export interface ListExternalTeamsResponse {
|
|
|
545
247
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
546
248
|
response_metadata?: AccessLogsResponseResponseMetadata;
|
|
547
249
|
}
|
|
548
|
-
export const ListExternalTeamsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
549
|
-
S.Struct({
|
|
550
|
-
ok: S.Boolean,
|
|
551
|
-
organizations: ListExternalTeamsResponseOrganizationsList,
|
|
552
|
-
total_count: S.Number,
|
|
553
|
-
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
554
|
-
}),
|
|
555
|
-
).annotate({
|
|
556
|
-
identifier: "ListExternalTeamsResponse",
|
|
557
|
-
}) as any as S.Schema<ListExternalTeamsResponse>;
|
|
558
|
-
|
|
559
250
|
export interface ListPreferencesRequest {}
|
|
560
|
-
export const ListPreferencesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
561
|
-
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.preferences.list", code: 200 })),
|
|
562
|
-
).annotate({ identifier: "ListPreferencesRequest" }) as any as S.Schema<ListPreferencesRequest>;
|
|
563
|
-
|
|
564
251
|
export interface ListPreferencesResponse {
|
|
565
252
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
566
253
|
ok: boolean;
|
|
@@ -569,41 +256,18 @@ export interface ListPreferencesResponse {
|
|
|
569
256
|
msg_edit_window_mins: number;
|
|
570
257
|
who_can_post_general: string;
|
|
571
258
|
}
|
|
572
|
-
export const ListPreferencesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
573
|
-
S.Struct({
|
|
574
|
-
ok: S.Boolean,
|
|
575
|
-
display_real_names: S.Boolean,
|
|
576
|
-
disable_file_uploads: S.String,
|
|
577
|
-
msg_edit_window_mins: S.Number,
|
|
578
|
-
who_can_post_general: S.String,
|
|
579
|
-
}),
|
|
580
|
-
).annotate({ identifier: "ListPreferencesResponse" }) as any as S.Schema<ListPreferencesResponse>;
|
|
581
|
-
|
|
582
259
|
export interface TeamInfoRequest {
|
|
583
260
|
/** Query by domain instead of team (only when team is null). This only works for domains in the same enterprise as the querying team token. This also expects the domain to belong to a team and not the enterprise itself. This is the value set up for the 'Joining This Workspace' workspace setting. If it contains more than one domain, the field will contain multiple comma-separated domain values. If no domain is set, the field is empty. */
|
|
584
261
|
domain?: string;
|
|
585
262
|
/** Team to get info about; if omitted, will return information about the current team. */
|
|
586
263
|
team?: string;
|
|
587
264
|
}
|
|
588
|
-
export const TeamInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
589
|
-
S.Struct({
|
|
590
|
-
domain: S.optional(S.String.pipe(T.Query())),
|
|
591
|
-
team: S.optional(S.String.pipe(T.Query())),
|
|
592
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.info", code: 200 })),
|
|
593
|
-
).annotate({ identifier: "TeamInfoRequest" }) as any as S.Schema<TeamInfoRequest>;
|
|
594
|
-
|
|
595
265
|
export interface TeamInfoResponse {
|
|
596
266
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
597
267
|
ok: boolean;
|
|
598
268
|
}
|
|
599
|
-
export const TeamInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
600
|
-
S.Struct({
|
|
601
|
-
ok: S.Boolean,
|
|
602
|
-
}),
|
|
603
|
-
).annotate({ identifier: "TeamInfoResponse" }) as any as S.Schema<TeamInfoResponse>;
|
|
604
|
-
|
|
605
269
|
export type AccessLogsError = SlackOpError;
|
|
606
|
-
/** Gets the access logs for the current team. Required scopes
|
|
270
|
+
/** Gets the access logs for the current team. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` -- A required argument is missing. - `missing_scope` -- The provided token hasn't obtained the necessary scopes to use this method. - `not_allowed_token_type` -- Method was called with an invalid token type - `over_pagination_limit` -- It is not possible to request more than 1000 items per page or more than 100 pages. - `paid_only` -- This is only available to paid teams. - `token_revoked` -- token revoked (generated) - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `invalid_limit` -- The value passed for `limit` was not valid. - `invalid_team_id` -- The value passed for `team_id` is not valid given the token context. See https://docs.slack.dev/reference/methods/team.accessLogs */
|
|
607
271
|
export const accessLogs: API.PaginatedOperationMethod<
|
|
608
272
|
AccessLogsRequest,
|
|
609
273
|
AccessLogsResponse,
|
|
@@ -612,8 +276,8 @@ export const accessLogs: API.PaginatedOperationMethod<
|
|
|
612
276
|
AccessLogsResponseLoginsItem
|
|
613
277
|
> = /*@__PURE__*/ API.makePaginated(
|
|
614
278
|
() => ({
|
|
615
|
-
input: AccessLogsRequest
|
|
616
|
-
output: AccessLogsResponse
|
|
279
|
+
input: __S(1, __c0, 1) as any as S.Schema<AccessLogsRequest>,
|
|
280
|
+
output: __S(5, __c0, 5) as any as S.Schema<AccessLogsResponse>,
|
|
617
281
|
errors: [SlackError, SlackRateLimited],
|
|
618
282
|
protocol: SlackProtocol,
|
|
619
283
|
retry: Retry.Retry,
|
|
@@ -629,82 +293,82 @@ export const accessLogs: API.PaginatedOperationMethod<
|
|
|
629
293
|
) as any;
|
|
630
294
|
|
|
631
295
|
export type BillableInfoError = SlackOpError;
|
|
632
|
-
/** Gets billable users information for the current team. Required scopes
|
|
296
|
+
/** Gets billable users information for the current team. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `fatal_error` -- The server could not complete your operation(s) without encountering a catastrophic error. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `user_not_found` -- Unable to find the requested user. See https://docs.slack.dev/reference/methods/team.billableInfo */
|
|
633
297
|
export const billableInfo: API.OperationMethod<
|
|
634
298
|
BillableInfoRequest,
|
|
635
299
|
BillableInfoResponse,
|
|
636
300
|
BillableInfoError,
|
|
637
301
|
SlackOpContext
|
|
638
302
|
> = /*@__PURE__*/ API.make(() => ({
|
|
639
|
-
input: BillableInfoRequest
|
|
640
|
-
output: BillableInfoResponse
|
|
303
|
+
input: __S(32, __c2, 0) as any as S.Schema<BillableInfoRequest>,
|
|
304
|
+
output: __S(33, __c2, 1) as any as S.Schema<BillableInfoResponse>,
|
|
641
305
|
errors: [SlackError, SlackRateLimited],
|
|
642
306
|
protocol: SlackProtocol,
|
|
643
307
|
retry: Retry.Retry,
|
|
644
308
|
}));
|
|
645
309
|
|
|
646
310
|
export type BillingInfoError = SlackOpError;
|
|
647
|
-
/** Reads a workspace's billing plan information. Required scopes
|
|
311
|
+
/** Reads a workspace's billing plan information. Required scopes -- bot: `team.billing:read`; user: `team.billing:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid token provided. - `invalid_team` -- Cannot find a team associated with the authed token. See https://docs.slack.dev/reference/methods/team.billing.info */
|
|
648
312
|
export const billingInfo: API.OperationMethod<
|
|
649
313
|
BillingInfoRequest,
|
|
650
314
|
BillingInfoResponse,
|
|
651
315
|
BillingInfoError,
|
|
652
316
|
SlackOpContext
|
|
653
317
|
> = /*@__PURE__*/ API.make(() => ({
|
|
654
|
-
input: BillingInfoRequest
|
|
655
|
-
output: BillingInfoResponse
|
|
318
|
+
input: __S(64, __c4, 0) as any as S.Schema<BillingInfoRequest>,
|
|
319
|
+
output: __S(65, __c4, 1) as any as S.Schema<BillingInfoResponse>,
|
|
656
320
|
errors: [SlackError, SlackRateLimited],
|
|
657
321
|
protocol: SlackProtocol,
|
|
658
322
|
retry: Retry.Retry,
|
|
659
323
|
}));
|
|
660
324
|
|
|
661
325
|
export type DisconnectExternalTeamError = SlackOpError;
|
|
662
|
-
/** Disconnect an external organization. Required scopes
|
|
326
|
+
/** Disconnect an external organization. Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` -- A required argument is missing. - `restricted_action` -- The actor is restricted from archiving or disconnecting. - `invalid_target_team` -- target team is invalid See https://docs.slack.dev/reference/methods/team.externalTeams.disconnect */
|
|
663
327
|
export const disconnectExternalTeam: API.OperationMethod<
|
|
664
328
|
DisconnectExternalTeamRequest,
|
|
665
329
|
DisconnectExternalTeamResponse,
|
|
666
330
|
DisconnectExternalTeamError,
|
|
667
331
|
SlackOpContext
|
|
668
332
|
> = /*@__PURE__*/ API.make(() => ({
|
|
669
|
-
input: DisconnectExternalTeamRequest
|
|
670
|
-
output: DisconnectExternalTeamResponse
|
|
333
|
+
input: __S(80, __c5, 0) as any as S.Schema<DisconnectExternalTeamRequest>,
|
|
334
|
+
output: __S(81, __c5, 1) as any as S.Schema<DisconnectExternalTeamResponse>,
|
|
671
335
|
errors: [SlackError, SlackRateLimited],
|
|
672
336
|
protocol: SlackProtocol,
|
|
673
337
|
retry: Retry.Retry,
|
|
674
338
|
}));
|
|
675
339
|
|
|
676
340
|
export type GetProfileError = SlackOpError;
|
|
677
|
-
/** Retrieve a team's profile. Required scopes
|
|
341
|
+
/** Retrieve a team's profile. Required scopes -- bot: `users.profile:read`; user: `users.profile:read` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/team.profile.get */
|
|
678
342
|
export const getProfile: API.OperationMethod<
|
|
679
343
|
GetProfileRequest,
|
|
680
344
|
GetProfileResponse,
|
|
681
345
|
GetProfileError,
|
|
682
346
|
SlackOpContext
|
|
683
347
|
> = /*@__PURE__*/ API.make(() => ({
|
|
684
|
-
input: GetProfileRequest
|
|
685
|
-
output: GetProfileResponse
|
|
348
|
+
input: __S(96, __c6, 0) as any as S.Schema<GetProfileRequest>,
|
|
349
|
+
output: __S(99, __c6, 3) as any as S.Schema<GetProfileResponse>,
|
|
686
350
|
errors: [SlackError, SlackRateLimited],
|
|
687
351
|
protocol: SlackProtocol,
|
|
688
352
|
retry: Retry.Retry,
|
|
689
353
|
}));
|
|
690
354
|
|
|
691
355
|
export type IntegrationLogsError = SlackOpError;
|
|
692
|
-
/** Gets the integration logs for the current team. Required scopes
|
|
356
|
+
/** Gets the integration logs for the current team. Required scopes -- user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Internal Error - `missing_argument` -- A required argument is missing. See https://docs.slack.dev/reference/methods/team.integrationLogs */
|
|
693
357
|
export const integrationLogs: API.OperationMethod<
|
|
694
358
|
IntegrationLogsRequest,
|
|
695
359
|
IntegrationLogsResponse,
|
|
696
360
|
IntegrationLogsError,
|
|
697
361
|
SlackOpContext
|
|
698
362
|
> = /*@__PURE__*/ API.make(() => ({
|
|
699
|
-
input: IntegrationLogsRequest
|
|
700
|
-
output: IntegrationLogsResponse
|
|
363
|
+
input: __S(112, __c7, 0) as any as S.Schema<IntegrationLogsRequest>,
|
|
364
|
+
output: __S(114, __c7, 2) as any as S.Schema<IntegrationLogsResponse>,
|
|
701
365
|
errors: [SlackError, SlackRateLimited],
|
|
702
366
|
protocol: SlackProtocol,
|
|
703
367
|
retry: Retry.Retry,
|
|
704
368
|
}));
|
|
705
369
|
|
|
706
370
|
export type ListExternalTeamsError = SlackOpError;
|
|
707
|
-
/** Returns a list of all the external teams connected and details about the connection. Required scopes
|
|
371
|
+
/** Returns a list of all the external teams connected and details about the connection. Required scopes -- bot: `conversations.connect:manage`, `team:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- One or more of the API arguments are invalid. - `not_allowed` -- The user is not allowed to perform the action. - `restricted_action` -- The user does not have permission to perform the action. - `internal_error` -- There was an internal error processing this request. - `invalid_workspace_filter` -- The specified workspace is not valid. - `user_cannot_manage_workspace` -- The calling user cannot manage the workspace passed in the workspace filter. See https://docs.slack.dev/reference/methods/team.externalTeams.list */
|
|
708
372
|
export const listExternalTeams: API.PaginatedOperationMethod<
|
|
709
373
|
ListExternalTeamsRequest,
|
|
710
374
|
ListExternalTeamsResponse,
|
|
@@ -713,8 +377,8 @@ export const listExternalTeams: API.PaginatedOperationMethod<
|
|
|
713
377
|
ListExternalTeamsResponseOrganizationsItem
|
|
714
378
|
> = /*@__PURE__*/ API.makePaginated(
|
|
715
379
|
() => ({
|
|
716
|
-
input: ListExternalTeamsRequest
|
|
717
|
-
output: ListExternalTeamsResponse
|
|
380
|
+
input: __S(130, __c8, 2) as any as S.Schema<ListExternalTeamsRequest>,
|
|
381
|
+
output: __S(138, __c8, 10) as any as S.Schema<ListExternalTeamsResponse>,
|
|
718
382
|
errors: [SlackError, SlackRateLimited],
|
|
719
383
|
protocol: SlackProtocol,
|
|
720
384
|
retry: Retry.Retry,
|
|
@@ -730,31 +394,331 @@ export const listExternalTeams: API.PaginatedOperationMethod<
|
|
|
730
394
|
) as any;
|
|
731
395
|
|
|
732
396
|
export type ListPreferencesError = SlackOpError;
|
|
733
|
-
/** Retrieve a list of a workspace's team preferences. Required scopes
|
|
397
|
+
/** Retrieve a list of a workspace's team preferences. Required scopes -- bot: `team.preferences:read`; user: `team.preferences:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid token provided. - `invalid_team` -- Cannot find a workspace associated with the presented token. See https://docs.slack.dev/reference/methods/team.preferences.list */
|
|
734
398
|
export const listPreferences: API.OperationMethod<
|
|
735
399
|
ListPreferencesRequest,
|
|
736
400
|
ListPreferencesResponse,
|
|
737
401
|
ListPreferencesError,
|
|
738
402
|
SlackOpContext
|
|
739
403
|
> = /*@__PURE__*/ API.make(() => ({
|
|
740
|
-
input: ListPreferencesRequest
|
|
741
|
-
output: ListPreferencesResponse
|
|
404
|
+
input: __S(144, __c9, 0) as any as S.Schema<ListPreferencesRequest>,
|
|
405
|
+
output: __S(145, __c9, 1) as any as S.Schema<ListPreferencesResponse>,
|
|
742
406
|
errors: [SlackError, SlackRateLimited],
|
|
743
407
|
protocol: SlackProtocol,
|
|
744
408
|
retry: Retry.Retry,
|
|
745
409
|
}));
|
|
746
410
|
|
|
747
411
|
export type TeamInfoError = SlackOpError;
|
|
748
|
-
/** Gets information about the current team. Required scopes
|
|
412
|
+
/** Gets information about the current team. Required scopes -- bot: `team:read`; user: `team:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `enterprise_not_found` -- The `enterprise` was not found. - `fail_to_get_teams_for_restricted_user` -- Failed to get teams for restricted user. - `missing_user` -- The `user` was not found. - `org_not_found` -- The `org` was not found. - `team_not_found` -- The `team` was not found. - `team_not_on_enterprise` -- Cannot query team by domain because team is not on an enterprise. - `user_not_found` -- The `user` was not found. See https://docs.slack.dev/reference/methods/team.info */
|
|
749
413
|
export const teamInfo: API.OperationMethod<
|
|
750
414
|
TeamInfoRequest,
|
|
751
415
|
TeamInfoResponse,
|
|
752
416
|
TeamInfoError,
|
|
753
417
|
SlackOpContext
|
|
754
418
|
> = /*@__PURE__*/ API.make(() => ({
|
|
755
|
-
input: TeamInfoRequest
|
|
756
|
-
output: TeamInfoResponse
|
|
419
|
+
input: __S(160, __c10, 0) as any as S.Schema<TeamInfoRequest>,
|
|
420
|
+
output: __S(161, __c10, 1) as any as S.Schema<TeamInfoResponse>,
|
|
757
421
|
errors: [SlackError, SlackRateLimited],
|
|
758
422
|
protocol: SlackProtocol,
|
|
759
423
|
retry: Retry.Retry,
|
|
760
424
|
}));
|
|
425
|
+
|
|
426
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
427
|
+
function __c0(j: number): any {
|
|
428
|
+
switch (j) {
|
|
429
|
+
case 0:
|
|
430
|
+
return S.Unknown.pipe(/*@__PURE__*/ T.UnionCases([[], []]));
|
|
431
|
+
case 1:
|
|
432
|
+
return S.suspend(() =>
|
|
433
|
+
S.Struct({
|
|
434
|
+
before: S.optional(__S(0, __c0, 0).pipe(T.Query())),
|
|
435
|
+
count: S.optional(S.String.pipe(T.Query())),
|
|
436
|
+
page: S.optional(S.String.pipe(T.Query())),
|
|
437
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
438
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
439
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
440
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.accessLogs", code: 200 })),
|
|
441
|
+
).annotate({ identifier: "AccessLogsRequest" });
|
|
442
|
+
case 2:
|
|
443
|
+
return S.suspend(() =>
|
|
444
|
+
S.Struct({
|
|
445
|
+
username: S.String,
|
|
446
|
+
count: S.Number,
|
|
447
|
+
user_id: S.String,
|
|
448
|
+
ip: S.String,
|
|
449
|
+
region: S.NullOr(S.String),
|
|
450
|
+
isp: S.NullOr(S.String),
|
|
451
|
+
user_agent: S.String,
|
|
452
|
+
country: S.NullOr(S.String),
|
|
453
|
+
date_first: S.Number,
|
|
454
|
+
date_last: S.Number,
|
|
455
|
+
}),
|
|
456
|
+
).annotate({ identifier: "AccessLogsResponseLoginsItem" });
|
|
457
|
+
case 3:
|
|
458
|
+
return S.Array(__S(2, __c0, 2));
|
|
459
|
+
case 4:
|
|
460
|
+
return S.suspend(() =>
|
|
461
|
+
S.Struct({
|
|
462
|
+
count: S.Number,
|
|
463
|
+
total: S.Number,
|
|
464
|
+
page: S.Number,
|
|
465
|
+
pages: S.Number,
|
|
466
|
+
}),
|
|
467
|
+
).annotate({ identifier: "AccessLogsResponsePaging" });
|
|
468
|
+
case 5:
|
|
469
|
+
return S.suspend(() =>
|
|
470
|
+
S.Struct({
|
|
471
|
+
ok: S.Boolean,
|
|
472
|
+
logins: __S(3, __c0, 3),
|
|
473
|
+
paging: S.optional(__S(4, __c0, 4)),
|
|
474
|
+
response_metadata: S.optional(__S(16, __c1, 0)),
|
|
475
|
+
}),
|
|
476
|
+
).annotate({ identifier: "AccessLogsResponse" });
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
function __c1(j: number): any {
|
|
480
|
+
switch (j) {
|
|
481
|
+
case 0:
|
|
482
|
+
return S.suspend(() =>
|
|
483
|
+
S.Struct({
|
|
484
|
+
next_cursor: S.optional(S.String),
|
|
485
|
+
}),
|
|
486
|
+
).annotate({ identifier: "AccessLogsResponseResponseMetadata" });
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function __c2(j: number): any {
|
|
490
|
+
switch (j) {
|
|
491
|
+
case 0:
|
|
492
|
+
return S.suspend(() =>
|
|
493
|
+
S.Struct({
|
|
494
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
495
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
496
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
497
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
498
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.billableInfo", code: 200 })),
|
|
499
|
+
).annotate({ identifier: "BillableInfoRequest" });
|
|
500
|
+
case 1:
|
|
501
|
+
return S.suspend(() =>
|
|
502
|
+
S.Struct({
|
|
503
|
+
ok: S.Boolean,
|
|
504
|
+
response_metadata: S.optional(__S(16, __c1, 0)),
|
|
505
|
+
billable_info: __S(48, __c3, 0),
|
|
506
|
+
}),
|
|
507
|
+
).annotate({ identifier: "BillableInfoResponse" });
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function __c3(j: number): any {
|
|
511
|
+
switch (j) {
|
|
512
|
+
case 0:
|
|
513
|
+
return S.Record(S.String, S.Unknown);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
function __c4(j: number): any {
|
|
517
|
+
switch (j) {
|
|
518
|
+
case 0:
|
|
519
|
+
return S.suspend(() =>
|
|
520
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.billing.info", code: 200 })),
|
|
521
|
+
).annotate({ identifier: "BillingInfoRequest" });
|
|
522
|
+
case 1:
|
|
523
|
+
return S.suspend(() =>
|
|
524
|
+
S.Struct({
|
|
525
|
+
ok: S.Boolean,
|
|
526
|
+
plan: S.String,
|
|
527
|
+
}),
|
|
528
|
+
).annotate({ identifier: "BillingInfoResponse" });
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
function __c5(j: number): any {
|
|
532
|
+
switch (j) {
|
|
533
|
+
case 0:
|
|
534
|
+
return S.suspend(() =>
|
|
535
|
+
S.Struct({
|
|
536
|
+
target_team: S.String,
|
|
537
|
+
}).pipe(
|
|
538
|
+
T.Http({
|
|
539
|
+
method: "POST",
|
|
540
|
+
uri: "/team.externalTeams.disconnect",
|
|
541
|
+
code: 200,
|
|
542
|
+
contentType: "form-urlencoded",
|
|
543
|
+
}),
|
|
544
|
+
),
|
|
545
|
+
).annotate({ identifier: "DisconnectExternalTeamRequest" });
|
|
546
|
+
case 1:
|
|
547
|
+
return S.suspend(() =>
|
|
548
|
+
S.Struct({
|
|
549
|
+
ok: S.Boolean,
|
|
550
|
+
job_enqueued: S.Boolean,
|
|
551
|
+
}),
|
|
552
|
+
).annotate({ identifier: "DisconnectExternalTeamResponse" });
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
function __c6(j: number): any {
|
|
556
|
+
switch (j) {
|
|
557
|
+
case 0:
|
|
558
|
+
return S.suspend(() =>
|
|
559
|
+
S.Struct({
|
|
560
|
+
visibility: S.optional(S.String.pipe(T.Query())),
|
|
561
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.profile.get", code: 200 })),
|
|
562
|
+
).annotate({ identifier: "GetProfileRequest" });
|
|
563
|
+
case 1:
|
|
564
|
+
return S.Array(S.Unknown);
|
|
565
|
+
case 2:
|
|
566
|
+
return S.suspend(() =>
|
|
567
|
+
S.Struct({
|
|
568
|
+
fields: S.optional(__S(97, __c6, 1)),
|
|
569
|
+
sections: S.optional(__S(97, __c6, 1)),
|
|
570
|
+
}),
|
|
571
|
+
).annotate({ identifier: "GetProfileResponseProfile" });
|
|
572
|
+
case 3:
|
|
573
|
+
return S.suspend(() =>
|
|
574
|
+
S.Struct({
|
|
575
|
+
ok: S.Boolean,
|
|
576
|
+
profile: __S(98, __c6, 2),
|
|
577
|
+
}),
|
|
578
|
+
).annotate({ identifier: "GetProfileResponse" });
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function __c7(j: number): any {
|
|
582
|
+
switch (j) {
|
|
583
|
+
case 0:
|
|
584
|
+
return S.suspend(() =>
|
|
585
|
+
S.Struct({
|
|
586
|
+
app_id: S.optional(S.String.pipe(T.Query())),
|
|
587
|
+
change_type: S.optional(S.String.pipe(T.Query())),
|
|
588
|
+
count: S.optional(S.String.pipe(T.Query())),
|
|
589
|
+
page: S.optional(S.String.pipe(T.Query())),
|
|
590
|
+
service_id: S.optional(S.String.pipe(T.Query())),
|
|
591
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
592
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
593
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.integrationLogs", code: 200 })),
|
|
594
|
+
).annotate({ identifier: "IntegrationLogsRequest" });
|
|
595
|
+
case 1:
|
|
596
|
+
return S.Array(__S(48, __c3, 0));
|
|
597
|
+
case 2:
|
|
598
|
+
return S.suspend(() =>
|
|
599
|
+
S.Struct({
|
|
600
|
+
ok: S.Boolean,
|
|
601
|
+
paging: S.Unknown,
|
|
602
|
+
logs: __S(113, __c7, 1),
|
|
603
|
+
}),
|
|
604
|
+
).annotate({ identifier: "IntegrationLogsResponse" });
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
function __c8(j: number): any {
|
|
608
|
+
switch (j) {
|
|
609
|
+
case 0:
|
|
610
|
+
return S.Array(S.String);
|
|
611
|
+
case 1:
|
|
612
|
+
return S.Array(S.String);
|
|
613
|
+
case 2:
|
|
614
|
+
return S.suspend(() =>
|
|
615
|
+
S.Struct({
|
|
616
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
617
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
618
|
+
sort_field: S.optional(S.String.pipe(T.Query())),
|
|
619
|
+
sort_direction: S.optional(S.String.pipe(T.Query())),
|
|
620
|
+
slack_connect_pref_filter: S.optional(__S(128, __c8, 0).pipe(T.Query())),
|
|
621
|
+
workspace_filter: S.optional(__S(129, __c8, 1).pipe(T.Query())),
|
|
622
|
+
connection_status_filter: S.optional(S.String.pipe(T.Query())),
|
|
623
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.externalTeams.list", code: 200 })),
|
|
624
|
+
).annotate({ identifier: "ListExternalTeamsRequest" });
|
|
625
|
+
case 3:
|
|
626
|
+
return S.suspend(() =>
|
|
627
|
+
S.Struct({
|
|
628
|
+
workspace_id: S.String,
|
|
629
|
+
workspace_name: S.String,
|
|
630
|
+
}),
|
|
631
|
+
).annotate({
|
|
632
|
+
identifier: "ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem",
|
|
633
|
+
});
|
|
634
|
+
case 4:
|
|
635
|
+
return S.Array(__S(131, __c8, 3));
|
|
636
|
+
case 5:
|
|
637
|
+
return S.suspend(() =>
|
|
638
|
+
S.Struct({
|
|
639
|
+
team_id: S.String,
|
|
640
|
+
count: S.Number,
|
|
641
|
+
}),
|
|
642
|
+
).annotate({
|
|
643
|
+
identifier: "ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem",
|
|
644
|
+
});
|
|
645
|
+
case 6:
|
|
646
|
+
return S.Array(__S(133, __c8, 5));
|
|
647
|
+
case 7:
|
|
648
|
+
return S.suspend(() =>
|
|
649
|
+
S.Struct({
|
|
650
|
+
total_count: S.Number,
|
|
651
|
+
ownership_details: __S(134, __c8, 6),
|
|
652
|
+
}),
|
|
653
|
+
).annotate({ identifier: "ListExternalTeamsResponseOrganizationsItemCanvas" });
|
|
654
|
+
case 8:
|
|
655
|
+
return S.suspend(() =>
|
|
656
|
+
S.Struct({
|
|
657
|
+
team_id: S.String,
|
|
658
|
+
team_name: S.String,
|
|
659
|
+
team_domain: S.String,
|
|
660
|
+
public_channel_count: S.Number,
|
|
661
|
+
private_channel_count: S.Number,
|
|
662
|
+
im_channel_count: S.Number,
|
|
663
|
+
mpim_channel_count: S.Number,
|
|
664
|
+
connected_workspaces: __S(132, __c8, 4),
|
|
665
|
+
slack_connect_prefs: S.Unknown,
|
|
666
|
+
connection_status: S.String,
|
|
667
|
+
last_active_timestamp: S.Number,
|
|
668
|
+
is_sponsored: S.Boolean,
|
|
669
|
+
canvas: S.optional(__S(135, __c8, 7)),
|
|
670
|
+
lists: S.optional(__S(135, __c8, 7)),
|
|
671
|
+
}),
|
|
672
|
+
).annotate({ identifier: "ListExternalTeamsResponseOrganizationsItem" });
|
|
673
|
+
case 9:
|
|
674
|
+
return S.Array(__S(136, __c8, 8));
|
|
675
|
+
case 10:
|
|
676
|
+
return S.suspend(() =>
|
|
677
|
+
S.Struct({
|
|
678
|
+
ok: S.Boolean,
|
|
679
|
+
organizations: __S(137, __c8, 9),
|
|
680
|
+
total_count: S.Number,
|
|
681
|
+
response_metadata: S.optional(__S(16, __c1, 0)),
|
|
682
|
+
}),
|
|
683
|
+
).annotate({ identifier: "ListExternalTeamsResponse" });
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function __c9(j: number): any {
|
|
687
|
+
switch (j) {
|
|
688
|
+
case 0:
|
|
689
|
+
return S.suspend(() =>
|
|
690
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.preferences.list", code: 200 })),
|
|
691
|
+
).annotate({ identifier: "ListPreferencesRequest" });
|
|
692
|
+
case 1:
|
|
693
|
+
return S.suspend(() =>
|
|
694
|
+
S.Struct({
|
|
695
|
+
ok: S.Boolean,
|
|
696
|
+
display_real_names: S.Boolean,
|
|
697
|
+
disable_file_uploads: S.String,
|
|
698
|
+
msg_edit_window_mins: S.Number,
|
|
699
|
+
who_can_post_general: S.String,
|
|
700
|
+
}),
|
|
701
|
+
).annotate({ identifier: "ListPreferencesResponse" });
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
function __c10(j: number): any {
|
|
705
|
+
switch (j) {
|
|
706
|
+
case 0:
|
|
707
|
+
return S.suspend(() =>
|
|
708
|
+
S.Struct({
|
|
709
|
+
domain: S.optional(S.String.pipe(T.Query())),
|
|
710
|
+
team: S.optional(S.String.pipe(T.Query())),
|
|
711
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.info", code: 200 })),
|
|
712
|
+
).annotate({ identifier: "TeamInfoRequest" });
|
|
713
|
+
case 1:
|
|
714
|
+
return S.suspend(() =>
|
|
715
|
+
S.Struct({
|
|
716
|
+
ok: S.Boolean,
|
|
717
|
+
}),
|
|
718
|
+
).annotate({ identifier: "TeamInfoResponse" });
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
722
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
723
|
+
return (__s[i] ??= __L.at(f, j));
|
|
724
|
+
}
|