@mastra/slack 1.0.0 → 1.0.1
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/dist/slack/src/client/index.d.ts +3 -0
- package/dist/slack/src/client/schemas.gen.d.ts +2489 -0
- package/dist/slack/src/client/service-comments.d.ts +698 -0
- package/dist/slack/src/client/services.gen.d.ts +701 -0
- package/dist/slack/src/client/types.gen.d.ts +5883 -0
- package/dist/slack/src/client/zodSchema.d.ts +20843 -0
- package/dist/slack/src/index.d.ts +709 -14
- package/dist/slack.cjs.development.js +7057 -634
- package/dist/slack.cjs.development.js.map +1 -1
- package/dist/slack.cjs.production.min.js +1 -1
- package/dist/slack.cjs.production.min.js.map +1 -1
- package/dist/slack.esm.js +7058 -635
- package/dist/slack.esm.js.map +1 -1
- package/package.json +11 -6
- package/src/Slack.test.ts +57 -0
- package/src/assets/slack.png +0 -0
- package/src/assets/slack.svg +37 -0
- package/src/client/index.ts +4 -0
- package/src/client/schemas.gen.ts +2600 -0
- package/src/client/service-comments.ts +698 -0
- package/src/client/services.gen.ts +1853 -0
- package/src/client/types.gen.ts +6456 -0
- package/src/client/zodSchema.ts +6740 -0
- package/src/index.ts +359 -0
- package/dist/slack/src/apis/create-new-channel.d.ts +0 -9
- package/dist/slack/src/apis/invite-to-channel.d.ts +0 -9
- package/dist/slack/src/apis/send-message-to-channel.d.ts +0 -9
- package/dist/slack/src/client.d.ts +0 -26
- package/dist/slack/src/constants.d.ts +0 -1
- package/dist/slack/src/schemas.d.ts +0 -38
- package/dist/slack/src/types.d.ts +0 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@mastra/core"),t=require("zod"),n=require("@slack/web-api");function r(e,t,n,r,a,i,o){try{var c=e[i](o),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var o=e.apply(t,n);function c(e){r(o,a,i,c,s,"next",e)}function s(e){r(o,a,i,c,s,"throw",e)}c(void 0)}))}}function i(){i=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=Object.create((t&&t.prototype instanceof g?t:g).prototype),o=new O(r||[]);return a(i,"_invoke",{value:N(e,n,o)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",v="suspendedYield",d="executing",m="completed",y={};function g(){}function w(){}function x(){}var E={};l(E,c,(function(){return this}));var b=Object.getPrototypeOf,I=b&&b(b(S([])));I&&I!==n&&r.call(I,c)&&(E=I);var k=x.prototype=g.prototype=Object.create(E);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(a,i,o,c){var s=f(e[a],e,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,c)}))}c(s.arg)}var i;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return i=i?i.then(a,a):a()}})}function N(t,n,r){var a=p;return function(i,o){if(a===d)throw Error("Generator is already running");if(a===m){if("throw"===i)throw o;return{value:e,done:!0}}for(r.method=i,r.arg=o;;){var c=r.delegate;if(c){var s=L(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=d;var u=f(t,n,r);if("normal"===u.type){if(a=r.done?m:v,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a=m,r.method="throw",r.arg=u.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(a,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function S(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return w.prototype=x,a(k,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new _(h(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(k),l(k,u,"Generator"),l(k,c,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=S,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;A(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var c="data:image/svg+xml,%3csvg enable-background='new 0 0 2447.6 2452.5' viewBox='0 0 2447.6 2452.5' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-rule='evenodd' fill-rule='evenodd'%3e%3cpath d='m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z' fill='%2336c5f0'/%3e%3cpath d='m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z' fill='%232eb67d'/%3e%3cpath d='m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z' fill='%23ecb22e'/%3e%3cpath d='m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0' fill='%23e01e5a'/%3e%3c/g%3e%3c/svg%3e",s=t.z.object({channelId:t.z.string().trim().min(1,"Required"),message:t.z.string().describe("type::"+e.IntegrationFieldTypeEnum.LONG_TEXT)}),u=t.z.object({channelName:t.z.string().trim().min(1,"Required"),isPrivate:t.z.enum(["true","false"])}),l=t.z.object({channelId:t.z.string().nullable()}),h=t.z.object({channelId:t.z.string().trim().min(1,"Required"),users:t.z.array(t.z.string())}),f=function(e){var t,n=e.makeClient;return{integrationName:e.name,executor:(t=a(i().mark((function e(t){var r,a,o,c,s,u,l,h;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.data,o=t.ctx.connectionId,e.next=3,n({connectionId:o});case 3:return c=e.sent,s=a.channelName,u=a.isPrivate,e.next=7,c.createChannel({name:null==s?void 0:s.replaceAll(" ","-").toLowerCase(),isPrivate:"true"===u});case 7:if(null==(l=e.sent)||!l.error){e.next=10;break}throw new Error("Error creating channel");case 10:return h=null==l||null==(r=l.channel)?void 0:r.id,e.abrupt("return",{channelId:h});case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),icon:{alt:"Slack Icon",icon:c},type:"CREATE_NEW_CHANNEL",schema:u,description:"Create a new channel",label:"Create New Channel",outputSchema:l}},p=function(e){var t,n=e.makeClient;return{integrationName:e.name,executor:(t=a(i().mark((function e(t){var r,a,o,c,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,a=t.ctx.connectionId,e.next=3,n({connectionId:a});case 3:if(o=e.sent,c=r.channelId,null!=(s=r.users)&&s.length){e.next=7;break}return e.abrupt("return",{success:!1,message:"No users to invite"});case 7:return e.next=9,o.invite({channelId:c,users:s});case 9:return e.abrupt("return",{success:!0,message:"Users invited"});case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),type:"INVITE_TO_CHANNEL",description:"Invite users to a channel",label:"Invite to Channel",schema:h,icon:{icon:c,alt:"Slack Icon"},getSchemaOptions:function(e){return a(i().mark((function t(){var r,a,o,c,s,u,l;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.ctx,a=new Set,t.next=4,n({connectionId:r.connectionId});case 4:return o=t.sent,t.next=7,o.getActiveUsers();case 7:return c=t.sent,t.next=10,o.getAllChannels();case 10:return s=t.sent,null==c||c.forEach((function(e){a.add(e)})),u=Array.from(a).map((function(e){return{label:e.name,value:e.id}})),l=null==s?void 0:s.map((function(e){var t,n;return{label:null!=(t=e.name)?t:"",value:null!=(n=e.id)?n:""}})),t.abrupt("return",{users:{options:u},channelId:{options:null!=l?l:[]}});case 15:case"end":return t.stop()}}),t)})))()}}},v=function(){function e(e){var t=e.token;this.token=void 0,this.client=void 0,this.token=t,this.client=new n.WebClient(t)}var t=e.prototype;return t.getAllChannels=function(){var e=a(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.conversations.list({types:"private_channel,public_channel",limit:999});case 2:return e.abrupt("return",null==(t=e.sent.channels)?void 0:t.filter((function(e){return!e.is_archived})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.channelByName=function(){var e=a(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAllChannels();case 2:return e.abrupt("return",null==(n=e.sent)?void 0:n.find((function(e){return e.name===t})));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getActiveUsers=function(){var e=a(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.users.list({});case 2:return n=null==(t=e.sent.members)?void 0:t.filter((function(e){return!e.deleted&&!e.is_bot})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.userIdsByNames=function(){var e=a(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getActiveUsers();case 2:return a=null==(r=e.sent)||null==(n=r.filter((function(e){var n=e.name;return!!n&&!!t.find((function(e){return e.toLowerCase().includes(n.toLowerCase())||n.toLowerCase().includes(e.toLowerCase())}))})))?void 0:n.map((function(e){return e.id})),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.sendMessage=function(){var e=a(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.channelId,r=t.message,e.next=3,this.client.chat.postMessage({channel:n,text:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.invite=function(){var e=a(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.channelId,r=t.users,e.next=3,this.client.conversations.invite({channel:n,users:r.join(",")});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.createChannel=function(){var e=a(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.name,r=t.isPrivate,e.next=3,this.client.conversations.create({name:n,is_private:r});case 3:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.joinChannel=function(){var e=a(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.channelId,e.next=3,this.client.conversations.join({channel:n});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),e}();exports.SlackIntegration=function(t){function n(e){var n,r=e.config;return r.authType="OAUTH",(n=t.call(this,{config:r,name:"SLACK",logoUrl:c})||this).config=void 0,n.availableScopes=[{key:"channels:manage",description:"Manage channels"},{key:"users:read",description:"Read user information"},{key:"channels:write.invites",description:"Invite users to channels"},{key:"chat:write",description:"Send messages"},{key:"channels:read",description:"View channels"},{key:"groups:read",description:"View private channels"},{key:"channels:join",description:"Join channels"},{key:"groups:write.invites",description:"Invite users to private channels"},{key:"groups:write",description:"Manage private channels"}],n.makeClient=function(){var e=a(i().mark((function e(t){var r,a,o,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.connectionId,o=n.getAuthenticator(),e.next=4,null==(r=n.dataLayer)?void 0:r.getConnection({connectionId:a,name:n.name});case 4:if(c=e.sent){e.next=7;break}throw new Error("No connection found");case 7:return e.next=9,o.getAuthToken({k_id:null==c?void 0:c.id});case 9:return e.abrupt("return",new v({token:e.sent.accessToken}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.config=r,n}var r,u;u=t,(r=n).prototype=Object.create(u.prototype),r.prototype.constructor=r,o(r,u);var l=n.prototype;return l.registerApis=function(){var e,t,n;return this.apis={SEND_MESSAGE_TO_CHANNEL:(e={dataAccess:null==this?void 0:this.dataLayer,name:this.name,makeClient:this.makeClient},n=e.makeClient,{integrationName:e.name,executor:(t=a(i().mark((function e(t){var r,a,o,c,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.data,a=t.ctx.connectionId,e.next=3,n({connectionId:a});case 3:return o=e.sent,c=r.channelId,s=r.message,e.prev=5,e.next=8,o.joinChannel({channelId:c});case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.log(e.t0);case 13:return e.next=15,o.sendMessage({channelId:c,message:s});case 15:return e.abrupt("return",{success:!0,message:"Message sent"});case 16:case"end":return e.stop()}}),e,null,[[5,10]])}))),function(e){return t.apply(this,arguments)}),type:"SEND_MESSAGE_TO_CHANNEL",schema:s,description:"Send a message to a channel",icon:{icon:c,alt:"Slack Icon"},getSchemaOptions:function(e){return a(i().mark((function t(){var r,a,o,c,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.ctx,a=new Set,t.next=4,n({connectionId:r.connectionId});case 4:return o=t.sent,t.next=7,o.getAllChannels();case 7:return null==(c=t.sent)||c.forEach((function(e){a.add(e)})),s=Array.from(a).map((function(e){return{label:"# "+e.name,value:e.id}})),t.abrupt("return",{channelId:{options:s}});case 11:case"end":return t.stop()}}),t)})))()},label:"Send Message to Channel"}),CREATE_NEW_CHANNEL:f({dataAccess:null==this?void 0:this.dataLayer,name:this.name,makeClient:this.makeClient}),INVITE_TO_CHANNEL:p({dataAccess:null==this?void 0:this.dataLayer,name:this.name,makeClient:this.makeClient})},this.apis},l.onConnectionCreated=function(){var e=a(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l.onDisconnect=function(){var e=a(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l.getAuthenticator=function(){var t,n=this,r=this.config.SCOPES&&this.config.SCOPES.length>0,a=(null==(t=this.availableScopes)?void 0:t.map((function(e){return e.key})))||[];return new e.IntegrationAuth({dataAccess:this.dataLayer,onConnectionCreated:function(e){return n.onConnectionCreated({connection:e})},config:{CLIENT_ID:this.config.CLIENT_ID,CLIENT_SECRET:this.config.CLIENT_SECRET,REDIRECT_URI:this.config.REDIRECT_URI||this.corePresets.redirectURI,AUTH_TYPE:this.config.authType,SERVER:"https://slack.com",DISCOVERY_ENDPOINT:"/.well-known/openid-configuration",AUTHORIZATION_ENDPOINT:"/oauth/v2/authorize",TOKEN_ENDPOINT:"/api/oauth.v2.access",REVOCATION_ENDPOINT:"/api/auth.revoke",SCOPES:r?this.config.SCOPES:a,INTEGRATION_NAME:this.name,EXTRA_AUTH_PARAMS:{access_type:"offline",prompt:"consent"}}})},n}(e.Integration);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@mastra/core"),t=require("@hey-api/client-fetch"),a=require("zod");function n(e,t,a,n,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void a(e)}l.done?t(s):Promise.resolve(s).then(n,i)}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},i.apply(null,arguments)}function r(){r=function(){return t};var e,t={},a=Object.prototype,n=a.hasOwnProperty,i=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function d(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,a){return e[t]=a}}function z(e,t,a,n){var r=Object.create((t&&t.prototype instanceof v?t:v).prototype),o=new A(n||[]);return i(r,"_invoke",{value:q(e,a,o)}),r}function u(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=z;var p="suspendedStart",_="suspendedYield",m="executing",h="completed",g={};function v(){}function b(){}function f(){}var k={};d(k,l,(function(){return this}));var j=Object.getPrototypeOf,S=j&&j(j(P([])));S&&S!==a&&n.call(S,l)&&(k=S);var y=f.prototype=v.prototype=Object.create(k);function w(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function a(i,r,o,l){var s=u(e[i],e,r);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,o,l)}),(function(e){a("throw",e,o,l)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return a("throw",e,o,l)}))}l(s.arg)}var r;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){a(e,n,t,i)}))}return r=r?r.then(i,i):i()}})}function q(t,a,n){var i=p;return function(r,o){if(i===m)throw Error("Generator is already running");if(i===h){if("throw"===r)throw o;return{value:e,done:!0}}for(n.method=r,n.arg=o;;){var l=n.delegate;if(l){var s=E(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var c=u(t,a,n);if("normal"===c.type){if(i=n.done?h:_,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function E(t,a){var n=a.method,i=t.iterator[n];if(i===e)return a.delegate=null,"throw"===n&&t.iterator.return&&(a.method="return",a.arg=e,E(t,a),"throw"===a.method)||"return"!==n&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var r=u(i,t.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,g;var o=r.arg;return o?o.done?(a[t.resultName]=o.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,g):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(t){if(t||""===t){var a=t[l];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function a(){for(;++i<t.length;)if(n.call(t,i))return a.value=t[i],a.done=!1,a;return a.value=e,a.done=!0,a};return r.next=r}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=f,i(y,"constructor",{value:f,configurable:!0}),i(f,"constructor",{value:b,configurable:!0}),b.displayName=d(f,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,d(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},w(R.prototype),d(R.prototype,s,(function(){return this})),t.AsyncIterator=R,t.async=function(e,a,n,i,r){void 0===r&&(r=Promise);var o=new R(z(e,a,n,i),r);return t.isGeneratorFunction(a)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(y),d(y,c,"Generator"),d(y,l,(function(){return this})),d(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var n in t)a.push(n);return a.reverse(),function e(){for(;a.length;){var n=a.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var a in this)"t"===a.charAt(0)&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function i(n,i){return l.type="throw",l.arg=t,a.next=n,i&&(a.method="next",a.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),D(a),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var i=n.arg;D(a)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,a,n){return this.delegate={iterator:P(t),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var l={adminAppsApprove:{comment:"Approve an app for installation on a workspace.",doc:"Approve an app for installation on a workspace."},adminAppsApprovedList:{comment:"List approved apps for an org or workspace.",doc:"List approved apps for an org or workspace."},adminAppsRequestsList:{comment:"List app requests for a team/workspace.",doc:"List app requests for a team/workspace."},adminAppsRestrict:{comment:"Restrict an app for installation on a workspace.",doc:"Restrict an app for installation on a workspace."},adminAppsRestrictedList:{comment:"List restricted apps for an org or workspace.",doc:"List restricted apps for an org or workspace."},adminConversationsArchive:{comment:"Archive a public or private channel.",doc:"Archive a public or private channel."},adminConversationsConvertToPrivate:{comment:"Convert a public channel to a private channel.",doc:"Convert a public channel to a private channel."},adminConversationsCreate:{comment:"Create a public or private channel-based conversation.",doc:"Create a public or private channel-based conversation."},adminConversationsDelete:{comment:"Delete a public or private channel.",doc:"Delete a public or private channel."},adminConversationsDisconnectShared:{comment:"Disconnect a connected channel from one or more workspaces.",doc:"Disconnect a connected channel from one or more workspaces."},adminConversationsEkmListOriginalConnectedChannelInfo:{comment:"List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM.",doc:"List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM."},adminConversationsGetConversationPrefs:{comment:"Get conversation preferences for a public or private channel.",doc:"Get conversation preferences for a public or private channel."},adminConversationsGetTeams:{comment:"Get all the workspaces a given public or private channel is connected to within this Enterprise org.",doc:"Get all the workspaces a given public or private channel is connected to within this Enterprise org."},adminConversationsInvite:{comment:"Invite a user to a public or private channel.",doc:"Invite a user to a public or private channel."},adminConversationsRename:{comment:"Rename a public or private channel.",doc:"Rename a public or private channel."},adminConversationsRestrictAccessAddGroup:{comment:"Add an allowlist of IDP groups for accessing a channel",doc:"Add an allowlist of IDP groups for accessing a channel"},adminConversationsRestrictAccessListGroups:{comment:"List all IDP Groups linked to a channel",doc:"List all IDP Groups linked to a channel"},adminConversationsRestrictAccessRemoveGroup:{comment:"Remove a linked IDP group linked from a private channel",doc:"Remove a linked IDP group linked from a private channel"},adminConversationsSearch:{comment:"Search for public or private channels in an Enterprise organization.",doc:"Search for public or private channels in an Enterprise organization."},adminConversationsSetConversationPrefs:{comment:"Set the posting permissions for a public or private channel.",doc:"Set the posting permissions for a public or private channel."},adminConversationsSetTeams:{comment:"Set the workspaces in an Enterprise grid org that connect to a public or private channel.",doc:"Set the workspaces in an Enterprise grid org that connect to a public or private channel."},adminConversationsUnarchive:{comment:"Unarchive a public or private channel.",doc:"Unarchive a public or private channel."},adminEmojiAdd:{comment:"Add an emoji.",doc:"Add an emoji."},adminEmojiAddAlias:{comment:"Add an emoji alias.",doc:"Add an emoji alias."},adminEmojiList:{comment:"List emoji for an Enterprise Grid organization.",doc:"List emoji for an Enterprise Grid organization."},adminEmojiRemove:{comment:"Remove an emoji across an Enterprise Grid organization",doc:"Remove an emoji across an Enterprise Grid organization"},adminEmojiRename:{comment:"Rename an emoji.",doc:"Rename an emoji."},adminInviteRequestsApprove:{comment:"Approve a workspace invite request.",doc:"Approve a workspace invite request."},adminInviteRequestsApprovedList:{comment:"List all approved workspace invite requests.",doc:"List all approved workspace invite requests."},adminInviteRequestsDeniedList:{comment:"List all denied workspace invite requests.",doc:"List all denied workspace invite requests."},adminInviteRequestsDeny:{comment:"Deny a workspace invite request.",doc:"Deny a workspace invite request."},adminInviteRequestsList:{comment:"List all pending workspace invite requests.",doc:"List all pending workspace invite requests."},adminTeamsAdminsList:{comment:"List all of the admins on a given workspace.",doc:"List all of the admins on a given workspace."},adminTeamsCreate:{comment:"Create an Enterprise team.",doc:"Create an Enterprise team."},adminTeamsList:{comment:"List all teams on an Enterprise organization",doc:"List all teams on an Enterprise organization"},adminTeamsOwnersList:{comment:"List all of the owners on a given workspace.",doc:"List all of the owners on a given workspace."},adminTeamsSettingsInfo:{comment:"Fetch information about settings in a workspace",doc:"Fetch information about settings in a workspace"},adminTeamsSettingsSetDefaultChannels:{comment:"Set the default channels of a workspace.",doc:"Set the default channels of a workspace."},adminTeamsSettingsSetDescription:{comment:"Set the description of a given workspace.",doc:"Set the description of a given workspace."},adminTeamsSettingsSetDiscoverability:{comment:"An API method that allows admins to set the discoverability of a given workspace",doc:"An API method that allows admins to set the discoverability of a given workspace"},adminTeamsSettingsSetIcon:{comment:"Sets the icon of a workspace.",doc:"Sets the icon of a workspace."},adminTeamsSettingsSetName:{comment:"Set the name of a given workspace.",doc:"Set the name of a given workspace."},adminUsergroupsAddChannels:{comment:"Add one or more default channels to an IDP group.",doc:"Add one or more default channels to an IDP group."},adminUsergroupsAddTeams:{comment:"Associate one or more default workspaces with an organization-wide IDP group.",doc:"Associate one or more default workspaces with an organization-wide IDP group."},adminUsergroupsListChannels:{comment:"List the channels linked to an org-level IDP group (user group).",doc:"List the channels linked to an org-level IDP group (user group)."},adminUsergroupsRemoveChannels:{comment:"Remove one or more default channels from an org-level IDP group (user group).",doc:"Remove one or more default channels from an org-level IDP group (user group)."},adminUsersAssign:{comment:"Add an Enterprise user to a workspace.",doc:"Add an Enterprise user to a workspace."},adminUsersInvite:{comment:"Invite a user to a workspace.",doc:"Invite a user to a workspace."},adminUsersList:{comment:"List users on a workspace",doc:"List users on a workspace"},adminUsersRemove:{comment:"Remove a user from a workspace.",doc:"Remove a user from a workspace."},adminUsersSessionInvalidate:{comment:"Invalidate a single session for a user by session_id",doc:"Invalidate a single session for a user by session_id"},adminUsersSessionReset:{comment:"Wipes all valid sessions on all devices for a given user",doc:"Wipes all valid sessions on all devices for a given user"},adminUsersSetAdmin:{comment:"Set an existing guest, regular user, or owner to be an admin user.",doc:"Set an existing guest, regular user, or owner to be an admin user."},adminUsersSetExpiration:{comment:"Set an expiration for a guest user",doc:"Set an expiration for a guest user"},adminUsersSetOwner:{comment:"Set an existing guest, regular user, or admin user to be a workspace owner.",doc:"Set an existing guest, regular user, or admin user to be a workspace owner."},adminUsersSetRegular:{comment:"Set an existing guest user, admin user, or owner to be a regular user.",doc:"Set an existing guest user, admin user, or owner to be a regular user."},apiTest:{comment:"Checks API calling code.",doc:"Checks API calling code."},appsEventAuthorizationsList:{comment:"Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.",doc:"Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to."},appsPermissionsInfo:{comment:"Returns list of permissions this app has on a team.",doc:"Returns list of permissions this app has on a team."},appsPermissionsRequest:{comment:"Allows an app to request additional scopes",doc:"Allows an app to request additional scopes"},appsPermissionsResourcesList:{comment:"Returns list of resource grants this app has on a team.",doc:"Returns list of resource grants this app has on a team."},appsPermissionsScopesList:{comment:"Returns list of scopes this app has on a team.",doc:"Returns list of scopes this app has on a team."},appsPermissionsUsersList:{comment:"Returns list of user grants and corresponding scopes this app has on a team.",doc:"Returns list of user grants and corresponding scopes this app has on a team."},appsPermissionsUsersRequest:{comment:"Enables an app to trigger a permissions modal to grant an app access to a user access scope.",doc:"Enables an app to trigger a permissions modal to grant an app access to a user access scope."},appsUninstall:{comment:"Uninstalls your app from a workspace.",doc:"Uninstalls your app from a workspace."},authRevoke:{comment:"Revokes a token.",doc:"Revokes a token."},authTest:{comment:"Checks authentication & identity.",doc:"Checks authentication & identity."},botsInfo:{comment:"Gets information about a bot user.",doc:"Gets information about a bot user."},callsAdd:{comment:"Registers a new Call.",doc:"Registers a new Call."},callsEnd:{comment:"Ends a Call.",doc:"Ends a Call."},callsInfo:{comment:"Returns information about a Call.",doc:"Returns information about a Call."},callsParticipantsAdd:{comment:"Registers new participants added to a Call.",doc:"Registers new participants added to a Call."},callsParticipantsRemove:{comment:"Registers participants removed from a Call.",doc:"Registers participants removed from a Call."},callsUpdate:{comment:"Updates information about a Call.",doc:"Updates information about a Call."},chatDelete:{comment:"Deletes a message.",doc:"Deletes a message."},chatDeleteScheduledMessage:{comment:"Deletes a pending scheduled message from the queue.",doc:"Deletes a pending scheduled message from the queue."},chatGetPermalink:{comment:"Retrieve a permalink URL for a specific extant message",doc:"Retrieve a permalink URL for a specific extant message"},chatMeMessage:{comment:"Share a me message into a channel.",doc:"Share a me message into a channel."},chatPostEphemeral:{comment:"Sends an ephemeral message to a user in a channel.",doc:"Sends an ephemeral message to a user in a channel."},chatPostMessage:{comment:"Sends a message to a channel.",doc:"Sends a message to a channel."},chatScheduleMessage:{comment:"Schedules a message to be sent to a channel.",doc:"Schedules a message to be sent to a channel."},chatScheduledMessagesList:{comment:"Returns a list of scheduled messages.",doc:"Returns a list of scheduled messages."},chatUnfurl:{comment:"Provide custom unfurl behavior for user-posted URLs",doc:"Provide custom unfurl behavior for user-posted URLs"},chatUpdate:{comment:"Updates a message.",doc:"Updates a message."},conversationsArchive:{comment:"Archives a conversation.",doc:"Archives a conversation."},conversationsClose:{comment:"Closes a direct message or multi-person direct message.",doc:"Closes a direct message or multi-person direct message."},conversationsCreate:{comment:"Initiates a public or private channel-based conversation",doc:"Initiates a public or private channel-based conversation"},conversationsHistory:{comment:"Fetches a conversation's history of messages and events.",doc:"Fetches a conversation's history of messages and events."},conversationsInfo:{comment:"Retrieve information about a conversation.",doc:"Retrieve information about a conversation."},conversationsInvite:{comment:"Invites users to a channel.",doc:"Invites users to a channel."},conversationsJoin:{comment:"Joins an existing conversation.",doc:"Joins an existing conversation."},conversationsKick:{comment:"Removes a user from a conversation.",doc:"Removes a user from a conversation."},conversationsLeave:{comment:"Leaves a conversation.",doc:"Leaves a conversation."},conversationsList:{comment:"Lists all channels in a Slack team.",doc:"Lists all channels in a Slack team."},conversationsMark:{comment:"Sets the read cursor in a channel.",doc:"Sets the read cursor in a channel."},conversationsMembers:{comment:"Retrieve members of a conversation.",doc:"Retrieve members of a conversation."},conversationsOpen:{comment:"Opens or resumes a direct message or multi-person direct message.",doc:"Opens or resumes a direct message or multi-person direct message."},conversationsRename:{comment:"Renames a conversation.",doc:"Renames a conversation."},conversationsReplies:{comment:"Retrieve a thread of messages posted to a conversation",doc:"Retrieve a thread of messages posted to a conversation"},conversationsSetPurpose:{comment:"Sets the purpose for a conversation.",doc:"Sets the purpose for a conversation."},conversationsSetTopic:{comment:"Sets the topic for a conversation.",doc:"Sets the topic for a conversation."},conversationsUnarchive:{comment:"Reverses conversation archival.",doc:"Reverses conversation archival."},dialogOpen:{comment:"Open a dialog with a user",doc:"Open a dialog with a user"},dndEndDnd:{comment:"Ends the current user's Do Not Disturb session immediately.",doc:"Ends the current user's Do Not Disturb session immediately."},dndEndSnooze:{comment:"Ends the current user's snooze mode immediately.",doc:"Ends the current user's snooze mode immediately."},dndInfo:{comment:"Retrieves a user's current Do Not Disturb status.",doc:"Retrieves a user's current Do Not Disturb status."},dndSetSnooze:{comment:"Turns on Do Not Disturb mode for the current user, or changes its duration.",doc:"Turns on Do Not Disturb mode for the current user, or changes its duration."},dndTeamInfo:{comment:"Retrieves the Do Not Disturb status for up to 50 users on a team.",doc:"Retrieves the Do Not Disturb status for up to 50 users on a team."},emojiList:{comment:"Lists custom emoji for a team.",doc:"Lists custom emoji for a team."},filesCommentsDelete:{comment:"Deletes an existing comment on a file.",doc:"Deletes an existing comment on a file."},filesDelete:{comment:"Deletes a file.",doc:"Deletes a file."},filesInfo:{comment:"Gets information about a file.",doc:"Gets information about a file."},filesList:{comment:"List for a team, in a channel, or from a user with applied filters.",doc:"List for a team, in a channel, or from a user with applied filters."},filesRemoteAdd:{comment:"Adds a file from a remote service",doc:"Adds a file from a remote service"},filesRemoteInfo:{comment:"Retrieve information about a remote file added to Slack",doc:"Retrieve information about a remote file added to Slack"},filesRemoteList:{comment:"Retrieve information about a remote file added to Slack",doc:"Retrieve information about a remote file added to Slack"},filesRemoteRemove:{comment:"Remove a remote file.",doc:"Remove a remote file."},filesRemoteShare:{comment:"Share a remote file into a channel.",doc:"Share a remote file into a channel."},filesRemoteUpdate:{comment:"Updates an existing remote file.",doc:"Updates an existing remote file."},filesRevokePublicUrl:{comment:"Revokes public/external sharing access for a file",doc:"Revokes public/external sharing access for a file"},filesSharedPublicUrl:{comment:"Enables a file for public/external sharing.",doc:"Enables a file for public/external sharing."},filesUpload:{comment:"Uploads or creates a file.",doc:"Uploads or creates a file."},migrationExchange:{comment:"For Enterprise Grid workspaces, map local user IDs to global user IDs",doc:"For Enterprise Grid workspaces, map local user IDs to global user IDs"},oauthAccess:{comment:"Exchanges a temporary OAuth verifier code for an access token.",doc:"Exchanges a temporary OAuth verifier code for an access token."},oauthToken:{comment:"Exchanges a temporary OAuth verifier code for a workspace token.",doc:"Exchanges a temporary OAuth verifier code for a workspace token."},oauthV2Access:{comment:"Exchanges a temporary OAuth verifier code for an access token.",doc:"Exchanges a temporary OAuth verifier code for an access token."},pinsAdd:{comment:"Pins an item to a channel.",doc:"Pins an item to a channel."},pinsList:{comment:"Lists items pinned to a channel.",doc:"Lists items pinned to a channel."},pinsRemove:{comment:"Un-pins an item from a channel.",doc:"Un-pins an item from a channel."},reactionsAdd:{comment:"Adds a reaction to an item.",doc:"Adds a reaction to an item."},reactionsGet:{comment:"Gets reactions for an item.",doc:"Gets reactions for an item."},reactionsList:{comment:"Lists reactions made by a user.",doc:"Lists reactions made by a user."},reactionsRemove:{comment:"Removes a reaction from an item.",doc:"Removes a reaction from an item."},remindersAdd:{comment:"Creates a reminder.",doc:"Creates a reminder."},remindersComplete:{comment:"Marks a reminder as complete.",doc:"Marks a reminder as complete."},remindersDelete:{comment:"Deletes a reminder.",doc:"Deletes a reminder."},remindersInfo:{comment:"Gets information about a reminder.",doc:"Gets information about a reminder."},remindersList:{comment:"Lists all reminders created by or for a given user.",doc:"Lists all reminders created by or for a given user."},rtmConnect:{comment:"Starts a Real Time Messaging session.",doc:"Starts a Real Time Messaging session."},searchMessages:{comment:"Searches for messages matching a query.",doc:"Searches for messages matching a query."},starsAdd:{comment:"Adds a star to an item.",doc:"Adds a star to an item."},starsList:{comment:"Lists stars for a user.",doc:"Lists stars for a user."},starsRemove:{comment:"Removes a star from an item.",doc:"Removes a star from an item."},teamAccessLogs:{comment:"Gets the access logs for the current team.",doc:"Gets the access logs for the current team."},teamBillableInfo:{comment:"Gets billable users information for the current team.",doc:"Gets billable users information for the current team."},teamInfo:{comment:"Gets information about the current team.",doc:"Gets information about the current team."},teamIntegrationLogs:{comment:"Gets the integration logs for the current team.",doc:"Gets the integration logs for the current team."},teamProfileGet:{comment:"Retrieve a team's profile.",doc:"Retrieve a team's profile."},usergroupsCreate:{comment:"Create a User Group",doc:"Create a User Group"},usergroupsDisable:{comment:"Disable an existing User Group",doc:"Disable an existing User Group"},usergroupsEnable:{comment:"Enable a User Group",doc:"Enable a User Group"},usergroupsList:{comment:"List all User Groups for a team",doc:"List all User Groups for a team"},usergroupsUpdate:{comment:"Update an existing User Group",doc:"Update an existing User Group"},usergroupsUsersList:{comment:"List all users in a User Group",doc:"List all users in a User Group"},usergroupsUsersUpdate:{comment:"Update the list of users for a User Group",doc:"Update the list of users for a User Group"},usersConversations:{comment:"List conversations the calling user may access.",doc:"List conversations the calling user may access."},usersDeletePhoto:{comment:"Delete the user profile photo",doc:"Delete the user profile photo"},usersGetPresence:{comment:"Gets user presence information.",doc:"Gets user presence information."},usersIdentity:{comment:"Get a user's identity.",doc:"Get a user's identity."},usersInfo:{comment:"Gets information about a user.",doc:"Gets information about a user."},usersList:{comment:"Lists all users in a Slack team.",doc:"Lists all users in a Slack team."},usersLookupByEmail:{comment:"Find a user with an email address.",doc:"Find a user with an email address."},usersProfileGet:{comment:"Retrieves a user's profile information.",doc:"Retrieves a user's profile information."},usersProfileSet:{comment:"Set the profile information for a user.",doc:"Set the profile information for a user."},usersSetActive:{comment:"Marked a user as active. Deprecated and non-functional.",doc:"Marked a user as active. Deprecated and non-functional."},usersSetPhoto:{comment:"Set the user profile photo",doc:"Set the user profile photo"},usersSetPresence:{comment:"Manually sets user presence.",doc:"Manually sets user presence."},viewsOpen:{comment:"Open a view for a user.",doc:"Open a view for a user."},viewsPublish:{comment:"Publish a static view for a User.",doc:"Publish a static view for a User."},viewsPush:{comment:"Push a view onto the stack of a root view.",doc:"Push a view onto the stack of a root view."},viewsUpdate:{comment:"Update an existing view.",doc:"Update an existing view."},workflowsStepCompleted:{comment:"Indicate that an app's step in a workflow completed execution.",doc:"Indicate that an app's step in a workflow completed execution."},workflowsStepFailed:{comment:"Indicate that an app's step in a workflow failed to execute.",doc:"Indicate that an app's step in a workflow failed to execute."},workflowsUpdateStep:{comment:"Update the configuration for a workflow extension step.",doc:"Update the configuration for a workflow extension step."}},s=t.createClient(t.createConfig()),c={__proto__:null,adminAppsApprove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.apps.approve"}))},adminAppsApprovedList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.apps.approved.list"}))},adminAppsRequestsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.apps.requests.list"}))},adminAppsRestrict:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.apps.restrict"}))},adminAppsRestrictedList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.apps.restricted.list"}))},adminConversationsArchive:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.archive"}))},adminConversationsConvertToPrivate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.convertToPrivate"}))},adminConversationsCreate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.create"}))},adminConversationsDelete:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.delete"}))},adminConversationsDisconnectShared:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.disconnectShared"}))},adminConversationsEkmListOriginalConnectedChannelInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.conversations.ekm.listOriginalConnectedChannelInfo"}))},adminConversationsGetConversationPrefs:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.conversations.getConversationPrefs"}))},adminConversationsGetTeams:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.conversations.getTeams"}))},adminConversationsInvite:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.invite"}))},adminConversationsRename:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.rename"}))},adminConversationsRestrictAccessAddGroup:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.restrictAccess.addGroup"}))},adminConversationsRestrictAccessListGroups:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.conversations.restrictAccess.listGroups"}))},adminConversationsRestrictAccessRemoveGroup:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.restrictAccess.removeGroup"}))},adminConversationsSearch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.conversations.search"}))},adminConversationsSetConversationPrefs:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.setConversationPrefs"}))},adminConversationsSetTeams:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.setTeams"}))},adminConversationsUnarchive:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.conversations.unarchive"}))},adminEmojiAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.emoji.add"}))},adminEmojiAddAlias:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.emoji.addAlias"}))},adminEmojiList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.emoji.list"}))},adminEmojiRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.emoji.remove"}))},adminEmojiRename:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.emoji.rename"}))},adminInviteRequestsApprove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.inviteRequests.approve"}))},adminInviteRequestsApprovedList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.inviteRequests.approved.list"}))},adminInviteRequestsDeniedList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.inviteRequests.denied.list"}))},adminInviteRequestsDeny:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.inviteRequests.deny"}))},adminInviteRequestsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.inviteRequests.list"}))},adminTeamsAdminsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.teams.admins.list"}))},adminTeamsCreate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.teams.create"}))},adminTeamsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.teams.list"}))},adminTeamsOwnersList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.teams.owners.list"}))},adminTeamsSettingsInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.teams.settings.info"}))},adminTeamsSettingsSetDefaultChannels:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.teams.settings.setDefaultChannels"}))},adminTeamsSettingsSetDescription:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.teams.settings.setDescription"}))},adminTeamsSettingsSetDiscoverability:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.teams.settings.setDiscoverability"}))},adminTeamsSettingsSetIcon:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.teams.settings.setIcon"}))},adminTeamsSettingsSetName:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.teams.settings.setName"}))},adminUsergroupsAddChannels:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.usergroups.addChannels"}))},adminUsergroupsAddTeams:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.usergroups.addTeams"}))},adminUsergroupsListChannels:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.usergroups.listChannels"}))},adminUsergroupsRemoveChannels:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.usergroups.removeChannels"}))},adminUsersAssign:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.assign"}))},adminUsersInvite:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.invite"}))},adminUsersList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/admin.users.list"}))},adminUsersRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.remove"}))},adminUsersSessionInvalidate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.session.invalidate"}))},adminUsersSessionReset:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.session.reset"}))},adminUsersSetAdmin:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.setAdmin"}))},adminUsersSetExpiration:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.setExpiration"}))},adminUsersSetOwner:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.setOwner"}))},adminUsersSetRegular:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/admin.users.setRegular"}))},apiTest:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/api.test"}))},appsEventAuthorizationsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.event.authorizations.list"}))},appsPermissionsInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.permissions.info"}))},appsPermissionsRequest:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.permissions.request"}))},appsPermissionsResourcesList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.permissions.resources.list"}))},appsPermissionsScopesList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.permissions.scopes.list"}))},appsPermissionsUsersList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.permissions.users.list"}))},appsPermissionsUsersRequest:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.permissions.users.request"}))},appsUninstall:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/apps.uninstall"}))},authRevoke:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/auth.revoke"}))},authTest:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/auth.test"}))},botsInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/bots.info"}))},callsAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/calls.add"}))},callsEnd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/calls.end"}))},callsInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/calls.info"}))},callsParticipantsAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/calls.participants.add"}))},callsParticipantsRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/calls.participants.remove"}))},callsUpdate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/calls.update"}))},chatDelete:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.delete"}))},chatDeleteScheduledMessage:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.deleteScheduledMessage"}))},chatGetPermalink:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/chat.getPermalink"}))},chatMeMessage:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.meMessage"}))},chatPostEphemeral:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.postEphemeral"}))},chatPostMessage:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.postMessage"}))},chatScheduleMessage:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.scheduleMessage"}))},chatScheduledMessagesList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/chat.scheduledMessages.list"}))},chatUnfurl:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.unfurl"}))},chatUpdate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/chat.update"}))},client:s,conversationsArchive:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.archive"}))},conversationsClose:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.close"}))},conversationsCreate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.create"}))},conversationsHistory:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/conversations.history"}))},conversationsInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/conversations.info"}))},conversationsInvite:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.invite"}))},conversationsJoin:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.join"}))},conversationsKick:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.kick"}))},conversationsLeave:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.leave"}))},conversationsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/conversations.list"}))},conversationsMark:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.mark"}))},conversationsMembers:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/conversations.members"}))},conversationsOpen:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.open"}))},conversationsRename:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.rename"}))},conversationsReplies:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/conversations.replies"}))},conversationsSetPurpose:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.setPurpose"}))},conversationsSetTopic:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.setTopic"}))},conversationsUnarchive:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/conversations.unarchive"}))},dialogOpen:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/dialog.open"}))},dndEndDnd:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).post(i({},e,{url:"/dnd.endDnd"}))},dndEndSnooze:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).post(i({},e,{url:"/dnd.endSnooze"}))},dndInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/dnd.info"}))},dndSetSnooze:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/dnd.setSnooze"}))},dndTeamInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/dnd.teamInfo"}))},emojiList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/emoji.list"}))},filesCommentsDelete:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.comments.delete"}))},filesDelete:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.delete"}))},filesInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/files.info"}))},filesList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/files.list"}))},filesRemoteAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.remote.add"}))},filesRemoteInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/files.remote.info"}))},filesRemoteList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/files.remote.list"}))},filesRemoteRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.remote.remove"}))},filesRemoteShare:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/files.remote.share"}))},filesRemoteUpdate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.remote.update"}))},filesRevokePublicUrl:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.revokePublicURL"}))},filesSharedPublicUrl:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.sharedPublicURL"}))},filesUpload:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/files.upload"}))},migrationExchange:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/migration.exchange"}))},oauthAccess:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/oauth.access"}))},oauthToken:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/oauth.token"}))},oauthV2Access:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/oauth.v2.access"}))},pinsAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/pins.add"}))},pinsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/pins.list"}))},pinsRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/pins.remove"}))},reactionsAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/reactions.add"}))},reactionsGet:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/reactions.get"}))},reactionsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/reactions.list"}))},reactionsRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/reactions.remove"}))},remindersAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/reminders.add"}))},remindersComplete:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/reminders.complete"}))},remindersDelete:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/reminders.delete"}))},remindersInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/reminders.info"}))},remindersList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/reminders.list"}))},rtmConnect:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/rtm.connect"}))},searchMessages:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/search.messages"}))},starsAdd:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/stars.add"}))},starsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/stars.list"}))},starsRemove:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/stars.remove"}))},teamAccessLogs:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/team.accessLogs"}))},teamBillableInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/team.billableInfo"}))},teamInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/team.info"}))},teamIntegrationLogs:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/team.integrationLogs"}))},teamProfileGet:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/team.profile.get"}))},usergroupsCreate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/usergroups.create"}))},usergroupsDisable:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/usergroups.disable"}))},usergroupsEnable:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/usergroups.enable"}))},usergroupsList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/usergroups.list"}))},usergroupsUpdate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/usergroups.update"}))},usergroupsUsersList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/usergroups.users.list"}))},usergroupsUsersUpdate:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/usergroups.users.update"}))},usersConversations:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.conversations"}))},usersDeletePhoto:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/users.deletePhoto"}))},usersGetPresence:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.getPresence"}))},usersIdentity:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.identity"}))},usersInfo:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.info"}))},usersList:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.list"}))},usersLookupByEmail:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.lookupByEmail"}))},usersProfileGet:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/users.profile.get"}))},usersProfileSet:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/users.profile.set"}))},usersSetActive:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).post(i({},e,{url:"/users.setActive"}))},usersSetPhoto:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/users.setPhoto"}))},usersSetPresence:function(e){var a;return(null!=(a=null==e?void 0:e.client)?a:s).post(i({},e,t.urlSearchParamsBodySerializer,{headers:i({"Content-Type":"application/x-www-form-urlencoded"},null==e?void 0:e.headers),url:"/users.setPresence"}))},viewsOpen:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/views.open"}))},viewsPublish:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/views.publish"}))},viewsPush:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/views.push"}))},viewsUpdate:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/views.update"}))},workflowsStepCompleted:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/workflows.stepCompleted"}))},workflowsStepFailed:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/workflows.stepFailed"}))},workflowsUpdateStep:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:s).get(i({},e,{url:"/workflows.updateStep"}))}},d=a.z.array(a.z.record(a.z.union([a.z.unknown(),a.z.string()])).and(a.z.object({type:a.z.string()}))),z=a.z.string(),u=a.z.string(),p=a.z.string(),_=a.z.string(),m=a.z.string(),h=a.z.string(),g=a.z.string(),v=a.z.string(),b=a.z.string(),f=a.z.string(),k=a.z.string(),j=a.z.string(),S=a.z.boolean(),y=a.z.boolean(),w=a.z.string(),R=a.z.record(a.z.unknown()),q=a.z.string(),E=a.z.string(),C=a.z.string(),D=a.z.string(),A=a.z.string(),P=a.z.string(),L=a.z.string(),I=a.z.object({app_id:z,deleted:a.z.boolean(),icons:a.z.object({image_36:a.z.string(),image_48:a.z.string(),image_72:a.z.string()}),id:u,name:a.z.string(),team_id:C,updated:a.z.number()}),x=a.z.object({accepted_user:P.optional(),created:a.z.number(),creator:P,id:_,is_archived:a.z.boolean().optional(),is_channel:a.z.boolean(),is_frozen:a.z.boolean().optional(),is_general:a.z.boolean().optional(),is_member:a.z.boolean().optional(),is_moved:a.z.number().optional(),is_mpim:a.z.boolean(),is_non_threadable:a.z.boolean().optional(),is_org_shared:a.z.boolean(),is_pending_ext_shared:a.z.boolean().optional(),is_private:a.z.boolean(),is_read_only:a.z.boolean().optional(),is_shared:a.z.boolean(),is_thread_only:a.z.boolean().optional(),last_read:A.optional(),latest:a.z.unknown().optional(),members:a.z.array(P),name:a.z.string(),name_normalized:a.z.string(),num_members:a.z.number().optional(),pending_shared:a.z.array(C).optional(),previous_names:a.z.array(m).optional(),priority:a.z.number().optional(),purpose:a.z.object({creator:D,last_set:a.z.number(),value:a.z.string()}),topic:a.z.object({creator:D,last_set:a.z.number(),value:a.z.string()}),unlinked:a.z.number().optional(),unread_count:a.z.number().optional(),unread_count_display:a.z.number().optional()}),U=a.z.record(a.z.union([a.z.unknown(),a.z.number(),a.z.string(),P])).and(a.z.object({count:a.z.number(),name:a.z.string(),users:a.z.array(P)})),T=a.z.array(a.z.unknown()),G=a.z.unknown(),O=a.z.object({enterprise_id:v,enterprise_name:b,id:f,is_admin:a.z.boolean(),is_owner:a.z.boolean(),teams:a.z.array(C)}),B=a.z.object({current:a.z.array(a.z.object({date_started:a.z.number(),team_id:a.z.string()})),date_updated:a.z.number()}),M=a.z.object({channels:a.z.array(_).optional(),comments_count:a.z.number().optional(),created:a.z.number().optional(),date_delete:a.z.number().optional(),display_as_bot:a.z.boolean().optional(),editable:a.z.boolean().optional(),editor:P.optional(),external_id:a.z.string().optional(),external_type:a.z.string().optional(),external_url:a.z.string().optional(),filetype:a.z.string().optional(),groups:a.z.array(j).optional(),has_rich_preview:a.z.boolean().optional(),id:k.optional(),image_exif_rotation:a.z.number().optional(),ims:a.z.array(g).optional(),is_external:a.z.boolean().optional(),is_public:a.z.boolean().optional(),is_starred:a.z.boolean().optional(),is_tombstoned:a.z.boolean().optional(),last_editor:P.optional(),mimetype:a.z.string().optional(),mode:a.z.string().optional(),name:a.z.string().optional(),non_owner_editable:a.z.boolean().optional(),num_stars:a.z.number().optional(),original_h:a.z.number().optional(),original_w:a.z.number().optional(),permalink:a.z.string().optional(),permalink_public:a.z.string().optional(),pinned_info:R.optional(),pinned_to:a.z.array(p).optional(),pretty_type:a.z.string().optional(),preview:a.z.string().optional(),public_url_shared:a.z.boolean().optional(),reactions:a.z.array(U).optional(),shares:a.z.object({private:a.z.unknown().optional(),public:a.z.unknown().optional()}).optional(),size:a.z.number().optional(),source_team:C.optional(),state:a.z.string().optional(),thumb_1024:a.z.string().optional(),thumb_1024_h:a.z.number().optional(),thumb_1024_w:a.z.number().optional(),thumb_160:a.z.string().optional(),thumb_360:a.z.string().optional(),thumb_360_h:a.z.number().optional(),thumb_360_w:a.z.number().optional(),thumb_480:a.z.string().optional(),thumb_480_h:a.z.number().optional(),thumb_480_w:a.z.number().optional(),thumb_64:a.z.string().optional(),thumb_720:a.z.string().optional(),thumb_720_h:a.z.number().optional(),thumb_720_w:a.z.number().optional(),thumb_80:a.z.string().optional(),thumb_800:a.z.string().optional(),thumb_800_h:a.z.number().optional(),thumb_800_w:a.z.number().optional(),thumb_960:a.z.string().optional(),thumb_960_h:a.z.number().optional(),thumb_960_w:a.z.number().optional(),thumb_tiny:a.z.string().optional(),timestamp:a.z.number().optional(),title:a.z.string().optional(),updated:a.z.number().optional(),url_private:a.z.string().optional(),url_private_download:a.z.string().optional(),user:a.z.string().optional(),user_team:C.optional(),username:a.z.string().optional()}),V=a.z.object({image_102:a.z.string().optional(),image_132:a.z.string().optional(),image_230:a.z.string().optional(),image_34:a.z.string().optional(),image_44:a.z.string().optional(),image_68:a.z.string().optional(),image_88:a.z.string().optional(),image_default:a.z.boolean().optional()}),Q=a.z.object({comment:a.z.string(),created:a.z.number(),id:h,is_intro:a.z.boolean(),is_starred:a.z.boolean().optional(),num_stars:a.z.number().optional(),pinned_info:R.optional(),pinned_to:a.z.array(p).optional(),reactions:a.z.array(U).optional(),timestamp:a.z.number(),user:P}),F=a.z.object({avatar_hash:a.z.string(),display_name:a.z.string(),display_name_normalized:a.z.string().optional(),first_name:a.z.string().nullable(),image_72:a.z.string(),is_restricted:a.z.boolean(),is_ultra_restricted:a.z.boolean(),name:a.z.string(),real_name:a.z.string(),real_name_normalized:a.z.string().optional(),team:L}),N=a.z.object({count:a.z.number().optional(),page:a.z.number(),pages:a.z.number().optional(),per_page:a.z.number().optional(),spill:a.z.number().optional(),total:a.z.number()}),J=a.z.object({email:a.z.string(),id:a.z.string()}),K=a.z.object({complete_ts:a.z.number().optional(),creator:P,id:q,recurring:a.z.boolean(),text:a.z.string(),time:a.z.number().optional(),user:P}),Z=a.z.object({excluded_ids:a.z.array(a.z.unknown()).optional(),ids:a.z.array(a.z.unknown()),wildcard:a.z.boolean().optional()}),Y=a.z.unknown(),W=a.z.array(a.z.string()),H=a.z.object({auto_provision:a.z.boolean(),auto_type:a.z.unknown(),channel_count:a.z.number().optional(),created_by:P,date_create:a.z.number(),date_delete:a.z.number(),date_update:a.z.number(),deleted_by:a.z.unknown(),description:a.z.string(),enterprise_subteam_id:a.z.string(),handle:a.z.string(),id:E,is_external:a.z.boolean(),is_subteam:a.z.boolean(),is_usergroup:a.z.boolean(),name:a.z.string(),prefs:a.z.object({channels:a.z.array(_),groups:a.z.array(j)}),team_id:C,updated_by:P,user_count:a.z.number().optional(),users:a.z.array(P).optional()}),X=a.z.object({archived:a.z.boolean().optional(),avatar_base_url:a.z.string().optional(),created:a.z.number().optional(),date_create:a.z.number().optional(),deleted:a.z.boolean().optional(),description:a.z.string().optional().nullable(),discoverable:a.z.unknown().optional(),domain:a.z.string(),email_domain:a.z.string(),enterprise_id:v.optional(),enterprise_name:b.optional(),external_org_migrations:B.optional(),has_compliance_export:a.z.boolean().optional(),icon:V,id:L,is_assigned:a.z.boolean().optional(),is_enterprise:a.z.number().optional(),is_over_storage_limit:a.z.boolean().optional(),limit_ts:a.z.number().optional(),locale:a.z.string().optional(),messages_count:a.z.number().optional(),msg_edit_window_mins:a.z.number().optional(),name:a.z.string(),over_integrations_limit:a.z.boolean().optional(),over_storage_limit:a.z.boolean().optional(),pay_prod_cur:a.z.string().optional(),plan:a.z.union([a.z.literal(""),a.z.literal("std"),a.z.literal("plus"),a.z.literal("compliance"),a.z.literal("enterprise")]).optional(),primary_owner:J.optional(),sso_provider:a.z.object({label:a.z.string().optional(),name:a.z.string().optional(),type:a.z.string().optional()}).optional()}),$=a.z.union([a.z.literal(""),a.z.literal("std"),a.z.literal("plus"),a.z.literal("compliance"),a.z.literal("enterprise")]),ee=a.z.object({field_name:a.z.string().optional().nullable(),hint:a.z.string(),id:a.z.string(),is_hidden:a.z.boolean().optional(),label:a.z.string(),options:a.z.unknown().optional(),ordering:a.z.number(),possible_values:a.z.array(a.z.string()).optional().nullable(),type:a.z.union([a.z.literal("text"),a.z.literal("date"),a.z.literal("link"),a.z.literal("mailto"),a.z.literal("options_list"),a.z.literal("user")])}),te=a.z.union([a.z.literal("text"),a.z.literal("date"),a.z.literal("link"),a.z.literal("mailto"),a.z.literal("options_list"),a.z.literal("user")]),ae=a.z.object({is_custom:a.z.boolean().optional().nullable(),is_multiple_entry:a.z.boolean().optional().nullable(),is_protected:a.z.boolean().optional().nullable(),is_scim:a.z.boolean().optional().nullable()}),ne=a.z.unknown(),ie=a.z.object({always_active:a.z.boolean().optional(),api_app_id:w.optional(),avatar_hash:a.z.string(),bot_id:u.optional(),display_name:a.z.string(),display_name_normalized:a.z.string(),email:a.z.string().optional().nullable(),fields:a.z.union([a.z.record(a.z.unknown()),a.z.array(a.z.unknown())]).nullable(),first_name:a.z.string().optional().nullable(),guest_expiration_ts:a.z.number().optional().nullable(),guest_invited_by:a.z.string().optional().nullable(),image_1024:a.z.string().optional().nullable(),image_192:a.z.string().optional().nullable(),image_24:a.z.string().optional().nullable(),image_32:a.z.string().optional().nullable(),image_48:a.z.string().optional().nullable(),image_512:a.z.string().optional().nullable(),image_72:a.z.string().optional().nullable(),image_original:a.z.string().optional().nullable(),is_app_user:a.z.boolean().optional(),is_custom_image:a.z.boolean().optional(),is_restricted:a.z.boolean().optional().nullable(),is_ultra_restricted:a.z.boolean().optional().nullable(),last_avatar_image_hash:a.z.string().optional(),last_name:a.z.string().optional().nullable(),memberships_count:a.z.number().optional(),name:a.z.string().optional().nullable(),phone:a.z.string(),pronouns:a.z.string().optional(),real_name:a.z.string(),real_name_normalized:a.z.string(),skype:a.z.string(),status_default_emoji:a.z.string().optional(),status_default_text:a.z.string().optional(),status_default_text_canonical:a.z.string().optional().nullable(),status_emoji:a.z.string(),status_expiration:a.z.number().optional(),status_text:a.z.string(),status_text_canonical:a.z.string().optional().nullable(),team:L.optional(),title:a.z.string(),updated:a.z.number().optional(),user_id:a.z.string().optional(),username:a.z.string().optional().nullable()}),re=a.z.object({body:a.z.object({app_id:a.z.string().optional(),request_id:a.z.string().optional(),team_id:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),oe=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),le=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),se=a.z.object({query:a.z.object({cursor:a.z.string().optional(),enterprise_id:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string().optional(),token:a.z.string()})}),ce=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),de=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ze=a.z.object({query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string().optional(),token:a.z.string()})}),ue=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),pe=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),_e=a.z.object({body:a.z.object({app_id:a.z.string().optional(),request_id:a.z.string().optional(),team_id:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),me=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),he=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ge=a.z.object({query:a.z.object({cursor:a.z.string().optional(),enterprise_id:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string().optional(),token:a.z.string()})}),ve=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),be=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),fe=a.z.object({body:a.z.object({channel_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ke=a.z.object({ok:y}),je=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("default_org_wide_channel"),a.z.literal("already_archived"),a.z.literal("cant_archive_general"),a.z.literal("restricted_action"),a.z.literal("could_not_archive_channel")]),ok:S}),Se=a.z.object({body:a.z.object({channel_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ye=a.z.object({ok:y}),we=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("restricted_action"),a.z.literal("name_taken"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("default_org_wide_channel"),a.z.literal("method_not_supported_for_channel_type"),a.z.literal("could_not_convert_channel"),a.z.literal("external_channel_migrating")]),ok:S}),Re=a.z.object({body:a.z.object({description:a.z.string().optional(),is_private:a.z.boolean(),name:a.z.string(),org_wide:a.z.boolean().optional(),team_id:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),qe=a.z.object({channel_id:_.optional(),ok:y}),Ee=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("name_taken"),a.z.literal("restricted_action"),a.z.literal("team_not_found"),a.z.literal("invalid_team"),a.z.literal("invalid_name"),a.z.literal("could_not_create_channel"),a.z.literal("team_id_or_org_required")]),ok:S}),Ce=a.z.object({body:a.z.object({channel_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),De=a.z.object({ok:y}),Ae=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("not_an_admin"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("default_org_wide_channel"),a.z.literal("restricted_action"),a.z.literal("could_not_delete_channel"),a.z.literal("missing_scope")]),ok:S}),Pe=a.z.object({body:a.z.object({channel_id:a.z.string(),leaving_team_ids:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),Le=a.z.object({ok:y}),Ie=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("not_an_admin"),a.z.literal("not_an_enterprise"),a.z.literal("channel_not_found"),a.z.literal("not_supported"),a.z.literal("team_not_found"),a.z.literal("restricted_action"),a.z.literal("missing_scope"),a.z.literal("leaving_team_not_in_channel"),a.z.literal("no_teams_to_disconnect"),a.z.literal("leaving_team_required"),a.z.literal("cannot_kick_team"),a.z.literal("cannot_kick_home_team")]),ok:S}),xe=a.z.object({query:a.z.object({channel_ids:a.z.string().optional(),cursor:a.z.string().optional(),limit:a.z.number().optional(),team_ids:a.z.string().optional(),token:a.z.string()})}),Ue=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Te=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ge=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({channel_id:a.z.string()})}),Oe=a.z.object({ok:y,prefs:a.z.object({can_thread:a.z.object({type:a.z.array(a.z.string()).optional(),user:a.z.array(a.z.string()).optional()}).optional(),who_can_post:a.z.object({type:a.z.array(a.z.string()).optional(),user:a.z.array(a.z.string()).optional()}).optional()}).optional()}),Be=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("not_an_admin"),a.z.literal("not_an_enterprise"),a.z.literal("restricted_action"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("could_not_get_conversation_prefs")]),ok:S}),Me=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({channel_id:a.z.string(),cursor:a.z.string().optional(),limit:a.z.number().optional()})}),Ve=a.z.object({ok:y,response_metadata:a.z.object({next_cursor:a.z.string()}).optional(),team_ids:a.z.array(C)}),Qe=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("unsupported_team_type"),a.z.literal("restricted_action"),a.z.literal("could_not_get_teams"),a.z.literal("invalid_cursor"),a.z.literal("invalid_limit")]),ok:S}),Fe=a.z.object({body:a.z.object({channel_id:a.z.string(),user_ids:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Ne=a.z.object({ok:y}),Je=a.z.record(a.z.union([a.z.unknown(),a.z.string(),S])).and(a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("default_org_wide_channel"),a.z.literal("restricted_action"),a.z.literal("user_must_be_admin"),a.z.literal("failed_for_some_users")]),ok:S})),Ke=a.z.object({body:a.z.object({channel_id:a.z.string(),name:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Ze=a.z.object({ok:y}),Ye=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("restricted_action"),a.z.literal("could_not_rename_channel"),a.z.literal("default_org_wide_channel"),a.z.literal("name_taken")]),ok:S}),We=a.z.object({body:a.z.object({channel_id:a.z.string(),group_id:a.z.string(),team_id:a.z.string().optional(),token:a.z.string()})}),He=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Xe=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),$e=a.z.object({query:a.z.object({channel_id:a.z.string(),team_id:a.z.string().optional(),token:a.z.string()})}),et=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),tt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),at=a.z.object({body:a.z.object({channel_id:a.z.string(),group_id:a.z.string(),team_id:a.z.string(),token:a.z.string()})}),nt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),it=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),rt=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),query:a.z.string().optional(),search_channel_types:a.z.string().optional(),sort:a.z.string().optional(),sort_dir:a.z.string().optional(),team_ids:a.z.string().optional()}).optional()}),ot=a.z.object({channels:a.z.array(x),next_cursor:a.z.string()}),lt=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("not_an_admin"),a.z.literal("not_an_enterprise"),a.z.literal("team_not_found"),a.z.literal("not_allowed"),a.z.literal("invalid_auth"),a.z.literal("invalid_cursor"),a.z.literal("invalid_search_channel_type"),a.z.literal("invalid_sort"),a.z.literal("invalid_sort_dir")]),ok:S}),st=a.z.object({body:a.z.object({channel_id:a.z.string(),prefs:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ct=a.z.object({ok:y}),dt=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("not_an_admin"),a.z.literal("channel_not_found"),a.z.literal("channel_type_not_supported"),a.z.literal("restricted_action"),a.z.literal("missing_scope"),a.z.literal("could_not_set_channel_pref"),a.z.literal("default_org_wide_channel")]),ok:S}),zt=a.z.object({body:a.z.object({channel_id:a.z.string(),org_channel:a.z.boolean().optional(),target_team_ids:a.z.string().optional(),team_id:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),ut=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),pt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),_t=a.z.object({body:a.z.object({channel_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),mt=a.z.object({ok:y}),ht=a.z.object({error:a.z.union([a.z.literal("feature_not_enabled"),a.z.literal("channel_not_found"),a.z.literal("channel_not_archived"),a.z.literal("channel_type_not_supported"),a.z.literal("restricted_action"),a.z.literal("could_not_unarchive_channel"),a.z.literal("default_org_wide_channel"),a.z.literal("missing_scope")]),ok:S}),gt=a.z.object({body:a.z.object({name:a.z.string(),token:a.z.string(),url:a.z.string()})}),vt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),bt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ft=a.z.object({body:a.z.object({alias_for:a.z.string(),name:a.z.string(),token:a.z.string()})}),kt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),jt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),St=a.z.object({query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),token:a.z.string()})}),yt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),wt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Rt=a.z.object({body:a.z.object({name:a.z.string(),token:a.z.string()})}),qt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Et=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ct=a.z.object({body:a.z.object({name:a.z.string(),new_name:a.z.string(),token:a.z.string()})}),Dt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),At=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Pt=a.z.object({body:a.z.object({invite_request_id:a.z.string(),team_id:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),Lt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),It=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),xt=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string().optional()}).optional()}),Ut=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Tt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Gt=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string().optional()}).optional()}),Ot=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Bt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Mt=a.z.object({body:a.z.object({invite_request_id:a.z.string(),team_id:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),Vt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Qt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ft=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string().optional()}).optional()}),Nt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Jt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Kt=a.z.object({query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string(),token:a.z.string()})}),Zt=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Yt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Wt=a.z.object({body:a.z.object({team_description:a.z.string().optional(),team_discoverability:a.z.string().optional(),team_domain:a.z.string(),team_name:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Ht=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Xt=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),$t=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional()}).optional()}),ea=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ta=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),aa=a.z.object({query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string(),token:a.z.string()})}),na=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ia=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ra=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({team_id:a.z.string()})}),oa=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),la=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),sa=a.z.object({body:a.z.object({channel_ids:a.z.string(),team_id:a.z.string(),token:a.z.string()})}),ca=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),da=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),za=a.z.object({body:a.z.object({description:a.z.string(),team_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ua=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),pa=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),_a=a.z.object({body:a.z.object({discoverability:a.z.string(),team_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ma=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ha=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ga=a.z.object({body:a.z.object({image_url:a.z.string(),team_id:a.z.string(),token:a.z.string()})}),va=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ba=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),fa=a.z.object({body:a.z.object({name:a.z.string(),team_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ka=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ja=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Sa=a.z.object({body:a.z.object({channel_ids:a.z.string(),team_id:a.z.string().optional(),usergroup_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ya=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),wa=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ra=a.z.object({body:a.z.object({auto_provision:a.z.boolean().optional(),team_ids:a.z.string(),usergroup_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),qa=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Ea=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ca=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({include_num_members:a.z.boolean().optional(),team_id:a.z.string().optional(),usergroup_id:a.z.string()})}),Da=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Aa=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Pa=a.z.object({body:a.z.object({channel_ids:a.z.string(),usergroup_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),La=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Ia=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),xa=a.z.object({body:a.z.object({channel_ids:a.z.string().optional(),is_restricted:a.z.boolean().optional(),is_ultra_restricted:a.z.boolean().optional(),team_id:a.z.string(),user_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Ua=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Ta=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ga=a.z.object({body:a.z.object({channel_ids:a.z.string(),custom_message:a.z.string().optional(),email:a.z.string(),guest_expiration_ts:a.z.string().optional(),is_restricted:a.z.boolean().optional(),is_ultra_restricted:a.z.boolean().optional(),real_name:a.z.string().optional(),resend:a.z.boolean().optional(),team_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Oa=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Ba=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ma=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),team_id:a.z.string()})}),Va=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Qa=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Fa=a.z.object({body:a.z.object({team_id:a.z.string(),user_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Na=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Ja=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ka=a.z.object({body:a.z.object({session_id:a.z.number(),team_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Za=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Ya=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Wa=a.z.object({body:a.z.object({mobile_only:a.z.boolean().optional(),user_id:a.z.string(),web_only:a.z.boolean().optional()}),headers:a.z.object({token:a.z.string()})}),Ha=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Xa=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),$a=a.z.object({body:a.z.object({team_id:a.z.string(),user_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),en=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),tn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),an=a.z.object({body:a.z.object({expiration_ts:a.z.number(),team_id:a.z.string(),user_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),nn=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),rn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),on=a.z.object({body:a.z.object({team_id:a.z.string(),user_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ln=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),sn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),cn=a.z.object({body:a.z.object({team_id:a.z.string(),user_id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),dn=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),zn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),un=a.z.object({query:a.z.object({error:a.z.string().optional(),foo:a.z.string().optional()}).optional()}),pn=a.z.record(a.z.union([a.z.union([a.z.unknown(),y]),a.z.undefined()])).and(a.z.object({ok:y})),_n=a.z.record(a.z.union([a.z.union([a.z.unknown(),a.z.string(),S]),a.z.undefined()])).and(a.z.object({error:a.z.string(),ok:S})),mn=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({cursor:a.z.string().optional(),event_context:a.z.string(),limit:a.z.number().optional()})}),hn=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),gn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),vn=a.z.object({query:a.z.object({token:a.z.string().optional()}).optional()}),bn=a.z.object({info:a.z.object({app_home:a.z.object({resources:Z.optional(),scopes:W.optional()}),channel:a.z.object({resources:Z.optional(),scopes:W.optional()}),group:a.z.object({resources:Z.optional(),scopes:W.optional()}),im:a.z.object({resources:Z.optional(),scopes:W.optional()}),mpim:a.z.object({resources:Z.optional(),scopes:W.optional()}),team:a.z.object({resources:Z,scopes:W})}),ok:y}),fn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),kn=a.z.object({query:a.z.object({scopes:a.z.string(),token:a.z.string(),trigger_id:a.z.string()})}),jn=a.z.object({ok:y}),Sn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_trigger"),a.z.literal("trigger_exchanged"),a.z.literal("invalid_scope"),a.z.literal("invalid_user"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),yn=a.z.object({query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),token:a.z.string()})}),wn=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y,resources:a.z.array(a.z.object({id:a.z.string().optional(),type:a.z.string().optional()})),response_metadata:a.z.object({next_cursor:a.z.string()}).optional()})),Rn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_cursor"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),qn=a.z.object({query:a.z.object({token:a.z.string()})}),En=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y,scopes:a.z.record(a.z.union([a.z.unknown(),W])).and(a.z.object({app_home:W.optional(),channel:W.optional(),group:W.optional(),im:W.optional(),mpim:W.optional(),team:W.optional(),user:W.optional()}))})),Cn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Dn=a.z.object({query:a.z.object({cursor:a.z.string().optional(),limit:a.z.number().optional(),token:a.z.string()})}),An=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Pn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ln=a.z.object({query:a.z.object({scopes:a.z.string(),token:a.z.string(),trigger_id:a.z.string(),user:a.z.string()})}),In=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),xn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Un=a.z.object({query:a.z.object({client_id:a.z.string().optional(),client_secret:a.z.string().optional(),token:a.z.string().optional()}).optional()}),Tn=a.z.object({ok:y}),Gn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_client_id"),a.z.literal("bad_client_secret"),a.z.literal("client_id_token_mismatch"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),On=a.z.object({query:a.z.object({test:a.z.boolean().optional(),token:a.z.string()})}),Bn=a.z.object({ok:y,revoked:a.z.boolean()}),Mn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Vn=a.z.object({headers:a.z.object({token:a.z.string()})}),Qn=a.z.object({bot_id:u.optional(),is_enterprise_install:a.z.boolean().optional(),ok:y,team:a.z.string(),team_id:C,url:a.z.string(),user:a.z.string(),user_id:P}),Fn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("token_revoked"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),Nn=a.z.object({query:a.z.object({bot:a.z.string().optional(),token:a.z.string()})}),Jn=a.z.object({bot:a.z.object({app_id:z,deleted:a.z.boolean(),icons:a.z.object({image_36:a.z.string(),image_48:a.z.string(),image_72:a.z.string()}),id:u,name:a.z.string(),updated:a.z.number(),user_id:P.optional()}),ok:y}),Kn=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bot_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Zn=a.z.object({body:a.z.object({created_by:a.z.string().optional(),date_start:a.z.number().optional(),desktop_app_join_url:a.z.string().optional(),external_display_id:a.z.string().optional(),external_unique_id:a.z.string(),join_url:a.z.string(),title:a.z.string().optional(),users:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),Yn=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Wn=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Hn=a.z.object({body:a.z.object({duration:a.z.number().optional(),id:a.z.string()}),headers:a.z.object({token:a.z.string()})}),Xn=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),$n=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ei=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({id:a.z.string()})}),ti=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ai=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ni=a.z.object({body:a.z.object({id:a.z.string(),users:a.z.string()}),headers:a.z.object({token:a.z.string()})}),ii=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ri=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),oi=a.z.object({body:a.z.object({id:a.z.string(),users:a.z.string()}),headers:a.z.object({token:a.z.string()})}),li=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),si=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ci=a.z.object({body:a.z.object({desktop_app_join_url:a.z.string().optional(),id:a.z.string(),join_url:a.z.string().optional(),title:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),di=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),zi=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ui=a.z.object({body:a.z.object({as_user:a.z.boolean().optional(),channel:a.z.string().optional(),ts:a.z.number().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),pi=a.z.object({channel:p,ok:y,ts:A}),_i=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("message_not_found"),a.z.literal("channel_not_found"),a.z.literal("cant_delete_message"),a.z.literal("compliance_exports_prevent_deletion"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),mi=a.z.object({body:a.z.object({as_user:a.z.boolean().optional(),channel:a.z.string(),scheduled_message_id:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),hi=a.z.object({ok:y}),gi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_scheduled_message_id"),a.z.literal("channel_not_found"),a.z.literal("bad_token"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("ekm_access_denied"),a.z.literal("missing_scope"),a.z.literal("invalid_arguments"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),vi=a.z.object({query:a.z.object({channel:a.z.string(),message_ts:a.z.string(),token:a.z.string()})}),bi=a.z.object({channel:p,ok:y,permalink:a.z.string()}),fi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("channel_not_found"),a.z.literal("message_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),ki=a.z.object({body:a.z.object({channel:a.z.string().optional(),text:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),ji=a.z.object({channel:p.optional(),ok:y,ts:A.optional()}),Si=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("channel_not_found"),a.z.literal("not_in_channel"),a.z.literal("is_archived"),a.z.literal("msg_too_long"),a.z.literal("no_text"),a.z.literal("rate_limited"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),yi=a.z.object({body:a.z.object({as_user:a.z.boolean().optional(),attachments:a.z.string().optional(),blocks:a.z.string().optional(),channel:a.z.string(),icon_emoji:a.z.string().optional(),icon_url:a.z.string().optional(),link_names:a.z.boolean().optional(),parse:a.z.string().optional(),text:a.z.string().optional(),thread_ts:a.z.string().optional(),user:a.z.string(),username:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),wi=a.z.object({message_ts:A,ok:y}),Ri=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("channel_not_found"),a.z.literal("is_archived"),a.z.literal("msg_too_long"),a.z.literal("no_text"),a.z.literal("restricted_action"),a.z.literal("too_many_attachments"),a.z.literal("user_not_in_channel"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),qi=a.z.object({body:a.z.object({as_user:a.z.string().optional(),attachments:a.z.string().optional(),blocks:a.z.string().optional(),channel:a.z.string(),icon_emoji:a.z.string().optional(),icon_url:a.z.string().optional(),link_names:a.z.boolean().optional(),mrkdwn:a.z.boolean().optional(),parse:a.z.string().optional(),reply_broadcast:a.z.boolean().optional(),text:a.z.string().optional(),thread_ts:a.z.string().optional(),unfurl_links:a.z.boolean().optional(),unfurl_media:a.z.boolean().optional(),username:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),Ei=a.z.object({attachments:a.z.array(a.z.object({fallback:a.z.string().optional(),id:a.z.number(),image_bytes:a.z.number().optional(),image_height:a.z.number().optional(),image_url:a.z.string().optional(),image_width:a.z.number().optional()})).optional(),blocks:d.optional(),bot_id:a.z.unknown().optional(),bot_profile:I.optional(),client_msg_id:a.z.string().optional(),comment:Q.optional(),display_as_bot:a.z.boolean().optional(),file:M.optional(),files:a.z.array(M).optional(),icons:a.z.object({emoji:a.z.string().optional(),image_64:a.z.string().optional()}).optional(),inviter:P.optional(),is_delayed_message:a.z.boolean().optional(),is_intro:a.z.boolean().optional(),is_starred:a.z.boolean().optional(),last_read:A.optional(),latest_reply:A.optional(),name:a.z.string().optional(),old_name:a.z.string().optional(),parent_user_id:P.optional(),permalink:a.z.string().optional(),pinned_to:a.z.array(p).optional(),purpose:a.z.string().optional(),reactions:a.z.array(U).optional(),reply_count:a.z.number().optional(),reply_users:a.z.array(P).optional(),reply_users_count:a.z.number().optional(),source_team:L.optional(),subscribed:a.z.boolean().optional(),subtype:a.z.string().optional(),team:L.optional(),text:a.z.string(),thread_ts:A.optional(),topic:a.z.string().optional(),ts:A,type:a.z.string(),unread_count:a.z.number().optional(),upload:a.z.boolean().optional(),user:P.optional(),user_profile:F.optional(),user_team:L.optional(),username:a.z.string().optional()}),Ci=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("channel_not_found"),a.z.literal("not_in_channel"),a.z.literal("is_archived"),a.z.literal("msg_too_long"),a.z.literal("no_text"),a.z.literal("too_many_attachments"),a.z.literal("rate_limited"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type")]),ok:S}),Di=a.z.object({body:a.z.object({as_user:a.z.boolean().optional(),attachments:a.z.string().optional(),blocks:a.z.string().optional(),channel:a.z.string().optional(),link_names:a.z.boolean().optional(),parse:a.z.string().optional(),post_at:a.z.string().optional(),reply_broadcast:a.z.boolean().optional(),text:a.z.string().optional(),thread_ts:a.z.number().optional(),unfurl_links:a.z.boolean().optional(),unfurl_media:a.z.boolean().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Ai=a.z.object({channel:p,message:a.z.object({bot_id:u,bot_profile:I.optional(),team:C,text:a.z.string(),type:a.z.string(),user:P,username:a.z.string().optional()}),ok:y,post_at:a.z.number(),scheduled_message_id:a.z.string()}),Pi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_time"),a.z.literal("time_in_past"),a.z.literal("time_too_far"),a.z.literal("channel_not_found"),a.z.literal("not_in_channel"),a.z.literal("is_archived"),a.z.literal("msg_too_long"),a.z.literal("no_text"),a.z.literal("restricted_action"),a.z.literal("restricted_action_read_only_channel"),a.z.literal("restricted_action_thread_only_channel"),a.z.literal("restricted_action_non_threadable_channel"),a.z.literal("too_many_attachments"),a.z.literal("rate_limited"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("ekm_access_denied"),a.z.literal("missing_scope"),a.z.literal("invalid_arguments"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Li=a.z.object({headers:a.z.object({token:a.z.string().optional()}).optional(),query:a.z.object({channel:a.z.string().optional(),cursor:a.z.string().optional(),latest:a.z.number().optional(),limit:a.z.number().optional(),oldest:a.z.number().optional()}).optional()}),Ii=a.z.object({ok:y,response_metadata:a.z.object({next_cursor:a.z.string()}),scheduled_messages:a.z.array(a.z.object({channel_id:_,date_created:a.z.number(),id:a.z.string(),post_at:a.z.number(),text:a.z.string().optional()}))}),xi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_channel"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("ekm_access_denied"),a.z.literal("missing_scope"),a.z.literal("invalid_arguments"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Ui=a.z.object({body:a.z.object({channel:a.z.string(),ts:a.z.string(),unfurls:a.z.string().optional(),user_auth_message:a.z.string().optional(),user_auth_required:a.z.boolean().optional(),user_auth_url:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),Ti=a.z.object({ok:y}),Gi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("cannot_unfurl_url"),a.z.literal("cannot_find_service"),a.z.literal("missing_unfurls"),a.z.literal("cannot_prompt"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Oi=a.z.object({body:a.z.object({as_user:a.z.string().optional(),attachments:a.z.string().optional(),blocks:a.z.string().optional(),channel:a.z.string(),link_names:a.z.string().optional(),parse:a.z.string().optional(),text:a.z.string().optional(),ts:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),Bi=a.z.object({channel:a.z.string(),message:a.z.object({attachments:a.z.array(a.z.record(a.z.unknown())).optional(),blocks:a.z.record(a.z.unknown()).optional(),text:a.z.string()}),ok:y,text:a.z.string(),ts:a.z.string()}),Mi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("message_not_found"),a.z.literal("cant_update_message"),a.z.literal("channel_not_found"),a.z.literal("edit_window_closed"),a.z.literal("msg_too_long"),a.z.literal("too_many_attachments"),a.z.literal("rate_limited"),a.z.literal("no_text"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("request_timeout"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("upgrade_required"),a.z.literal("fatal_error"),a.z.literal("is_inactive")]),ok:S}),Vi=a.z.object({body:a.z.object({channel:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Qi=a.z.object({ok:y}),Fi=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("not_supported"),a.z.literal("channel_not_found"),a.z.literal("already_archived"),a.z.literal("cant_archive_general"),a.z.literal("restricted_action"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("user_is_ultra_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("team_added_to_org"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Ni=a.z.object({body:a.z.object({channel:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Ji=a.z.object({already_closed:a.z.boolean().optional(),no_op:a.z.boolean().optional(),ok:y}),Ki=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("channel_not_found"),a.z.literal("user_does_not_own_channel"),a.z.literal("missing_scope"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Zi=a.z.object({body:a.z.object({is_private:a.z.boolean().optional(),name:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Yi=a.z.object({channel:G,ok:y}),Wi=a.z.object({callstack:a.z.string().optional(),detail:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("name_taken"),a.z.literal("restricted_action"),a.z.literal("no_channel"),a.z.literal("invalid_name_required"),a.z.literal("invalid_name_punctuation"),a.z.literal("invalid_name_maxlength"),a.z.literal("invalid_name_specials"),a.z.literal("invalid_name"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Hi=a.z.object({query:a.z.object({channel:a.z.string().optional(),cursor:a.z.string().optional(),inclusive:a.z.boolean().optional(),latest:a.z.number().optional(),limit:a.z.number().optional(),oldest:a.z.number().optional(),token:a.z.string().optional()}).optional()}),Xi=a.z.object({channel_actions_count:a.z.number(),channel_actions_ts:a.z.unknown(),has_more:a.z.boolean(),messages:a.z.array(Ei),ok:y,pin_count:a.z.number()}),$i=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("invalid_ts_latest"),a.z.literal("invalid_ts_oldest"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),er=a.z.object({query:a.z.object({channel:a.z.string().optional(),include_locale:a.z.boolean().optional(),include_num_members:a.z.boolean().optional(),token:a.z.string().optional()}).optional()}),tr=a.z.object({channel:G,ok:y}),ar=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("team_added_to_org"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),nr=a.z.object({body:a.z.object({channel:a.z.string().optional(),users:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),ir=a.z.object({channel:G,ok:y}),rr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("user_not_found"),a.z.literal("no_user"),a.z.literal("cant_invite_self"),a.z.literal("not_in_channel"),a.z.literal("already_in_channel"),a.z.literal("is_archived"),a.z.literal("cant_invite"),a.z.literal("too_many_users"),a.z.literal("ura_max_channels"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("user_is_ultra_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("team_added_to_org"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]).optional(),errors:a.z.array(a.z.object({error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("user_not_found"),a.z.literal("no_user"),a.z.literal("cant_invite_self"),a.z.literal("not_in_channel"),a.z.literal("already_in_channel"),a.z.literal("is_archived"),a.z.literal("cant_invite"),a.z.literal("too_many_users"),a.z.literal("ura_max_channels"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("user_is_ultra_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("team_added_to_org"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),ok:S,user:P.optional()})).optional(),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),or=a.z.object({body:a.z.object({channel:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),lr=a.z.object({channel:G,ok:y,response_metadata:a.z.object({warnings:a.z.array(a.z.string()).optional()}).optional(),warning:a.z.string().optional()}),sr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("is_archived"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("user_is_ultra_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("team_added_to_org"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),cr=a.z.object({body:a.z.object({channel:a.z.string().optional(),user:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),dr=a.z.object({ok:y}),zr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("user_not_found"),a.z.literal("cant_kick_self"),a.z.literal("not_in_channel"),a.z.literal("cant_kick_from_general"),a.z.literal("restricted_action"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),ur=a.z.object({body:a.z.object({channel:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),pr=a.z.object({not_in_channel:a.z.boolean().optional(),ok:y}),_r=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("last_member"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("is_archived"),a.z.literal("cant_leave_general"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("user_is_ultra_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("team_added_to_org"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),mr=a.z.object({query:a.z.object({cursor:a.z.string().optional(),exclude_archived:a.z.boolean().optional(),limit:a.z.number().optional(),token:a.z.string().optional(),types:a.z.string().optional()}).optional()}),hr=a.z.object({channels:a.z.array(G),ok:y,response_metadata:a.z.object({next_cursor:a.z.string()}).optional()}),gr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("missing_scope"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),vr=a.z.object({body:a.z.object({channel:a.z.string().optional(),ts:a.z.number().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),br=a.z.object({ok:y}),fr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("invalid_timestamp"),a.z.literal("not_in_channel"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("not_allowed_token_type")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),kr=a.z.object({query:a.z.object({channel:a.z.string().optional(),cursor:a.z.string().optional(),limit:a.z.number().optional(),token:a.z.string().optional()}).optional()}),jr=a.z.object({members:a.z.array(P),ok:y,response_metadata:a.z.object({next_cursor:a.z.string()})}),Sr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("channel_not_found"),a.z.literal("invalid_limit"),a.z.literal("invalid_cursor"),a.z.literal("fetch_members_failed"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),yr=a.z.object({body:a.z.object({channel:a.z.string().optional(),return_im:a.z.boolean().optional(),users:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),wr=a.z.object({already_open:a.z.boolean().optional(),channel:a.z.unknown(),no_op:a.z.boolean().optional(),ok:y}),Rr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("user_not_found"),a.z.literal("user_not_visible"),a.z.literal("user_disabled"),a.z.literal("users_list_not_supplied"),a.z.literal("not_enough_users"),a.z.literal("too_many_users"),a.z.literal("invalid_user_combination"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("channel_not_found")]),ok:S}),qr=a.z.object({body:a.z.object({channel:a.z.string().optional(),name:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Er=a.z.object({channel:G,ok:y}),Cr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("user_is_restricted"),a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("not_in_channel"),a.z.literal("not_authorized"),a.z.literal("invalid_name"),a.z.literal("name_taken"),a.z.literal("invalid_name_required"),a.z.literal("invalid_name_punctuation"),a.z.literal("invalid_name_maxlength"),a.z.literal("invalid_name_specials"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Dr=a.z.object({query:a.z.object({channel:a.z.string().optional(),cursor:a.z.string().optional(),inclusive:a.z.boolean().optional(),latest:a.z.number().optional(),limit:a.z.number().optional(),oldest:a.z.number().optional(),token:a.z.string().optional(),ts:a.z.number().optional()}).optional()}),Ar=a.z.object({has_more:a.z.boolean().optional(),messages:a.z.array(a.z.unknown()),ok:y}),Pr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("thread_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Lr=a.z.object({body:a.z.object({channel:a.z.string().optional(),purpose:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Ir=a.z.object({channel:G,ok:y}),xr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("not_in_channel"),a.z.literal("is_archived"),a.z.literal("too_long"),a.z.literal("user_is_restricted"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Ur=a.z.object({body:a.z.object({channel:a.z.string().optional(),topic:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Tr=a.z.object({channel:G,ok:y}),Gr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("not_in_channel"),a.z.literal("is_archived"),a.z.literal("too_long"),a.z.literal("user_is_restricted"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Or=a.z.object({body:a.z.object({channel:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Br=a.z.object({ok:y}),Mr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("channel_not_found"),a.z.literal("not_archived"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("user_is_ultra_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("team_added_to_org"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),needed:a.z.string().optional(),ok:S,provided:a.z.string().optional()}),Vr=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({dialog:a.z.string(),trigger_id:a.z.string()})}),Qr=a.z.object({ok:y}),Fr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("validation_errors"),a.z.literal("missing_trigger"),a.z.literal("missing_dialog"),a.z.literal("trigger_exchanged"),a.z.literal("trigger_expired"),a.z.literal("invalid_trigger"),a.z.literal("app_missing_action_url"),a.z.literal("cannot_create_dialog"),a.z.literal("failed_sending_dialog"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Nr=a.z.object({headers:a.z.object({token:a.z.string()})}),Jr=a.z.object({ok:y}),Kr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("unknown_error"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Zr=a.z.object({headers:a.z.object({token:a.z.string()})}),Yr=a.z.object({dnd_enabled:a.z.boolean(),next_dnd_end_ts:a.z.number(),next_dnd_start_ts:a.z.number(),ok:y,snooze_enabled:a.z.boolean()}),Wr=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("snooze_not_active"),a.z.literal("snooze_end_failed"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Hr=a.z.object({query:a.z.object({token:a.z.string().optional(),user:a.z.string().optional()}).optional()}),Xr=a.z.object({dnd_enabled:a.z.boolean(),next_dnd_end_ts:a.z.number(),next_dnd_start_ts:a.z.number(),ok:y,snooze_enabled:a.z.boolean().optional(),snooze_endtime:a.z.number().optional(),snooze_remaining:a.z.number().optional()}),$r=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("user_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),eo=a.z.object({body:a.z.object({num_minutes:a.z.string(),token:a.z.string()})}),to=a.z.object({ok:y,snooze_enabled:a.z.boolean(),snooze_endtime:a.z.number(),snooze_remaining:a.z.number()}),ao=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("missing_duration"),a.z.literal("snooze_failed"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("too_long"),a.z.literal("fatal_error")]),ok:S}),no=a.z.object({query:a.z.object({token:a.z.string().optional(),users:a.z.string().optional()}).optional()}),io=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ro=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),oo=a.z.object({query:a.z.object({token:a.z.string()})}),lo=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),so=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),co=a.z.object({body:a.z.object({file:a.z.string().optional(),id:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),zo=a.z.object({ok:y}),uo=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("cant_delete"),a.z.literal("comment_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),po=a.z.object({body:a.z.object({file:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),_o=a.z.object({ok:y}),mo=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("file_not_found"),a.z.literal("file_deleted"),a.z.literal("cant_delete_file"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),ho=a.z.object({query:a.z.object({count:a.z.string().optional(),cursor:a.z.string().optional(),file:a.z.string().optional(),limit:a.z.number().optional(),page:a.z.string().optional(),token:a.z.string().optional()}).optional()}),go=a.z.object({comments:T,content_html:a.z.unknown().optional(),editor:P.optional(),file:M,ok:y,paging:N.optional(),response_metadata:Y.optional()}),vo=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("file_not_found"),a.z.literal("file_deleted"),a.z.literal("timezone_count_failed"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),bo=a.z.object({query:a.z.object({channel:a.z.string().optional(),count:a.z.string().optional(),page:a.z.string().optional(),show_files_hidden_by_limit:a.z.boolean().optional(),token:a.z.string().optional(),ts_from:a.z.number().optional(),ts_to:a.z.number().optional(),types:a.z.string().optional(),user:a.z.string().optional()}).optional()}),fo=a.z.object({files:a.z.array(M),ok:y,paging:N}),ko=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("user_not_found"),a.z.literal("unknown_type"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),jo=a.z.object({body:a.z.object({external_id:a.z.string().optional(),external_url:a.z.string().optional(),filetype:a.z.string().optional(),indexable_file_contents:a.z.string().optional(),preview_image:a.z.string().optional(),title:a.z.string().optional(),token:a.z.string().optional()}).optional()}),So=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),yo=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),wo=a.z.object({query:a.z.object({external_id:a.z.string().optional(),file:a.z.string().optional(),token:a.z.string().optional()}).optional()}),Ro=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),qo=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Eo=a.z.object({query:a.z.object({channel:a.z.string().optional(),cursor:a.z.string().optional(),limit:a.z.number().optional(),token:a.z.string().optional(),ts_from:a.z.number().optional(),ts_to:a.z.number().optional()}).optional()}),Co=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Do=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ao=a.z.object({body:a.z.object({external_id:a.z.string().optional(),file:a.z.string().optional(),token:a.z.string().optional()}).optional()}),Po=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Lo=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Io=a.z.object({query:a.z.object({channels:a.z.string().optional(),external_id:a.z.string().optional(),file:a.z.string().optional(),token:a.z.string().optional()}).optional()}),xo=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Uo=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),To=a.z.object({body:a.z.object({external_id:a.z.string().optional(),external_url:a.z.string().optional(),file:a.z.string().optional(),filetype:a.z.string().optional(),indexable_file_contents:a.z.string().optional(),preview_image:a.z.string().optional(),title:a.z.string().optional(),token:a.z.string().optional()}).optional()}),Go=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Oo=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Bo=a.z.object({body:a.z.object({file:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Mo=a.z.object({file:M,ok:y}),Vo=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("file_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Qo=a.z.object({body:a.z.object({file:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Fo=a.z.object({file:M,ok:y}),No=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("file_not_found"),a.z.literal("not_allowed"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Jo=a.z.object({body:a.z.object({channels:a.z.string().optional(),content:a.z.string().optional(),file:a.z.string().optional(),filename:a.z.string().optional(),filetype:a.z.string().optional(),initial_comment:a.z.string().optional(),thread_ts:a.z.number().optional(),title:a.z.string().optional(),token:a.z.string().optional()}).optional()}),Ko=a.z.object({file:M,ok:y}),Zo=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("posting_to_general_channel_denied"),a.z.literal("invalid_channel"),a.z.literal("file_uploads_disabled"),a.z.literal("file_uploads_except_images_disabled"),a.z.literal("storage_limit_reached"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),Yo=a.z.object({query:a.z.object({team_id:a.z.string().optional(),to_old:a.z.boolean().optional(),token:a.z.string(),users:a.z.string()})}),Wo=a.z.record(a.z.union([a.z.unknown(),a.z.string(),y,C])).and(a.z.object({enterprise_id:a.z.string(),invalid_user_ids:a.z.array(a.z.string()).optional(),ok:y,team_id:C,user_id_map:a.z.record(a.z.unknown()).optional()})),Ho=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_enterprise_team"),a.z.literal("too_many_users"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Xo=a.z.object({query:a.z.object({client_id:a.z.string().optional(),client_secret:a.z.string().optional(),code:a.z.string().optional(),redirect_uri:a.z.string().optional(),single_channel:a.z.boolean().optional()}).optional()}),$o=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),el=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),tl=a.z.object({query:a.z.object({client_id:a.z.string().optional(),client_secret:a.z.string().optional(),code:a.z.string().optional(),redirect_uri:a.z.string().optional(),single_channel:a.z.boolean().optional()}).optional()}),al=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),nl=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),il=a.z.object({query:a.z.object({client_id:a.z.string().optional(),client_secret:a.z.string().optional(),code:a.z.string(),redirect_uri:a.z.string().optional()})}),rl=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),ol=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ll=a.z.object({body:a.z.object({channel:a.z.string(),timestamp:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),sl=a.z.object({ok:y}),cl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("message_not_found"),a.z.literal("channel_not_found"),a.z.literal("no_item_specified"),a.z.literal("already_pinned"),a.z.literal("permission_denied"),a.z.literal("file_not_shared"),a.z.literal("not_pinnable"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),dl=a.z.object({query:a.z.object({channel:a.z.string(),token:a.z.string()})}),zl=a.z.unknown(),ul=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("channel_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),pl=a.z.object({body:a.z.object({channel:a.z.string(),timestamp:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),_l=a.z.object({ok:y}),ml=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("file_not_found"),a.z.literal("file_comment_not_found"),a.z.literal("message_not_found"),a.z.literal("no_item_specified"),a.z.literal("not_pinned"),a.z.literal("permission_denied"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_typ"),a.z.literal("missing_post_typ"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeou"),a.z.literal("upgrade_required")]),ok:S}),hl=a.z.object({body:a.z.object({channel:a.z.string(),name:a.z.string(),timestamp:a.z.string()}),headers:a.z.object({token:a.z.string()})}),gl=a.z.object({ok:y}),vl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("message_not_found"),a.z.literal("no_item_specified"),a.z.literal("invalid_name"),a.z.literal("already_reacted"),a.z.literal("too_many_emoji"),a.z.literal("too_many_reactions"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),bl=a.z.object({query:a.z.object({channel:a.z.string().optional(),file:a.z.string().optional(),file_comment:a.z.string().optional(),full:a.z.boolean().optional(),timestamp:a.z.string().optional(),token:a.z.string()})}),fl=a.z.record(a.z.unknown()),kl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("file_not_found"),a.z.literal("file_comment_not_found"),a.z.literal("message_not_found"),a.z.literal("no_item_specified"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),jl=a.z.object({query:a.z.object({count:a.z.number().optional(),cursor:a.z.string().optional(),full:a.z.boolean().optional(),limit:a.z.number().optional(),page:a.z.number().optional(),token:a.z.string(),user:a.z.string().optional()})}),Sl=a.z.object({items:a.z.array(a.z.unknown()),ok:y,paging:N.optional(),response_metadata:Y.optional()}),yl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("user_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactiv"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),wl=a.z.object({body:a.z.object({channel:a.z.string().optional(),file:a.z.string().optional(),file_comment:a.z.string().optional(),name:a.z.string(),timestamp:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),Rl=a.z.object({ok:y}),ql=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("file_not_found"),a.z.literal("file_comment_not_found"),a.z.literal("message_not_found"),a.z.literal("no_item_specified"),a.z.literal("invalid_name"),a.z.literal("no_reaction"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),El=a.z.object({body:a.z.object({text:a.z.string(),time:a.z.string(),user:a.z.string().optional()}),headers:a.z.object({token:a.z.string()})}),Cl=a.z.object({ok:y,reminder:K}),Dl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("cannot_parse"),a.z.literal("user_not_found"),a.z.literal("cannot_add_bot"),a.z.literal("cannot_add_slackbot"),a.z.literal("cannot_add_others"),a.z.literal("cannot_add_others_recurring"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Al=a.z.object({body:a.z.object({reminder:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),Pl=a.z.object({ok:y}),Ll=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_found"),a.z.literal("cannot_complete_recurring"),a.z.literal("cannot_complete_others"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Il=a.z.object({body:a.z.object({reminder:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string().optional()}).optional()}),xl=a.z.object({ok:y}),Ul=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Tl=a.z.object({query:a.z.object({reminder:a.z.string().optional(),token:a.z.string().optional()}).optional()}),Gl=a.z.object({ok:y,reminder:K}),Ol=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Bl=a.z.object({query:a.z.object({token:a.z.string().optional()}).optional()}),Ml=a.z.object({ok:y,reminders:a.z.array(K)}),Vl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Ql=a.z.object({query:a.z.object({batch_presence_aware:a.z.boolean().optional(),presence_sub:a.z.boolean().optional(),token:a.z.string()})}),Fl=a.z.object({ok:y,self:a.z.object({id:P,name:a.z.string()}),team:a.z.object({domain:a.z.string(),id:C,name:a.z.string()}),url:a.z.string()}),Nl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Jl=a.z.object({query:a.z.object({count:a.z.number().optional(),highlight:a.z.boolean().optional(),page:a.z.number().optional(),query:a.z.string(),sort:a.z.string().optional(),sort_dir:a.z.string().optional(),token:a.z.string()})}),Kl=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Zl=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Yl=a.z.object({body:a.z.object({channel:a.z.string().optional(),file:a.z.string().optional(),file_comment:a.z.string().optional(),timestamp:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),Wl=a.z.object({ok:y}),Hl=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("message_not_found"),a.z.literal("file_not_found"),a.z.literal("file_comment_not_found"),a.z.literal("channel_not_found"),a.z.literal("no_item_specified"),a.z.literal("already_starred"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Xl=a.z.object({query:a.z.object({count:a.z.string().optional(),cursor:a.z.string().optional(),limit:a.z.number().optional(),page:a.z.string().optional(),token:a.z.string().optional()}).optional()}),$l=a.z.object({items:a.z.array(a.z.unknown()),ok:y,paging:N.optional()}),es=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),ts=a.z.object({body:a.z.object({channel:a.z.string().optional(),file:a.z.string().optional(),file_comment:a.z.string().optional(),timestamp:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),as=a.z.object({ok:y}),ns=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("bad_timestamp"),a.z.literal("message_not_found"),a.z.literal("file_not_found"),a.z.literal("file_comment_not_found"),a.z.literal("channel_not_found"),a.z.literal("no_item_specified"),a.z.literal("not_starred"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),is=a.z.object({query:a.z.object({before:a.z.string().optional(),count:a.z.string().optional(),page:a.z.string().optional(),token:a.z.string()})}),rs=a.z.object({logins:a.z.array(a.z.object({count:a.z.number(),country:a.z.string().nullable(),date_first:a.z.number(),date_last:a.z.number(),ip:a.z.string().nullable(),isp:a.z.string().nullable(),region:a.z.string().nullable(),user_agent:a.z.string(),user_id:P,username:a.z.string()})),ok:y,paging:N}),os=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("paid_only"),a.z.literal("over_pagination_limit"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),ls=a.z.object({query:a.z.object({token:a.z.string(),user:a.z.string().optional()})}),ss=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),cs=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),ds=a.z.object({query:a.z.object({team:a.z.string().optional(),token:a.z.string()})}),zs=a.z.object({ok:y,team:X}),us=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),ps=a.z.object({query:a.z.object({app_id:a.z.string().optional(),change_type:a.z.string().optional(),count:a.z.string().optional(),page:a.z.string().optional(),service_id:a.z.string().optional(),token:a.z.string(),user:a.z.string().optional()})}),_s=a.z.object({logs:a.z.array(a.z.object({admin_app_id:z.optional(),app_id:z,app_type:a.z.string(),change_type:a.z.string(),channel:p.optional(),date:a.z.string(),scope:a.z.string(),service_id:a.z.string().optional(),service_type:a.z.string().optional(),user_id:P,user_name:a.z.string()})),ok:y,paging:N}),ms=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),hs=a.z.object({query:a.z.object({token:a.z.string(),visibility:a.z.string().optional()})}),gs=a.z.object({ok:y,profile:a.z.object({fields:a.z.array(ee)})}),vs=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_typ"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeou"),a.z.literal("upgrade_required")]),ok:S}),bs=a.z.object({body:a.z.object({channels:a.z.string().optional(),description:a.z.string().optional(),handle:a.z.string().optional(),include_count:a.z.boolean().optional(),name:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),fs=a.z.object({ok:y,usergroup:H}),ks=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("permission_denied"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),js=a.z.object({body:a.z.object({include_count:a.z.boolean().optional(),usergroup:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),Ss=a.z.object({ok:y,usergroup:H}),ys=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("permission_denied"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),ws=a.z.object({body:a.z.object({include_count:a.z.boolean().optional(),usergroup:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),Rs=a.z.object({ok:y,usergroup:H}),qs=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_require"),a.z.literal("fatal_error"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),ok:S}),Es=a.z.object({query:a.z.object({include_count:a.z.boolean().optional(),include_disabled:a.z.boolean().optional(),include_users:a.z.boolean().optional(),token:a.z.string()})}),Cs=a.z.object({ok:y,usergroups:a.z.array(H)}),Ds=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_require"),a.z.literal("fatal_error"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),ok:S}),As=a.z.object({body:a.z.object({channels:a.z.string().optional(),description:a.z.string().optional(),handle:a.z.string().optional(),include_count:a.z.boolean().optional(),name:a.z.string().optional(),usergroup:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),Ps=a.z.object({ok:y,usergroup:H}),Ls=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("permission_denied"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_require"),a.z.literal("fatal_error"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),ok:S}),Is=a.z.object({query:a.z.object({include_disabled:a.z.boolean().optional(),token:a.z.string(),usergroup:a.z.string()})}),xs=a.z.object({ok:y,users:a.z.array(P)}),Us=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_require"),a.z.literal("fatal_error"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),ok:S}),Ts=a.z.object({body:a.z.object({include_count:a.z.boolean().optional(),usergroup:a.z.string(),users:a.z.string()}).optional(),headers:a.z.object({token:a.z.string()})}),Gs=a.z.object({ok:y,usergroup:H}),Os=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("permission_denied"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("user_is_restricted"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_require"),a.z.literal("fatal_error"),a.z.literal("missing_charset"),a.z.literal("superfluous_charset")]),ok:S}),Bs=a.z.object({query:a.z.object({cursor:a.z.string().optional(),exclude_archived:a.z.boolean().optional(),limit:a.z.number().optional(),token:a.z.string().optional(),types:a.z.string().optional(),user:a.z.string().optional()}).optional()}),Ms=a.z.record(a.z.union([a.z.unknown(),G,y])).and(a.z.object({channels:a.z.array(G),ok:y,response_metadata:a.z.object({next_cursor:a.z.string()}).optional()})),Vs=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("method_not_supported_for_channel_type"),a.z.literal("missing_scope"),a.z.literal("invalid_types"),a.z.literal("invalid_cursor"),a.z.literal("invalid_limit"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Qs=a.z.object({body:a.z.object({token:a.z.string()})}),Fs=a.z.object({ok:y}),Ns=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Js=a.z.object({query:a.z.object({token:a.z.string(),user:a.z.string().optional()})}),Ks=a.z.record(a.z.union([a.z.unknown(),a.z.boolean(),a.z.number(),y,a.z.string()])).and(a.z.object({auto_away:a.z.boolean().optional(),connection_count:a.z.number().optional(),last_activity:a.z.number().optional(),manual_away:a.z.boolean().optional(),ok:y,online:a.z.boolean().optional(),presence:a.z.string()})),Zs=a.z.record(a.z.union([a.z.union([a.z.unknown(),a.z.string(),S]),a.z.undefined()])).and(a.z.object({error:a.z.string(),ok:S})),Ys=a.z.object({query:a.z.object({token:a.z.string().optional()}).optional()}),Ws=a.z.unknown(),Hs=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),Xs=a.z.object({query:a.z.object({include_locale:a.z.boolean().optional(),token:a.z.string(),user:a.z.string().optional()})}),$s=a.z.record(a.z.union([a.z.unknown(),y,ne])).and(a.z.object({ok:y,user:ne})),ec=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("user_not_found"),a.z.literal("user_not_visible"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required")]),ok:S}),tc=a.z.object({query:a.z.object({cursor:a.z.string().optional(),include_locale:a.z.boolean().optional(),limit:a.z.number().optional(),token:a.z.string().optional()}).optional()}),ac=a.z.object({cache_ts:a.z.number(),members:a.z.array(ne),ok:y,response_metadata:Y.optional()}),nc=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("limit_required"),a.z.literal("invalid_cursor"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),ic=a.z.object({query:a.z.object({email:a.z.string(),token:a.z.string()})}),rc=a.z.record(a.z.union([a.z.unknown(),y,ne])).and(a.z.object({ok:y,user:ne})),oc=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("users_not_found"),a.z.literal("enterprise_is_restricted"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("no_permission"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),lc=a.z.object({query:a.z.object({include_labels:a.z.boolean().optional(),token:a.z.string(),user:a.z.string().optional()})}),sc=a.z.object({ok:y,profile:ie}),cc=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("user_not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),dc=a.z.object({body:a.z.object({name:a.z.string().optional(),profile:a.z.string().optional(),user:a.z.string().optional(),value:a.z.string().optional()}).optional(),headers:a.z.object({token:a.z.string()})}),zc=a.z.object({email_pending:a.z.string().optional(),ok:y,profile:ie,username:a.z.string()}),uc=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("reserved_name"),a.z.literal("invalid_profile"),a.z.literal("profile_set_failed"),a.z.literal("not_admin"),a.z.literal("not_app_admin"),a.z.literal("cannot_update_admin_user"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),pc=a.z.object({headers:a.z.object({token:a.z.string()})}),_c=a.z.object({ok:y}),mc=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("ekm_access_denied"),a.z.literal("missing_scope"),a.z.literal("invalid_arguments"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("request_timeout"),a.z.literal("fatal_error"),a.z.literal("internal_error")]),ok:S}),hc=a.z.object({body:a.z.object({crop_w:a.z.string().optional(),crop_x:a.z.string().optional(),crop_y:a.z.string().optional(),image:a.z.string().optional(),token:a.z.string()})}),gc=a.z.object({ok:y,profile:a.z.object({avatar_hash:a.z.string(),image_1024:a.z.string(),image_192:a.z.string(),image_24:a.z.string(),image_32:a.z.string(),image_48:a.z.string(),image_512:a.z.string(),image_72:a.z.string(),image_original:a.z.string()})}),vc=a.z.object({callstack:a.z.string().optional(),debug_step:a.z.string().optional(),dims:a.z.string().optional(),error:a.z.union([a.z.literal("bad_image"),a.z.literal("too_large"),a.z.literal("too_many_frames"),a.z.literal("not_found"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("user_is_bot"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S,time_ident:a.z.number().optional()}),bc=a.z.object({body:a.z.object({presence:a.z.string()}),headers:a.z.object({token:a.z.string()})}),fc=a.z.object({ok:y}),kc=a.z.object({callstack:a.z.string().optional(),error:a.z.union([a.z.literal("invalid_presence"),a.z.literal("not_authed"),a.z.literal("invalid_auth"),a.z.literal("account_inactive"),a.z.literal("token_revoked"),a.z.literal("no_permission"),a.z.literal("org_login_required"),a.z.literal("invalid_arg_name"),a.z.literal("invalid_array_arg"),a.z.literal("invalid_charset"),a.z.literal("invalid_form_data"),a.z.literal("invalid_post_type"),a.z.literal("missing_post_type"),a.z.literal("team_added_to_org"),a.z.literal("invalid_json"),a.z.literal("json_not_object"),a.z.literal("request_timeout"),a.z.literal("upgrade_required"),a.z.literal("fatal_error")]),ok:S}),jc=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({trigger_id:a.z.string(),view:a.z.string()})}),Sc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),yc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),wc=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({hash:a.z.string().optional(),user_id:a.z.string(),view:a.z.string()})}),Rc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),qc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ec=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({trigger_id:a.z.string(),view:a.z.string()})}),Cc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Dc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ac=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({external_id:a.z.string().optional(),hash:a.z.string().optional(),view:a.z.string().optional(),view_id:a.z.string().optional()}).optional()}),Pc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Lc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Ic=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({outputs:a.z.string().optional(),workflow_step_execute_id:a.z.string()})}),xc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Uc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Tc=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({error:a.z.string(),workflow_step_execute_id:a.z.string()})}),Gc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Oc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Bc=a.z.object({headers:a.z.object({token:a.z.string()}),query:a.z.object({inputs:a.z.string().optional(),outputs:a.z.string().optional(),step_image_url:a.z.string().optional(),step_name:a.z.string().optional(),workflow_step_edit_id:a.z.string()})}),Mc=a.z.record(a.z.union([a.z.unknown(),y])).and(a.z.object({ok:y})),Vc=a.z.record(a.z.union([a.z.unknown(),S])).and(a.z.object({ok:S})),Qc={__proto__:null,adminAppsApproveDataSchema:re,adminAppsApproveErrorSchema:le,adminAppsApproveResponseSchema:oe,adminAppsApprovedListDataSchema:se,adminAppsApprovedListErrorSchema:de,adminAppsApprovedListResponseSchema:ce,adminAppsRequestsListDataSchema:ze,adminAppsRequestsListErrorSchema:pe,adminAppsRequestsListResponseSchema:ue,adminAppsRestrictDataSchema:_e,adminAppsRestrictErrorSchema:he,adminAppsRestrictResponseSchema:me,adminAppsRestrictedListDataSchema:ge,adminAppsRestrictedListErrorSchema:be,adminAppsRestrictedListResponseSchema:ve,adminConversationsArchiveDataSchema:fe,adminConversationsArchiveErrorSchema:je,adminConversationsArchiveResponseSchema:ke,adminConversationsConvertToPrivateDataSchema:Se,adminConversationsConvertToPrivateErrorSchema:we,adminConversationsConvertToPrivateResponseSchema:ye,adminConversationsCreateDataSchema:Re,adminConversationsCreateErrorSchema:Ee,adminConversationsCreateResponseSchema:qe,adminConversationsDeleteDataSchema:Ce,adminConversationsDeleteErrorSchema:Ae,adminConversationsDeleteResponseSchema:De,adminConversationsDisconnectSharedDataSchema:Pe,adminConversationsDisconnectSharedErrorSchema:Ie,adminConversationsDisconnectSharedResponseSchema:Le,adminConversationsEkmListOriginalConnectedChannelInfoDataSchema:xe,adminConversationsEkmListOriginalConnectedChannelInfoErrorSchema:Te,adminConversationsEkmListOriginalConnectedChannelInfoResponseSchema:Ue,adminConversationsGetConversationPrefsDataSchema:Ge,adminConversationsGetConversationPrefsErrorSchema:Be,adminConversationsGetConversationPrefsResponseSchema:Oe,adminConversationsGetTeamsDataSchema:Me,adminConversationsGetTeamsErrorSchema:Qe,adminConversationsGetTeamsResponseSchema:Ve,adminConversationsInviteDataSchema:Fe,adminConversationsInviteErrorSchema:Je,adminConversationsInviteResponseSchema:Ne,adminConversationsRenameDataSchema:Ke,adminConversationsRenameErrorSchema:Ye,adminConversationsRenameResponseSchema:Ze,adminConversationsRestrictAccessAddGroupDataSchema:We,adminConversationsRestrictAccessAddGroupErrorSchema:Xe,adminConversationsRestrictAccessAddGroupResponseSchema:He,adminConversationsRestrictAccessListGroupsDataSchema:$e,adminConversationsRestrictAccessListGroupsErrorSchema:tt,adminConversationsRestrictAccessListGroupsResponseSchema:et,adminConversationsRestrictAccessRemoveGroupDataSchema:at,adminConversationsRestrictAccessRemoveGroupErrorSchema:it,adminConversationsRestrictAccessRemoveGroupResponseSchema:nt,adminConversationsSearchDataSchema:rt,adminConversationsSearchErrorSchema:lt,adminConversationsSearchResponseSchema:ot,adminConversationsSetConversationPrefsDataSchema:st,adminConversationsSetConversationPrefsErrorSchema:dt,adminConversationsSetConversationPrefsResponseSchema:ct,adminConversationsSetTeamsDataSchema:zt,adminConversationsSetTeamsErrorSchema:pt,adminConversationsSetTeamsResponseSchema:ut,adminConversationsUnarchiveDataSchema:_t,adminConversationsUnarchiveErrorSchema:ht,adminConversationsUnarchiveResponseSchema:mt,adminEmojiAddAliasDataSchema:ft,adminEmojiAddAliasErrorSchema:jt,adminEmojiAddAliasResponseSchema:kt,adminEmojiAddDataSchema:gt,adminEmojiAddErrorSchema:bt,adminEmojiAddResponseSchema:vt,adminEmojiListDataSchema:St,adminEmojiListErrorSchema:wt,adminEmojiListResponseSchema:yt,adminEmojiRemoveDataSchema:Rt,adminEmojiRemoveErrorSchema:Et,adminEmojiRemoveResponseSchema:qt,adminEmojiRenameDataSchema:Ct,adminEmojiRenameErrorSchema:At,adminEmojiRenameResponseSchema:Dt,adminInviteRequestsApproveDataSchema:Pt,adminInviteRequestsApproveErrorSchema:It,adminInviteRequestsApproveResponseSchema:Lt,adminInviteRequestsApprovedListDataSchema:xt,adminInviteRequestsApprovedListErrorSchema:Tt,adminInviteRequestsApprovedListResponseSchema:Ut,adminInviteRequestsDeniedListDataSchema:Gt,adminInviteRequestsDeniedListErrorSchema:Bt,adminInviteRequestsDeniedListResponseSchema:Ot,adminInviteRequestsDenyDataSchema:Mt,adminInviteRequestsDenyErrorSchema:Qt,adminInviteRequestsDenyResponseSchema:Vt,adminInviteRequestsListDataSchema:Ft,adminInviteRequestsListErrorSchema:Jt,adminInviteRequestsListResponseSchema:Nt,adminTeamsAdminsListDataSchema:Kt,adminTeamsAdminsListErrorSchema:Yt,adminTeamsAdminsListResponseSchema:Zt,adminTeamsCreateDataSchema:Wt,adminTeamsCreateErrorSchema:Xt,adminTeamsCreateResponseSchema:Ht,adminTeamsListDataSchema:$t,adminTeamsListErrorSchema:ta,adminTeamsListResponseSchema:ea,adminTeamsOwnersListDataSchema:aa,adminTeamsOwnersListErrorSchema:ia,adminTeamsOwnersListResponseSchema:na,adminTeamsSettingsInfoDataSchema:ra,adminTeamsSettingsInfoErrorSchema:la,adminTeamsSettingsInfoResponseSchema:oa,adminTeamsSettingsSetDefaultChannelsDataSchema:sa,adminTeamsSettingsSetDefaultChannelsErrorSchema:da,adminTeamsSettingsSetDefaultChannelsResponseSchema:ca,adminTeamsSettingsSetDescriptionDataSchema:za,adminTeamsSettingsSetDescriptionErrorSchema:pa,adminTeamsSettingsSetDescriptionResponseSchema:ua,adminTeamsSettingsSetDiscoverabilityDataSchema:_a,adminTeamsSettingsSetDiscoverabilityErrorSchema:ha,adminTeamsSettingsSetDiscoverabilityResponseSchema:ma,adminTeamsSettingsSetIconDataSchema:ga,adminTeamsSettingsSetIconErrorSchema:ba,adminTeamsSettingsSetIconResponseSchema:va,adminTeamsSettingsSetNameDataSchema:fa,adminTeamsSettingsSetNameErrorSchema:ja,adminTeamsSettingsSetNameResponseSchema:ka,adminUsergroupsAddChannelsDataSchema:Sa,adminUsergroupsAddChannelsErrorSchema:wa,adminUsergroupsAddChannelsResponseSchema:ya,adminUsergroupsAddTeamsDataSchema:Ra,adminUsergroupsAddTeamsErrorSchema:Ea,adminUsergroupsAddTeamsResponseSchema:qa,adminUsergroupsListChannelsDataSchema:Ca,adminUsergroupsListChannelsErrorSchema:Aa,adminUsergroupsListChannelsResponseSchema:Da,adminUsergroupsRemoveChannelsDataSchema:Pa,adminUsergroupsRemoveChannelsErrorSchema:Ia,adminUsergroupsRemoveChannelsResponseSchema:La,adminUsersAssignDataSchema:xa,adminUsersAssignErrorSchema:Ta,adminUsersAssignResponseSchema:Ua,adminUsersInviteDataSchema:Ga,adminUsersInviteErrorSchema:Ba,adminUsersInviteResponseSchema:Oa,adminUsersListDataSchema:Ma,adminUsersListErrorSchema:Qa,adminUsersListResponseSchema:Va,adminUsersRemoveDataSchema:Fa,adminUsersRemoveErrorSchema:Ja,adminUsersRemoveResponseSchema:Na,adminUsersSessionInvalidateDataSchema:Ka,adminUsersSessionInvalidateErrorSchema:Ya,adminUsersSessionInvalidateResponseSchema:Za,adminUsersSessionResetDataSchema:Wa,adminUsersSessionResetErrorSchema:Xa,adminUsersSessionResetResponseSchema:Ha,adminUsersSetAdminDataSchema:$a,adminUsersSetAdminErrorSchema:tn,adminUsersSetAdminResponseSchema:en,adminUsersSetExpirationDataSchema:an,adminUsersSetExpirationErrorSchema:rn,adminUsersSetExpirationResponseSchema:nn,adminUsersSetOwnerDataSchema:on,adminUsersSetOwnerErrorSchema:sn,adminUsersSetOwnerResponseSchema:ln,adminUsersSetRegularDataSchema:cn,adminUsersSetRegularErrorSchema:zn,adminUsersSetRegularResponseSchema:dn,apiTestDataSchema:un,apiTestErrorSchema:_n,apiTestResponseSchema:pn,appsEventAuthorizationsListDataSchema:mn,appsEventAuthorizationsListErrorSchema:gn,appsEventAuthorizationsListResponseSchema:hn,appsPermissionsInfoDataSchema:vn,appsPermissionsInfoErrorSchema:fn,appsPermissionsInfoResponseSchema:bn,appsPermissionsRequestDataSchema:kn,appsPermissionsRequestErrorSchema:Sn,appsPermissionsRequestResponseSchema:jn,appsPermissionsResourcesListDataSchema:yn,appsPermissionsResourcesListErrorSchema:Rn,appsPermissionsResourcesListResponseSchema:wn,appsPermissionsScopesListDataSchema:qn,appsPermissionsScopesListErrorSchema:Cn,appsPermissionsScopesListResponseSchema:En,appsPermissionsUsersListDataSchema:Dn,appsPermissionsUsersListErrorSchema:Pn,appsPermissionsUsersListResponseSchema:An,appsPermissionsUsersRequestDataSchema:Ln,appsPermissionsUsersRequestErrorSchema:xn,appsPermissionsUsersRequestResponseSchema:In,appsUninstallDataSchema:Un,appsUninstallErrorSchema:Gn,appsUninstallResponseSchema:Tn,authRevokeDataSchema:On,authRevokeErrorSchema:Mn,authRevokeResponseSchema:Bn,authTestDataSchema:Vn,authTestErrorSchema:Fn,authTestResponseSchema:Qn,blocksSchema:d,botsInfoDataSchema:Nn,botsInfoErrorSchema:Kn,botsInfoResponseSchema:Jn,callsAddDataSchema:Zn,callsAddErrorSchema:Wn,callsAddResponseSchema:Yn,callsEndDataSchema:Hn,callsEndErrorSchema:$n,callsEndResponseSchema:Xn,callsInfoDataSchema:ei,callsInfoErrorSchema:ai,callsInfoResponseSchema:ti,callsParticipantsAddDataSchema:ni,callsParticipantsAddErrorSchema:ri,callsParticipantsAddResponseSchema:ii,callsParticipantsRemoveDataSchema:oi,callsParticipantsRemoveErrorSchema:si,callsParticipantsRemoveResponseSchema:li,callsUpdateDataSchema:ci,callsUpdateErrorSchema:zi,callsUpdateResponseSchema:di,chatDeleteDataSchema:ui,chatDeleteErrorSchema:_i,chatDeleteResponseSchema:pi,chatDeleteScheduledMessageDataSchema:mi,chatDeleteScheduledMessageErrorSchema:gi,chatDeleteScheduledMessageResponseSchema:hi,chatGetPermalinkDataSchema:vi,chatGetPermalinkErrorSchema:fi,chatGetPermalinkResponseSchema:bi,chatMeMessageDataSchema:ki,chatMeMessageErrorSchema:Si,chatMeMessageResponseSchema:ji,chatPostEphemeralDataSchema:yi,chatPostEphemeralErrorSchema:Ri,chatPostEphemeralResponseSchema:wi,chatPostMessageDataSchema:qi,chatPostMessageErrorSchema:Ci,chatPostMessageResponseSchema:a.z.object({channel:p,message:Ei,ok:y,ts:A}),chatScheduleMessageDataSchema:Di,chatScheduleMessageErrorSchema:Pi,chatScheduleMessageResponseSchema:Ai,chatScheduledMessagesListDataSchema:Li,chatScheduledMessagesListErrorSchema:xi,chatScheduledMessagesListResponseSchema:Ii,chatUnfurlDataSchema:Ui,chatUnfurlErrorSchema:Gi,chatUnfurlResponseSchema:Ti,chatUpdateDataSchema:Oi,chatUpdateErrorSchema:Mi,chatUpdateResponseSchema:Bi,conversationsArchiveDataSchema:Vi,conversationsArchiveErrorSchema:Fi,conversationsArchiveResponseSchema:Qi,conversationsCloseDataSchema:Ni,conversationsCloseErrorSchema:Ki,conversationsCloseResponseSchema:Ji,conversationsCreateDataSchema:Zi,conversationsCreateErrorSchema:Wi,conversationsCreateResponseSchema:Yi,conversationsHistoryDataSchema:Hi,conversationsHistoryErrorSchema:$i,conversationsHistoryResponseSchema:Xi,conversationsInfoDataSchema:er,conversationsInfoErrorSchema:ar,conversationsInfoResponseSchema:tr,conversationsInviteDataSchema:nr,conversationsInviteErrorSchema:rr,conversationsInviteResponseSchema:ir,conversationsJoinDataSchema:or,conversationsJoinErrorSchema:sr,conversationsJoinResponseSchema:lr,conversationsKickDataSchema:cr,conversationsKickErrorSchema:zr,conversationsKickResponseSchema:dr,conversationsLeaveDataSchema:ur,conversationsLeaveErrorSchema:_r,conversationsLeaveResponseSchema:pr,conversationsListDataSchema:mr,conversationsListErrorSchema:gr,conversationsListResponseSchema:hr,conversationsMarkDataSchema:vr,conversationsMarkErrorSchema:fr,conversationsMarkResponseSchema:br,conversationsMembersDataSchema:kr,conversationsMembersErrorSchema:Sr,conversationsMembersResponseSchema:jr,conversationsOpenDataSchema:yr,conversationsOpenErrorSchema:Rr,conversationsOpenResponseSchema:wr,conversationsRenameDataSchema:qr,conversationsRenameErrorSchema:Cr,conversationsRenameResponseSchema:Er,conversationsRepliesDataSchema:Dr,conversationsRepliesErrorSchema:Pr,conversationsRepliesResponseSchema:Ar,conversationsSetPurposeDataSchema:Lr,conversationsSetPurposeErrorSchema:xr,conversationsSetPurposeResponseSchema:Ir,conversationsSetTopicDataSchema:Ur,conversationsSetTopicErrorSchema:Gr,conversationsSetTopicResponseSchema:Tr,conversationsUnarchiveDataSchema:Or,conversationsUnarchiveErrorSchema:Mr,conversationsUnarchiveResponseSchema:Br,defsAppIdSchema:z,defsBotIdSchema:u,defsChannelIdSchema:_,defsChannelNameSchema:m,defsChannelSchema:p,defsCommentIdSchema:h,defsDmIdSchema:g,defsEnterpriseIdSchema:v,defsEnterpriseNameSchema:b,defsEnterpriseUserIdSchema:f,defsFileIdSchema:k,defsGroupIdSchema:j,defsOkFalseSchema:S,defsOkTrueSchema:y,defsOptionalAppIdSchema:w,defsPinnedInfoSchema:R,defsReminderIdSchema:q,defsSubteamIdSchema:E,defsTeamSchema:C,defsTopicPurposeCreatorSchema:D,defsTsSchema:A,defsUserIdSchema:P,defsWorkspaceIdSchema:L,dialogOpenDataSchema:Vr,dialogOpenErrorSchema:Fr,dialogOpenResponseSchema:Qr,dndEndDndDataSchema:Nr,dndEndDndErrorSchema:Kr,dndEndDndResponseSchema:Jr,dndEndSnoozeDataSchema:Zr,dndEndSnoozeErrorSchema:Wr,dndEndSnoozeResponseSchema:Yr,dndInfoDataSchema:Hr,dndInfoErrorSchema:$r,dndInfoResponseSchema:Xr,dndSetSnoozeDataSchema:eo,dndSetSnoozeErrorSchema:ao,dndSetSnoozeResponseSchema:to,dndTeamInfoDataSchema:no,dndTeamInfoErrorSchema:ro,dndTeamInfoResponseSchema:io,emojiListDataSchema:oo,emojiListErrorSchema:so,emojiListResponseSchema:lo,filesCommentsDeleteDataSchema:co,filesCommentsDeleteErrorSchema:uo,filesCommentsDeleteResponseSchema:zo,filesDeleteDataSchema:po,filesDeleteErrorSchema:mo,filesDeleteResponseSchema:_o,filesInfoDataSchema:ho,filesInfoErrorSchema:vo,filesInfoResponseSchema:go,filesListDataSchema:bo,filesListErrorSchema:ko,filesListResponseSchema:fo,filesRemoteAddDataSchema:jo,filesRemoteAddErrorSchema:yo,filesRemoteAddResponseSchema:So,filesRemoteInfoDataSchema:wo,filesRemoteInfoErrorSchema:qo,filesRemoteInfoResponseSchema:Ro,filesRemoteListDataSchema:Eo,filesRemoteListErrorSchema:Do,filesRemoteListResponseSchema:Co,filesRemoteRemoveDataSchema:Ao,filesRemoteRemoveErrorSchema:Lo,filesRemoteRemoveResponseSchema:Po,filesRemoteShareDataSchema:Io,filesRemoteShareErrorSchema:Uo,filesRemoteShareResponseSchema:xo,filesRemoteUpdateDataSchema:To,filesRemoteUpdateErrorSchema:Oo,filesRemoteUpdateResponseSchema:Go,filesRevokePublicUrlDataSchema:Bo,filesRevokePublicUrlErrorSchema:Vo,filesRevokePublicUrlResponseSchema:Mo,filesSharedPublicUrlDataSchema:Qo,filesSharedPublicUrlErrorSchema:No,filesSharedPublicUrlResponseSchema:Fo,filesUploadDataSchema:Jo,filesUploadErrorSchema:Zo,filesUploadResponseSchema:Ko,migrationExchangeDataSchema:Yo,migrationExchangeErrorSchema:Ho,migrationExchangeResponseSchema:Wo,oauthAccessDataSchema:Xo,oauthAccessErrorSchema:el,oauthAccessResponseSchema:$o,oauthTokenDataSchema:tl,oauthTokenErrorSchema:nl,oauthTokenResponseSchema:al,oauthV2AccessDataSchema:il,oauthV2AccessErrorSchema:ol,oauthV2AccessResponseSchema:rl,objsBotProfileSchema:I,objsChannelSchema:x,objsCommentSchema:Q,objsCommentsSchema:T,objsConversationSchema:G,objsEnterpriseUserSchema:O,objsExternalOrgMigrationsSchema:B,objsFileSchema:M,objsIconSchema:V,objsMessageSchema:Ei,objsPagingSchema:N,objsPrimaryOwnerSchema:J,objsReactionSchema:U,objsReminderSchema:K,objsResourcesSchema:Z,objsResponseMetadataSchema:Y,objsScopesSchema:W,objsSubteamSchema:H,objsTeamProfileFieldOptionSchema:ae,objsTeamProfileFieldSchema:ee,objsTeamSchema:X,objsUserProfileSchema:ie,objsUserProfileShortSchema:F,objsUserSchema:ne,pinsAddDataSchema:ll,pinsAddErrorSchema:cl,pinsAddResponseSchema:sl,pinsListDataSchema:dl,pinsListErrorSchema:ul,pinsListResponseSchema:zl,pinsRemoveDataSchema:pl,pinsRemoveErrorSchema:ml,pinsRemoveResponseSchema:_l,planSchema:$,reactionsAddDataSchema:hl,reactionsAddErrorSchema:vl,reactionsAddResponseSchema:gl,reactionsGetDataSchema:bl,reactionsGetErrorSchema:kl,reactionsGetResponseSchema:fl,reactionsListDataSchema:jl,reactionsListErrorSchema:yl,reactionsListResponseSchema:Sl,reactionsRemoveDataSchema:wl,reactionsRemoveErrorSchema:ql,reactionsRemoveResponseSchema:Rl,remindersAddDataSchema:El,remindersAddErrorSchema:Dl,remindersAddResponseSchema:Cl,remindersCompleteDataSchema:Al,remindersCompleteErrorSchema:Ll,remindersCompleteResponseSchema:Pl,remindersDeleteDataSchema:Il,remindersDeleteErrorSchema:Ul,remindersDeleteResponseSchema:xl,remindersInfoDataSchema:Tl,remindersInfoErrorSchema:Ol,remindersInfoResponseSchema:Gl,remindersListDataSchema:Bl,remindersListErrorSchema:Vl,remindersListResponseSchema:Ml,rtmConnectDataSchema:Ql,rtmConnectErrorSchema:Nl,rtmConnectResponseSchema:Fl,searchMessagesDataSchema:Jl,searchMessagesErrorSchema:Zl,searchMessagesResponseSchema:Kl,starsAddDataSchema:Yl,starsAddErrorSchema:Hl,starsAddResponseSchema:Wl,starsListDataSchema:Xl,starsListErrorSchema:es,starsListResponseSchema:$l,starsRemoveDataSchema:ts,starsRemoveErrorSchema:ns,starsRemoveResponseSchema:as,teamAccessLogsDataSchema:is,teamAccessLogsErrorSchema:os,teamAccessLogsResponseSchema:rs,teamBillableInfoDataSchema:ls,teamBillableInfoErrorSchema:cs,teamBillableInfoResponseSchema:ss,teamInfoDataSchema:ds,teamInfoErrorSchema:us,teamInfoResponseSchema:zs,teamIntegrationLogsDataSchema:ps,teamIntegrationLogsErrorSchema:ms,teamIntegrationLogsResponseSchema:_s,teamProfileGetDataSchema:hs,teamProfileGetErrorSchema:vs,teamProfileGetResponseSchema:gs,typeSchema:te,usergroupsCreateDataSchema:bs,usergroupsCreateErrorSchema:ks,usergroupsCreateResponseSchema:fs,usergroupsDisableDataSchema:js,usergroupsDisableErrorSchema:ys,usergroupsDisableResponseSchema:Ss,usergroupsEnableDataSchema:ws,usergroupsEnableErrorSchema:qs,usergroupsEnableResponseSchema:Rs,usergroupsListDataSchema:Es,usergroupsListErrorSchema:Ds,usergroupsListResponseSchema:Cs,usergroupsUpdateDataSchema:As,usergroupsUpdateErrorSchema:Ls,usergroupsUpdateResponseSchema:Ps,usergroupsUsersListDataSchema:Is,usergroupsUsersListErrorSchema:Us,usergroupsUsersListResponseSchema:xs,usergroupsUsersUpdateDataSchema:Ts,usergroupsUsersUpdateErrorSchema:Os,usergroupsUsersUpdateResponseSchema:Gs,usersConversationsDataSchema:Bs,usersConversationsErrorSchema:Vs,usersConversationsResponseSchema:Ms,usersDeletePhotoDataSchema:Qs,usersDeletePhotoErrorSchema:Ns,usersDeletePhotoResponseSchema:Fs,usersGetPresenceDataSchema:Js,usersGetPresenceErrorSchema:Zs,usersGetPresenceResponseSchema:Ks,usersIdentityDataSchema:Ys,usersIdentityErrorSchema:Hs,usersIdentityResponseSchema:Ws,usersInfoDataSchema:Xs,usersInfoErrorSchema:ec,usersInfoResponseSchema:$s,usersListDataSchema:tc,usersListErrorSchema:nc,usersListResponseSchema:ac,usersLookupByEmailDataSchema:ic,usersLookupByEmailErrorSchema:oc,usersLookupByEmailResponseSchema:rc,usersProfileGetDataSchema:lc,usersProfileGetErrorSchema:cc,usersProfileGetResponseSchema:sc,usersProfileSetDataSchema:dc,usersProfileSetErrorSchema:uc,usersProfileSetResponseSchema:zc,usersSetActiveDataSchema:pc,usersSetActiveErrorSchema:mc,usersSetActiveResponseSchema:_c,usersSetPhotoDataSchema:hc,usersSetPhotoErrorSchema:vc,usersSetPhotoResponseSchema:gc,usersSetPresenceDataSchema:bc,usersSetPresenceErrorSchema:kc,usersSetPresenceResponseSchema:fc,viewsOpenDataSchema:jc,viewsOpenErrorSchema:yc,viewsOpenResponseSchema:Sc,viewsPublishDataSchema:wc,viewsPublishErrorSchema:qc,viewsPublishResponseSchema:Rc,viewsPushDataSchema:Ec,viewsPushErrorSchema:Dc,viewsPushResponseSchema:Cc,viewsUpdateDataSchema:Ac,viewsUpdateErrorSchema:Lc,viewsUpdateResponseSchema:Pc,workflowsStepCompletedDataSchema:Ic,workflowsStepCompletedErrorSchema:Uc,workflowsStepCompletedResponseSchema:xc,workflowsStepFailedDataSchema:Tc,workflowsStepFailedErrorSchema:Oc,workflowsStepFailedResponseSchema:Gc,workflowsUpdateStepDataSchema:Bc,workflowsUpdateStepErrorSchema:Vc,workflowsUpdateStepResponseSchema:Mc};exports.SlackIntegration=function(t){function a(a){var o;return(o=t.call(this,i({},a.config,{authType:e.IntegrationCredentialType.OAUTH,name:"SLACK",logoUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAA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me/taGkC2O3lKau3GMobUeDijwrtwvLF53UxHHq3hHDXig4JRbkxo8TIbsTUSqYTS1kS9uVNSXm3DW/Jr/EcaIk7AHkI/w9ZYCwvglkkZ6C8DTiUIc+DUtHd3ofhNW5DCIH2Sp1vKl8YGolEOZUQTwCohpkcJQ9dwnOLV5j/g6DloqCFaoeb5izsdSgNnOdF6QTuLfih+/jWUIHdVBuLu0ISA1qUipU0zPA2MFikHu9cuO2daYkCsOHFU/SGYodCuPdGnL1Pv2UjwVtMR9rTPHF3sn2+MUzg+/QoB6B/EHrwB5kOBbBkOhTAkulQAEumQwEsmQ4FsGQ6FMCS6VAAS6ZDASyZDgWwZDoUwJLpUABLpkMBLJkOBbBk+m8BAAD//3njsnbZ+6xAAAAAAElFTkSuQmCC"}))||this).categories=["communications"],o.description="Slack is a cloud-based team collaboration tool.",o.availableScopes=[{key:"admin",description:"admin"},{key:"admin.apps:read",description:"admin.apps:read"},{key:"admin.apps:write",description:"admin.apps:write"},{key:"admin.conversations:read",description:"admin.conversations:read"},{key:"admin.conversations:write",description:"admin.conversations:write"},{key:"admin.invites:read",description:"admin.invites:read"},{key:"admin.invites:write",description:"admin.invites:write"},{key:"admin.teams:read",description:"admin.teams:read"},{key:"admin.teams:write",description:"admin.teams:write"},{key:"admin.usergroups:read",description:"admin.usergroups:read"},{key:"admin.usergroups:write",description:"admin.usergroups:write"},{key:"admin.users:read",description:"admin.users:read"},{key:"admin.users:write",description:"admin.users:write"},{key:"authorizations:read",description:"authorizations:read"},{key:"bot",description:"Bot user scope"},{key:"calls:read",description:"calls:read"},{key:"calls:write",description:"calls:write"},{key:"channels:history",description:"channels:history"},{key:"channels:manage",description:"channels:manage"},{key:"channels:read",description:"channels:read"},{key:"channels:write",description:"channels:write"},{key:"chat:write",description:"chat:write"},{key:"chat:write:bot",description:"Author messages as a bot"},{key:"chat:write:user",description:"Author messages as a user"},{key:"conversations:history",description:"conversations:history"},{key:"conversations:read",description:"conversations:read"},{key:"conversations:write",description:"conversations:write"},{key:"dnd:read",description:"dnd:read"},{key:"dnd:write",description:"dnd:write"},{key:"emoji:read",description:"emoji:read"},{key:"files:read",description:"files:read"},{key:"files:write:user",description:"files:write:user"},{key:"groups:history",description:"groups:history"},{key:"groups:read",description:"groups:read"},{key:"groups:write",description:"groups:write"},{key:"identity.basic",description:"identity.basic"},{key:"im:history",description:"im:history"},{key:"im:read",description:"im:read"},{key:"im:write",description:"im:write"},{key:"links:write",description:"links:write"},{key:"mpim:history",description:"mpim:history"},{key:"mpim:read",description:"mpim:read"},{key:"mpim:write",description:"mpim:write"},{key:"none",description:"No scope required"},{key:"pins:read",description:"pins:read"},{key:"pins:write",description:"pins:write"},{key:"reactions:read",description:"reactions:read"},{key:"reactions:write",description:"reactions:write"},{key:"reminders:read",description:"reminders:read"},{key:"reminders:write",description:"reminders:write"},{key:"remote_files:read",description:"remote_files:read"},{key:"remote_files:share",description:"remote_files:share"},{key:"remote_files:write",description:"remote_files:write"},{key:"rtm:stream",description:"rtm:stream"},{key:"search:read",description:"search:read"},{key:"stars:read",description:"stars:read"},{key:"stars:write",description:"stars:write"},{key:"team:read",description:"team:read"},{key:"tokens.basic",description:"tokens.basic"},{key:"usergroups:read",description:"usergroups:read"},{key:"usergroups:write",description:"usergroups:write"},{key:"users.profile:read",description:"users.profile:read"},{key:"users.profile:write",description:"users.profile:write"},{key:"users:read",description:"users:read"},{key:"users:read.email",description:"users:read.email"},{key:"users:write",description:"users:write"},{key:"workflow.steps:execute",description:"workflow.steps:execute"}],o.getApiClient=function(){var e,t=(e=r().mark((function e(t){var a,n,i,l,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.connectionId,e.next=3,null==(a=o.dataLayer)?void 0:a.getConnection({name:o.name,connectionId:n});case 3:if(i=e.sent){e.next=6;break}throw new Error("Connection not found for connectionId: "+n);case 6:return l=o.getAuthenticator(),e.next=9,l.getAuthToken({k_id:i.id});case 9:return s=e.sent.accessToken,o.getBaseClient().client.interceptors.request.use((function(e,t){return e.headers.set("Authorization","Bearer "+s),e})),e.abrupt("return",c);case 14:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(i,r){var o=e.apply(t,a);function l(e){n(o,i,r,l,s,"next",e)}function s(e){n(o,i,r,l,s,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}(),o}var d,z;z=t,(d=a).prototype=Object.create(z.prototype),d.prototype.constructor=d,o(d,z);var u=a.prototype;return u.getClientZodSchema=function(){return Qc},u.getCommentsForClientApis=function(){return l},u.getBaseClient=function(){return s.setConfig({baseUrl:"https://slack.com/api"}),c},u.registerEvents=function(){return this.events={},this.events},u.getAuthenticator=function(){return new e.IntegrationAuth({dataAccess:this.dataLayer,onConnectionCreated:function(){},config:{INTEGRATION_NAME:this.name,AUTH_TYPE:this.config.authType,CLIENT_ID:this.config.CLIENT_ID,CLIENT_SECRET:this.config.CLIENT_SECRET,REDIRECT_URI:this.config.REDIRECT_URI||this.corePresets.redirectURI,SERVER:"https://slack.com/api",AUTHORIZATION_ENDPOINT:"https://slack.com/oauth/v2/authorize",TOKEN_ENDPOINT:"https://slack.com/api/oauth.v2.access",SCOPES:this.config.SCOPES||[]}})},a}(e.Integration);
|
|
2
2
|
//# sourceMappingURL=slack.cjs.production.min.js.map
|