@distilled.cloud/slack 1.0.0-rc.18 → 1.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/protocol.d.ts +2 -1
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -140
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts +2 -2
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +32 -32
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +27 -27
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +3 -3
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +19 -19
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +23 -23
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +10 -10
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +18 -18
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +103 -103
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +38 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +14 -14
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +6 -6
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +14 -14
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +26 -26
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +3 -3
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +102 -102
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +40 -40
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +9 -9
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +23 -23
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +8 -8
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +11 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +84 -80
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +39 -37
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +37 -37
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +9 -9
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +16 -16
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +1 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +6 -6
- package/src/protocol.ts +3 -5
- package/src/services/admin.ts +1609 -1016
- package/src/services/agents.ts +93 -103
- package/src/services/api.ts +2 -2
- package/src/services/apps.ts +74 -74
- package/src/services/assistant.ts +88 -56
- package/src/services/auth.ts +27 -27
- package/src/services/blocks.ts +3 -3
- package/src/services/bookmarks.ts +19 -19
- package/src/services/bots.ts +23 -23
- package/src/services/calls.ts +10 -10
- package/src/services/canvases.ts +50 -46
- package/src/services/chat.ts +103 -103
- package/src/services/conversations.ts +126 -115
- package/src/services/dnd.ts +14 -14
- package/src/services/emoji.ts +6 -6
- package/src/services/entity.ts +14 -14
- package/src/services/files.ts +106 -106
- package/src/services/functions.ts +37 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +49 -46
- package/src/services/migration.ts +3 -3
- package/src/services/oauth.ts +102 -102
- package/src/services/openid.ts +40 -40
- package/src/services/pins.ts +9 -9
- package/src/services/reactions.ts +23 -23
- package/src/services/reminders.ts +8 -8
- package/src/services/rtm.ts +11 -11
- package/src/services/search.ts +123 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +16 -16
- package/src/services/team.ts +42 -37
- package/src/services/usergroups.ts +30 -30
- package/src/services/users.ts +37 -37
- package/src/services/views.ts +9 -9
- package/src/services/workflows.ts +16 -16
package/src/services/stars.ts
CHANGED
|
@@ -27,27 +27,27 @@ const TELEMETRY = {
|
|
|
27
27
|
|
|
28
28
|
export interface AddStarRequest {
|
|
29
29
|
/** Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`). */
|
|
30
|
-
channel?: string;
|
|
30
|
+
channel?: string | undefined;
|
|
31
31
|
/** File to add star to. */
|
|
32
|
-
file?: string;
|
|
32
|
+
file?: string | undefined;
|
|
33
33
|
/** File comment to add star to. */
|
|
34
|
-
file_comment?: string;
|
|
34
|
+
file_comment?: string | undefined;
|
|
35
35
|
/** Timestamp of the message to add star to. */
|
|
36
|
-
timestamp?: string;
|
|
36
|
+
timestamp?: string | undefined;
|
|
37
37
|
}
|
|
38
38
|
export interface AddStarResponse {
|
|
39
39
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
40
40
|
ok: boolean;
|
|
41
41
|
}
|
|
42
42
|
export interface ListStarsRequest {
|
|
43
|
-
count?: number;
|
|
43
|
+
count?: number | undefined;
|
|
44
44
|
/** Parameter for pagination. Set `cursor` equal to the `next_cursor` attribute returned by the previous request's `response_metadata`. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more details. */
|
|
45
|
-
cursor?: string;
|
|
45
|
+
cursor?: string | undefined;
|
|
46
46
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. */
|
|
47
|
-
limit?: number;
|
|
48
|
-
page?: number;
|
|
47
|
+
limit?: number | undefined;
|
|
48
|
+
page?: number | undefined;
|
|
49
49
|
/** encoded team id to list stars in, required if org token is used */
|
|
50
|
-
team_id?: string;
|
|
50
|
+
team_id?: string | undefined;
|
|
51
51
|
}
|
|
52
52
|
export type ListStarsResponseItemsItemCase0Type = "message";
|
|
53
53
|
export interface ListStarsResponseItemsItemCase0 {
|
|
@@ -98,25 +98,25 @@ export type ListStarsResponseItemsList = Array<ListStarsResponseItemsItem>;
|
|
|
98
98
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
99
99
|
export interface ListStarsResponseResponseMetadata {
|
|
100
100
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
101
|
-
next_cursor?: string;
|
|
101
|
+
next_cursor?: string | undefined;
|
|
102
102
|
}
|
|
103
103
|
export interface ListStarsResponse {
|
|
104
104
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
105
105
|
ok: boolean;
|
|
106
106
|
items: ListStarsResponseItemsList;
|
|
107
|
-
paging?: unknown;
|
|
107
|
+
paging?: unknown | undefined;
|
|
108
108
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
109
|
-
response_metadata?: ListStarsResponseResponseMetadata;
|
|
109
|
+
response_metadata?: ListStarsResponseResponseMetadata | undefined;
|
|
110
110
|
}
|
|
111
111
|
export interface RemoveStarRequest {
|
|
112
112
|
/** Channel to remove star from, or channel where the message to remove star from was posted (used with `timestamp`). */
|
|
113
|
-
channel?: string;
|
|
113
|
+
channel?: string | undefined;
|
|
114
114
|
/** File to remove star from. */
|
|
115
|
-
file?: string;
|
|
115
|
+
file?: string | undefined;
|
|
116
116
|
/** File comment to remove star from. */
|
|
117
|
-
file_comment?: string;
|
|
117
|
+
file_comment?: string | undefined;
|
|
118
118
|
/** Timestamp of the message to remove star from. */
|
|
119
|
-
timestamp?: string;
|
|
119
|
+
timestamp?: string | undefined;
|
|
120
120
|
}
|
|
121
121
|
export interface RemoveStarResponse {
|
|
122
122
|
/** Always `true` (a failed call raises a typed error instead). */
|
package/src/services/team.ts
CHANGED
|
@@ -29,15 +29,15 @@ export type AccessLogsRequestBeforeCase0 = "now";
|
|
|
29
29
|
export type AccessLogsRequestBefore = AccessLogsRequestBeforeCase0 | (string & {}) | string;
|
|
30
30
|
export interface AccessLogsRequest {
|
|
31
31
|
/** End of time range of logs to include in results (inclusive). */
|
|
32
|
-
before?: AccessLogsRequestBefore;
|
|
33
|
-
count?: string;
|
|
34
|
-
page?: string;
|
|
32
|
+
before?: AccessLogsRequestBefore | undefined;
|
|
33
|
+
count?: string | undefined;
|
|
34
|
+
page?: string | undefined;
|
|
35
35
|
/** Parameter for pagination. Set `cursor` equal to the `next_cursor` attribute returned by the previous request's `response_metadata`. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more details. */
|
|
36
|
-
cursor?: string;
|
|
36
|
+
cursor?: string | undefined;
|
|
37
37
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. If specified, result is returned using a cursor-based approach instead of a classic one. */
|
|
38
|
-
limit?: number;
|
|
38
|
+
limit?: number | undefined;
|
|
39
39
|
/** encoded team id to get logs from, required if org token is used */
|
|
40
|
-
team_id?: string;
|
|
40
|
+
team_id?: string | undefined;
|
|
41
41
|
}
|
|
42
42
|
export interface AccessLogsResponseLoginsItem {
|
|
43
43
|
username: string;
|
|
@@ -61,25 +61,25 @@ export interface AccessLogsResponsePaging {
|
|
|
61
61
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
62
62
|
export interface AccessLogsResponseResponseMetadata {
|
|
63
63
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
64
|
-
next_cursor?: string;
|
|
64
|
+
next_cursor?: string | undefined;
|
|
65
65
|
}
|
|
66
66
|
export interface AccessLogsResponse {
|
|
67
67
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
68
68
|
ok: boolean;
|
|
69
69
|
logins: AccessLogsResponseLoginsList;
|
|
70
|
-
paging?: AccessLogsResponsePaging;
|
|
70
|
+
paging?: AccessLogsResponsePaging | undefined;
|
|
71
71
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
72
|
-
response_metadata?: AccessLogsResponseResponseMetadata;
|
|
72
|
+
response_metadata?: AccessLogsResponseResponseMetadata | undefined;
|
|
73
73
|
}
|
|
74
74
|
export interface BillableInfoRequest {
|
|
75
75
|
/** 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. */
|
|
76
|
-
cursor?: string;
|
|
76
|
+
cursor?: string | undefined;
|
|
77
77
|
/** The maximum number of items to return. */
|
|
78
|
-
limit?: number;
|
|
78
|
+
limit?: number | undefined;
|
|
79
79
|
/** A user to retrieve the billable information for. Defaults to all users. */
|
|
80
|
-
user?: string;
|
|
80
|
+
user?: string | undefined;
|
|
81
81
|
/** encoded team id to get the billable information from, required if org token is used */
|
|
82
|
-
team_id?: string;
|
|
82
|
+
team_id?: string | undefined;
|
|
83
83
|
}
|
|
84
84
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
85
85
|
export type BillableInfoResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
@@ -88,7 +88,7 @@ export interface BillableInfoResponse {
|
|
|
88
88
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
89
89
|
ok: boolean;
|
|
90
90
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
91
|
-
response_metadata?: AccessLogsResponseResponseMetadata;
|
|
91
|
+
response_metadata?: AccessLogsResponseResponseMetadata | undefined;
|
|
92
92
|
billable_info: BillableInfoResponseBillableInfoMap;
|
|
93
93
|
}
|
|
94
94
|
export interface BillingInfoRequest {}
|
|
@@ -109,13 +109,13 @@ export interface DisconnectExternalTeamResponse {
|
|
|
109
109
|
export type GetProfileRequestVisibility = "all" | "visible" | "hidden";
|
|
110
110
|
export interface GetProfileRequest {
|
|
111
111
|
/** Filter by visibility. */
|
|
112
|
-
visibility?: GetProfileRequestVisibility | (string & {});
|
|
112
|
+
visibility?: GetProfileRequestVisibility | (string & {}) | undefined;
|
|
113
113
|
}
|
|
114
114
|
export type GetProfileResponseProfileFieldsList = Array<unknown>;
|
|
115
115
|
export type GetProfileResponseProfileSectionsList = Array<unknown>;
|
|
116
116
|
export interface GetProfileResponseProfile {
|
|
117
|
-
fields?: GetProfileResponseProfileFieldsList;
|
|
118
|
-
sections?: GetProfileResponseProfileSectionsList;
|
|
117
|
+
fields?: GetProfileResponseProfileFieldsList | undefined;
|
|
118
|
+
sections?: GetProfileResponseProfileSectionsList | undefined;
|
|
119
119
|
}
|
|
120
120
|
export interface GetProfileResponse {
|
|
121
121
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -130,17 +130,17 @@ export type IntegrationLogsRequestChangeType =
|
|
|
130
130
|
| "updated";
|
|
131
131
|
export interface IntegrationLogsRequest {
|
|
132
132
|
/** Filter logs to this Slack app. Defaults to all logs. */
|
|
133
|
-
app_id?: string;
|
|
133
|
+
app_id?: string | undefined;
|
|
134
134
|
/** Filter logs with this change type. Possible values are `added`, `removed`, `enabled`, `disabled`, and `updated`. Defaults to all logs. */
|
|
135
|
-
change_type?: IntegrationLogsRequestChangeType | (string & {});
|
|
136
|
-
count?: string;
|
|
137
|
-
page?: string;
|
|
135
|
+
change_type?: IntegrationLogsRequestChangeType | (string & {}) | undefined;
|
|
136
|
+
count?: string | undefined;
|
|
137
|
+
page?: string | undefined;
|
|
138
138
|
/** Filter logs to this service. Defaults to all logs. */
|
|
139
|
-
service_id?: string;
|
|
139
|
+
service_id?: string | undefined;
|
|
140
140
|
/** encoded team id to get logs from, required if org token is used */
|
|
141
|
-
team_id?: string;
|
|
141
|
+
team_id?: string | undefined;
|
|
142
142
|
/** Filter logs generated by this user's actions. Defaults to all logs. */
|
|
143
|
-
user?: string;
|
|
143
|
+
user?: string | undefined;
|
|
144
144
|
}
|
|
145
145
|
export type IntegrationLogsResponseLogsItemMap = { [key: string]: unknown | undefined };
|
|
146
146
|
export type IntegrationLogsResponseLogsList = Array<IntegrationLogsResponseLogsItemMap>;
|
|
@@ -162,7 +162,6 @@ export type ListExternalTeamsRequestSlackConnectPrefFilterItem =
|
|
|
162
162
|
| "away_team_sc_invite_permissions"
|
|
163
163
|
| "accept_sc_invites"
|
|
164
164
|
| "sc_mpdm_to_private"
|
|
165
|
-
| "require_sc_channel_for_sc_dm"
|
|
166
165
|
| "external_awareness_context_bar"
|
|
167
166
|
| "interact_with_externally_owned_workflows"
|
|
168
167
|
| "external_teams_interact_with_locally_owned_workflows";
|
|
@@ -177,19 +176,22 @@ export type ListExternalTeamsRequestConnectionStatusFilter =
|
|
|
177
176
|
| "IN_REVIEW";
|
|
178
177
|
export interface ListExternalTeamsRequest {
|
|
179
178
|
/** The maximum number of items to return per page */
|
|
180
|
-
limit?: number;
|
|
179
|
+
limit?: number | undefined;
|
|
181
180
|
/** Paginate through collections of data by setting parameter to the `team_id` attribute returned by a previous request's `response_metadata`. If not provided, the first page of the collection is returned. See [pagination](/apis/web-api/pagination#cursors) for more detail. */
|
|
182
|
-
cursor?: string;
|
|
181
|
+
cursor?: string | undefined;
|
|
183
182
|
/** Name of the parameter that we are sorting by */
|
|
184
|
-
sort_field?: ListExternalTeamsRequestSortField | (string & {});
|
|
183
|
+
sort_field?: ListExternalTeamsRequestSortField | (string & {}) | undefined;
|
|
185
184
|
/** Direction to sort in asc or desc */
|
|
186
|
-
sort_direction?: ListExternalTeamsRequestSortDirection | (string & {});
|
|
185
|
+
sort_direction?: ListExternalTeamsRequestSortDirection | (string & {}) | undefined;
|
|
187
186
|
/** Filters connected orgs by Slack Connect pref override(s). Value can be: `approved_orgs_only` `allow_sc_file_uploads` `profile_visibility` `away_team_sc_invite_permissions` `accept_sc_invites` `sc_mpdm_to_private` `require_sc_channel_for_sc_dm` `external_awareness_context_bar` */
|
|
188
|
-
slack_connect_pref_filter?: ListExternalTeamsRequestSlackConnectPrefFilterList;
|
|
187
|
+
slack_connect_pref_filter?: ListExternalTeamsRequestSlackConnectPrefFilterList | undefined;
|
|
189
188
|
/** Shows connected orgs which are connected on a specified encoded workspace ID */
|
|
190
|
-
workspace_filter?: ListExternalTeamsRequestWorkspaceFilterList;
|
|
189
|
+
workspace_filter?: ListExternalTeamsRequestWorkspaceFilterList | undefined;
|
|
191
190
|
/** Status of the connected team. */
|
|
192
|
-
connection_status_filter?:
|
|
191
|
+
connection_status_filter?:
|
|
192
|
+
| ListExternalTeamsRequestConnectionStatusFilter
|
|
193
|
+
| (string & {})
|
|
194
|
+
| undefined;
|
|
193
195
|
}
|
|
194
196
|
export interface ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem {
|
|
195
197
|
workspace_id: string;
|
|
@@ -245,8 +247,8 @@ export interface ListExternalTeamsResponseOrganizationsItem {
|
|
|
245
247
|
last_active_timestamp: number;
|
|
246
248
|
/** True when team is on a free plan. False otherwise. */
|
|
247
249
|
is_sponsored: boolean;
|
|
248
|
-
canvas?: ListExternalTeamsResponseOrganizationsItemCanvas;
|
|
249
|
-
lists?: ListExternalTeamsResponseOrganizationsItemLists;
|
|
250
|
+
canvas?: ListExternalTeamsResponseOrganizationsItemCanvas | undefined;
|
|
251
|
+
lists?: ListExternalTeamsResponseOrganizationsItemLists | undefined;
|
|
250
252
|
}
|
|
251
253
|
export type ListExternalTeamsResponseOrganizationsList =
|
|
252
254
|
Array<ListExternalTeamsResponseOrganizationsItem>;
|
|
@@ -258,7 +260,7 @@ export interface ListExternalTeamsResponse {
|
|
|
258
260
|
organizations: ListExternalTeamsResponseOrganizationsList;
|
|
259
261
|
total_count: number;
|
|
260
262
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
261
|
-
response_metadata?: AccessLogsResponseResponseMetadata;
|
|
263
|
+
response_metadata?: AccessLogsResponseResponseMetadata | undefined;
|
|
262
264
|
}
|
|
263
265
|
export interface ListPreferencesRequest {}
|
|
264
266
|
export interface ListPreferencesResponse {
|
|
@@ -271,9 +273,11 @@ export interface ListPreferencesResponse {
|
|
|
271
273
|
}
|
|
272
274
|
export interface TeamInfoRequest {
|
|
273
275
|
/** 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. */
|
|
274
|
-
domain?: string;
|
|
276
|
+
domain?: string | undefined;
|
|
275
277
|
/** Team to get info about; if omitted, will return information about the current team. */
|
|
276
|
-
team?: string;
|
|
278
|
+
team?: string | undefined;
|
|
279
|
+
/** Include advisory Slackbot availability for the returned workspace or organization. Only applies to a single team in the caller's own workspace or organization; omitted for external teams. Does not guarantee individual eligibility, remaining usage, or access to a particular app. */
|
|
280
|
+
include_slackbot_availability?: boolean | undefined;
|
|
277
281
|
}
|
|
278
282
|
export interface TeamInfoResponse {
|
|
279
283
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -739,6 +743,7 @@ function __c10(j: number): any {
|
|
|
739
743
|
S.Struct({
|
|
740
744
|
domain: S.optional(S.String.pipe(T.Query())),
|
|
741
745
|
team: S.optional(S.String.pipe(T.Query())),
|
|
746
|
+
include_slackbot_availability: S.optional(S.Boolean.pipe(T.Query())),
|
|
742
747
|
}).pipe(T.Http({ method: "GET", uri: "/team.info", code: 200 })),
|
|
743
748
|
).annotate({ identifier: "TeamInfoRequest" });
|
|
744
749
|
case 1:
|
|
@@ -30,21 +30,21 @@ export type CreateUsergroupRequestChannelsList = Array<string>;
|
|
|
30
30
|
export type CreateUsergroupRequestAdditionalChannelsList = Array<string>;
|
|
31
31
|
export interface CreateUsergroupRequest {
|
|
32
32
|
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
33
|
-
channels?: CreateUsergroupRequestChannelsList;
|
|
33
|
+
channels?: CreateUsergroupRequestChannelsList | undefined;
|
|
34
34
|
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
35
|
-
additional_channels?: CreateUsergroupRequestAdditionalChannelsList;
|
|
35
|
+
additional_channels?: CreateUsergroupRequestAdditionalChannelsList | undefined;
|
|
36
36
|
/** A short description of the User Group. */
|
|
37
|
-
description?: string;
|
|
37
|
+
description?: string | undefined;
|
|
38
38
|
/** A mention handle. Must be unique among channels, users and User Groups. */
|
|
39
|
-
handle?: string;
|
|
39
|
+
handle?: string | undefined;
|
|
40
40
|
/** Include the number of users in each User Group. */
|
|
41
|
-
include_count?: boolean;
|
|
41
|
+
include_count?: boolean | undefined;
|
|
42
42
|
/** A name for the User Group. Must be unique among User Groups. */
|
|
43
43
|
name: string;
|
|
44
44
|
/** Encoded team id where the user group has to be created, required if org token is used. */
|
|
45
|
-
team_id?: string;
|
|
45
|
+
team_id?: string | undefined;
|
|
46
46
|
/** 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. */
|
|
47
|
-
enable_section?: boolean;
|
|
47
|
+
enable_section?: boolean | undefined;
|
|
48
48
|
}
|
|
49
49
|
export interface CreateUsergroupResponse {
|
|
50
50
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -53,9 +53,9 @@ export interface CreateUsergroupResponse {
|
|
|
53
53
|
}
|
|
54
54
|
export interface DisableUsergroupRequest {
|
|
55
55
|
/** Include the number of users in the User Group. */
|
|
56
|
-
include_count?: boolean;
|
|
56
|
+
include_count?: boolean | undefined;
|
|
57
57
|
/** Encoded target team id where the user group is, required if org token is used. */
|
|
58
|
-
team_id?: string;
|
|
58
|
+
team_id?: string | undefined;
|
|
59
59
|
/** The encoded ID of the User Group to disable. */
|
|
60
60
|
usergroup: string;
|
|
61
61
|
}
|
|
@@ -66,9 +66,9 @@ export interface DisableUsergroupResponse {
|
|
|
66
66
|
}
|
|
67
67
|
export interface EnableUsergroupRequest {
|
|
68
68
|
/** Include the number of users in the User Group. */
|
|
69
|
-
include_count?: boolean;
|
|
69
|
+
include_count?: boolean | undefined;
|
|
70
70
|
/** Encoded team id where the user group is, required if org token is used. */
|
|
71
|
-
team_id?: string;
|
|
71
|
+
team_id?: string | undefined;
|
|
72
72
|
/** The encoded ID of the User Group to enable. */
|
|
73
73
|
usergroup: string;
|
|
74
74
|
}
|
|
@@ -79,13 +79,13 @@ export interface EnableUsergroupResponse {
|
|
|
79
79
|
}
|
|
80
80
|
export interface ListUsergroupsRequest {
|
|
81
81
|
/** Include the number of users in each User Group. */
|
|
82
|
-
include_count?: boolean;
|
|
82
|
+
include_count?: boolean | undefined;
|
|
83
83
|
/** Include results for disabled User Groups. */
|
|
84
|
-
include_disabled?: boolean;
|
|
84
|
+
include_disabled?: boolean | undefined;
|
|
85
85
|
/** Include the list of users for each User Group. */
|
|
86
|
-
include_users?: boolean;
|
|
86
|
+
include_users?: boolean | undefined;
|
|
87
87
|
/** The user group's encoded team ID. Required if org token is used. */
|
|
88
|
-
team_id?: string;
|
|
88
|
+
team_id?: string | undefined;
|
|
89
89
|
}
|
|
90
90
|
export type ListUsergroupsResponseUsergroupsList = Array<unknown>;
|
|
91
91
|
export interface ListUsergroupsResponse {
|
|
@@ -95,11 +95,11 @@ export interface ListUsergroupsResponse {
|
|
|
95
95
|
}
|
|
96
96
|
export interface ListUsersRequest {
|
|
97
97
|
/** Include results for disabled User Groups. */
|
|
98
|
-
include_disabled?: boolean;
|
|
98
|
+
include_disabled?: boolean | undefined;
|
|
99
99
|
/** The encoded ID of the User Group. */
|
|
100
100
|
usergroup: string;
|
|
101
101
|
/** The user group's encoded team ID. Required if org token is used. */
|
|
102
|
-
team_id?: string;
|
|
102
|
+
team_id?: string | undefined;
|
|
103
103
|
}
|
|
104
104
|
export type ListUsersResponseUsersList = Array<unknown>;
|
|
105
105
|
export interface ListUsersResponse {
|
|
@@ -113,17 +113,17 @@ export type UpdateUserRequestUsersList = Array<string>;
|
|
|
113
113
|
export type UpdateUserRequestAdditionalChannelsList = Array<string>;
|
|
114
114
|
export interface UpdateUserRequest {
|
|
115
115
|
/** Include the number of users in the user group. */
|
|
116
|
-
include_count?: boolean;
|
|
116
|
+
include_count?: boolean | undefined;
|
|
117
117
|
/** encoded team id where the user group exists, required if org token is used */
|
|
118
|
-
team_id?: string;
|
|
118
|
+
team_id?: string | undefined;
|
|
119
119
|
/** The encoded ID of the user group to update. */
|
|
120
120
|
usergroup: string;
|
|
121
121
|
/** A comma separated string of encoded user IDs that represent the entire list of users for the user group. */
|
|
122
122
|
users: UpdateUserRequestUsersList;
|
|
123
123
|
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
124
|
-
additional_channels?: UpdateUserRequestAdditionalChannelsList;
|
|
124
|
+
additional_channels?: UpdateUserRequestAdditionalChannelsList | undefined;
|
|
125
125
|
/** Boolean to identify if the API is getting called when a shared section is getting shared */
|
|
126
|
-
is_shared?: boolean;
|
|
126
|
+
is_shared?: boolean | undefined;
|
|
127
127
|
}
|
|
128
128
|
export interface UpdateUserResponse {
|
|
129
129
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -136,23 +136,23 @@ export type UpdateUsergroupRequestChannelsList = Array<string>;
|
|
|
136
136
|
export type UpdateUsergroupRequestAdditionalChannelsList = Array<string>;
|
|
137
137
|
export interface UpdateUsergroupRequest {
|
|
138
138
|
/** A comma separated string of encoded channel IDs for which the User Group uses as a default. */
|
|
139
|
-
channels?: UpdateUsergroupRequestChannelsList;
|
|
139
|
+
channels?: UpdateUsergroupRequestChannelsList | undefined;
|
|
140
140
|
/** A comma separated string of encoded channel IDs for which the User Group can custom add usergroup members too. */
|
|
141
|
-
additional_channels?: UpdateUsergroupRequestAdditionalChannelsList;
|
|
141
|
+
additional_channels?: UpdateUsergroupRequestAdditionalChannelsList | undefined;
|
|
142
142
|
/** A short description of the User Group. */
|
|
143
|
-
description?: string;
|
|
143
|
+
description?: string | undefined;
|
|
144
144
|
/** A mention handle. Must be unique among channels, users and User Groups. */
|
|
145
|
-
handle?: string;
|
|
145
|
+
handle?: string | undefined;
|
|
146
146
|
/** Include the number of users in the User Group. */
|
|
147
|
-
include_count?: boolean;
|
|
147
|
+
include_count?: boolean | undefined;
|
|
148
148
|
/** A name for the User Group. Must be unique among User Groups. */
|
|
149
|
-
name?: string;
|
|
149
|
+
name?: string | undefined;
|
|
150
150
|
/** encoded team id where the user group exists, required if org token is used */
|
|
151
|
-
team_id?: string;
|
|
151
|
+
team_id?: string | undefined;
|
|
152
152
|
/** The encoded ID of the User Group to update. */
|
|
153
153
|
usergroup: string;
|
|
154
154
|
/** 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. */
|
|
155
|
-
enable_section?: boolean;
|
|
155
|
+
enable_section?: boolean | undefined;
|
|
156
156
|
}
|
|
157
157
|
/** List of user IDs who would exceed their channel limit */
|
|
158
158
|
export type UpdateUsergroupResponseChannelLimitUserIdsList = Array<string>;
|
|
@@ -161,7 +161,7 @@ export interface UpdateUsergroupResponse {
|
|
|
161
161
|
ok: boolean;
|
|
162
162
|
usergroup: unknown;
|
|
163
163
|
/** List of user IDs who would exceed their channel limit */
|
|
164
|
-
channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList;
|
|
164
|
+
channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList | undefined;
|
|
165
165
|
}
|
|
166
166
|
export type CreateUsergroupError = SlackOpError;
|
|
167
167
|
/** 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 */
|
package/src/services/users.ts
CHANGED
|
@@ -32,23 +32,23 @@ export interface DeletePhotoResponse {
|
|
|
32
32
|
}
|
|
33
33
|
export interface GetPresenceRequest {
|
|
34
34
|
/** User to get presence info on. Defaults to the authed user. */
|
|
35
|
-
user?: string;
|
|
35
|
+
user?: string | undefined;
|
|
36
36
|
}
|
|
37
37
|
export interface GetPresenceResponse {
|
|
38
38
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
39
39
|
ok: boolean;
|
|
40
|
-
last_activity?: number;
|
|
41
|
-
manual_away?: boolean;
|
|
40
|
+
last_activity?: number | undefined;
|
|
41
|
+
manual_away?: boolean | undefined;
|
|
42
42
|
presence: string;
|
|
43
|
-
online?: boolean;
|
|
44
|
-
connection_count?: number;
|
|
45
|
-
auto_away?: boolean;
|
|
43
|
+
online?: boolean | undefined;
|
|
44
|
+
connection_count?: number | undefined;
|
|
45
|
+
auto_away?: boolean | undefined;
|
|
46
46
|
}
|
|
47
47
|
export interface GetProfileRequest {
|
|
48
48
|
/** Include labels for each ID in custom profile fields. Using this parameter will heavily rate-limit your requests and is not recommended. */
|
|
49
|
-
include_labels?: boolean;
|
|
49
|
+
include_labels?: boolean | undefined;
|
|
50
50
|
/** User to retrieve profile info for */
|
|
51
|
-
user?: string;
|
|
51
|
+
user?: string | undefined;
|
|
52
52
|
}
|
|
53
53
|
export interface GetProfileResponse {
|
|
54
54
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -57,19 +57,19 @@ export interface GetProfileResponse {
|
|
|
57
57
|
}
|
|
58
58
|
export interface ListUsersRequest {
|
|
59
59
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
60
|
-
cursor?: string;
|
|
60
|
+
cursor?: string | undefined;
|
|
61
61
|
/** Set this to `true` to receive the locale for users. Defaults to `false` */
|
|
62
|
-
include_locale?: boolean;
|
|
62
|
+
include_locale?: boolean | undefined;
|
|
63
63
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. Providing no `limit` value will result in Slack attempting to deliver you the entire result set. If the collection is too large you may experience `limit_required` or HTTP 500 errors. */
|
|
64
|
-
limit?: number;
|
|
64
|
+
limit?: number | undefined;
|
|
65
65
|
/** encoded team id to list users in, required if org token is used */
|
|
66
|
-
team_id?: string;
|
|
66
|
+
team_id?: string | undefined;
|
|
67
67
|
}
|
|
68
68
|
export type ListUsersResponseMembersList = Array<unknown>;
|
|
69
69
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
70
70
|
export interface ListUsersResponseResponseMetadata {
|
|
71
71
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
72
|
-
next_cursor?: string;
|
|
72
|
+
next_cursor?: string | undefined;
|
|
73
73
|
}
|
|
74
74
|
export interface ListUsersResponse {
|
|
75
75
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -77,8 +77,8 @@ export interface ListUsersResponse {
|
|
|
77
77
|
members: ListUsersResponseMembersList;
|
|
78
78
|
cache_ts: number;
|
|
79
79
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
80
|
-
response_metadata?: ListUsersResponseResponseMetadata;
|
|
81
|
-
offset?: string;
|
|
80
|
+
response_metadata?: ListUsersResponseResponseMetadata | undefined;
|
|
81
|
+
offset?: string | undefined;
|
|
82
82
|
}
|
|
83
83
|
export interface LookupByEmailRequest {
|
|
84
84
|
/** An email address belonging to a user in the workspace */
|
|
@@ -104,13 +104,13 @@ export interface SetActiveResponse {
|
|
|
104
104
|
}
|
|
105
105
|
export interface SetPhotoRequest {
|
|
106
106
|
/** Width/height of crop box (always square) */
|
|
107
|
-
crop_w?: string;
|
|
107
|
+
crop_w?: string | undefined;
|
|
108
108
|
/** X coordinate of top-left corner of crop box */
|
|
109
|
-
crop_x?: string;
|
|
109
|
+
crop_x?: string | undefined;
|
|
110
110
|
/** Y coordinate of top-left corner of crop box */
|
|
111
|
-
crop_y?: string;
|
|
111
|
+
crop_y?: string | undefined;
|
|
112
112
|
/** File contents via `multipart/form-data`. */
|
|
113
|
-
image?: unknown;
|
|
113
|
+
image?: unknown | undefined;
|
|
114
114
|
}
|
|
115
115
|
export type SetPhotoResponseProfileMap = { [key: string]: unknown | undefined };
|
|
116
116
|
export interface SetPhotoResponse {
|
|
@@ -130,36 +130,36 @@ export interface SetPresenceResponse {
|
|
|
130
130
|
}
|
|
131
131
|
export interface SetProfileRequest {
|
|
132
132
|
/** Name of a single key to set. Usable only if `profile` is not passed. */
|
|
133
|
-
name?: string;
|
|
133
|
+
name?: string | undefined;
|
|
134
134
|
/** Collection of key:value pairs presented as a URL-encoded JSON hash. At most 50 fields may be set. Each field name is limited to 255 characters. */
|
|
135
|
-
profile?: string;
|
|
135
|
+
profile?: string | undefined;
|
|
136
136
|
/** ID of user to change. This argument may only be specified by admins on paid teams. */
|
|
137
|
-
user?: string;
|
|
137
|
+
user?: string | undefined;
|
|
138
138
|
/** Value to set a single key to. Usable only if `profile` is not passed. */
|
|
139
|
-
value?: string;
|
|
139
|
+
value?: string | undefined;
|
|
140
140
|
}
|
|
141
141
|
export interface SetProfileResponse {
|
|
142
142
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
143
143
|
ok: boolean;
|
|
144
144
|
username: string;
|
|
145
145
|
profile: unknown;
|
|
146
|
-
email_pending?: string;
|
|
146
|
+
email_pending?: string | undefined;
|
|
147
147
|
}
|
|
148
148
|
export interface UsersConversationsRequest {
|
|
149
149
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
150
|
-
cursor?: string;
|
|
150
|
+
cursor?: string | undefined;
|
|
151
151
|
/** Set to `true` to exclude archived channels from the list */
|
|
152
|
-
exclude_archived?: boolean;
|
|
152
|
+
exclude_archived?: boolean | undefined;
|
|
153
153
|
/** Set to `true` to exclude muted channels from the list */
|
|
154
|
-
exclude_muted?: boolean;
|
|
154
|
+
exclude_muted?: boolean | undefined;
|
|
155
155
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer with a max value of 999. */
|
|
156
|
-
limit?: number;
|
|
156
|
+
limit?: number | undefined;
|
|
157
157
|
/** encoded team id to list conversations in, required if org token is used */
|
|
158
|
-
team_id?: string;
|
|
158
|
+
team_id?: string | undefined;
|
|
159
159
|
/** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im` */
|
|
160
|
-
types?: string;
|
|
160
|
+
types?: string | undefined;
|
|
161
161
|
/** Browse conversations by a specific user ID's membership. Non-public channels are restricted to those where the calling user shares membership. */
|
|
162
|
-
user?: string;
|
|
162
|
+
user?: string | undefined;
|
|
163
163
|
}
|
|
164
164
|
export type UsersConversationsResponseChannelsList = Array<unknown>;
|
|
165
165
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -169,7 +169,7 @@ export interface UsersConversationsResponse {
|
|
|
169
169
|
ok: boolean;
|
|
170
170
|
channels: UsersConversationsResponseChannelsList;
|
|
171
171
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
172
|
-
response_metadata?: ListUsersResponseResponseMetadata;
|
|
172
|
+
response_metadata?: ListUsersResponseResponseMetadata | undefined;
|
|
173
173
|
}
|
|
174
174
|
export interface UsersIdentityRequest {}
|
|
175
175
|
export interface UsersIdentityResponse {
|
|
@@ -178,16 +178,16 @@ export interface UsersIdentityResponse {
|
|
|
178
178
|
}
|
|
179
179
|
export interface UsersInfoRequest {
|
|
180
180
|
/** Set this to `true` to receive the locale for this user. Defaults to `false` */
|
|
181
|
-
include_locale?: boolean;
|
|
181
|
+
include_locale?: boolean | undefined;
|
|
182
182
|
/** User to get info on */
|
|
183
|
-
user?: string;
|
|
183
|
+
user?: string | undefined;
|
|
184
184
|
}
|
|
185
185
|
export type UsersInfoResponseUsersList = Array<unknown>;
|
|
186
186
|
export interface UsersInfoResponse {
|
|
187
187
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
188
188
|
ok: boolean;
|
|
189
|
-
user?: unknown;
|
|
190
|
-
users?: UsersInfoResponseUsersList;
|
|
189
|
+
user?: unknown | undefined;
|
|
190
|
+
users?: UsersInfoResponseUsersList | undefined;
|
|
191
191
|
}
|
|
192
192
|
export type DeletePhotoError = SlackOpError;
|
|
193
193
|
/** Delete the user profile photo Required scopes -- user: `users.profile:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An unexpected error occurred. See https://docs.slack.dev/reference/methods/users.deletePhoto */
|
|
@@ -354,7 +354,7 @@ export const setPresence: API.OperationMethod<
|
|
|
354
354
|
}));
|
|
355
355
|
|
|
356
356
|
export type SetProfileError = SlackOpError;
|
|
357
|
-
/** Set a user's profile information, including custom status. Required scopes -- user: `users.profile:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cannot_update_admin_user` -- Only a primary owner can update the profile of an admin. - `email_taken` -- email taken - `invalid_profile` -- Profile object passed in is not valid JSON (make sure it is URL encoded!). - `must_clear_both_status_text_and_status_emoji` -- Clearing the status requires setting both `status_text` and `status_emoji` to ''. - `name_not_allowed` -- name cannot contain URL. - `not_admin` -- Only admins can update the profile of another user. Some fields, like `email` may only be updated by an admin. - `not_app_admin` -- Only team owners and selected members can update the profile of a bot user. - `partial_profile_set_failed` -- Failed to set user profile. - `profile_set_failed` -- Failed to set user profile. - `reserved_name` -- First or last name are reserved. - `sudo_required` -- Request requires sudo session. - `too_long` -- You attempted to set a custom status but it was longer than the maximum allowed, 100. - `permission_denied` -- Permission denied. - `username_same` -- Username is the same as the current username. - `invalid_emoji_not_allowed` -- Invalid emoji not allowed. - `invalid_ooo_message` -- Invalid Out of Office message. - `invalid_starts_with_at` -- Name cannot start with @. See https://docs.slack.dev/reference/methods/users.profile.set */
|
|
357
|
+
/** Set a user's profile information, including custom status. Required scopes -- user: `users.profile:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cannot_update_admin_user` -- Only a primary owner can update the profile of an admin. - `email_taken` -- email taken - `invalid_profile` -- Profile object passed in is not valid JSON (make sure it is URL encoded!). - `must_clear_both_status_text_and_status_emoji` -- Clearing the status requires setting both `status_text` and `status_emoji` to ''. - `name_not_allowed` -- name cannot contain URL. - `not_admin` -- Only admins can update the profile of another user. Some fields, like `email` may only be updated by an admin. - `not_app_admin` -- Only team owners and selected members can update the profile of a bot user. - `partial_profile_set_failed` -- Failed to set user profile. - `profile_set_failed` -- Failed to set user profile. - `reserved_name` -- First or last name are reserved. - `sudo_required` -- Request requires sudo session. - `too_long` -- You attempted to set a custom status but it was longer than the maximum allowed, 100. - `permission_denied` -- Permission denied. - `username_same` -- Username is the same as the current username. - `invalid_emoji_not_allowed` -- Invalid emoji not allowed. - `invalid_ooo_message` -- Invalid Out of Office message. - `invalid_starts_with_at` -- Name cannot start with @. - `frontline_member_username_change_not_allowed` -- Frontline members cannot change their own username. Only an admin can change it. See https://docs.slack.dev/reference/methods/users.profile.set */
|
|
358
358
|
export const setProfile: API.OperationMethod<
|
|
359
359
|
SetProfileRequest,
|
|
360
360
|
SetProfileResponse,
|
package/src/services/views.ts
CHANGED
|
@@ -30,8 +30,8 @@ export interface PublishViewRequest {
|
|
|
30
30
|
/** A [view payload](/reference/views). This must be a JSON-encoded string. */
|
|
31
31
|
view: unknown;
|
|
32
32
|
/** A string that represents view state to protect against possible race conditions. */
|
|
33
|
-
hash?: string;
|
|
34
|
-
interactivity_pointer?: string;
|
|
33
|
+
hash?: string | undefined;
|
|
34
|
+
interactivity_pointer?: string | undefined;
|
|
35
35
|
}
|
|
36
36
|
export interface PublishViewResponse {
|
|
37
37
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -40,13 +40,13 @@ export interface PublishViewResponse {
|
|
|
40
40
|
}
|
|
41
41
|
export interface UpdateViewRequest {
|
|
42
42
|
/** A unique identifier of the view to be updated. Either `view_id` or `external_id` is required. */
|
|
43
|
-
view_id?: string;
|
|
43
|
+
view_id?: string | undefined;
|
|
44
44
|
/** A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either `view_id` or `external_id` is required. */
|
|
45
|
-
external_id?: string;
|
|
45
|
+
external_id?: string | undefined;
|
|
46
46
|
/** A [view object](/reference/views). This must be a JSON-encoded string. */
|
|
47
47
|
view: unknown;
|
|
48
48
|
/** A string that represents view state to protect against possible race conditions. */
|
|
49
|
-
hash?: string;
|
|
49
|
+
hash?: string | undefined;
|
|
50
50
|
}
|
|
51
51
|
export interface UpdateViewResponse {
|
|
52
52
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -56,9 +56,9 @@ export interface UpdateViewResponse {
|
|
|
56
56
|
export type ViewsOpenRequestViewMap = { [key: string]: unknown | undefined };
|
|
57
57
|
export interface ViewsOpenRequest {
|
|
58
58
|
/** Exchange a trigger to post to the user. */
|
|
59
|
-
trigger_id?: string | null;
|
|
59
|
+
trigger_id?: string | null | undefined;
|
|
60
60
|
/** Exchange an interactivity pointer to post to the user. */
|
|
61
|
-
interactivity_pointer?: string | null;
|
|
61
|
+
interactivity_pointer?: string | null | undefined;
|
|
62
62
|
/** A [view payload](/reference/views). This must be a JSON-encoded string. */
|
|
63
63
|
view: ViewsOpenRequestViewMap;
|
|
64
64
|
}
|
|
@@ -69,9 +69,9 @@ export interface ViewsOpenResponse {
|
|
|
69
69
|
}
|
|
70
70
|
export interface ViewsPushRequest {
|
|
71
71
|
/** Exchange a trigger to post to the user. */
|
|
72
|
-
trigger_id?: string | null;
|
|
72
|
+
trigger_id?: string | null | undefined;
|
|
73
73
|
/** Exchange an interactivity pointer to post to the user. */
|
|
74
|
-
interactivity_pointer?: string | null;
|
|
74
|
+
interactivity_pointer?: string | null | undefined;
|
|
75
75
|
/** A [view payload](/reference/views). This must be a JSON-encoded string. */
|
|
76
76
|
view: unknown;
|
|
77
77
|
}
|