@distilled.cloud/slack 1.0.0-rc.13 → 1.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +12 -18
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +288 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +236 -29
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +417 -749
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +423 -0
- package/lib/services/agents.d.ts.map +1 -0
- package/lib/services/agents.js +315 -0
- package/lib/services/agents.js.map +1 -0
- package/lib/services/api.d.ts +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +4 -6
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +21 -3
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +65 -133
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -4
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +16 -38
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +2 -2
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +11 -28
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +5 -9
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +4 -4
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +14 -30
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +7 -15
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +13 -33
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +22 -2
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +37 -48
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +29 -25
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +47 -95
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +10 -8
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +43 -115
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +5 -9
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +10 -24
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +6 -11
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +8 -20
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +5 -5
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +39 -109
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +28 -75
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/lists.d.ts +5 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +35 -146
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +5 -8
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +38 -2
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +67 -50
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +1 -1
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +7 -15
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +7 -15
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +2 -2
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +13 -29
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +13 -33
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +9 -21
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +13 -30
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +10 -20
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +25 -62
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +5 -9
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +8 -3
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +23 -51
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +2 -2
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +28 -81
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +11 -27
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -71
- package/lib/services/workflows.js.map +1 -1
- package/package.json +15 -11
- package/src/credentials.ts +8 -10
- package/src/errors.ts +17 -31
- package/src/index.ts +3 -7
- package/src/pagination.ts +2 -5
- package/src/protocol.test.ts +372 -0
- package/src/protocol.ts +34 -66
- package/src/retry.ts +4 -9
- package/src/services/admin.ts +1241 -1557
- package/src/services/agents.ts +853 -0
- package/src/services/api.ts +4 -10
- package/src/services/apps.ts +146 -243
- package/src/services/assistant.ts +93 -144
- package/src/services/auth.ts +12 -33
- package/src/services/blocks.ts +9 -24
- package/src/services/bookmarks.ts +14 -34
- package/src/services/bots.ts +7 -19
- package/src/services/calls.ts +15 -43
- package/src/services/canvases.ts +82 -85
- package/src/services/chat.ts +134 -254
- package/src/services/conversations.ts +101 -217
- package/src/services/dialog.ts +5 -13
- package/src/services/dnd.ts +11 -31
- package/src/services/emoji.ts +9 -19
- package/src/services/entity.ts +17 -45
- package/src/services/files.ts +72 -165
- package/src/services/functions.ts +95 -168
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +65 -208
- package/src/services/migration.ts +8 -17
- package/src/services/oauth.ts +127 -60
- package/src/services/openid.ts +12 -34
- package/src/services/pins.ts +7 -19
- package/src/services/reactions.ts +19 -43
- package/src/services/reminders.ts +13 -37
- package/src/services/rtm.ts +9 -25
- package/src/services/search.ts +51 -92
- package/src/services/stars.ts +20 -31
- package/src/services/team.ts +81 -155
- package/src/services/tooling.ts +5 -13
- package/src/services/usergroups.ts +37 -68
- package/src/services/users.ts +35 -102
- package/src/services/views.ts +11 -31
- package/src/services/workflows.ts +65 -129
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -40
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -54
package/lib/services/views.js
CHANGED
|
@@ -1,65 +1,49 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
-
import * as API from "@distilled.cloud/core/api";
|
|
4
|
-
import * as T from "../traits.js";
|
|
5
|
-
import { SlackProtocol, } from "../protocol.js";
|
|
6
4
|
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
5
|
+
import { SlackProtocol } from "../protocol.js";
|
|
7
6
|
import * as Retry from "../retry.js";
|
|
7
|
+
import * as T from "../traits.js";
|
|
8
8
|
export const PublishViewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
9
|
user_id: S.String,
|
|
10
10
|
view: S.Unknown,
|
|
11
11
|
hash: S.optional(S.String),
|
|
12
12
|
interactivity_pointer: S.optional(S.String),
|
|
13
|
-
}).pipe(T.Http({ method: "POST", uri: "/views.publish", code: 200 }))).annotate({
|
|
14
|
-
identifier: "PublishViewRequest",
|
|
15
|
-
});
|
|
13
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.publish", code: 200 }))).annotate({ identifier: "PublishViewRequest" });
|
|
16
14
|
export const PublishViewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
17
15
|
ok: S.Boolean,
|
|
18
16
|
view: S.Unknown,
|
|
19
|
-
})).annotate({
|
|
20
|
-
identifier: "PublishViewResponse",
|
|
21
|
-
});
|
|
17
|
+
})).annotate({ identifier: "PublishViewResponse" });
|
|
22
18
|
export const UpdateViewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
23
19
|
view_id: S.optional(S.String),
|
|
24
20
|
external_id: S.optional(S.String),
|
|
25
21
|
view: S.Unknown,
|
|
26
22
|
hash: S.optional(S.String),
|
|
27
|
-
}).pipe(T.Http({ method: "POST", uri: "/views.update", code: 200 }))).annotate({
|
|
28
|
-
identifier: "UpdateViewRequest",
|
|
29
|
-
});
|
|
23
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.update", code: 200 }))).annotate({ identifier: "UpdateViewRequest" });
|
|
30
24
|
export const UpdateViewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
31
25
|
ok: S.Boolean,
|
|
32
26
|
view: S.Unknown,
|
|
33
|
-
})).annotate({
|
|
34
|
-
identifier: "UpdateViewResponse",
|
|
35
|
-
});
|
|
27
|
+
})).annotate({ identifier: "UpdateViewResponse" });
|
|
36
28
|
export const ViewsOpenRequestViewMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
37
29
|
export const ViewsOpenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
38
30
|
trigger_id: S.optional(S.NullOr(S.String)),
|
|
39
31
|
interactivity_pointer: S.optional(S.NullOr(S.String)),
|
|
40
32
|
view: ViewsOpenRequestViewMap,
|
|
41
|
-
}).pipe(T.Http({ method: "POST", uri: "/views.open", code: 200 }))).annotate({
|
|
42
|
-
identifier: "ViewsOpenRequest",
|
|
43
|
-
});
|
|
33
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.open", code: 200 }))).annotate({ identifier: "ViewsOpenRequest" });
|
|
44
34
|
export const ViewsOpenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
35
|
ok: S.Boolean,
|
|
46
36
|
view: S.Unknown,
|
|
47
|
-
})).annotate({
|
|
48
|
-
identifier: "ViewsOpenResponse",
|
|
49
|
-
});
|
|
37
|
+
})).annotate({ identifier: "ViewsOpenResponse" });
|
|
50
38
|
export const ViewsPushRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
39
|
trigger_id: S.optional(S.NullOr(S.String)),
|
|
52
40
|
interactivity_pointer: S.optional(S.NullOr(S.String)),
|
|
53
41
|
view: S.Unknown,
|
|
54
|
-
}).pipe(T.Http({ method: "POST", uri: "/views.push", code: 200 }))).annotate({
|
|
55
|
-
identifier: "ViewsPushRequest",
|
|
56
|
-
});
|
|
42
|
+
}).pipe(T.Http({ method: "POST", uri: "/views.push", code: 200 }))).annotate({ identifier: "ViewsPushRequest" });
|
|
57
43
|
export const ViewsPushResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
44
|
ok: S.Boolean,
|
|
59
45
|
view: S.Unknown,
|
|
60
|
-
})).annotate({
|
|
61
|
-
identifier: "ViewsPushResponse",
|
|
62
|
-
});
|
|
46
|
+
})).annotate({ identifier: "ViewsPushResponse" });
|
|
63
47
|
/** Publish a static view for a User. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `duplicate_external_id` — Error returned when the given `external_id` has already be used. - `hash_conflict` — Error returned when the provided `hash` doesn't match the current stored value. - `missing_profile_id` — A profile id was not provided when trying to publish a view of type profile. - `not_allowed_token_type` — The type of token your app used when requesting this method is not allowed. - `not_enabled` — Error returned if a `home` view is published but the Home tab isn't enabled for the app. - `not_implemented` — The profile view experiment is not enabled for this user. - `view_too_large` — Error returned if the provided view is greater than 250kb. See https://docs.slack.dev/reference/methods/views.publish */
|
|
64
48
|
export const publishView = /*@__PURE__*/ API.make(() => ({
|
|
65
49
|
input: PublishViewRequest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/services/views.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/services/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,aAAa,EAA0C,MAAM,gBAAgB,CAAC;AACvF,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAalC,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC7D,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,IAAI,EAAE,CAAC,CAAC,OAAO;IACf,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1B,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;CAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CACtE,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAwC,CAAC;AAOxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC9D,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,OAAO;IACb,IAAI,EAAE,CAAC,CAAC,OAAO;CAChB,CAAC,CACH,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE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AC,CAAC;IAChC,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
4
|
export type { SlackOpError, SlackOpContext };
|
|
5
5
|
/** Comma-separated array of trigger IDs to add; max 15 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,0DAA0D;AAC1D,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAC7D,eAAO,MAAM,gCAAgC,EAEjC,CAAC,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC;AAEvD,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,EAAE,gCAAgC,CAAC;CAC/C;AACD,eAAO,MAAM,kBAAkB,EAK4B,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAExF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vD,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,cAAc,CAOb,CAAC"}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
-
import * as API from "@distilled.cloud/core/api";
|
|
4
|
-
import * as T from "../traits.js";
|
|
5
|
-
import { SlackProtocol, } from "../protocol.js";
|
|
6
4
|
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
5
|
+
import { SlackProtocol } from "../protocol.js";
|
|
7
6
|
import * as Retry from "../retry.js";
|
|
7
|
+
import * as T from "../traits.js";
|
|
8
8
|
export const AddFeaturedRequestTriggerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
9
9
|
export const AddFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
10
10
|
channel_id: S.String,
|
|
11
11
|
trigger_ids: AddFeaturedRequestTriggerIdsList,
|
|
12
|
-
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.add", code: 200 }))).annotate({
|
|
13
|
-
identifier: "AddFeaturedRequest",
|
|
14
|
-
});
|
|
12
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.add", code: 200 }))).annotate({ identifier: "AddFeaturedRequest" });
|
|
15
13
|
export const AddFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
16
14
|
ok: S.Boolean,
|
|
17
|
-
})).annotate({
|
|
18
|
-
identifier: "AddFeaturedResponse",
|
|
19
|
-
});
|
|
15
|
+
})).annotate({ identifier: "AddFeaturedResponse" });
|
|
20
16
|
export const AddTriggersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
21
|
-
export const AddTriggersPermissionsRequestChannelIdsList =
|
|
22
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
17
|
+
export const AddTriggersPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
23
18
|
export const AddTriggersPermissionsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
24
19
|
export const AddTriggersPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
25
20
|
export const AddTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -28,11 +23,7 @@ export const AddTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
28
23
|
channel_ids: S.optional(AddTriggersPermissionsRequestChannelIdsList),
|
|
29
24
|
team_ids: S.optional(AddTriggersPermissionsRequestTeamIdsList),
|
|
30
25
|
org_ids: S.optional(AddTriggersPermissionsRequestOrgIdsList),
|
|
31
|
-
}).pipe(T.Http({
|
|
32
|
-
method: "POST",
|
|
33
|
-
uri: "/workflows.triggers.permissions.add",
|
|
34
|
-
code: 200,
|
|
35
|
-
}))).annotate({
|
|
26
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.triggers.permissions.add", code: 200 }))).annotate({
|
|
36
27
|
identifier: "AddTriggersPermissionsRequest",
|
|
37
28
|
});
|
|
38
29
|
export const AddTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -43,20 +34,15 @@ export const AddTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
43
34
|
export const ListFeaturedRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
44
35
|
export const ListFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
36
|
channel_ids: ListFeaturedRequestChannelIdsList,
|
|
46
|
-
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.list", code: 200 }))).annotate({
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
export const ListFeaturedResponseFeaturedWorkflowsItemTriggersItem =
|
|
50
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
37
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.list", code: 200 }))).annotate({ identifier: "ListFeaturedRequest" });
|
|
38
|
+
export const ListFeaturedResponseFeaturedWorkflowsItemTriggersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
39
|
id: S.String,
|
|
52
40
|
title: S.String,
|
|
53
41
|
})).annotate({
|
|
54
42
|
identifier: "ListFeaturedResponseFeaturedWorkflowsItemTriggersItem",
|
|
55
43
|
});
|
|
56
|
-
export const ListFeaturedResponseFeaturedWorkflowsItemTriggersList =
|
|
57
|
-
/*@__PURE__*/ S.
|
|
58
|
-
export const ListFeaturedResponseFeaturedWorkflowsItem =
|
|
59
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
44
|
+
export const ListFeaturedResponseFeaturedWorkflowsItemTriggersList = /*@__PURE__*/ S.Array(ListFeaturedResponseFeaturedWorkflowsItemTriggersItem);
|
|
45
|
+
export const ListFeaturedResponseFeaturedWorkflowsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
46
|
channel_id: S.String,
|
|
61
47
|
triggers: ListFeaturedResponseFeaturedWorkflowsItemTriggersList,
|
|
62
48
|
})).annotate({
|
|
@@ -66,16 +52,10 @@ export const ListFeaturedResponseFeaturedWorkflowsList = /*@__PURE__*/ S.Array(L
|
|
|
66
52
|
export const ListFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
67
53
|
ok: S.Boolean,
|
|
68
54
|
featured_workflows: ListFeaturedResponseFeaturedWorkflowsList,
|
|
69
|
-
})).annotate({
|
|
70
|
-
identifier: "ListFeaturedResponse",
|
|
71
|
-
});
|
|
55
|
+
})).annotate({ identifier: "ListFeaturedResponse" });
|
|
72
56
|
export const ListTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
57
|
trigger_id: S.String,
|
|
74
|
-
}).pipe(T.Http({
|
|
75
|
-
method: "POST",
|
|
76
|
-
uri: "/workflows.triggers.permissions.list",
|
|
77
|
-
code: 200,
|
|
78
|
-
}))).annotate({
|
|
58
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.triggers.permissions.list", code: 200 }))).annotate({
|
|
79
59
|
identifier: "ListTriggersPermissionsRequest",
|
|
80
60
|
});
|
|
81
61
|
export const ListTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -87,20 +67,13 @@ export const RemoveFeaturedRequestTriggerIdsList = /*@__PURE__*/ S.Array(S.Strin
|
|
|
87
67
|
export const RemoveFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
88
68
|
channel_id: S.String,
|
|
89
69
|
trigger_ids: RemoveFeaturedRequestTriggerIdsList,
|
|
90
|
-
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.remove", code: 200 }))).annotate({
|
|
91
|
-
identifier: "RemoveFeaturedRequest",
|
|
92
|
-
});
|
|
70
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.remove", code: 200 }))).annotate({ identifier: "RemoveFeaturedRequest" });
|
|
93
71
|
export const RemoveFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
72
|
ok: S.Boolean,
|
|
95
|
-
})).annotate({
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
export const
|
|
99
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
100
|
-
export const RemoveTriggersPermissionsRequestChannelIdsList =
|
|
101
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
102
|
-
export const RemoveTriggersPermissionsRequestTeamIdsList =
|
|
103
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
73
|
+
})).annotate({ identifier: "RemoveFeaturedResponse" });
|
|
74
|
+
export const RemoveTriggersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
75
|
+
export const RemoveTriggersPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
76
|
+
export const RemoveTriggersPermissionsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
104
77
|
export const RemoveTriggersPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
105
78
|
export const RemoveTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
106
79
|
trigger_id: S.String,
|
|
@@ -108,22 +81,14 @@ export const RemoveTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.
|
|
|
108
81
|
channel_ids: S.optional(RemoveTriggersPermissionsRequestChannelIdsList),
|
|
109
82
|
team_ids: S.optional(RemoveTriggersPermissionsRequestTeamIdsList),
|
|
110
83
|
org_ids: S.optional(RemoveTriggersPermissionsRequestOrgIdsList),
|
|
111
|
-
}).pipe(T.Http({
|
|
112
|
-
method: "POST",
|
|
113
|
-
uri: "/workflows.triggers.permissions.remove",
|
|
114
|
-
code: 200,
|
|
115
|
-
}))).annotate({
|
|
84
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.triggers.permissions.remove", code: 200 }))).annotate({
|
|
116
85
|
identifier: "RemoveTriggersPermissionsRequest",
|
|
117
86
|
});
|
|
118
87
|
export const RemoveTriggersPermissionsResponsePermissionType = S.String;
|
|
119
|
-
export const RemoveTriggersPermissionsResponseUserIdsList =
|
|
120
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
121
|
-
export const
|
|
122
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
123
|
-
export const RemoveTriggersPermissionsResponseTeamIdsList =
|
|
124
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
125
|
-
export const RemoveTriggersPermissionsResponseOrgIdsList =
|
|
126
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
88
|
+
export const RemoveTriggersPermissionsResponseUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
89
|
+
export const RemoveTriggersPermissionsResponseChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
90
|
+
export const RemoveTriggersPermissionsResponseTeamIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
91
|
+
export const RemoveTriggersPermissionsResponseOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
127
92
|
export const RemoveTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
128
93
|
ok: S.Boolean,
|
|
129
94
|
permission_type: RemoveTriggersPermissionsResponsePermissionType,
|
|
@@ -138,18 +103,13 @@ export const SetFeaturedRequestTriggerIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
|
138
103
|
export const SetFeaturedRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
139
104
|
channel_id: S.String,
|
|
140
105
|
trigger_ids: SetFeaturedRequestTriggerIdsList,
|
|
141
|
-
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.set", code: 200 }))).annotate({
|
|
142
|
-
identifier: "SetFeaturedRequest",
|
|
143
|
-
});
|
|
106
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.featured.set", code: 200 }))).annotate({ identifier: "SetFeaturedRequest" });
|
|
144
107
|
export const SetFeaturedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
108
|
ok: S.Boolean,
|
|
146
|
-
})).annotate({
|
|
147
|
-
identifier: "SetFeaturedResponse",
|
|
148
|
-
});
|
|
109
|
+
})).annotate({ identifier: "SetFeaturedResponse" });
|
|
149
110
|
export const SetTriggersPermissionsRequestPermissionType = S.String;
|
|
150
111
|
export const SetTriggersPermissionsRequestUserIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
151
|
-
export const SetTriggersPermissionsRequestChannelIdsList =
|
|
152
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
112
|
+
export const SetTriggersPermissionsRequestChannelIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
153
113
|
export const SetTriggersPermissionsRequestTeamIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
154
114
|
export const SetTriggersPermissionsRequestOrgIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
155
115
|
export const SetTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -159,11 +119,7 @@ export const SetTriggersPermissionsRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
159
119
|
channel_ids: S.optional(SetTriggersPermissionsRequestChannelIdsList),
|
|
160
120
|
team_ids: S.optional(SetTriggersPermissionsRequestTeamIdsList),
|
|
161
121
|
org_ids: S.optional(SetTriggersPermissionsRequestOrgIdsList),
|
|
162
|
-
}).pipe(T.Http({
|
|
163
|
-
method: "POST",
|
|
164
|
-
uri: "/workflows.triggers.permissions.set",
|
|
165
|
-
code: 200,
|
|
166
|
-
}))).annotate({
|
|
122
|
+
}).pipe(T.Http({ method: "POST", uri: "/workflows.triggers.permissions.set", code: 200 }))).annotate({
|
|
167
123
|
identifier: "SetTriggersPermissionsRequest",
|
|
168
124
|
});
|
|
169
125
|
export const SetTriggersPermissionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,wGAAwG;AACxG,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,aAAa,EAA0C,MAAM,gBAAgB,CAAC;AACvF,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,gCAAgC,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CACnE,CAAC,CAAC,MAAM,CAC4C,CAAC;AAQvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,CA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,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/slack",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.15",
|
|
4
|
+
"license": "Apache-2.0",
|
|
4
5
|
"repository": {
|
|
5
6
|
"type": "git",
|
|
6
7
|
"url": "https://github.com/alchemy-run/distilled",
|
|
7
8
|
"directory": "packages/slack"
|
|
8
9
|
},
|
|
9
|
-
"license": "Apache-2.0",
|
|
10
|
-
"type": "module",
|
|
11
|
-
"sideEffects": false,
|
|
12
10
|
"files": [
|
|
13
11
|
"lib",
|
|
14
12
|
"src"
|
|
15
13
|
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"sideEffects": false,
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
18
|
"types": "./lib/index.d.ts",
|
|
@@ -64,21 +64,25 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@distilled.cloud/core": "1.0.0-rc.
|
|
67
|
+
"@distilled.cloud/core": "1.0.0-rc.15"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@
|
|
71
|
-
"@types/node": "26.2.0"
|
|
72
|
-
"@effect/platform-bun": "^4.0.0"
|
|
70
|
+
"@effect/platform-node": "^4.0.0",
|
|
71
|
+
"@types/node": "26.2.0"
|
|
73
72
|
},
|
|
74
73
|
"peerDependencies": {
|
|
75
74
|
"effect": "^4.0.0"
|
|
76
75
|
},
|
|
76
|
+
"distilled": {
|
|
77
|
+
"generatedAt": "2026-10-08",
|
|
78
|
+
"specUpdatedAt": "2026-10-08"
|
|
79
|
+
},
|
|
77
80
|
"scripts": {
|
|
78
81
|
"build": "tsc -b",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
+
"specs:fetch": "git submodule update --force --init --depth=1 specs/spec-mirror-slack",
|
|
83
|
+
"specs:update": "git submodule update --remote --force --depth=1 specs/spec-mirror-slack",
|
|
84
|
+
"convert": "node --conditions=bun scripts/convert.ts",
|
|
85
|
+
"generate": "node --conditions=bun scripts/convert.ts && node --conditions=bun scripts/generate.ts",
|
|
82
86
|
"typecheck": "tsc -p tsconfig.json"
|
|
83
87
|
}
|
|
84
88
|
}
|
package/src/credentials.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
2
|
/**
|
|
2
3
|
* Slack credentials — hand-written.
|
|
3
4
|
*
|
|
@@ -22,7 +23,6 @@ import * as Context from "effect/Context";
|
|
|
22
23
|
import * as Effect from "effect/Effect";
|
|
23
24
|
import * as Layer from "effect/Layer";
|
|
24
25
|
import * as Redacted from "effect/Redacted";
|
|
25
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Slack Web API base URL. Every method is `POST/GET <base>/<method>`.
|
|
@@ -35,10 +35,9 @@ export interface Config {
|
|
|
35
35
|
readonly apiBaseUrl: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export class Credentials extends Context.Service<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
>()("SlackCredentials") {}
|
|
38
|
+
export class Credentials extends Context.Service<Credentials, Effect.Effect<Config>>()(
|
|
39
|
+
"SlackCredentials",
|
|
40
|
+
) {}
|
|
42
41
|
|
|
43
42
|
const envConfig = EffectConfig.all({
|
|
44
43
|
// SLACK_BOT_TOKEN is the spelling Bolt and most hosting platforms use;
|
|
@@ -57,8 +56,7 @@ export const CredentialsFromEnv = Layer.succeed(
|
|
|
57
56
|
Effect.mapError(
|
|
58
57
|
() =>
|
|
59
58
|
new ConfigError({
|
|
60
|
-
message:
|
|
61
|
-
"SLACK_BOT_TOKEN (or SLACK_TOKEN) environment variable is required",
|
|
59
|
+
message: "SLACK_BOT_TOKEN (or SLACK_TOKEN) environment variable is required",
|
|
62
60
|
}),
|
|
63
61
|
),
|
|
64
62
|
Effect.map(({ token, apiBaseUrl }) => ({
|
|
@@ -70,17 +68,17 @@ export const CredentialsFromEnv = Layer.succeed(
|
|
|
70
68
|
);
|
|
71
69
|
|
|
72
70
|
/**
|
|
73
|
-
* Convenience layer from a
|
|
71
|
+
* Convenience layer from a redacted token + optional base URL. Pass an empty
|
|
74
72
|
* token (`""`) for the credential-less OAuth exchange methods.
|
|
75
73
|
*/
|
|
76
74
|
export const credentials = (config: {
|
|
77
|
-
readonly token: string
|
|
75
|
+
readonly token: Redacted.Redacted<string>;
|
|
78
76
|
readonly apiBaseUrl?: string;
|
|
79
77
|
}): Layer.Layer<Credentials> =>
|
|
80
78
|
Layer.succeed(
|
|
81
79
|
Credentials,
|
|
82
80
|
Effect.succeed({
|
|
83
|
-
token:
|
|
81
|
+
token: config.token,
|
|
84
82
|
apiBaseUrl: config.apiBaseUrl ?? DEFAULT_API_BASE_URL,
|
|
85
83
|
}),
|
|
86
84
|
);
|
package/src/errors.ts
CHANGED
|
@@ -26,12 +26,11 @@ export {
|
|
|
26
26
|
DEFAULT_ERRORS,
|
|
27
27
|
API_ERRORS,
|
|
28
28
|
} from "@distilled.cloud/core/errors";
|
|
29
|
-
import type { DefaultErrors as CoreDefaultErrors } from "@distilled.cloud/core/errors";
|
|
30
|
-
|
|
31
|
-
import * as Schema from "effect/Schema";
|
|
32
29
|
import * as Category from "@distilled.cloud/core/category";
|
|
33
30
|
import { withCategory } from "@distilled.cloud/core/error-category";
|
|
31
|
+
import type { DefaultErrors as CoreDefaultErrors } from "@distilled.cloud/core/errors";
|
|
34
32
|
import { DurationSchema, RETRYABLE } from "@distilled.cloud/core/errors";
|
|
33
|
+
import * as Schema from "effect/Schema";
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* A Slack API error envelope: `ok: false` with a machine-readable slug.
|
|
@@ -53,46 +52,33 @@ export class SlackError extends Schema.TaggedError<SlackError>()("SlackError", {
|
|
|
53
52
|
* Slack rate limit — a 429 or the `rate_limited`/`ratelimited` slug. Slack
|
|
54
53
|
* answers with a `Retry-After` header the default retry policy honors.
|
|
55
54
|
*/
|
|
56
|
-
export class SlackRateLimited extends Schema.TaggedError<SlackRateLimited>()(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
retryAfter: Schema.optional(DurationSchema),
|
|
62
|
-
},
|
|
63
|
-
).pipe(withCategory(RETRYABLE), Category.withThrottlingError) {}
|
|
55
|
+
export class SlackRateLimited extends Schema.TaggedError<SlackRateLimited>()("SlackRateLimited", {
|
|
56
|
+
code: Schema.String,
|
|
57
|
+
message: Schema.optional(Schema.String),
|
|
58
|
+
retryAfter: Schema.optional(DurationSchema),
|
|
59
|
+
}).pipe(withCategory(RETRYABLE), Category.withThrottlingError) {}
|
|
64
60
|
|
|
65
61
|
/**
|
|
66
62
|
* HTTP error — a non-2xx response without a parseable Slack error envelope
|
|
67
63
|
* (proxy pages, HTML 5xx bodies).
|
|
68
64
|
*/
|
|
69
|
-
export class SlackHttpError extends Schema.TaggedError<SlackHttpError>()(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
body: Schema.optional(Schema.String),
|
|
75
|
-
},
|
|
76
|
-
) {}
|
|
65
|
+
export class SlackHttpError extends Schema.TaggedError<SlackHttpError>()("SlackHttpError", {
|
|
66
|
+
status: Schema.Number,
|
|
67
|
+
message: Schema.String,
|
|
68
|
+
body: Schema.optional(Schema.String),
|
|
69
|
+
}) {}
|
|
77
70
|
|
|
78
71
|
/** Schema parse error wrapper. */
|
|
79
|
-
export class SlackParseError extends Schema.TaggedError<SlackParseError>()(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
cause: Schema.Unknown,
|
|
84
|
-
},
|
|
85
|
-
).pipe(Category.withParseError) {}
|
|
72
|
+
export class SlackParseError extends Schema.TaggedError<SlackParseError>()("SlackParseError", {
|
|
73
|
+
body: Schema.Unknown,
|
|
74
|
+
cause: Schema.Unknown,
|
|
75
|
+
}).pipe(Category.withParseError) {}
|
|
86
76
|
|
|
87
77
|
/**
|
|
88
78
|
* Errors any Slack operation may surface in addition to the shared HTTP
|
|
89
79
|
* status errors.
|
|
90
80
|
*/
|
|
91
|
-
export type ClientErrors =
|
|
92
|
-
| SlackError
|
|
93
|
-
| SlackRateLimited
|
|
94
|
-
| SlackHttpError
|
|
95
|
-
| SlackParseError;
|
|
81
|
+
export type ClientErrors = SlackError | SlackRateLimited | SlackHttpError | SlackParseError;
|
|
96
82
|
|
|
97
83
|
/**
|
|
98
84
|
* Default Slack operation errors: the shared HTTP status errors from core
|
package/src/index.ts
CHANGED
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `./services` is generated by `scripts/generate.ts` from the Smithy models
|
|
5
5
|
* in `.generated-specs` (written by `scripts/convert.ts` from the JSON twins
|
|
6
|
-
* of the docs.slack.dev method reference,
|
|
7
|
-
* `
|
|
6
|
+
* of the docs.slack.dev method reference, which the spec mirror
|
|
7
|
+
* `specs/spec-mirror-slack` snapshots). Everything else in this folder is
|
|
8
8
|
* hand-written.
|
|
9
9
|
*/
|
|
10
10
|
export * from "./credentials.ts";
|
|
11
11
|
export * from "./errors.ts";
|
|
12
12
|
export * as T from "./traits.ts";
|
|
13
|
-
export {
|
|
14
|
-
SlackProtocol,
|
|
15
|
-
type SlackOpError,
|
|
16
|
-
type SlackOpContext,
|
|
17
|
-
} from "./protocol.ts";
|
|
13
|
+
export { SlackProtocol, type SlackOpError, type SlackOpContext } from "./protocol.ts";
|
|
18
14
|
export * as Retry from "./retry.ts";
|
|
19
15
|
export * as Pagination from "./pagination.ts";
|
|
20
16
|
export * from "./services/index.ts";
|
package/src/pagination.ts
CHANGED
|
@@ -28,8 +28,5 @@ import * as Pagination from "@distilled.cloud/core/pagination";
|
|
|
28
28
|
* Cursor traversal for Slack: follow `response_metadata.next_cursor` until
|
|
29
29
|
* it comes back empty/absent.
|
|
30
30
|
*/
|
|
31
|
-
export const slackPaginate: Pagination.PaginationStrategy = (
|
|
32
|
-
operation,
|
|
33
|
-
input,
|
|
34
|
-
pagination,
|
|
35
|
-
) => Pagination.paginateCursor(operation, input, pagination);
|
|
31
|
+
export const slackPaginate: Pagination.PaginationStrategy = (operation, input, pagination) =>
|
|
32
|
+
Pagination.paginateCursor(operation, input, pagination);
|