@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.22
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 +268 -87
- 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 +54 -28
- 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 +69 -9
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +36 -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 +299 -7
- 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 +2 -2
- 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 +1527 -955
- package/src/services/agents.ts +110 -50
- package/src/services/api.ts +3 -2
- package/src/services/apps.ts +307 -136
- 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 +700 -74
- 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/files.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
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,od as d,pagination$slackPaginate as f,pd as p,protocol$SlackProtocol as m,qd as h,retry$Retry as g,sd as _,td as v,traits$Http as y,traits$Query as b,traits$UnionCases as x,yd as S}from"../_bundle/sdk.js";const C={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:`Files`,propagate:`w3c`};const w=/*@__PURE__*/ l(l=>l===r?c(`AddRemote`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$6(>5)@"%Request";$7($2);$6(>6)@"%ResponseFile";$6(>7)@"%Response";$5({external_id:$2,external_url:$2,filetype:$3($2),indexable_file_contents:$3($4),preview_image:$3($4),title:$2}).pipe($1({method:"POST",uri:"/files.remote.add",code:200,contentType:"form-urlencoded"}));$5({id:$3($2),created:$3($8),timestamp:$3($8),name:$3($2),title:$3($2),mimetype:$3($2),filetype:$3($2),pretty_type:$3($2),user:$3($2),editable:$3($9),size:$3($8),mode:$3($2),is_external:$3($9),external_type:$3($2),is_public:$3($9),public_url_shared:$3($9),display_as_bot:$3($9),username:$3($2),url_private:$3($2),permalink:$3($2),comments_count:$3($8),is_starred:$3($9),shares:$3(#10:0),channels:$3(#2),groups:$3(#2),ims:$3(#2),external_id:$3($2),external_url:$3($2),has_rich_preview:$3($9)});$5({ok:$9,file:#3})`,[e,y,_,t,S,v,n,o,p,s,__d0,a,m,g,C]):i(w,l));const T=/*@__PURE__*/ l(l=>l===r?c(`CompleteUploadExternal`,`{input:#4,output:#7,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$4(>8)@"%RequestFilesItem";$5(#1);$7.pipe($6([[],[]]));$4(>9)@"%Request";$4(>10)@"%ResponseFilesItem";$5(#5);$4(>11)@"%Response";$3({id:$1,title:$2($1),highlight_type:$2($1)});$3({files:#2,channel_id:$2($1),thread_ts:$2($1),channels:$2($1),initial_comment:$2($1),blocks:$2(#3),username:$2($9($1)),icon_url:$2($9($1)),icon_emoji:$2($9($1))}).pipe($8({method:"POST",uri:"/files.completeUploadExternal",code:200}));$3({id:$1,title:$2($7),created:$2($10),user:$2($1)});$3({ok:$11,files:#6})`,[e,_,t,v,n,o,x,S,y,d,p,s,a,m,g,C]):i(T,l));const E=/*@__PURE__*/ l(t=>t===r?c(`DeleteComment`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({file:$2,id:$2}).pipe($1({method:"POST",uri:"/files.comments.delete",code:200}))`,[e,y,_,v,n,__d4,a,m,g,C]):i(E,t));const D=/*@__PURE__*/ l(t=>t===r?c(`DeleteFile`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({file:$2}).pipe($1({method:"POST",uri:"/files.delete",code:200}))`,[e,y,_,v,n,__d4,a,m,g,C]):i(D,t));const O=/*@__PURE__*/ u(l=>l===r?c(`FilesInfo`,`{input:#1,output:#5,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"comments",pageSize:"limit"},strategy:$16};$7(>6)@"%Request";$7(>7)@"%ResponseFile";$7(>8)@"%ResponseCommentsItem";$9(#3);$7(>9)@"%Response";$6({count:$4($3.pipe($2())),cursor:$4($5.pipe($2())),file:$5.pipe($2()),limit:$4($3.pipe($2())),page:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/files.info",code:200}));$6({id:$5});$6({comment:$5,created:$3,id:$5,is_intro:$8,timestamp:$3,user:$5});$6({ok:$8,file:#2,comments:#4,content:$4($5),content_html:$4($10),content_highlight_html:$4($10),response_metadata:$4(#11:0)})`,[e,y,b,p,t,_,v,n,s,o,S,__d5,a,m,g,C,f]):i(O,l));const k=/*@__PURE__*/ l(o=>o===r?c(`GetUploadURLExternal`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({length:$2,filename:$3,snippet_type:$4($3),alt_txt:$4($3)}).pipe($1({method:"POST",uri:"/files.getUploadURLExternal",code:200,contentType:"form-urlencoded"}));$5({ok:$7,file_id:$3,upload_url:$3})`,[e,y,p,_,t,v,n,s,a,m,g,C]):i(k,o));const A=/*@__PURE__*/ l(l=>l===r?c(`ListFiles`,`{input:#3,output:#6,errors:[],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$2.pipe($1([[],[]]));$2.pipe($1([[],[]]));$9(>7)@"%Request";$11(#10:0);$9(>8)@"%ResponsePaging";$9(>9)@"%Response";$8({channel:$6($5.pipe($4())),count:$6(#1.pipe($4())),page:$6(#2.pipe($4())),show_files_hidden_by_limit:$6($7.pipe($4())),team_id:$6($5.pipe($4())),ts_from:$6($5.pipe($4())),ts_to:$6($5.pipe($4())),types:$6($5.pipe($4())),user:$6($5.pipe($4()))}).pipe($3({method:"GET",uri:"/files.list",code:200}));$8({count:$6($12),total:$12,page:$12,pages:$12});$8({ok:$7,files:#4,paging:$6(#5)})`,[e,x,S,y,b,_,t,s,v,n,__d6,o,p,a,m,g,C]):i(A,l));const j=/*@__PURE__*/ u(l=>l===r?c(`ListRemote`,`{input:#1,output:#3,errors:[],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"files",pageSize:"limit"},strategy:$16};$7(>4)@"%Request";$9(#8:0);$7(>5)@"%Response";$6({channel:$4($3.pipe($2())),cursor:$4($3.pipe($2())),limit:$4($5.pipe($2())),ts_from:$4($3.pipe($2())),ts_to:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/files.remote.list",code:200}));$6({ok:$10,files:#2,response_metadata:$4(#11:0)})`,[e,y,b,_,t,p,v,n,__d7,o,s,__d5,a,m,g,C,f]):i(j,l));const M=/*@__PURE__*/ l(o=>o===r?c(`RemoteInfo`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({external_id:$4($3.pipe($2())),file:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/files.remote.info",code:200}));$5({ok:$7,file:#8:0})`,[e,y,b,_,t,v,n,s,__d6,a,m,g,C]):i(M,o));const N=/*@__PURE__*/ l(o=>o===r?c(`RemoveRemote`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({external_id:$3($2),file:$3($2)}).pipe($1({method:"POST",uri:"/files.remote.remove",code:200,contentType:"form-urlencoded"}))`,[e,y,_,t,v,n,__d4,a,m,g,C]):i(N,o));const P=/*@__PURE__*/ l(t=>t===r?c(`RevokePublicURL`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({file:$2}).pipe($1({method:"POST",uri:"/files.revokePublicURL",code:200}))`,[e,y,_,v,n,__d2,a,m,g,C]):i(P,t));const F=/*@__PURE__*/ l(l=>l===r?c(`SharedPublicURL`,`{input:#2,output:#3,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$2(#1:0);$6(>4)@"%Request";$6(>5)@"%Response";$5({file:$4}).pipe($3({method:"POST",uri:"/files.sharedPublicURL",code:200}));$5({ok:$7,file:#8:0,comment:$9(#1),paging:$9(#1:0)})`,[e,__d0,o,y,_,v,n,s,__d1,t,a,m,g,C]):i(F,l));const I=/*@__PURE__*/ l(o=>o===r?c(`ShareRemote`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({channels:$3.pipe($2()),external_id:$4($3.pipe($2())),file:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/files.remote.share",code:200}))`,[e,y,b,_,t,v,n,__d3,a,m,g,C]):i(I,o));const L=/*@__PURE__*/ l(o=>o===r?c(`UpdateRemote`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({external_id:$3($2),external_url:$3($2),file:$3($2),filetype:$3($2),indexable_file_contents:$3($4),preview_image:$3($4),title:$3($2)}).pipe($1({method:"POST",uri:"/files.remote.update",code:200,contentType:"form-urlencoded"}))`,[e,y,_,t,S,v,n,__d3,a,m,g,C]):i(L,o));const R=/*@__PURE__*/ l(o=>o===r?c(`UploadFile`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({channels:$3($2),content:$3($2),file:$3($4),filename:$3($2),filetype:$3($2),initial_comment:$3($2),thread_ts:$3($2),title:$3($2)}).pipe($1({method:"POST",uri:"/files.upload",code:200,contentType:"form-urlencoded"}))`,[e,y,_,t,S,v,n,__d2,a,m,g,C]):i(R,o));function __d0(){return[`$3($1,$2)`,[e,_,S,h]]}function __d1(){return[`$5(>1)@"RevokePublicURLResponseFile";$4({id:$2($1),created:$2($3),user:$2($1)})`,[e,_,t,p,v,n]]}function __d2(){return[`$4(>1)@"RevokePublicURLResponse";$3({ok:$1,file:#2:0})`,[e,s,__d1,v,n]]}function __d3(){return[`$5(>1)@"ShareRemoteResponse";$4({ok:$1,file:$3(#2:0)})`,[e,s,__d7,t,v,n]]}function __d4(){return[`$3(>1)@"DeleteCommentResponse";$2({ok:$1})`,[e,s,v,n]]}function __d5(){return[`$4(>1)@"FilesInfoResponseResponseMetadata";$3({next_cursor:$2($1)})`,[e,_,t,v,n]]}function __d6(){return[`$5(>1)@"ListFilesResponseFilesItem";$4({id:$1,created:$3($2),user:$3($1)})`,[e,_,p,t,v,n]]}function __d7(){return[`$4(>1)@"ListRemoteResponseFilesItem";$3({id:$2($1)})`,[e,_,t,v,n]]}export{w as addRemote,T as completeUploadExternal,E as deleteComment,D as deleteFile,O as filesInfo,k as getUploadURLExternal,A as listFiles,j as listRemote,M as remoteInfo,N as removeRemote,P as revokePublicURL,I as shareRemote,F as sharedPublicURL,L as updateRemote,R as uploadFile};
|
|
2
2
|
/*
|
|
3
|
-
|
|
4
|
-
e:0:
|
|
5
|
-
|
|
6
|
-
2
|
|
7
|
-
2
|
|
8
|
-
2
|
|
9
|
-
2
|
|
10
|
-
2
|
|
11
|
-
2
|
|
12
|
-
2
|
|
13
|
-
2
|
|
14
|
-
2
|
|
15
|
-
2
|
|
16
|
-
2
|
|
17
|
-
2
|
|
18
|
-
2
|
|
19
|
-
2
|
|
20
|
-
2
|
|
21
|
-
0
|
|
22
|
-
1
|
|
23
|
-
1
|
|
24
|
-
1
|
|
25
|
-
1
|
|
26
|
-
1
|
|
27
|
-
1
|
|
28
|
-
1
|
|
29
|
-
1
|
|
3
|
+
23 24
|
|
4
|
+
e:0:Ad t:0:Fd n:0:Gd r:0:a i:0:b a:0:errors$SlackServiceErrors o:0:fd s:0:gd c:0:l l:0:n u:0:o d:0:od f:0:pagination$slackPaginate p:0:pd m:0:protocol$SlackProtocol h:0:qd g:0:retry$Retry _:0:sd v:0:td y:0:traits$Http b:0:traits$Query x:0:traits$UnionCases S:0:yd
|
|
5
|
+
000000001p0003u0005f0006x0008s000an000ci000ef000g3000hp000jc000l8000mv000oj000q5000qh000re000sf000tf000uh000ve000wd000xe000yd
|
|
6
|
+
2 iy 197 w|=AddRemote;jm 17z;0,j,h,1,m,i,2,6,d,7,13,5,e,g,12
|
|
7
|
+
2 19x 1sa T|=CompleteUploadExternal;1ay 1r3;0,h,1,i,2,6,l,m,j,b,d,7,5,e,g,12
|
|
8
|
+
2 1t0 204 E|=DeleteComment;1ts 1z6;0,j,h,i,2,17,5,e,g,12
|
|
9
|
+
2 20u 27g D|=DeleteFile;21j 26i;0,j,h,i,2,17,5,e,g,12
|
|
10
|
+
2 286 2tv O|=FilesInfo;28u 2sj;0,j,k,d,1,h,i,2,7,6,m,18,5,e,g,12,c
|
|
11
|
+
2 2ul 35n k|=GetUploadURLExternal;2vk 34o;0,j,d,h,1,i,2,7,5,e,g,12
|
|
12
|
+
2 36d 3ot A|=ListFiles;371 3nh;0,l,m,j,k,h,1,7,i,2,19,6,d,5,e,g,12
|
|
13
|
+
2 3pj 45y j|=ListRemote;3q8 44j;0,j,k,h,1,d,i,2,1a,6,7,18,5,e,g,12,c
|
|
14
|
+
2 46o 4fz M|=RemoteInfo;47d 4ev;0,j,k,h,1,i,2,7,19,5,e,g,12
|
|
15
|
+
2 4gp 4p4 N|=RemoveRemote;4hg 4o4;0,j,h,1,i,2,17,5,e,g,12
|
|
16
|
+
2 4pu 4wu P|=RevokePublicURL;4qo 4vw;0,j,h,i,2,15,5,e,g,12
|
|
17
|
+
2 4xk 576 F|=SharedPublicURL;4ye 55x;0,13,6,j,h,i,2,7,14,1,5,e,g,12
|
|
18
|
+
2 57w 5gq I|=ShareRemote;58m 5fo;0,j,k,h,1,i,2,16,5,e,g,12
|
|
19
|
+
2 5hg 5sr L|=UpdateRemote;5i7 5rp;0,j,h,1,m,i,2,16,5,e,g,12
|
|
20
|
+
2 5th 64f R|=UploadFile;5u6 63d;0,j,h,1,m,i,2,15,5,e,g,12
|
|
21
|
+
0 92 i9 C||
|
|
22
|
+
1 64h 65r __d0|=;655 65e;0,h,m,f
|
|
23
|
+
1 65r 693 __d1|=;66f 68m;0,h,1,d,i,2
|
|
24
|
+
1 693 6br __d2|=;69r 6b9;0,7,14,i,2
|
|
25
|
+
1 6br 6eh __d3|=;6cf 6dx;0,7,1a,1,i,2
|
|
26
|
+
1 6eh 6go __d4|=;6f5 6gb;0,7,i,2
|
|
27
|
+
1 6go 6jm __d5|=;6hc 6j7;0,h,1,i,2
|
|
28
|
+
1 6jm 6mt __d6|=;6ka 6mc;0,h,d,1,i,2
|
|
29
|
+
1 6mt 6pc __d7|=;6nh 6ox;0,h,1,i,2
|
|
30
30
|
*/
|
|
31
31
|
//# sourceMappingURL=files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Unknown","S.Struct","S.suspend","S.Array","S.Number","S.Boolean","Retry.Retry","API.call","T.UnionCases","S.NullOr","T.Query","S.Record","
|
|
1
|
+
{"version":3,"file":"files.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Unknown","S.Struct","S.suspend","S.Array","S.Number","S.Boolean","Retry.Retry","API.call","T.UnionCases","S.NullOr","T.Query","S.Record","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","opPaginated","NullOr","slackPaginate","Number","SlackProtocol","Record","Retry","String","Struct","Http","Query","UnionCases","Unknown","TELEMETRY","addRemote","i","completeUploadExternal","deleteComment","deleteFile","filesInfo","getUploadURLExternal","listFiles","listRemote","remoteInfo","removeRemote","revokePublicURL","sharedPublicURL","shareRemote","updateRemote","uploadFile"],"sources":["../../src/services/files.ts"],"mappings":"8TAaA,MAAMyC,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,EA0WA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAM3C,EAAQC,EAAU,YAAa,g3BAAi3B,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAWC,EAAUC,EAAWC,EAASC,EAAUC,EAAW,KAAMY,EAAoBS,EAAepB,EAAa6B,CAAS,CAAC,EAAI5B,EAAS6B,EAAWC,CAAC,CAAC,EAI/nC,MAAaC,EAKK,gBAAQ,GAAgBD,IAAM3C,EAAQC,EAAU,yBAA0B,wkBAAykB,CAACC,EAAQE,EAAUC,EAAYE,EAAUC,EAAWC,EAASK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,YAAY,CAAC;AAC7D,qsBAAqsB;AACrsB,eAAO,MAAM,4BAA4B,EAAE,GAAG,CAAC,eAAe,CAC5D,mCAAmC,EACnC,oCAAoC,EACpC,iCAAiC,EACjC,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,iCAAiC,GAAG,YAAY,CAAC;AAC7D,orBAAorB;AACprB,eAAO,MAAM,4BAA4B,EAAE,GAAG,CAAC,eAAe,CAC5D,mCAAmC,EACnC,oCAAoC,EACpC,iCAAiC,EACjC,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;AACnD,mwBAAmwB;AACnwB,eAAO,MAAM,kBAAkB,EAAE,GAAG,CAAC,eAAe,CAClD,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,mCAAmC,GAAG,YAAY,CAAC;AAC/D,kvBAAkvB;AAClvB,eAAO,MAAM,8BAA8B,EAAE,GAAG,CAAC,eAAe,CAC9D,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,gCAAgC,GAAG,YAAY,CAAC;AAC5D,gjCAAgjC;AAChjC,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,eAAe,CAC3D,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,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,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:`Functions`,propagate:`w3c`};const v=/*@__PURE__*/ l(o=>o===r?c(`AddDistributionsPermissions`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({function_id:$3($2),function_callback_id:$3($2),function_app_id:$3($2),user_ids:$3(#4:0)}).pipe($1({method:"POST",uri:"/functions.distributions.permissions.add",code:200}))`,[e,h,p,t,__d0,m,n,__d1,a,u,f,_]):i(v,o));const y=/*@__PURE__*/ l(t=>t===r?c(`CompleteError`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({function_execution_id:$2,error:$2}).pipe($1({method:"POST",uri:"/functions.completeError",code:200}))`,[e,h,p,m,n,__d2,a,u,f,_]):i(y,t));const b=/*@__PURE__*/ l(t=>t===r?c(`CompleteSuccess`,`{input:#2,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$3($1,$2);$6(>3)@"%Request";$5({function_execution_id:$1,outputs:#1}).pipe($4({method:"POST",uri:"/functions.completeSuccess",code:200}))`,[e,p,g,d,h,m,n,__d2,a,u,f,_]):i(b,t));const x=/*@__PURE__*/ l(o=>o===r?c(`ExportWorkflowsStepsResponse`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({workflow_id:$3($2),workflow:$3($2),workflow_app_id:$3($2),step_id:$2}).pipe($1({method:"POST",uri:"/functions.workflows.steps.responses.export",code:200}))`,[e,h,p,t,m,n,__d2,a,u,f,_]):i(x,o));const S=/*@__PURE__*/ l(o=>o===r?c(`ListDistributionsPermissions`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({function_id:$3($2),function_callback_id:$3($2),function_app_id:$3($2)}).pipe($1({method:"POST",uri:"/functions.distributions.permissions.list",code:200}))`,[e,h,p,t,m,n,__d3,a,u,f,_]):i(S,o));const C=/*@__PURE__*/ l(l=>l===r?c(`ListWorkflowsSteps`,`{input:#1,output:#3,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>4)@"%Request";$7($6);$5(>5)@"%Response";$4({workflow_id:$3($2),workflow:$3($2),workflow_app_id:$3($2),function_id:$2}).pipe($1({method:"POST",uri:"/functions.workflows.steps.list",code:200}));$4({ok:$8,steps_versions:#2})`,[e,h,p,t,m,n,g,o,s,a,u,f,_]):i(C,l));const w=/*@__PURE__*/ l(o=>o===r?c(`RemoveDistributionsPermissions`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({function_id:$3($2),function_callback_id:$3($2),function_app_id:$3($2),user_ids:$3(#4:0)}).pipe($1({method:"POST",uri:"/functions.distributions.permissions.remove",code:200}))`,[e,h,p,t,__d0,m,n,__d1,a,u,f,_]):i(w,o));const T=/*@__PURE__*/ l(o=>o===r?c(`SetDistributionsPermissions`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({function_id:$3($2),function_callback_id:$3($2),function_app_id:$3($2),permission_type:$3($2),user_ids:$3(#4:0),team_ids:$3(#4:0),org_ids:$3(#4:0)}).pipe($1({method:"POST",uri:"/functions.distributions.permissions.set",code:200}))`,[e,h,p,t,__d0,m,n,__d3,a,u,f,_]):i(T,o));function __d0(){return[`$2($1);$5(>3)@"AddDistributionsPermissionsResponseUsersItem";$2(#1);$4({user_id:$3($1),username:$3($1),email:$3($1)})`,[e,p,o,t,m,n]]}function __d1(){return[`$6(>1)@"AddDistributionsPermissionsResponse";$5({ok:$1,permission_type:$2,users:$4(#3:2)})`,[e,s,p,__d0,t,m,n]]}function __d2(){return[`$3(>1)@"CompleteErrorResponse";$2({ok:$1})`,[e,s,m,n]]}function __d3(){return[`$6(>1)@"ListDistributionsPermissionsResponse";$5({ok:$1,permission_type:$2,users:$4(#3:2),team_ids:$4(#3:0),org_ids:$4(#3:0)})`,[e,s,p,__d0,t,m,n]]}export{v as addDistributionsPermissions,y as completeError,b as completeSuccess,x as exportWorkflowsStepsResponse,S as listDistributionsPermissions,C as listWorkflowsSteps,w as removeDistributionsPermissions,T as setDistributionsPermissions};
|
|
2
2
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Unknown","S.Record","S.Array","S.Boolean","
|
|
1
|
+
{"version":3,"file":"functions.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","S.Unknown","S.Record","S.Array","S.Boolean","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","SlackProtocol","Record","Retry","String","Struct","Http","Unknown","TELEMETRY","addDistributionsPermissions","i","completeError","completeSuccess","exportWorkflowsStepsResponse","listDistributionsPermissions","listWorkflowsSteps","removeDistributionsPermissions","setDistributionsPermissions"],"sources":["../../src/services/functions.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,YACT,UAAW,KACb,EAmMA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMjC,EAAQC,EAAU,8BAA+B,mSAAoS,CAACC,EAAQC,EAAQC,EAAUC,EAAY,KAAMC,EAAUC,EAAW,KAAMY,EAAoBK,EAAehB,EAAauB,CAAS,CAAC,EAAItB,EAASuB,E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eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,weAAwe;AACxe,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,ugBAAugB;AACvgB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,wBAAwB,CAClD,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,OAAO,CAoBD,CAAC;AAET,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,8vBAA8vB;AAC9vB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,wtDAAwtD;AACxtD,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAChD,g3BAAg3B;AACh3B,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,eAAe,CAC/C,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,cAAc,CAUb,CAAC"}
|
package/lib/services/lists.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,retry$Retry as m,sd as h,td as g,traits$Http as _,yd as v}from"../_bundle/sdk.js";const y={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:`Lists`,propagate:`w3c`};const b=/*@__PURE__*/ l(o=>o===r?c(`CreateItem`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({list_id:$2,duplicated_item_id:$3($2),parent_item_id:$3($2),initial_fields:$3(#4:0)}).pipe($1({method:"POST",uri:"/slackLists.items.create",code:200}));$5({ok:$7,item:$8})`,[e,_,h,t,__d0,g,n,s,v,a,p,m,y]):i(b,o));const x=/*@__PURE__*/ l(o=>o===r?c(`CreateSlackList`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>3)@"%Request";$7(>4)@"%Response";$6({name:$2,description_blocks:$4(#3:0),schema:$4(#3:0),copy_from_list_id:$4($2),include_copied_list_records:$4($5),todo_mode:$4($5)}).pipe($1({method:"POST",uri:"/slackLists.create",code:200}));$6({ok:$5,list_id:$2,list_metadata:$4($8)})`,[e,_,h,__d0,t,s,g,n,v,a,p,m,y]):i(x,o));const S=/*@__PURE__*/ l(o=>o===r?c(`DeleteAccess`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({list_id:$2,channel_ids:$4(#3:0),user_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/slackLists.access.delete",code:200}))`,[e,_,h,__d1,t,g,n,__d2,a,p,m,y]):i(S,o));const C=/*@__PURE__*/ l(t=>t===r?c(`DeleteItem`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({list_id:$2,id:$2}).pipe($1({method:"POST",uri:"/slackLists.items.delete",code:200}))`,[e,_,h,g,n,__d3,a,p,m,y]):i(C,t));const w=/*@__PURE__*/ l(t=>t===r?c(`DeleteMultiple`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({list_id:$2,ids:#3:0}).pipe($1({method:"POST",uri:"/slackLists.items.deleteMultiple",code:200}))`,[e,_,h,__d1,g,n,__d3,a,p,m,y]):i(w,t));const T=/*@__PURE__*/ l(o=>o===r?c(`DownloadGet`,`{input:#1,output:#2,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({list_id:$2,job_id:$2,format:$3($2),include_threads:$3($4),include_attachments:$3($4),include_archived:$3($4)}).pipe($1({method:"POST",uri:"/slackLists.download.get",code:200}));$5({ok:$4,status:$7,download_url:$3($2)})`,[e,_,h,t,s,g,n,v,a,p,m,y]):i(T,o));const E=/*@__PURE__*/ l(o=>o===r?c(`DownloadStart`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({list_id:$2,include_archived:$4($3),format:$4($2),include_threads:$4($3),include_attachments:$4($3)}).pipe($1({method:"POST",uri:"/slackLists.download.start",code:200}));$5({ok:$3,job_id:$2})`,[e,_,h,s,t,g,n,a,p,m,y]):i(E,o));const D=/*@__PURE__*/ l(o=>o===r?c(`ItemsInfo`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({list_id:$2,id:$2,include_is_subscribed:$4($3)}).pipe($1({method:"POST",uri:"/slackLists.items.info",code:200}));$5({ok:$3,list:$7,record:$7,parent_task:$4($7),subtasks:$4(#8:0)})`,[e,_,h,s,t,g,n,v,__d0,a,p,m,y]):i(D,o));const O=/*@__PURE__*/ u(o=>o===r?c(`ListItems`,`{input:#1,output:#3,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"items",pageSize:"limit"},strategy:$14};$7(>4)@"%Request";$7(>5)@"%ResponseResponseMetadata";$7(>6)@"%Response";$6({list_id:$2,limit:$4($3),cursor:$4($2),archived:$4($5),include_list:$4($5)}).pipe($1({method:"POST",uri:"/slackLists.items.list",code:200}));$6({next_cursor:$4($2)});$6({ok:$5,items:#8:0,response_metadata:$4(#2),list:$4($9)})`,[e,_,h,f,t,s,g,n,__d0,v,a,p,m,y,d]):i(O,o));const k=/*@__PURE__*/ l(o=>o===r?c(`SetAccess`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({list_id:$2,access_level:$2,channel_ids:$4(#3:0),user_ids:$4(#3:0)}).pipe($1({method:"POST",uri:"/slackLists.access.set",code:200}))`,[e,_,h,__d1,t,g,n,__d2,a,p,m,y]):i(k,o));const A=/*@__PURE__*/ l(t=>t===r?c(`UpdateItem`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({list_id:$2,cells:#3:0}).pipe($1({method:"POST",uri:"/slackLists.items.update",code:200}))`,[e,_,h,__d0,g,n,__d3,a,p,m,y]):i(A,t));const j=/*@__PURE__*/ l(o=>o===r?c(`UpdateSlackList`,`{input:#1,output:#8:0,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({id:$2,name:$3($2),description_blocks:$3(#4:0),todo_mode:$3($5)}).pipe($1({method:"POST",uri:"/slackLists.update",code:200}))`,[e,_,h,t,__d0,s,g,n,__d3,a,p,m,y]):i(j,o));function __d0(){return[`$2($1)`,[e,v,o]]}function __d1(){return[`$2($1)`,[e,h,o]]}function __d2(){return[`$5(>1)@"DeleteAccessResponse";$4({ok:$1,failed_to_update_channel_ids:$3(#2:0),failed_to_update_user_ids:$3(#2:0)})`,[e,s,__d1,t,g,n]]}function __d3(){return[`$3(>1)@"DeleteItemResponse";$2({ok:$1})`,[e,s,g,n]]}export{b as createItem,x as createSlackList,S as deleteAccess,C as deleteItem,w as deleteMultiple,T as downloadGet,E as downloadStart,D as itemsInfo,O as listItems,k as setAccess,A as updateItem,j as updateSlackList};
|
|
2
2
|
//# sourceMappingURL=lists.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Boolean","S.Unknown","Retry.Retry","API.call","S.Number","S.Array","
|
|
1
|
+
{"version":3,"file":"lists.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Boolean","S.Unknown","Retry.Retry","API.call","S.Number","S.Array","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","opPaginated","slackPaginate","Number","SlackProtocol","Retry","String","Struct","Http","Unknown","TELEMETRY","createItem","i","createSlackList","deleteAccess","deleteItem","deleteMultiple","downloadGet","downloadStart","itemsInfo","listItems","setAccess","updateItem","updateSlackList"],"sources":["../../src/services/lists.ts"],"mappings":"qQAaA,MAAMiC,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,EAoOA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMnC,EAAQC,EAAU,aAAc,oTAAqT,CAACC,EAAQC,EAAQC,EAAUC,EAAY,KAAMC,EAAUC,EAAWC,EAAWC,EAAWU,EAAoBQ,EAAejB,EAA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,CAAC;AAClD,+iBAA+iB;AAC/iB,eAAO,MAAM,iBAAiB,EAAE,GAAG,CAAC,eAAe,CACjD,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,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,qd as d,retry$Retry as f,sd as p,td as m,traits$Http as h,traits$Query as g,yd as _}from"../_bundle/sdk.js";const v={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:`Migration`,propagate:`w3c`};const y=/*@__PURE__*/ l(l=>l===r?c(`MigrationExchange`,`{input:#2,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$2($1);$8(>5)@"%Request";$10($1,$9);$8(>6)@"%Response";$7({users:#1.pipe($4()),team_id:$5($1.pipe($4())),to_old:$5($6.pipe($4()))}).pipe($3({method:"GET",uri:"/migration.exchange",code:200}));$7({ok:$6,team_id:$1,enterprise_id:$1,user_id_map:#3,invalid_user_ids:$5(#1)})`,[e,p,o,h,g,t,s,m,n,_,d,a,u,f,v]):i(y,l));export{y as migrationExchange};
|
|
2
2
|
//# sourceMappingURL=migration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.js","names":["API.D","API.named","__L.at","S.String","S.Array","T.Http","T.Query","S.optional","S.Boolean","S.Struct","S.suspend","S.Unknown","S.Record","Retry.Retry","API.call","
|
|
1
|
+
{"version":3,"file":"migration.js","names":["API.D","API.named","__L.at","S.String","S.Array","T.Http","T.Query","S.optional","S.Boolean","S.Struct","S.suspend","S.Unknown","S.Record","Retry.Retry","API.call","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","SlackProtocol","Record","Retry","String","Struct","Http","Query","Unknown","TELEMETRY","migrationExchange","i"],"sources":["../../src/services/migration.ts"],"mappings":"kPAYA,MAAMiC,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,EAuBA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMnC,EAAQC,EAAU,oBAAqB,gXAAiX,CAACC,EAAQC,EAAUC,EAASC,EAAQC,EAASC,EAAYC,EAAWC,EAAUC,EAAWC,EAAWC,EAAUQ,EAAoBK,EAAeZ,EAAaoB,CAAS,CAAC,EAAInB,EAASoB,EAAmBC,CAAC,CAAC"}
|
package/lib/services/oauth.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface BeginShortTokenRotationResponse {
|
|
|
12
12
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
13
13
|
ok: boolean;
|
|
14
14
|
/** A new xoxp access token to replace the token with a shorter secret. Not yet active until completeShortTokenRotation is called. */
|
|
15
|
-
new_token: string
|
|
15
|
+
new_token: string | Redacted.Redacted<string>;
|
|
16
16
|
}
|
|
17
17
|
export interface CompleteShortTokenRotationRequest {
|
|
18
18
|
/** Issued when you created your application. Must be the app the token being rotated was issued to. */
|
|
@@ -20,13 +20,13 @@ export interface CompleteShortTokenRotationRequest {
|
|
|
20
20
|
/** Issued when you created your application. */
|
|
21
21
|
client_secret: string | Redacted.Redacted<string>;
|
|
22
22
|
/** The new xoxp token returned by oauth.v2.beginShortTokenRotation. */
|
|
23
|
-
new_token: string
|
|
23
|
+
new_token: string | Redacted.Redacted<string>;
|
|
24
24
|
}
|
|
25
25
|
export interface CompleteShortTokenRotationResponse {
|
|
26
26
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
27
27
|
ok: boolean;
|
|
28
28
|
/** The new xoxp access token, now active. The previous token is no longer valid. */
|
|
29
|
-
token: string
|
|
29
|
+
token: string | Redacted.Redacted<string>;
|
|
30
30
|
}
|
|
31
31
|
export interface OauthAccessRequest {
|
|
32
32
|
/** Issued when you created your application. If possible, avoid sending `client_id` and `client_secret` as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. */
|
|
@@ -61,7 +61,7 @@ export interface OauthAccessResponseScopes {
|
|
|
61
61
|
}
|
|
62
62
|
export interface OauthAccessResponseBot {
|
|
63
63
|
bot_user_id?: string | undefined;
|
|
64
|
-
bot_access_token?: string | undefined;
|
|
64
|
+
bot_access_token?: string | Redacted.Redacted<string> | undefined;
|
|
65
65
|
scope?: string | undefined;
|
|
66
66
|
}
|
|
67
67
|
export interface OauthAccessResponseUser {
|
|
@@ -296,12 +296,12 @@ export type OauthAccessError = SlackOpError;
|
|
|
296
296
|
/** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `bad_redirect_uri` -- Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `code_already_used` -- Value passed for `code` was already exchanged. - `internal_error` -- Something went wrong during app installation. - `invalid_client_id` -- Value passed for `client_id` was invalid. - `invalid_code` -- Value passed for `code` was invalid. - `invalid_token` -- Invalid refresh token. - `missing_resource` -- Missing permission resource. - `ratelimited` -- Too many requests made in succession. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/authorize. - `user_email_unverified` -- The users email is unverified See https://docs.slack.dev/reference/methods/oauth.access */
|
|
297
297
|
export declare const oauthAccess: API.OperationMethod<OauthAccessRequest, OauthAccessResponse, OauthAccessError, SlackOpContext>;
|
|
298
298
|
export type V2AccessError = SlackOpError;
|
|
299
|
-
/** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `bad_redirect_uri` -- Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` -- Value passed for `client_id` was invalid. - `invalid_code` -- Value passed for `code` was invalid. - `invalid_grant_type` -- Value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `no_scopes` -- Missing `scope` in the request. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize. - `preview_feature_not_available` -- Returned when the API method is not yet available on the team in context. - `user_email_unverified` -- The users email is unverified. - `pkce_not_allowed` -- The app is not allowed to use the PKCE flow. - `invalid_code_verifier` -- The code_verifier is invalid. See https://docs.slack.dev/reference/methods/oauth.v2.access */
|
|
299
|
+
/** Exchanges a temporary OAuth verifier code for an access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `bad_redirect_uri` -- Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- Returned when the the org-installed app cannot be installed on a workspace. - `workspace_denied_app` -- Returned when the org-installed app is denied for a workspace the install would add it to, by that workspace or by the org, so it can't be added there. - `invalid_client_id` -- Value passed for `client_id` was invalid. - `invalid_code` -- Value passed for `code` was invalid. - `invalid_grant_type` -- Value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `no_scopes` -- Missing `scope` in the request. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize. - `preview_feature_not_available` -- Returned when the API method is not yet available on the team in context. - `user_email_unverified` -- The users email is unverified. - `pkce_not_allowed` -- The app is not allowed to use the PKCE flow. - `invalid_code_verifier` -- The code_verifier is invalid. See https://docs.slack.dev/reference/methods/oauth.v2.access */
|
|
300
300
|
export declare const v2Access: API.OperationMethod<V2AccessRequest, V2AccessResponse, V2AccessError, SlackOpContext>;
|
|
301
301
|
export type V2ExchangeError = SlackOpError;
|
|
302
302
|
/** Exchanges a legacy access token for a new expiring access token and refresh token Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `authorization_not_found` -- The underlying authorization for this token was revoked or is invalid. - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `internal_error` -- A server-side error occurred. - `invalid_client_id` -- Value passed for `client_id` was invalid. - `invalid_token` -- The legacy token provided cannot be exchanged for a new pair of token credentials. - `token_already_exchanged` -- This token has already been exchanged for a pair of token credentials. - `token_rotation_not_enabled` -- The app does not have token rotation enabled. See https://docs.slack.dev/reference/methods/oauth.v2.exchange */
|
|
303
303
|
export declare const v2Exchange: API.OperationMethod<V2ExchangeRequest, V2ExchangeResponse, V2ExchangeError, SlackOpContext>;
|
|
304
304
|
export type V2UserAccessError = SlackOpError;
|
|
305
|
-
/** Exchanges a temporary OAuth verifier code for a user access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `bad_redirect_uri` -- Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- Returned when the the org-installed app cannot be installed on a workspace. - `invalid_client_id` -- Value passed for `client_id` was invalid, or the `client_id` in the assertion is not a string. - `invalid_code` -- Value passed for `code` was invalid. - `invalid_grant_type` -- Value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `invalid_resource` -- The `resource` in the assertion is malformed, or is not a resource tokens can be issued for. - `no_scopes` -- Missing `scope` in the request. - `no_user_scopes` -- Missing user `scope` in the auth request. - `not_implemented` -- Method not yet supported - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize . - `preview_feature_not_available` -- Returned when the API method is not yet available on the team in context. - `user_email_unverified` -- The users email is unverified - `app_not_admin_approved` -- The app has not been approved by an org admin, so no tokens can be issued for this user. Ask an org admin to approve the app before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `app_not_org_installed` -- The app is not installed at the organization level. Using the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant type requires org level app installs. - `client_id_mismatch` -- Value passed for `client_id` did not match the `client_id` in the assertion. - `ema_disabled` -- Enterprise-managed auth is disabled. - `ema_issuer_mismatch` -- The issuer in the assertion did not match the issuer configured for enterprise-managed auth. - `invalid_audience` -- The audience in the assertion is not one this token endpoint supports. - `missing_scope` -- Missing `scope` in the assertion. The identity assertion JWT must carry a space-delimited `scope` claim. - `no_app_scopes_requested` -- None of the scopes requested in the identity assertion are configured on the app. Request only scopes the app already declares. - `no_approved_scopes_requested` -- The app is approved by org admins, but none of the requested scopes are approved ones. Ask an org admin to approve the requested scopes. - `no_assertion` -- Missing `assertion` in the request. - `user_not_authenticated` -- The user has never authenticated via single sign-on. - `no_idp_config_for_entity_id` -- No Enterprise-Managed Authorization (cross-app access) configuration is bound to the identity provider's SAML EntityID carried in the assertion's `sub_id`. An org admin must configure External Identity / cross-app access for that identity provider before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `ema_tenant_mismatch` -- The `aud_tenant` in an assertion without a `sub_id` is missing, or is not the ID of the organization or workspace whose identity provider issued it. - `invalid_aud_tenant` -- The `aud_tenant` in the assertion is not a string. It must be the ID of the organization or workspace whose identity provider issued the assertion. - `invalid_email` -- The `email` in the assertion is not a string. - `invalid_issuer` -- The `iss` in the assertion is not a string. It must be the issuer URL of the identity provider that issued the assertion. - `invalid_jti` -- The `jti` in the assertion is not a string. It must be a unique identifier for the assertion. - `invalid_scope` -- The `scope` in the assertion is not a string. It must be a space-delimited list of scopes. - `invalid_sub` -- The `sub` in the assertion is not a string. - `invalid_sub_id_format` -- The `format` of the `sub_id` in the assertion is not a string. The only supported format is `saml-nameid`. - `missing_audience` -- Missing `aud` in the assertion. It must name this token endpoint as an audience. - `missing_client_id` -- Missing `client_id` in the assertion. It must match the `client_id` of the app requesting the token. See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
|
|
305
|
+
/** Exchanges a temporary OAuth verifier code for a user access token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `bad_redirect_uri` -- Value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- Returned when the the org-installed app cannot be installed on a workspace. - `workspace_denied_app` -- Returned when the org-installed app is denied for a workspace the install would add it to, by that workspace or by the org, so it can't be added there. - `invalid_client_id` -- Value passed for `client_id` was invalid, or the `client_id` in the assertion is not a string. - `invalid_code` -- Value passed for `code` was invalid. - `invalid_grant_type` -- Value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `invalid_resource` -- The `resource` in the assertion is malformed, or is not a resource tokens can be issued for. - `no_scopes` -- Missing `scope` in the request. - `no_user_scopes` -- Missing user `scope` in the auth request. - `not_implemented` -- Method not yet supported - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization url. The flow must be initiated via /oauth/v2/authorize . - `preview_feature_not_available` -- Returned when the API method is not yet available on the team in context. - `user_email_unverified` -- The users email is unverified - `app_not_admin_approved` -- The app has not been approved by an org admin, so no tokens can be issued for this user. Ask an org admin to approve the app before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `app_not_org_installed` -- The app is not installed at the organization level. Using the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant type requires org level app installs. - `client_id_mismatch` -- Value passed for `client_id` did not match the `client_id` in the assertion. - `ema_disabled` -- Enterprise-managed auth is disabled. - `ema_issuer_mismatch` -- The issuer in the assertion did not match the issuer configured for enterprise-managed auth. - `invalid_audience` -- The audience in the assertion is not one this token endpoint supports. - `missing_scope` -- Missing `scope` in the assertion. The identity assertion JWT must carry a space-delimited `scope` claim. - `missing_sub_id` -- Missing `sub_id` in the assertion. It must identify the user with a `sub_id` in the `saml-nameid` format, unless it carries an `aud_tenant` for an organization set up to accept assertions without one. - `no_app_scopes_requested` -- None of the scopes requested in the identity assertion are configured on the app. Request only scopes the app already declares. - `no_approved_scopes_requested` -- The app is approved by org admins, but none of the requested scopes are approved ones. Ask an org admin to approve the requested scopes. - `no_assertion` -- Missing `assertion` in the request. - `user_not_authenticated` -- The user has never authenticated via single sign-on. - `no_idp_config_for_entity_id` -- No Enterprise-Managed Authorization (cross-app access) configuration is bound to the identity provider's SAML EntityID carried in the assertion's `sub_id`. An org admin must configure External Identity / cross-app access for that identity provider before requesting a token with the `urn:ietf:params:oauth:grant-type:jwt-bearer` grant. - `ema_tenant_mismatch` -- The `aud_tenant` in an assertion without a `sub_id` is missing, or is not the ID of the organization or workspace whose identity provider issued it. - `invalid_aud_tenant` -- The `aud_tenant` in the assertion is not a string. It must be the ID of the organization or workspace whose identity provider issued the assertion. - `invalid_email` -- The `email` in the assertion is not a string. - `invalid_issuer` -- The `iss` in the assertion is not a string. It must be the issuer URL of the identity provider that issued the assertion. - `invalid_jti` -- The `jti` in the assertion is not a string. It must be a unique identifier for the assertion. - `invalid_scope` -- The `scope` in the assertion is not a string. It must be a space-delimited list of scopes. - `invalid_sub` -- The `sub` in the assertion is not a string. - `invalid_sub_id_format` -- The `format` of the `sub_id` in the assertion is not a string. The only supported format is `saml-nameid`. - `missing_audience` -- Missing `aud` in the assertion. It must name this token endpoint as an audience. - `missing_client_id` -- Missing `client_id` in the assertion. It must match the `client_id` of the app requesting the token. - `expired_token` -- The assertion has expired: its `exp` is in the past. Request a new assertion from the identity provider. - `idp_keys_unavailable` -- Slack could not fetch the OpenID Connect discovery document (`/.well-known/openid-configuration`) or the `jwks_uri` of the identity provider named by the `iss` in the assertion: the request failed or returned an HTTP error status. Retry, and if it keeps failing, check that both are served over HTTPS. - `invalid_exp` -- The `exp` in the assertion is not an integer. It must be the assertion's expiration time, in seconds since the epoch. - `invalid_header_encoding` -- The header of the assertion is not base64url-encoded JSON. - `invalid_jwks` -- The identity provider's `jwks_uri` did not return a JSON Web Key Set with a `keys` array. - `invalid_jwt_format` -- Value passed for `assertion` is not a JWT in compact serialization. It must have exactly three segments separated by `.`. - `invalid_openid_provider_metadata` -- The identity provider's OpenID Connect discovery document (`/.well-known/openid-configuration`) is not JSON with string `issuer` and `jwks_uri` fields. - `invalid_payload_encoding` -- The payload of the assertion is not base64url-encoded JSON. - `invalid_signature` -- The signature of the assertion does not verify against the identity provider's signing key named by its `kid`. - `invalid_sub_id` -- The `sub_id` in the assertion is not a JSON object. It must identify the user in the `saml-nameid` format. - `invalid_token` -- The assertion could not be verified. For example, its header has no `alg` or `kid`, its `alg` is not supported or doesn't match the signing key, or its `nbf`, `iat`, or `exp` is not a number. - `invalid_typ_header` -- The `typ` in the header of the assertion is not `oauth-id-jag+jwt`. - `invalid_code_verifier` -- The code_verifier is invalid. - `jwks_uri_not_https` -- The `jwks_uri` in the identity provider's OpenID Connect discovery document is not an `https` URL. - `jwt_already_used` -- The assertion has already been exchanged for a token. An assertion can be used only once: request a new one, with a new `jti`, from the identity provider. - `jwt_expired` -- The assertion was presented before and has since expired. Request a new assertion, with a new `jti`, from the identity provider. - `missing_email` -- Missing `email` in an assertion without a `sub_id`, or it is empty. It must be the email address of the user the token is for. - `missing_exp` -- Missing `exp` in the assertion. It must be the assertion's expiration time, in seconds since the epoch. - `missing_issuer` -- Missing `iss` in the assertion. It must be the issuer URL of the identity provider that issued the assertion. - `missing_jti` -- Missing `jti` in the assertion, or it is empty. It must be a unique identifier for the assertion. - `missing_sub` -- Missing `sub` in the assertion, or it is empty. - `missing_sub_id_format` -- Missing `format` in the `sub_id` of the assertion. The only supported format is `saml-nameid`. - `missing_sub_id_issuer` -- Missing `issuer` in the `sub_id` of the assertion, or it is not a string. It must be the SAML EntityID of the identity provider. - `missing_sub_id_nameid` -- Missing `nameid` in the `sub_id` of the assertion, or it is not a string. It must be the user's SAML NameID. - `missing_typ_header` -- Missing `typ` in the header of the assertion. It must be `oauth-id-jag+jwt`. - `openid_provider_issuer_mismatch` -- The `issuer` in the identity provider's OpenID Connect discovery document does not exactly match the `iss` in the assertion. - `pkce_not_allowed` -- The app is not allowed to use the PKCE flow. - `token_not_yet_valid` -- The assertion is not valid yet: its `nbf` or `iat` is in the future. Check the identity provider's clock. - `unknown_kid` -- The `kid` in the header of the assertion does not match any signing key published at the identity provider's `jwks_uri`. - `unknown_saml_issuer_for_team` -- The `issuer` in the `sub_id` of the assertion is not a SAML identity provider configured for the organization or workspace. - `unsupported_sub_id_format` -- The `format` of the `sub_id` in the assertion is not supported. The only supported format is `saml-nameid`. - `user_not_found` -- No active user in the organization or workspace matches the user the assertion identifies by its `sub_id` NameID or, without a `sub_id`, its `email`. External guests can't be identified this way. - `well_known_url_not_https` -- The `iss` in the assertion is not an `https` URL, so the identity provider's OpenID Connect discovery document can't be fetched. See https://docs.slack.dev/reference/methods/oauth.v2.user.access */
|
|
306
306
|
export declare const v2UserAccess: API.OperationMethod<V2UserAccessRequest, V2UserAccessResponse, V2UserAccessError, SlackOpContext>;
|
|
307
307
|
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sources":["../../src/services/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,MAAM,WAAW,8BAA8B;IAC7C,uGAAuG;IACvG,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,QA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