@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/oauth.js
CHANGED
|
@@ -1,295 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
-
import * as Redacted from "effect/Redacted";
|
|
5
|
-
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
6
|
-
import { SlackProtocol } from "../protocol.js";
|
|
7
|
-
import * as Retry from "../retry.js";
|
|
8
|
-
import * as T from "../traits.js";
|
|
9
|
-
export const BeginShortTokenRotationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
|
-
client_id: S.String,
|
|
11
|
-
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
12
|
-
}).pipe(T.Http({
|
|
13
|
-
method: "POST",
|
|
14
|
-
uri: "/oauth.v2.beginShortTokenRotation",
|
|
15
|
-
code: 200,
|
|
16
|
-
contentType: "form-urlencoded",
|
|
17
|
-
}))).annotate({
|
|
18
|
-
identifier: "BeginShortTokenRotationRequest",
|
|
19
|
-
});
|
|
20
|
-
export const BeginShortTokenRotationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
21
|
-
ok: S.Boolean,
|
|
22
|
-
new_token: S.String,
|
|
23
|
-
})).annotate({
|
|
24
|
-
identifier: "BeginShortTokenRotationResponse",
|
|
25
|
-
});
|
|
26
|
-
export const CompleteShortTokenRotationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
27
|
-
client_id: S.String,
|
|
28
|
-
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
29
|
-
new_token: S.String,
|
|
30
|
-
}).pipe(T.Http({
|
|
31
|
-
method: "POST",
|
|
32
|
-
uri: "/oauth.v2.completeShortTokenRotation",
|
|
33
|
-
code: 200,
|
|
34
|
-
contentType: "form-urlencoded",
|
|
35
|
-
}))).annotate({
|
|
36
|
-
identifier: "CompleteShortTokenRotationRequest",
|
|
37
|
-
});
|
|
38
|
-
export const CompleteShortTokenRotationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
39
|
-
ok: S.Boolean,
|
|
40
|
-
token: S.String,
|
|
41
|
-
})).annotate({
|
|
42
|
-
identifier: "CompleteShortTokenRotationResponse",
|
|
43
|
-
});
|
|
44
|
-
export const OauthAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
-
client_id: S.optional(S.String),
|
|
46
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
47
|
-
code: S.optional(S.String),
|
|
48
|
-
redirect_uri: S.optional(S.String),
|
|
49
|
-
single_channel: S.optional(S.Boolean),
|
|
50
|
-
}).pipe(T.Http({ method: "POST", uri: "/oauth.access", code: 200, contentType: "form-urlencoded" }))).annotate({ identifier: "OauthAccessRequest" });
|
|
51
|
-
export const OauthAccessResponseAuthorizingUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
-
user_id: S.optional(S.String),
|
|
53
|
-
app_home: S.optional(S.NullOr(S.String)),
|
|
54
|
-
})).annotate({
|
|
55
|
-
identifier: "OauthAccessResponseAuthorizingUser",
|
|
56
|
-
});
|
|
57
|
-
export const OauthAccessResponseInstallerUser = OauthAccessResponseAuthorizingUser;
|
|
58
|
-
export const OauthAccessResponseScopesAppHomeList = /*@__PURE__*/ S.Array(S.String);
|
|
59
|
-
export const OauthAccessResponseScopesTeamList = /*@__PURE__*/ S.Array(S.String);
|
|
60
|
-
export const OauthAccessResponseScopesChannelList = /*@__PURE__*/ S.Array(S.String);
|
|
61
|
-
export const OauthAccessResponseScopesGroupList = /*@__PURE__*/ S.Array(S.String);
|
|
62
|
-
export const OauthAccessResponseScopesMpimList = /*@__PURE__*/ S.Array(S.String);
|
|
63
|
-
export const OauthAccessResponseScopesImList = /*@__PURE__*/ S.Array(S.String);
|
|
64
|
-
export const OauthAccessResponseScopes = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
-
app_home: S.optional(OauthAccessResponseScopesAppHomeList),
|
|
66
|
-
team: S.optional(OauthAccessResponseScopesTeamList),
|
|
67
|
-
channel: S.optional(OauthAccessResponseScopesChannelList),
|
|
68
|
-
group: S.optional(OauthAccessResponseScopesGroupList),
|
|
69
|
-
mpim: S.optional(OauthAccessResponseScopesMpimList),
|
|
70
|
-
im: S.optional(OauthAccessResponseScopesImList),
|
|
71
|
-
})).annotate({
|
|
72
|
-
identifier: "OauthAccessResponseScopes",
|
|
73
|
-
});
|
|
74
|
-
export const OauthAccessResponseBot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
-
bot_user_id: S.optional(S.String),
|
|
76
|
-
bot_access_token: S.optional(S.String),
|
|
77
|
-
scope: S.optional(S.String),
|
|
78
|
-
})).annotate({ identifier: "OauthAccessResponseBot" });
|
|
79
|
-
export const OauthAccessResponseUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
name: S.optional(S.String),
|
|
81
|
-
id: S.optional(S.String),
|
|
82
|
-
email: S.optional(S.String),
|
|
83
|
-
image_24: S.optional(S.String),
|
|
84
|
-
image_32: S.optional(S.String),
|
|
85
|
-
image_48: S.optional(S.String),
|
|
86
|
-
image_72: S.optional(S.String),
|
|
87
|
-
image_192: S.optional(S.String),
|
|
88
|
-
image_512: S.optional(S.String),
|
|
89
|
-
scope: S.optional(S.String),
|
|
90
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
91
|
-
token_type: S.optional(S.String),
|
|
92
|
-
})).annotate({ identifier: "OauthAccessResponseUser" });
|
|
93
|
-
export const OauthAccessResponseTeam = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
-
id: S.optional(S.String),
|
|
95
|
-
name: S.optional(S.String),
|
|
96
|
-
domain: S.optional(S.String),
|
|
97
|
-
image_34: S.optional(S.String),
|
|
98
|
-
image_44: S.optional(S.String),
|
|
99
|
-
image_68: S.optional(S.String),
|
|
100
|
-
image_88: S.optional(S.String),
|
|
101
|
-
image_102: S.optional(S.String),
|
|
102
|
-
image_132: S.optional(S.String),
|
|
103
|
-
image_230: S.optional(S.String),
|
|
104
|
-
image_default: S.optional(S.Boolean),
|
|
105
|
-
image_original: S.optional(S.String),
|
|
106
|
-
})).annotate({ identifier: "OauthAccessResponseTeam" });
|
|
107
|
-
export const OauthAccessResponseIncomingWebhook = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
108
|
-
channel: S.optional(S.String),
|
|
109
|
-
channel_id: S.optional(S.String),
|
|
110
|
-
configuration_url: S.optional(S.String),
|
|
111
|
-
url: S.optional(S.String),
|
|
112
|
-
})).annotate({
|
|
113
|
-
identifier: "OauthAccessResponseIncomingWebhook",
|
|
114
|
-
});
|
|
115
|
-
export const OauthAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
116
|
-
ok: S.Boolean,
|
|
117
|
-
token_type: S.optional(S.String),
|
|
118
|
-
app_id: S.optional(S.String),
|
|
119
|
-
app_user_id: S.optional(S.String),
|
|
120
|
-
team_name: S.optional(S.String),
|
|
121
|
-
team_id: S.String,
|
|
122
|
-
access_token: S.String.pipe(T.SensitiveValue({})),
|
|
123
|
-
authorizing_user: S.optional(OauthAccessResponseAuthorizingUser),
|
|
124
|
-
installer_user: S.optional(OauthAccessResponseAuthorizingUser),
|
|
125
|
-
scopes: S.optional(OauthAccessResponseScopes),
|
|
126
|
-
scope: S.optional(S.String),
|
|
127
|
-
user_id: S.optional(S.String),
|
|
128
|
-
bot: S.optional(OauthAccessResponseBot),
|
|
129
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
130
|
-
expires_in: S.optional(S.Number),
|
|
131
|
-
user: S.optional(OauthAccessResponseUser),
|
|
132
|
-
team: S.optional(OauthAccessResponseTeam),
|
|
133
|
-
enterprise_id: S.optional(S.NullOr(S.String)),
|
|
134
|
-
incoming_webhook: S.optional(OauthAccessResponseIncomingWebhook),
|
|
135
|
-
single_channel_id: S.optional(S.String),
|
|
136
|
-
})).annotate({ identifier: "OauthAccessResponse" });
|
|
137
|
-
export const V2AccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
138
|
-
client_id: S.optional(S.String),
|
|
139
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
140
|
-
code: S.optional(S.String),
|
|
141
|
-
code_verifier: S.optional(S.String),
|
|
142
|
-
redirect_uri: S.optional(S.String),
|
|
143
|
-
grant_type: S.optional(S.String),
|
|
144
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
145
|
-
assertion: S.optional(S.String),
|
|
146
|
-
}).pipe(T.Http({ method: "POST", uri: "/oauth.v2.access", code: 200, contentType: "form-urlencoded" }))).annotate({ identifier: "V2AccessRequest" });
|
|
147
|
-
export const V2AccessResponseTokenType = S.String;
|
|
148
|
-
export const V2AccessResponseTeam = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
149
|
-
id: S.String,
|
|
150
|
-
name: S.optional(S.String),
|
|
151
|
-
})).annotate({ identifier: "V2AccessResponseTeam" });
|
|
152
|
-
export const V2AccessResponseEnterprise = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
153
|
-
id: S.String,
|
|
154
|
-
name: S.optional(S.String),
|
|
155
|
-
})).annotate({
|
|
156
|
-
identifier: "V2AccessResponseEnterprise",
|
|
157
|
-
});
|
|
158
|
-
export const V2AccessResponseAuthedUserTokenType = S.String;
|
|
159
|
-
export const V2AccessResponseAuthedUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
160
|
-
id: S.String,
|
|
161
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
162
|
-
token_type: S.optional(V2AccessResponseAuthedUserTokenType),
|
|
163
|
-
scope: S.optional(S.String),
|
|
164
|
-
expires_in: S.optional(S.Number),
|
|
165
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
166
|
-
})).annotate({
|
|
167
|
-
identifier: "V2AccessResponseAuthedUser",
|
|
168
|
-
});
|
|
169
|
-
export const V2AccessResponseIncomingWebhook = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
-
channel: S.String,
|
|
171
|
-
channel_id: S.String,
|
|
172
|
-
configuration_url: S.String,
|
|
173
|
-
url: S.String,
|
|
174
|
-
})).annotate({
|
|
175
|
-
identifier: "V2AccessResponseIncomingWebhook",
|
|
176
|
-
});
|
|
177
|
-
export const V2AccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
178
|
-
ok: S.Boolean,
|
|
179
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
180
|
-
token_type: S.optional(V2AccessResponseTokenType),
|
|
181
|
-
scope: S.optional(S.String),
|
|
182
|
-
bot_user_id: S.optional(S.String),
|
|
183
|
-
user_id: S.optional(S.String),
|
|
184
|
-
app_id: S.String,
|
|
185
|
-
is_enterprise_install: S.optional(S.Boolean),
|
|
186
|
-
expires_in: S.optional(S.Number),
|
|
187
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
188
|
-
team: S.NullOr(V2AccessResponseTeam),
|
|
189
|
-
enterprise: S.NullOr(V2AccessResponseEnterprise),
|
|
190
|
-
authed_user: S.optional(V2AccessResponseAuthedUser),
|
|
191
|
-
incoming_webhook: S.optional(V2AccessResponseIncomingWebhook),
|
|
192
|
-
})).annotate({ identifier: "V2AccessResponse" });
|
|
193
|
-
export const V2ExchangeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
194
|
-
client_id: S.String,
|
|
195
|
-
client_secret: S.String.pipe(T.SensitiveValue({})),
|
|
196
|
-
}).pipe(T.Http({
|
|
197
|
-
method: "POST",
|
|
198
|
-
uri: "/oauth.v2.exchange",
|
|
199
|
-
code: 200,
|
|
200
|
-
contentType: "form-urlencoded",
|
|
201
|
-
}))).annotate({ identifier: "V2ExchangeRequest" });
|
|
202
|
-
export const V2ExchangeResponseTokenType = S.String;
|
|
203
|
-
export const V2ExchangeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
-
ok: S.Boolean,
|
|
205
|
-
app_id: S.String,
|
|
206
|
-
token_type: V2ExchangeResponseTokenType,
|
|
207
|
-
scope: S.String,
|
|
208
|
-
bot_user_id: S.optional(S.String),
|
|
209
|
-
user_id: S.optional(S.String),
|
|
210
|
-
access_token: S.String.pipe(T.SensitiveValue({})),
|
|
211
|
-
expires_in: S.Number,
|
|
212
|
-
refresh_token: S.String.pipe(T.SensitiveValue({})),
|
|
213
|
-
team: S.optional(S.NullOr(S.Unknown)),
|
|
214
|
-
enterprise: S.optional(S.NullOr(S.Unknown)),
|
|
215
|
-
})).annotate({ identifier: "V2ExchangeResponse" });
|
|
216
|
-
export const V2UserAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
217
|
-
client_id: S.optional(S.String),
|
|
218
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
219
|
-
code: S.optional(S.String),
|
|
220
|
-
code_verifier: S.optional(S.String),
|
|
221
|
-
redirect_uri: S.optional(S.String),
|
|
222
|
-
grant_type: S.optional(S.String),
|
|
223
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
224
|
-
assertion: S.optional(S.String),
|
|
225
|
-
}).pipe(T.Http({
|
|
226
|
-
method: "POST",
|
|
227
|
-
uri: "/oauth.v2.user.access",
|
|
228
|
-
code: 200,
|
|
229
|
-
contentType: "form-urlencoded",
|
|
230
|
-
}))).annotate({ identifier: "V2UserAccessRequest" });
|
|
231
|
-
export const V2UserAccessResponseTokenType = S.String;
|
|
232
|
-
export const V2UserAccessResponseTeam = V2AccessResponseTeam;
|
|
233
|
-
export const V2UserAccessResponseEnterprise = V2AccessResponseEnterprise;
|
|
234
|
-
export const V2UserAccessResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
235
|
-
ok: S.Boolean,
|
|
236
|
-
access_token: S.String.pipe(T.SensitiveValue({})),
|
|
237
|
-
token_type: V2UserAccessResponseTokenType,
|
|
238
|
-
scope: S.optional(S.String),
|
|
239
|
-
user_id: S.String,
|
|
240
|
-
app_id: S.String,
|
|
241
|
-
is_enterprise_install: S.Boolean,
|
|
242
|
-
expires_in: S.optional(S.Number),
|
|
243
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
244
|
-
team: S.NullOr(V2AccessResponseTeam),
|
|
245
|
-
enterprise: S.NullOr(V2AccessResponseEnterprise),
|
|
246
|
-
})).annotate({ identifier: "V2UserAccessResponse" });
|
|
247
|
-
/** Call this to rotate the secret on an old API token with a short secret. Must be paired with a call to oauth.v2.completeShortTokenRotation to confirm the change. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `invalid_client_id` — Value passed for `client_id` was invalid, or is not the app the token being rotated was issued to. - `invalid_token` — This token is invalid. - `internal_error` — A server-side error occurred. - `token_too_long` — This token is not short enough to be rotated. See https://docs.slack.dev/reference/methods/oauth.v2.beginShortTokenRotation */
|
|
248
|
-
export const beginShortTokenRotation = /*@__PURE__*/ API.make(() => ({
|
|
249
|
-
input: BeginShortTokenRotationRequest,
|
|
250
|
-
output: BeginShortTokenRotationResponse,
|
|
251
|
-
errors: [SlackError, SlackRateLimited],
|
|
252
|
-
protocol: SlackProtocol,
|
|
253
|
-
retry: Retry.Retry,
|
|
254
|
-
}));
|
|
255
|
-
/** Call this to finish rotating the secret on an old API token with a short secret. Must be paired with a call to oauth.v2.beginShortTokenRotation to start the process. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `invalid_client_id` — Value passed for `client_id` was invalid, or is not the app the token being rotated was issued to. - `invalid_token` — This token is invalid. - `rotation_not_found` — No pending rotation was found for this token. Call oauth.v2.beginShortTokenRotation first, or the pending rotation may have expired. - `internal_error` — A server-side error occurred. - `token_too_long` — This token is not short enough to be rotated. See https://docs.slack.dev/reference/methods/oauth.v2.completeShortTokenRotation */
|
|
256
|
-
export const completeShortTokenRotation = /*@__PURE__*/ API.make(() => ({
|
|
257
|
-
input: CompleteShortTokenRotationRequest,
|
|
258
|
-
output: CompleteShortTokenRotationResponse,
|
|
259
|
-
errors: [SlackError, SlackRateLimited],
|
|
260
|
-
protocol: SlackProtocol,
|
|
261
|
-
retry: Retry.Retry,
|
|
262
|
-
}));
|
|
263
|
-
/** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `code_already_used` — Value passed for `code` was already exchanged. - `internal_error` — Something went wrong during app installation. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_token` — Invalid refresh token. - `missing_resource` — Missing permission resource. - `ratelimited` — Too many requests made in succession. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/authorize. - `user_email_unverified` — The users email is unverified See https://docs.slack.dev/reference/methods/oauth.access */
|
|
264
|
-
export const oauthAccess = /*@__PURE__*/ API.make(() => ({
|
|
265
|
-
input: OauthAccessRequest,
|
|
266
|
-
output: OauthAccessResponse,
|
|
267
|
-
errors: [SlackError, SlackRateLimited],
|
|
268
|
-
protocol: SlackProtocol,
|
|
269
|
-
retry: Retry.Retry,
|
|
270
|
-
}));
|
|
271
|
-
/** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_grant_type` — Value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `no_scopes` — Missing `scope` in the request. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize. - `preview_feature_not_available` — Returned when the API method is not yet available on the team in context. - `user_email_unverified` — The users email is unverified. - `pkce_not_allowed` — The app is not allowed to use the PKCE flow. - `invalid_code_verifier` — The code_verifier is invalid. See https://docs.slack.dev/reference/methods/oauth.v2.access */
|
|
272
|
-
export const v2Access = /*@__PURE__*/ API.make(() => ({
|
|
273
|
-
input: V2AccessRequest,
|
|
274
|
-
output: V2AccessResponse,
|
|
275
|
-
errors: [SlackError, SlackRateLimited],
|
|
276
|
-
protocol: SlackProtocol,
|
|
277
|
-
retry: Retry.Retry,
|
|
278
|
-
}));
|
|
279
|
-
/** Exchanges a legacy access token for a new expiring access token and refresh token Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `authorization_not_found` — The underlying authorization for this token was revoked or is invalid. - `bad_client_secret` — Value passed for `client_secret` was invalid. - `internal_error` — A server-side error occurred. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_token` — The legacy token provided cannot be exchanged for a new pair of token credentials. - `token_already_exchanged` — This token has already been exchanged for a pair of token credentials. - `token_rotation_not_enabled` — The app does not have token rotation enabled. See https://docs.slack.dev/reference/methods/oauth.v2.exchange */
|
|
280
|
-
export const v2Exchange = /*@__PURE__*/ API.make(() => ({
|
|
281
|
-
input: V2ExchangeRequest,
|
|
282
|
-
output: V2ExchangeResponse,
|
|
283
|
-
errors: [SlackError, SlackRateLimited],
|
|
284
|
-
protocol: SlackProtocol,
|
|
285
|
-
retry: Retry.Retry,
|
|
286
|
-
}));
|
|
287
|
-
/** Exchanges a temporary OAuth verifier code for a user access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — Value passed for `client_secret` was invalid. - `bad_redirect_uri` — Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` — Value passed for `client_id` was invalid. - `invalid_code` — Value passed for `code` was invalid. - `invalid_grant_type` — Value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `invalid_resource` — The `resource` in the assertion is malformed, or is not a resource tokens can be issued for. - `no_scopes` — Missing `scope` in the request. - `no_user_scopes` — Missing user `scope` in the auth request. - `not_implemented` — Method not yet supported - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize . - `preview_feature_not_available` — Returned when the API method is not yet available on the team in context. - `user_email_unverified` — The users email is unverified - `app_not_admin_approved` — The app has not been approved by an org admin, so no tokens can be issued for this user. Ask an org admin to approve the app before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `app_not_org_installed` — The app is not installed at the organization level. Using the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant type requires org level app installs. - `client_id_mismatch` — Value passed for `client_id` did not match the `client_id` in the assertion. - `ema_disabled` — Enterprise-managed auth is disabled. - `ema_issuer_mismatch` — The issuer in the assertion did not match the issuer configured for enterprise-managed auth. - `invalid_audience` — The audience in the assertion is not one this token endpoint supports. - `missing_scope` — Missing `scope` in the assertion. The identity assertion JWT must carry a space-delimited `scope` claim. - `no_app_scopes_requested` — None of the scopes requested in the identity assertion are configured on the app. Request only scopes the app already declares. - `no_approved_scopes_requested` — The app is approved by org admins, but none of the requested scopes are approved ones. Ask an org admin to approve the requested scopes. - `no_assertion` — Missing `assertion` in the request. - `user_not_authenticated` — The user has never authenticated via single sign-on. See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
|
|
288
|
-
export const v2UserAccess = /*@__PURE__*/ API.make(() => ({
|
|
289
|
-
input: V2UserAccessRequest,
|
|
290
|
-
output: V2UserAccessResponse,
|
|
291
|
-
errors: [SlackError, SlackRateLimited],
|
|
292
|
-
protocol: SlackProtocol,
|
|
293
|
-
retry: Retry.Retry,
|
|
294
|
-
}));
|
|
1
|
+
import{c as e,d as t,errors$SlackError as n,errors$SlackRateLimited as r,f as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,protocol$SlackProtocol as f,r as p,retry$Retry as m,s as h,t as g,traits$Http as _,traits$SensitiveValue as v,u as y}from"../_bundle/sdk.js";const b=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$5(>3)@"BeginShortTokenRotationRequest";$5(>4)@"BeginShortTokenRotationResponse";$4({client_id:$2,client_secret:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/oauth.v2.beginShortTokenRotation",code:200,contentType:"form-urlencoded"}));$4({ok:$6,new_token:$2})`,[s,_,u,v,h,t,l,n,r,f,m]]:d(b,e));const x=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$5(>3)@"CompleteShortTokenRotationRequest";$5(>4)@"CompleteShortTokenRotationResponse";$4({client_id:$2,client_secret:$2.pipe($3({})),new_token:$2}).pipe($1({method:"POST",uri:"/oauth.v2.completeShortTokenRotation",code:200,contentType:"form-urlencoded"}));$4({ok:$6,token:$2})`,[s,_,u,v,h,t,l,n,r,f,m]]:d(x,e));const S=/*@__PURE__*/ a(e=>e===i?c(`OauthAccessResponse`,`{input:#1,output:#9,errors:[$11,$12],protocol:$13,retry:$14};$7(>10)@"OauthAccessRequest";$7(>11)@"%AuthorizingUser";$9($2);$7(>12)@"%Scopes";$7(>13)@"%Bot";$7(>14)@"%User";$7(>15)@"%Team";$7(>16)@"%IncomingWebhook";$7(>17)@"%";$6({client_id:$3($2),client_secret:$3($2.pipe($4({}))),code:$3($2),redirect_uri:$3($2),single_channel:$3($5)}).pipe($1({method:"POST",uri:"/oauth.access",code:200,contentType:"form-urlencoded"}));$6({user_id:$3($2),app_home:$3($8($2))});$6({app_home:$3(#3),team:$3(#3),channel:$3(#3),group:$3(#3),mpim:$3(#3),im:$3(#3)});$6({bot_user_id:$3($2),bot_access_token:$3($2),scope:$3($2)});$6({name:$3($2),id:$3($2),email:$3($2),image_24:$3($2),image_32:$3($2),image_48:$3($2),image_72:$3($2),image_192:$3($2),image_512:$3($2),scope:$3($2),access_token:$3($2.pipe($4({}))),token_type:$3($2)});$6({id:$3($2),name:$3($2),domain:$3($2),image_34:$3($2),image_44:$3($2),image_68:$3($2),image_88:$3($2),image_102:$3($2),image_132:$3($2),image_230:$3($2),image_default:$3($5),image_original:$3($2)});$6({channel:$3($2),channel_id:$3($2),configuration_url:$3($2),url:$3($2)});$6({ok:$5,token_type:$3($2),app_id:$3($2),app_user_id:$3($2),team_name:$3($2),team_id:$2,access_token:$2.pipe($4({})),authorizing_user:$3(#2),installer_user:$3(#2),scopes:$3(#4),scope:$3($2),user_id:$3($2),bot:$3(#5),refresh_token:$3($2.pipe($4({}))),expires_in:$3($10),user:$3(#6),team:$3(#7),enterprise_id:$3($8($2)),incoming_webhook:$3(#8),single_channel_id:$3($2)})`,[s,_,u,y,v,l,h,t,p,g,o,n,r,f,m]):d(S,e));const C=/*@__PURE__*/ a(e=>e===i?c(`V2AccessResponse`,`{input:#1,output:#4,errors:[$11,$12],protocol:$13,retry:$14};$3(>5)@"V2AccessRequest";$3(>6)@"%AuthedUser";$3(>7)@"%IncomingWebhook";$3(>8)@"%";~2:1.pipe($1({method:"POST",uri:"/oauth.v2.access",code:200,contentType:"form-urlencoded"}));$8({id:$4,access_token:$6($4.pipe($5({}))),token_type:$6($4),scope:$6($4),expires_in:$6($7),refresh_token:$6($4.pipe($5({})))});$8({channel:$4,channel_id:$4,configuration_url:$4,url:$4});$8({ok:$9,access_token:$6($4.pipe($5({}))),token_type:$6($4),scope:$6($4),bot_user_id:$6($4),user_id:$6($4),app_id:$4,is_enterprise_install:$6($9),expires_in:$6($7),refresh_token:$6($4.pipe($5({}))),team:$10(#2:0),enterprise:$10(#2:0),authed_user:$6(#2),incoming_webhook:$6(#3)})`,[s,_,__d0,t,u,v,y,o,h,l,p,n,r,f,m]):d(C,e));const w=/*@__PURE__*/ a(a=>a===i?[`{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$5(>3)@"V2ExchangeRequest";$5(>4)@"V2ExchangeResponse";$4({client_id:$2,client_secret:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/oauth.v2.exchange",code:200,contentType:"form-urlencoded"}));$4({ok:$6,app_id:$2,token_type:$2,scope:$2,bot_user_id:$7($2),user_id:$7($2),access_token:$2.pipe($3({})),expires_in:$8,refresh_token:$2.pipe($3({})),team:$7($10($9)),enterprise:$7($10($9))})`,[s,_,u,v,h,t,l,y,o,e,p,n,r,f,m]]:d(w,a));const T=/*@__PURE__*/ a(e=>e===i?[`{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$3(>3)@"V2UserAccessRequest";$3(>4)@"V2UserAccessResponse";~2:1.pipe($1({method:"POST",uri:"/oauth.v2.user.access",code:200,contentType:"form-urlencoded"}));$10({ok:$4,access_token:$6.pipe($5({})),token_type:$6,scope:$7($6),user_id:$6,app_id:$6,is_enterprise_install:$4,expires_in:$7($8),refresh_token:$7($6.pipe($5({}))),team:$9(#2:0),enterprise:$9(#2:0)})`,[s,_,__d0,t,l,v,u,y,o,p,h,n,r,f,m]]:d(T,e));function __d0(){return[`$4(>2)@"V2AccessResponseTeam";$3({client_id:$2($1),client_secret:$2($1.pipe($5({}))),code:$2($1),code_verifier:$2($1),redirect_uri:$2($1),grant_type:$2($1),refresh_token:$2($1.pipe($5({}))),assertion:$2($1)});$3({id:$1,name:$2($1)})`,[s,u,y,h,t,v]]}export{b as beginShortTokenRotation,x as completeShortTokenRotation,S as oauthAccess,C as v2Access,w as v2Exchange,T as v2UserAccess};
|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,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,8vCAA8vC;AAC9vC,MAAM,CAAC,MAAM,QAAQ,GAKjB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,kyBAAkyB;AAClyB,MAAM,CAAC,MAAM,UAAU,GAKnB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,kBAAkB;IAC1B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAGJ,otFAAotF;AACptF,MAAM,CAAC,MAAM,YAAY,GAKrB,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"oauth.js","names":["API.D","__L.at","T.Http","S.String","T.SensitiveValue","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","API.named","S.optional","S.NullOr","S.Array","S.Number","S.Unknown","Unknown","suspend","SlackError","SlackRateLimited","D","op","Number","at","named","Boolean","String","call","SlackProtocol","NullOr","Retry","Struct","Array","Http","SensitiveValue","optional","beginShortTokenRotation","i","completeShort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CAACC,EAAQC,EAAQ,KAAMI,EAAWC,EAAWH,EAAkBD,EAAUQ,EAAYG,EAAUF,EAAUP,EAAUa,EAAYC,EAAkBS,EAAepB,CAAW,CAAC,EAAIC,EAASiC,EAAcL,CAAC,CAAC,EAMxqB,SAAS,MAAY,CACnB,MAAO,CAAC,2OAA4O,CAACpC,EAAQE,EAAUQ,EAAYN,EAAUC,EAAWF,CAAgB,CAAC,CAC3T"}
|
package/lib/services/openid.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as
|
|
3
|
-
import * as Redacted from "effect/Redacted";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
3
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
5
4
|
export type { SlackOpError, SlackOpContext };
|
|
6
5
|
/** The `grant_type` param as described in the OAuth spec. */
|
|
7
6
|
export type ConnectTokenRequestGrantType = "authorization_code" | "refresh_token";
|
|
8
|
-
export declare const ConnectTokenRequestGrantType: any;
|
|
9
7
|
export interface ConnectTokenRequest {
|
|
10
8
|
/** Issued when you created your application. */
|
|
11
9
|
client_id?: string;
|
|
@@ -22,9 +20,7 @@ export interface ConnectTokenRequest {
|
|
|
22
20
|
/** PKCE code verifier (RFC 7636). Required when the authorization request included a `code_challenge`. */
|
|
23
21
|
code_verifier?: string;
|
|
24
22
|
}
|
|
25
|
-
export declare const ConnectTokenRequest: S.Schema<ConnectTokenRequest>;
|
|
26
23
|
export type ConnectTokenResponseTokenType = "Bearer";
|
|
27
|
-
export declare const ConnectTokenResponseTokenType: any;
|
|
28
24
|
export interface ConnectTokenResponse {
|
|
29
25
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
30
26
|
ok: boolean;
|
|
@@ -37,10 +33,8 @@ export interface ConnectTokenResponse {
|
|
|
37
33
|
/** Refresh token for this credential */
|
|
38
34
|
refresh_token?: string | Redacted.Redacted<string>;
|
|
39
35
|
}
|
|
40
|
-
export declare const ConnectTokenResponse: S.Schema<ConnectTokenResponse>;
|
|
41
36
|
export interface UserInfoRequest {
|
|
42
37
|
}
|
|
43
|
-
export declare const UserInfoRequest: S.Schema<UserInfoRequest>;
|
|
44
38
|
export interface UserInfoResponse {
|
|
45
39
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
46
40
|
ok: boolean;
|
|
@@ -76,11 +70,10 @@ export interface UserInfoResponse {
|
|
|
76
70
|
https___slack_com_team_image_230?: string;
|
|
77
71
|
https___slack_com_team_image_default?: boolean;
|
|
78
72
|
}
|
|
79
|
-
export declare const UserInfoResponse: S.Schema<UserInfoResponse>;
|
|
80
73
|
export type ConnectTokenError = SlackOpError;
|
|
81
|
-
/** Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret`
|
|
74
|
+
/** Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- The value passed for `client_secret` was invalid. - `bad_redirect_uri` -- The value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- An org-installed app cannot be installed on a workspace. - `invalid_client` -- Client authentication failed (unknown `client_id` or bad `client_secret`). - `invalid_client_id` -- The value passed for `client_id` was invalid. - `invalid_code` -- The value passed for `code` was invalid. - `invalid_grant` -- The authorization code is invalid, expired, revoked, or the PKCE `code_verifier` does not match. - `invalid_grant_type` -- The value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `invalid_request` -- The request is missing a required parameter or includes an invalid parameter value. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization URL. The flow must be initiated via /openid/connect/authorize . - `preview_feature_not_available` -- The API method is not yet available on the team. - `unsupported_grant_type` -- The `grant_type` is not supported by this endpoint. See https://docs.slack.dev/reference/methods/openid.connect.token */
|
|
82
75
|
export declare const connectToken: API.OperationMethod<ConnectTokenRequest, ConnectTokenResponse, ConnectTokenError, SlackOpContext>;
|
|
83
76
|
export type UserInfoError = SlackOpError;
|
|
84
|
-
/** Get the identity of a user who has authorized Sign in with Slack. Required scopes
|
|
77
|
+
/** Get the identity of a user who has authorized Sign in with Slack. Required scopes -- user: `openid` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/openid.connect.userInfo */
|
|
85
78
|
export declare const userInfo: API.OperationMethod<UserInfoRequest, UserInfoResponse, UserInfoError, SlackOpContext>;
|
|
86
79
|
//# sourceMappingURL=openid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openid.d.ts","sourceRoot":"","sources":["../../src/services/openid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"openid.d.ts","sourceRoot":"","sources":["../../src/services/openid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,6DAA6D;AAC7D,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,GAAG,eAAe,CAAC;AAClF,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,4BAA4B,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,C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AC,EAAE,MAAM,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,mCAAmC,CAAC,EAAE,MAAM,CAAC;IAC7C,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,oCAAoC,CAAC,EAAE,OAAO,CAAC;CAChD;AACD,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,67CAA67C;AAC77C,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,kMAAkM;AAClM,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAOb,CAAC"}
|
package/lib/services/openid.js
CHANGED
|
@@ -1,85 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
-
import * as Redacted from "effect/Redacted";
|
|
5
|
-
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
6
|
-
import { SlackProtocol } from "../protocol.js";
|
|
7
|
-
import * as Retry from "../retry.js";
|
|
8
|
-
import * as T from "../traits.js";
|
|
9
|
-
export const ConnectTokenRequestGrantType = S.String;
|
|
10
|
-
export const ConnectTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
11
|
-
client_id: S.optional(S.String),
|
|
12
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
13
|
-
code: S.optional(S.String),
|
|
14
|
-
redirect_uri: S.optional(S.String),
|
|
15
|
-
grant_type: S.optional(ConnectTokenRequestGrantType),
|
|
16
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
17
|
-
code_verifier: S.optional(S.String),
|
|
18
|
-
}).pipe(T.Http({
|
|
19
|
-
method: "POST",
|
|
20
|
-
uri: "/openid.connect.token",
|
|
21
|
-
code: 200,
|
|
22
|
-
contentType: "form-urlencoded",
|
|
23
|
-
}))).annotate({ identifier: "ConnectTokenRequest" });
|
|
24
|
-
export const ConnectTokenResponseTokenType = S.String;
|
|
25
|
-
export const ConnectTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
26
|
-
ok: S.Boolean,
|
|
27
|
-
access_token: S.String.pipe(T.SensitiveValue({})),
|
|
28
|
-
token_type: ConnectTokenResponseTokenType,
|
|
29
|
-
id_token: S.optional(S.String),
|
|
30
|
-
state: S.optional(S.String),
|
|
31
|
-
expires_in: S.optional(S.Number),
|
|
32
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
33
|
-
})).annotate({ identifier: "ConnectTokenResponse" });
|
|
34
|
-
export const UserInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/openid.connect.userInfo", code: 200 }))).annotate({ identifier: "UserInfoRequest" });
|
|
35
|
-
export const UserInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
36
|
-
ok: S.Boolean,
|
|
37
|
-
sub: S.String,
|
|
38
|
-
https___slack_com_user_id: S.String.pipe(T.Body("https://slack.com/user_id")),
|
|
39
|
-
https___slack_com_team_id: S.optional(S.String.pipe(T.Body("https://slack.com/team_id"))),
|
|
40
|
-
https___slack_com_enterprise_id: S.optional(S.String.pipe(T.Body("https://slack.com/enterprise_id"))),
|
|
41
|
-
email: S.optional(S.String),
|
|
42
|
-
email_verified: S.optional(S.Boolean),
|
|
43
|
-
date_email_verified: S.optional(S.Number),
|
|
44
|
-
locale: S.optional(S.String),
|
|
45
|
-
name: S.optional(S.String),
|
|
46
|
-
given_name: S.optional(S.String),
|
|
47
|
-
family_name: S.optional(S.String),
|
|
48
|
-
picture: S.optional(S.String),
|
|
49
|
-
https___slack_com_user_image_24: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_24"))),
|
|
50
|
-
https___slack_com_user_image_32: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_32"))),
|
|
51
|
-
https___slack_com_user_image_48: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_48"))),
|
|
52
|
-
https___slack_com_user_image_72: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_72"))),
|
|
53
|
-
https___slack_com_user_image_192: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_192"))),
|
|
54
|
-
https___slack_com_user_image_512: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_512"))),
|
|
55
|
-
https___slack_com_user_image_1024: S.optional(S.String.pipe(T.Body("https://slack.com/user_image_1024"))),
|
|
56
|
-
https___slack_com_team_name: S.optional(S.String.pipe(T.Body("https://slack.com/team_name"))),
|
|
57
|
-
https___slack_com_team_domain: S.optional(S.String.pipe(T.Body("https://slack.com/team_domain"))),
|
|
58
|
-
https___slack_com_enterprise_name: S.optional(S.String.pipe(T.Body("https://slack.com/enterprise_name"))),
|
|
59
|
-
https___slack_com_enterprise_domain: S.optional(S.String.pipe(T.Body("https://slack.com/enterprise_domain"))),
|
|
60
|
-
https___slack_com_team_image_34: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_34"))),
|
|
61
|
-
https___slack_com_team_image_44: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_44"))),
|
|
62
|
-
https___slack_com_team_image_68: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_68"))),
|
|
63
|
-
https___slack_com_team_image_88: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_88"))),
|
|
64
|
-
https___slack_com_team_image_102: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_102"))),
|
|
65
|
-
https___slack_com_team_image_132: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_132"))),
|
|
66
|
-
https___slack_com_team_image_230: S.optional(S.String.pipe(T.Body("https://slack.com/team_image_230"))),
|
|
67
|
-
https___slack_com_team_image_default: S.optional(S.Boolean.pipe(T.Body("https://slack.com/team_image_default"))),
|
|
68
|
-
})).annotate({ identifier: "UserInfoResponse" });
|
|
69
|
-
/** Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` — The value passed for `client_secret` was invalid. - `bad_redirect_uri` — The value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` — An org-installed app cannot be installed on a workspace. - `invalid_client` — Client authentication failed (unknown `client_id` or bad `client_secret`). - `invalid_client_id` — The value passed for `client_id` was invalid. - `invalid_code` — The value passed for `code` was invalid. - `invalid_grant` — The authorization code is invalid, expired, revoked, or the PKCE `code_verifier` does not match. - `invalid_grant_type` — The value passed for `grant_type` was invalid. - `invalid_refresh_token` — The given refresh token is invalid. - `invalid_request` — The request is missing a required parameter or includes an invalid parameter value. - `oauth_authorization_url_mismatch` — The OAuth flow was initiated on an incorrect version of the authorization URL. The flow must be initiated via /openid/connect/authorize . - `preview_feature_not_available` — The API method is not yet available on the team. - `unsupported_grant_type` — The `grant_type` is not supported by this endpoint. See https://docs.slack.dev/reference/methods/openid.connect.token */
|
|
70
|
-
export const connectToken = /*@__PURE__*/ API.make(() => ({
|
|
71
|
-
input: ConnectTokenRequest,
|
|
72
|
-
output: ConnectTokenResponse,
|
|
73
|
-
errors: [SlackError, SlackRateLimited],
|
|
74
|
-
protocol: SlackProtocol,
|
|
75
|
-
retry: Retry.Retry,
|
|
76
|
-
}));
|
|
77
|
-
/** Get the identity of a user who has authorized Sign in with Slack. Required scopes — user: `openid` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/openid.connect.userInfo */
|
|
78
|
-
export const userInfo = /*@__PURE__*/ API.make(() => ({
|
|
79
|
-
input: UserInfoRequest,
|
|
80
|
-
output: UserInfoResponse,
|
|
81
|
-
errors: [SlackError, SlackRateLimited],
|
|
82
|
-
protocol: SlackProtocol,
|
|
83
|
-
retry: Retry.Retry,
|
|
84
|
-
}));
|
|
1
|
+
import{d as e,errors$SlackError as t,errors$SlackRateLimited as n,f as r,h as i,i as a,l as o,n as s,o as c,p as l,protocol$SlackProtocol as u,retry$Retry as d,s as f,traits$Body as p,traits$Http as m,traits$SensitiveValue as h,u as g}from"../_bundle/sdk.js";const _=/*@__PURE__*/ i(i=>i===r?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"ConnectTokenRequest";$6(>4)@"ConnectTokenResponse";$5({client_id:$3($2),client_secret:$3($2.pipe($4({}))),code:$3($2),redirect_uri:$3($2),grant_type:$3($2),refresh_token:$3($2.pipe($4({}))),code_verifier:$3($2)}).pipe($1({method:"POST",uri:"/openid.connect.token",code:200,contentType:"form-urlencoded"}));$5({ok:$7,access_token:$2.pipe($4({})),token_type:$2,id_token:$3($2),state:$3($2),expires_in:$3($8),refresh_token:$3($2.pipe($4({})))})`,[o,m,c,g,h,f,e,s,a,t,n,u,d]]:l(_,i));const v=/*@__PURE__*/ i(i=>i===r?[`{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$3(>3)@"UserInfoRequest";$3(>4)@"UserInfoResponse";$2({}).pipe($1({method:"POST",uri:"/openid.connect.userInfo",code:200}));$2({ok:$4,sub:$5,https___slack_com_user_id:$5.pipe($6("https://slack.com/user_id")),https___slack_com_team_id:$7($5.pipe($6("https://slack.com/team_id"))),https___slack_com_enterprise_id:$7($5.pipe($6("https://slack.com/enterprise_id"))),email:$7($5),email_verified:$7($4),date_email_verified:$7($8),locale:$7($5),name:$7($5),given_name:$7($5),family_name:$7($5),picture:$7($5),https___slack_com_user_image_24:$7($5.pipe($6("https://slack.com/user_image_24"))),https___slack_com_user_image_32:$7($5.pipe($6("https://slack.com/user_image_32"))),https___slack_com_user_image_48:$7($5.pipe($6("https://slack.com/user_image_48"))),https___slack_com_user_image_72:$7($5.pipe($6("https://slack.com/user_image_72"))),https___slack_com_user_image_192:$7($5.pipe($6("https://slack.com/user_image_192"))),https___slack_com_user_image_512:$7($5.pipe($6("https://slack.com/user_image_512"))),https___slack_com_user_image_1024:$7($5.pipe($6("https://slack.com/user_image_1024"))),https___slack_com_team_name:$7($5.pipe($6("https://slack.com/team_name"))),https___slack_com_team_domain:$7($5.pipe($6("https://slack.com/team_domain"))),https___slack_com_enterprise_name:$7($5.pipe($6("https://slack.com/enterprise_name"))),https___slack_com_enterprise_domain:$7($5.pipe($6("https://slack.com/enterprise_domain"))),https___slack_com_team_image_34:$7($5.pipe($6("https://slack.com/team_image_34"))),https___slack_com_team_image_44:$7($5.pipe($6("https://slack.com/team_image_44"))),https___slack_com_team_image_68:$7($5.pipe($6("https://slack.com/team_image_68"))),https___slack_com_team_image_88:$7($5.pipe($6("https://slack.com/team_image_88"))),https___slack_com_team_image_102:$7($5.pipe($6("https://slack.com/team_image_102"))),https___slack_com_team_image_132:$7($5.pipe($6("https://slack.com/team_image_132"))),https___slack_com_team_image_230:$7($5.pipe($6("https://slack.com/team_image_230"))),https___slack_com_team_image_default:$7($4.pipe($6("https://slack.com/team_image_default")))})`,[o,m,f,e,s,c,p,g,a,t,n,u,d]]:l(v,i));export{_ as connectToken,v as userInfo};
|
|
85
2
|
//# sourceMappingURL=openid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openid.js","
|
|
1
|
+
{"version":3,"file":"openid.js","names":["API.D","__L.at","T.Http","S.String","S.optional","T.SensitiveValue","S.Struct","S.suspend","S.Boolean","S.Number","Retry.Retry","API.call","T.Body","suspend","SlackError","SlackRateLimited","D","op","Number","at","Boolean","String","call","SlackProtocol","Retry","Struct","Body","Http","SensitiveValue","optional","connectToken","userInfo"],"sources":["../../src/services/openid.ts"],"mappings":"mQAiFA,MAAa8B,EAKK,gBAAQ,GAAgB,IAAM9B,EAAQ,CAAC,ggBAAigB,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAkBC,EAAUC,EAAWC,EAAWC,EAAUK,EAAYC,EAAkBQ,EAAeb,CAAW,CAAC,EAAIC,EAASmB,EAAc,CAAC,CAAC,EAInvB,MAAaC,EAKK,gBAAQ,GAAgB,IAAM/B,EAAQ,CAAC,unEAAwnE,CAACC,EAAQC,EAAQI,EAAUC,EAAWC,EAAWL,EAAUS,EAAQR,EAAYK,EAAUK,EAAYC,EAAkBQ,EAAeb,CAAW,CAAC,EAAIC,EAASoB,EAAU,CAAC,CAAC"}
|
package/lib/services/pins.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
2
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
3
|
export type { SlackOpError, SlackOpContext };
|
|
5
4
|
export interface AddPinRequest {
|
|
@@ -8,19 +7,15 @@ export interface AddPinRequest {
|
|
|
8
7
|
/** Timestamp of the message to pin. You must also include the `channel`. */
|
|
9
8
|
timestamp?: string;
|
|
10
9
|
}
|
|
11
|
-
export declare const AddPinRequest: S.Schema<AddPinRequest>;
|
|
12
10
|
export interface AddPinResponse {
|
|
13
11
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
14
12
|
ok: boolean;
|
|
15
13
|
}
|
|
16
|
-
export declare const AddPinResponse: S.Schema<AddPinResponse>;
|
|
17
14
|
export interface ListPinsRequest {
|
|
18
15
|
/** Channel to get pinned items for. */
|
|
19
16
|
channel: string;
|
|
20
17
|
}
|
|
21
|
-
export declare const ListPinsRequest: S.Schema<ListPinsRequest>;
|
|
22
18
|
export type ListPinsResponseItemsItemType = "file" | "message" | "file_comment";
|
|
23
|
-
export declare const ListPinsResponseItemsItemType: any;
|
|
24
19
|
export interface ListPinsResponseItemsItem {
|
|
25
20
|
type: ListPinsResponseItemsItemType;
|
|
26
21
|
created: number;
|
|
@@ -30,35 +25,30 @@ export interface ListPinsResponseItemsItem {
|
|
|
30
25
|
file?: unknown;
|
|
31
26
|
comment?: string;
|
|
32
27
|
}
|
|
33
|
-
export declare const ListPinsResponseItemsItem: S.Schema<ListPinsResponseItemsItem>;
|
|
34
28
|
export type ListPinsResponseItemsList = Array<ListPinsResponseItemsItem>;
|
|
35
|
-
export declare const ListPinsResponseItemsList: S.Schema<ListPinsResponseItemsList>;
|
|
36
29
|
export interface ListPinsResponse {
|
|
37
30
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
38
31
|
ok: boolean;
|
|
39
32
|
items?: ListPinsResponseItemsList;
|
|
40
33
|
count?: number;
|
|
41
34
|
}
|
|
42
|
-
export declare const ListPinsResponse: S.Schema<ListPinsResponse>;
|
|
43
35
|
export interface RemovePinRequest {
|
|
44
36
|
/** Channel where the item is pinned to. */
|
|
45
37
|
channel: string;
|
|
46
38
|
/** Timestamp of the message to un-pin. */
|
|
47
39
|
timestamp?: string;
|
|
48
40
|
}
|
|
49
|
-
export declare const RemovePinRequest: S.Schema<RemovePinRequest>;
|
|
50
41
|
export interface RemovePinResponse {
|
|
51
42
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
52
43
|
ok: boolean;
|
|
53
44
|
}
|
|
54
|
-
export declare const RemovePinResponse: S.Schema<RemovePinResponse>;
|
|
55
45
|
export type AddPinError = SlackOpError;
|
|
56
|
-
/** Pins an item to a channel. Required scopes
|
|
46
|
+
/** Pins an item to a channel. Required scopes -- bot: `pins:write`; user: `pins:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_pinned` -- The specified item is already pinned to the channel. - `bad_timestamp` -- Value passed for `timestamp` was invalid. - `channel_not_found` -- The `channel` argument was not specified or was invalid - `external_channel_migrating` -- Channel is undergoing an active migration. - `file_not_found` -- File not found. - `file_not_shared` -- File specified by `file` is not public nor shared to the channel. - `message_not_found` -- Message specified by `channel` and `timestamp` does not exist. - `no_item_specified` -- One of `file`, `file_comment`, or `timestamp` was not specified. - `not_in_channel` -- Item is not in channel. - `not_pinnable` -- This message type is not pinnable. - `restricted_action` -- The user does not have permission to add pins to the channel. - `too_many_pins` -- Too many pins in channel. See https://docs.slack.dev/reference/methods/pins.add */
|
|
57
47
|
export declare const addPin: API.OperationMethod<AddPinRequest, AddPinResponse, AddPinError, SlackOpContext>;
|
|
58
48
|
export type ListPinsError = SlackOpError;
|
|
59
|
-
/** Lists items pinned to a channel. Required scopes
|
|
49
|
+
/** Lists items pinned to a channel. Required scopes -- bot: `pins:read`; user: `pins:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` was invalid. - `restricted_action` -- The user does not have permission to view the channel. See https://docs.slack.dev/reference/methods/pins.list */
|
|
60
50
|
export declare const listPins: API.OperationMethod<ListPinsRequest, ListPinsResponse, ListPinsError, SlackOpContext>;
|
|
61
51
|
export type RemovePinError = SlackOpError;
|
|
62
|
-
/** Un-pins an item from a channel. Required scopes
|
|
52
|
+
/** Un-pins an item from a channel. Required scopes -- bot: `pins:write`; user: `pins:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `bad_timestamp` -- Value passed for `timestamp` was invalid. - `channel_not_found` -- The `channel` argument was not specified or was invalid - `external_channel_migrating` -- Channel is undergoing an active migration. - `file_comment_not_found` -- File comment specified by `file_comment` does not exist. - `file_not_found` -- File specified by `file` does not exist. - `message_not_found` -- Message specified by `channel` and `timestamp` does not exist. - `no_item_specified` -- One of `file`, `file_comment`, or `timestamp` was not specified. - `no_pin` -- The pin could not be found. - `not_pinned` -- The specified item is not pinned to the channel. - `restricted_action` -- The user does not have permission to remove pins from the channel. See https://docs.slack.dev/reference/methods/pins.remove */
|
|
63
53
|
export declare const removePin: API.OperationMethod<RemovePinRequest, RemovePinResponse, RemovePinError, SlackOpContext>;
|
|
64
54
|
//# sourceMappingURL=pins.d.ts.map
|