@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -53
- package/lib/errors.d.ts +31 -31
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -59
- package/lib/index.d.ts +1 -1
- package/lib/index.js +0 -10
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +2 -2
- package/lib/pagination.js +1 -31
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -231
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -45
- package/lib/services/admin.d.ts +123 -575
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +141 -2884
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +13 -55
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -314
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts +0 -4
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -23
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +25 -106
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +35 -515
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +6 -40
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -209
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +4 -15
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -96
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +1 -7
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -26
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +4 -15
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -81
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +1 -9
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -59
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +6 -22
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -115
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +7 -35
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -140
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +14 -83
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -387
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +31 -116
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +40 -696
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts +1 -4
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -22
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +5 -17
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -96
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +1 -8
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -34
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +4 -16
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -76
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +16 -80
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +1 -439
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +8 -49
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -208
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/lists.d.ts +13 -55
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -254
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +1 -7
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -32
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +7 -43
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -294
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +3 -10
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -84
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +3 -13
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -66
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +5 -17
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -102
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +5 -17
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -88
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +2 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -61
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +4 -35
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -172
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts +4 -26
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -134
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +11 -63
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -295
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +2 -5
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -33
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +7 -31
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -151
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +14 -48
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -255
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +4 -14
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -78
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +8 -51
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -193
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +3 -0
- package/lib/services.lazy/agents.js +1 -0
- package/lib/services.lazy/api.js +1 -0
- package/lib/services.lazy/apps.js +3 -0
- package/lib/services.lazy/assistant.js +1 -0
- package/lib/services.lazy/auth.js +1 -0
- package/lib/services.lazy/blocks.js +1 -0
- package/lib/services.lazy/bookmarks.js +1 -0
- package/lib/services.lazy/bots.js +1 -0
- package/lib/services.lazy/calls.js +1 -0
- package/lib/services.lazy/canvases.js +1 -0
- package/lib/services.lazy/chat.js +1 -0
- package/lib/services.lazy/conversations.js +3 -0
- package/lib/services.lazy/dialog.js +1 -0
- package/lib/services.lazy/dnd.js +1 -0
- package/lib/services.lazy/emoji.js +1 -0
- package/lib/services.lazy/entity.js +1 -0
- package/lib/services.lazy/files.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/lists.js +1 -0
- package/lib/services.lazy/migration.js +1 -0
- package/lib/services.lazy/oauth.js +1 -0
- package/lib/services.lazy/openid.js +1 -0
- package/lib/services.lazy/pins.js +1 -0
- package/lib/services.lazy/reactions.js +1 -0
- package/lib/services.lazy/reminders.js +1 -0
- package/lib/services.lazy/rtm.js +1 -0
- package/lib/services.lazy/search.js +1 -0
- package/lib/services.lazy/stars.js +1 -0
- package/lib/services.lazy/team.js +1 -0
- package/lib/services.lazy/tooling.js +1 -0
- package/lib/services.lazy/usergroups.js +1 -0
- package/lib/services.lazy/users.js +1 -0
- package/lib/services.lazy/views.js +1 -0
- package/lib/services.lazy/workflows.js +1 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -12
- package/package.json +10 -8
- package/src/credentials.ts +20 -21
- package/src/errors.ts +31 -27
- package/src/index.ts +1 -1
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +30 -29
- package/src/retry.ts +6 -6
- package/src/services/admin.ts +2717 -3451
- package/src/services/agents.ts +380 -370
- package/src/services/api.ts +31 -21
- package/src/services/apps.ts +569 -621
- package/src/services/assistant.ts +235 -270
- package/src/services/auth.ts +118 -100
- package/src/services/blocks.ts +33 -29
- package/src/services/bookmarks.ts +101 -83
- package/src/services/bots.ts +74 -67
- package/src/services/calls.ts +118 -124
- package/src/services/canvases.ts +171 -178
- package/src/services/chat.ts +428 -496
- package/src/services/conversations.ts +675 -761
- package/src/services/dialog.ts +30 -17
- package/src/services/dnd.ts +125 -99
- package/src/services/emoji.ts +46 -42
- package/src/services/entity.ts +94 -92
- package/src/services/files.ts +536 -531
- package/src/services/functions.ts +209 -274
- package/src/services/lists.ts +289 -304
- package/src/services/migration.ts +39 -37
- package/src/services/oauth.ts +345 -361
- package/src/services/openid.ts +137 -122
- package/src/services/pins.ts +83 -70
- package/src/services/reactions.ts +119 -103
- package/src/services/reminders.ts +112 -90
- package/src/services/rtm.ts +73 -65
- package/src/services/search.ts +193 -244
- package/src/services/stars.ts +101 -160
- package/src/services/team.ts +333 -369
- package/src/services/tooling.ts +43 -30
- package/src/services/usergroups.ts +175 -179
- package/src/services/users.ts +301 -268
- package/src/services/views.ts +85 -80
- package/src/services/workflows.ts +184 -269
- package/src/traits.ts +1 -1
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -288
- package/lib/protocol.test.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -372
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
package/lib/services/apps.js
CHANGED
|
@@ -1,516 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export const BulkPutRequestItemsList = /*@__PURE__*/ S.Array(BulkPutRequestItemsItemMap);
|
|
37
|
-
export const BulkPutRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
|
-
datastore: S.String,
|
|
39
|
-
items: BulkPutRequestItemsList,
|
|
40
|
-
app_id: S.optional(S.String),
|
|
41
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 }))).annotate({ identifier: "BulkPutRequest" });
|
|
42
|
-
export const BulkPutResponseFailedItemsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
43
|
-
export const BulkPutResponseFailedItemsList = /*@__PURE__*/ S.Array(BulkPutResponseFailedItemsItemMap);
|
|
44
|
-
export const BulkPutResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
-
ok: S.Boolean,
|
|
46
|
-
datastore: S.optional(S.String),
|
|
47
|
-
failed_items: S.optional(BulkPutResponseFailedItemsList),
|
|
48
|
-
})).annotate({ identifier: "BulkPutResponse" });
|
|
49
|
-
export const ConnectionsOpenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/apps.connections.open", code: 200 }))).annotate({ identifier: "ConnectionsOpenRequest" });
|
|
50
|
-
export const ConnectionsOpenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
-
ok: S.Boolean,
|
|
52
|
-
url: S.String,
|
|
53
|
-
})).annotate({ identifier: "ConnectionsOpenResponse" });
|
|
54
|
-
export const CreateManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
55
|
-
manifest: S.String,
|
|
56
|
-
team_id: S.optional(S.String),
|
|
57
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.create", code: 200 }))).annotate({ identifier: "CreateManifestRequest" });
|
|
58
|
-
export const CreateManifestResponseCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
-
client_id: S.optional(S.String),
|
|
60
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
61
|
-
verification_token: S.optional(S.String),
|
|
62
|
-
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
63
|
-
})).annotate({
|
|
64
|
-
identifier: "CreateManifestResponseCredentials",
|
|
65
|
-
});
|
|
66
|
-
export const CreateManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
|
-
ok: S.Boolean,
|
|
68
|
-
app_id: S.String,
|
|
69
|
-
credentials: CreateManifestResponseCredentials,
|
|
70
|
-
oauth_authorize_url: S.optional(S.String),
|
|
71
|
-
team_id: S.optional(S.String),
|
|
72
|
-
team_domain: S.optional(S.String),
|
|
73
|
-
app_token: S.optional(S.String),
|
|
74
|
-
})).annotate({ identifier: "CreateManifestResponse" });
|
|
75
|
-
export const DatastoreCountRequestExpressionAttributesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
76
|
-
export const DatastoreCountRequestExpressionValuesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
77
|
-
export const DatastoreCountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
78
|
-
datastore: S.String,
|
|
79
|
-
expression: S.optional(S.String),
|
|
80
|
-
expression_attributes: S.optional(DatastoreCountRequestExpressionAttributesMap),
|
|
81
|
-
expression_values: S.optional(DatastoreCountRequestExpressionValuesMap),
|
|
82
|
-
app_id: S.optional(S.String),
|
|
83
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.count", code: 200 }))).annotate({ identifier: "DatastoreCountRequest" });
|
|
84
|
-
export const DatastoreCountResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
-
ok: S.Boolean,
|
|
86
|
-
datastore: S.optional(S.String),
|
|
87
|
-
count: S.optional(S.Number),
|
|
88
|
-
})).annotate({ identifier: "DatastoreCountResponse" });
|
|
89
|
-
export const DatastoreQueryRequestExpressionAttributesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
90
|
-
export const DatastoreQueryRequestExpressionValuesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
91
|
-
export const DatastoreQueryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
datastore: S.String,
|
|
93
|
-
expression: S.optional(S.String),
|
|
94
|
-
expression_attributes: S.optional(DatastoreQueryRequestExpressionAttributesMap),
|
|
95
|
-
expression_values: S.optional(DatastoreQueryRequestExpressionValuesMap),
|
|
96
|
-
app_id: S.optional(S.String),
|
|
97
|
-
cursor: S.optional(S.String),
|
|
98
|
-
limit: S.optional(S.Number),
|
|
99
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.query", code: 200 }))).annotate({ identifier: "DatastoreQueryRequest" });
|
|
100
|
-
export const DatastoreQueryResponseItemsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
101
|
-
export const DatastoreQueryResponseItemsList = /*@__PURE__*/ S.Array(DatastoreQueryResponseItemsItemMap);
|
|
102
|
-
export const DatastoreQueryResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
next_cursor: S.optional(S.String),
|
|
104
|
-
})).annotate({
|
|
105
|
-
identifier: "DatastoreQueryResponseResponseMetadata",
|
|
106
|
-
});
|
|
107
|
-
export const DatastoreQueryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
|
-
ok: S.Boolean,
|
|
109
|
-
datastore: S.optional(S.String),
|
|
110
|
-
items: DatastoreQueryResponseItemsList,
|
|
111
|
-
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
112
|
-
})).annotate({ identifier: "DatastoreQueryResponse" });
|
|
113
|
-
export const DeleteAuthExternalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
app_id: S.optional(S.String),
|
|
115
|
-
provider_key: S.optional(S.String),
|
|
116
|
-
external_token_id: S.optional(S.String),
|
|
117
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.delete", code: 200 }))).annotate({
|
|
118
|
-
identifier: "DeleteAuthExternalRequest",
|
|
119
|
-
});
|
|
120
|
-
export const DeleteAuthExternalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
121
|
-
ok: S.Boolean,
|
|
122
|
-
})).annotate({
|
|
123
|
-
identifier: "DeleteAuthExternalResponse",
|
|
124
|
-
});
|
|
125
|
-
export const DeleteDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
126
|
-
datastore: S.String,
|
|
127
|
-
id: S.String,
|
|
128
|
-
app_id: S.optional(S.String),
|
|
129
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.delete", code: 200 }))).annotate({ identifier: "DeleteDatastoreRequest" });
|
|
130
|
-
export const DeleteDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
131
|
-
ok: S.Boolean,
|
|
132
|
-
})).annotate({ identifier: "DeleteDatastoreResponse" });
|
|
133
|
-
export const DeleteManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
134
|
-
app_id: S.String,
|
|
135
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 }))).annotate({ identifier: "DeleteManifestRequest" });
|
|
136
|
-
export const DeleteManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
137
|
-
ok: S.Boolean,
|
|
138
|
-
})).annotate({ identifier: "DeleteManifestResponse" });
|
|
139
|
-
export const ExportManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
-
app_id: S.String,
|
|
141
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.export", code: 200 }))).annotate({ identifier: "ExportManifestRequest" });
|
|
142
|
-
export const ExportManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
143
|
-
ok: S.Boolean,
|
|
144
|
-
manifest: S.Unknown,
|
|
145
|
-
})).annotate({ identifier: "ExportManifestResponse" });
|
|
146
|
-
export const GetAuthExternalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
147
|
-
external_token_id: S.String,
|
|
148
|
-
force_refresh: S.optional(S.Boolean),
|
|
149
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.auth.external.get", code: 200 }))).annotate({ identifier: "GetAuthExternalRequest" });
|
|
150
|
-
export const GetAuthExternalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
151
|
-
ok: S.Boolean,
|
|
152
|
-
external_token: S.String,
|
|
153
|
-
token_response_extras: S.Unknown,
|
|
154
|
-
})).annotate({ identifier: "GetAuthExternalResponse" });
|
|
155
|
-
export const GetDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
156
|
-
datastore: S.String,
|
|
157
|
-
id: S.String,
|
|
158
|
-
app_id: S.optional(S.String),
|
|
159
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.get", code: 200 }))).annotate({ identifier: "GetDatastoreRequest" });
|
|
160
|
-
export const GetDatastoreResponseItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
161
|
-
export const GetDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
-
ok: S.Boolean,
|
|
163
|
-
datastore: S.optional(S.String),
|
|
164
|
-
item: S.optional(GetDatastoreResponseItemMap),
|
|
165
|
-
})).annotate({ identifier: "GetDatastoreResponse" });
|
|
166
|
-
export const ListActivitiesRequestSortDirection = S.String;
|
|
167
|
-
export const ListActivitiesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
-
app_id: S.String,
|
|
169
|
-
team_id: S.optional(S.String),
|
|
170
|
-
cursor: S.optional(S.String),
|
|
171
|
-
limit: S.optional(S.Number),
|
|
172
|
-
min_log_level: S.optional(S.String),
|
|
173
|
-
log_event_type: S.optional(S.String),
|
|
174
|
-
source: S.optional(S.String),
|
|
175
|
-
component_type: S.optional(S.String),
|
|
176
|
-
component_id: S.optional(S.String),
|
|
177
|
-
trace_id: S.optional(S.String),
|
|
178
|
-
min_date_created: S.optional(S.Number),
|
|
179
|
-
max_date_created: S.optional(S.Number),
|
|
180
|
-
sort_direction: S.optional(ListActivitiesRequestSortDirection),
|
|
181
|
-
}).pipe(T.Http({
|
|
182
|
-
method: "POST",
|
|
183
|
-
uri: "/apps.activities.list",
|
|
184
|
-
code: 200,
|
|
185
|
-
contentType: "form-urlencoded",
|
|
186
|
-
}))).annotate({ identifier: "ListActivitiesRequest" });
|
|
187
|
-
export const ListActivitiesResponseActivitiesList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
188
|
-
export const ListActivitiesResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
189
|
-
export const ListActivitiesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
190
|
-
ok: S.Boolean,
|
|
191
|
-
activities: ListActivitiesResponseActivitiesList,
|
|
192
|
-
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
193
|
-
})).annotate({ identifier: "ListActivitiesResponse" });
|
|
194
|
-
export const ListEventAuthorizationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
-
event_context: S.String,
|
|
196
|
-
cursor: S.optional(S.String),
|
|
197
|
-
limit: S.optional(S.Number),
|
|
198
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.event.authorizations.list", code: 200 }))).annotate({
|
|
199
|
-
identifier: "ListEventAuthorizationsRequest",
|
|
200
|
-
});
|
|
201
|
-
export const ListEventAuthorizationsResponseAuthorizationsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
202
|
-
enterprise_id: S.NullOr(S.String),
|
|
203
|
-
team_id: S.NullOr(S.String),
|
|
204
|
-
user_id: S.String,
|
|
205
|
-
is_bot: S.Boolean,
|
|
206
|
-
is_enterprise_install: S.Boolean,
|
|
207
|
-
})).annotate({
|
|
208
|
-
identifier: "ListEventAuthorizationsResponseAuthorizationsItem",
|
|
209
|
-
});
|
|
210
|
-
export const ListEventAuthorizationsResponseAuthorizationsList = /*@__PURE__*/ S.Array(ListEventAuthorizationsResponseAuthorizationsItem);
|
|
211
|
-
export const ListEventAuthorizationsResponseResponseMetadata = DatastoreQueryResponseResponseMetadata;
|
|
212
|
-
export const ListEventAuthorizationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
-
ok: S.Boolean,
|
|
214
|
-
cursor_next: S.optional(S.String),
|
|
215
|
-
authorizations: ListEventAuthorizationsResponseAuthorizationsList,
|
|
216
|
-
response_metadata: S.optional(DatastoreQueryResponseResponseMetadata),
|
|
217
|
-
})).annotate({
|
|
218
|
-
identifier: "ListEventAuthorizationsResponse",
|
|
219
|
-
});
|
|
220
|
-
export const PutDatastoreRequestItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
221
|
-
export const PutDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
222
|
-
datastore: S.String,
|
|
223
|
-
item: PutDatastoreRequestItemMap,
|
|
224
|
-
app_id: S.optional(S.String),
|
|
225
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.put", code: 200 }))).annotate({ identifier: "PutDatastoreRequest" });
|
|
226
|
-
export const PutDatastoreResponseItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
227
|
-
export const PutDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
228
|
-
ok: S.Boolean,
|
|
229
|
-
datastore: S.optional(S.String),
|
|
230
|
-
item: S.optional(PutDatastoreResponseItemMap),
|
|
231
|
-
})).annotate({ identifier: "PutDatastoreResponse" });
|
|
232
|
-
export const SetIconRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
233
|
-
app_id: S.String,
|
|
234
|
-
file: S.optional(S.Unknown),
|
|
235
|
-
url: S.optional(S.String),
|
|
236
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.icon.set", code: 200 }))).annotate({ identifier: "SetIconRequest" });
|
|
237
|
-
export const SetIconResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
238
|
-
ok: S.Boolean,
|
|
239
|
-
})).annotate({ identifier: "SetIconResponse" });
|
|
240
|
-
export const SetManagedPermissionsRequestPermissions = S.String;
|
|
241
|
-
export const SetManagedPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
-
app_id: S.String,
|
|
243
|
-
permissions: SetManagedPermissionsRequestPermissions,
|
|
244
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.managed.permissions.set", code: 200 }))).annotate({
|
|
245
|
-
identifier: "SetManagedPermissionsRequest",
|
|
246
|
-
});
|
|
247
|
-
export const SetManagedPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
-
ok: S.Boolean,
|
|
249
|
-
})).annotate({
|
|
250
|
-
identifier: "SetManagedPermissionsResponse",
|
|
251
|
-
});
|
|
252
|
-
export const UninstallAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
-
client_id: S.String,
|
|
254
|
-
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
255
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.uninstall", code: 200, contentType: "form-urlencoded" }))).annotate({ identifier: "UninstallAppRequest" });
|
|
256
|
-
export const UninstallAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
257
|
-
ok: S.Boolean,
|
|
258
|
-
uninstalled: S.Boolean,
|
|
259
|
-
})).annotate({ identifier: "UninstallAppResponse" });
|
|
260
|
-
export const UpdateDatastoreRequestItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
261
|
-
export const UpdateDatastoreRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
262
|
-
datastore: S.String,
|
|
263
|
-
item: UpdateDatastoreRequestItemMap,
|
|
264
|
-
app_id: S.optional(S.String),
|
|
265
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.update", code: 200 }))).annotate({ identifier: "UpdateDatastoreRequest" });
|
|
266
|
-
export const UpdateDatastoreResponseItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
267
|
-
export const UpdateDatastoreResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
|
-
ok: S.Boolean,
|
|
269
|
-
datastore: S.optional(S.String),
|
|
270
|
-
item: S.optional(UpdateDatastoreResponseItemMap),
|
|
271
|
-
})).annotate({ identifier: "UpdateDatastoreResponse" });
|
|
272
|
-
export const UpdateManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
273
|
-
manifest: S.String,
|
|
274
|
-
app_id: S.String,
|
|
275
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.update", code: 200 }))).annotate({ identifier: "UpdateManifestRequest" });
|
|
276
|
-
export const UpdateManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
277
|
-
ok: S.Boolean,
|
|
278
|
-
app_id: S.String,
|
|
279
|
-
permissions_updated: S.optional(S.Boolean),
|
|
280
|
-
})).annotate({ identifier: "UpdateManifestResponse" });
|
|
281
|
-
export const UpdateUserConnectionRequestStatus = S.String;
|
|
282
|
-
export const UpdateUserConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
283
|
-
user_id: S.String,
|
|
284
|
-
status: UpdateUserConnectionRequestStatus,
|
|
285
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.update", code: 200 }))).annotate({
|
|
286
|
-
identifier: "UpdateUserConnectionRequest",
|
|
287
|
-
});
|
|
288
|
-
export const UpdateUserConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
289
|
-
ok: S.Boolean,
|
|
290
|
-
})).annotate({
|
|
291
|
-
identifier: "UpdateUserConnectionResponse",
|
|
292
|
-
});
|
|
293
|
-
export const ValidateManifestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
294
|
-
manifest: S.String,
|
|
295
|
-
app_id: S.optional(S.String),
|
|
296
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.validate", code: 200 }))).annotate({ identifier: "ValidateManifestRequest" });
|
|
297
|
-
export const ValidateManifestResponseErrorsList = /*@__PURE__*/ S.Array(S.String);
|
|
298
|
-
export const ValidateManifestResponseWarningsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
|
-
code: S.String,
|
|
300
|
-
message: S.String,
|
|
301
|
-
pointer: S.optional(S.String),
|
|
302
|
-
})).annotate({
|
|
303
|
-
identifier: "ValidateManifestResponseWarningsItem",
|
|
304
|
-
});
|
|
305
|
-
export const ValidateManifestResponseWarningsList = /*@__PURE__*/ S.Array(ValidateManifestResponseWarningsItem);
|
|
306
|
-
export const ValidateManifestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
307
|
-
ok: S.Boolean,
|
|
308
|
-
errors: ValidateManifestResponseErrorsList,
|
|
309
|
-
warnings: S.optional(ValidateManifestResponseWarningsList),
|
|
310
|
-
})).annotate({ identifier: "ValidateManifestResponse" });
|
|
311
|
-
/** Delete items from a datastore in bulk Required scopes — bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be deleted - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkDelete */
|
|
312
|
-
export const bulkDelete = /*@__PURE__*/ API.make(() => ({
|
|
313
|
-
input: BulkDeleteRequest,
|
|
314
|
-
output: BulkDeleteResponse,
|
|
315
|
-
errors: [SlackError, SlackRateLimited],
|
|
316
|
-
protocol: SlackProtocol,
|
|
317
|
-
retry: Retry.Retry,
|
|
318
|
-
}));
|
|
319
|
-
/** Get items from a datastore in bulk Required scopes — bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be retrieved - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkGet */
|
|
320
|
-
export const bulkGet = /*@__PURE__*/ API.make(() => ({
|
|
321
|
-
input: BulkGetRequest,
|
|
322
|
-
output: BulkGetResponse,
|
|
323
|
-
errors: [SlackError, SlackRateLimited],
|
|
324
|
-
protocol: SlackProtocol,
|
|
325
|
-
retry: Retry.Retry,
|
|
326
|
-
}));
|
|
327
|
-
/** Creates or replaces existing items in bulk Required scopes — bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` — This method does not exist - `partial_failure` — some items failed to be updated - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkPut */
|
|
328
|
-
export const bulkPut = /*@__PURE__*/ API.make(() => ({
|
|
329
|
-
input: BulkPutRequest,
|
|
330
|
-
output: BulkPutResponse,
|
|
331
|
-
errors: [SlackError, SlackRateLimited],
|
|
332
|
-
protocol: SlackProtocol,
|
|
333
|
-
retry: Retry.Retry,
|
|
334
|
-
}));
|
|
335
|
-
/** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team` — The authenticated team cannot use this API - `insecure_request` — The method was not called via a `POST` request. - `internal_error` — An unexpected exception with the service has occurred. - `invalid_auth` — The provided [app-level token](/authentication/tokens#app) wasn't valid. - `missing_args` — An [app-level token](/authentication/tokens#app) wasn't provided. See https://docs.slack.dev/reference/methods/apps.connections.open */
|
|
336
|
-
export const connectionsOpen = /*@__PURE__*/ API.make(() => ({
|
|
337
|
-
input: ConnectionsOpenRequest,
|
|
338
|
-
output: ConnectionsOpenResponse,
|
|
339
|
-
errors: [SlackError, SlackRateLimited],
|
|
340
|
-
protocol: SlackProtocol,
|
|
341
|
-
retry: Retry.Retry,
|
|
342
|
-
}));
|
|
343
|
-
/** Create an app from an app manifest. Required scopes — configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_app` — An app created from the provided manifest would not be valid. - `invalid_arguments` — Invalid API arguments provided. - `invalid_manager_app` — The calling app is not enrolled as a manager app. Ensure the app has `app_configurations:write` in its configured scopes and its home team has manager app support enabled. - `invalid_manifest` — The provided manifest file does not validate against schema. Consult the additional errors field to locate specific issues. - `invalid_team_id` — The provided team ID is not valid - `not_in_team` — Cannot create an app in a team that user is not a member of - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `failed_datastore_operation` — Failed while managing datastore infrastructure - `failed_generating_app_token` — App level token failed to generate. - `feature_not_enabled` — The required feature is not enabled for this workspace. - `managed_app_limit_reached` — The manager app has reached the maximum number of managed apps it can create. - `ratelimited` — Too many calls in succession to create endpoint during a short period of time. - `socket_mode_not_enabled` — Socket mode is not enabled in manifest. - `enterprise_is_restricted` — Org-level tokens are not allowed. - `unknown_method` — Unknown method - `dynamic_client_registration_invalid_redirect_uri` — The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `dynamic_client_registration_failed` — Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` — Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` — The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` — The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` — The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` — The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.create */
|
|
344
|
-
export const createManifest = /*@__PURE__*/ API.make(() => ({
|
|
345
|
-
input: CreateManifestRequest,
|
|
346
|
-
output: CreateManifestResponse,
|
|
347
|
-
errors: [SlackError, SlackRateLimited],
|
|
348
|
-
protocol: SlackProtocol,
|
|
349
|
-
retry: Retry.Retry,
|
|
350
|
-
}));
|
|
351
|
-
/** Count the number of items in a datastore that match a query Required scopes — bot: `datastore:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to access datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore query not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.count */
|
|
352
|
-
export const datastoreCount = /*@__PURE__*/ API.make(() => ({
|
|
353
|
-
input: DatastoreCountRequest,
|
|
354
|
-
output: DatastoreCountResponse,
|
|
355
|
-
errors: [SlackError, SlackRateLimited],
|
|
356
|
-
protocol: SlackProtocol,
|
|
357
|
-
retry: Retry.Retry,
|
|
358
|
-
}));
|
|
359
|
-
/** Query a datastore for items Required scopes — bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to access datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore query not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.query */
|
|
360
|
-
export const datastoreQuery = /*@__PURE__*/ API.makePaginated(() => ({
|
|
361
|
-
input: DatastoreQueryRequest,
|
|
362
|
-
output: DatastoreQueryResponse,
|
|
363
|
-
errors: [SlackError, SlackRateLimited],
|
|
364
|
-
protocol: SlackProtocol,
|
|
365
|
-
retry: Retry.Retry,
|
|
366
|
-
pagination: {
|
|
367
|
-
mode: "cursor",
|
|
368
|
-
inputToken: "cursor",
|
|
369
|
-
outputToken: "response_metadata.next_cursor",
|
|
370
|
-
items: "items",
|
|
371
|
-
pageSize: "limit",
|
|
372
|
-
},
|
|
373
|
-
}), slackPaginate);
|
|
374
|
-
/** Delete external auth tokens only on the Slack side Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `unable_to_delete` — There was an error deleting tokens - `providers_not_found` — The provided `provider_key` is invalid - `no_tokens_found` — No tokens found to delete - `method_not_supported` — This API method is not supported - `app_not_found` — The provided `app_id` was not found - `token_not_found` — The token pointed to by the external_token_id input is not found - `invalid_auth` — The token used to invoke this API doesn't have permission to delete the token pointed to by the external_token_id input - `invalid_args` — The arguments provided to this API are invalid See https://docs.slack.dev/reference/methods/apps.auth.external.delete */
|
|
375
|
-
export const deleteAuthExternal = /*@__PURE__*/ API.make(() => ({
|
|
376
|
-
input: DeleteAuthExternalRequest,
|
|
377
|
-
output: DeleteAuthExternalResponse,
|
|
378
|
-
errors: [SlackError, SlackRateLimited],
|
|
379
|
-
protocol: SlackProtocol,
|
|
380
|
-
retry: Retry.Retry,
|
|
381
|
-
}));
|
|
382
|
-
/** Delete an item from a datastore Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to delete datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore delete not allowed on a free team. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.delete */
|
|
383
|
-
export const deleteDatastore = /*@__PURE__*/ API.make(() => ({
|
|
384
|
-
input: DeleteDatastoreRequest,
|
|
385
|
-
output: DeleteDatastoreResponse,
|
|
386
|
-
errors: [SlackError, SlackRateLimited],
|
|
387
|
-
protocol: SlackProtocol,
|
|
388
|
-
retry: Retry.Retry,
|
|
389
|
-
}));
|
|
390
|
-
/** Permanently deletes an app created through app manifests. When called with a manager app token, this method can only delete apps that were created by that manager app. Required scopes — configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `app_not_found` — The specified app was not found. - `internal_error` — Internal error. - `invalid_app_id` — The app ID passed in was invalid. - `no_permission` — User described by the used token does not have proper permissions to take this action. - `published_app_only` — This action is only permitted for published app IDs. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only delete apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.delete */
|
|
391
|
-
export const deleteManifest = /*@__PURE__*/ API.make(() => ({
|
|
392
|
-
input: DeleteManifestRequest,
|
|
393
|
-
output: DeleteManifestResponse,
|
|
394
|
-
errors: [SlackError, SlackRateLimited],
|
|
395
|
-
protocol: SlackProtocol,
|
|
396
|
-
retry: Retry.Retry,
|
|
397
|
-
}));
|
|
398
|
-
/** Export an app manifest from an existing app. When called with a manager app token, this method can only export apps that were created by that manager app. Required scopes — configuration: `app_configurations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `app_not_found` — The specified app was not found or has been deleted. - `failed_export` — Failed to export manifest for given app ID - `internal_error` — Internal error. - `invalid_app_id` — The app ID passed is invalid. - `no_permission` — User does not have proper permissions. - `unknown_method` — This method does not exist. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only access apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.export */
|
|
399
|
-
export const exportManifest = /*@__PURE__*/ API.make(() => ({
|
|
400
|
-
input: ExportManifestRequest,
|
|
401
|
-
output: ExportManifestResponse,
|
|
402
|
-
errors: [SlackError, SlackRateLimited],
|
|
403
|
-
protocol: SlackProtocol,
|
|
404
|
-
retry: Retry.Retry,
|
|
405
|
-
}));
|
|
406
|
-
/** Get the access token for the provided token ID Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `token_not_found` — No token found for the passed external_token_id - `method_not_supported` — This API method is not supported - `no_refresh_token` — No refresh token found for the passed external_token_id - `access_token_exchange_failed` — There was an error while attempting to exchange or refresh token See https://docs.slack.dev/reference/methods/apps.auth.external.get */
|
|
407
|
-
export const getAuthExternal = /*@__PURE__*/ API.make(() => ({
|
|
408
|
-
input: GetAuthExternalRequest,
|
|
409
|
-
output: GetAuthExternalResponse,
|
|
410
|
-
errors: [SlackError, SlackRateLimited],
|
|
411
|
-
protocol: SlackProtocol,
|
|
412
|
-
retry: Retry.Retry,
|
|
413
|
-
}));
|
|
414
|
-
/** Get an item from a datastore Required scopes — bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to get datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error. - `access_denied` — Not authorized to access to the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore get not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.get */
|
|
415
|
-
export const getDatastore = /*@__PURE__*/ API.make(() => ({
|
|
416
|
-
input: GetDatastoreRequest,
|
|
417
|
-
output: GetDatastoreResponse,
|
|
418
|
-
errors: [SlackError, SlackRateLimited],
|
|
419
|
-
protocol: SlackProtocol,
|
|
420
|
-
retry: Retry.Retry,
|
|
421
|
-
}));
|
|
422
|
-
/** Get logs for a specified app Required scopes — user: `hosting:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Something went wrong on our end, please try again. - `invalid_app_id` — App ID provided is not valid. - `invalid_app` — App ID provided is not valid for team and user. - `invalid_args` — Required arguments either were not provided or contain invalid values. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `free_team_not_allowed` — Feature is only available on a paid team. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.activities.list */
|
|
423
|
-
export const listActivities = /*@__PURE__*/ API.makePaginated(() => ({
|
|
424
|
-
input: ListActivitiesRequest,
|
|
425
|
-
output: ListActivitiesResponse,
|
|
426
|
-
errors: [SlackError, SlackRateLimited],
|
|
427
|
-
protocol: SlackProtocol,
|
|
428
|
-
retry: Retry.Retry,
|
|
429
|
-
pagination: {
|
|
430
|
-
mode: "cursor",
|
|
431
|
-
inputToken: "cursor",
|
|
432
|
-
outputToken: "response_metadata.next_cursor",
|
|
433
|
-
items: "activities",
|
|
434
|
-
pageSize: "limit",
|
|
435
|
-
},
|
|
436
|
-
}), slackPaginate);
|
|
437
|
-
/** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch` — The given authorization token is not associated with the app that sent this event. - `internal_error` — An unexpected error occurred while finding authorizations for this event. - `invalid_cursor` — The `cursor` argument was invalid. - `invalid_event_context` — The given `event_context` didn't match an event. See https://docs.slack.dev/reference/methods/apps.event.authorizations.list */
|
|
438
|
-
export const listEventAuthorizations = /*@__PURE__*/ API.makePaginated(() => ({
|
|
439
|
-
input: ListEventAuthorizationsRequest,
|
|
440
|
-
output: ListEventAuthorizationsResponse,
|
|
441
|
-
errors: [SlackError, SlackRateLimited],
|
|
442
|
-
protocol: SlackProtocol,
|
|
443
|
-
retry: Retry.Retry,
|
|
444
|
-
pagination: {
|
|
445
|
-
mode: "cursor",
|
|
446
|
-
inputToken: "cursor",
|
|
447
|
-
outputToken: "response_metadata.next_cursor",
|
|
448
|
-
items: "authorizations",
|
|
449
|
-
pageSize: "limit",
|
|
450
|
-
},
|
|
451
|
-
}), slackPaginate);
|
|
452
|
-
/** Creates a new item, or replaces an old item with a new item. Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.put */
|
|
453
|
-
export const putDatastore = /*@__PURE__*/ API.make(() => ({
|
|
454
|
-
input: PutDatastoreRequest,
|
|
455
|
-
output: PutDatastoreResponse,
|
|
456
|
-
errors: [SlackError, SlackRateLimited],
|
|
457
|
-
protocol: SlackProtocol,
|
|
458
|
-
retry: Retry.Retry,
|
|
459
|
-
}));
|
|
460
|
-
/** Sets the app icon Required scopes — user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` — Icon must be a valid image file. - `internal_error` — Internal error. - `icon_not_accessible` — The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` — App does not exist. - `invalid_app_id` — App ID is not valid. - `invalid_icon_size` — Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` — Only one of `URL` or `file` can be defined. - `missing_arguments` — One of `URL` or `file` must be provided. - `no_permission` — User does not have required permissions for app. - `unable_to_open_file` — Error with file upload. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
461
|
-
export const setIcon = /*@__PURE__*/ API.make(() => ({
|
|
462
|
-
input: SetIconRequest,
|
|
463
|
-
output: SetIconResponse,
|
|
464
|
-
errors: [SlackError, SlackRateLimited],
|
|
465
|
-
protocol: SlackProtocol,
|
|
466
|
-
retry: Retry.Retry,
|
|
467
|
-
}));
|
|
468
|
-
/** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions as themselves, using a user token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. Required scopes — configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid authorization token. - `access_denied` — The token was not issued to a manager app that is eligible to configure managed apps. - `manager_app_not_eligible` — The manager app the token was issued to is not eligible to configure app permissions. - `feature_not_enabled` — This method is not enabled for the manager app's organization. - `app_not_found` — This app does not exist. - `app_not_managed` — The specified app is not currently managed by any manager app. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only set permissions for apps that it originally created and currently manages. - `app_owner_not_found` — The app's owner could not be resolved, so app_owner cannot be applied. - `enterprise_only_feature` — App permissions are only available on Enterprise Grid plans. Upgrade the app's org to configure who can interact with it. - `internal_error` — The app's current installations could not be determined, so permissions were not changed. Retry the request. See https://docs.slack.dev/reference/methods/apps.managed.permissions.set */
|
|
469
|
-
export const setManagedPermissions = /*@__PURE__*/ API.make(() => ({
|
|
470
|
-
input: SetManagedPermissionsRequest,
|
|
471
|
-
output: SetManagedPermissionsResponse,
|
|
472
|
-
errors: [SlackError, SlackRateLimited],
|
|
473
|
-
protocol: SlackProtocol,
|
|
474
|
-
retry: Retry.Retry,
|
|
475
|
-
}));
|
|
476
|
-
/** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `client_id_token_mismatch` — The provided client ID and token do not belong to the same app. - `internal_error` — Internal error uninstall - `invalid_client_id` — Value passed for `client_id` was invalid. - `no_permission` — Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
|
|
477
|
-
export const uninstallApp = /*@__PURE__*/ API.make(() => ({
|
|
478
|
-
input: UninstallAppRequest,
|
|
479
|
-
output: UninstallAppResponse,
|
|
480
|
-
errors: [SlackError, SlackRateLimited],
|
|
481
|
-
protocol: SlackProtocol,
|
|
482
|
-
retry: Retry.Retry,
|
|
483
|
-
}));
|
|
484
|
-
/** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes — bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — The request is missing required arguments. - `invalid_datastore` — The provided datastore is invalid. - `invalid_auth` — Not authorized to create datastore items. - `app_not_hosted` — The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` — Datastore error - `access_denied` — Not authorized to access the datastore. - `invalid_app_id` — The app_id provided is not valid for team and user. - `free_team_not_allowed` — Datastore put not allowed on a free team. - `team_quota_exceeded` — Total number of requests exceeded team quota. - `datastore_migration_in_progress` — The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` — Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.update */
|
|
485
|
-
export const updateDatastore = /*@__PURE__*/ API.make(() => ({
|
|
486
|
-
input: UpdateDatastoreRequest,
|
|
487
|
-
output: UpdateDatastoreResponse,
|
|
488
|
-
errors: [SlackError, SlackRateLimited],
|
|
489
|
-
protocol: SlackProtocol,
|
|
490
|
-
retry: Retry.Retry,
|
|
491
|
-
}));
|
|
492
|
-
/** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes — configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `app_not_found` — The specified app was not found or has been deleted. - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `failed_datastore_operation` — Failed while managing datastore infrastructure - `internal_error` — Internal error. - `invalid_app` — An app created from the provided manifest would not be valid. - `invalid_app_id` — The app id passed is invalid. - `invalid_manifest` — The provided manifest file does not validate against schema. - `no_permission` — User does not have permission to update app - `unknown_method` — Unknown method - `dynamic_client_registration_invalid_redirect_uri` — The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` — Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` — Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` — Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` — The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` — The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` — The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` — The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.update */
|
|
493
|
-
export const updateManifest = /*@__PURE__*/ API.make(() => ({
|
|
494
|
-
input: UpdateManifestRequest,
|
|
495
|
-
output: UpdateManifestResponse,
|
|
496
|
-
errors: [SlackError, SlackRateLimited],
|
|
497
|
-
protocol: SlackProtocol,
|
|
498
|
-
retry: Retry.Retry,
|
|
499
|
-
}));
|
|
500
|
-
/** Updates the connection status between a user and an app. Required scopes — user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` — The app was not found. - `invalid_auth` — The token doesn't have access to this endpoint. - `app_not_subscribed` — The app is not subscribed to the required events. - `user_not_found` — Value passed for `user_id` was invalid. - `missing_scope` — The token provided doesn't have the required scopes. - `internal_error` — The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
501
|
-
export const updateUserConnection = /*@__PURE__*/ API.make(() => ({
|
|
502
|
-
input: UpdateUserConnectionRequest,
|
|
503
|
-
output: UpdateUserConnectionResponse,
|
|
504
|
-
errors: [SlackError, SlackRateLimited],
|
|
505
|
-
protocol: SlackProtocol,
|
|
506
|
-
retry: Retry.Retry,
|
|
507
|
-
}));
|
|
508
|
-
/** Validate an app manifest Required scopes — configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` — The specified app is not eligible for this API. - `invalid_app` — An app created from the provided manifest would not be valid. - `invalid_app_id` — The app id passed is invalid. - `invalid_manifest` — The provided manifest file does not validate against schema. - `failed_adding_collaborator` — Failed writing a collaborator record for this new app - `failed_creating_app` — Failed to create the app model - `unknown_method` — Unknown method - `no_permission` — User described by the used token does not have proper permissions to take this action. - `app_not_owned_by_manager_app` — The specified app is not managed by the calling manager app. A manager app can only validate apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
|
|
509
|
-
export const validateManifest = /*@__PURE__*/ API.make(() => ({
|
|
510
|
-
input: ValidateManifestRequest,
|
|
511
|
-
output: ValidateManifestResponse,
|
|
512
|
-
errors: [SlackError, SlackRateLimited],
|
|
513
|
-
protocol: SlackProtocol,
|
|
514
|
-
retry: Retry.Retry,
|
|
515
|
-
}));
|
|
1
|
+
import{a as e,c as t,d as n,errors$SlackError as r,errors$SlackRateLimited as i,f as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,pagination$slackPaginate as m,protocol$SlackProtocol as h,r as g,retry$Retry as _,s as v,t as y,traits$Http as b,traits$SensitiveValue as x,u as S}from"../_bundle/sdk.js";const C=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"BulkDeleteRequest";$6(>4)@"BulkDeleteResponse";$5({datastore:$2,ids:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.bulkDelete",code:200}));$5({ok:$7,failed_items:$4(#3:0)})`,[l,b,f,__d0,S,v,n,d,r,i,h,_]]:p(C,e));const w=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"BulkGetRequest";$6(>4)@"BulkGetResponse";$5({datastore:$2,ids:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.bulkGet",code:200}));$5({ok:$7,items:$4(#8:0),failed_items:$4(#3:0)})`,[l,b,f,__d0,S,v,n,d,__d2,r,i,h,_]]:p(w,e));const T=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"BulkPutRequest";$6(>4)@"BulkPutResponse";$5({datastore:$2,items:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.bulkPut",code:200}));$5({ok:$7,datastore:$4($2),failed_items:$4(#3:0)})`,[l,b,f,__d2,S,v,n,d,r,i,h,_]]:p(T,e));const E=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$6,$7],protocol:$8,retry:$9};$3(>3)@"ConnectionsOpenRequest";$3(>4)@"ConnectionsOpenResponse";$2({}).pipe($1({method:"POST",uri:"/apps.connections.open",code:200}));$2({ok:$4,url:$5})`,[l,b,v,n,d,f,r,i,h,_]]:p(E,e));const D=/*@__PURE__*/ s(e=>e===a?u(`CreateManifestResponse`,`{input:#1,output:#3,errors:[$8,$9],protocol:$10,retry:$11};$5(>4)@"CreateManifestRequest";$5(>5)@"%Credentials";$5(>6)@"%";$4({manifest:$2,team_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.manifest.create",code:200}));$4({client_id:$3($2),client_secret:$3($2.pipe($6({}))),verification_token:$3($2),signing_secret:$3($2.pipe($6({})))});$4({ok:$7,app_id:$2,credentials:#2,oauth_authorize_url:$3($2),team_id:$3($2),team_domain:$3($2),app_token:$3($2)})`,[l,b,f,S,v,n,x,d,r,i,h,_]):p(D,e));const O=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"DatastoreCountRequest";$6(>4)@"DatastoreCountResponse";$5({datastore:$2,expression:$3($2),expression_attributes:$3(#4:0),expression_values:$3(#4:0),app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.datastore.count",code:200}));$5({ok:$7,datastore:$3($2),count:$3($8)})`,[l,b,f,S,__d1,v,n,d,c,r,i,h,_]]:p(O,e));const k=/*@__PURE__*/ o(e=>e===a?u(`cursor`,`{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"items",pageSize:"limit"},strategy:$15};$7(>3)@"DatastoreQueryRequest";$7(>4)@"DatastoreQueryResponse";$6({datastore:$2,expression:$3($2),expression_attributes:$3(#4:0),expression_values:$3(#4:0),app_id:$3($2),cursor:$3($2),limit:$3($5)}).pipe($1({method:"POST",uri:"/apps.datastore.query",code:200}));$6({ok:$8,datastore:$3($2),items:#9:0,response_metadata:$3(#10:0)})`,[l,b,f,S,__d1,c,v,n,d,__d2,__d4,r,i,h,_,m]):p(k,e));const A=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteAuthExternalRequest";$4({app_id:$3($2),provider_key:$3($2),external_token_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.auth.external.delete",code:200}))`,[l,b,f,S,v,n,__d5,r,i,h,_]]:p(A,e));const j=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteDatastoreRequest";$4({datastore:$2,id:$2,app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.datastore.delete",code:200}))`,[l,b,f,S,v,n,__d5,r,i,h,_]]:p(j,e));const M=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"DeleteManifestRequest";$3({app_id:$2}).pipe($1({method:"POST",uri:"/apps.manifest.delete",code:200}))`,[l,b,f,v,n,__d5,r,i,h,_]]:p(M,e));const N=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"ExportManifestRequest";$4(>4)@"ExportManifestResponse";$3({app_id:$2}).pipe($1({method:"POST",uri:"/apps.manifest.export",code:200}));$3({ok:$5,manifest:$6})`,[l,b,f,v,n,d,t,r,i,h,_]]:p(N,e));const P=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"GetAuthExternalRequest";$6(>4)@"GetAuthExternalResponse";$5({external_token_id:$2,force_refresh:$4($3)}).pipe($1({method:"POST",uri:"/apps.auth.external.get",code:200}));$5({ok:$3,external_token:$2,token_response_extras:$7})`,[l,b,f,d,S,v,n,t,r,i,h,_]]:p(P,e));const F=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetDatastoreRequest";$4({datastore:$2,id:$2,app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.datastore.get",code:200}))`,[l,b,f,S,v,n,__d3,r,i,h,_]]:p(F,e));const I=/*@__PURE__*/ o(e=>e===a?u(`cursor`,`{input:#1,output:#3,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"%",inputToken:"%",outputToken:"response_metadata.next_%",items:"activities",pageSize:"limit"},strategy:$15};$6(>4)@"ListActivitiesRequest";$8($7);$6(>5)@"ListActivitiesResponse";$5({app_id:$2,team_id:$3($2),cursor:$3($2),limit:$3($4),min_log_level:$3($2),log_event_type:$3($2),source:$3($2),component_type:$3($2),component_id:$3($2),trace_id:$3($2),min_date_created:$3($4),max_date_created:$3($4),sort_direction:$3($2)}).pipe($1({method:"POST",uri:"/apps.activities.list",code:200,contentType:"form-urlencoded"}));$5({ok:$9,activities:#2,response_metadata:$3(#10:0)})`,[l,b,f,S,c,v,n,t,y,d,__d4,r,i,h,_,m]):p(I,e));const L=/*@__PURE__*/ o(e=>e===a?u(`ListEventAuthorizationsResponse`,`{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"authorizations",pageSize:"limit"},strategy:$15};$6(>5)@"ListEventAuthorizationsRequest";$6(>6)@"%AuthorizationsItem";$9(#2);$6(>7)@"%";$5({event_context:$2,cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/apps.event.authorizations.list",code:200}));$5({enterprise_id:$7($2),team_id:$7($2),user_id:$2,is_bot:$8,is_enterprise_install:$8});$5({ok:$8,cursor_next:$3($2),authorizations:#3,response_metadata:$3(#10:0)})`,[l,b,f,S,c,v,n,g,d,y,__d4,r,i,h,_,m]):p(L,e));const R=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"PutDatastoreRequest";$5({datastore:$2,item:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.put",code:200}))`,[l,b,f,__d1,S,v,n,__d3,r,i,h,_]]:p(R,e));const z=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetIconRequest";$5({app_id:$2,file:$4($3),url:$4($2)}).pipe($1({method:"POST",uri:"/apps.icon.set",code:200}))`,[l,b,f,t,S,v,n,__d5,r,i,h,_]]:p(z,e));const B=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetManagedPermissionsRequest";$3({app_id:$2,permissions:$2}).pipe($1({method:"POST",uri:"/apps.managed.permissions.set",code:200}))`,[l,b,f,v,n,__d5,r,i,h,_]]:p(B,e));const V=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$5(>3)@"UninstallAppRequest";$5(>4)@"UninstallAppResponse";$4({client_id:$2,client_secret:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/apps.uninstall",code:200,contentType:"form-urlencoded"}));$4({ok:$6,uninstalled:$6})`,[l,b,f,x,v,n,d,r,i,h,_]]:p(V,e));const H=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"UpdateDatastoreRequest";$5({datastore:$2,item:#3:0,app_id:$4($2)}).pipe($1({method:"POST",uri:"/apps.datastore.update",code:200}))`,[l,b,f,__d1,S,v,n,__d3,r,i,h,_]]:p(H,e));const U=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$4(>3)@"UpdateManifestRequest";$4(>4)@"UpdateManifestResponse";$3({manifest:$2,app_id:$2}).pipe($1({method:"POST",uri:"/apps.manifest.update",code:200}));$3({ok:$5,app_id:$2,permissions_updated:$6($5)})`,[l,b,f,v,n,d,S,r,i,h,_]]:p(U,e));const W=/*@__PURE__*/ s(e=>e===a?[`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"UpdateUserConnectionRequest";$3({user_id:$2,status:$2}).pipe($1({method:"POST",uri:"/apps.user.connection.update",code:200}))`,[l,b,f,v,n,__d5,r,i,h,_]]:p(W,e));const G=/*@__PURE__*/ s(e=>e===a?u(`ValidateManifestResponse`,`{input:#1,output:#4,errors:[$9,$10],protocol:$11,retry:$12};$5(>5)@"ValidateManifestRequest";$5(>6)@"%WarningsItem";$6(#2);$5(>7)@"%";$4({manifest:$2,app_id:$3($2)}).pipe($1({method:"POST",uri:"/apps.manifest.validate",code:200}));$4({code:$2,message:$2,pointer:$3($2)});$4({ok:$7,errors:#8:0,warnings:$3(#3)})`,[l,b,f,S,v,n,y,d,__d0,r,i,h,_]):p(G,e));function __d0(){return[`$2($1)`,[l,f,y]]}function __d1(){return[`$3($1,$2)`,[l,f,t,e]]}function __d2(){return[`$2(#1:0)`,[l,__d1,y]]}function __d3(){return[`$6(>1)@"GetDatastoreResponse";$5({ok:$1,datastore:$3($2),item:$3(#4:0)})`,[l,d,f,S,__d1,v,n]]}function __d4(){return[`$4(>1)@"DatastoreQueryResponseResponseMetadata";$3({next_cursor:$2($1)})`,[l,f,S,v,n]]}function __d5(){return[`$3(>1)@"DeleteAuthExternalResponse";$2({ok:$1})`,[l,d,v,n]]}export{C as bulkDelete,w as bulkGet,T as bulkPut,E as connectionsOpen,D as createManifest,O as datastoreCount,k as datastoreQuery,A as deleteAuthExternal,j as deleteDatastore,M as deleteManifest,N as exportManifest,P as getAuthExternal,F as getDatastore,I as listActivities,L as listEventAuthorizations,R as putDatastore,z as setIcon,B as setManagedPermissions,V as uninstallApp,H as updateDatastore,U as updateManifest,W as updateUserConnection,G as validateManifest};
|
|
2
|
+
/*
|
|
3
|
+
23 29
|
|
4
|
+
e:0:a t:0:c n:0:d r:0:errors$SlackError i:0:errors$SlackRateLimited a:0:f o:0:g s:0:h c:0:i l:0:l u:0:m d:0:n f:0:o p:0:p m:0:pagination$slackPaginate h:0:protocol$SlackProtocol g:0:r _:0:retry$Retry v:0:s y:0:t b:0:traits$Http x:0:traits$SensitiveValue S:0:u
|
|
5
|
+
00000000170002h0003p0004v0006r000840009v000b4000cd000dk000es000g2000hb000j0000le000mq000o1000p8000qg000rs000t0000u7000w8000x3000y0000yw001000010z0011w
|
|
6
|
+
2 94 hm C|=;9f gk;9,k,c,1a,m,i,2,b,3,4,f,h
|
|
7
|
+
2 ic r6 w|=;in pz;9,k,c,1a,m,i,2,b,1c,3,4,f,h
|
|
8
|
+
2 rw 10o T|=;s7 zm;9,k,c,1c,m,i,2,b,3,4,f,h
|
|
9
|
+
2 11e 18f E|=;11p 17k;9,k,i,2,b,c,3,4,f,h
|
|
10
|
+
2 195 1no D|=CreateManifestResponse;1a6 1mp;9,k,c,m,i,2,l,b,3,4,f,h
|
|
11
|
+
2 1oe 1z5 O|=;1op 1y1;9,k,c,m,1b,i,2,b,8,3,4,f,h
|
|
12
|
+
2 1zv 2g2 k|=cursor;20g 2em;9,k,c,m,1b,8,i,2,b,1c,1e,3,4,f,h,e
|
|
13
|
+
2 2gs 2oe A|=;2h3 2ne;9,k,c,m,i,2,1f,3,4,f,h
|
|
14
|
+
2 2p4 2vt j|=;2pf 2ut;9,k,c,m,i,2,1f,3,4,f,h
|
|
15
|
+
2 2wj 32g M|=;2wu 31i;9,k,c,i,2,1f,3,4,f,h
|
|
16
|
+
2 336 3al N|=;33h 39o;9,k,c,i,2,b,1,3,4,f,h
|
|
17
|
+
2 3bb 3ko P|=;3bm 3jp;9,k,c,b,m,i,2,1,3,4,f,h
|
|
18
|
+
2 3le 3rx F|=;3lp 3qx;9,k,c,m,i,2,1d,3,4,f,h
|
|
19
|
+
2 3sn 4cf I|=cursor;3t8 4b5;9,k,c,m,8,i,2,1,j,b,1e,3,4,f,h,e
|
|
20
|
+
2 4d5 4vs L|=ListEventAuthorizationsResponse;4ef 4ui;9,k,c,m,8,i,2,g,b,j,1e,3,4,f,h,e
|
|
21
|
+
2 4wi 53b R|=;4wt 526;9,k,c,1b,m,i,2,1d,3,4,f,h
|
|
22
|
+
2 541 5ad z|=;54c 59b;9,k,c,1,m,i,2,1f,3,4,f,h
|
|
23
|
+
2 5b3 5hu B|=;5be 5gw;9,k,c,i,2,1f,3,4,f,h
|
|
24
|
+
2 5ik 5rj V|=;5iv 5qm;9,k,c,l,i,2,b,3,4,f,h
|
|
25
|
+
2 5s9 5z8 H|=;5sk 5y3;9,k,c,1b,m,i,2,1d,3,4,f,h
|
|
26
|
+
2 5zy 68e U|=;609 67h;9,k,c,i,2,b,m,3,4,f,h
|
|
27
|
+
2 694 6fp W|=;69f 6er;9,k,c,i,2,1f,3,4,f,h
|
|
28
|
+
2 6gf 6r8 G|=ValidateManifestResponse;6hi 6q4;9,k,c,m,i,2,j,b,1a,3,4,f,h
|
|
29
|
+
1 6ra 6sf __d0|=;6ry 6s4;9,c,j
|
|
30
|
+
1 6sf 6tp __d1|=;6t3 6tc;9,c,1,0
|
|
31
|
+
1 6tp 6uz __d2|=;6ud 6ul;9,1b,j
|
|
32
|
+
1 6uz 6y9 __d3|=;6vn 6xn;9,b,c,m,1b,i,2
|
|
33
|
+
1 6y9 71c __d4|=;6yx 70x;9,c,m,i,2
|
|
34
|
+
1 71c 73o __d5|=;720 73b;9,b,i,2
|
|
35
|
+
*/
|
|
516
36
|
//# sourceMappingURL=apps.js.map
|