@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.21
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/README.md +2 -2
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +6 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +10 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +47 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts +1 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/admin.d.ts +264 -83
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +154 -149
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +7 -7
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -34
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -1
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +1 -1
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +5 -5
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -39
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +1 -1
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +28 -28
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +6 -6
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +2 -2
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +2 -2
- package/lib/services/slackbot.d.ts.map +1 -1
- package/lib/services/slackbot.js +1 -1
- package/lib/services/slackbot.js.map +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +73 -1
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +4 -4
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/package.json +6 -7
- package/src/credentials.ts +20 -15
- package/src/errors.ts +12 -1
- package/src/index.ts +0 -1
- package/src/protocol.ts +96 -86
- package/src/retry.ts +1 -2
- package/src/services/admin.ts +1523 -951
- package/src/services/agents.ts +23 -12
- package/src/services/api.ts +3 -2
- package/src/services/apps.ts +57 -34
- package/src/services/assistant.ts +17 -8
- package/src/services/auth.ts +7 -4
- package/src/services/blocks.ts +3 -2
- package/src/services/bookmarks.ts +9 -5
- package/src/services/bots.ts +3 -2
- package/src/services/calls.ts +13 -7
- package/src/services/canvases.ts +16 -9
- package/src/services/chat.ts +27 -14
- package/src/services/conversations.ts +62 -34
- package/src/services/dialog.ts +3 -2
- package/src/services/dnd.ts +11 -6
- package/src/services/emoji.ts +3 -2
- package/src/services/entity.ts +7 -4
- package/src/services/files.ts +32 -17
- package/src/services/functions.ts +17 -9
- package/src/services/lists.ts +25 -13
- package/src/services/migration.ts +3 -2
- package/src/services/oauth.ts +23 -17
- package/src/services/openid.ts +8 -6
- package/src/services/pins.ts +7 -4
- package/src/services/reactions.ts +9 -5
- package/src/services/reminders.ts +11 -6
- package/src/services/rtm.ts +5 -3
- package/src/services/search.ts +7 -4
- package/src/services/slackbot.ts +17 -10
- package/src/services/stars.ts +7 -4
- package/src/services/team.ts +20 -11
- package/src/services/tooling.ts +5 -4
- package/src/services/usergroups.ts +15 -8
- package/src/services/users.ts +136 -17
- package/src/services/views.ts +9 -5
- package/src/services/workflows.ts +21 -13
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
package/lib/services/users.d.ts
CHANGED
|
@@ -27,10 +27,82 @@ export interface GetProfileRequest {
|
|
|
27
27
|
/** User to retrieve profile info for */
|
|
28
28
|
user?: string | undefined;
|
|
29
29
|
}
|
|
30
|
+
export interface GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoItem {
|
|
31
|
+
emoji_name: string;
|
|
32
|
+
display_alias?: string | undefined;
|
|
33
|
+
display_url?: string | undefined;
|
|
34
|
+
unicode?: string | undefined;
|
|
35
|
+
}
|
|
36
|
+
export type GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoList = Array<GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoItem>;
|
|
37
|
+
/** The status fields, title and pronouns are set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
38
|
+
export interface GetProfileResponseProfileCase1Profile {
|
|
39
|
+
avatar_hash: string;
|
|
40
|
+
image_original?: string | undefined;
|
|
41
|
+
image_24?: string | undefined;
|
|
42
|
+
image_32?: string | undefined;
|
|
43
|
+
image_48?: string | undefined;
|
|
44
|
+
image_72?: string | undefined;
|
|
45
|
+
image_192?: string | undefined;
|
|
46
|
+
image_512?: string | undefined;
|
|
47
|
+
image_1024?: string | undefined;
|
|
48
|
+
first_name?: string | undefined;
|
|
49
|
+
last_name?: string | undefined;
|
|
50
|
+
/** Set only when the stranger's workspace allows displaying email addresses to external users. */
|
|
51
|
+
email?: string | undefined;
|
|
52
|
+
real_name: string;
|
|
53
|
+
display_name: string;
|
|
54
|
+
real_name_normalized: string;
|
|
55
|
+
display_name_normalized: string;
|
|
56
|
+
team?: string | undefined;
|
|
57
|
+
bot_id?: string | undefined;
|
|
58
|
+
api_app_id?: string | undefined;
|
|
59
|
+
status_text?: string | undefined;
|
|
60
|
+
status_text_canonical?: unknown | undefined;
|
|
61
|
+
status_emoji?: string | undefined;
|
|
62
|
+
status_emoji_display_info?: GetProfileResponseProfileCase1ProfileStatusEmojiDisplayInfoList | undefined;
|
|
63
|
+
status_expiration?: number | undefined;
|
|
64
|
+
status_clear_on_focus_end?: boolean | undefined;
|
|
65
|
+
title?: string | undefined;
|
|
66
|
+
pronouns?: string | undefined;
|
|
67
|
+
}
|
|
68
|
+
/** A stranger: a user a guest can't see in full. */
|
|
69
|
+
export interface GetProfileResponseProfileCase1 {
|
|
70
|
+
id: string;
|
|
71
|
+
team_id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
color: string;
|
|
74
|
+
is_bot: boolean;
|
|
75
|
+
is_app_user: boolean;
|
|
76
|
+
/** Set when the user is deactivated or disconnected. */
|
|
77
|
+
deleted?: boolean | undefined;
|
|
78
|
+
/** Set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
79
|
+
tz?: string | undefined;
|
|
80
|
+
/** Set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
81
|
+
tz_label?: string | undefined;
|
|
82
|
+
/** Set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
83
|
+
tz_offset?: number | undefined;
|
|
84
|
+
/** The status fields, title and pronouns are set only when the stranger's organization shares extended profiles with the viewer's. */
|
|
85
|
+
profile: GetProfileResponseProfileCase1Profile;
|
|
86
|
+
is_stranger: boolean;
|
|
87
|
+
updated: number;
|
|
88
|
+
is_workflow_bot?: boolean | undefined;
|
|
89
|
+
is_connector_bot?: boolean | undefined;
|
|
90
|
+
is_agentforce_bot?: boolean | undefined;
|
|
91
|
+
is_sidekick_bot?: boolean | undefined;
|
|
92
|
+
agent_status?: unknown | undefined;
|
|
93
|
+
app_acl_type?: unknown | undefined;
|
|
94
|
+
is_ai_app?: boolean | undefined;
|
|
95
|
+
is_migrated_dummy_quip_user?: boolean | undefined;
|
|
96
|
+
who_can_share_contact_card: string;
|
|
97
|
+
is_profile_only_user?: boolean | undefined;
|
|
98
|
+
}
|
|
99
|
+
/** The user's profile. When a guest looks up a user they can't see in full, this is the stranger's formatted user instead, with a limited profile under `profile`. */
|
|
100
|
+
export type GetProfileResponseProfile = unknown | GetProfileResponseProfileCase1;
|
|
30
101
|
export interface GetProfileResponse {
|
|
31
102
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
32
103
|
ok: boolean;
|
|
33
|
-
profile
|
|
104
|
+
/** The user's profile. When a guest looks up a user they can't see in full, this is the stranger's formatted user instead, with a limited profile under `profile`. */
|
|
105
|
+
profile: GetProfileResponseProfile;
|
|
34
106
|
}
|
|
35
107
|
export interface ListUsersRequest {
|
|
36
108
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","
|
|
1
|
+
{"version":3,"file":"users.d.ts","sources":["../../src/services/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,MAAM,WAAW,kBAAkB;CAAG;AACtC,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;CACb;AACD,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AACD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC;AACD,MAAM,WAAW,iBAAiB;IAChC,8IAA8I;IAC9I,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AACD,MAAM,WAAW,+DAA+D;IAC9E,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,WAAW,CAAC,EAAE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O,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAUb,CAAC"}
|
package/lib/services/users.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ad as e,Fd as t,Gd as n,a as r,b as i,errors$SlackServiceErrors as a,fd as o,gd as s,l as c,n as l,o as u,pagination$slackPaginate as d,pd as f,protocol$SlackProtocol as p,qd as m,retry$Retry as h,sd as g,td as _,traits$Http as v,traits$Query as y,traits$UnionCases as b,yd as x}from"../_bundle/sdk.js";const S={system:`slack-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`},{header:`x-slack-req-id`,name:`http.response.header.x-slack-req-id`,transform:`list`}],prefix:`Slack`,service:`Users`,propagate:`w3c`};const C=/*@__PURE__*/ l(t=>t===r?c(`DeletePhoto`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"GET",uri:"/users.deletePhoto",code:200}))`,[e,v,_,n,__d0,a,p,h,S]):i(C,t));const w=/*@__PURE__*/ l(o=>o===r?c(`GetPresence`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({user:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/users.getPresence",code:200}));$5({ok:$7,last_activity:$4($8),manual_away:$4($7),presence:$3,online:$4($7),connection_count:$4($8),auto_away:$4($7)})`,[e,v,y,g,t,_,n,s,f,a,p,h,S]):i(w,o));const T=/*@__PURE__*/ l(o=>o===r?c(`GetProfile`,`{input:#1,output:#3,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>4)@"%Request";$9.pipe($8([[],["id","team_id","name","color","is_bot","is_app_user","deleted","tz","tz_label","tz_offset","profile","is_stranger","updated","is_workflow_bot","is_connector_bot","is_agentforce_bot","is_sidekick_bot","agent_status","app_acl_type","is_ai_app","is_migrated_dummy_quip_user","who_can_share_contact_card","is_profile_only_user"]]));$7(>5)@"%Response";$6({include_labels:$4($3.pipe($2())),user:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/users.profile.get",code:200}));$6({ok:$3,profile:#2})`,[e,v,y,s,t,g,_,n,b,x,a,p,h,S]):i(T,o));const E=/*@__PURE__*/ u(o=>o===r?c(`ListUsers`,`{input:#1,output:#2,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"members",pageSize:"limit"},strategy:$15};$8(>3)@"%Request";$8(>4)@"%Response";$7({cursor:$4($3.pipe($2())),include_locale:$4($5.pipe($2())),limit:$4($6.pipe($2())),team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/users.list",code:200}));$7({ok:$5,members:#9:0,cache_ts:$6,response_metadata:$4(#10:0),offset:$4($3)})`,[e,v,y,g,t,s,f,_,n,__d2,__d1,a,p,h,S,d]):i(E,o));const D=/*@__PURE__*/ l(t=>t===r?c(`LookupByEmail`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({email:$3.pipe($2())}).pipe($1({method:"GET",uri:"/users.lookupByEmail",code:200}));$4({ok:$6,user:$7})`,[e,v,y,g,_,n,s,x,a,p,h,S]):i(D,t));const O=/*@__PURE__*/ l(t=>t===r?c(`LookupDiscoverableContact`,`{input:#1,output:#2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>3)@"%Request";$4(>4)@"%Response";$3({email:$2}).pipe($1({method:"POST",uri:"/users.discoverableContacts.lookup",code:200}));$3({ok:$5,is_discoverable:$5})`,[e,v,g,_,n,s,a,p,h,S]):i(O,t));const k=/*@__PURE__*/ l(t=>t===r?c(`SetActive`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"POST",uri:"/users.setActive",code:200}))`,[e,v,_,n,__d0,a,p,h,S]):i(k,t));const A=/*@__PURE__*/ l(o=>o===r?c(`SetPhoto`,`{input:#1,output:#3,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>4)@"%Request";$7($2,$4);$6(>5)@"%Response";$5({crop_w:$3($2),crop_x:$3($2),crop_y:$3($2),image:$3($4)}).pipe($1({method:"POST",uri:"/users.setPhoto",code:200,contentType:"form-urlencoded"}));$5({ok:$8,profile:#2})`,[e,v,g,t,x,_,n,m,s,a,p,h,S]):i(A,o));const j=/*@__PURE__*/ l(t=>t===r?c(`SetPresence`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({presence:$2}).pipe($1({method:"POST",uri:"/users.setPresence",code:200}))`,[e,v,g,_,n,__d0,a,p,h,S]):i(j,t));const M=/*@__PURE__*/ l(o=>o===r?c(`SetProfile`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({name:$3($2),profile:$3($2),user:$3($2),value:$3($2)}).pipe($1({method:"POST",uri:"/users.profile.set",code:200}));$4({ok:$6,username:$2,profile:$7,email_pending:$3($2)})`,[e,v,g,t,_,n,s,x,a,p,h,S]):i(M,o));const N=/*@__PURE__*/ u(o=>o===r?c(`UsersConversations`,`{input:#1,output:#2,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"channels",pageSize:"limit"},strategy:$15};$8(>3)@"%Request";$8(>4)@"%Response";$7({cursor:$4($3.pipe($2())),exclude_archived:$4($5.pipe($2())),exclude_muted:$4($5.pipe($2())),limit:$4($6.pipe($2())),team_id:$4($3.pipe($2())),types:$4($3.pipe($2())),user:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/users.conversations",code:200}));$7({ok:$5,channels:#9:0,response_metadata:$4(#10:0)})`,[e,v,y,g,t,s,f,_,n,__d2,__d1,a,p,h,S,d]):i(N,o));const P=/*@__PURE__*/ l(t=>t===r?c(`UsersIdentity`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"GET",uri:"/users.identity",code:200}))`,[e,v,_,n,__d0,a,p,h,S]):i(P,t));const F=/*@__PURE__*/ l(o=>o===r?c(`UsersInfo`,`{input:#1,output:#2,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>3)@"%Request";$7(>4)@"%Response";$6({include_locale:$4($3.pipe($2())),user:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/users.info",code:200}));$6({ok:$3,user:$4($8),users:$4(#9:0)})`,[e,v,y,s,t,g,_,n,x,__d2,a,p,h,S]):i(F,o));function __d0(){return[`$3(>1)@"DeletePhotoResponse";$2({ok:$1})`,[e,s,_,n]]}function __d1(){return[`$4(>1)@"ListUsersResponseResponseMetadata";$3({next_cursor:$2($1)})`,[e,g,t,_,n]]}function __d2(){return[`$2($1)`,[e,x,o]]}export{C as deletePhoto,w as getPresence,T as getProfile,E as listUsers,D as lookupByEmail,O as lookupDiscoverableContact,k as setActive,A as setPhoto,j as setPresence,M as setProfile,N as usersConversations,P as usersIdentity,F as usersInfo};
|
|
2
2
|
//# sourceMappingURL=users.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","names":["API.D","API.named","__L.at","T.Http","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.String","S.optional","S.Boolean","S.Number","S.Unknown","S.Record","S.Array","
|
|
1
|
+
{"version":3,"file":"users.js","names":["API.D","API.named","__L.at","T.Http","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.String","S.optional","S.Boolean","S.Number","T.UnionCases","S.Unknown","S.Record","S.Array","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","opPaginated","slackPaginate","Number","SlackProtocol","Record","Retry","String","Struct","Http","Query","UnionCases","Unknown","TELEMETRY","deletePhoto","i","getPresence","getProfile","listUsers","lookupByEmail","lookupDiscoverableContact","setActive","setPhoto","setPresence","setProfile","usersConversations","usersIdentity","usersInfo"],"sources":["../../src/services/users.ts"],"mappings":"sTAaA,MAAMuC,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,EACnF,CAAE,OAAQ,iBAAkB,KAAM,sCAAuC,UAAW,MAAO,CAC7F,EACA,OAAQ,QACR,QAAS,QACT,UAAW,KACb,EAmPA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMzC,EAAQC,EAAU,cAAe,mLAAoL,CAACC,EAAQC,EAAQC,EAAUC,EAAW,KAAMiB,EAAoBQ,EAAexB,EAAaiC,CAAS,CAAC,EAAIhC,EAASiC,EAAaC,CAAC,CAAC,EAIvY,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMzC,EAAQC,EAAU,cAAe,oVAAqV,CAACC,EAAQC,EAAQK,EAASC,EAAUC,EAAYN,EAAUC,EAAWM,EAAWC,EAAUU,EAAoBQ,EAAexB,EAAaiC,CAAS,CAAC,EAAIhC,EAASmC,EAAaD,CAAC,CAAC,EAItlB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMzC,EAAQC,EAAU,aAAc,8mBAA+mB,CAACC,EAAQC,EAAQK,EAASG,EAAWD,EAAYD,EAAUL,EAAUC,EAAWQ,EAAcC,EAAWQ,EAAoBQ,EAAexB,EAAai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b,CAAC"}
|
package/lib/services/views.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ad as e,Fd as t,Gd as n,a as r,b as i,errors$SlackServiceErrors as a,gd as o,l as s,n as c,od as l,protocol$SlackProtocol as u,qd as d,retry$Retry as f,sd as p,td as m,traits$Http as h,yd as g}from"../_bundle/sdk.js";const _={system:`slack-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`},{header:`x-slack-req-id`,name:`http.response.header.x-slack-req-id`,transform:`list`}],prefix:`Slack`,service:`Views`,propagate:`w3c`};const v=/*@__PURE__*/ c(o=>o===r?s(`PublishView`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({user_id:$2,view:$3,hash:$4($2),interactivity_pointer:$4($2)}).pipe($1({method:"POST",uri:"/views.publish",code:200}))`,[e,h,p,g,t,m,n,__d0,a,u,f,_]):i(v,o));const y=/*@__PURE__*/ c(o=>o===r?s(`UpdateView`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({view_id:$3($2),external_id:$3($2),view:$4,hash:$3($2)}).pipe($1({method:"POST",uri:"/views.update",code:200}))`,[e,h,p,t,g,m,n,__d0,a,u,f,_]):i(y,o));const b=/*@__PURE__*/ c(o=>o===r?s(`ViewsOpen`,`{input:#2,output:#9:0,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$3($1,$2);$8(>3)@"%Request";$7({trigger_id:$6($5($1)),interactivity_pointer:$6($5($1)),view:#1}).pipe($4({method:"POST",uri:"/views.open",code:200}))`,[e,p,g,d,h,l,t,m,n,__d0,a,u,f,_]):i(b,o));const x=/*@__PURE__*/ c(o=>o===r?s(`ViewsPush`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({trigger_id:$4($3($2)),interactivity_pointer:$4($3($2)),view:$5}).pipe($1({method:"POST",uri:"/views.push",code:200}))`,[e,h,p,l,t,g,m,n,__d0,a,u,f,_]):i(x,o));function __d0(){return[`$4(>1)@"PublishViewResponse";$3({ok:$1,view:$2})`,[e,o,g,m,n]]}export{v as publishView,y as updateView,b as viewsOpen,x as viewsPush};
|
|
2
2
|
//# sourceMappingURL=views.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Unknown","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Record","S.NullOr","S.Boolean","
|
|
1
|
+
{"version":3,"file":"views.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Unknown","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Record","S.NullOr","S.Boolean","at","optional","suspend","D","call","SlackServiceErrors","Boolean","named","op","NullOr","SlackProtocol","Record","Retry","String","Struct","Http","Unknown","TELEMETRY","publishView","i","updateView","viewsOpen","viewsPush"],"sources":["../../src/services/views.ts"],"mappings":"gOAYA,MAAM+B,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,EACnF,CAAE,OAAQ,iBAAkB,KAAM,sCAAuC,UAAW,MAAO,CAC7F,EACA,OAAQ,QACR,QAAS,QACT,UAAW,KACb,EA4DA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMjC,EAAQC,EAAU,cAAe,6OAA8O,CAACC,EAAQC,EAAQC,EAAUC,EAAWC,EAAYC,EAAUC,EAAW,KAAMW,EAAoBK,EAAef,EAAasB,CAAS,CAAC,EAAIrB,EAASsB,EAAaC,CAAC,CAAC,EAIle,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMjC,EAAQC,EAAU,aAAc,sOAAuO,CAACC,EAAQC,EAAQC,EAAUE,EAAYD,EAAWE,EAAUC,EAAW,KAAMW,EAAoBK,EAAef,EAAasB,CAAS,CAAC,EAAIrB,EAASwB,EAAYD,CAAC,CAAC,EAIzd,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMjC,EAAQC,EAAU,YAAa,yPAA0P,CAACC,EAAQE,EAAUC,EAAWM,EAAUR,EAAQS,EAAUN,EAAYC,EAAUC,EAAW,KAAMW,EAAoBK,EAAef,EAAasB,CAAS,CAAC,EAAIrB,EAASyB,EAAWF,CAAC,CAAC,EAI9f,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMjC,EAAQC,EAAU,YAAa,8OAA+O,CAACC,EAAQC,EAAQC,EAAUQ,EAAUN,EAAYD,EAAWE,EAAUC,EAAW,KAAMW,EAAoBK,EAAef,EAAasB,CAAS,CAAC,EAAIrB,EAAS0B,EAAWH,CAAC,CAAC,EAMze,SAAS,MAAY,CACnB,MAAO,CAAC,mDAAoD,CAAC/B,EAAQW,EAAWR,EAAWE,EAAUC,CAAS,CAAC,CACjH"}
|
|
@@ -162,7 +162,7 @@ export interface SetTriggersPermissionsResponse {
|
|
|
162
162
|
ok: boolean;
|
|
163
163
|
}
|
|
164
164
|
export type AddFeaturedError = SlackOpError;
|
|
165
|
-
/** Add featured workflows to a channel. Required scopes -- bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` -- Method not yet supported - `restricted_action` -- User does not have access to this method. - `error_modifying_workflows` -- Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.add */
|
|
165
|
+
/** Add featured workflows to a channel. Required scopes -- bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` -- Method not yet supported - `restricted_action` -- User does not have access to this method. - `error_modifying_workflows` -- Error modifying workflows - `channel_not_found` -- Channel not found. See https://docs.slack.dev/reference/methods/workflows.featured.add */
|
|
166
166
|
export declare const addFeatured: API.OperationMethod<AddFeaturedRequest, AddFeaturedResponse, AddFeaturedError, SlackOpContext>;
|
|
167
167
|
export type AddTriggersPermissionsError = SlackOpError;
|
|
168
168
|
/** Allows users to run a trigger that has its permission type set to named_entities Required scopes -- bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `channel_not_found` -- One or more of the listed channels could not be found. - `connected_org_denied` -- The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` -- The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` -- The workspace admin does not allow connected users to be named_entities. - `invalid_permission_type` -- This trigger requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` -- None of the provided named entities were valid - `org_not_connected` -- One of more of the listed organizations were not connected. - `org_not_found` -- One or more of the listed organizations could not be found. - `shared_channel_denied` -- The workspace admin does not allow shared channels to be named_entities. - `team_not_connected` -- One of more of the listed teams were not connected by org. - `team_not_found` -- One or more of the listed teams could not be found. - `too_many_named_entities` -- Too many named entities passed into the trigger permissions setting. - `trigger_not_found` -- This trigger does not exist. - `unknown_method` -- This method does not exist. - `user_not_found` -- One or more of the listed users could not be found. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.add */
|
|
@@ -174,15 +174,15 @@ export type ListTriggersPermissionsError = SlackOpError;
|
|
|
174
174
|
/** Returns the permission type of a trigger and if applicable, includes the entities that have been granted access Required scopes -- bot: `triggers:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `unknown_method` -- This method does not exist. - `access_denied` -- This actor does not have access to the permissions on this resource. - `trigger_not_found` -- This trigger does not exist. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.list */
|
|
175
175
|
export declare const listTriggersPermissions: API.OperationMethod<ListTriggersPermissionsRequest, ListTriggersPermissionsResponse, ListTriggersPermissionsError, SlackOpContext>;
|
|
176
176
|
export type RemoveFeaturedError = SlackOpError;
|
|
177
|
-
/** Remove featured workflows from a channel. Required scopes -- bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` -- Method not yet supported - `restricted_action` -- User does not have access to this method. - `error_modifying_workflows` -- Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.remove */
|
|
177
|
+
/** Remove featured workflows from a channel. Required scopes -- bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` -- Method not yet supported - `restricted_action` -- User does not have access to this method. - `error_modifying_workflows` -- Error modifying workflows - `channel_not_found` -- Channel not found. See https://docs.slack.dev/reference/methods/workflows.featured.remove */
|
|
178
178
|
export declare const removeFeatured: API.OperationMethod<RemoveFeaturedRequest, RemoveFeaturedResponse, RemoveFeaturedError, SlackOpContext>;
|
|
179
179
|
export type RemoveTriggersPermissionsError = SlackOpError;
|
|
180
180
|
/** Revoke an entity's access to a trigger that has its permission type set to named_entities Required scopes -- bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `connected_org_denied` -- The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` -- The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` -- The workspace admin does not allow connected users to be named_entities. - `named_entities_cannot_be_empty` -- There must be at least one valid named entity - `org_not_connected` -- One of more of the listed organizations were not connected. - `org_not_found` -- One or more of the listed organizations could not be found. - `shared_channel_denied` -- The workspace admin does not allow shared channels to be named_entities. - `trigger_not_found` -- This trigger does not exist. - `invalid_permission_type` -- This trigger requires permission_type to be set as named_entities before adding users. - `too_many_named_entities` -- Too many named entities passed into the trigger permissions setting. - `unknown_method` -- This method does not exist. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.remove */
|
|
181
181
|
export declare const removeTriggersPermissions: API.OperationMethod<RemoveTriggersPermissionsRequest, RemoveTriggersPermissionsResponse, RemoveTriggersPermissionsError, SlackOpContext>;
|
|
182
182
|
export type SetFeaturedError = SlackOpError;
|
|
183
|
-
/** Set featured workflows for a channel. Required scopes -- bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` -- Method not yet supported - `restricted_action` -- User does not have access to this method. - `error_modifying_workflows` -- Error modifying workflows See https://docs.slack.dev/reference/methods/workflows.featured.set */
|
|
183
|
+
/** Set featured workflows for a channel. Required scopes -- bot: `bookmarks:write`; user: `bookmarks:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `method_not_supported` -- Method not yet supported - `restricted_action` -- User does not have access to this method. - `error_modifying_workflows` -- Error modifying workflows - `channel_not_found` -- Channel not found. See https://docs.slack.dev/reference/methods/workflows.featured.set */
|
|
184
184
|
export declare const setFeatured: API.OperationMethod<SetFeaturedRequest, SetFeaturedResponse, SetFeaturedError, SlackOpContext>;
|
|
185
185
|
export type SetTriggersPermissionsError = SlackOpError;
|
|
186
|
-
/** Set the permission type for who can run a trigger Required scopes -- bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `channel_not_found` -- One or more of the listed channels could not be found. - `connected_org_denied` -- The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` -- The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` -- The workspace admin does not allow connected users to be named_entities. - `
|
|
186
|
+
/** Set the permission type for who can run a trigger Required scopes -- bot: `triggers:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `channel_not_found` -- One or more of the listed channels could not be found. - `connected_org_denied` -- The workspace admin does not allow connected organizations to be named_entities. - `connected_team_denied` -- The workspace admin does not allow connected teams to be named_entities. - `connected_user_denied` -- The workspace admin does not allow connected users to be named_entities. - `invalid_permission_type` -- This function requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity. - `no_valid_named_entities` -- None of the provided named entities were valid - `org_not_found` -- One or more of the listed organizations could not be found. - `org_not_connected` -- One of more of the listed organizations were not connected. - `shared_channel_denied` -- The workspace admin does not allow shared channels to be named_entities. - `team_not_connected` -- One of more of the listed teams were not connected by org. - `team_not_found` -- One or more of the listed teams could not be found. - `too_many_named_entities` -- Too many named_entities passed into the trigger permissions setting. - `trigger_not_found` -- This trigger does not exist. - `unknown_method` -- This method does not exist. - `user_not_found` -- One or more of the listed users could not be found. See https://docs.slack.dev/reference/methods/workflows.triggers.permissions.set */
|
|
187
187
|
export declare const setTriggersPermissions: API.OperationMethod<SetTriggersPermissionsRequest, SetTriggersPermissionsResponse, SetTriggersPermissionsError, SlackOpContext>;
|
|
188
188
|
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sources":["../../src/services/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,0DAA0D;AAC1D,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,WAAW,kBAAkB;IACjC,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,EAAE,gCAAgC,CAAC;CAC/C;AACD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;CACb;AACD,+BAA+B;AAC/B,MAAM,MAAM,wCAAwC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AACrE,kCAAkC;AAClC,MAAM,MAAM,2CAA2C,GAAG,KAAK,CAAC,MAAM,CAAC,CA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,mBAAmB,GAAG,YAAY,CAAC;AAC/C,yeAAye;AACze,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,8BAA8B,GAAG,YAAY,CAAC;AAC1D,i2CAAi2C;AACj2C,eAAO,MAAM,yBAAyB,EAAE,GAAG,CAAC,eAAe,CACzD,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,keAAke;AACle,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,YAAY,CAAC;AACvD,2rDAA2rD;AAC3rD,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,eAAe,CACtD,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,cAAc,CAUb,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ad as e,Fd as t,Gd as n,a as r,b as i,errors$SlackServiceErrors as a,fd as o,gd as s,l as c,n as l,protocol$SlackProtocol as u,retry$Retry as d,sd as f,td as p,traits$Http as m}from"../_bundle/sdk.js";const h={system:`slack-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`},{header:`x-slack-req-id`,name:`http.response.header.x-slack-req-id`,transform:`list`}],prefix:`Slack`,service:`Workflows`,propagate:`w3c`};const g=/*@__PURE__*/ l(t=>t===r?c(`AddFeatured`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({channel_id:$2,trigger_ids:#3:0}).pipe($1({method:"POST",uri:"/workflows.featured.add",code:200}))`,[e,m,f,__d0,p,n,__d1,a,u,d,h]):i(g,t));const _=/*@__PURE__*/ l(o=>o===r?c(`AddTriggersPermissions`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({trigger_id:$2,user_ids:$4(#3:0),channel_ids:$4(#3:0),team_ids:$4(#3:0),org_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/workflows.triggers.permissions.add",code:200}))`,[e,m,f,__d0,t,p,n,__d1,a,u,d,h]):i(_,o));const v=/*@__PURE__*/ l(t=>t===r?c(`ListFeatured`,`{input:#1,output:#6,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$4(>7)@"%Request";$4(>8)@"%ResponseFeaturedWorkflowsItemTriggersItem";$6(#2);$4(>9)@"%ResponseFeaturedWorkflowsItem";$6(#4);$4(>10)@"%Response";$3({channel_ids:#2:0}).pipe($1({method:"POST",uri:"/workflows.featured.list",code:200}));$3({id:$5,title:$5});$3({channel_id:$5,triggers:#3});$3({ok:$7,featured_workflows:#5})`,[e,m,__d0,p,n,f,o,s,a,u,d,h]):i(v,t));const y=/*@__PURE__*/ l(t=>t===r?c(`ListTriggersPermissions`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({trigger_id:$2}).pipe($1({method:"POST",uri:"/workflows.triggers.permissions.list",code:200}))`,[e,m,f,p,n,__d1,a,u,d,h]):i(y,t));const b=/*@__PURE__*/ l(t=>t===r?c(`RemoveFeatured`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({channel_id:$2,trigger_ids:#3:0}).pipe($1({method:"POST",uri:"/workflows.featured.remove",code:200}))`,[e,m,f,__d0,p,n,__d1,a,u,d,h]):i(b,t));const x=/*@__PURE__*/ l(o=>o===r?c(`RemoveTriggersPermissions`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({trigger_id:$2,user_ids:$4(#3:0),channel_ids:$4(#3:0),team_ids:$4(#3:0),org_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/workflows.triggers.permissions.remove",code:200}));$5({ok:$7,permission_type:$2,user_ids:$4(#3:0),channel_ids:$4(#3:0),team_ids:$4(#3:0),org_ids:$4(#3:0)})`,[e,m,f,__d0,t,p,n,s,a,u,d,h]):i(x,o));const S=/*@__PURE__*/ l(t=>t===r?c(`SetFeatured`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({channel_id:$2,trigger_ids:#3:0}).pipe($1({method:"POST",uri:"/workflows.featured.set",code:200}))`,[e,m,f,__d0,p,n,__d1,a,u,d,h]):i(S,t));const C=/*@__PURE__*/ l(o=>o===r?c(`SetTriggersPermissions`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({trigger_id:$2,permission_type:$2,user_ids:$4(#3:0),channel_ids:$4(#3:0),team_ids:$4(#3:0),org_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/workflows.triggers.permissions.set",code:200}))`,[e,m,f,__d0,t,p,n,__d1,a,u,d,h]):i(C,o));function __d0(){return[`$2($1)`,[e,f,o]]}function __d1(){return[`$3(>1)@"AddFeaturedResponse";$2({ok:$1})`,[e,s,p,n]]}export{g as addFeatured,_ as addTriggersPermissions,v as listFeatured,y as listTriggersPermissions,b as removeFeatured,x as removeTriggersPermissions,S as setFeatured,C as setTriggersPermissions};
|
|
2
2
|
//# sourceMappingURL=workflows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Struct","S.suspend","Retry.Retry","API.call","S.optional","S.Array","S.Boolean","
|
|
1
|
+
{"version":3,"file":"workflows.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Struct","S.suspend","Retry.Retry","API.call","S.optional","S.Array","S.Boolean","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","SlackProtocol","Retry","String","Struct","Http","TELEMETRY","addFeatured","i","addTriggersPermissions","listFeatured","listTriggersPermissions","removeFeatured","removeTriggersPermissions","setFeatured","setTriggersPermissions"],"sources":["../../src/services/workflows.ts"],"mappings":"gNAYA,MAAM2B,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,EACnF,CAAE,OAAQ,iBAAkB,KAAM,sCAAuC,UAAW,MAAO,CAC7F,EACA,OAAQ,QACR,QAAS,YACT,UAAW,KACb,EA4KA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAM7B,EAAQC,EAAU,cAAe,wNAAyN,CAACC,EAAQC,EAAQC,EAAU,KAAMC,EAAUC,EAAW,KAAMW,EAAoBK,EAAef,EAAaoB,CAAS,CAAC,EAAInB,EAASoB,EAAaC,CAAC,CAAC,EAI5b,MAAaC,EAKK,gBAAQ,GAAgBD,IAAM7B,EAAQC,EAAU,yBAA0B,8RAA+R,CAACC,EAAQC,EAAQC,EAAU,KAAMK,EAAYJ,EAAUC,EAAW,KAAMW,EAAoBK,EAAef,EAAaoB,CAAS,CAAC,EAAInB,EAASsB,EAAwBD,CAAC,CAAC,EAIpiB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAM7B,EAAQC,EAAU,eAAgB,+ZAAga,CAACC,EAAQC,EAAQ,KAAME,EAAUC,EAAWF,EAAUM,EAASC,EAAWM,EAAoBK,EAAef,EAAaoB,CAAS,CAAC,EAAInB,EAASuB,EAAcF,CAAC,CAAC,EAInpB,MAAaG,E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le/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/admin.js","
|
|
3
|
-
export const addAlias=$o(),addAppsPermissions=$o(),addAssignments=$o(),addChannels=$o(),addEmoji=$o(),addGroup=$o(),addTeams=$o(),addUsers=$o(),addWorkflowsCollaborator=$o(),analyticsMessagesActivity=$o(),analyticsMessagesMetadata=$o(),approveApp=$o(),approveInviteRequest=$o(),appsRestrict=$o(),archiveConversation=$o(),assignEntities=$o(),assignUser=$o(),bulkArchive=$o(),bulkDelete=$o(),bulkMove=$o(),bulkSetExcludeFromSlackAi=$o(),bulkSetProperties=$o(),cancelAppsRequest=$o(),clearResolution=$o(),clearSettings=$o(),conversationsKick=$o(),convertToPrivate=$o(),convertToPublic=$o(),createBarrier=$o(),createConversation=$o(),createForObjects=$o(),createTeam=$o(),createUsergroup=$o(),deactivateUser=$o(),deleteBarrier=$o(),deleteConversation=$o(),disconnectShared=$o(),exportUsersUnsupportedVersion=$o(),fetchUsergroup=$o(),getConversationPrefs=$o(),getCustomRetention=$o(),getEntities=$o(),getExpiration=$o(),getFile=$o(),getItem=$o(),getSettings=$o(),getTeams=$o(),invalidateUsersSession=$o(),inviteConversation=$o(),inviteRequestsDeny=$o(),inviteUser=$o(),linkObjects=$o(),listAppsActivities=$o(),listAppsApproved=$o(),listAppsMcpServers=$o(),listAppsMcpServersPermissions=$o(),listAppsPermissions=$o(),listAppsRequests=$o(),listAppsRestricted=$o(),listAssignments=$o(),listBarriers=$o(),listChannels=$o(),listEmoji=$o(),listFunctions=$o(),listGroups=$o(),listInviteRequests=$o(),listInviteRequestsApproved=$o(),listInviteRequestsDenied=$o(),listOriginalConnectedChannelInfo=$o(),listSlackbotSkills=$o(),listTeams=$o(),listTeamsAdmins=$o(),listTeamsOwners=$o(),listUsers=$o(),listUsersSession=$o(),lookupAppsConfig=$o(),lookupConversation=$o(),lookupFunctionsPermissions=$o(),lookupWorkflowsPermissions=$o(),lookupWorkflowsTriggersTypesPermissions=$o(),pauseUsersAccess=$o(),publishSlackbotSkill=$o(),removeAppsPermissions=$o(),removeAssignments=$o(),removeChannels=$o(),removeCustomRetention=$o(),removeEmoji=$o(),removeEntities=$o(),removeGroup=$o(),removeTeams=$o(),removeUser=$o(),removeUsers=$o(),removeWorkflowsCollaborator=$o(),renameConversation=$o(),renameEmoji=$o(),resetBulk=$o(),resetUsersSession=$o(),resumeUsersAccess=$o(),searchConversation=$o(),searchWorkflow=$o(),setAdmin=$o(),setAppsConfig=$o(),setAppsMcpServersPermissions=$o(),setAppsPermissions=$o(),setAutoEnabled=$o(),setConversationPrefs=$o(),setCustomRetention=$o(),setDefaultChannels=$o(),setDescription=$o(),setDiscoverability=$o(),setExpiration=$o(),setFunctionsPermissions=$o(),setIcon=$o(),setName=$o(),setOwner=$o(),setRegular=$o(),setSettings=$o(),setTeams=$o(),setWorkflowsTriggersTypesPermissions=$o(),teamsSettingsInfo=$o(),unarchiveConversation=$o(),uninstallApp=$o(),unlinkObjects=$o(),unpublishSlackbotSkill=$o(),unpublishWorkflow=$o(),updateBarrier=$o(),updateItem=$o(),updateUsergroup=$o(),uploadUsers=$o();
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/admin.js","oooooooooooopppoooooooooooooooooooooooooooooopoooooooooopppooppppoopoppppppppppopoooooooooooooooooooooppooooooooooooooooooooooooooooo",62200,10542);
|
|
3
|
+
export const addAlias=$o(),addAppsPermissions=$o(),addAssignments=$o(),addChannels=$o(),addEmoji=$o(),addGroup=$o(),addTeams=$o(),addUsers=$o(),addWorkflowsCollaborator=$o(),analyticsMembersActivity=$o(),analyticsMembersMetadata=$o(),analyticsMessagesActivity=$o(),analyticsMessagesMetadata=$o(),analyticsSlackbotSkills=$o(),analyticsSlackbotTools=$o(),approveApp=$o(),approveInviteRequest=$o(),appsRestrict=$o(),archiveConversation=$o(),assignEntities=$o(),assignUser=$o(),bulkArchive=$o(),bulkDelete=$o(),bulkMove=$o(),bulkSetExcludeFromSlackAi=$o(),bulkSetProperties=$o(),cancelAppsRequest=$o(),clearResolution=$o(),clearSettings=$o(),conversationsKick=$o(),convertToPrivate=$o(),convertToPublic=$o(),createBarrier=$o(),createConversation=$o(),createForObjects=$o(),createTeam=$o(),createUsergroup=$o(),deactivateUser=$o(),deleteBarrier=$o(),deleteConversation=$o(),disconnectShared=$o(),exportUsersUnsupportedVersion=$o(),fetchUsergroup=$o(),getConversationPrefs=$o(),getCustomRetention=$o(),getEntities=$o(),getExpiration=$o(),getFile=$o(),getItem=$o(),getSettings=$o(),getTeams=$o(),invalidateUsersSession=$o(),inviteConversation=$o(),inviteRequestsDeny=$o(),inviteUser=$o(),linkObjects=$o(),listAppsActivities=$o(),listAppsApproved=$o(),listAppsMcpServers=$o(),listAppsMcpServersPermissions=$o(),listAppsPermissions=$o(),listAppsRequests=$o(),listAppsRestricted=$o(),listAssignments=$o(),listBarriers=$o(),listChannels=$o(),listEmoji=$o(),listFunctions=$o(),listGroups=$o(),listInviteRequests=$o(),listInviteRequestsApproved=$o(),listInviteRequestsDenied=$o(),listOriginalConnectedChannelInfo=$o(),listSlackbotSkills=$o(),listTeams=$o(),listTeamsAdmins=$o(),listTeamsOwners=$o(),listUsers=$o(),listUsersSession=$o(),lookupAppsConfig=$o(),lookupConversation=$o(),lookupFunctionsPermissions=$o(),lookupWorkflowsPermissions=$o(),lookupWorkflowsTriggersTypesPermissions=$o(),pauseUsersAccess=$o(),publishSlackbotSkill=$o(),removeAppsPermissions=$o(),removeAssignments=$o(),removeChannels=$o(),removeCustomRetention=$o(),removeEmoji=$o(),removeEntities=$o(),removeGroup=$o(),removeTeams=$o(),removeUser=$o(),removeUsers=$o(),removeWorkflowsCollaborator=$o(),renameConversation=$o(),renameEmoji=$o(),resetBulk=$o(),resetUsersSession=$o(),resumeUsersAccess=$o(),searchConversation=$o(),searchWorkflow=$o(),setAdmin=$o(),setAppsConfig=$o(),setAppsMcpServersPermissions=$o(),setAppsPermissions=$o(),setAutoEnabled=$o(),setConversationPrefs=$o(),setCustomRetention=$o(),setDefaultChannels=$o(),setDescription=$o(),setDiscoverability=$o(),setExpiration=$o(),setFunctionsPermissions=$o(),setIcon=$o(),setName=$o(),setOwner=$o(),setRegular=$o(),setSettings=$o(),setTeams=$o(),setWorkflowsTriggersTypesPermissions=$o(),teamsSettingsInfo=$o(),unarchiveConversation=$o(),uninstallApp=$o(),unlinkObjects=$o(),unpublishSlackbotSkill=$o(),unpublishWorkflow=$o(),updateBarrier=$o(),updateItem=$o(),updateUsergroup=$o(),uploadUsers=$o();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/apps.js","oooooopooooooppoooooooo",
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/apps.js","oooooopooooooppoooooooo",10799,2052);
|
|
3
3
|
export const bulkDelete=$o(),bulkGet=$o(),bulkPut=$o(),connectionsOpen=$o(),createManifest=$o(),datastoreCount=$o(),datastoreQuery=$o(),deleteAuthExternal=$o(),deleteDatastore=$o(),deleteManifest=$o(),exportManifest=$o(),getAuthExternal=$o(),getDatastore=$o(),listActivities=$o(),listEventAuthorizations=$o(),putDatastore=$o(),setIcon=$o(),setManagedPermissions=$o(),uninstallApp=$o(),updateDatastore=$o(),updateManifest=$o(),updateUserConnection=$o(),validateManifest=$o();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/conversations.js","ooooopooopopooooooopppoooooo",
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/conversations.js","ooooopooopopooooooopppoooooo",13914,2515);
|
|
3
3
|
export const acceptSharedInvite=$o(),approveRequestSharedInvite=$o(),approveSharedInvite=$o(),archiveConversation=$o(),conversationsClose=$o(),conversationsHistory=$o(),conversationsInfo=$o(),conversationsKick=$o(),conversationsMark=$o(),conversationsMembers=$o(),conversationsOpen=$o(),conversationsReplies=$o(),createCanvase=$o(),createConversation=$o(),inviteConversation=$o(),inviteDeclineShared=$o(),inviteShared=$o(),joinConversation=$o(),leaveConversation=$o(),listConnectInvites=$o(),listConversations=$o(),listRequestSharedInvite=$o(),renameConversation=$o(),requestSharedInviteDeny=$o(),setExternalInvitePermissions=$o(),setPurpose=$o(),setTopic=$o(),unarchiveConversation=$o();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$L}from"../_bundle/lazy.js";
|
|
2
|
-
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/files.js","oooopoopooooooo",
|
|
2
|
+
const{o:$o,e:$e}=/*@__PURE__*/$L("../services/files.js","oooopoopooooooo",8977,1632);
|
|
3
3
|
export const addRemote=$o(),completeUploadExternal=$o(),deleteComment=$o(),deleteFile=$o(),filesInfo=$o(),getUploadURLExternal=$o(),listFiles=$o(),listRemote=$o(),remoteInfo=$o(),removeRemote=$o(),revokePublicURL=$o(),sharedPublicURL=$o(),shareRemote=$o(),updateRemote=$o(),uploadFile=$o();
|
package/lib/traits.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traits.d.ts","
|
|
1
|
+
{"version":3,"file":"traits.d.ts","sources":["../src/traits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,cAAc,EACd,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/slack",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.21",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"types": "./lib/index.d.ts",
|
|
19
19
|
"bun": "./src/index.ts",
|
|
20
20
|
"worker": "./src/index.ts",
|
|
21
|
-
"distilled-lazy": "./lib/index.lazy.js",
|
|
22
21
|
"default": "./lib/index.js"
|
|
23
22
|
},
|
|
24
23
|
"./Credentials": {
|
|
@@ -66,19 +65,19 @@
|
|
|
66
65
|
}
|
|
67
66
|
},
|
|
68
67
|
"dependencies": {
|
|
69
|
-
"@distilled.cloud/core": "1.0.0-rc.
|
|
68
|
+
"@distilled.cloud/core": "1.0.0-rc.21"
|
|
70
69
|
},
|
|
71
70
|
"devDependencies": {
|
|
72
71
|
"@distilled.cloud/dev": "0.0.0",
|
|
73
|
-
"@effect/platform-node": "
|
|
72
|
+
"@effect/platform-node": "~4.1.7",
|
|
74
73
|
"@types/node": "26.6.5"
|
|
75
74
|
},
|
|
76
75
|
"peerDependencies": {
|
|
77
|
-
"effect": "
|
|
76
|
+
"effect": "~4.1.7"
|
|
78
77
|
},
|
|
79
78
|
"distilled": {
|
|
80
|
-
"generatedAt": "2026-11-
|
|
81
|
-
"specUpdatedAt": "2026-11-
|
|
79
|
+
"generatedAt": "2026-11-27",
|
|
80
|
+
"specUpdatedAt": "2026-11-21"
|
|
82
81
|
},
|
|
83
82
|
"scripts": {
|
|
84
83
|
"build": "tsrs -b",
|
package/src/credentials.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Slack credentials -- hand-written.
|
|
3
3
|
*
|
|
4
4
|
* The `Credentials` service resolves `{ token, apiBaseUrl }` per request; the
|
|
5
|
-
* protocol
|
|
5
|
+
* protocol formats the `Authorization: Bearer <token>` header from it.
|
|
6
6
|
*
|
|
7
7
|
* Slack authorizes Web API calls with one bearer token, and the token's
|
|
8
8
|
* PREFIX carries its kind (https://docs.slack.dev/authentication/tokens):
|
|
@@ -36,9 +36,7 @@ export interface Config {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export class Credentials
|
|
39
|
-
extends /*@__PURE__*/ Context.Service<Credentials, Effect.Effect<Config
|
|
40
|
-
"SlackCredentials",
|
|
41
|
-
) {}
|
|
39
|
+
extends /*@__PURE__*/ Context.Service<Credentials, Effect.Effect<Config>>()("SlackCredentials") {}
|
|
42
40
|
|
|
43
41
|
const envConfig = /*@__PURE__*/ EffectConfig.all({
|
|
44
42
|
// SLACK_BOT_TOKEN is the spelling Bolt and most hosting platforms use;
|
|
@@ -51,19 +49,26 @@ const envConfig = /*@__PURE__*/ EffectConfig.all({
|
|
|
51
49
|
),
|
|
52
50
|
});
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Its configuration is read and checked once, when the layer is built: a
|
|
54
|
+
* problem there fails the layer with `ConfigError`.
|
|
55
|
+
*/
|
|
56
|
+
export const CredentialsFromEnv = /*@__PURE__*/ Layer.effect(
|
|
55
57
|
Credentials,
|
|
56
|
-
/*@__PURE__*/
|
|
57
|
-
/*@__PURE__*/
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
/*@__PURE__*/ Effect.map(
|
|
59
|
+
/*@__PURE__*/ envConfig.pipe(
|
|
60
|
+
/*@__PURE__*/ Effect.mapError(
|
|
61
|
+
() =>
|
|
62
|
+
new ConfigError({
|
|
63
|
+
message: "SLACK_BOT_TOKEN (or SLACK_TOKEN) environment variable is required",
|
|
64
|
+
}),
|
|
65
|
+
),
|
|
66
|
+
/*@__PURE__*/ Effect.map(({ token, apiBaseUrl }) => ({
|
|
67
|
+
token: Redacted.make(token),
|
|
68
|
+
apiBaseUrl,
|
|
69
|
+
})),
|
|
62
70
|
),
|
|
63
|
-
|
|
64
|
-
token: Redacted.make(token),
|
|
65
|
-
apiBaseUrl,
|
|
66
|
-
})),
|
|
71
|
+
(config) => Effect.succeed(config),
|
|
67
72
|
),
|
|
68
73
|
);
|
|
69
74
|
|
package/src/errors.ts
CHANGED
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
import * as Category from "@distilled.cloud/core/category";
|
|
30
30
|
import { withCategory } from "@distilled.cloud/core/error-category";
|
|
31
31
|
import type { DefaultErrors as CoreDefaultErrors } from "@distilled.cloud/core/errors";
|
|
32
|
-
import { DurationSchema, RETRYABLE } from "@distilled.cloud/core/errors";
|
|
32
|
+
import { API_ERRORS, DurationSchema, RETRYABLE } from "@distilled.cloud/core/errors";
|
|
33
33
|
import * as Schema from "@distilled.cloud/core/schema-lite-typed";
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -89,3 +89,14 @@ export type ClientErrors = SlackError | SlackRateLimited | SlackHttpError | Slac
|
|
|
89
89
|
* plus the client-level envelope/decode errors.
|
|
90
90
|
*/
|
|
91
91
|
export type DefaultErrors = CoreDefaultErrors | ClientErrors;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The errors declared on the Slack service: any operation can return them,
|
|
95
|
+
* and every generated operation lists them as its `serviceErrors`. The
|
|
96
|
+
* envelope's errors ({@link SlackError} for a slug, {@link SlackRateLimited}
|
|
97
|
+
* for throttling), and each of core's status classes: for the
|
|
98
|
+
* infrastructure slugs (`Unauthorized`, `ServiceUnavailable`,
|
|
99
|
+
* `GatewayTimeout`) and for the status of a failure without an envelope.
|
|
100
|
+
*/
|
|
101
|
+
export const SlackServiceErrors = [...API_ERRORS, SlackError, SlackRateLimited] as const;
|
|
102
|
+
export type SlackServiceError = InstanceType<(typeof SlackServiceErrors)[number]>;
|
package/src/index.ts
CHANGED