@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,333 @@
|
|
|
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 { slackPaginate } from "../pagination.js";
|
|
7
|
+
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export const AccessLogsRequestBeforeCase0 = S.String;
|
|
10
|
+
export const AccessLogsRequestBefore = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
|
|
11
|
+
export const AccessLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
12
|
+
before: S.optional(AccessLogsRequestBefore.pipe(T.Query())),
|
|
13
|
+
count: S.optional(S.String.pipe(T.Query())),
|
|
14
|
+
page: S.optional(S.String.pipe(T.Query())),
|
|
15
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
16
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
17
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
18
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.accessLogs", code: 200 }))).annotate({
|
|
19
|
+
identifier: "AccessLogsRequest",
|
|
20
|
+
});
|
|
21
|
+
export const AccessLogsResponseLoginsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
22
|
+
username: S.String,
|
|
23
|
+
count: S.Number,
|
|
24
|
+
user_id: S.String,
|
|
25
|
+
ip: S.String,
|
|
26
|
+
region: S.NullOr(S.String),
|
|
27
|
+
isp: S.NullOr(S.String),
|
|
28
|
+
user_agent: S.String,
|
|
29
|
+
country: S.NullOr(S.String),
|
|
30
|
+
date_first: S.Number,
|
|
31
|
+
date_last: S.Number,
|
|
32
|
+
})).annotate({
|
|
33
|
+
identifier: "AccessLogsResponseLoginsItem",
|
|
34
|
+
});
|
|
35
|
+
export const AccessLogsResponseLoginsList = /*@__PURE__*/ S.Array(AccessLogsResponseLoginsItem);
|
|
36
|
+
export const AccessLogsResponsePaging = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
37
|
+
count: S.Number,
|
|
38
|
+
total: S.Number,
|
|
39
|
+
page: S.Number,
|
|
40
|
+
pages: S.Number,
|
|
41
|
+
})).annotate({
|
|
42
|
+
identifier: "AccessLogsResponsePaging",
|
|
43
|
+
});
|
|
44
|
+
export const AccessLogsResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
next_cursor: S.optional(S.String),
|
|
46
|
+
})).annotate({
|
|
47
|
+
identifier: "AccessLogsResponseResponseMetadata",
|
|
48
|
+
});
|
|
49
|
+
export const AccessLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
50
|
+
ok: S.Boolean,
|
|
51
|
+
logins: AccessLogsResponseLoginsList,
|
|
52
|
+
paging: S.optional(AccessLogsResponsePaging),
|
|
53
|
+
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
54
|
+
})).annotate({
|
|
55
|
+
identifier: "AccessLogsResponse",
|
|
56
|
+
});
|
|
57
|
+
export const BillableInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
59
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
60
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
61
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
62
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.billableInfo", code: 200 }))).annotate({
|
|
63
|
+
identifier: "BillableInfoRequest",
|
|
64
|
+
});
|
|
65
|
+
export const BillableInfoResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
66
|
+
export const BillableInfoResponseBillableInfoMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
67
|
+
export const BillableInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
68
|
+
ok: S.Boolean,
|
|
69
|
+
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
70
|
+
billable_info: BillableInfoResponseBillableInfoMap,
|
|
71
|
+
})).annotate({
|
|
72
|
+
identifier: "BillableInfoResponse",
|
|
73
|
+
});
|
|
74
|
+
export const BillingInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.billing.info", code: 200 }))).annotate({
|
|
75
|
+
identifier: "BillingInfoRequest",
|
|
76
|
+
});
|
|
77
|
+
export const BillingInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
78
|
+
ok: S.Boolean,
|
|
79
|
+
plan: S.String,
|
|
80
|
+
})).annotate({
|
|
81
|
+
identifier: "BillingInfoResponse",
|
|
82
|
+
});
|
|
83
|
+
export const DisconnectExternalTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
84
|
+
target_team: S.String,
|
|
85
|
+
}).pipe(T.Http({
|
|
86
|
+
method: "POST",
|
|
87
|
+
uri: "/team.externalTeams.disconnect",
|
|
88
|
+
code: 200,
|
|
89
|
+
contentType: "form-urlencoded",
|
|
90
|
+
}))).annotate({
|
|
91
|
+
identifier: "DisconnectExternalTeamRequest",
|
|
92
|
+
});
|
|
93
|
+
export const DisconnectExternalTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
+
ok: S.Boolean,
|
|
95
|
+
job_enqueued: S.Boolean,
|
|
96
|
+
})).annotate({
|
|
97
|
+
identifier: "DisconnectExternalTeamResponse",
|
|
98
|
+
});
|
|
99
|
+
export const GetProfileRequestVisibility = S.String;
|
|
100
|
+
export const GetProfileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
101
|
+
visibility: S.optional(GetProfileRequestVisibility.pipe(T.Query())),
|
|
102
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.profile.get", code: 200 }))).annotate({
|
|
103
|
+
identifier: "GetProfileRequest",
|
|
104
|
+
});
|
|
105
|
+
export const GetProfileResponseProfileFieldsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
106
|
+
export const GetProfileResponseProfileSectionsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
107
|
+
export const GetProfileResponseProfile = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
|
+
fields: S.optional(GetProfileResponseProfileFieldsList),
|
|
109
|
+
sections: S.optional(GetProfileResponseProfileSectionsList),
|
|
110
|
+
})).annotate({
|
|
111
|
+
identifier: "GetProfileResponseProfile",
|
|
112
|
+
});
|
|
113
|
+
export const GetProfileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
+
ok: S.Boolean,
|
|
115
|
+
profile: GetProfileResponseProfile,
|
|
116
|
+
})).annotate({
|
|
117
|
+
identifier: "GetProfileResponse",
|
|
118
|
+
});
|
|
119
|
+
export const IntegrationLogsRequestChangeType = S.String;
|
|
120
|
+
export const IntegrationLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
121
|
+
app_id: S.optional(S.String.pipe(T.Query())),
|
|
122
|
+
change_type: S.optional(IntegrationLogsRequestChangeType.pipe(T.Query())),
|
|
123
|
+
count: S.optional(S.String.pipe(T.Query())),
|
|
124
|
+
page: S.optional(S.String.pipe(T.Query())),
|
|
125
|
+
service_id: S.optional(S.String.pipe(T.Query())),
|
|
126
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
127
|
+
user: S.optional(S.String.pipe(T.Query())),
|
|
128
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.integrationLogs", code: 200 }))).annotate({
|
|
129
|
+
identifier: "IntegrationLogsRequest",
|
|
130
|
+
});
|
|
131
|
+
export const IntegrationLogsResponseLogsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
132
|
+
export const IntegrationLogsResponseLogsList = /*@__PURE__*/ S.Array(IntegrationLogsResponseLogsItemMap);
|
|
133
|
+
export const IntegrationLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
+
ok: S.Boolean,
|
|
135
|
+
paging: S.Unknown,
|
|
136
|
+
logs: IntegrationLogsResponseLogsList,
|
|
137
|
+
})).annotate({
|
|
138
|
+
identifier: "IntegrationLogsResponse",
|
|
139
|
+
});
|
|
140
|
+
export const ListExternalTeamsRequestSortField = S.String;
|
|
141
|
+
export const ListExternalTeamsRequestSortDirection = S.String;
|
|
142
|
+
export const ListExternalTeamsRequestSlackConnectPrefFilterItem = S.String;
|
|
143
|
+
export const ListExternalTeamsRequestSlackConnectPrefFilterList =
|
|
144
|
+
/*@__PURE__*/ S.Array(ListExternalTeamsRequestSlackConnectPrefFilterItem);
|
|
145
|
+
export const ListExternalTeamsRequestWorkspaceFilterList =
|
|
146
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
147
|
+
export const ListExternalTeamsRequestConnectionStatusFilter = S.String;
|
|
148
|
+
export const ListExternalTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
149
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
150
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
151
|
+
sort_field: S.optional(ListExternalTeamsRequestSortField.pipe(T.Query())),
|
|
152
|
+
sort_direction: S.optional(ListExternalTeamsRequestSortDirection.pipe(T.Query())),
|
|
153
|
+
slack_connect_pref_filter: S.optional(ListExternalTeamsRequestSlackConnectPrefFilterList.pipe(T.Query())),
|
|
154
|
+
workspace_filter: S.optional(ListExternalTeamsRequestWorkspaceFilterList.pipe(T.Query())),
|
|
155
|
+
connection_status_filter: S.optional(ListExternalTeamsRequestConnectionStatusFilter.pipe(T.Query())),
|
|
156
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.externalTeams.list", code: 200 }))).annotate({
|
|
157
|
+
identifier: "ListExternalTeamsRequest",
|
|
158
|
+
});
|
|
159
|
+
export const ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem =
|
|
160
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
161
|
+
workspace_id: S.String,
|
|
162
|
+
workspace_name: S.String,
|
|
163
|
+
})).annotate({
|
|
164
|
+
identifier: "ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem",
|
|
165
|
+
});
|
|
166
|
+
export const ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList =
|
|
167
|
+
/*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem);
|
|
168
|
+
export const ListExternalTeamsResponseOrganizationsItemConnectionStatus = S.String;
|
|
169
|
+
export const ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem =
|
|
170
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
|
+
team_id: S.String,
|
|
172
|
+
count: S.Number,
|
|
173
|
+
})).annotate({
|
|
174
|
+
identifier: "ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem",
|
|
175
|
+
});
|
|
176
|
+
export const ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList =
|
|
177
|
+
/*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem);
|
|
178
|
+
export const ListExternalTeamsResponseOrganizationsItemCanvas =
|
|
179
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
180
|
+
total_count: S.Number,
|
|
181
|
+
ownership_details: ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList,
|
|
182
|
+
})).annotate({
|
|
183
|
+
identifier: "ListExternalTeamsResponseOrganizationsItemCanvas",
|
|
184
|
+
});
|
|
185
|
+
export const ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsItem = ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem;
|
|
186
|
+
export const ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList =
|
|
187
|
+
/*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem);
|
|
188
|
+
export const ListExternalTeamsResponseOrganizationsItemLists =
|
|
189
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
190
|
+
total_count: S.Number,
|
|
191
|
+
ownership_details: ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList,
|
|
192
|
+
})).annotate({
|
|
193
|
+
identifier: "ListExternalTeamsResponseOrganizationsItemLists",
|
|
194
|
+
});
|
|
195
|
+
export const ListExternalTeamsResponseOrganizationsItem =
|
|
196
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
197
|
+
team_id: S.String,
|
|
198
|
+
team_name: S.String,
|
|
199
|
+
team_domain: S.String,
|
|
200
|
+
public_channel_count: S.Number,
|
|
201
|
+
private_channel_count: S.Number,
|
|
202
|
+
im_channel_count: S.Number,
|
|
203
|
+
mpim_channel_count: S.Number,
|
|
204
|
+
connected_workspaces: ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList,
|
|
205
|
+
slack_connect_prefs: S.Unknown,
|
|
206
|
+
connection_status: ListExternalTeamsResponseOrganizationsItemConnectionStatus,
|
|
207
|
+
last_active_timestamp: S.Number,
|
|
208
|
+
is_sponsored: S.Boolean,
|
|
209
|
+
canvas: S.optional(ListExternalTeamsResponseOrganizationsItemCanvas),
|
|
210
|
+
lists: S.optional(ListExternalTeamsResponseOrganizationsItemLists),
|
|
211
|
+
})).annotate({
|
|
212
|
+
identifier: "ListExternalTeamsResponseOrganizationsItem",
|
|
213
|
+
});
|
|
214
|
+
export const ListExternalTeamsResponseOrganizationsList = /*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItem);
|
|
215
|
+
export const ListExternalTeamsResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
216
|
+
export const ListExternalTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
+
ok: S.Boolean,
|
|
218
|
+
organizations: ListExternalTeamsResponseOrganizationsList,
|
|
219
|
+
total_count: S.Number,
|
|
220
|
+
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
221
|
+
})).annotate({
|
|
222
|
+
identifier: "ListExternalTeamsResponse",
|
|
223
|
+
});
|
|
224
|
+
export const ListPreferencesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.preferences.list", code: 200 }))).annotate({
|
|
225
|
+
identifier: "ListPreferencesRequest",
|
|
226
|
+
});
|
|
227
|
+
export const ListPreferencesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
228
|
+
ok: S.Boolean,
|
|
229
|
+
display_real_names: S.Boolean,
|
|
230
|
+
disable_file_uploads: S.String,
|
|
231
|
+
msg_edit_window_mins: S.Number,
|
|
232
|
+
who_can_post_general: S.String,
|
|
233
|
+
})).annotate({
|
|
234
|
+
identifier: "ListPreferencesResponse",
|
|
235
|
+
});
|
|
236
|
+
export const TeamInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
237
|
+
domain: S.optional(S.String.pipe(T.Query())),
|
|
238
|
+
team: S.optional(S.String.pipe(T.Query())),
|
|
239
|
+
}).pipe(T.Http({ method: "GET", uri: "/team.info", code: 200 }))).annotate({
|
|
240
|
+
identifier: "TeamInfoRequest",
|
|
241
|
+
});
|
|
242
|
+
export const TeamInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
243
|
+
ok: S.Boolean,
|
|
244
|
+
})).annotate({
|
|
245
|
+
identifier: "TeamInfoResponse",
|
|
246
|
+
});
|
|
247
|
+
/** 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 */
|
|
248
|
+
export const accessLogs = /*@__PURE__*/ API.makePaginated(() => ({
|
|
249
|
+
input: AccessLogsRequest,
|
|
250
|
+
output: AccessLogsResponse,
|
|
251
|
+
errors: [SlackError, SlackRateLimited],
|
|
252
|
+
protocol: SlackProtocol,
|
|
253
|
+
retry: Retry.Retry,
|
|
254
|
+
pagination: {
|
|
255
|
+
mode: "cursor",
|
|
256
|
+
inputToken: "cursor",
|
|
257
|
+
outputToken: "response_metadata.next_cursor",
|
|
258
|
+
items: "logins",
|
|
259
|
+
pageSize: "limit",
|
|
260
|
+
},
|
|
261
|
+
}), slackPaginate);
|
|
262
|
+
/** 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 */
|
|
263
|
+
export const billableInfo = /*@__PURE__*/ API.make(() => ({
|
|
264
|
+
input: BillableInfoRequest,
|
|
265
|
+
output: BillableInfoResponse,
|
|
266
|
+
errors: [SlackError, SlackRateLimited],
|
|
267
|
+
protocol: SlackProtocol,
|
|
268
|
+
retry: Retry.Retry,
|
|
269
|
+
}));
|
|
270
|
+
/** 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 */
|
|
271
|
+
export const billingInfo = /*@__PURE__*/ API.make(() => ({
|
|
272
|
+
input: BillingInfoRequest,
|
|
273
|
+
output: BillingInfoResponse,
|
|
274
|
+
errors: [SlackError, SlackRateLimited],
|
|
275
|
+
protocol: SlackProtocol,
|
|
276
|
+
retry: Retry.Retry,
|
|
277
|
+
}));
|
|
278
|
+
/** 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 */
|
|
279
|
+
export const disconnectExternalTeam = /*@__PURE__*/ API.make(() => ({
|
|
280
|
+
input: DisconnectExternalTeamRequest,
|
|
281
|
+
output: DisconnectExternalTeamResponse,
|
|
282
|
+
errors: [SlackError, SlackRateLimited],
|
|
283
|
+
protocol: SlackProtocol,
|
|
284
|
+
retry: Retry.Retry,
|
|
285
|
+
}));
|
|
286
|
+
/** 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 */
|
|
287
|
+
export const getProfile = /*@__PURE__*/ API.make(() => ({
|
|
288
|
+
input: GetProfileRequest,
|
|
289
|
+
output: GetProfileResponse,
|
|
290
|
+
errors: [SlackError, SlackRateLimited],
|
|
291
|
+
protocol: SlackProtocol,
|
|
292
|
+
retry: Retry.Retry,
|
|
293
|
+
}));
|
|
294
|
+
/** 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 */
|
|
295
|
+
export const integrationLogs = /*@__PURE__*/ API.make(() => ({
|
|
296
|
+
input: IntegrationLogsRequest,
|
|
297
|
+
output: IntegrationLogsResponse,
|
|
298
|
+
errors: [SlackError, SlackRateLimited],
|
|
299
|
+
protocol: SlackProtocol,
|
|
300
|
+
retry: Retry.Retry,
|
|
301
|
+
}));
|
|
302
|
+
/** 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 */
|
|
303
|
+
export const listExternalTeams = /*@__PURE__*/ API.makePaginated(() => ({
|
|
304
|
+
input: ListExternalTeamsRequest,
|
|
305
|
+
output: ListExternalTeamsResponse,
|
|
306
|
+
errors: [SlackError, SlackRateLimited],
|
|
307
|
+
protocol: SlackProtocol,
|
|
308
|
+
retry: Retry.Retry,
|
|
309
|
+
pagination: {
|
|
310
|
+
mode: "cursor",
|
|
311
|
+
inputToken: "cursor",
|
|
312
|
+
outputToken: "response_metadata.next_cursor",
|
|
313
|
+
items: "organizations",
|
|
314
|
+
pageSize: "limit",
|
|
315
|
+
},
|
|
316
|
+
}), slackPaginate);
|
|
317
|
+
/** 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 */
|
|
318
|
+
export const listPreferences = /*@__PURE__*/ API.make(() => ({
|
|
319
|
+
input: ListPreferencesRequest,
|
|
320
|
+
output: ListPreferencesResponse,
|
|
321
|
+
errors: [SlackError, SlackRateLimited],
|
|
322
|
+
protocol: SlackProtocol,
|
|
323
|
+
retry: Retry.Retry,
|
|
324
|
+
}));
|
|
325
|
+
/** 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 */
|
|
326
|
+
export const teamInfo = /*@__PURE__*/ API.make(() => ({
|
|
327
|
+
input: TeamInfoRequest,
|
|
328
|
+
output: TeamInfoResponse,
|
|
329
|
+
errors: [SlackError, SlackRateLimited],
|
|
330
|
+
protocol: SlackProtocol,
|
|
331
|
+
retry: Retry.Retry,
|
|
332
|
+
}));
|
|
333
|
+
//# sourceMappingURL=team.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../src/services/team.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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAKrC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;AAMrD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CACjE,CAAC,CAAC,UAAU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AC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
5
|
+
export type { SlackOpError, SlackOpContext };
|
|
6
|
+
export interface RotateTokenRequest {
|
|
7
|
+
/** The `xoxe` refresh token that was issued along with the old app configuration token. */
|
|
8
|
+
refresh_token: string | Redacted.Redacted<string>;
|
|
9
|
+
}
|
|
10
|
+
export declare const RotateTokenRequest: S.Schema<RotateTokenRequest>;
|
|
11
|
+
export interface RotateTokenResponse {
|
|
12
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
13
|
+
ok: boolean;
|
|
14
|
+
/** The app configuration token used to access App Manifest APIs */
|
|
15
|
+
token: string;
|
|
16
|
+
/** Refresh token for this credential */
|
|
17
|
+
refresh_token: string | Redacted.Redacted<string>;
|
|
18
|
+
/** ID of the team associated with the access token. */
|
|
19
|
+
team_id: string;
|
|
20
|
+
/** The ID of the user associated with the token. */
|
|
21
|
+
user_id: string;
|
|
22
|
+
/** Expiration time (exp) identifies the expiration time on or after which the token must not be accepted for processing. */
|
|
23
|
+
exp: number;
|
|
24
|
+
/** Issued at (iat) identifies the time at which the token was issued. */
|
|
25
|
+
iat: number;
|
|
26
|
+
}
|
|
27
|
+
export declare const RotateTokenResponse: S.Schema<RotateTokenResponse>;
|
|
28
|
+
export type RotateTokenError = SlackOpError;
|
|
29
|
+
/** Exchanges a refresh token for a new app configuration token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal error - `invalid_refresh_token` — The given refresh token is invalid. - `unknown_error` — Temporary error for dev only restriction See https://docs.slack.dev/reference/methods/tooling.tokens.rotate */
|
|
30
|
+
export declare const rotateToken: API.OperationMethod<RotateTokenRequest, RotateTokenResponse, RotateTokenError, SlackOpContext>;
|
|
31
|
+
//# sourceMappingURL=tooling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooling.d.ts","sourceRoot":"","sources":["../../src/services/tooling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,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,MAAM,WAAW,kBAAkB;IACjC,2FAA2F;IAC3F,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;CACnD;AACD,eAAO,MAAM,kBAAkB,EAalB,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAClD,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,4HAA4H;IAC5H,GAAG,EAAE,MAAM,CAAC;IACZ,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;CACb;AACD,eAAO,MAAM,mBAAmB,EAYnB,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,uXAAuX;AACvX,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAOb,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.js";
|
|
6
|
+
import { SlackProtocol, } from "../protocol.js";
|
|
7
|
+
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export const RotateTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
|
+
refresh_token: S.String.pipe(T.SensitiveValue({})),
|
|
11
|
+
}).pipe(T.Http({
|
|
12
|
+
method: "POST",
|
|
13
|
+
uri: "/tooling.tokens.rotate",
|
|
14
|
+
code: 200,
|
|
15
|
+
contentType: "form-urlencoded",
|
|
16
|
+
}))).annotate({
|
|
17
|
+
identifier: "RotateTokenRequest",
|
|
18
|
+
});
|
|
19
|
+
export const RotateTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
20
|
+
ok: S.Boolean,
|
|
21
|
+
token: S.String,
|
|
22
|
+
refresh_token: S.String.pipe(T.SensitiveValue({})),
|
|
23
|
+
team_id: S.String,
|
|
24
|
+
user_id: S.String,
|
|
25
|
+
exp: S.Number,
|
|
26
|
+
iat: S.Number,
|
|
27
|
+
})).annotate({
|
|
28
|
+
identifier: "RotateTokenResponse",
|
|
29
|
+
});
|
|
30
|
+
/** Exchanges a refresh token for a new app configuration token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal error - `invalid_refresh_token` — The given refresh token is invalid. - `unknown_error` — Temporary error for dev only restriction See https://docs.slack.dev/reference/methods/tooling.tokens.rotate */
|
|
31
|
+
export const rotateToken = /*@__PURE__*/ API.make(() => ({
|
|
32
|
+
input: RotateTokenRequest,
|
|
33
|
+
output: RotateTokenResponse,
|
|
34
|
+
errors: [SlackError, SlackRateLimited],
|
|
35
|
+
protocol: SlackProtocol,
|
|
36
|
+
retry: Retry.Retry,
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=tooling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooling.js","sourceRoot":"","sources":["../../src/services/tooling.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,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,KAAK,MAAM,aAAa,CAAC;AAQrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC7D,CAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,wBAAwB;IAC7B,IAAI,EAAE,GAAG;IACT,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CACH,CACF,CAAC,QAAQ,CAAC;IACT,UAAU,EAAE,oBAAoB;CACjC,CAAwC,CAAC;AAkB1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC9D,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,OAAO;IACb,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,GAAG,EAAE,CAAC,CAAC,MAAM;IACb,GAAG,EAAE,CAAC,CAAC,MAAM;CACd,CAAC,CACH,CAAC,QAAQ,CAAC;IACT,UAAU,EAAE,qBAAqB;CAClC,CAAyC,CAAC;AAG3C,uXAAuX;AACvX,MAAM,CAAC,MAAM,WAAW,GAKpB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,mBAAmB;IAC3B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
6
|
+
export type CreateUsergroupRequestChannelsList = Array<string>;
|
|
7
|
+
export declare const CreateUsergroupRequestChannelsList: S.Schema<CreateUsergroupRequestChannelsList>;
|
|
8
|
+
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
9
|
+
export type CreateUsergroupRequestAdditionalChannelsList = Array<string>;
|
|
10
|
+
export declare const CreateUsergroupRequestAdditionalChannelsList: S.Schema<CreateUsergroupRequestAdditionalChannelsList>;
|
|
11
|
+
export interface CreateUsergroupRequest {
|
|
12
|
+
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
13
|
+
channels?: CreateUsergroupRequestChannelsList;
|
|
14
|
+
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
15
|
+
additional_channels?: CreateUsergroupRequestAdditionalChannelsList;
|
|
16
|
+
/** A short description of the User Group. */
|
|
17
|
+
description?: string;
|
|
18
|
+
/** A mention handle. Must be unique among channels, users and User Groups. */
|
|
19
|
+
handle?: string;
|
|
20
|
+
/** Include the number of users in each User Group. */
|
|
21
|
+
include_count?: boolean;
|
|
22
|
+
/** A name for the User Group. Must be unique among User Groups. */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Encoded team id where the user group has to be created, required if org token is used. */
|
|
25
|
+
team_id?: string;
|
|
26
|
+
/** Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added. */
|
|
27
|
+
enable_section?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const CreateUsergroupRequest: S.Schema<CreateUsergroupRequest>;
|
|
30
|
+
export interface CreateUsergroupResponse {
|
|
31
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
32
|
+
ok: boolean;
|
|
33
|
+
usergroup: unknown;
|
|
34
|
+
}
|
|
35
|
+
export declare const CreateUsergroupResponse: S.Schema<CreateUsergroupResponse>;
|
|
36
|
+
export interface DisableUsergroupRequest {
|
|
37
|
+
/** Include the number of users in the User Group. */
|
|
38
|
+
include_count?: boolean;
|
|
39
|
+
/** Encoded target team id where the user group is, required if org token is used. */
|
|
40
|
+
team_id?: string;
|
|
41
|
+
/** The encoded ID of the User Group to disable. */
|
|
42
|
+
usergroup: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const DisableUsergroupRequest: S.Schema<DisableUsergroupRequest>;
|
|
45
|
+
export interface DisableUsergroupResponse {
|
|
46
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
47
|
+
ok: boolean;
|
|
48
|
+
usergroup: unknown;
|
|
49
|
+
}
|
|
50
|
+
export declare const DisableUsergroupResponse: S.Schema<DisableUsergroupResponse>;
|
|
51
|
+
export interface EnableUsergroupRequest {
|
|
52
|
+
/** Include the number of users in the User Group. */
|
|
53
|
+
include_count?: boolean;
|
|
54
|
+
/** Encoded team id where the user group is, required if org token is used. */
|
|
55
|
+
team_id?: string;
|
|
56
|
+
/** The encoded ID of the User Group to enable. */
|
|
57
|
+
usergroup: string;
|
|
58
|
+
}
|
|
59
|
+
export declare const EnableUsergroupRequest: S.Schema<EnableUsergroupRequest>;
|
|
60
|
+
export interface EnableUsergroupResponse {
|
|
61
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
62
|
+
ok: boolean;
|
|
63
|
+
usergroup: unknown;
|
|
64
|
+
}
|
|
65
|
+
export declare const EnableUsergroupResponse: S.Schema<EnableUsergroupResponse>;
|
|
66
|
+
export interface ListUsergroupsRequest {
|
|
67
|
+
/** Include the number of users in each User Group. */
|
|
68
|
+
include_count?: boolean;
|
|
69
|
+
/** Include results for disabled User Groups. */
|
|
70
|
+
include_disabled?: boolean;
|
|
71
|
+
/** Include the list of users for each User Group. */
|
|
72
|
+
include_users?: boolean;
|
|
73
|
+
/** The user group's encoded team ID. Required if org token is used. */
|
|
74
|
+
team_id?: string;
|
|
75
|
+
}
|
|
76
|
+
export declare const ListUsergroupsRequest: S.Schema<ListUsergroupsRequest>;
|
|
77
|
+
export type ListUsergroupsResponseUsergroupsList = Array<unknown>;
|
|
78
|
+
export declare const ListUsergroupsResponseUsergroupsList: S.Schema<ListUsergroupsResponseUsergroupsList>;
|
|
79
|
+
export interface ListUsergroupsResponse {
|
|
80
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
81
|
+
ok: boolean;
|
|
82
|
+
usergroups: ListUsergroupsResponseUsergroupsList;
|
|
83
|
+
}
|
|
84
|
+
export declare const ListUsergroupsResponse: S.Schema<ListUsergroupsResponse>;
|
|
85
|
+
export interface ListUsersRequest {
|
|
86
|
+
/** Include results for disabled User Groups. */
|
|
87
|
+
include_disabled?: boolean;
|
|
88
|
+
/** The encoded ID of the User Group. */
|
|
89
|
+
usergroup: string;
|
|
90
|
+
/** The user group's encoded team ID. Required if org token is used. */
|
|
91
|
+
team_id?: string;
|
|
92
|
+
}
|
|
93
|
+
export declare const ListUsersRequest: S.Schema<ListUsersRequest>;
|
|
94
|
+
export type ListUsersResponseUsersList = Array<unknown>;
|
|
95
|
+
export declare const ListUsersResponseUsersList: S.Schema<ListUsersResponseUsersList>;
|
|
96
|
+
export interface ListUsersResponse {
|
|
97
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
98
|
+
ok: boolean;
|
|
99
|
+
users: ListUsersResponseUsersList;
|
|
100
|
+
}
|
|
101
|
+
export declare const ListUsersResponse: S.Schema<ListUsersResponse>;
|
|
102
|
+
/** A comma separated string of encoded user IDs that represent the entire list of users for the user group. */
|
|
103
|
+
export type UpdateUserRequestUsersList = Array<string>;
|
|
104
|
+
export declare const UpdateUserRequestUsersList: S.Schema<UpdateUserRequestUsersList>;
|
|
105
|
+
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
106
|
+
export type UpdateUserRequestAdditionalChannelsList = Array<string>;
|
|
107
|
+
export declare const UpdateUserRequestAdditionalChannelsList: S.Schema<UpdateUserRequestAdditionalChannelsList>;
|
|
108
|
+
export interface UpdateUserRequest {
|
|
109
|
+
/** Include the number of users in the user group. */
|
|
110
|
+
include_count?: boolean;
|
|
111
|
+
/** encoded team id where the user group exists, required if org token is used */
|
|
112
|
+
team_id?: string;
|
|
113
|
+
/** The encoded ID of the user group to update. */
|
|
114
|
+
usergroup: string;
|
|
115
|
+
/** A comma separated string of encoded user IDs that represent the entire list of users for the user group. */
|
|
116
|
+
users: UpdateUserRequestUsersList;
|
|
117
|
+
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
118
|
+
additional_channels?: UpdateUserRequestAdditionalChannelsList;
|
|
119
|
+
/** Boolean to identify if the API is getting called when a shared section is getting shared */
|
|
120
|
+
is_shared?: boolean;
|
|
121
|
+
}
|
|
122
|
+
export declare const UpdateUserRequest: S.Schema<UpdateUserRequest>;
|
|
123
|
+
export interface UpdateUserResponse {
|
|
124
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
125
|
+
ok: boolean;
|
|
126
|
+
usergroup: unknown;
|
|
127
|
+
}
|
|
128
|
+
export declare const UpdateUserResponse: S.Schema<UpdateUserResponse>;
|
|
129
|
+
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
130
|
+
export type UpdateUsergroupRequestChannelsList = Array<string>;
|
|
131
|
+
export declare const UpdateUsergroupRequestChannelsList: S.Schema<UpdateUsergroupRequestChannelsList>;
|
|
132
|
+
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
133
|
+
export type UpdateUsergroupRequestAdditionalChannelsList = Array<string>;
|
|
134
|
+
export declare const UpdateUsergroupRequestAdditionalChannelsList: S.Schema<UpdateUsergroupRequestAdditionalChannelsList>;
|
|
135
|
+
export interface UpdateUsergroupRequest {
|
|
136
|
+
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
137
|
+
channels?: UpdateUsergroupRequestChannelsList;
|
|
138
|
+
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
139
|
+
additional_channels?: UpdateUsergroupRequestAdditionalChannelsList;
|
|
140
|
+
/** A short description of the User Group. */
|
|
141
|
+
description?: string;
|
|
142
|
+
/** A mention handle. Must be unique among channels, users and User Groups. */
|
|
143
|
+
handle?: string;
|
|
144
|
+
/** Include the number of users in the User Group. */
|
|
145
|
+
include_count?: boolean;
|
|
146
|
+
/** A name for the User Group. Must be unique among User Groups. */
|
|
147
|
+
name?: string;
|
|
148
|
+
/** encoded team id where the user group exists, required if org token is used */
|
|
149
|
+
team_id?: string;
|
|
150
|
+
/** The encoded ID of the User Group to update. */
|
|
151
|
+
usergroup: string;
|
|
152
|
+
/** Configure this user group to show as a sidebar section for all group members. Note: Only relevant if group has 1 or more default channels added. */
|
|
153
|
+
enable_section?: boolean;
|
|
154
|
+
}
|
|
155
|
+
export declare const UpdateUsergroupRequest: S.Schema<UpdateUsergroupRequest>;
|
|
156
|
+
export interface UpdateUsergroupResponse {
|
|
157
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
158
|
+
ok: boolean;
|
|
159
|
+
usergroup: unknown;
|
|
160
|
+
}
|
|
161
|
+
export declare const UpdateUsergroupResponse: S.Schema<UpdateUsergroupResponse>;
|
|
162
|
+
export type CreateUsergroupError = SlackOpError;
|
|
163
|
+
/** Create a User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_handle` — Handle is invalid - `description_too_long` — Given usergroup description is too long - `forbidden_handle` — Handle is invalid - `handle_already_exists` — Handle is already in use on this workspace - `invalid_channel_provided` — An invalid channel ID was provided - `invalid_group_provided` — An invalid group ID was provided - `missing_argument` — A required argument is missing. - `missing_subteam_name` — Subteam name is required - `name_already_exists` — Name is already in use on this workspace - `name_too_long` — Name too long. - `paid_teams_only` — Usergroups can only be used on paid Slack teams - `permission_denied` — The user does not have permission to create a User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` — Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` — No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.create */
|
|
164
|
+
export declare const createUsergroup: API.OperationMethod<CreateUsergroupRequest, CreateUsergroupResponse, CreateUsergroupError, SlackOpContext>;
|
|
165
|
+
export type DisableUsergroupError = SlackOpError;
|
|
166
|
+
/** Disable an existing User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `permission_denied` — The user does not have permission to disable the User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `target_team_not_on_org` — Target team specified is not on the org in context - `target_team_must_be_specified_in_org_context` — No target team was specified but the team in context is an org See https://docs.slack.dev/reference/methods/usergroups.disable */
|
|
167
|
+
export declare const disableUsergroup: API.OperationMethod<DisableUsergroupRequest, DisableUsergroupResponse, DisableUsergroupError, SlackOpContext>;
|
|
168
|
+
export type EnableUsergroupError = SlackOpError;
|
|
169
|
+
/** Enable a User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `permission_denied` — The user does not have permission to enables the User Group. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. See https://docs.slack.dev/reference/methods/usergroups.enable */
|
|
170
|
+
export declare const enableUsergroup: API.OperationMethod<EnableUsergroupRequest, EnableUsergroupResponse, EnableUsergroupError, SlackOpContext>;
|
|
171
|
+
export type ListUsergroupsError = SlackOpError;
|
|
172
|
+
/** List all User Groups for a team. Required scopes — bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `users_not_found` — Cannot find users on subteam. - `invalid_team` — Cannot find subteam team. See https://docs.slack.dev/reference/methods/usergroups.list */
|
|
173
|
+
export declare const listUsergroups: API.OperationMethod<ListUsergroupsRequest, ListUsergroupsResponse, ListUsergroupsError, SlackOpContext>;
|
|
174
|
+
export type ListUsersError = SlackOpError;
|
|
175
|
+
/** List all users in a User Group. Required scopes — bot: `usergroups:read`; user: `usergroups:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `no_such_subteam` — No usergroup found with the given ID. - `plan_upgrade_required` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. See https://docs.slack.dev/reference/methods/usergroups.users.list */
|
|
176
|
+
export declare const listUsers: API.OperationMethod<ListUsersRequest, ListUsersResponse, ListUsersError, SlackOpContext>;
|
|
177
|
+
export type UpdateUserError = SlackOpError;
|
|
178
|
+
/** Update the list of users for a user group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_users` — Value passed for `users` was empty or invalid. - `failed_for_some_users` — User(s) are not in the workspace where this usergroup exists - `missing_argument` — A required argument is missing. - `no_users_provided` — Either the `users` field wasn't provided or an empty value was passed. - `permission_denied` — The user does not have permission to update the list of users for a user group. Check workspace settings to confirm whether the calling user has permission. - `plan_upgrade_required` — This workspace does not have access to user groups, as that feature is only available on Standard and above plans. - `subteam_max_users_exceeded` — Exceeds maximum supported number of users per subteam. See https://docs.slack.dev/reference/methods/usergroups.users.update */
|
|
179
|
+
export declare const updateUser: API.OperationMethod<UpdateUserRequest, UpdateUserResponse, UpdateUserError, SlackOpContext>;
|
|
180
|
+
export type UpdateUsergroupError = SlackOpError;
|
|
181
|
+
/** Update an existing User Group. Required scopes — bot: `usergroups:write`; user: `usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `paid_teams_only` — This workspace does not have access to User Groups, as that feature is only available on Standard and above plans. - `permission_denied` — The user does not have permission to update the User Group. - `too_many_linked_channels` — This request exceeds the number of channels we supporting linking to a single usergroup. See https://docs.slack.dev/reference/methods/usergroups.update */
|
|
182
|
+
export declare const updateUsergroup: API.OperationMethod<UpdateUsergroupRequest, UpdateUsergroupResponse, UpdateUsergroupError, SlackOpContext>;
|
|
183
|
+
//# sourceMappingURL=usergroups.d.ts.map
|