@distilled.cloud/slack 1.0.0-rc.19 → 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.ts","
|
|
1
|
+
{"version":3,"file":"lists.d.ts","sources":["../../src/services/lists.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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AAM,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,EAAauB,CAAS,CAAC,EAAItB,EAASuB,EAAYC,CAAC,CAAC,EAIljB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMnC,EAAQC,EAAU,kBAAmB,oXAAqX,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,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,QAAQ,CAAC,MAAM,CAAC,CAAC;CACnD;AACD,MAAM,WAAW,+BAA+B;IAC9C,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,qIAAqI;IACrI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GAAG,CAAC,eAAe,CACvD,8BAA8B,EAC9B,+BAA+B,EAC/B,4BAA4B,EAC5B,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,+BAA+B,GAAG,YAAY,CAAC;AAC3D,m1BAAm1B;AACn1B,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,eAAe,CAC1D,iCAAiC,EACjC,kCAAkC,EAClC,+BAA+B,EAC/B,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,6gCAA6gC;AAC7gC,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,+7CAA+7C;AAC/7C,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,yyBAAyyB;AACzyB,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,ouSAAouS;AACpuS,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,CAUb,CAAC"}
|
package/lib/services/oauth.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,od as u,pd as d,protocol$SlackProtocol as f,retry$Retry as p,sd as m,td as h,traits$Http as g,traits$SensitiveValue 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:`Oauth`,propagate:`w3c`};const b=/*@__PURE__*/ l(t=>t===r?c(`BeginShortTokenRotation`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({client_id:$2,client_secret:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/oauth.v2.beginShortTokenRotation",code:200,contentType:"form-urlencoded"}));$4({ok:$6,new_token:$2.pipe($3({}))})`,[e,g,m,_,h,n,s,a,f,p,y]):i(b,t));const x=/*@__PURE__*/ l(t=>t===r?c(`CompleteShortTokenRotation`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({client_id:$2,client_secret:$2.pipe($3({})),new_token:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/oauth.v2.completeShortTokenRotation",code:200,contentType:"form-urlencoded"}));$4({ok:$6,token:$2.pipe($3({}))})`,[e,g,m,_,h,n,s,a,f,p,y]):i(x,t));const S=/*@__PURE__*/ l(l=>l===r?c(`OauthAccessResponse`,`{input:#1,output:#9,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"OauthAccess"};$7(>10)@"OauthAccessRequest";$7(>11)@"%AuthorizingUser";$9($2);$7(>12)@"%Scopes";$7(>13)@"%Bot";$7(>14)@"%User";$7(>15)@"%Team";$7(>16)@"%IncomingWebhook";$7(>17)@"%";$6({client_id:$3($2),client_secret:$3($2.pipe($4({}))),code:$3($2),redirect_uri:$3($2),single_channel:$3($5)}).pipe($1({method:"POST",uri:"/oauth.access",code:200,contentType:"form-urlencoded"}));$6({user_id:$3($2),app_home:$3($8($2))});$6({app_home:$3(#3),team:$3(#3),channel:$3(#3),group:$3(#3),mpim:$3(#3),im:$3(#3)});$6({bot_user_id:$3($2),bot_access_token:$3($2.pipe($4({}))),scope:$3($2)});$6({name:$3($2),id:$3($2),email:$3($2),image_24:$3($2),image_32:$3($2),image_48:$3($2),image_72:$3($2),image_192:$3($2),image_512:$3($2),scope:$3($2),access_token:$3($2.pipe($4({}))),token_type:$3($2)});$6({id:$3($2),name:$3($2),domain:$3($2),image_34:$3($2),image_44:$3($2),image_68:$3($2),image_88:$3($2),image_102:$3($2),image_132:$3($2),image_230:$3($2),image_default:$3($5),image_original:$3($2)});$6({channel:$3($2),channel_id:$3($2),configuration_url:$3($2),url:$3($2)});$6({ok:$5,token_type:$3($2),app_id:$3($2),app_user_id:$3($2),team_name:$3($2),team_id:$2,access_token:$2.pipe($4({})),authorizing_user:$3(#2),installer_user:$3(#2),scopes:$3(#4),scope:$3($2),user_id:$3($2),bot:$3(#5),refresh_token:$3($2.pipe($4({}))),expires_in:$3($10),user:$3(#6),team:$3(#7),enterprise_id:$3($8($2)),incoming_webhook:$3(#8),single_channel_id:$3($2)})`,[e,g,m,t,_,s,h,n,u,o,d,a,f,p,y]):i(S,l));const C=/*@__PURE__*/ l(o=>o===r?c(`V2AccessResponse`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"V2Access"};$3(>5)@"V2AccessRequest";$3(>6)@"%AuthedUser";$3(>7)@"%IncomingWebhook";$3(>8)@"%";~2:1.pipe($1({method:"POST",uri:"/oauth.v2.access",code:200,contentType:"form-urlencoded"}));$8({id:$4,access_token:$6($4.pipe($5({}))),token_type:$6($4),scope:$6($4),expires_in:$6($7),refresh_token:$6($4.pipe($5({})))});$8({channel:$4,channel_id:$4,configuration_url:$4,url:$4});$8({ok:$9,access_token:$6($4.pipe($5({}))),token_type:$6($4),scope:$6($4),bot_user_id:$6($4),user_id:$6($4),app_id:$4,is_enterprise_install:$6($9),expires_in:$6($7),refresh_token:$6($4.pipe($5({}))),team:$10(#2:0),enterprise:$10(#2:0),authed_user:$6(#2),incoming_webhook:$6(#3)})`,[e,g,__d0,n,m,_,t,d,h,s,u,a,f,p,y]):i(C,o));const w=/*@__PURE__*/ l(o=>o===r?c(`V2Exchange`,`{input:#1,output:#2,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({client_id:$2,client_secret:$2.pipe($3({}))}).pipe($1({method:"POST",uri:"/oauth.v2.exchange",code:200,contentType:"form-urlencoded"}));$4({ok:$6,app_id:$2,token_type:$2,scope:$2,bot_user_id:$7($2),user_id:$7($2),access_token:$2.pipe($3({})),expires_in:$8,refresh_token:$2.pipe($3({})),team:$7($10($9)),enterprise:$7($10($9))})`,[e,g,m,_,h,n,s,t,d,v,u,a,f,p,y]):i(w,o));const T=/*@__PURE__*/ l(o=>o===r?c(`V2UserAccess`,`{input:#1,output:#2,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$3(>3)@"%Request";$3(>4)@"%Response";~2:1.pipe($1({method:"POST",uri:"/oauth.v2.user.access",code:200,contentType:"form-urlencoded"}));$10({ok:$4,access_token:$6.pipe($5({})),token_type:$6,scope:$7($6),user_id:$6,app_id:$6,is_enterprise_install:$4,expires_in:$7($8),refresh_token:$7($6.pipe($5({}))),team:$9(#2:0),enterprise:$9(#2:0)})`,[e,g,__d0,n,s,_,m,t,d,u,h,a,f,p,y]):i(T,o));function __d0(){return[`$4(>2)@"V2AccessResponseTeam";$3({client_id:$2($1),client_secret:$2($1.pipe($5({}))),code:$2($1),code_verifier:$2($1),redirect_uri:$2($1),grant_type:$2($1),refresh_token:$2($1.pipe($5({}))),assertion:$2($1)});$3({id:$1,name:$2($1)})`,[e,m,t,h,n,_]]}export{b as beginShortTokenRotation,x as completeShortTokenRotation,S as oauthAccess,C as v2Access,w as v2Exchange,T as v2UserAccess};
|
|
2
2
|
//# sourceMappingURL=oauth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.js","names":["API.D","API.named","__L.at","T.Http","S.String","T.SensitiveValue","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","S.optional","S.NullOr","S.Array","S.Number","S.Unknown","
|
|
1
|
+
{"version":3,"file":"oauth.js","names":["API.D","API.named","__L.at","T.Http","S.String","T.SensitiveValue","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","S.optional","S.NullOr","S.Array","S.Number","S.Unknown","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","NullOr","Number","SlackProtocol","Retry","String","Struct","Http","SensitiveValue","Unknown","TELEMETRY","beginShortTokenRotation","i","completeShortTokenRotation","oauthAccess","v2Access","v2Exchange","v2UserAccess"],"sources":["../../src/services/oauth.ts"],"mappings":"mQAaA,MAAMmC,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,EAgSA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMrC,EAAQC,EAAU,0BAA2B,mUAAoU,CAACC,EAAQC,EAAQC,EAAUC,EAAkBC,EAAUC,EAAWC,EAAWa,EAAoBO,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS0B,EAAyBC,CAAC,CAAC,EAIhlB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMrC,EAAQC,EAAU,6BAA8B,4VAA6V,CAACC,EAAQC,EAAQC,EAAUC,EAAkBC,EAAUC,EAAWC,EAAWa,EAAoBO,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS4B,EAA4BD,CAAC,CAAC,EAI/mB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMrC,EAAQC,EAAU,sBAAuB,8+CAA++C,CAACC,EAAQC,EAAQC,EAAUO,EAAYN,EAAkBG,EAAWF,EAAUC,EAAWK,EAAUC,EAASC,EAAUO,EAAoBO,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS6B,EAAaF,CAAC,CAAC,EAIpxD,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMrC,EAAQC,EAAU,mBAAoB,2uBAA4uB,CAACC,EAAQC,EAAQ,KAAMI,EAAWH,EAAUC,EAAkBM,EAAYG,EAAUR,EAAUE,EAAWI,EAAUS,EAAoBO,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS8B,EAAUH,CAAC,CAAC,EAIxgC,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAMrC,EAAQC,EAAU,aAAc,idAAkd,CAACC,EAAQC,EAAQC,EAAUC,EAAkBC,EAAUC,EAAWC,EAAWG,EAAYG,EAAUC,EAAWH,EAAUS,EAAoBO,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS+B,EAAYJ,CAAC,CAAC,EAI/uB,MAAaK,EAKK,gBAAQ,GAAgBL,IAAMrC,EAAQC,EAAU,eAAgB,ibAAkb,CAACC,EAAQC,EAAQ,KAAMI,EAAWC,EAAWH,EAAkBD,EAAUO,EAAYG,EAAUF,EAAUN,EAAUe,EAAoBO,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAASgC,EAAcL,CAAC,CAAC,EAM9sB,SAAS,MAAY,CACnB,MAAO,CAAC,2OAA4O,CAACnC,EAAQE,EAAUO,EAAYL,EAAUC,EAAWF,CAAgB,CAAC,CAC3T"}
|
package/lib/services/openid.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface ConnectTokenResponse {
|
|
|
26
26
|
ok: boolean;
|
|
27
27
|
access_token: string | Redacted.Redacted<string>;
|
|
28
28
|
token_type: ConnectTokenResponseTokenType;
|
|
29
|
-
id_token?: string | undefined;
|
|
29
|
+
id_token?: string | Redacted.Redacted<string> | undefined;
|
|
30
30
|
state?: string | undefined;
|
|
31
31
|
/** Time until this credential expires, if it expires at all */
|
|
32
32
|
expires_in?: number | undefined;
|
|
@@ -71,7 +71,7 @@ export interface UserInfoResponse {
|
|
|
71
71
|
https___slack_com_team_image_default?: boolean | undefined;
|
|
72
72
|
}
|
|
73
73
|
export type ConnectTokenError = SlackOpError;
|
|
74
|
-
/** Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- The value passed for `client_secret` was invalid. - `bad_redirect_uri` -- The value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- An org-installed app cannot be installed on a workspace. - `invalid_client` -- Client authentication failed (unknown `client_id` or bad `client_secret`). - `invalid_client_id` -- The value passed for `client_id` was invalid. - `invalid_code` -- The value passed for `code` was invalid. - `invalid_grant` -- The authorization code is invalid, expired, revoked, or the PKCE `code_verifier` does not match. - `invalid_grant_type` -- The value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `invalid_request` -- The request is missing a required parameter or includes an invalid parameter value. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization URL. The flow must be initiated via /openid/connect/authorize . - `preview_feature_not_available` -- The API method is not yet available on the team. - `unsupported_grant_type` -- The `grant_type` is not supported by this endpoint. See https://docs.slack.dev/reference/methods/openid.connect.token */
|
|
74
|
+
/** Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack. Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- The value passed for `client_secret` was invalid. - `bad_redirect_uri` -- The value passed for `redirect_uri` did not match the `redirect_uri` in the original request. - `cannot_install_an_org_installed_app` -- An org-installed app cannot be installed on a workspace. - `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` -- Client authentication failed (unknown `client_id` or bad `client_secret`). - `invalid_client_id` -- The value passed for `client_id` was invalid. - `invalid_code` -- The value passed for `code` was invalid. - `invalid_grant` -- The authorization code is invalid, expired, revoked, or the PKCE `code_verifier` does not match. - `invalid_grant_type` -- The value passed for `grant_type` was invalid. - `invalid_refresh_token` -- The given refresh token is invalid. - `invalid_request` -- The request is missing a required parameter or includes an invalid parameter value. - `oauth_authorization_url_mismatch` -- The OAuth flow was initiated on an incorrect version of the authorization URL. The flow must be initiated via /openid/connect/authorize . - `preview_feature_not_available` -- The API method is not yet available on the team. - `unsupported_grant_type` -- The `grant_type` is not supported by this endpoint. See https://docs.slack.dev/reference/methods/openid.connect.token */
|
|
75
75
|
export declare const connectToken: API.OperationMethod<ConnectTokenRequest, ConnectTokenResponse, ConnectTokenError, SlackOpContext>;
|
|
76
76
|
export type UserInfoError = SlackOpError;
|
|
77
77
|
/** Get the identity of a user who has authorized Sign in with Slack. Required scopes -- user: `openid` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/openid.connect.userInfo */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openid.d.ts","
|
|
1
|
+
{"version":3,"file":"openid.d.ts","sources":["../../src/services/openid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,6DAA6D;AAC7D,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,GAAG,eAAe,CAAC;AAClF,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC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,CAAC;IACtD,gCAAgC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtD,oCAAoC,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5D;AACD,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,inDAAinD;AACjnD,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,eAAe,CAC5C,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,kMAAkM;AAClM,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAUb,CAAC"}
|
package/lib/services/openid.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,pd as l,protocol$SlackProtocol as u,retry$Retry as d,sd as f,td as p,traits$Body as m,traits$Http as h,traits$SensitiveValue 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:`Openid`,propagate:`w3c`};const v=/*@__PURE__*/ c(c=>c===r?s(`ConnectToken`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({client_id:$3($2),client_secret:$3($2.pipe($4({}))),code:$3($2),redirect_uri:$3($2),grant_type:$3($2),refresh_token:$3($2.pipe($4({}))),code_verifier:$3($2)}).pipe($1({method:"POST",uri:"/openid.connect.token",code:200,contentType:"form-urlencoded"}));$5({ok:$7,access_token:$2.pipe($4({})),token_type:$2,id_token:$3($2.pipe($4({}))),state:$3($2),expires_in:$3($8),refresh_token:$3($2.pipe($4({})))})`,[e,h,f,t,g,p,n,o,l,a,u,d,_]):i(v,c));const y=/*@__PURE__*/ c(c=>c===r?s(`UserInfo`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$3(>3)@"%Request";$3(>4)@"%Response";$2({}).pipe($1({method:"POST",uri:"/openid.connect.userInfo",code:200}));$2({ok:$4,sub:$5,https___slack_com_user_id:$5.pipe($6("https://slack.com/user_id")),https___slack_com_team_id:$7($5.pipe($6("https://slack.com/team_id"))),https___slack_com_enterprise_id:$7($5.pipe($6("https://slack.com/enterprise_id"))),email:$7($5),email_verified:$7($4),date_email_verified:$7($8),locale:$7($5),name:$7($5),given_name:$7($5),family_name:$7($5),picture:$7($5),https___slack_com_user_image_24:$7($5.pipe($6("https://slack.com/user_image_24"))),https___slack_com_user_image_32:$7($5.pipe($6("https://slack.com/user_image_32"))),https___slack_com_user_image_48:$7($5.pipe($6("https://slack.com/user_image_48"))),https___slack_com_user_image_72:$7($5.pipe($6("https://slack.com/user_image_72"))),https___slack_com_user_image_192:$7($5.pipe($6("https://slack.com/user_image_192"))),https___slack_com_user_image_512:$7($5.pipe($6("https://slack.com/user_image_512"))),https___slack_com_user_image_1024:$7($5.pipe($6("https://slack.com/user_image_1024"))),https___slack_com_team_name:$7($5.pipe($6("https://slack.com/team_name"))),https___slack_com_team_domain:$7($5.pipe($6("https://slack.com/team_domain"))),https___slack_com_enterprise_name:$7($5.pipe($6("https://slack.com/enterprise_name"))),https___slack_com_enterprise_domain:$7($5.pipe($6("https://slack.com/enterprise_domain"))),https___slack_com_team_image_34:$7($5.pipe($6("https://slack.com/team_image_34"))),https___slack_com_team_image_44:$7($5.pipe($6("https://slack.com/team_image_44"))),https___slack_com_team_image_68:$7($5.pipe($6("https://slack.com/team_image_68"))),https___slack_com_team_image_88:$7($5.pipe($6("https://slack.com/team_image_88"))),https___slack_com_team_image_102:$7($5.pipe($6("https://slack.com/team_image_102"))),https___slack_com_team_image_132:$7($5.pipe($6("https://slack.com/team_image_132"))),https___slack_com_team_image_230:$7($5.pipe($6("https://slack.com/team_image_230"))),https___slack_com_team_image_default:$7($4.pipe($6("https://slack.com/team_image_default")))})`,[e,h,p,n,o,f,m,t,l,a,u,d,_]):i(y,c));export{v as connectToken,y as userInfo};
|
|
2
2
|
//# sourceMappingURL=openid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openid.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","T.SensitiveValue","S.Struct","S.suspend","S.Boolean","S.Number","Retry.Retry","API.call","T.Body","
|
|
1
|
+
{"version":3,"file":"openid.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","T.SensitiveValue","S.Struct","S.suspend","S.Boolean","S.Number","Retry.Retry","API.call","T.Body","at","optional","suspend","D","call","SlackServiceErrors","Boolean","named","op","Number","SlackProtocol","Retry","String","Struct","Body","Http","SensitiveValue","TELEMETRY","connectToken","i","userInfo"],"sources":["../../src/services/openid.ts"],"mappings":"4PAaA,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,SACT,UAAW,KACb,EAuEA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMjC,EAAQC,EAAU,eAAgB,yhBAA0hB,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAkBC,EAAUC,EAAWC,EAAWC,EAAUS,EAAoBK,EAAeb,EAAaoB,CAAS,CAAC,EAAInB,EAASoB,EAAcC,CAAC,CAAC,EAItyB,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMjC,EAAQC,EAAU,WAAY,2oEAA4oE,CA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EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AACD,MAAM,WAAW,gBAAgB;IAC/B,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AACD,MAAM,WAAW,iBAAiB;IAChC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;CACb;AACD,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AACvC,oiCAAoiC;AACpiC,eAAO,MAAM,MAAM,EAAE,GAAG,CAAC,eAAe,CACtC,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,sXAAsX;AACtX,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,s9BAAs9B;AACt9B,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAUb,CAAC"}
|
package/lib/services/pins.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,pd as u,protocol$SlackProtocol 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:`Pins`,propagate:`w3c`};const y=/*@__PURE__*/ l(o=>o===r?[`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"AddPin"};$5(>2)@"AddPinRequest";$4({channel:$2,timestamp:$3($2)}).pipe($1({method:"POST",uri:"/pins.add",code:200}))`,[e,h,p,t,m,n,__d0,a,d,f,v]]:i(y,o));const b=/*@__PURE__*/ l(l=>l===r?c(`ListPins`,`{input:#1,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>5)@"%Request";$5(>6)@"%ResponseItemsItem";$9(#2);$5(>7)@"%Response";$4({channel:$3.pipe($2())}).pipe($1({method:"GET",uri:"/pins.list",code:200}));$4({type:$3,created:$6,created_by:$3,channel:$7($3),message:$7($8),file:$7($8),comment:$7($3)});$4({ok:$10,items:$7(#3),count:$7($6)})`,[e,h,g,p,m,n,u,t,_,o,s,a,d,f,v]):i(b,l));const x=/*@__PURE__*/ l(o=>o===r?c(`RemovePin`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({channel:$2,timestamp:$3($2)}).pipe($1({method:"POST",uri:"/pins.remove",code:200}))`,[e,h,p,t,m,n,__d0,a,d,f,v]):i(x,o));function __d0(){return[`$3(>1)@"AddPinResponse";$2({ok:$1})`,[e,s,m,n]]}export{y as addPin,b as listPins,x as removePin};
|
|
2
2
|
//# sourceMappingURL=pins.js.map
|
package/lib/services/pins.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pins.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","API.named","T.Query","S.Number","S.Unknown","S.Array","S.Boolean","
|
|
1
|
+
{"version":3,"file":"pins.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","API.named","T.Query","S.Number","S.Unknown","S.Array","S.Boolean","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","Number","SlackProtocol","Retry","String","Struct","Http","Query","Unknown","TELEMETRY","addPin","i","listPins","removePin"],"sources":["../../src/services/pins.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,OACT,UAAW,KACb,EA6CA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMnC,EAAQ,CAAC,iNAAkN,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAW,KAAMc,EAAoBM,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS0B,EAAQC,CAAC,CAAC,EAI9Z,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMnC,EAAQS,EAAU,WAAY,+XAAgY,CAACR,EAAQC,EAAQQ,EAASP,EAAUE,EAAUC,EAAWK,EAAUP,EAAYQ,EAAWC,EAASC,EAAWM,EAAoBM,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS4B,EAAUD,CAAC,CAAC,EAI/oB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMnC,EAAQS,EAAU,YAAa,0MAA2M,CAACR,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAW,KAAMc,EAAoBM,EAAenB,EAAa0B,CAAS,CAAC,EAAIzB,EAAS6B,EAAWF,CAAC,CAAC,EAMhb,SAAS,MAAY,CACnB,MAAO,CAAC,sCAAuC,CAAClC,EAAQa,EAAWT,EAAUC,CAAS,CAAC,CACzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactions.d.ts","
|
|
1
|
+
{"version":3,"file":"reactions.d.ts","sources":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,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,8yCAA8yC;AAC9yC,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,4sBAA4sB;AAC5sB,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,mYAAmY;AACnY,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,wBAAwB,CACtD,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,iCAAiC,CAoB3B,CAAC;AAET,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAC/C,ypCAAypC;AACzpC,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,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,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,yd as b}from"../_bundle/sdk.js";const x={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:`Reactions`,propagate:`w3c`};const S=/*@__PURE__*/ l(t=>t===r?c(`AddReaction`,`{input:#1,output:#5:0,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$4(>2)@"%Request";$3({channel:$2,name:$2,timestamp:$2}).pipe($1({method:"POST",uri:"/reactions.add",code:200}))`,[e,v,g,_,n,__d0,a,p,h,x]):i(S,t));const C=/*@__PURE__*/ l(o=>o===r?c(`GetReaction`,`{input:#1,output:#2,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>3)@"%Request";$7(>4)@"%Response";$6({channel:$4($3.pipe($2())),file:$4($3.pipe($2())),file_comment:$4($3.pipe($2())),full:$4($5.pipe($2())),timestamp:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/reactions.get",code:200}));$6({ok:$5,comment:$4($8),message:$4($8),type:$3,channel:$4($3),file:$4($8)})`,[e,v,y,g,t,s,_,n,b,a,p,h,x]):i(C,o));const w=/*@__PURE__*/ u(l=>l===r?c(`ListReactions`,`{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:"items",pageSize:"limit"},strategy:$16};$8(>6)@"%Request";$10($3,$9);$11(#2);$8(>7)@"%ResponseResponseMetadata";$8(>8)@"%Response";$7({user:$4($3.pipe($2())),full:$4($5.pipe($2())),count:$4($6.pipe($2())),page:$4($6.pipe($2())),cursor:$4($3.pipe($2())),limit:$4($6.pipe($2())),team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/reactions.list",code:200}));$7({next_cursor:$4($3)});$7({ok:$5,items:#3,paging:$4($9),response_metadata:$4(#4)})`,[e,v,y,g,t,s,f,_,n,b,m,o,a,p,h,x,d]):i(w,l));const T=/*@__PURE__*/ l(o=>o===r?c(`RemoveReaction`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({name:$2,file:$3($2),file_comment:$3($2),channel:$3($2),timestamp:$3($2)}).pipe($1({method:"POST",uri:"/reactions.remove",code:200}))`,[e,v,g,t,_,n,__d0,a,p,h,x]):i(T,o));function __d0(){return[`$3(>1)@"AddReactionResponse";$2({ok:$1})`,[e,s,_,n]]}export{S as addReaction,C as getReaction,w as listReactions,T as removeReaction};
|
|
2
2
|
//# sourceMappingURL=reactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactions.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.optional","S.Boolean","S.Unknown","S.Number","S.Record","S.Array","
|
|
1
|
+
{"version":3,"file":"reactions.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.optional","S.Boolean","S.Unknown","S.Number","S.Record","S.Array","at","optional","suspend","D","call","SlackServiceErrors","Array","Boolean","named","op","opPaginated","slackPaginate","Number","SlackProtocol","Record","Retry","String","Struct","Http","Query","Unknown","TELEMETRY","addReaction","i","getReaction","listReactions","removeReaction"],"sources":["../../src/services/reactions.ts"],"mappings":"+RAaA,MAAMqC,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,EAkFA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMvC,EAAQC,EAAU,cAAe,+MAAgN,CAACC,EAAQC,EAAQC,EAAUC,EAAUC,EAAW,KAAMe,EAAoBQ,EAAetB,EAAa8B,CAAS,CAAC,EAAI7B,EAAS8B,EAAaC,CAAC,CAAC,EAI7a,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMvC,EAAQC,EAAU,cAAe,kZAAmZ,CAACC,EAAQC,EAAQM,EAASL,EAAUM,EAAYC,EAAWN,EAAUC,EA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,gBAAgB,EAChB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC;AACjD,seAAse;AACte,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,eAAe,CAChD,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAC/C,kTAAkT;AAClT,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,eAAe,CAC9C,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,gSAAgS;AAChS,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,CAUb,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,8TAA8T;AAC9T,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,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,traits$Query 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:`Reminders`,propagate:`w3c`};const v=/*@__PURE__*/ l(o=>o===r?c(`AddReminder`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({text:$2,time:$2,user:$3($2),team_id:$3($2),recurrence:$3($4)}).pipe($1({method:"POST",uri:"/reminders.add",code:200}))`,[e,m,f,t,g,p,n,__d0,a,u,d,_]):i(v,o));const y=/*@__PURE__*/ l(o=>o===r?c(`CompleteReminder`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({reminder:$2,team_id:$3($2)}).pipe($1({method:"POST",uri:"/reminders.complete",code:200}))`,[e,m,f,t,p,n,__d1,a,u,d,_]):i(y,o));const b=/*@__PURE__*/ l(o=>o===r?c(`DeleteReminder`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({reminder:$2,team_id:$3($2)}).pipe($1({method:"POST",uri:"/reminders.delete",code:200}))`,[e,m,f,t,p,n,__d1,a,u,d,_]):i(b,o));const x=/*@__PURE__*/ l(l=>l===r?c(`ListReminders`,`{input:#1,output:#3,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$6(>4)@"%Request";$8($7);$6(>5)@"%Response";$5({team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/reminders.list",code:200}));$5({ok:$9,reminders:$4(#2)})`,[e,m,h,f,t,p,n,g,o,s,a,u,d,_]):i(x,l));const S=/*@__PURE__*/ l(o=>o===r?c(`RemindersInfo`,`{input:#1,output:#7:0,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$6(>2)@"%Request";$5({reminder:$3.pipe($2()),team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/reminders.info",code:200}))`,[e,m,h,f,t,p,n,__d0,a,u,d,_]):i(S,o));function __d0(){return[`$4(>1)@"AddReminderResponse";$3({ok:$1,reminder:$2})`,[e,s,g,p,n]]}function __d1(){return[`$3(>1)@"CompleteReminderResponse";$2({ok:$1})`,[e,s,p,n]]}export{v as addReminder,y as completeReminder,b as deleteReminder,x as listReminders,S as remindersInfo};
|
|
2
2
|
//# sourceMappingURL=reminders.js.map
|