@distilled.cloud/slack 1.0.0-rc.17 → 1.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -139
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- 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 +2 -2
- 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 +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -33
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- 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 +27 -27
- 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 +3 -3
- 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 +19 -19
- 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 +23 -23
- 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 +10 -10
- 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 +18 -18
- 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 +103 -103
- 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 +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -38
- 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 +14 -14
- 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 +6 -6
- 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 +14 -14
- 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 +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +30 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- 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 +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- 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 +3 -3
- 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 +102 -102
- 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 +40 -40
- 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 +9 -9
- 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 +23 -23
- 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 +8 -8
- 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 +11 -11
- 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 +84 -80
- 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 +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- 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 +39 -37
- 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.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- 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 +37 -37
- 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 +9 -9
- 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 +16 -16
- 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 +3 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +8 -7
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -4
- package/src/protocol.ts +23 -21
- package/src/services/admin.ts +1882 -1034
- package/src/services/agents.ts +128 -103
- package/src/services/api.ts +17 -2
- package/src/services/apps.ts +133 -74
- package/src/services/assistant.ts +109 -54
- package/src/services/auth.ts +46 -27
- package/src/services/blocks.ts +18 -3
- package/src/services/bookmarks.ts +40 -19
- package/src/services/bots.ts +38 -23
- package/src/services/calls.ts +35 -10
- package/src/services/canvases.ts +77 -46
- package/src/services/chat.ts +142 -103
- package/src/services/conversations.ts +195 -115
- package/src/services/dialog.ts +15 -0
- package/src/services/dnd.ts +37 -14
- package/src/services/emoji.ts +21 -6
- package/src/services/entity.ts +33 -14
- package/src/services/files.ts +149 -106
- package/src/services/functions.ts +66 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +86 -46
- package/src/services/migration.ts +18 -3
- package/src/services/oauth.ts +127 -102
- package/src/services/openid.ts +57 -40
- package/src/services/pins.ts +28 -9
- package/src/services/reactions.ts +44 -23
- package/src/services/reminders.ts +31 -8
- package/src/services/rtm.ts +28 -11
- package/src/services/search.ts +142 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +35 -16
- package/src/services/team.ts +73 -37
- package/src/services/tooling.ts +15 -0
- package/src/services/usergroups.ts +57 -30
- package/src/services/users.ts +76 -37
- package/src/services/views.ts +30 -9
- package/src/services/workflows.ts +45 -16
package/lib/services/agents.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Lc as e,Mc as t,Uc as n,Xc as r,Yc as i,a,c as o,cd as s,ed as c,errors$SlackError as l,errors$SlackRateLimited as u,jd as d,k as f,kd as p,m,protocol$SlackProtocol as h,retry$Retry as g,traits$Http 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:`Agents`,propagate:`w3c`};const y=/*@__PURE__*/ m(e=>e===a?f(`ArchiveConversation`,`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({channel_id:$2,summary_message_ts:$3($2)}).pipe($1({method:"POST",uri:"/agents.conversations.archive",code:200}));$4({ok:$6})`,[c,_,r,d,i,p,t,l,u,h,g,v]):o(y,e));const b=/*@__PURE__*/ m(e=>e===a?f(`CreateConversation`,`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({team_id:$3($2),session_id:$3($2),name:$2,is_private:$3($4),origin_channel_id:$3($2),origin_message_ts:$3($2)}).pipe($1({method:"POST",uri:"/agents.conversations.create",code:200}))`,[c,_,r,d,t,i,p,__d0,l,u,h,g,v]):o(b,e));const x=/*@__PURE__*/ m(n=>n===a?f(`GetCanvas`,`{input:#1,output:#6,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>7)@"%Request";$6(>8)@"%ResponseCommentsItemRepliesItem";$7(#2);$6(>9)@"%ResponseCommentsItem";$7(#4);$6(>10)@"%Response";$5({channel:$2,canvas_id:$2,content_format:$3($2),include_resolved:$3($4)}).pipe($1({method:"POST",uri:"/agents.conversations.getCanvas",code:200}));$5({ts:$2,user_id:$2,text:$2});$5({id:$2,ts:$2,user_id:$2,text:$2,quoted_text:$2,is_resolved:$4,replies:#3,has_more_replies:$4});$5({ok:$4,canvas_id:$2,title:$2,content:$2,comments:#5,has_more_comments:$4})`,[c,_,r,d,t,i,p,e,l,u,h,g,v]):o(x,n));const S=/*@__PURE__*/ m(s=>s===a?f(`ListViews`,`{input:#1,output:#4,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$4(>5)@"%Request";$4(>6)@"%ResponseViewsItem";$6(#2);$4(>7)@"%Response";$3({channel_id:$2}).pipe($1({method:"POST",uri:"/agents.conversations.listViews",code:200}));$3({view_id:$2,view_key:$2,file_id:$2,label:$2,content_version:$5,date_added:$5});$3({ok:$7,views:#3})`,[c,_,r,i,p,n,e,t,l,u,h,g,v]):o(S,s));const C=/*@__PURE__*/ m(e=>e===a?f(`RemoveView`,`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({channel_id:$2,view_key:$3($2),view_id:$3($2)}).pipe($1({method:"POST",uri:"/agents.conversations.removeView",code:200}));$4({ok:$6,channel_id:$2,view_id:$2})`,[c,_,r,d,i,p,t,l,u,h,g,v]):o(C,e));const w=/*@__PURE__*/ m(e=>e===a?f(`RenameSession`,`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({channel_id:$3($2),title:$2,thread_ts:$3($2)}).pipe($1({method:"POST",uri:"/agents.sessions.rename",code:200}));$4({ok:$6,title:$2,channel_id:$3($2)})`,[c,_,r,d,i,p,t,l,u,h,g,v]):o(w,e));const T=/*@__PURE__*/ m(e=>e===a?f(`SetCanvasContent`,`{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$4(>3)@"%Request";$4(>4)@"%Response";$3({channel:$2,canvas_id:$2,content:$2}).pipe($1({method:"POST",uri:"/agents.conversations.setCanvasContent",code:200}));$3({ok:$5,canvas_id:$2,sections_changed_count:$6})`,[c,_,r,i,p,t,n,l,u,h,g,v]):o(T,e));const E=/*@__PURE__*/ m(e=>e===a?f(`SetCommands`,`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({channel_id:$2,commands:#3:0}).pipe($1({method:"POST",uri:"/agents.conversations.setCommands",code:200}));$4({ok:$6,channel_id:$2,command_count:$7})`,[c,_,r,__d1,i,p,t,n,l,u,h,g,v]):o(E,e));const D=/*@__PURE__*/ m(e=>e===a?f(`SetPropertiesRequest`,`{input:#4,output:#9:0,errors:[$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"SetProperties"};$4(>5)@"%CodeChannelSummaryMessage";$4(>6)@"%CodeChannel";$4(>7)@"%AgentResource";$4(>8)@"%";$3({message_ts:$1,thread_ts:$2($1)});$3({host:$2($1),repo:$2($1),branch:$2($1),base_branch:$2($1),commit_sha:$2($1),pr_number:$2($5),pr_url:$2($1),pr_title:$2($1),pr_status:$2($1),ci_url:$2($1),ci_state:$2($1),file_paths:$2(#6:0),language:$2($1),upstream_url:$2($1),branch_url:$2($1),context_bar_items:$2(#7:0),summary_message:$2(#1)});$3({url:$2($1),resource_type:$2($1),title:$2($1),provider:$2($1)});$3({channel_id:$1,title:$2($1),status:$2($1),code_channel:$2(#2),agent_resource:$2(#3)}).pipe($8({method:"POST",uri:"/agents.conversations.setProperties",code:200}))`,[c,r,d,i,p,n,__d2,__d1,_,__d0,l,u,h,g,v]):o(D,e));const O=/*@__PURE__*/ m(e=>e===a?f(`SetStatus`,`{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>3)@"%Request";$6(>4)@"%Response";$5({channel_id:$3($2),status:$4,thread_ts:$3($2),title:$3($2),initiator_user_id:$3($2),icon_emoji:$3($2),icon_url:$3($2),username:$3($2)}).pipe($1({method:"POST",uri:"/agents.sessions.setStatus",code:200}));$5({ok:$7,status:$4,agent_status:$4,title:$3($2)})`,[c,_,r,d,s,i,p,t,l,u,h,g,v]):o(O,e));const k=/*@__PURE__*/ m(e=>e===a?f(`SetView`,`{input:#2,output:#3,errors:[$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%"};$4(>4)@"%RequestCsp";$4(>5)@"%Request";$4(>6)@"%Response";$3({resource_domains:$2(#1:0)});$3({channel_id:$6,type:$2($7),view_key:$2($6),content:$2($6),blocks:$2($7),canvas_id:$2($6),access_level:$2($6),agent_content_hash:$2($6),base_branch:$2($6),head_branch:$2($6),name:$2($6),label:$2($6),csp:$2(#1)}).pipe($5({method:"POST",uri:"/agents.conversations.setView",code:200}));$3({ok:$8,channel_id:$6,view_id:$6,file_id:$6,content_version:$9,type:$2($7),canvas_id:$2($6)})`,[c,__d2,d,i,p,_,r,s,t,n,l,u,h,g,v]):o(k,e));function __d0(){return[`$4(>1)@"CreateConversationResponse";$3({ok:$1,channel_id:$2})`,[c,t,r,i,p]]}function __d1(){return[`$2($1)`,[c,s,e]]}function __d2(){return[`$2($1)`,[c,r,e]]}export{y as archiveConversation,b as createConversation,x as getCanvas,S as listViews,C as removeView,w as renameSession,T as setCanvasContent,E as setCommands,D as setProperties,O as setStatus,k as setView};
|
|
2
2
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","
|
|
1
|
+
{"version":3,"file":"agents.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Boolean","Retry.Retry","API.call","S.Array","S.Number","S.Unknown","Array","Boolean","Number","String","Struct","call","Unknown","at","SlackError","SlackRateLimited","optional","named","suspend","SlackProtocol","Retry","Http","TELEMETRY","archiveConversation","i","D","createConversation","getCanvas","listViews","removeView","renameSession","setCanvasContent","setCommands","setProperties","setStatus","setView"],"sources":["../../src/services/agents.ts"],"mappings":"2OAYA,MAAM8B,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,EAqVA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMhC,EAAQC,EAAU,sBAAuB,yPAA0P,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAAWc,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAASqB,EAAqBC,CAAC,CAAC,EAIlgB,MAAaE,EAKK,gBAAQ,GAAgBF,IAAMhC,EAAQC,EAAU,qBAAsB,iSAAkS,CAACC,EAAQC,EAAQC,EAAUC,EAAYG,EAAWF,EAAUC,EAAW,KAAMe,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAASwB,EAAoBF,CAAC,CAAC,EAI9iB,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMhC,EAAQC,EAAU,YAAa,qjBAAsjB,CAACC,EAAQC,EAAQC,EAAUC,EAAYG,EAAWF,EAAUC,EAAWI,EAASW,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAASyB,EAAWH,CAAC,CAAC,EAInzB,MAAaI,EAKK,gBAAQ,GAAgBJ,IAAMhC,EAAQC,EAAU,YAAa,gWAAiW,CAACC,EAAQC,EAAQC,EAAUE,EAAUC,EAAWK,EAAUD,EAASH,EAAWc,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAAS0B,EAAWJ,CAAC,CAAC,EAI5lB,MAAaK,EAKK,gBAAQ,GAAgBL,IAAMhC,EAAQC,EAAU,aAAc,0RAA2R,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAAWc,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAAS2B,EAAYL,CAAC,CAAC,EAIjhB,MAAaM,EAKK,gBAAQ,GAAgBN,IAAMhC,EAAQC,EAAU,gBAAiB,kRAAmR,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAAWc,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAAS4B,EAAeN,CAAC,CAAC,EAI/gB,MAAaO,EAKK,gBAAQ,GAAgBP,IAAMhC,EAAQC,EAAU,mBAAoB,oSAAqS,CAACC,EAAQC,EAAQC,EAAUE,EAAUC,EAAWC,EAAWI,EAAUU,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAAS6B,EAAkBP,CAAC,CAAC,EAIriB,MAAaQ,EAKK,gBAAQ,GAAgBR,IAAMhC,EAAQC,EAAU,cAAe,iRAAkR,CAACC,EAAQC,EAAQC,EAAU,KAAME,EAAUC,EAAWC,EAAWI,EAAUU,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAAS8B,EAAaR,CAAC,CAAC,EAI9gB,MAAaS,EAKK,gBAAQ,GAAgBT,IAAMhC,EAAQC,EAAU,uBAAwB,0vBAA2vB,CAACC,EAAQE,EAAUC,EAAYC,EAAUC,EAAWK,EAAU,KAAM,KAAMT,EAAQ,KAAMmB,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAAS+B,EAAeT,CAAC,CAAC,EAI/gC,MAAaU,EAKK,gBAAQ,GAAgBV,IAAMhC,EAAQC,EAAU,YAAa,2XAA4X,CAACC,EAAQC,EAAQC,EAAUC,EAAYQ,EAAWP,EAAUC,EAAWC,EAAWc,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAASgC,EAAWV,CAAC,CAAC,EAI3nB,MAAaW,EAKK,gBAAQ,GAAgBX,IAAMhC,EAAQC,EAAU,UAAW,6iBAA8iB,CAACC,EAAQ,KAAMG,EAAYC,EAAUC,EAAWJ,EAAQC,EAAUS,EAAWL,EAAWI,EAAUU,EAAYC,EAAkBI,EAAelB,EAAaqB,CAAS,CAAC,EAAIpB,EAASiC,EAASX,CAAC,CAAC,EAMzzB,SAAS,MAAY,CACnB,MAAO,CAAC,gEAAiE,CAAC9B,EAAQM,EAAWJ,EAAUE,EAAUC,CAAS,CAAC,CAC7H,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAACL,EAAQW,EAAWF,CAAO,CAAC,CAChD,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,SAAU,CAACT,EAAQE,EAAUO,CAAO,CAAC,CAC/C"}
|
package/lib/services/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
|
3
3
|
export type { SlackOpError, SlackOpContext };
|
|
4
4
|
export interface TestApiRequest {
|
|
5
5
|
/** Error response to return */
|
|
6
|
-
error?: string;
|
|
6
|
+
error?: string | undefined;
|
|
7
7
|
}
|
|
8
8
|
export type TestApiResponseArgsMap = {
|
|
9
9
|
[key: string]: unknown | undefined;
|
|
@@ -11,7 +11,7 @@ export type TestApiResponseArgsMap = {
|
|
|
11
11
|
export interface TestApiResponse {
|
|
12
12
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
13
13
|
ok: boolean;
|
|
14
|
-
args?: TestApiResponseArgsMap;
|
|
14
|
+
args?: TestApiResponseArgsMap | undefined;
|
|
15
15
|
}
|
|
16
16
|
export type TestApiError = SlackOpError;
|
|
17
17
|
/** Checks API calling code. Rate limit tier: 4 See https://docs.slack.dev/reference/methods/api.test */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAKjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,MAAM,WAAW,cAAc;IAC7B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AACD,MAAM,MAAM,sBAAsB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAAE,CAAC;AAC5E,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CAC3C;AACD,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC;AACxC,wGAAwG;AACxG,eAAO,MAAM,OAAO,EAAE,GAAG,CAAC,eAAe,CACvC,cAAc,EACd,eAAe,EACf,YAAY,EACZ,cAAc,CASb,CAAC"}
|
package/lib/services/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mc as e,Vc as t,Xc as n,Yc as r,a as i,c as a,cd as o,ed as s,errors$SlackError as c,errors$SlackRateLimited as l,jd as u,k as d,kd as f,m as p,protocol$SlackProtocol as m,retry$Retry as h,traits$Http 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:`Api`,propagate:`w3c`};const v=/*@__PURE__*/ p(p=>p===i?d(`TestApi`,`{input:#1,output:#3,errors:[$9,$10],protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>4)@"%Request";$7($2,$6);$5(>5)@"%Response";$4({error:$3($2)}).pipe($1({method:"POST",uri:"/api.test",code:200}));$4({ok:$8,args:$3(#2)})`,[s,g,n,u,r,f,o,t,e,c,l,m,h,_]):a(v,p));export{v as testApi};
|
|
2
2
|
//# sourceMappingURL=api.js.map
|
package/lib/services/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Unknown","S.Record","S.Boolean","Retry.Retry","API.call","
|
|
1
|
+
{"version":3,"file":"api.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","S.Unknown","S.Record","S.Boolean","Retry.Retry","API.call","Boolean","Record","String","Struct","D","call","Unknown","at","SlackError","SlackRateLimited","optional","named","suspend","op","SlackProtocol","Retry","Http","TELEMETRY","testApi","i"],"sources":["../../src/services/api.ts"],"mappings":"6OAYA,MAAM8B,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,MACT,UAAW,KACb,EAcA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMhC,EAAQC,EAAU,UAAW,kOAAmO,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAWC,EAAWC,EAAUC,EAAWW,EAAYC,EAAkBK,EAAehB,EAAamB,CAAS,CAAC,EAAIlB,EAASmB,EAASC,CAAC,CAAC"}
|
package/lib/services/apps.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface BulkDeleteRequest {
|
|
|
9
9
|
datastore: string;
|
|
10
10
|
/** IDs of items to be deleted */
|
|
11
11
|
ids: BulkDeleteRequestIdsList;
|
|
12
|
-
app_id?: string;
|
|
12
|
+
app_id?: string | undefined;
|
|
13
13
|
}
|
|
14
14
|
/** attribute names and values of the items that failed to be processed */
|
|
15
15
|
export type BulkDeleteResponseFailedItemsList = Array<string>;
|
|
@@ -17,7 +17,7 @@ export interface BulkDeleteResponse {
|
|
|
17
17
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
18
18
|
ok: boolean;
|
|
19
19
|
/** attribute names and values of the items that failed to be processed */
|
|
20
|
-
failed_items?: BulkDeleteResponseFailedItemsList;
|
|
20
|
+
failed_items?: BulkDeleteResponseFailedItemsList | undefined;
|
|
21
21
|
}
|
|
22
22
|
/** items' ids */
|
|
23
23
|
export type BulkGetRequestIdsList = Array<string>;
|
|
@@ -26,7 +26,7 @@ export interface BulkGetRequest {
|
|
|
26
26
|
datastore: string;
|
|
27
27
|
/** items' ids */
|
|
28
28
|
ids: BulkGetRequestIdsList;
|
|
29
|
-
app_id?: string;
|
|
29
|
+
app_id?: string | undefined;
|
|
30
30
|
}
|
|
31
31
|
export type BulkGetResponseItemsItemMap = {
|
|
32
32
|
[key: string]: unknown | undefined;
|
|
@@ -39,9 +39,9 @@ export interface BulkGetResponse {
|
|
|
39
39
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
40
40
|
ok: boolean;
|
|
41
41
|
/** array of attribute names and values of each item */
|
|
42
|
-
items?: BulkGetResponseItemsList;
|
|
42
|
+
items?: BulkGetResponseItemsList | undefined;
|
|
43
43
|
/** attribute names and values of the items that failed to be processed */
|
|
44
|
-
failed_items?: BulkGetResponseFailedItemsList;
|
|
44
|
+
failed_items?: BulkGetResponseFailedItemsList | undefined;
|
|
45
45
|
}
|
|
46
46
|
export type BulkPutRequestItemsItemMap = {
|
|
47
47
|
[key: string]: unknown | undefined;
|
|
@@ -53,7 +53,7 @@ export interface BulkPutRequest {
|
|
|
53
53
|
datastore: string;
|
|
54
54
|
/** attribute names and values of the items; limit of 25 */
|
|
55
55
|
items: BulkPutRequestItemsList;
|
|
56
|
-
app_id?: string;
|
|
56
|
+
app_id?: string | undefined;
|
|
57
57
|
}
|
|
58
58
|
export type BulkPutResponseFailedItemsItemMap = {
|
|
59
59
|
[key: string]: unknown | undefined;
|
|
@@ -64,9 +64,9 @@ export interface BulkPutResponse {
|
|
|
64
64
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
65
65
|
ok: boolean;
|
|
66
66
|
/** name of the datastore */
|
|
67
|
-
datastore?: string;
|
|
67
|
+
datastore?: string | undefined;
|
|
68
68
|
/** attribute names and values of the items that failed to be processed */
|
|
69
|
-
failed_items?: BulkPutResponseFailedItemsList;
|
|
69
|
+
failed_items?: BulkPutResponseFailedItemsList | undefined;
|
|
70
70
|
}
|
|
71
71
|
export interface ConnectionsOpenRequest {
|
|
72
72
|
}
|
|
@@ -80,25 +80,25 @@ export interface CreateManifestRequest {
|
|
|
80
80
|
/** A JSON app manifest encoded as a string. This manifest **must** use a valid [app manifest schema - read our guide to creating one](/app-manifests/configuring-apps-with-app-manifests#fields). */
|
|
81
81
|
manifest: string;
|
|
82
82
|
/** When called with an org token, which specific team to create app on */
|
|
83
|
-
team_id?: string;
|
|
83
|
+
team_id?: string | undefined;
|
|
84
84
|
}
|
|
85
85
|
export interface CreateManifestResponseCredentials {
|
|
86
|
-
client_id?: string;
|
|
87
|
-
client_secret?: string | Redacted.Redacted<string
|
|
88
|
-
verification_token?: string;
|
|
89
|
-
signing_secret?: string | Redacted.Redacted<string
|
|
86
|
+
client_id?: string | undefined;
|
|
87
|
+
client_secret?: string | Redacted.Redacted<string> | undefined;
|
|
88
|
+
verification_token?: string | undefined;
|
|
89
|
+
signing_secret?: string | Redacted.Redacted<string> | undefined;
|
|
90
90
|
}
|
|
91
91
|
export interface CreateManifestResponse {
|
|
92
92
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
93
93
|
ok: boolean;
|
|
94
94
|
app_id: string;
|
|
95
95
|
credentials: CreateManifestResponseCredentials;
|
|
96
|
-
oauth_authorize_url?: string;
|
|
96
|
+
oauth_authorize_url?: string | undefined;
|
|
97
97
|
/** The team ID where the app was created on */
|
|
98
|
-
team_id?: string;
|
|
98
|
+
team_id?: string | undefined;
|
|
99
99
|
/** The team domain where the app was created on */
|
|
100
|
-
team_domain?: string;
|
|
101
|
-
app_token?: string;
|
|
100
|
+
team_domain?: string | undefined;
|
|
101
|
+
app_token?: string | undefined;
|
|
102
102
|
}
|
|
103
103
|
/** A map of attributes referenced in expression */
|
|
104
104
|
export type DatastoreCountRequestExpressionAttributesMap = {
|
|
@@ -112,21 +112,21 @@ export interface DatastoreCountRequest {
|
|
|
112
112
|
/** Name of the datastore */
|
|
113
113
|
datastore: string;
|
|
114
114
|
/** A query filter expression */
|
|
115
|
-
expression?: string;
|
|
115
|
+
expression?: string | undefined;
|
|
116
116
|
/** A map of attributes referenced in expression */
|
|
117
|
-
expression_attributes?: DatastoreCountRequestExpressionAttributesMap;
|
|
117
|
+
expression_attributes?: DatastoreCountRequestExpressionAttributesMap | undefined;
|
|
118
118
|
/** A map of values referenced in expression */
|
|
119
|
-
expression_values?: DatastoreCountRequestExpressionValuesMap;
|
|
119
|
+
expression_values?: DatastoreCountRequestExpressionValuesMap | undefined;
|
|
120
120
|
/** Required if calling with user token */
|
|
121
|
-
app_id?: string;
|
|
121
|
+
app_id?: string | undefined;
|
|
122
122
|
}
|
|
123
123
|
export interface DatastoreCountResponse {
|
|
124
124
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
125
125
|
ok: boolean;
|
|
126
126
|
/** name of the datastore */
|
|
127
|
-
datastore?: string;
|
|
127
|
+
datastore?: string | undefined;
|
|
128
128
|
/** number of matching items */
|
|
129
|
-
count?: number;
|
|
129
|
+
count?: number | undefined;
|
|
130
130
|
}
|
|
131
131
|
/** A map of attributes referenced in expression */
|
|
132
132
|
export type DatastoreQueryRequestExpressionAttributesMap = {
|
|
@@ -140,17 +140,17 @@ export interface DatastoreQueryRequest {
|
|
|
140
140
|
/** Name of the datastore */
|
|
141
141
|
datastore: string;
|
|
142
142
|
/** A query filter expression */
|
|
143
|
-
expression?: string;
|
|
143
|
+
expression?: string | undefined;
|
|
144
144
|
/** A map of attributes referenced in expression */
|
|
145
|
-
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap;
|
|
145
|
+
expression_attributes?: DatastoreQueryRequestExpressionAttributesMap | undefined;
|
|
146
146
|
/** A map of values referenced in expression */
|
|
147
|
-
expression_values?: DatastoreQueryRequestExpressionValuesMap;
|
|
147
|
+
expression_values?: DatastoreQueryRequestExpressionValuesMap | undefined;
|
|
148
148
|
/** Required if calling with user token */
|
|
149
|
-
app_id?: string;
|
|
149
|
+
app_id?: string | undefined;
|
|
150
150
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
151
|
-
cursor?: string;
|
|
151
|
+
cursor?: string | undefined;
|
|
152
152
|
/** The maximum number of items to evaluate for a given request (not necessarily the number of matching items). If the given request dataset size exceeds 1 MB before reaching the limit, the returned item count will likely be less than the limit. In any case where there are more items available beyond an imposed limit, a `next_cursor` value will be provided for use in subsequent requests. */
|
|
153
|
-
limit?: number;
|
|
153
|
+
limit?: number | undefined;
|
|
154
154
|
}
|
|
155
155
|
export type DatastoreQueryResponseItemsItemMap = {
|
|
156
156
|
[key: string]: unknown | undefined;
|
|
@@ -160,25 +160,25 @@ export type DatastoreQueryResponseItemsList = Array<DatastoreQueryResponseItemsI
|
|
|
160
160
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
161
161
|
export interface DatastoreQueryResponseResponseMetadata {
|
|
162
162
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
163
|
-
next_cursor?: string;
|
|
163
|
+
next_cursor?: string | undefined;
|
|
164
164
|
}
|
|
165
165
|
export interface DatastoreQueryResponse {
|
|
166
166
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
167
167
|
ok: boolean;
|
|
168
168
|
/** name of the datastore */
|
|
169
|
-
datastore?: string;
|
|
169
|
+
datastore?: string | undefined;
|
|
170
170
|
/** attribute names and values of the items */
|
|
171
171
|
items: DatastoreQueryResponseItemsList;
|
|
172
172
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
173
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
173
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
174
174
|
}
|
|
175
175
|
export interface DeleteAuthExternalRequest {
|
|
176
176
|
/** The id of the app whose tokens you want to delete */
|
|
177
|
-
app_id?: string;
|
|
177
|
+
app_id?: string | undefined;
|
|
178
178
|
/** The provider key of the provider whose tokens you want to delete */
|
|
179
|
-
provider_key?: string;
|
|
179
|
+
provider_key?: string | undefined;
|
|
180
180
|
/** The id of the token that you want to delete */
|
|
181
|
-
external_token_id?: string;
|
|
181
|
+
external_token_id?: string | undefined;
|
|
182
182
|
}
|
|
183
183
|
export interface DeleteAuthExternalResponse {
|
|
184
184
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -189,7 +189,7 @@ export interface DeleteDatastoreRequest {
|
|
|
189
189
|
datastore: string;
|
|
190
190
|
/** item id */
|
|
191
191
|
id: string;
|
|
192
|
-
app_id?: string;
|
|
192
|
+
app_id?: string | undefined;
|
|
193
193
|
}
|
|
194
194
|
export interface DeleteDatastoreResponse {
|
|
195
195
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -216,7 +216,7 @@ export interface GetAuthExternalRequest {
|
|
|
216
216
|
/** The id of the token you want to get the token for */
|
|
217
217
|
external_token_id: string;
|
|
218
218
|
/** Always refresh existing token before returning even when the token has not expired */
|
|
219
|
-
force_refresh?: boolean;
|
|
219
|
+
force_refresh?: boolean | undefined;
|
|
220
220
|
}
|
|
221
221
|
export interface GetAuthExternalResponse {
|
|
222
222
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -229,7 +229,7 @@ export interface GetDatastoreRequest {
|
|
|
229
229
|
datastore: string;
|
|
230
230
|
/** item id */
|
|
231
231
|
id: string;
|
|
232
|
-
app_id?: string;
|
|
232
|
+
app_id?: string | undefined;
|
|
233
233
|
}
|
|
234
234
|
/** attribute names and values of the item */
|
|
235
235
|
export type GetDatastoreResponseItemMap = {
|
|
@@ -239,9 +239,9 @@ export interface GetDatastoreResponse {
|
|
|
239
239
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
240
240
|
ok: boolean;
|
|
241
241
|
/** name of the datastore */
|
|
242
|
-
datastore?: string;
|
|
242
|
+
datastore?: string | undefined;
|
|
243
243
|
/** attribute names and values of the item */
|
|
244
|
-
item?: GetDatastoreResponseItemMap;
|
|
244
|
+
item?: GetDatastoreResponseItemMap | undefined;
|
|
245
245
|
}
|
|
246
246
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
247
247
|
export type ListActivitiesRequestSortDirection = "asc" | "desc";
|
|
@@ -249,29 +249,29 @@ export interface ListActivitiesRequest {
|
|
|
249
249
|
/** The id of the app to get activities from. */
|
|
250
250
|
app_id: string;
|
|
251
251
|
/** The team who owns this log. */
|
|
252
|
-
team_id?: string;
|
|
252
|
+
team_id?: string | undefined;
|
|
253
253
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
254
|
-
cursor?: string;
|
|
254
|
+
cursor?: string | undefined;
|
|
255
255
|
/** The maximum number of items to return. */
|
|
256
|
-
limit?: number;
|
|
256
|
+
limit?: number | undefined;
|
|
257
257
|
/** The minimum log level of the log events to be returned. Defaults to 'info'. Acceptable values (in order of relative importance from smallest to largest) are ('trace', 'debug', 'info', 'warn', 'error', 'fatal'). */
|
|
258
|
-
min_log_level?: string;
|
|
258
|
+
min_log_level?: string | undefined;
|
|
259
259
|
/** The event type of log events to be returned. */
|
|
260
|
-
log_event_type?: string;
|
|
260
|
+
log_event_type?: string | undefined;
|
|
261
261
|
/** The source of log events to be returned. Acceptable values are ('slack', 'developer'). */
|
|
262
|
-
source?: string;
|
|
262
|
+
source?: string | undefined;
|
|
263
263
|
/** The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables'). */
|
|
264
|
-
component_type?: string;
|
|
264
|
+
component_type?: string | undefined;
|
|
265
265
|
/** The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for workflows */
|
|
266
|
-
component_id?: string;
|
|
266
|
+
component_id?: string | undefined;
|
|
267
267
|
/** The trace id of log events to be returned. */
|
|
268
|
-
trace_id?: string;
|
|
268
|
+
trace_id?: string | undefined;
|
|
269
269
|
/** The earliest timestamp of the log to retrieve (epoch microseconds). */
|
|
270
|
-
min_date_created?: number;
|
|
270
|
+
min_date_created?: number | undefined;
|
|
271
271
|
/** The latest timestamp of the log to retrieve (epoch microseconds). */
|
|
272
|
-
max_date_created?: number;
|
|
272
|
+
max_date_created?: number | undefined;
|
|
273
273
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
274
|
-
sort_direction?: ListActivitiesRequestSortDirection | (string & {});
|
|
274
|
+
sort_direction?: ListActivitiesRequestSortDirection | (string & {}) | undefined;
|
|
275
275
|
}
|
|
276
276
|
export type ListActivitiesResponseActivitiesList = Array<unknown>;
|
|
277
277
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -281,12 +281,12 @@ export interface ListActivitiesResponse {
|
|
|
281
281
|
ok: boolean;
|
|
282
282
|
activities: ListActivitiesResponseActivitiesList;
|
|
283
283
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
284
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
284
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
285
285
|
}
|
|
286
286
|
export interface ListEventAuthorizationsRequest {
|
|
287
287
|
event_context: string;
|
|
288
|
-
cursor?: string;
|
|
289
|
-
limit?: number;
|
|
288
|
+
cursor?: string | undefined;
|
|
289
|
+
limit?: number | undefined;
|
|
290
290
|
}
|
|
291
291
|
export interface ListEventAuthorizationsResponseAuthorizationsItem {
|
|
292
292
|
enterprise_id: string | null;
|
|
@@ -302,10 +302,10 @@ export interface ListEventAuthorizationsResponse {
|
|
|
302
302
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
303
303
|
ok: boolean;
|
|
304
304
|
/** The next cursor for use in [pagination](/apis/web-api/pagination). If present, pass this in subsequent calls to get additional results */
|
|
305
|
-
cursor_next?: string;
|
|
305
|
+
cursor_next?: string | undefined;
|
|
306
306
|
authorizations: ListEventAuthorizationsResponseAuthorizationsList;
|
|
307
307
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
308
|
-
response_metadata?: DatastoreQueryResponseResponseMetadata;
|
|
308
|
+
response_metadata?: DatastoreQueryResponseResponseMetadata | undefined;
|
|
309
309
|
}
|
|
310
310
|
/** attribute names and values of the item */
|
|
311
311
|
export type PutDatastoreRequestItemMap = {
|
|
@@ -316,7 +316,7 @@ export interface PutDatastoreRequest {
|
|
|
316
316
|
datastore: string;
|
|
317
317
|
/** attribute names and values of the item */
|
|
318
318
|
item: PutDatastoreRequestItemMap;
|
|
319
|
-
app_id?: string;
|
|
319
|
+
app_id?: string | undefined;
|
|
320
320
|
}
|
|
321
321
|
/** attribute names and values of the item */
|
|
322
322
|
export type PutDatastoreResponseItemMap = {
|
|
@@ -326,17 +326,17 @@ export interface PutDatastoreResponse {
|
|
|
326
326
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
327
327
|
ok: boolean;
|
|
328
328
|
/** name of the datastore */
|
|
329
|
-
datastore?: string;
|
|
329
|
+
datastore?: string | undefined;
|
|
330
330
|
/** attribute names and values of the item */
|
|
331
|
-
item?: PutDatastoreResponseItemMap;
|
|
331
|
+
item?: PutDatastoreResponseItemMap | undefined;
|
|
332
332
|
}
|
|
333
333
|
export interface SetIconRequest {
|
|
334
334
|
/** The ID of the app whose icon you want to set. */
|
|
335
335
|
app_id: string;
|
|
336
336
|
/** File contents via `multipart/form-data` */
|
|
337
|
-
file?: unknown;
|
|
337
|
+
file?: unknown | undefined;
|
|
338
338
|
/** URL of a publicly hosted image */
|
|
339
|
-
url?: string;
|
|
339
|
+
url?: string | undefined;
|
|
340
340
|
}
|
|
341
341
|
export interface SetIconResponse {
|
|
342
342
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -374,7 +374,7 @@ export interface UpdateDatastoreRequest {
|
|
|
374
374
|
datastore: string;
|
|
375
375
|
/** attribute names and values to be updated */
|
|
376
376
|
item: UpdateDatastoreRequestItemMap;
|
|
377
|
-
app_id?: string;
|
|
377
|
+
app_id?: string | undefined;
|
|
378
378
|
}
|
|
379
379
|
/** attribute names and values of the item, including those updated */
|
|
380
380
|
export type UpdateDatastoreResponseItemMap = {
|
|
@@ -384,9 +384,9 @@ export interface UpdateDatastoreResponse {
|
|
|
384
384
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
385
385
|
ok: boolean;
|
|
386
386
|
/** name of the datastore */
|
|
387
|
-
datastore?: string;
|
|
387
|
+
datastore?: string | undefined;
|
|
388
388
|
/** attribute names and values of the item, including those updated */
|
|
389
|
-
item?: UpdateDatastoreResponseItemMap;
|
|
389
|
+
item?: UpdateDatastoreResponseItemMap | undefined;
|
|
390
390
|
}
|
|
391
391
|
export interface UpdateManifestRequest {
|
|
392
392
|
/** A JSON app manifest encoded as a string. This manifest **must** use a valid [app manifest schema - read our guide to creating one](/app-manifests/configuring-apps-with-app-manifests#fields). As this method entirely _replaces_ any previous configuration, manifest must contain both unmodified and modified fields. */
|
|
@@ -398,7 +398,7 @@ export interface UpdateManifestResponse {
|
|
|
398
398
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
399
399
|
ok: boolean;
|
|
400
400
|
app_id: string;
|
|
401
|
-
permissions_updated?: boolean;
|
|
401
|
+
permissions_updated?: boolean | undefined;
|
|
402
402
|
}
|
|
403
403
|
/** The status that should be set for the user. */
|
|
404
404
|
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
@@ -416,13 +416,13 @@ export interface ValidateManifestRequest {
|
|
|
416
416
|
/** The manifest to be validated. Will be validated against the [app manifest schema - read our guide](/app-manifests/configuring-apps-with-app-manifests#fields). */
|
|
417
417
|
manifest: string;
|
|
418
418
|
/** The ID of the app whose configuration you want to validate. */
|
|
419
|
-
app_id?: string;
|
|
419
|
+
app_id?: string | undefined;
|
|
420
420
|
}
|
|
421
421
|
export type ValidateManifestResponseErrorsList = Array<string>;
|
|
422
422
|
export interface ValidateManifestResponseWarningsItem {
|
|
423
423
|
code: string;
|
|
424
424
|
message: string;
|
|
425
|
-
pointer?: string;
|
|
425
|
+
pointer?: string | undefined;
|
|
426
426
|
}
|
|
427
427
|
/** Non-blocking warnings from app manifest validation. */
|
|
428
428
|
export type ValidateManifestResponseWarningsList = Array<ValidateManifestResponseWarningsItem>;
|
|
@@ -431,7 +431,7 @@ export interface ValidateManifestResponse {
|
|
|
431
431
|
ok: boolean;
|
|
432
432
|
errors: ValidateManifestResponseErrorsList;
|
|
433
433
|
/** Non-blocking warnings from app manifest validation. */
|
|
434
|
-
warnings?: ValidateManifestResponseWarningsList;
|
|
434
|
+
warnings?: ValidateManifestResponseWarningsList | undefined;
|
|
435
435
|
}
|
|
436
436
|
export type BulkDeleteError = SlackOpError;
|
|
437
437
|
/** Delete items from a datastore in bulk Required scopes -- bot: `datastore:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `unknown_method` -- This method does not exist - `partial_failure` -- some items failed to be deleted - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.bulkDelete */
|
|
@@ -473,7 +473,7 @@ export type GetDatastoreError = SlackOpError;
|
|
|
473
473
|
/** Get an item from a datastore Required scopes -- bot: `datastore:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to get datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error. - `access_denied` -- Not authorized to access to the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore get not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.get */
|
|
474
474
|
export declare const getDatastore: API.OperationMethod<GetDatastoreRequest, GetDatastoreResponse, GetDatastoreError, SlackOpContext>;
|
|
475
475
|
export type ListActivitiesError = SlackOpError;
|
|
476
|
-
/** Get logs for a specified app Required scopes -- user: `hosting:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Something went wrong on our end, please try again. - `invalid_app_id` -- App ID provided is not valid. - `invalid_app` -- App ID provided is not valid for team and user. - `invalid_args` -- Required arguments either were not provided or contain invalid values. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `free_team_not_allowed` -- Feature is only available on a paid team. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.activities.list */
|
|
476
|
+
/** Get logs for a specified app Required scopes -- user: `hosting:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Something went wrong on our end, please try again. - `invalid_app_id` -- App ID provided is not valid. - `invalid_app` -- App ID provided is not valid for team and user. - `invalid_args` -- Required arguments either were not provided or contain invalid values. - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `free_team_not_allowed` -- Feature is only available on a paid team. - `restricted_plan_level` -- Feature is not available on this team - `feature_disabled_for_lite_sandbox` -- Lite sandboxes cannot use Slack-hosted infrastructure See https://docs.slack.dev/reference/methods/apps.activities.list */
|
|
477
477
|
export declare const listActivities: API.PaginatedOperationMethod<ListActivitiesRequest, ListActivitiesResponse, ListActivitiesError, SlackOpContext, unknown>;
|
|
478
478
|
export type ListEventAuthorizationsError = SlackOpError;
|
|
479
479
|
/** Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `auth_mismatch` -- The given authorization token is not associated with the app that sent this event. - `internal_error` -- An unexpected error occurred while finding authorizations for this event. - `invalid_cursor` -- The `cursor` argument was invalid. - `invalid_event_context` -- The given `event_context` didn't match an event. See https://docs.slack.dev/reference/methods/apps.event.authorizations.list */
|
|
@@ -482,10 +482,10 @@ export type PutDatastoreError = SlackOpError;
|
|
|
482
482
|
/** Creates a new item, or replaces an old item with a new item. Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.put */
|
|
483
483
|
export declare const putDatastore: API.OperationMethod<PutDatastoreRequest, PutDatastoreResponse, PutDatastoreError, SlackOpContext>;
|
|
484
484
|
export type SetIconError = SlackOpError;
|
|
485
|
-
/** Sets the app icon Required scopes -- user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` -- Icon must be a valid image file. - `internal_error` -- Internal error. - `icon_not_accessible` -- The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` -- App does not exist. - `invalid_app_id` -- App ID is not valid. - `invalid_icon_size` -- Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` -- Only one of `URL` or `file` can be defined. - `missing_arguments` -- One of `URL` or `file` must be provided. - `no_permission` -- User does not have required permissions for app. - `unable_to_open_file` -- Error with file upload. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
485
|
+
/** Sets the app icon Required scopes -- user: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` -- Icon must be a valid image file. - `internal_error` -- Internal error. - `icon_not_accessible` -- The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` -- App does not exist. - `invalid_app_id` -- App ID is not valid. - `invalid_icon_size` -- Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` -- Only one of `URL` or `file` can be defined. - `missing_arguments` -- One of `URL` or `file` must be provided. - `no_permission` -- User does not have required permissions for app. - `unable_to_open_file` -- Error with file upload. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
486
486
|
export declare const setIcon: API.OperationMethod<SetIconRequest, SetIconResponse, SetIconError, SlackOpContext>;
|
|
487
487
|
export type SetManagedPermissionsError = SlackOpError;
|
|
488
|
-
/** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions
|
|
488
|
+
/** Set who can interact with a managed app. Lets the builder who created a managed app on a partner platform configure the app's permissions, using a user token or bot token from the manager app. Permissions can only be set before the app is installed: if the app is already installed, this method makes no change and returns the app's current permissions. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token. - `access_denied` -- The token was not issued to a manager app that is eligible to configure managed apps. - `manager_app_not_eligible` -- The manager app the token was issued to is not eligible to configure app permissions, for example because it no longer has `app_configurations:write` in its configuration. - `feature_not_enabled` -- This method is not enabled for the manager app's organization, or bot tokens are not enabled for it. - `app_not_found` -- This app does not exist. - `app_not_managed` -- The specified app is not currently managed by any manager app. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set permissions for apps that it originally created and currently manages. - `app_owner_not_found` -- The app's owner could not be resolved, so app_owner cannot be applied. - `enterprise_only_feature` -- App permissions are only available on Enterprise Grid plans. Upgrade the app's org to configure who can interact with it. - `internal_error` -- The app's current installations could not be determined, so permissions were not changed. Retry the request. See https://docs.slack.dev/reference/methods/apps.managed.permissions.set */
|
|
489
489
|
export declare const setManagedPermissions: API.OperationMethod<SetManagedPermissionsRequest, SetManagedPermissionsResponse, SetManagedPermissionsError, SlackOpContext>;
|
|
490
490
|
export type UninstallAppError = SlackOpError;
|
|
491
491
|
/** Uninstalls your app from a workspace. Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_client_secret` -- Value passed for `client_secret` was invalid. - `client_id_token_mismatch` -- The provided client ID and token do not belong to the same app. - `internal_error` -- Internal error uninstall - `invalid_client_id` -- Value passed for `client_id` was invalid. - `no_permission` -- Granular bot not allowed to uninstall See https://docs.slack.dev/reference/methods/apps.uninstall */
|
|
@@ -494,12 +494,12 @@ export type UpdateDatastoreError = SlackOpError;
|
|
|
494
494
|
/** Edits an existing item's attributes, or adds a new item if it does not already exist. Required scopes -- bot: `datastore:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The request is missing required arguments. - `invalid_datastore` -- The provided datastore is invalid. - `invalid_auth` -- Not authorized to create datastore items. - `app_not_hosted` -- The app developer is not using a Slack-hosted environment. App datastores are exclusively available for Slack-hosted apps. - `datastore_error` -- Datastore error - `access_denied` -- Not authorized to access the datastore. - `invalid_app_id` -- The app_id provided is not valid for team and user. - `free_team_not_allowed` -- Datastore put not allowed on a free team. - `team_quota_exceeded` -- Total number of requests exceeded team quota. - `datastore_migration_in_progress` -- The datastore is currently unavailable due to an in progress Enterprise org migration. - `restricted_plan_level` -- Feature is not available on this team See https://docs.slack.dev/reference/methods/apps.datastore.update */
|
|
495
495
|
export declare const updateDatastore: API.OperationMethod<UpdateDatastoreRequest, UpdateDatastoreResponse, UpdateDatastoreError, SlackOpContext>;
|
|
496
496
|
export type UpdateManifestError = SlackOpError;
|
|
497
|
-
/** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `internal_error` -- Internal error. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `no_permission` -- User does not have permission to update app - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` -- Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. See https://docs.slack.dev/reference/methods/apps.manifest.update */
|
|
497
|
+
/** Update an app from an app manifest. When called with a manager app token, this method can only update apps that were created by that manager app. Required scopes -- configuration: `app_configurations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `app_not_found` -- The specified app was not found or has been deleted. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `failed_datastore_operation` -- Failed while managing datastore infrastructure - `internal_error` -- Internal error. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `no_permission` -- User does not have permission to update app - `unknown_method` -- Unknown method - `dynamic_client_registration_invalid_redirect_uri` -- The remote server rejected Slack's redirect URI during Dynamic Client Registration. The server must allowlist https://oauth2.slack.com/external/auth/callback as a valid redirect URI. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only update apps that it originally created via apps.manifest.create. It cannot modify apps created by other manager apps or apps created manually, even if the same user owns both. - `ratelimited` -- Too many calls in succession to update endpoint during a short period of time. - `dynamic_client_registration_failed` -- Dynamic client registration failed for an MCP server that requires OAuth authentication. - `oauth_metadata_not_found` -- Could not discover OAuth metadata for the MCP server. Ensure the server exposes a .well-known/oauth-authorization-server or .well-known/openid-configuration endpoint. - `dynamic_client_registration_not_supported` -- The MCP server's OAuth metadata does not include a registration endpoint. The server may not support Dynamic Client Registration. - `dynamic_client_registration_missing_oauth_endpoints` -- The MCP server's OAuth metadata is missing a required authorization or token endpoint. - `dynamic_client_registration_rejected` -- The MCP server rejected the Dynamic Client Registration request. - `dynamic_client_registration_invalid_response` -- The MCP server returned an invalid response during Dynamic Client Registration. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.manifest.update */
|
|
498
498
|
export declare const updateManifest: API.OperationMethod<UpdateManifestRequest, UpdateManifestResponse, UpdateManifestError, SlackOpContext>;
|
|
499
499
|
export type UpdateUserConnectionError = SlackOpError;
|
|
500
500
|
/** Updates the connection status between a user and an app. Required scopes -- user: `users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `invalid_auth` -- The token doesn't have access to this endpoint. - `app_not_subscribed` -- The app is not subscribed to the required events. - `user_not_found` -- Value passed for `user_id` was invalid. - `missing_scope` -- The token provided doesn't have the required scopes. - `internal_error` -- The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
501
501
|
export declare const updateUserConnection: API.OperationMethod<UpdateUserConnectionRequest, UpdateUserConnectionResponse, UpdateUserConnectionError, SlackOpContext>;
|
|
502
502
|
export type ValidateManifestError = SlackOpError;
|
|
503
|
-
/** Validate an app manifest Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `unknown_method` -- Unknown method - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only validate apps that it originally created via apps.manifest.create. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
|
|
503
|
+
/** Validate an app manifest Required scopes -- configuration: `app_configurations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `app_not_eligible` -- The specified app is not eligible for this API. - `invalid_app` -- An app created from the provided manifest would not be valid. - `invalid_app_id` -- The app id passed is invalid. - `invalid_manifest` -- The provided manifest file does not validate against schema. - `failed_adding_collaborator` -- Failed writing a collaborator record for this new app - `failed_creating_app` -- Failed to create the app model - `unknown_method` -- Unknown method - `no_permission` -- User described by the used token does not have proper permissions to take this action. - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only validate apps that it originally created via apps.manifest.create. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.manifest.validate */
|
|
504
504
|
export declare const validateManifest: API.OperationMethod<ValidateManifestRequest, ValidateManifestResponse, ValidateManifestError, SlackOpContext>;
|
|
505
505
|
//# sourceMappingURL=apps.d.ts.map
|