@action-intelligence/cli 0.3.0 → 0.3.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/README.md +7 -0
- package/action.mjs +79 -78
- package/bin/darwin-arm64/action-api +0 -0
- package/bin/darwin-arm64/dependencies.json +9 -9
- package/bin/darwin-x64/action-api +0 -0
- package/bin/darwin-x64/dependencies.json +9 -9
- package/bin/linux-arm64/action-api +0 -0
- package/bin/linux-arm64/dependencies.json +306 -306
- package/bin/linux-x64/action-api +0 -0
- package/bin/linux-x64/dependencies.json +311 -311
- package/bin/windows-arm64/action-api.exe +0 -0
- package/bin/windows-arm64/dependencies.json +9 -9
- package/bin/windows-x64/action-api.exe +0 -0
- package/bin/windows-x64/dependencies.json +9 -9
- package/package.json +1 -1
- /package/bin/darwin-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-APACHE +0 -0
- /package/bin/darwin-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-ISC +0 -0
- /package/bin/darwin-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-MIT +0 -0
- /package/bin/darwin-arm64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.15}/LICENSE +0 -0
- /package/bin/darwin-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
- /package/bin/darwin-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
- /package/bin/darwin-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-APACHE +0 -0
- /package/bin/darwin-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-ISC +0 -0
- /package/bin/darwin-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-MIT +0 -0
- /package/bin/darwin-x64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.15}/LICENSE +0 -0
- /package/bin/darwin-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
- /package/bin/darwin-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
- /package/bin/linux-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-APACHE +0 -0
- /package/bin/linux-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-ISC +0 -0
- /package/bin/linux-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-MIT +0 -0
- /package/bin/linux-arm64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.15}/LICENSE +0 -0
- /package/bin/linux-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
- /package/bin/linux-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
- /package/bin/linux-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-APACHE +0 -0
- /package/bin/linux-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-ISC +0 -0
- /package/bin/linux-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-MIT +0 -0
- /package/bin/linux-x64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.15}/LICENSE +0 -0
- /package/bin/linux-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
- /package/bin/linux-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
- /package/bin/windows-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-APACHE +0 -0
- /package/bin/windows-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-ISC +0 -0
- /package/bin/windows-arm64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-MIT +0 -0
- /package/bin/windows-arm64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.15}/LICENSE +0 -0
- /package/bin/windows-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
- /package/bin/windows-arm64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
- /package/bin/windows-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-APACHE +0 -0
- /package/bin/windows-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-ISC +0 -0
- /package/bin/windows-x64/licenses/{rustls-0.23.41 → rustls-0.23.45}/LICENSE-MIT +0 -0
- /package/bin/windows-x64/licenses/{rustls-webpki-0.103.13 → rustls-webpki-0.103.15}/LICENSE +0 -0
- /package/bin/windows-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-APACHE +0 -0
- /package/bin/windows-x64/licenses/{thread_local-1.1.9 → thread_local-1.1.10}/LICENSE-MIT +0 -0
package/action.mjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{createRequire as
|
|
3
|
-
`)}displayWidth(e){return
|
|
4
|
-
`+" ".repeat(
|
|
5
|
-
${a}`)}boxWrap(e,
|
|
6
|
-
`)}}function
|
|
2
|
+
import{createRequire as ly}from"node:module";var ty=Object.create;var{getPrototypeOf:ny,defineProperty:Do,getOwnPropertyNames:iy}=Object;var ay=Object.prototype.hasOwnProperty;function sy(e){return this[e]}var oy,uy,Zi=(e,r,t)=>{var n=e!=null&&typeof e==="object";if(n){var i=r?oy??=new WeakMap:uy??=new WeakMap,a=i.get(e);if(a)return a}t=e!=null?ty(ny(e)):{};let s=r||!e||!e.__esModule?Do(t,"default",{value:e,enumerable:!0}):t;for(let o of iy(e))if(!ay.call(s,o))Do(s,o,{get:sy.bind(e,o),enumerable:!0});if(n)i.set(e,s);return s};var g=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var It=ly(import.meta.url);var gt=g((dy)=>{class Qi extends Error{constructor(e,r,t){super(t);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}}class Eo extends Qi{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}dy.CommanderError=Qi;dy.InvalidArgumentError=Eo});var Sn=g((hy)=>{var{InvalidArgumentError:py}=gt();class Mo{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(e,r){if(r===this.defaultValue||!Array.isArray(r))return[e];return r.push(e),r}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,t)=>{if(!this.argChoices.includes(r))throw new py(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(r,t);return r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function fy(e){let r=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+r+">":"["+r+"]"}hy.Argument=Mo;hy.humanReadableArgName=fy});var Hi=g((qy)=>{var{humanReadableArgName:gy}=Sn();class Go{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let r=e.commands.filter((n)=>!n._hidden),t=e._getHelpCommand();if(t&&!t._hidden)r.push(t);if(this.sortSubcommands)r.sort((n,i)=>{return n.name().localeCompare(i.name())});return r}compareOptions(e,r){let t=(n)=>{return n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"")};return t(e).localeCompare(t(r))}visibleOptions(e){let r=e.options.filter((n)=>!n.hidden),t=e._getHelpOption();if(t&&!t.hidden){let n=t.short&&e._findOption(t.short),i=t.long&&e._findOption(t.long);if(!n&&!i)r.push(t);else if(t.long&&!i)r.push(e.createOption(t.long,t.description));else if(t.short&&!n)r.push(e.createOption(t.short,t.description))}if(this.sortOptions)r.sort(this.compareOptions);return r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let t=e.parent;t;t=t.parent){let n=t.options.filter((i)=>!i.hidden);r.push(...n)}if(this.sortOptions)r.sort(this.compareOptions);return r}visibleArguments(e){if(e._argsDescription)e.registeredArguments.forEach((r)=>{r.description=r.description||e._argsDescription[r.name()]||""});if(e.registeredArguments.find((r)=>r.description))return e.registeredArguments;return[]}subcommandTerm(e){let r=e.registeredArguments.map((t)=>gy(t)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((t,n)=>{return Math.max(t,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n))))},0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((t,n)=>{return Math.max(t,this.displayWidth(r.styleOptionTerm(r.optionTerm(n))))},0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((t,n)=>{return Math.max(t,this.displayWidth(r.styleOptionTerm(r.optionTerm(n))))},0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((t,n)=>{return Math.max(t,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n))))},0)}commandUsage(e){let r=e._name;if(e._aliases[0])r=r+"|"+e._aliases[0];let t="";for(let n=e.parent;n;n=n.parent)t=n.name()+" "+t;return t+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];if(e.argChoices)r.push(`choices: ${e.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);if(e.defaultValue!==void 0){if(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean")r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(e.presetArg!==void 0&&e.optional)r.push(`preset: ${JSON.stringify(e.presetArg)}`);if(e.envVar!==void 0)r.push(`env: ${e.envVar}`);if(r.length>0){let t=`(${r.join(", ")})`;if(e.description)return`${e.description} ${t}`;return t}return e.description}argumentDescription(e){let r=[];if(e.argChoices)r.push(`choices: ${e.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);if(e.defaultValue!==void 0)r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`);if(r.length>0){let t=`(${r.join(", ")})`;if(e.description)return`${e.description} ${t}`;return t}return e.description}formatItemList(e,r,t){if(r.length===0)return[];return[t.styleTitle(e),...r,""]}groupItems(e,r,t){let n=new Map;return e.forEach((i)=>{let a=t(i);if(!n.has(a))n.set(a,[])}),r.forEach((i)=>{let a=t(i);if(!n.has(a))n.set(a,[]);n.get(a).push(i)}),n}formatHelp(e,r){let t=r.padWidth(e,r),n=r.helpWidth??80;function i(d,c){return r.formatItem(d,t,c,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(e))}`,""],s=r.commandDescription(e);if(s.length>0)a=a.concat([r.boxWrap(r.styleCommandDescription(s),n),""]);let o=r.visibleArguments(e).map((d)=>{return i(r.styleArgumentTerm(r.argumentTerm(d)),r.styleArgumentDescription(r.argumentDescription(d)))});if(a=a.concat(this.formatItemList("Arguments:",o,r)),this.groupItems(e.options,r.visibleOptions(e),(d)=>d.helpGroupHeading??"Options:").forEach((d,c)=>{let p=d.map((h)=>{return i(r.styleOptionTerm(r.optionTerm(h)),r.styleOptionDescription(r.optionDescription(h)))});a=a.concat(this.formatItemList(c,p,r))}),r.showGlobalOptions){let d=r.visibleGlobalOptions(e).map((c)=>{return i(r.styleOptionTerm(r.optionTerm(c)),r.styleOptionDescription(r.optionDescription(c)))});a=a.concat(this.formatItemList("Global Options:",d,r))}return this.groupItems(e.commands,r.visibleCommands(e),(d)=>d.helpGroup()||"Commands:").forEach((d,c)=>{let p=d.map((h)=>{return i(r.styleSubcommandTerm(r.subcommandTerm(h)),r.styleSubcommandDescription(r.subcommandDescription(h)))});a=a.concat(this.formatItemList(c,p,r))}),a.join(`
|
|
3
|
+
`)}displayWidth(e){return Uo(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map((r)=>{if(r==="[options]")return this.styleOptionText(r);if(r==="[command]")return this.styleSubcommandText(r);if(r[0]==="["||r[0]==="<")return this.styleArgumentText(r);return this.styleCommandText(r)}).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map((r)=>{if(r==="[options]")return this.styleOptionText(r);if(r[0]==="["||r[0]==="<")return this.styleArgumentText(r);return this.styleSubcommandText(r)}).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,r,t,n){let a=" ".repeat(2);if(!t)return a+e;let s=e.padEnd(r+e.length-n.displayWidth(e)),o=2,l=(this.helpWidth??80)-r-o-2,d;if(l<this.minWidthToWrap||n.preformatted(t))d=t;else d=n.boxWrap(t,l).replace(/\n/g,`
|
|
4
|
+
`+" ".repeat(r+o));return a+s+" ".repeat(o)+d.replace(/\n/g,`
|
|
5
|
+
${a}`)}boxWrap(e,r){if(r<this.minWidthToWrap)return e;let t=e.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,i=[];return t.forEach((a)=>{let s=a.match(n);if(s===null){i.push("");return}let o=[s.shift()],u=this.displayWidth(o[0]);s.forEach((l)=>{let d=this.displayWidth(l);if(u+d<=r){o.push(l),u+=d;return}i.push(o.join(""));let c=l.trimStart();o=[c],u=this.displayWidth(c)}),i.push(o.join(""))}),i.join(`
|
|
6
|
+
`)}}function Uo(e){let r=/\x1b\[\d*(;\d*)*m/g;return e.replace(r,"")}qy.Help=Go;qy.stripColor=Uo});var xi=g((ky)=>{var{InvalidArgumentError:Ay}=gt();class Fo{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let t=Cy(e);if(this.short=t.shortFlag,this.long=t.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;if(typeof e==="string")r={[e]:!0};return this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,r){if(r===this.defaultValue||!Array.isArray(r))return[e];return r.push(e),r}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,t)=>{if(!this.argChoices.includes(r))throw new Ay(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(r,t);return r},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return Jo(this.name().replace(/^no-/,""));return Jo(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class Ko{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach((r)=>{if(r.negate)this.negativeOptions.set(r.attributeName(),r);else this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,t)=>{if(this.positiveOptions.has(t))this.dualOptions.add(t)})}valueFromOption(e,r){let t=r.attributeName();if(!this.dualOptions.has(t))return!0;let n=this.negativeOptions.get(t).presetArg,i=n!==void 0?n:!1;return r.negate===(i===e)}}function Jo(e){return e.split("-").reduce((r,t)=>{return r+t[0].toUpperCase()+t.slice(1)})}function Cy(e){let r,t,n=/^-[^-]$/,i=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(n.test(a[0]))r=a.shift();if(i.test(a[0]))t=a.shift();if(!r&&n.test(a[0]))r=a.shift();if(!r&&i.test(a[0]))r=t,t=a.shift();if(a[0].startsWith("-")){let s=a[0],o=`option creation failed due to '${s}' in option flags '${e}'`;if(/^-[^-][^-]/.test(s))throw Error(`${o}
|
|
7
7
|
- a short flag is a single dash and a single character
|
|
8
8
|
- either use a single dash and a single character (for a short flag)
|
|
9
9
|
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(n.test(s))throw Error(`${o}
|
|
10
10
|
- too many short flags`);if(i.test(s))throw Error(`${o}
|
|
11
11
|
- too many long flags`);throw Error(`${o}
|
|
12
|
-
- unrecognised flag format`)}if(
|
|
12
|
+
- unrecognised flag format`)}if(r===void 0&&t===void 0)throw Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:r,longFlag:t}}ky.Option=Fo;ky.DualOptions=Ko});var Bo=g((Sy)=>{function vy(e,r){if(Math.abs(e.length-r.length)>3)return Math.max(e.length,r.length);let t=[];for(let n=0;n<=e.length;n++)t[n]=[n];for(let n=0;n<=r.length;n++)t[0][n]=n;for(let n=1;n<=r.length;n++)for(let i=1;i<=e.length;i++){let a=1;if(e[i-1]===r[n-1])a=0;else a=1;if(t[i][n]=Math.min(t[i-1][n]+1,t[i][n-1]+1,t[i-1][n-1]+a),i>1&&n>1&&e[i-1]===r[n-2]&&e[i-2]===r[n-1])t[i][n]=Math.min(t[i][n],t[i-2][n-2]+1)}return t[e.length][r.length]}function $y(e,r){if(!r||r.length===0)return"";r=Array.from(new Set(r));let t=e.startsWith("--");if(t)e=e.slice(2),r=r.map((s)=>s.slice(2));let n=[],i=3,a=0.4;if(r.forEach((s)=>{if(s.length<=1)return;let o=vy(e,s),u=Math.max(e.length,s.length);if((u-o)/u>a){if(o<i)i=o,n=[s];else if(o===i)n.push(s)}}),n.sort((s,o)=>s.localeCompare(o)),t)n=n.map((s)=>`--${s}`);if(n.length>1)return`
|
|
13
13
|
(Did you mean one of ${n.join(", ")}?)`;if(n.length===1)return`
|
|
14
|
-
(Did you mean ${n[0]}?)`;return""}
|
|
15
|
-
- specify the name in Command constructor or using .name()`);if(
|
|
16
|
-
Expecting one of '${
|
|
17
|
-
- already used by option '${
|
|
18
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t
|
|
19
|
-
- if '${
|
|
14
|
+
(Did you mean ${n[0]}?)`;return""}Sy.suggestSimilar=$y});var Ho=g((Vy)=>{var Oy=It("node:events").EventEmitter,_i=It("node:child_process"),Be=It("node:path"),Xn=It("node:fs"),N=It("node:process"),{Argument:zy,humanReadableArgName:Wy}=Sn(),{CommanderError:ea}=gt(),{Help:jy,stripColor:Py}=Hi(),{Option:Yo,DualOptions:Ty}=xi(),{suggestSimilar:Zo}=Bo();class ta extends Oy{constructor(e){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(r)=>N.stdout.write(r),writeErr:(r)=>N.stderr.write(r),outputError:(r,t)=>t(r),getOutHelpWidth:()=>N.stdout.isTTY?N.stdout.columns:void 0,getErrHelpWidth:()=>N.stderr.isTTY?N.stderr.columns:void 0,getOutHasColors:()=>ra()??(N.stdout.isTTY&&N.stdout.hasColors?.()),getErrHasColors:()=>ra()??(N.stderr.isTTY&&N.stderr.hasColors?.()),stripColor:(r)=>Py(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let r=this;r;r=r.parent)e.push(r);return e}command(e,r,t){let n=r,i=t;if(typeof n==="object"&&n!==null)i=n,n=null;i=i||{};let[,a,s]=e.match(/([^ ]+) *(.*)/),o=this.createCommand(a);if(n)o.description(n),o._executableHandler=!0;if(i.isDefault)this._defaultCommandName=o._name;if(o._hidden=!!(i.noHelp||i.hidden),o._executableFile=i.executableFile||null,s)o.arguments(s);if(this._registerCommand(o),o.parent=this,o.copyInheritedSettings(this),n)return this;return o}createCommand(e){return new ta(e)}createHelp(){return Object.assign(new jy,this.configureHelp())}configureHelp(e){if(e===void 0)return this._helpConfiguration;return this._helpConfiguration=e,this}configureOutput(e){if(e===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...e},this}showHelpAfterError(e=!0){if(typeof e!=="string")e=!!e;return this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
15
|
+
- specify the name in Command constructor or using .name()`);if(r=r||{},r.isDefault)this._defaultCommandName=e._name;if(r.noHelp||r.hidden)e._hidden=!0;return this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,r){return new zy(e,r)}argument(e,r,t,n){let i=this.createArgument(e,r);if(typeof t==="function")i.default(n).argParser(t);else i.default(t);return this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach((r)=>{this.argument(r)}),this}addArgument(e){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,r){if(typeof e==="boolean"){if(this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let t=e??"help [command]",[,n,i]=t.match(/([^ ]+) *(.*)/),a=r??"display help for command",s=this.createCommand(n);if(s.helpOption(!1),i)s.arguments(i);if(a)s.description(a);if(this._addImplicitHelpCommand=!0,this._helpCommand=s,e||r)this._initCommandGroup(s);return this}addHelpCommand(e,r){if(typeof e!=="object")return this.helpCommand(e,r),this;return this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(e,r){let t=["preSubcommand","preAction","postAction"];if(!t.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
|
|
16
|
+
Expecting one of '${t.join("', '")}'`);if(this._lifeCycleHooks[e])this._lifeCycleHooks[e].push(r);else this._lifeCycleHooks[e]=[r];return this}exitOverride(e){if(e)this._exitCallback=e;else this._exitCallback=(r)=>{if(r.code!=="commander.executeSubCommandAsync")throw r};return this}_exit(e,r,t){if(this._exitCallback)this._exitCallback(new ea(e,r,t));N.exit(e)}action(e){let r=(t)=>{let n=this.registeredArguments.length,i=t.slice(0,n);if(this._storeOptionsAsProperties)i[n]=this;else i[n]=this.opts();return i.push(this),e.apply(this,i)};return this._actionHandler=r,this}createOption(e,r){return new Yo(e,r)}_callParseArg(e,r,t,n){try{return e.parseArg(r,t)}catch(i){if(i.code==="commander.invalidArgument"){let a=`${n} ${i.message}`;this.error(a,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(e){let r=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(r){let t=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${t}'
|
|
17
|
+
- already used by option '${r.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let r=(n)=>{return[n.name()].concat(n.aliases())},t=r(e).find((n)=>this._findCommand(n));if(t){let n=r(this._findCommand(t)).join("|"),i=r(e).join("|");throw Error(`cannot add command '${i}' as already have command '${n}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let r=e.name(),t=e.attributeName();if(e.negate){let i=e.long.replace(/^--no-/,"--");if(!this._findOption(i))this.setOptionValueWithSource(t,e.defaultValue===void 0?!0:e.defaultValue,"default")}else if(e.defaultValue!==void 0)this.setOptionValueWithSource(t,e.defaultValue,"default");let n=(i,a,s)=>{if(i==null&&e.presetArg!==void 0)i=e.presetArg;let o=this.getOptionValue(t);if(i!==null&&e.parseArg)i=this._callParseArg(e,i,o,a);else if(i!==null&&e.variadic)i=e._collectValue(i,o);if(i==null)if(e.negate)i=!1;else if(e.isBoolean()||e.optional)i=!0;else i="";this.setOptionValueWithSource(t,i,s)};if(this.on("option:"+r,(i)=>{let a=`error: option '${e.flags}' argument '${i}' is invalid.`;n(i,a,"cli")}),e.envVar)this.on("optionEnv:"+r,(i)=>{let a=`error: option '${e.flags}' value '${i}' from env '${e.envVar}' is invalid.`;n(i,a,"env")});return this}_optionEx(e,r,t,n,i){if(typeof r==="object"&&r instanceof Yo)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,t);if(a.makeOptionMandatory(!!e.mandatory),typeof n==="function")a.default(i).argParser(n);else if(n instanceof RegExp){let s=n;n=(o,u)=>{let l=s.exec(o);return l?l[0]:u},a.default(i).argParser(n)}else a.default(n);return this.addOption(a)}option(e,r,t,n){return this._optionEx({},e,r,t,n)}requiredOption(e,r,t,n){return this._optionEx({mandatory:!0},e,r,t,n)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){if(this._storeOptionsAsProperties)return this[e];return this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,t){if(this._storeOptionsAsProperties)this[e]=r;else this._optionValues[e]=r;return this._optionValueSources[e]=t,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return this._getCommandAndAncestors().forEach((t)=>{if(t.getOptionValueSource(e)!==void 0)r=t.getOptionValueSource(e)}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw Error("first parameter to parse must be array or undefined");if(r=r||{},e===void 0&&r.from===void 0){if(N.versions?.electron)r.from="electron";let n=N.execArgv??[];if(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))r.from="eval"}if(e===void 0)e=N.argv;this.rawArgs=e.slice();let t;switch(r.from){case void 0:case"node":this._scriptPath=e[1],t=e.slice(2);break;case"electron":if(N.defaultApp)this._scriptPath=e[1],t=e.slice(2);else t=e.slice(1);break;case"user":t=e.slice(0);break;case"eval":t=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${r.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",t}parse(e,r){this._prepareForParse();let t=this._prepareUserArgs(e,r);return this._parseCommand([],t),this}async parseAsync(e,r){this._prepareForParse();let t=this._prepareUserArgs(e,r);return await this._parseCommand([],t),this}_prepareForParse(){if(this._savedState===null)this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
18
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,r,t){if(Xn.existsSync(e))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",i=`'${e}' does not exist
|
|
19
|
+
- if '${t}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
20
20
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
21
|
-
- ${n}`;throw Error(i)}_executeSubCommand(e,
|
|
21
|
+
- ${n}`;throw Error(i)}_executeSubCommand(e,r){r=r.slice();let t=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function i(l,d){let c=Be.resolve(l,d);if(Xn.existsSync(c))return c;if(n.includes(Be.extname(d)))return;let p=n.find((h)=>Xn.existsSync(`${c}${h}`));if(p)return`${c}${p}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Xn.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=Be.resolve(Be.dirname(l),s)}if(s){let l=i(s,a);if(!l&&!e._executableFile&&this._scriptPath){let d=Be.basename(this._scriptPath,Be.extname(this._scriptPath));if(d!==this._name)l=i(s,`${d}-${e._name}`)}a=l||a}t=n.includes(Be.extname(a));let o;if(N.platform!=="win32")if(t)r.unshift(a),r=Qo(N.execArgv).concat(r),o=_i.spawn(N.argv[0],r,{stdio:"inherit"});else o=_i.spawn(a,r,{stdio:"inherit"});else this._checkForMissingExecutable(a,s,e._name),r.unshift(a),r=Qo(N.execArgv).concat(r),o=_i.spawn(N.execPath,r,{stdio:"inherit"});if(!o.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((d)=>{N.on(d,()=>{if(o.killed===!1&&o.exitCode===null)o.kill(d)})});let u=this._exitCallback;o.on("close",(l)=>{if(l=l??1,!u)N.exit(l);else u(new ea(l,"commander.executeSubCommandAsync","(close)"))}),o.on("error",(l)=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,e._name);else if(l.code==="EACCES")throw Error(`'${a}' not executable`);if(!u)N.exit(1);else{let d=new ea(1,"commander.executeSubCommandAsync","(error)");d.nestedError=l,u(d)}}),this.runningCommand=o}_dispatchSubcommand(e,r,t){let n=this._findCommand(e);if(!n)this.help({error:!0});n._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(t));else return n._parseCommand(r,t)}),i}_dispatchHelpCommand(e){if(!e)this.help();let r=this._findCommand(e);if(r&&!r._executableHandler)r.help();return this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((e,r)=>{if(e.required&&this.args[r]==null)this.missingArgument(e.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let e=(t,n,i)=>{let a=n;if(n!==null&&t.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${t.name()}'.`;a=this._callParseArg(t,n,i,s)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((t,n)=>{let i=t.defaultValue;if(t.variadic){if(n<this.args.length){if(i=this.args.slice(n),t.parseArg)i=i.reduce((a,s)=>{return e(t,s,a)},t.defaultValue)}else if(i===void 0)i=[]}else if(n<this.args.length){if(i=this.args[n],t.parseArg)i=e(t,i,t.defaultValue)}r[n]=i}),this.processedArgs=r}_chainOrCall(e,r){if(e?.then&&typeof e.then==="function")return e.then(()=>r());return r()}_chainOrCallHooks(e,r){let t=e,n=[];if(this._getCommandAndAncestors().reverse().filter((i)=>i._lifeCycleHooks[r]!==void 0).forEach((i)=>{i._lifeCycleHooks[r].forEach((a)=>{n.push({hookedCommand:i,callback:a})})}),r==="postAction")n.reverse();return n.forEach((i)=>{t=this._chainOrCall(t,()=>{return i.callback(i.hookedCommand,this)})}),t}_chainOrCallSubCommandHook(e,r,t){let n=e;if(this._lifeCycleHooks[t]!==void 0)this._lifeCycleHooks[t].forEach((i)=>{n=this._chainOrCall(n,()=>{return i(this,r)})});return n}_parseCommand(e,r){let t=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(t.operands),r=t.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,e,r);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(t.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{if(t.unknown.length>0)this.unknownOption(t.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let a;if(a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent)a=this._chainOrCall(a,()=>{this.parent.emit(i,e,r)});return a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);if(this.listenerCount("command:*"))this.emit("command:*",e,r);else if(this.commands.length)this.unknownCommand();else n(),this._processArguments()}else if(this.commands.length)n(),this.help({error:!0});else n(),this._processArguments()}_findCommand(e){if(!e)return;return this.commands.find((r)=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find((r)=>r.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((e)=>{e.options.forEach((r)=>{if(r.mandatory&&e.getOptionValue(r.attributeName())===void 0)e.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let e=this.options.filter((t)=>{let n=t.attributeName();if(this.getOptionValue(n)===void 0)return!1;return this.getOptionValueSource(n)!=="default"});e.filter((t)=>t.conflictsWith.length>0).forEach((t)=>{let n=e.find((i)=>t.conflictsWith.includes(i.attributeName()));if(n)this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((e)=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let r=[],t=[],n=r;function i(l){return l.length>1&&l[0]==="-"}let a=(l)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l))return!1;return!this._getCommandAndAncestors().some((d)=>d.options.map((c)=>c.short).some((c)=>/^-\d$/.test(c)))},s=null,o=null,u=0;while(u<e.length||o){let l=o??e[u++];if(o=null,l==="--"){if(n===t)n.push(l);n.push(...e.slice(u));break}if(s&&(!i(l)||a(l))){this.emit(`option:${s.name()}`,l);continue}if(s=null,i(l)){let d=this._findOption(l);if(d){if(d.required){let c=e[u++];if(c===void 0)this.optionMissingArgument(d);this.emit(`option:${d.name()}`,c)}else if(d.optional){let c=null;if(u<e.length&&(!i(e[u])||a(e[u])))c=e[u++];this.emit(`option:${d.name()}`,c)}else this.emit(`option:${d.name()}`);s=d.variadic?d:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let d=this._findOption(`-${l[1]}`);if(d){if(d.required||d.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${d.name()}`,l.slice(2));else this.emit(`option:${d.name()}`),o=`-${l.slice(2)}`;continue}}if(/^--[^=]+=/.test(l)){let d=l.indexOf("="),c=this._findOption(l.slice(0,d));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(d+1));continue}}if(n===r&&i(l)&&!(this.commands.length===0&&a(l)))n=t;if((this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&t.length===0){if(this._findCommand(l)){r.push(l),t.push(...e.slice(u));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...e.slice(u));break}else if(this._defaultCommandName){t.push(l,...e.slice(u));break}}if(this._passThroughOptions){n.push(l,...e.slice(u));break}n.push(l)}return{operands:r,unknown:t}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let t=0;t<r;t++){let n=this.options[t].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){if(this._outputConfiguration.outputError(`${e}
|
|
22
22
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
23
23
|
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
24
|
-
`),this.outputHelp({error:!0});let r
|
|
25
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,
|
|
26
|
-
Expecting one of '${
|
|
27
|
-
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();if(t&&e.find((n)=>t.is(n)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function Do(e){return e.map((t)=>{if(!t.startsWith("--inspect"))return t;let r,n="127.0.0.1",i="9229",a;if((a=t.match(/^(--inspect(-brk)?)$/))!==null)r=a[1];else if((a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(r=a[1],/^\d+$/.test(a[3]))i=a[3];else n=a[3];else if((a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)r=a[1],n=a[3],i=a[4];if(r&&i!=="0")return`${r}=${n}:${parseInt(i)+1}`;return t})}function Qi(){if(N.env.NO_COLOR||N.env.FORCE_COLOR==="0"||N.env.FORCE_COLOR==="false")return!1;if(N.env.FORCE_COLOR||N.env.CLICOLOR_FORCE!==void 0)return!0;return}gy.Command=xi;gy.useColor=Qi});var Fo=g((Cy)=>{var{Argument:Go}=Rn(),{Command:_i}=Mo(),{CommanderError:by,InvalidArgumentError:Uo}=hr(),{Help:Ay}=Ki(),{Option:Jo}=Yi();Cy.program=new _i;Cy.createCommand=(e)=>new _i(e);Cy.createOption=(e,t)=>new Jo(e,t);Cy.createArgument=(e,t)=>new Go(e,t);Cy.Command=_i;Cy.Option=Jo;Cy.Argument=Go;Cy.Help=Ay;Cy.CommanderError=by;Cy.InvalidArgumentError=Uo;Cy.InvalidOptionArgumentError=Uo});var Wr=g((tl)=>{Object.defineProperty(tl,"__esModule",{value:!0});tl.regexpCode=tl.getEsmExportName=tl.getProperty=tl.safeStringify=tl.stringify=tl.strConcat=tl.addCodeArg=tl.str=tl._=tl.nil=tl._Code=tl.Name=tl.IDENTIFIER=tl._CodeOrName=void 0;class Bn{}tl._CodeOrName=Bn;tl.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Ht extends Bn{constructor(e){super();if(!tl.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}tl.Name=Ht;class We extends Bn{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((t,r)=>`${t}${r}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((t,r)=>{if(r instanceof Ht)t[r.str]=(t[r.str]||0)+1;return t},{})}}tl._Code=We;tl.nil=new We("");function _u(e,...t){let r=[e[0]],n=0;while(n<t.length)Ga(r,t[n]),r.push(e[++n]);return new We(r)}tl._=_u;var Ma=new We("+");function el(e,...t){let r=[zr(e[0])],n=0;while(n<t.length)r.push(Ma),Ga(r,t[n]),r.push(Ma,zr(e[++n]));return Rg(r),new We(r)}tl.str=el;function Ga(e,t){if(t instanceof We)e.push(...t._items);else if(t instanceof Ht)e.push(t);else e.push($g(t))}tl.addCodeArg=Ga;function Rg(e){let t=1;while(t<e.length-1){if(e[t]===Ma){let r=Lg(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function Lg(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string"){if(t instanceof Ht||e[e.length-1]!=='"')return;if(typeof t!="string")return`${e.slice(0,-1)}${t}"`;if(t[0]==='"')return e.slice(0,-1)+t.slice(1);return}if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Ht))return`"${e}${t.slice(1)}`;return}function vg(e,t){return t.emptyStr()?e:e.emptyStr()?t:el`${e}${t}`}tl.strConcat=vg;function $g(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:zr(Array.isArray(e)?e.join(","):e)}function Sg(e){return new We(zr(e))}tl.stringify=Sg;function zr(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}tl.safeStringify=zr;function Xg(e){return typeof e=="string"&&tl.IDENTIFIER.test(e)?new We(`.${e}`):_u`[${e}]`}tl.getProperty=Xg;function Og(e){if(typeof e=="string"&&tl.IDENTIFIER.test(e))return new We(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}tl.getEsmExportName=Og;function zg(e){return new We(e.toString())}tl.regexpCode=zg});var Ba=g((al)=>{Object.defineProperty(al,"__esModule",{value:!0});al.ValueScope=al.ValueScopeName=al.Scope=al.varKinds=al.UsedValueState=void 0;var oe=Wr();class nl extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var Yn;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Yn||(al.UsedValueState=Yn={}));al.varKinds={const:new oe.Name("const"),let:new oe.Name("let"),var:new oe.Name("var")};class Ja{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof oe.Name?e:this.name(e)}name(e){return new oe.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}al.Scope=Ja;class Fa extends oe.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=oe._`.${new oe.Name(t)}[${r}]`}}al.ValueScopeName=Fa;var Fg=oe._`\n`;class il extends Ja{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Fg:oe.nil}}get(){return this._scope}name(e){return new Fa(e,this._newName(e))}value(e,t){var r;if(t.ref===void 0)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,a=(r=t.key)!==null&&r!==void 0?r:t.ref,s=this._values[i];if(s){let l=s.get(a);if(l)return l}else s=this._values[i]=new Map;s.set(a,n);let o=this._scope[i]||(this._scope[i]=[]),u=o.length;return o[u]=t.ref,n.setValue(t,{property:i,itemIndex:u}),n}getValue(e,t){let r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(r)=>{if(r.scopePath===void 0)throw Error(`CodeGen: name "${r}" has no value`);return oe._`${e}${r.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,(n)=>{if(n.value===void 0)throw Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,r)}_reduceValues(e,t,r={},n){let i=oe.nil;for(let a in e){let s=e[a];if(!s)continue;let o=r[a]=r[a]||new Map;s.forEach((u)=>{if(o.has(u))return;o.set(u,Yn.Started);let l=t(u);if(l){let d=this.opts.es5?al.varKinds.var:al.varKinds.const;i=oe._`${i}${d} ${u} = ${l};${this.opts._n}`}else if(l=n===null||n===void 0?void 0:n(u))i=oe._`${i}${l}${this.opts._n}`;else throw new nl(u);o.set(u,Yn.Completed)})}return i}}al.ValueScope=il});var z=g((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.or=ue.and=ue.not=ue.CodeGen=ue.operators=ue.varKinds=ue.ValueScopeName=ue.ValueScope=ue.Scope=ue.Name=ue.regexpCode=ue.stringify=ue.getProperty=ue.nil=ue.strConcat=ue.str=ue._=void 0;var T=Wr(),je=Ba(),it=Wr();Object.defineProperty(ue,"_",{enumerable:!0,get:function(){return it._}});Object.defineProperty(ue,"str",{enumerable:!0,get:function(){return it.str}});Object.defineProperty(ue,"strConcat",{enumerable:!0,get:function(){return it.strConcat}});Object.defineProperty(ue,"nil",{enumerable:!0,get:function(){return it.nil}});Object.defineProperty(ue,"getProperty",{enumerable:!0,get:function(){return it.getProperty}});Object.defineProperty(ue,"stringify",{enumerable:!0,get:function(){return it.stringify}});Object.defineProperty(ue,"regexpCode",{enumerable:!0,get:function(){return it.regexpCode}});Object.defineProperty(ue,"Name",{enumerable:!0,get:function(){return it.Name}});var ei=Ba();Object.defineProperty(ue,"Scope",{enumerable:!0,get:function(){return ei.Scope}});Object.defineProperty(ue,"ValueScope",{enumerable:!0,get:function(){return ei.ValueScope}});Object.defineProperty(ue,"ValueScopeName",{enumerable:!0,get:function(){return ei.ValueScopeName}});Object.defineProperty(ue,"varKinds",{enumerable:!0,get:function(){return ei.varKinds}});ue.operators={GT:new T._Code(">"),GTE:new T._Code(">="),LT:new T._Code("<"),LTE:new T._Code("<="),EQ:new T._Code("==="),NEQ:new T._Code("!=="),NOT:new T._Code("!"),OR:new T._Code("||"),AND:new T._Code("&&"),ADD:new T._Code("+")};class at{optimizeNodes(){return this}optimizeNames(e,t){return this}}class ol extends at{constructor(e,t,r){super();this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){let r=e?je.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=Qt(this.rhs,e,t);return this}get names(){return this.rhs instanceof T._CodeOrName?this.rhs.names:{}}}class Ha extends at{constructor(e,t,r){super();this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof T.Name&&!e[this.lhs.str]&&!this.sideEffects)return;return this.rhs=Qt(this.rhs,e,t),this}get names(){let e=this.lhs instanceof T.Name?{}:{...this.lhs.names};return _n(e,this.rhs)}}class ul extends Ha{constructor(e,t,r,n){super(e,r,n);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class ll extends at{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class dl extends at{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class cl extends at{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class ml extends at{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=Qt(this.code,e,t),this}get names(){return this.code instanceof T._CodeOrName?this.code.names:{}}}class ti extends at{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,t=e.length;while(t--){let r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:r}=this,n=r.length;while(n--){let i=r[n];if(i.optimizeNames(e,t))continue;Hg(e,i.names),r.splice(n,1)}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>Rt(e,t.names),{})}}class st extends ti{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class pl extends ti{}class jr extends st{}jr.kind="else";class He extends st{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let t=this.else;if(t){let r=t.optimizeNodes();t=this.else=Array.isArray(r)?new jr(r):r}if(t){if(e===!1)return t instanceof He?t:t.nodes;if(this.nodes.length)return this;return new He(gl(e),t instanceof He?[t]:t.nodes)}if(e===!1||!this.nodes.length)return;return this}optimizeNames(e,t){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t),!(super.optimizeNames(e,t)||this.else))return;return this.condition=Qt(this.condition,e,t),this}get names(){let e=super.names;if(_n(e,this.condition),this.else)Rt(e,this.else.names);return e}}He.kind="if";class Zt extends st{}Zt.kind="for";class fl extends Zt{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;return this.iteration=Qt(this.iteration,e,t),this}get names(){return Rt(super.names,this.iteration.names)}}class hl extends Zt{constructor(e,t,r,n){super();this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){let t=e.es5?je.varKinds.var:this.varKind,{name:r,from:n,to:i}=this;return`for(${t} ${r}=${n}; ${r}<${i}; ${r}++)`+super.render(e)}get names(){let e=_n(super.names,this.from);return _n(e,this.to)}}class Ka extends Zt{constructor(e,t,r,n){super();this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;return this.iterable=Qt(this.iterable,e,t),this}get names(){return Rt(super.names,this.iterable.names)}}class Hn extends st{constructor(e,t,r){super();this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}Hn.kind="func";class Zn extends ti{render(e){return"return "+super.render(e)}}Zn.kind="return";class yl extends st{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),(r=this.catch)===null||r===void 0||r.optimizeNames(e,t),(n=this.finally)===null||n===void 0||n.optimizeNames(e,t),this}get names(){let e=super.names;if(this.catch)Rt(e,this.catch.names);if(this.finally)Rt(e,this.finally.names);return e}}class Qn extends st{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}Qn.kind="catch";class xn extends st{render(e){return"finally"+super.render(e)}}xn.kind="finally";class Il{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
|
|
28
|
-
`:""},this._extScope=e,this._scope=new je.Scope({parent:e}),this._nodes=[new pl]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){let i=this._scope.toName(t);if(r!==void 0&&n)this._constants[i.str]=r;return this._leafNode(new ol(e,i,r)),i}const(e,t,r){return this._def(je.varKinds.const,e,t,r)}let(e,t,r){return this._def(je.varKinds.let,e,t,r)}var(e,t,r){return this._def(je.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new Ha(e,t,r))}add(e,t){return this._leafNode(new ul(e,ue.operators.ADD,t))}code(e){if(typeof e=="function")e();else if(e!==T.nil)this._leafNode(new ml(e));return this}object(...e){let t=["{"];for(let[r,n]of e){if(t.length>1)t.push(",");if(t.push(r),r!==n||this.opts.es5)t.push(":"),(0,T.addCodeArg)(t,n)}return t.push("}"),new T._Code(t)}if(e,t,r){if(this._blockNode(new He(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new He(e))}else(){return this._elseNode(new jr)}endIf(){return this._endBlockNode(He,jr)}_for(e,t){if(this._blockNode(e),t)this.code(t).endFor();return this}for(e,t){return this._for(new fl(e),t)}forRange(e,t,r,n,i=this.opts.es5?je.varKinds.var:je.varKinds.let){let a=this._scope.toName(e);return this._for(new hl(i,a,t,r),()=>n(a))}forOf(e,t,r,n=je.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let a=t instanceof T.Name?t:this.var("_arr",t);return this.forRange("_i",0,T._`${a}.length`,(s)=>{this.var(i,T._`${a}[${s}]`),r(i)})}return this._for(new Ka("of",n,i,t),()=>r(i))}forIn(e,t,r,n=this.opts.es5?je.varKinds.var:je.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,T._`Object.keys(${t})`,r);let i=this._scope.toName(e);return this._for(new Ka("in",n,i,t),()=>r(i))}endFor(){return this._endBlockNode(Zt)}label(e){return this._leafNode(new ll(e))}break(e){return this._leafNode(new dl(e))}return(e){let t=new Zn;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(Zn)}try(e,t,r){if(!t&&!r)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new yl;if(this._blockNode(n),this.code(e),t){let i=this.name("e");this._currNode=n.catch=new Qn(i),t(i)}if(r)this._currNode=n.finally=new xn,this.code(r);return this._endBlockNode(Qn,xn)}throw(e){return this._leafNode(new cl(e))}block(e,t){if(this._blockStarts.push(this._nodes.length),e)this.code(e).endBlock(t);return this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||e!==void 0&&r!==e)throw Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=T.nil,r,n){if(this._blockNode(new Hn(e,t,r)),n)this.code(n).endFunc();return this}endFunc(){return this._endBlockNode(Hn)}optimize(e=1){while(e-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof He))throw Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}}ue.CodeGen=Il;function Rt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function _n(e,t){return t instanceof T._CodeOrName?Rt(e,t.names):e}function Qt(e,t,r){if(e instanceof T.Name)return n(e);if(!i(e))return e;return new T._Code(e._items.reduce((a,s)=>{if(s instanceof T.Name)s=n(s);if(s instanceof T._Code)a.push(...s._items);else a.push(s);return a},[]));function n(a){let s=r[a.str];if(s===void 0||t[a.str]!==1)return a;return delete t[a.str],s}function i(a){return a instanceof T._Code&&a._items.some((s)=>s instanceof T.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function Hg(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function gl(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:T._`!${Ya(e)}`}ue.not=gl;var Zg=ql(ue.operators.AND);function Qg(...e){return e.reduce(Zg)}ue.and=Qg;var xg=ql(ue.operators.OR);function _g(...e){return e.reduce(xg)}ue.or=_g;function ql(e){return(t,r)=>t===T.nil?r:r===T.nil?t:T._`${Ya(t)} ${e} ${Ya(r)}`}function Ya(e){return e instanceof T.Name?e:T._`(${e})`}});var j=g(($l)=>{Object.defineProperty($l,"__esModule",{value:!0});$l.checkStrictMode=$l.getErrorPath=$l.Type=$l.useFunc=$l.setEvaluated=$l.evaluatedPropsToName=$l.mergeEvaluated=$l.eachItem=$l.unescapeJsonPointer=$l.escapeJsonPointer=$l.escapeFragment=$l.unescapeFragment=$l.schemaRefOrVal=$l.schemaHasRulesButRef=$l.schemaHasRules=$l.checkUnknownRules=$l.alwaysValidSchema=$l.toHash=void 0;var D=z(),nq=Wr();function iq(e){let t={};for(let r of e)t[r]=!0;return t}$l.toHash=iq;function aq(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return!0;return Cl(e,t),!kl(t,e.self.RULES.all)}$l.alwaysValidSchema=aq;function Cl(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;let i=n.RULES.keywords;for(let a in t)if(!i[a])vl(e,`unknown keyword: "${a}"`)}$l.checkUnknownRules=Cl;function kl(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}$l.schemaHasRules=kl;function sq(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}$l.schemaHasRulesButRef=sq;function oq({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return D._`${r}`}return D._`${e}${t}${(0,D.getProperty)(n)}`}$l.schemaRefOrVal=oq;function uq(e){return Rl(decodeURIComponent(e))}$l.unescapeFragment=uq;function lq(e){return encodeURIComponent(Qa(e))}$l.escapeFragment=lq;function Qa(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}$l.escapeJsonPointer=Qa;function Rl(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}$l.unescapeJsonPointer=Rl;function dq(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}$l.eachItem=dq;function bl({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,a,s,o)=>{let u=s===void 0?a:s instanceof D.Name?(a instanceof D.Name?e(i,a,s):t(i,a,s),s):a instanceof D.Name?(t(i,s,a),a):r(a,s);return o===D.Name&&!(u instanceof D.Name)?n(i,u):u}}$l.mergeEvaluated={props:bl({mergeNames:(e,t,r)=>e.if(D._`${r} !== true && ${t} !== undefined`,()=>{e.if(D._`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,D._`${r} || {}`).code(D._`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if(D._`${r} !== true`,()=>{if(t===!0)e.assign(r,!0);else e.assign(r,D._`${r} || {}`),xa(e,r,t)}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Ll}),items:bl({mergeNames:(e,t,r)=>e.if(D._`${r} !== true && ${t} !== undefined`,()=>e.assign(r,D._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if(D._`${r} !== true`,()=>e.assign(r,t===!0?!0:D._`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Ll(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",D._`{}`);if(t!==void 0)xa(e,r,t);return r}$l.evaluatedPropsToName=Ll;function xa(e,t,r){Object.keys(r).forEach((n)=>e.assign(D._`${t}${(0,D.getProperty)(n)}`,!0))}$l.setEvaluated=xa;var Al={};function cq(e,t){return e.scopeValue("func",{ref:t,code:Al[t.code]||(Al[t.code]=new nq._Code(t.code))})}$l.useFunc=cq;var Za;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Za||($l.Type=Za={}));function mq(e,t,r){if(e instanceof D.Name){let n=t===Za.Num;return r?n?D._`"[" + ${e} + "]"`:D._`"['" + ${e} + "']"`:n?D._`"/" + ${e}`:D._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,D.getProperty)(e).toString():"/"+Qa(e)}$l.getErrorPath=mq;function vl(e,t,r=e.opts.strictSchema){if(!r)return;if(t=`strict mode: ${t}`,r===!0)throw Error(t);e.self.logger.warn(t)}$l.checkStrictMode=vl});var Ae=g((Xl)=>{Object.defineProperty(Xl,"__esModule",{value:!0});var _=z(),Xq={data:new _.Name("data"),valCxt:new _.Name("valCxt"),instancePath:new _.Name("instancePath"),parentData:new _.Name("parentData"),parentDataProperty:new _.Name("parentDataProperty"),rootData:new _.Name("rootData"),dynamicAnchors:new _.Name("dynamicAnchors"),vErrors:new _.Name("vErrors"),errors:new _.Name("errors"),this:new _.Name("this"),self:new _.Name("self"),scope:new _.Name("scope"),json:new _.Name("json"),jsonPos:new _.Name("jsonPos"),jsonLen:new _.Name("jsonLen"),jsonPart:new _.Name("jsonPart")};Xl.default=Xq});var Pr=g((jl)=>{Object.defineProperty(jl,"__esModule",{value:!0});jl.extendErrors=jl.resetErrorsCount=jl.reportExtraError=jl.reportError=jl.keyword$DataError=jl.keywordError=void 0;var V=z(),ni=j(),ie=Ae();jl.keywordError={message:({keyword:e})=>V.str`must pass "${e}" keyword validation`};jl.keyword$DataError={message:({keyword:e,schemaType:t})=>t?V.str`"${e}" keyword must be ${t} ($data)`:V.str`"${e}" keyword is invalid ($data)`};function zq(e,t=jl.keywordError,r,n){let{it:i}=e,{gen:a,compositeRule:s,allErrors:o}=i,u=Wl(e,t,r);if(n!==null&&n!==void 0?n:s||o)Ol(a,u);else zl(i,V._`[${u}]`)}jl.reportError=zq;function Wq(e,t=jl.keywordError,r){let{it:n}=e,{gen:i,compositeRule:a,allErrors:s}=n,o=Wl(e,t,r);if(Ol(i,o),!(a||s))zl(n,ie.default.vErrors)}jl.reportExtraError=Wq;function jq(e,t){e.assign(ie.default.errors,t),e.if(V._`${ie.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(V._`${ie.default.vErrors}.length`,t),()=>e.assign(ie.default.vErrors,null)))}jl.resetErrorsCount=jq;function Pq({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:a}){if(i===void 0)throw Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,ie.default.errors,(o)=>{if(e.const(s,V._`${ie.default.vErrors}[${o}]`),e.if(V._`${s}.instancePath === undefined`,()=>e.assign(V._`${s}.instancePath`,(0,V.strConcat)(ie.default.instancePath,a.errorPath))),e.assign(V._`${s}.schemaPath`,V.str`${a.errSchemaPath}/${t}`),a.opts.verbose)e.assign(V._`${s}.schema`,r),e.assign(V._`${s}.data`,n)})}jl.extendErrors=Pq;function Ol(e,t){let r=e.const("err",t);e.if(V._`${ie.default.vErrors} === null`,()=>e.assign(ie.default.vErrors,V._`[${r}]`),V._`${ie.default.vErrors}.push(${r})`),e.code(V._`${ie.default.errors}++`)}function zl(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;if(i.$async)r.throw(V._`new ${e.ValidationError}(${t})`);else r.assign(V._`${n}.errors`,t),r.return(!1)}var Lt={keyword:new V.Name("keyword"),schemaPath:new V.Name("schemaPath"),params:new V.Name("params"),propertyName:new V.Name("propertyName"),message:new V.Name("message"),schema:new V.Name("schema"),parentSchema:new V.Name("parentSchema")};function Wl(e,t,r){let{createErrors:n}=e.it;if(n===!1)return V._`{}`;return Tq(e,t,r)}function Tq(e,t,r={}){let{gen:n,it:i}=e,a=[Vq(i,r),Nq(e,r)];return Eq(e,t,a),n.object(...a)}function Vq({errorPath:e},{instancePath:t}){let r=t?V.str`${e}${(0,ni.getErrorPath)(t,ni.Type.Str)}`:e;return[ie.default.instancePath,(0,V.strConcat)(ie.default.instancePath,r)]}function Nq({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:V.str`${t}/${e}`;if(r)i=V.str`${i}${(0,ni.getErrorPath)(r,ni.Type.Str)}`;return[Lt.schemaPath,i]}function Eq(e,{params:t,message:r},n){let{keyword:i,data:a,schemaValue:s,it:o}=e,{opts:u,propertyName:l,topSchemaRef:d,schemaPath:c}=o;if(n.push([Lt.keyword,i],[Lt.params,typeof t=="function"?t(e):t||V._`{}`]),u.messages)n.push([Lt.message,typeof r=="function"?r(e):r]);if(u.verbose)n.push([Lt.schema,s],[Lt.parentSchema,V._`${d}${c}`],[ie.default.data,a]);if(l)n.push([Lt.propertyName,l])}});var El=g((Vl)=>{Object.defineProperty(Vl,"__esModule",{value:!0});Vl.boolOrEmptySchema=Vl.topBoolOrEmptySchema=void 0;var Jq=Pr(),Fq=z(),Bq=Ae(),Kq={message:"boolean schema is false"};function Yq(e){let{gen:t,schema:r,validateName:n}=e;if(r===!1)Tl(e,!1);else if(typeof r=="object"&&r.$async===!0)t.return(Bq.default.data);else t.assign(Fq._`${n}.errors`,null),t.return(!0)}Vl.topBoolOrEmptySchema=Yq;function Hq(e,t){let{gen:r,schema:n}=e;if(n===!1)r.var(t,!1),Tl(e);else r.var(t,!0)}Vl.boolOrEmptySchema=Hq;function Tl(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Jq.reportError)(i,Kq,void 0,t)}});var es=g((Dl)=>{Object.defineProperty(Dl,"__esModule",{value:!0});Dl.getRules=Dl.isJSONType=void 0;var Qq=["string","number","integer","boolean","null","object","array"],xq=new Set(Qq);function _q(e){return typeof e=="string"&&xq.has(e)}Dl.isJSONType=_q;function ew(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Dl.getRules=ew});var ts=g((Jl)=>{Object.defineProperty(Jl,"__esModule",{value:!0});Jl.shouldUseRule=Jl.shouldUseGroup=Jl.schemaHasRulesForType=void 0;function rw({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Gl(e,n)}Jl.schemaHasRulesForType=rw;function Gl(e,t){return t.rules.some((r)=>Ul(e,r))}Jl.shouldUseGroup=Gl;function Ul(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some((n)=>e[n]!==void 0))}Jl.shouldUseRule=Ul});var Tr=g((Hl)=>{Object.defineProperty(Hl,"__esModule",{value:!0});Hl.reportTypeError=Hl.checkDataTypes=Hl.checkDataType=Hl.coerceAndCheckDataType=Hl.getJSONTypes=Hl.getSchemaTypes=Hl.DataType=void 0;var aw=es(),sw=ts(),ow=Pr(),W=z(),Bl=j(),xt;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(xt||(Hl.DataType=xt={}));function uw(e){let t=Kl(e.type);if(t.includes("null")){if(e.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(e.nullable===!0)t.push("null")}return t}Hl.getSchemaTypes=uw;function Kl(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(aw.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}Hl.getJSONTypes=Kl;function lw(e,t){let{gen:r,data:n,opts:i}=e,a=dw(t,i.coerceTypes),s=t.length>0&&!(a.length===0&&t.length===1&&(0,sw.schemaHasRulesForType)(e,t[0]));if(s){let o=ns(t,n,i.strictNumbers,xt.Wrong);r.if(o,()=>{if(a.length)cw(e,t,a);else is(e)})}return s}Hl.coerceAndCheckDataType=lw;var Yl=new Set(["string","number","integer","boolean","null"]);function dw(e,t){return t?e.filter((r)=>Yl.has(r)||t==="array"&&r==="array"):[]}function cw(e,t,r){let{gen:n,data:i,opts:a}=e,s=n.let("dataType",W._`typeof ${i}`),o=n.let("coerced",W._`undefined`);if(a.coerceTypes==="array")n.if(W._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,W._`${i}[0]`).assign(s,W._`typeof ${i}`).if(ns(t,i,a.strictNumbers),()=>n.assign(o,i)));n.if(W._`${o} !== undefined`);for(let l of r)if(Yl.has(l)||l==="array"&&a.coerceTypes==="array")u(l);n.else(),is(e),n.endIf(),n.if(W._`${o} !== undefined`,()=>{n.assign(i,o),mw(e,o)});function u(l){switch(l){case"string":n.elseIf(W._`${s} == "number" || ${s} == "boolean"`).assign(o,W._`"" + ${i}`).elseIf(W._`${i} === null`).assign(o,W._`""`);return;case"number":n.elseIf(W._`${s} == "boolean" || ${i} === null
|
|
24
|
+
`),this.outputHelp({error:!0});let t=r||{},n=t.exitCode||1,i=t.code||"commander.error";this._exit(n,i,e)}_parseOptionsEnv(){this.options.forEach((e)=>{if(e.envVar&&e.envVar in N.env){let r=e.attributeName();if(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))if(e.required||e.optional)this.emit(`optionEnv:${e.name()}`,N.env[e.envVar]);else this.emit(`optionEnv:${e.name()}`)}})}_parseOptionsImplied(){let e=new Ty(this.options),r=(t)=>{return this.getOptionValue(t)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(t))};this.options.filter((t)=>t.implied!==void 0&&r(t.attributeName())&&e.valueFromOption(this.getOptionValue(t.attributeName()),t)).forEach((t)=>{Object.keys(t.implied).filter((n)=>!r(n)).forEach((n)=>{this.setOptionValueWithSource(n,t.implied[n],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let t=(a)=>{let s=a.attributeName(),o=this.getOptionValue(s),u=this.options.find((d)=>d.negate&&s===d.attributeName()),l=this.options.find((d)=>!d.negate&&s===d.attributeName());if(u&&(u.presetArg===void 0&&o===!1||u.presetArg!==void 0&&o===u.presetArg))return u;return l||a},n=(a)=>{let s=t(a),o=s.attributeName();if(this.getOptionValueSource(o)==="env")return`environment variable '${s.envVar}'`;return`option '${s.flags}'`},i=`error: ${n(e)} cannot be used with ${n(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{let a=i.createHelp().visibleOptions(i).filter((s)=>s.long).map((s)=>s.long);n=n.concat(a),i=i.parent}while(i&&!i._enablePositionalOptions);r=Zo(e,n)}let t=`error: unknown option '${e}'${r}`;this.error(t,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,t=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${t} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach((i)=>{if(n.push(i.name()),i.alias())n.push(i.alias())}),r=Zo(e,n)}let t=`error: unknown command '${e}'${r}`;this.error(t,{code:"commander.unknownCommand"})}version(e,r,t){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",t=t||"output the version number";let n=this.createOption(r,t);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
25
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,r){if(e===void 0&&r===void 0)return this._description;if(this._description=e,r)this._argsDescription=r;return this}summary(e){if(e===void 0)return this._summary;return this._summary=e,this}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)r=this.commands[this.commands.length-1];if(e===r._name)throw Error("Command alias can't be the same as its name");let t=this.parent?._findCommand(e);if(t){let n=[t.name()].concat(t.aliases()).join("|");throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(e),this}aliases(e){if(e===void 0)return this._aliases;return e.forEach((r)=>this.alias(r)),this}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map((t)=>{return Wy(t)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=e,this}name(e){if(e===void 0)return this._name;return this._name=e,this}helpGroup(e){if(e===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=e,this}commandsGroup(e){if(e===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=e,this}optionsGroup(e){if(e===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=e,this}_initOptionGroup(e){if(this._defaultOptionGroup&&!e.helpGroupHeading)e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){if(this._defaultCommandGroup&&!e.helpGroup())e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=Be.basename(e,Be.extname(e)),this}executableDir(e){if(e===void 0)return this._executableDir;return this._executableDir=e,this}helpInformation(e){let r=this.createHelp(),t=this._getOutputContext(e);r.prepareContext({error:t.error,helpWidth:t.helpWidth,outputHasColors:t.hasColors});let n=r.formatHelp(this,r);if(t.hasColors)return n;return this._outputConfiguration.stripColor(n)}_getOutputContext(e){e=e||{};let r=!!e.error,t,n,i;if(r)t=(s)=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth();else t=(s)=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth();return{error:r,write:(s)=>{if(!n)s=this._outputConfiguration.stripColor(s);return t(s)},hasColors:n,helpWidth:i}}outputHelp(e){let r;if(typeof e==="function")r=e,e=void 0;let t=this._getOutputContext(e),n={error:t.error,write:t.write,command:this};this._getCommandAndAncestors().reverse().forEach((a)=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation({error:t.error});if(r){if(i=r(i),typeof i!=="string"&&!Buffer.isBuffer(i))throw Error("outputHelp callback must return a string or a Buffer")}if(t.write(i),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",n),this._getCommandAndAncestors().forEach((a)=>a.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e==="boolean"){if(e){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(e??"-h, --help",r??"display help for command"),e||r)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let r=Number(N.exitCode??0);if(r===0&&e&&typeof e!=="function"&&e.error)r=1;this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let t=["beforeAll","before","after","afterAll"];if(!t.includes(e))throw Error(`Unexpected value for position to addHelpText.
|
|
26
|
+
Expecting one of '${t.join("', '")}'`);let n=`${e}Help`;return this.on(n,(i)=>{let a;if(typeof r==="function")a=r({error:i.error,command:i.command});else a=r;if(a)i.write(`${a}
|
|
27
|
+
`)}),this}_outputHelpIfRequested(e){let r=this._getHelpOption();if(r&&e.find((n)=>r.is(n)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function Qo(e){return e.map((r)=>{if(!r.startsWith("--inspect"))return r;let t,n="127.0.0.1",i="9229",a;if((a=r.match(/^(--inspect(-brk)?)$/))!==null)t=a[1];else if((a=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(t=a[1],/^\d+$/.test(a[3]))i=a[3];else n=a[3];else if((a=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)t=a[1],n=a[3],i=a[4];if(t&&i!=="0")return`${t}=${n}:${parseInt(i)+1}`;return r})}function ra(){if(N.env.NO_COLOR||N.env.FORCE_COLOR==="0"||N.env.FORCE_COLOR==="false")return!1;if(N.env.FORCE_COLOR||N.env.CLICOLOR_FORCE!==void 0)return!0;return}Vy.Command=ta;Vy.useColor=ra});var ru=g((Gy)=>{var{Argument:xo}=Sn(),{Command:na}=Ho(),{CommanderError:Ey,InvalidArgumentError:_o}=gt(),{Help:My}=Hi(),{Option:eu}=xi();Gy.program=new na;Gy.createCommand=(e)=>new na(e);Gy.createOption=(e,r)=>new eu(e,r);Gy.createArgument=(e,r)=>new xo(e,r);Gy.Command=na;Gy.Option=eu;Gy.Argument=xo;Gy.Help=My;Gy.CommanderError=Ey;Gy.InvalidArgumentError=_o;Gy.InvalidOptionArgumentError=_o});var Tt=g((cl)=>{Object.defineProperty(cl,"__esModule",{value:!0});cl.regexpCode=cl.getEsmExportName=cl.getProperty=cl.safeStringify=cl.stringify=cl.strConcat=cl.addCodeArg=cl.str=cl._=cl.nil=cl._Code=cl.Name=cl.IDENTIFIER=cl._CodeOrName=void 0;class Qn{}cl._CodeOrName=Qn;cl.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class xr extends Qn{constructor(e){super();if(!cl.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}cl.Name=xr;class Pe extends Qn{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,t)=>`${r}${t}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,t)=>{if(t instanceof xr)r[t.str]=(r[t.str]||0)+1;return r},{})}}cl._Code=Pe;cl.nil=new Pe("");function ll(e,...r){let t=[e[0]],n=0;while(n<r.length)Ka(t,r[n]),t.push(e[++n]);return new Pe(t)}cl._=ll;var Fa=new Pe("+");function dl(e,...r){let t=[Pt(e[0])],n=0;while(n<r.length)t.push(Fa),Ka(t,r[n]),t.push(Fa,Pt(e[++n]));return Jg(t),new Pe(t)}cl.str=dl;function Ka(e,r){if(r instanceof Pe)e.push(...r._items);else if(r instanceof xr)e.push(r);else e.push(Bg(r))}cl.addCodeArg=Ka;function Jg(e){let r=1;while(r<e.length-1){if(e[r]===Fa){let t=Fg(e[r-1],e[r+1]);if(t!==void 0){e.splice(r-1,3,t);continue}e[r++]="+"}r++}}function Fg(e,r){if(r==='""')return e;if(e==='""')return r;if(typeof e=="string"){if(r instanceof xr||e[e.length-1]!=='"')return;if(typeof r!="string")return`${e.slice(0,-1)}${r}"`;if(r[0]==='"')return e.slice(0,-1)+r.slice(1);return}if(typeof r=="string"&&r[0]==='"'&&!(e instanceof xr))return`"${e}${r.slice(1)}`;return}function Kg(e,r){return r.emptyStr()?e:e.emptyStr()?r:dl`${e}${r}`}cl.strConcat=Kg;function Bg(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Pt(Array.isArray(e)?e.join(","):e)}function Yg(e){return new Pe(Pt(e))}cl.stringify=Yg;function Pt(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}cl.safeStringify=Pt;function Zg(e){return typeof e=="string"&&cl.IDENTIFIER.test(e)?new Pe(`.${e}`):ll`[${e}]`}cl.getProperty=Zg;function Qg(e){if(typeof e=="string"&&cl.IDENTIFIER.test(e))return new Pe(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}cl.getEsmExportName=Qg;function Hg(e){return new Pe(e.toString())}cl.regexpCode=Hg});var Qa=g((hl)=>{Object.defineProperty(hl,"__esModule",{value:!0});hl.ValueScope=hl.ValueScopeName=hl.Scope=hl.varKinds=hl.UsedValueState=void 0;var ue=Tt();class pl extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var xn;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(xn||(hl.UsedValueState=xn={}));hl.varKinds={const:new ue.Name("const"),let:new ue.Name("let"),var:new ue.Name("var")};class Ya{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof ue.Name?e:this.name(e)}name(e){return new ue.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,t;if(((t=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||t===void 0?void 0:t.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}hl.Scope=Ya;class Za extends ue.Name{constructor(e,r){super(r);this.prefix=e}setValue(e,{property:r,itemIndex:t}){this.value=e,this.scopePath=ue._`.${new ue.Name(r)}[${t}]`}}hl.ValueScopeName=Za;var dq=ue._`\n`;class fl extends Ya{constructor(e){super(e);this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?dq:ue.nil}}get(){return this._scope}name(e){return new Za(e,this._newName(e))}value(e,r){var t;if(r.ref===void 0)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,a=(t=r.key)!==null&&t!==void 0?t:r.ref,s=this._values[i];if(s){let l=s.get(a);if(l)return l}else s=this._values[i]=new Map;s.set(a,n);let o=this._scope[i]||(this._scope[i]=[]),u=o.length;return o[u]=r.ref,n.setValue(r,{property:i,itemIndex:u}),n}getValue(e,r){let t=this._values[e];if(!t)return;return t.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,(t)=>{if(t.scopePath===void 0)throw Error(`CodeGen: name "${t}" has no value`);return ue._`${e}${t.scopePath}`})}scopeCode(e=this._values,r,t){return this._reduceValues(e,(n)=>{if(n.value===void 0)throw Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,t)}_reduceValues(e,r,t={},n){let i=ue.nil;for(let a in e){let s=e[a];if(!s)continue;let o=t[a]=t[a]||new Map;s.forEach((u)=>{if(o.has(u))return;o.set(u,xn.Started);let l=r(u);if(l){let d=this.opts.es5?hl.varKinds.var:hl.varKinds.const;i=ue._`${i}${d} ${u} = ${l};${this.opts._n}`}else if(l=n===null||n===void 0?void 0:n(u))i=ue._`${i}${l}${this.opts._n}`;else throw new pl(u);o.set(u,xn.Completed)})}return i}}hl.ValueScope=fl});var z=g((le)=>{Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var T=Tt(),Te=Qa(),sr=Tt();Object.defineProperty(le,"_",{enumerable:!0,get:function(){return sr._}});Object.defineProperty(le,"str",{enumerable:!0,get:function(){return sr.str}});Object.defineProperty(le,"strConcat",{enumerable:!0,get:function(){return sr.strConcat}});Object.defineProperty(le,"nil",{enumerable:!0,get:function(){return sr.nil}});Object.defineProperty(le,"getProperty",{enumerable:!0,get:function(){return sr.getProperty}});Object.defineProperty(le,"stringify",{enumerable:!0,get:function(){return sr.stringify}});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:function(){return sr.regexpCode}});Object.defineProperty(le,"Name",{enumerable:!0,get:function(){return sr.Name}});var ii=Qa();Object.defineProperty(le,"Scope",{enumerable:!0,get:function(){return ii.Scope}});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:function(){return ii.ValueScope}});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:function(){return ii.ValueScopeName}});Object.defineProperty(le,"varKinds",{enumerable:!0,get:function(){return ii.varKinds}});le.operators={GT:new T._Code(">"),GTE:new T._Code(">="),LT:new T._Code("<"),LTE:new T._Code("<="),EQ:new T._Code("==="),NEQ:new T._Code("!=="),NOT:new T._Code("!"),OR:new T._Code("||"),AND:new T._Code("&&"),ADD:new T._Code("+")};class or{optimizeNodes(){return this}optimizeNames(e,r){return this}}class Il extends or{constructor(e,r,t){super();this.varKind=e,this.name=r,this.rhs=t}render({es5:e,_n:r}){let t=e?Te.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${t} ${this.name}${n};`+r}optimizeNames(e,r){if(!e[this.name.str])return;if(this.rhs)this.rhs=et(this.rhs,e,r);return this}get names(){return this.rhs instanceof T._CodeOrName?this.rhs.names:{}}}class _a extends or{constructor(e,r,t){super();this.lhs=e,this.rhs=r,this.sideEffects=t}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(this.lhs instanceof T.Name&&!e[this.lhs.str]&&!this.sideEffects)return;return this.rhs=et(this.rhs,e,r),this}get names(){let e=this.lhs instanceof T.Name?{}:{...this.lhs.names};return ni(e,this.rhs)}}class gl extends _a{constructor(e,r,t,n){super(e,t,n);this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class ql extends or{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class wl extends or{constructor(e){super();this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class bl extends or{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class Al extends or{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=et(this.code,e,r),this}get names(){return this.code instanceof T._CodeOrName?this.code.names:{}}}class ai extends or{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce((r,t)=>r+t.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;while(r--){let t=e[r].optimizeNodes();if(Array.isArray(t))e.splice(r,1,...t);else if(t)e[r]=t;else e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:t}=this,n=t.length;while(n--){let i=t[n];if(i.optimizeNames(e,r))continue;fq(e,i.names),t.splice(n,1)}return t.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>vr(e,r.names),{})}}class ur extends ai{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class Cl extends ai{}class Vt extends ur{}Vt.kind="else";class He extends ur{constructor(e,r){super(r);this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);if(this.else)r+="else "+this.else.render(e);return r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let t=r.optimizeNodes();r=this.else=Array.isArray(t)?new Vt(t):t}if(r){if(e===!1)return r instanceof He?r:r.nodes;if(this.nodes.length)return this;return new He($l(e),r instanceof He?[r]:r.nodes)}if(e===!1||!this.nodes.length)return;return this}optimizeNames(e,r){var t;if(this.else=(t=this.else)===null||t===void 0?void 0:t.optimizeNames(e,r),!(super.optimizeNames(e,r)||this.else))return;return this.condition=et(this.condition,e,r),this}get names(){let e=super.names;if(ni(e,this.condition),this.else)vr(e,this.else.names);return e}}He.kind="if";class _r extends ur{}_r.kind="for";class kl extends _r{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;return this.iteration=et(this.iteration,e,r),this}get names(){return vr(super.names,this.iteration.names)}}class Rl extends _r{constructor(e,r,t,n){super();this.varKind=e,this.name=r,this.from=t,this.to=n}render(e){let r=e.es5?Te.varKinds.var:this.varKind,{name:t,from:n,to:i}=this;return`for(${r} ${t}=${n}; ${t}<${i}; ${t}++)`+super.render(e)}get names(){let e=ni(super.names,this.from);return ni(e,this.to)}}class Ha extends _r{constructor(e,r,t,n){super();this.loop=e,this.varKind=r,this.name=t,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(!super.optimizeNames(e,r))return;return this.iterable=et(this.iterable,e,r),this}get names(){return vr(super.names,this.iterable.names)}}class _n extends ur{constructor(e,r,t){super();this.name=e,this.args=r,this.async=t}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}_n.kind="func";class ei extends ai{render(e){return"return "+super.render(e)}}ei.kind="return";class Ll extends ur{render(e){let r="try"+super.render(e);if(this.catch)r+=this.catch.render(e);if(this.finally)r+=this.finally.render(e);return r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var t,n;return super.optimizeNames(e,r),(t=this.catch)===null||t===void 0||t.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;if(this.catch)vr(e,this.catch.names);if(this.finally)vr(e,this.finally.names);return e}}class ri extends ur{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}ri.kind="catch";class ti extends ur{render(e){return"finally"+super.render(e)}}ti.kind="finally";class vl{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
28
|
+
`:""},this._extScope=e,this._scope=new Te.Scope({parent:e}),this._nodes=[new Cl]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let t=this._extScope.value(e,r);return(this._values[t.prefix]||(this._values[t.prefix]=new Set)).add(t),t}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,t,n){let i=this._scope.toName(r);if(t!==void 0&&n)this._constants[i.str]=t;return this._leafNode(new Il(e,i,t)),i}const(e,r,t){return this._def(Te.varKinds.const,e,r,t)}let(e,r,t){return this._def(Te.varKinds.let,e,r,t)}var(e,r,t){return this._def(Te.varKinds.var,e,r,t)}assign(e,r,t){return this._leafNode(new _a(e,r,t))}add(e,r){return this._leafNode(new gl(e,le.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==T.nil)this._leafNode(new Al(e));return this}object(...e){let r=["{"];for(let[t,n]of e){if(r.length>1)r.push(",");if(r.push(t),t!==n||this.opts.es5)r.push(":"),(0,T.addCodeArg)(r,n)}return r.push("}"),new T._Code(r)}if(e,r,t){if(this._blockNode(new He(e)),r&&t)this.code(r).else().code(t).endIf();else if(r)this.code(r).endIf();else if(t)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new He(e))}else(){return this._elseNode(new Vt)}endIf(){return this._endBlockNode(He,Vt)}_for(e,r){if(this._blockNode(e),r)this.code(r).endFor();return this}for(e,r){return this._for(new kl(e),r)}forRange(e,r,t,n,i=this.opts.es5?Te.varKinds.var:Te.varKinds.let){let a=this._scope.toName(e);return this._for(new Rl(i,a,r,t),()=>n(a))}forOf(e,r,t,n=Te.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let a=r instanceof T.Name?r:this.var("_arr",r);return this.forRange("_i",0,T._`${a}.length`,(s)=>{this.var(i,T._`${a}[${s}]`),t(i)})}return this._for(new Ha("of",n,i,r),()=>t(i))}forIn(e,r,t,n=this.opts.es5?Te.varKinds.var:Te.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,T._`Object.keys(${r})`,t);let i=this._scope.toName(e);return this._for(new Ha("in",n,i,r),()=>t(i))}endFor(){return this._endBlockNode(_r)}label(e){return this._leafNode(new ql(e))}break(e){return this._leafNode(new wl(e))}return(e){let r=new ei;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(ei)}try(e,r,t){if(!r&&!t)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new Ll;if(this._blockNode(n),this.code(e),r){let i=this.name("e");this._currNode=n.catch=new ri(i),r(i)}if(t)this._currNode=n.finally=new ti,this.code(t);return this._endBlockNode(ri,ti)}throw(e){return this._leafNode(new bl(e))}block(e,r){if(this._blockStarts.push(this._nodes.length),e)this.code(e).endBlock(r);return this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw Error("CodeGen: not in self-balancing block");let t=this._nodes.length-r;if(t<0||e!==void 0&&t!==e)throw Error(`CodeGen: wrong number of nodes: ${t} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=T.nil,t,n){if(this._blockNode(new _n(e,r,t)),n)this.code(n).endFunc();return this}endFunc(){return this._endBlockNode(_n)}optimize(e=1){while(e-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let t=this._currNode;if(t instanceof e||r&&t instanceof r)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof He))throw Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}}le.CodeGen=vl;function vr(e,r){for(let t in r)e[t]=(e[t]||0)+(r[t]||0);return e}function ni(e,r){return r instanceof T._CodeOrName?vr(e,r.names):e}function et(e,r,t){if(e instanceof T.Name)return n(e);if(!i(e))return e;return new T._Code(e._items.reduce((a,s)=>{if(s instanceof T.Name)s=n(s);if(s instanceof T._Code)a.push(...s._items);else a.push(s);return a},[]));function n(a){let s=t[a.str];if(s===void 0||r[a.str]!==1)return a;return delete r[a.str],s}function i(a){return a instanceof T._Code&&a._items.some((s)=>s instanceof T.Name&&r[s.str]===1&&t[s.str]!==void 0)}}function fq(e,r){for(let t in r)e[t]=(e[t]||0)-(r[t]||0)}function $l(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:T._`!${xa(e)}`}le.not=$l;var hq=Sl(le.operators.AND);function yq(...e){return e.reduce(hq)}le.and=yq;var Iq=Sl(le.operators.OR);function gq(...e){return e.reduce(Iq)}le.or=gq;function Sl(e){return(r,t)=>r===T.nil?t:t===T.nil?r:T._`${xa(r)} ${e} ${xa(t)}`}function xa(e){return e instanceof T.Name?e:T._`(${e})`}});var j=g((Nl)=>{Object.defineProperty(Nl,"__esModule",{value:!0});Nl.checkStrictMode=Nl.getErrorPath=Nl.Type=Nl.useFunc=Nl.setEvaluated=Nl.evaluatedPropsToName=Nl.mergeEvaluated=Nl.eachItem=Nl.unescapeJsonPointer=Nl.escapeJsonPointer=Nl.escapeFragment=Nl.unescapeFragment=Nl.schemaRefOrVal=Nl.schemaHasRulesButRef=Nl.schemaHasRules=Nl.checkUnknownRules=Nl.alwaysValidSchema=Nl.toHash=void 0;var E=z(),Aq=Tt();function Cq(e){let r={};for(let t of e)r[t]=!0;return r}Nl.toHash=Cq;function kq(e,r){if(typeof r=="boolean")return r;if(Object.keys(r).length===0)return!0;return Wl(e,r),!jl(r,e.self.RULES.all)}Nl.alwaysValidSchema=kq;function Wl(e,r=e.schema){let{opts:t,self:n}=e;if(!t.strictSchema)return;if(typeof r==="boolean")return;let i=n.RULES.keywords;for(let a in r)if(!i[a])Vl(e,`unknown keyword: "${a}"`)}Nl.checkUnknownRules=Wl;function jl(e,r){if(typeof e=="boolean")return!e;for(let t in e)if(r[t])return!0;return!1}Nl.schemaHasRules=jl;function Rq(e,r){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&r.all[t])return!0;return!1}Nl.schemaHasRulesButRef=Rq;function Lq({topSchemaRef:e,schemaPath:r},t,n,i){if(!i){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return E._`${t}`}return E._`${e}${r}${(0,E.getProperty)(n)}`}Nl.schemaRefOrVal=Lq;function vq(e){return Pl(decodeURIComponent(e))}Nl.unescapeFragment=vq;function $q(e){return encodeURIComponent(rs(e))}Nl.escapeFragment=$q;function rs(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}Nl.escapeJsonPointer=rs;function Pl(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Nl.unescapeJsonPointer=Pl;function Sq(e,r){if(Array.isArray(e))for(let t of e)r(t);else r(e)}Nl.eachItem=Sq;function Ol({mergeNames:e,mergeToName:r,mergeValues:t,resultToName:n}){return(i,a,s,o)=>{let u=s===void 0?a:s instanceof E.Name?(a instanceof E.Name?e(i,a,s):r(i,a,s),s):a instanceof E.Name?(r(i,s,a),a):t(a,s);return o===E.Name&&!(u instanceof E.Name)?n(i,u):u}}Nl.mergeEvaluated={props:Ol({mergeNames:(e,r,t)=>e.if(E._`${t} !== true && ${r} !== undefined`,()=>{e.if(E._`${r} === true`,()=>e.assign(t,!0),()=>e.assign(t,E._`${t} || {}`).code(E._`Object.assign(${t}, ${r})`))}),mergeToName:(e,r,t)=>e.if(E._`${t} !== true`,()=>{if(r===!0)e.assign(t,!0);else e.assign(t,E._`${t} || {}`),ts(e,t,r)}),mergeValues:(e,r)=>e===!0?!0:{...e,...r},resultToName:Tl}),items:Ol({mergeNames:(e,r,t)=>e.if(E._`${t} !== true && ${r} !== undefined`,()=>e.assign(t,E._`${r} === true ? true : ${t} > ${r} ? ${t} : ${r}`)),mergeToName:(e,r,t)=>e.if(E._`${t} !== true`,()=>e.assign(t,r===!0?!0:E._`${t} > ${r} ? ${t} : ${r}`)),mergeValues:(e,r)=>e===!0?!0:Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})};function Tl(e,r){if(r===!0)return e.var("props",!0);let t=e.var("props",E._`{}`);if(r!==void 0)ts(e,t,r);return t}Nl.evaluatedPropsToName=Tl;function ts(e,r,t){Object.keys(t).forEach((n)=>e.assign(E._`${r}${(0,E.getProperty)(n)}`,!0))}Nl.setEvaluated=ts;var zl={};function Xq(e,r){return e.scopeValue("func",{ref:r,code:zl[r.code]||(zl[r.code]=new Aq._Code(r.code))})}Nl.useFunc=Xq;var es;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(es||(Nl.Type=es={}));function Oq(e,r,t){if(e instanceof E.Name){let n=r===es.Num;return t?n?E._`"[" + ${e} + "]"`:E._`"['" + ${e} + "']"`:n?E._`"/" + ${e}`:E._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,E.getProperty)(e).toString():"/"+rs(e)}Nl.getErrorPath=Oq;function Vl(e,r,t=e.opts.strictSchema){if(!t)return;if(r=`strict mode: ${r}`,t===!0)throw Error(r);e.self.logger.warn(r)}Nl.checkStrictMode=Vl});var ke=g((El)=>{Object.defineProperty(El,"__esModule",{value:!0});var _=z(),Zq={data:new _.Name("data"),valCxt:new _.Name("valCxt"),instancePath:new _.Name("instancePath"),parentData:new _.Name("parentData"),parentDataProperty:new _.Name("parentDataProperty"),rootData:new _.Name("rootData"),dynamicAnchors:new _.Name("dynamicAnchors"),vErrors:new _.Name("vErrors"),errors:new _.Name("errors"),this:new _.Name("this"),self:new _.Name("self"),scope:new _.Name("scope"),json:new _.Name("json"),jsonPos:new _.Name("jsonPos"),jsonLen:new _.Name("jsonLen"),jsonPart:new _.Name("jsonPart")};El.default=Zq});var Nt=g((Jl)=>{Object.defineProperty(Jl,"__esModule",{value:!0});Jl.extendErrors=Jl.resetErrorsCount=Jl.reportExtraError=Jl.reportError=Jl.keyword$DataError=Jl.keywordError=void 0;var V=z(),oi=j(),ae=ke();Jl.keywordError={message:({keyword:e})=>V.str`must pass "${e}" keyword validation`};Jl.keyword$DataError={message:({keyword:e,schemaType:r})=>r?V.str`"${e}" keyword must be ${r} ($data)`:V.str`"${e}" keyword is invalid ($data)`};function Hq(e,r=Jl.keywordError,t,n){let{it:i}=e,{gen:a,compositeRule:s,allErrors:o}=i,u=Ul(e,r,t);if(n!==null&&n!==void 0?n:s||o)Ml(a,u);else Gl(i,V._`[${u}]`)}Jl.reportError=Hq;function xq(e,r=Jl.keywordError,t){let{it:n}=e,{gen:i,compositeRule:a,allErrors:s}=n,o=Ul(e,r,t);if(Ml(i,o),!(a||s))Gl(n,ae.default.vErrors)}Jl.reportExtraError=xq;function _q(e,r){e.assign(ae.default.errors,r),e.if(V._`${ae.default.vErrors} !== null`,()=>e.if(r,()=>e.assign(V._`${ae.default.vErrors}.length`,r),()=>e.assign(ae.default.vErrors,null)))}Jl.resetErrorsCount=_q;function ew({gen:e,keyword:r,schemaValue:t,data:n,errsCount:i,it:a}){if(i===void 0)throw Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,ae.default.errors,(o)=>{if(e.const(s,V._`${ae.default.vErrors}[${o}]`),e.if(V._`${s}.instancePath === undefined`,()=>e.assign(V._`${s}.instancePath`,(0,V.strConcat)(ae.default.instancePath,a.errorPath))),e.assign(V._`${s}.schemaPath`,V.str`${a.errSchemaPath}/${r}`),a.opts.verbose)e.assign(V._`${s}.schema`,t),e.assign(V._`${s}.data`,n)})}Jl.extendErrors=ew;function Ml(e,r){let t=e.const("err",r);e.if(V._`${ae.default.vErrors} === null`,()=>e.assign(ae.default.vErrors,V._`[${t}]`),V._`${ae.default.vErrors}.push(${t})`),e.code(V._`${ae.default.errors}++`)}function Gl(e,r){let{gen:t,validateName:n,schemaEnv:i}=e;if(i.$async)t.throw(V._`new ${e.ValidationError}(${r})`);else t.assign(V._`${n}.errors`,r),t.return(!1)}var $r={keyword:new V.Name("keyword"),schemaPath:new V.Name("schemaPath"),params:new V.Name("params"),propertyName:new V.Name("propertyName"),message:new V.Name("message"),schema:new V.Name("schema"),parentSchema:new V.Name("parentSchema")};function Ul(e,r,t){let{createErrors:n}=e.it;if(n===!1)return V._`{}`;return rw(e,r,t)}function rw(e,r,t={}){let{gen:n,it:i}=e,a=[tw(i,t),nw(e,t)];return iw(e,r,a),n.object(...a)}function tw({errorPath:e},{instancePath:r}){let t=r?V.str`${e}${(0,oi.getErrorPath)(r,oi.Type.Str)}`:e;return[ae.default.instancePath,(0,V.strConcat)(ae.default.instancePath,t)]}function nw({keyword:e,it:{errSchemaPath:r}},{schemaPath:t,parentSchema:n}){let i=n?r:V.str`${r}/${e}`;if(t)i=V.str`${i}${(0,oi.getErrorPath)(t,oi.Type.Str)}`;return[$r.schemaPath,i]}function iw(e,{params:r,message:t},n){let{keyword:i,data:a,schemaValue:s,it:o}=e,{opts:u,propertyName:l,topSchemaRef:d,schemaPath:c}=o;if(n.push([$r.keyword,i],[$r.params,typeof r=="function"?r(e):r||V._`{}`]),u.messages)n.push([$r.message,typeof t=="function"?t(e):t]);if(u.verbose)n.push([$r.schema,s],[$r.parentSchema,V._`${d}${c}`],[ae.default.data,a]);if(l)n.push([$r.propertyName,l])}});var Zl=g((Bl)=>{Object.defineProperty(Bl,"__esModule",{value:!0});Bl.boolOrEmptySchema=Bl.topBoolOrEmptySchema=void 0;var lw=Nt(),dw=z(),cw=ke(),mw={message:"boolean schema is false"};function pw(e){let{gen:r,schema:t,validateName:n}=e;if(t===!1)Kl(e,!1);else if(typeof t=="object"&&t.$async===!0)r.return(cw.default.data);else r.assign(dw._`${n}.errors`,null),r.return(!0)}Bl.topBoolOrEmptySchema=pw;function fw(e,r){let{gen:t,schema:n}=e;if(n===!1)t.var(r,!1),Kl(e);else t.var(r,!0)}Bl.boolOrEmptySchema=fw;function Kl(e,r){let{gen:t,data:n}=e,i={gen:t,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,lw.reportError)(i,mw,void 0,r)}});var is=g((Ql)=>{Object.defineProperty(Ql,"__esModule",{value:!0});Ql.getRules=Ql.isJSONType=void 0;var yw=["string","number","integer","boolean","null","object","array"],Iw=new Set(yw);function gw(e){return typeof e=="string"&&Iw.has(e)}Ql.isJSONType=gw;function qw(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ql.getRules=qw});var as=g((ed)=>{Object.defineProperty(ed,"__esModule",{value:!0});ed.shouldUseRule=ed.shouldUseGroup=ed.schemaHasRulesForType=void 0;function bw({schema:e,self:r},t){let n=r.RULES.types[t];return n&&n!==!0&&xl(e,n)}ed.schemaHasRulesForType=bw;function xl(e,r){return r.rules.some((t)=>_l(e,t))}ed.shouldUseGroup=xl;function _l(e,r){var t;return e[r.keyword]!==void 0||((t=r.definition.implements)===null||t===void 0?void 0:t.some((n)=>e[n]!==void 0))}ed.shouldUseRule=_l});var Dt=g((ad)=>{Object.defineProperty(ad,"__esModule",{value:!0});ad.reportTypeError=ad.checkDataTypes=ad.checkDataType=ad.coerceAndCheckDataType=ad.getJSONTypes=ad.getSchemaTypes=ad.DataType=void 0;var kw=is(),Rw=as(),Lw=Nt(),W=z(),td=j(),rt;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(rt||(ad.DataType=rt={}));function vw(e){let r=nd(e.type);if(r.includes("null")){if(e.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!r.length&&e.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if(e.nullable===!0)r.push("null")}return r}ad.getSchemaTypes=vw;function nd(e){let r=Array.isArray(e)?e:e?[e]:[];if(r.every(kw.isJSONType))return r;throw Error("type must be JSONType or JSONType[]: "+r.join(","))}ad.getJSONTypes=nd;function $w(e,r){let{gen:t,data:n,opts:i}=e,a=Sw(r,i.coerceTypes),s=r.length>0&&!(a.length===0&&r.length===1&&(0,Rw.schemaHasRulesForType)(e,r[0]));if(s){let o=os(r,n,i.strictNumbers,rt.Wrong);t.if(o,()=>{if(a.length)Xw(e,r,a);else us(e)})}return s}ad.coerceAndCheckDataType=$w;var id=new Set(["string","number","integer","boolean","null"]);function Sw(e,r){return r?e.filter((t)=>id.has(t)||r==="array"&&t==="array"):[]}function Xw(e,r,t){let{gen:n,data:i,opts:a}=e,s=n.let("dataType",W._`typeof ${i}`),o=n.let("coerced",W._`undefined`);if(a.coerceTypes==="array")n.if(W._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,W._`${i}[0]`).assign(s,W._`typeof ${i}`).if(os(r,i,a.strictNumbers),()=>n.assign(o,i)));n.if(W._`${o} !== undefined`);for(let l of t)if(id.has(l)||l==="array"&&a.coerceTypes==="array")u(l);n.else(),us(e),n.endIf(),n.if(W._`${o} !== undefined`,()=>{n.assign(i,o),Ow(e,o)});function u(l){switch(l){case"string":n.elseIf(W._`${s} == "number" || ${s} == "boolean"`).assign(o,W._`"" + ${i}`).elseIf(W._`${i} === null`).assign(o,W._`""`);return;case"number":n.elseIf(W._`${s} == "boolean" || ${i} === null
|
|
29
29
|
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(o,W._`+${i}`);return;case"integer":n.elseIf(W._`${s} === "boolean" || ${i} === null
|
|
30
30
|
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(o,W._`+${i}`);return;case"boolean":n.elseIf(W._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(o,!1).elseIf(W._`${i} === "true" || ${i} === 1`).assign(o,!0);return;case"null":n.elseIf(W._`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(o,null);return;case"array":n.elseIf(W._`${s} === "string" || ${s} === "number"
|
|
31
|
-
|| ${s} === "boolean" || ${i} === null`).assign(o,W._`[${i}]`)}}}function mw({gen:e,parentData:t,parentDataProperty:r},n){e.if(W._`${t} !== undefined`,()=>e.assign(W._`${t}[${r}]`,n))}function rs(e,t,r,n=xt.Correct){let i=n===xt.Correct?W.operators.EQ:W.operators.NEQ,a;switch(e){case"null":return W._`${t} ${i} null`;case"array":a=W._`Array.isArray(${t})`;break;case"object":a=W._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=s(W._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=s();break;default:return W._`typeof ${t} ${i} ${e}`}return n===xt.Correct?a:(0,W.not)(a);function s(o=W.nil){return(0,W.and)(W._`typeof ${t} == "number"`,o,r?W._`isFinite(${t})`:W.nil)}}Hl.checkDataType=rs;function ns(e,t,r,n){if(e.length===1)return rs(e[0],t,r,n);let i,a=(0,Bl.toHash)(e);if(a.array&&a.object){let s=W._`typeof ${t} != "object"`;i=a.null?s:W._`!${t} || ${s}`,delete a.null,delete a.array,delete a.object}else i=W.nil;if(a.number)delete a.integer;for(let s in a)i=(0,W.and)(i,rs(s,t,r,n));return i}Hl.checkDataTypes=ns;var pw={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?W._`{type: ${e}}`:W._`{type: ${t}}`};function is(e){let t=fw(e);(0,ow.reportError)(t,pw)}Hl.reportTypeError=is;function fw(e){let{gen:t,data:r,schema:n}=e,i=(0,Bl.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var ed=g((xl)=>{Object.defineProperty(xl,"__esModule",{value:!0});xl.assignDefaults=void 0;var _t=z(),bw=j();function Aw(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Ql(e,i,r[i].default);else if(t==="array"&&Array.isArray(n))n.forEach((i,a)=>Ql(e,a,i.default))}xl.assignDefaults=Aw;function Ql(e,t,r){let{gen:n,compositeRule:i,data:a,opts:s}=e;if(r===void 0)return;let o=_t._`${a}${(0,_t.getProperty)(t)}`;if(i){(0,bw.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=_t._`${o} === undefined`;if(s.useDefaults==="empty")u=_t._`${u} || ${o} === null || ${o} === ""`;n.if(u,_t._`${o} = ${(0,_t.stringify)(r)}`)}});var Ce=g((nd)=>{Object.defineProperty(nd,"__esModule",{value:!0});nd.validateUnion=nd.validateArray=nd.usePattern=nd.callValidateCode=nd.schemaProperties=nd.allSchemaProperties=nd.noPropertyInData=nd.propertyInData=nd.isOwnProperty=nd.hasPropFunc=nd.reportMissingProp=nd.checkMissingProp=nd.checkReportMissingProp=void 0;var M=z(),as=j(),ot=Ae(),Cw=j();function kw(e,t){let{gen:r,data:n,it:i}=e;r.if(os(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:M._`${t}`},!0),e.error()})}nd.checkReportMissingProp=kw;function Rw({gen:e,data:t,it:{opts:r}},n,i){return(0,M.or)(...n.map((a)=>(0,M.and)(os(e,t,a,r.ownProperties),M._`${i} = ${a}`)))}nd.checkMissingProp=Rw;function Lw(e,t){e.setParams({missingProperty:t},!0),e.error()}nd.reportMissingProp=Lw;function td(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:M._`Object.prototype.hasOwnProperty`})}nd.hasPropFunc=td;function ss(e,t,r){return M._`${td(e)}.call(${t}, ${r})`}nd.isOwnProperty=ss;function vw(e,t,r,n){let i=M._`${t}${(0,M.getProperty)(r)} !== undefined`;return n?M._`${i} && ${ss(e,t,r)}`:i}nd.propertyInData=vw;function os(e,t,r,n){let i=M._`${t}${(0,M.getProperty)(r)} === undefined`;return n?(0,M.or)(i,(0,M.not)(ss(e,t,r))):i}nd.noPropertyInData=os;function rd(e){return e?Object.keys(e).filter((t)=>t!=="__proto__"):[]}nd.allSchemaProperties=rd;function $w(e,t){return rd(t).filter((r)=>!(0,as.alwaysValidSchema)(e,t[r]))}nd.schemaProperties=$w;function Sw({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:a},it:s},o,u,l){let d=l?M._`${e}, ${t}, ${n}${i}`:t,c=[[ot.default.instancePath,(0,M.strConcat)(ot.default.instancePath,a)],[ot.default.parentData,s.parentData],[ot.default.parentDataProperty,s.parentDataProperty],[ot.default.rootData,ot.default.rootData]];if(s.opts.dynamicRef)c.push([ot.default.dynamicAnchors,ot.default.dynamicAnchors]);let m=M._`${d}, ${r.object(...c)}`;return u!==M.nil?M._`${o}.call(${u}, ${m})`:M._`${o}(${m})`}nd.callValidateCode=Sw;var Xw=M._`new RegExp`;function Ow({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,a=i(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:M._`${i.code==="new RegExp"?Xw:(0,Cw.useFunc)(e,i)}(${r}, ${n})`})}nd.usePattern=Ow;function zw(e){let{gen:t,data:r,keyword:n,it:i}=e,a=t.name("valid");if(i.allErrors){let o=t.let("valid",!0);return s(()=>t.assign(o,!1)),o}return t.var(a,!0),s(()=>t.break()),a;function s(o){let u=t.const("len",M._`${r}.length`);t.forRange("i",0,u,(l)=>{e.subschema({keyword:n,dataProp:l,dataPropType:as.Type.Num},a),t.if((0,M.not)(a),o)})}}nd.validateArray=zw;function Ww(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some((u)=>(0,as.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let s=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let d=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},o);if(t.assign(s,M._`${s} || ${o}`),!e.mergeValidEvaluated(d,o))t.if((0,M.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}nd.validateUnion=Ww});var ld=g((od)=>{Object.defineProperty(od,"__esModule",{value:!0});od.validateKeywordUsage=od.validSchemaType=od.funcKeywordCode=od.macroKeywordCode=void 0;var ae=z(),vt=Ae(),Bw=Ce(),Kw=Pr();function Yw(e,t){let{gen:r,keyword:n,schema:i,parentSchema:a,it:s}=e,o=t.macro.call(s.self,i,a,s),u=sd(r,n,o);if(s.opts.validateSchema!==!1)s.self.validateSchema(o,!0);let l=r.name("valid");e.subschema({schema:o,schemaPath:ae.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}od.macroKeywordCode=Yw;function Hw(e,t){var r;let{gen:n,keyword:i,schema:a,parentSchema:s,$data:o,it:u}=e;Qw(u,t);let l=!o&&t.compile?t.compile.call(u.self,a,s,u):t.validate,d=sd(n,i,l),c=n.let("valid");e.block$data(c,m),e.ok((r=t.valid)!==null&&r!==void 0?r:c);function m(){if(t.errors===!1){if(p(),t.modifying)ad(e);y(()=>e.error())}else{let I=t.async?h():f();if(t.modifying)ad(e);y(()=>Zw(e,I))}}function h(){let I=n.let("ruleErrs",null);return n.try(()=>p(ae._`await `),(q)=>n.assign(c,!1).if(ae._`${q} instanceof ${u.ValidationError}`,()=>n.assign(I,ae._`${q}.errors`),()=>n.throw(q))),I}function f(){let I=ae._`${d}.errors`;return n.assign(I,null),p(ae.nil),I}function p(I=t.async?ae._`await `:ae.nil){let q=u.opts.passContext?vt.default.this:vt.default.self,b=!(("compile"in t)&&!o||t.schema===!1);n.assign(c,ae._`${I}${(0,Bw.callValidateCode)(e,d,q,b)}`,t.modifying)}function y(I){var q;n.if((0,ae.not)((q=t.valid)!==null&&q!==void 0?q:c),I)}}od.funcKeywordCode=Hw;function ad(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,ae._`${n.parentData}[${n.parentDataProperty}]`))}function Zw(e,t){let{gen:r}=e;r.if(ae._`Array.isArray(${t})`,()=>{r.assign(vt.default.vErrors,ae._`${vt.default.vErrors} === null ? ${t} : ${vt.default.vErrors}.concat(${t})`).assign(vt.default.errors,ae._`${vt.default.vErrors}.length`),(0,Kw.extendErrors)(e)},()=>e.error())}function Qw({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}function sd(e,t,r){if(r===void 0)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,ae.stringify)(r)})}function xw(e,t,r=!1){return!t.length||t.some((n)=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}od.validSchemaType=xw;function _w({schema:e,opts:t,self:r,errSchemaPath:n},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error("ajv implementation error");let s=i.dependencies;if(s===null||s===void 0?void 0:s.some((o)=>!Object.prototype.hasOwnProperty.call(e,o)))throw Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(i.validateSchema){if(!i.validateSchema(e[a])){let u=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw Error(u)}}}od.validateKeywordUsage=_w});var pd=g((cd)=>{Object.defineProperty(cd,"__esModule",{value:!0});cd.extendSubschemaMode=cd.extendSubschemaData=cd.getSubschema=void 0;var Me=z(),dd=j();function nb(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:a,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let o=e.schema[t];return r===void 0?{schema:o,schemaPath:Me._`${e.schemaPath}${(0,Me.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:Me._`${e.schemaPath}${(0,Me.getProperty)(t)}${(0,Me.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,dd.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||a===void 0||s===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:a}}throw Error('either "keyword" or "schema" must be passed')}cd.getSubschema=nb;function ib(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:a,propertyName:s}){if(i!==void 0&&r!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=t;if(r!==void 0){let{errorPath:l,dataPathArr:d,opts:c}=t,m=o.let("data",Me._`${t.data}${(0,Me.getProperty)(r)}`,!0);u(m),e.errorPath=Me.str`${l}${(0,dd.getErrorPath)(r,n,c.jsPropertySyntax)}`,e.parentDataProperty=Me._`${r}`,e.dataPathArr=[...d,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Me.Name?i:o.let("data",i,!0);if(u(l),s!==void 0)e.propertyName=s}if(a)e.dataTypes=a;function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}cd.extendSubschemaData=ib;function ab(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:a}){if(n!==void 0)e.compositeRule=n;if(i!==void 0)e.createErrors=i;if(a!==void 0)e.allErrors=a;e.jtdDiscriminator=t,e.jtdMetadata=r}cd.extendSubschemaMode=ab});var us=g((EO,fd)=>{fd.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var s=a[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var yd=g((DO,hd)=>{var ut=hd.exports=function(e,t,r){if(typeof t=="function")r=t,t={};r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};ii(t,n,i,e,"",e)};ut.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ut.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ut.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ut.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ii(e,t,r,n,i,a,s,o,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,a,s,o,u,l);for(var d in n){var c=n[d];if(Array.isArray(c)){if(d in ut.arrayKeywords)for(var m=0;m<c.length;m++)ii(e,t,r,c[m],i+"/"+d+"/"+m,a,i,d,n,m)}else if(d in ut.propsKeywords){if(c&&typeof c=="object")for(var h in c)ii(e,t,r,c[h],i+"/"+d+"/"+ub(h),a,i,d,n,h)}else if(d in ut.keywords||e.allKeys&&!(d in ut.skipKeywords))ii(e,t,r,c,i+"/"+d,a,i,d,n)}r(n,i,a,s,o,u,l)}}function ub(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Vr=g((wd)=>{Object.defineProperty(wd,"__esModule",{value:!0});wd.getSchemaRefs=wd.resolveUrl=wd.normalizeId=wd._getFullPath=wd.getFullPath=wd.inlineRef=void 0;var lb=j(),db=us(),cb=yd(),mb=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function pb(e,t=!0){if(typeof e=="boolean")return!0;if(t===!0)return!ls(e);if(!t)return!1;return Id(e)<=t}wd.inlineRef=pb;var fb=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ls(e){for(let t in e){if(fb.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ls))return!0;if(typeof r=="object"&&ls(r))return!0}return!1}function Id(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,mb.has(r))continue;if(typeof e[r]=="object")(0,lb.eachItem)(e[r],(n)=>t+=Id(n));if(t===1/0)return 1/0}return t}function gd(e,t="",r){if(r!==!1)t=er(t);let n=e.parse(t);return qd(e,n)}wd.getFullPath=gd;function qd(e,t){return e.serialize(t).split("#")[0]+"#"}wd._getFullPath=qd;var hb=/#\/?$/;function er(e){return e?e.replace(hb,""):""}wd.normalizeId=er;function yb(e,t,r){return r=er(r),e.resolve(t,r)}wd.resolveUrl=yb;var Ib=/^[a-z_][-a-z0-9._]*$/i;function gb(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=er(e[r]||t),a={"":i},s=gd(n,i,!1),o={},u=new Set;return cb(e,{allKeys:!0},(c,m,h,f)=>{if(f===void 0)return;let p=s+m,y=a[f];if(typeof c[r]=="string")y=I.call(this,c[r]);q.call(this,c.$anchor),q.call(this,c.$dynamicAnchor),a[m]=y;function I(b){let $=this.opts.uriResolver.resolve;if(b=er(y?$(y,b):b),u.has(b))throw d(b);u.add(b);let k=this.refs[b];if(typeof k=="string")k=this.refs[k];if(typeof k=="object")l(c,k.schema,b);else if(b!==er(p))if(b[0]==="#")l(c,o[b],b),o[b]=c;else this.refs[b]=p;return b}function q(b){if(typeof b=="string"){if(!Ib.test(b))throw Error(`invalid anchor "${b}"`);I.call(this,`#${b}`)}}}),o;function l(c,m,h){if(m!==void 0&&!db(c,m))throw d(h)}function d(c){return Error(`reference "${c}" resolves to more than one schema`)}}wd.getSchemaRefs=gb});var tr=g((Td)=>{Object.defineProperty(Td,"__esModule",{value:!0});Td.getData=Td.KeywordCxt=Td.validateFunctionCode=void 0;var Ld=El(),Ad=Tr(),cs=ts(),ai=Tr(),kb=ed(),Er=ld(),ds=pd(),L=z(),O=Ae(),Rb=Vr(),Ze=j(),Nr=Pr();function Lb(e){if(Sd(e)){if(Xd(e),$d(e)){Sb(e);return}}vd(e,()=>(0,Ld.topBoolOrEmptySchema)(e))}Td.validateFunctionCode=Lb;function vd({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},a){if(i.code.es5)e.func(t,L._`${O.default.data}, ${O.default.valCxt}`,n.$async,()=>{e.code(L._`"use strict"; ${Cd(r,i)}`),$b(e,i),e.code(a)});else e.func(t,L._`${O.default.data}, ${vb(i)}`,n.$async,()=>e.code(Cd(r,i)).code(a))}function vb(e){return L._`{${O.default.instancePath}="", ${O.default.parentData}, ${O.default.parentDataProperty}, ${O.default.rootData}=${O.default.data}${e.dynamicRef?L._`, ${O.default.dynamicAnchors}={}`:L.nil}}={}`}function $b(e,t){e.if(O.default.valCxt,()=>{if(e.var(O.default.instancePath,L._`${O.default.valCxt}.${O.default.instancePath}`),e.var(O.default.parentData,L._`${O.default.valCxt}.${O.default.parentData}`),e.var(O.default.parentDataProperty,L._`${O.default.valCxt}.${O.default.parentDataProperty}`),e.var(O.default.rootData,L._`${O.default.valCxt}.${O.default.rootData}`),t.dynamicRef)e.var(O.default.dynamicAnchors,L._`${O.default.valCxt}.${O.default.dynamicAnchors}`)},()=>{if(e.var(O.default.instancePath,L._`""`),e.var(O.default.parentData,L._`undefined`),e.var(O.default.parentDataProperty,L._`undefined`),e.var(O.default.rootData,O.default.data),t.dynamicRef)e.var(O.default.dynamicAnchors,L._`{}`)})}function Sb(e){let{schema:t,opts:r,gen:n}=e;vd(e,()=>{if(r.$comment&&t.$comment)zd(e);if(jb(e),n.let(O.default.vErrors,null),n.let(O.default.errors,0),r.unevaluated)Xb(e);Od(e),Vb(e)});return}function Xb(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",L._`${r}.evaluated`),t.if(L._`${e.evaluated}.dynamicProps`,()=>t.assign(L._`${e.evaluated}.props`,L._`undefined`)),t.if(L._`${e.evaluated}.dynamicItems`,()=>t.assign(L._`${e.evaluated}.items`,L._`undefined`))}function Cd(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?L._`/*# sourceURL=${r} */`:L.nil}function Ob(e,t){if(Sd(e)){if(Xd(e),$d(e)){zb(e,t);return}}(0,Ld.boolOrEmptySchema)(e,t)}function $d({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function Sd(e){return typeof e.schema!="boolean"}function zb(e,t){let{schema:r,gen:n,opts:i}=e;if(i.$comment&&r.$comment)zd(e);Pb(e),Tb(e);let a=n.const("_errs",O.default.errors);Od(e,a),n.var(t,L._`${a} === ${O.default.errors}`)}function Xd(e){(0,Ze.checkUnknownRules)(e),Wb(e)}function Od(e,t){if(e.opts.jtd)return kd(e,[],!1,t);let r=(0,Ad.getSchemaTypes)(e.schema),n=(0,Ad.coerceAndCheckDataType)(e,r);kd(e,r,!n,t)}function Wb(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;if(t.$ref&&n.ignoreKeywordsWithRef&&(0,Ze.schemaHasRulesButRef)(t,i.RULES))i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function jb(e){let{schema:t,opts:r}=e;if(t.default!==void 0&&r.useDefaults&&r.strictSchema)(0,Ze.checkStrictMode)(e,"default is ignored in the schema root")}function Pb(e){let t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,Rb.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function Tb(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}function zd({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let a=r.$comment;if(i.$comment===!0)e.code(L._`${O.default.self}.logger.log(${a})`);else if(typeof i.$comment=="function"){let s=L.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(L._`${O.default.self}.opts.$comment(${a}, ${s}, ${o}.schema)`)}}function Vb(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:a}=e;if(r.$async)t.if(L._`${O.default.errors} === 0`,()=>t.return(O.default.data),()=>t.throw(L._`new ${i}(${O.default.vErrors})`));else{if(t.assign(L._`${n}.errors`,O.default.vErrors),a.unevaluated)Nb(e);t.return(L._`${O.default.errors} === 0`)}}function Nb({gen:e,evaluated:t,props:r,items:n}){if(r instanceof L.Name)e.assign(L._`${t}.props`,r);if(n instanceof L.Name)e.assign(L._`${t}.items`,n)}function kd(e,t,r,n){let{gen:i,schema:a,data:s,allErrors:o,opts:u,self:l}=e,{RULES:d}=l;if(a.$ref&&(u.ignoreKeywordsWithRef||!(0,Ze.schemaHasRulesButRef)(a,d))){i.block(()=>jd(e,"$ref",d.all.$ref.definition));return}if(!u.jtd)Eb(e,t);i.block(()=>{for(let m of d.rules)c(m);c(d.post)});function c(m){if(!(0,cs.shouldUseGroup)(a,m))return;if(m.type){if(i.if((0,ai.checkDataType)(m.type,s,u.strictNumbers)),Rd(e,m),t.length===1&&t[0]===m.type&&r)i.else(),(0,ai.reportTypeError)(e);i.endIf()}else Rd(e,m);if(!o)i.if(L._`${O.default.errors} === ${n||0}`)}}function Rd(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;if(i)(0,kb.assignDefaults)(e,t.type);r.block(()=>{for(let a of t.rules)if((0,cs.shouldUseRule)(n,a))jd(e,a.keyword,a.definition,t.type)})}function Eb(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;if(Db(e,t),!e.opts.allowUnionTypes)Mb(e,t);Gb(e,e.dataTypes)}function Db(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((r)=>{if(!Wd(e.dataTypes,r))ms(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Jb(e,t)}function Mb(e,t){if(t.length>1&&!(t.length===2&&t.includes("null")))ms(e,"use allowUnionTypes to allow union type keyword")}function Gb(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,cs.shouldUseRule)(e.schema,i)){let{type:a}=i.definition;if(a.length&&!a.some((s)=>Ub(t,s)))ms(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function Ub(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Wd(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Jb(e,t){let r=[];for(let n of e.dataTypes)if(Wd(t,n))r.push(n);else if(t.includes("integer")&&n==="number")r.push("integer");e.dataTypes=r}function ms(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ze.checkStrictMode)(e,t,e.opts.strictTypes)}class ps{constructor(e,t,r){if((0,Er.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ze.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",Pd(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Er.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);if("code"in t?t.trackErrors:t.errors!==!1)this.errsCount=e.gen.const("_errs",O.default.errors)}result(e,t,r){this.failResult((0,L.not)(e),t,r)}failResult(e,t,r){if(this.gen.if(e),r)r();else this.error();if(t){if(this.gen.else(),t(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(e,t){this.failResult((0,L.not)(e),void 0,t)}fail(e){if(e===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(e),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail(L._`${t} !== undefined && (${(0,L.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?Nr.reportExtraError:Nr.reportError)(this,this.def.error,t)}$dataError(){(0,Nr.reportError)(this,this.def.$dataError||Nr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,Nr.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=L.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=L.nil,t=L.nil){if(!this.$data)return;let{gen:r,schemaCode:n,schemaType:i,def:a}=this;if(r.if((0,L.or)(L._`${n} === undefined`,t)),e!==L.nil)r.assign(e,!0);if(i.length||a.validateSchema){if(r.elseIf(this.invalid$data()),this.$dataError(),e!==L.nil)r.assign(e,!1)}r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,L.or)(a(),s());function a(){if(r.length){if(!(t instanceof L.Name))throw Error("ajv implementation error");let o=Array.isArray(r)?r:[r];return L._`${(0,ai.checkDataTypes)(o,t,i.opts.strictNumbers,ai.DataType.Wrong)}`}return L.nil}function s(){if(n.validateSchema){let o=e.scopeValue("validate$data",{ref:n.validateSchema});return L._`!${o}(${t})`}return L.nil}}subschema(e,t){let r=(0,ds.getSubschema)(this.it,e);(0,ds.extendSubschemaData)(r,this.it,e),(0,ds.extendSubschemaMode)(r,e);let n={...this.it,...r,items:void 0,props:void 0};return Ob(n,t),n}mergeEvaluated(e,t){let{it:r,gen:n}=this;if(!r.opts.unevaluated)return;if(r.props!==!0&&e.props!==void 0)r.props=Ze.mergeEvaluated.props(n,e.props,r.props,t);if(r.items!==!0&&e.items!==void 0)r.items=Ze.mergeEvaluated.items(n,e.items,r.items,t)}mergeValidEvaluated(e,t){let{it:r,gen:n}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return n.if(t,()=>this.mergeEvaluated(e,L.Name)),!0}}Td.KeywordCxt=ps;function jd(e,t,r,n){let i=new ps(e,r,t);if("code"in r)r.code(i,n);else if(i.$data&&r.validate)(0,Er.funcKeywordCode)(i,r);else if("macro"in r)(0,Er.macroKeywordCode)(i,r);else if(r.compile||r.validate)(0,Er.funcKeywordCode)(i,r)}var Fb=/^\/(?:[^~]|~0|~1)*$/,Bb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Pd(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,a;if(e==="")return O.default.rootData;if(e[0]==="/"){if(!Fb.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=O.default.rootData}else{let l=Bb.exec(e);if(!l)throw Error(`Invalid JSON-pointer: ${e}`);let d=+l[1];if(i=l[2],i==="#"){if(d>=t)throw Error(u("property/index",d));return n[t-d]}if(d>t)throw Error(u("data",d));if(a=r[t-d],!i)return a}let s=a,o=i.split("/");for(let l of o)if(l)a=L._`${a}${(0,L.getProperty)((0,Ze.unescapeJsonPointer)(l))}`,s=L._`${s} && ${a}`;return s;function u(l,d){return`Cannot access ${l} ${d} levels up, current level is ${t}`}}Td.getData=Pd});var Dr=g((Ed)=>{Object.defineProperty(Ed,"__esModule",{value:!0});class Nd extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}}Ed.default=Nd});var rr=g((Md)=>{Object.defineProperty(Md,"__esModule",{value:!0});var fs=Vr();class Dd extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,fs.resolveUrl)(e,t,r),this.missingSchema=(0,fs.normalizeId)((0,fs.getFullPath)(e,this.missingRef))}}Md.default=Dd});var Gr=g((Jd)=>{Object.defineProperty(Jd,"__esModule",{value:!0});Jd.resolveSchema=Jd.getCompilingSchema=Jd.resolveRef=Jd.compileSchema=Jd.SchemaEnv=void 0;var Pe=z(),Qb=Dr(),$t=Ae(),Te=Vr(),Gd=j(),xb=tr();class Mr{constructor(e){var t;this.refs={},this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,Te.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=r===null||r===void 0?void 0:r.$async,this.refs={}}}Jd.SchemaEnv=Mr;function ys(e){let t=Ud.call(this,e);if(t)return t;let r=(0,Te.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:a}=this.opts,s=new Pe.CodeGen(this.scope,{es5:n,lines:i,ownProperties:a}),o;if(e.$async)o=s.scopeValue("Error",{ref:Qb.default,code:Pe._`require("ajv/dist/runtime/validation_error").default`});let u=s.scopeName("validate");e.validateName=u;let l={gen:s,allErrors:this.opts.allErrors,data:$t.default.data,parentData:$t.default.parentData,parentDataProperty:$t.default.parentDataProperty,dataNames:[$t.default.data],dataPathArr:[Pe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Pe.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Pe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:Pe._`""`,opts:this.opts,self:this},d;try{this._compilations.add(e),(0,xb.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let c=s.toString();if(d=`${s.scopeRefs($t.default.scope)}return ${c}`,this.opts.code.process)d=this.opts.code.process(d,e);let h=Function(`${$t.default.self}`,`${$t.default.scope}`,d)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async)h.$async=!0;if(this.opts.code.source===!0)h.source={validateName:u,validateCode:c,scopeValues:s._values};if(this.opts.unevaluated){let{props:f,items:p}=l;if(h.evaluated={props:f instanceof Pe.Name?void 0:f,items:p instanceof Pe.Name?void 0:p,dynamicProps:f instanceof Pe.Name,dynamicItems:p instanceof Pe.Name},h.source)h.source.evaluated=(0,Pe.stringify)(h.evaluated)}return e.validate=h,e}catch(c){if(delete e.validate,delete e.validateName,d)this.logger.error("Error compiling schema, function code:",d);throw c}finally{this._compilations.delete(e)}}Jd.compileSchema=ys;function _b(e,t,r){var n;r=(0,Te.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let a=rA.call(this,e,r);if(a===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;if(s)a=new Mr({schema:s,schemaId:o,root:e,baseId:t})}if(a===void 0)return;return e.refs[r]=eA.call(this,a)}Jd.resolveRef=_b;function eA(e){if((0,Te.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:ys.call(this,e)}function Ud(e){for(let t of this._compilations)if(tA(t,e))return t}Jd.getCompilingSchema=Ud;function tA(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function rA(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||si.call(this,e,t)}function si(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Te._getFullPath)(this.opts.uriResolver,r),i=(0,Te.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return hs.call(this,r,e);let a=(0,Te.normalizeId)(n),s=this.refs[a]||this.schemas[a];if(typeof s=="string"){let o=si.call(this,e,s);if(typeof(o===null||o===void 0?void 0:o.schema)!=="object")return;return hs.call(this,r,o)}if(typeof(s===null||s===void 0?void 0:s.schema)!=="object")return;if(!s.validate)ys.call(this,s);if(a===(0,Te.normalizeId)(t)){let{schema:o}=s,{schemaId:u}=this.opts,l=o[u];if(l)i=(0,Te.resolveUrl)(this.opts.uriResolver,i,l);return new Mr({schema:o,schemaId:u,root:e,baseId:i})}return hs.call(this,r,s)}Jd.resolveSchema=si;var nA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function hs(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;let u=r[(0,Gd.unescapeFragment)(o)];if(u===void 0)return;r=u;let l=typeof r==="object"&&r[this.opts.schemaId];if(!nA.has(o)&&l)t=(0,Te.resolveUrl)(this.opts.uriResolver,t,l)}let a;if(typeof r!="boolean"&&r.$ref&&!(0,Gd.schemaHasRulesButRef)(r,this.RULES)){let o=(0,Te.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=si.call(this,n,o)}let{schemaId:s}=this.opts;if(a=a||new Mr({schema:r,schemaId:s,root:n,baseId:t}),a.schema!==a.root.schema)return a;return}});var Bd=g((BO,uA)=>{uA.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var qs=g((KO,xd)=>{var lA=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Yd=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),Is=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Hd=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),dA=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function gs(e){let t="",r=0,n=0;for(n=0;n<e.length;n++){if(r=e[n].charCodeAt(0),r===48)continue;if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var cA=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Kd(e){return e.length=0,!0}function mA(e,t,r){if(e.length){let n=gs(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function pA(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],a=!1,s=!1,o=mA;for(let u=0;u<e.length;u++){let l=e[u];if(l==="["||l==="]")continue;if(l===":"){if(a===!0)s=!0;if(!o(i,n,r))break;if(++t>7){r.error=!0;break}if(u>0&&e[u-1]===":")a=!0;n.push(":");continue}else if(l==="%"){if(!o(i,n,r))break;o=Kd}else{i.push(l);continue}}if(i.length)if(o===Kd)r.zone=i.join("");else if(s)n.push(i.join(""));else n.push(gs(i));return r.address=n.join(""),r}function Zd(e){if(fA(e,":")<2)return{host:e,isIPV6:!1};let t=pA(e);if(!t.error){let{address:r,address:n}=t;if(t.zone)r+="%"+t.zone,n+="%25"+t.zone;return{host:r,isIPV6:!0,escapedHost:n}}else return{host:e,isIPV6:!1}}function fA(e,t){let r=0;for(let n=0;n<e.length;n++)if(e[n]===t)r++;return r}function hA(e){let t=e,r=[],n=-1,i=0;while(i=t.length){if(i===1)if(t===".")break;else if(t==="/"){r.push("/");break}else{r.push(t);break}else if(i===2){if(t[0]==="."){if(t[1]===".")break;else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"){if(t[1]==="."||t[1]==="/"){r.push("/");break}}}else if(i===3){if(t==="/.."){if(r.length!==0)r.pop();r.push("/");break}}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"){if(t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."){if(t[3]==="/"){if(t=t.slice(3),r.length!==0)r.pop();continue}}}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}var yA={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},IA=/[@/?#:]/g,gA=/[@/?#]/g;function Qd(e,t){let r=t?gA:IA;return r.lastIndex=0,e.replace(r,(n)=>yA[n])}function qA(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(Is(i)){let a=i.toUpperCase(),s=String.fromCharCode(parseInt(a,16));if(t&&Hd(s))r+=s;else r+="%"+a;n+=2;continue}}r+=e[n]}return r}function wA(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(Is(n)){let i=n.toUpperCase(),a=String.fromCharCode(parseInt(i,16));if(a!=="."&&Hd(a))t+=a;else t+="%"+i;r+=2;continue}}if(dA(e[r]))t+=e[r];else t+=escape(e[r])}return t}function bA(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(Is(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function AA(e){let t=[];if(e.userinfo!==void 0)t.push(e.userinfo),t.push("@");if(e.host!==void 0){let r=unescape(e.host);if(!Yd(r)){let n=Zd(r);if(n.isIPV6===!0)r=`[${n.escapedHost}]`;else r=Qd(r,!1)}t.push(r)}if(typeof e.port==="number"||typeof e.port==="string")t.push(":"),t.push(String(e.port));return t.length?t.join(""):void 0}xd.exports={nonSimpleDomain:cA,recomposeAuthority:AA,reescapeHostDelimiters:Qd,normalizePercentEncoding:qA,normalizePathEncoding:wA,escapePreservingEscapes:bA,removeDotSegments:hA,isIPv4:Yd,isUUID:lA,normalizeIPv6:Zd,stringArrayToHexStripped:gs}});var nc=g((YO,rc)=>{var{isUUID:CA}=qs(),kA=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,RA=["http","https","ws","wss","urn","urn:uuid"];function LA(e){return RA.indexOf(e)!==-1}function ws(e){if(e.secure===!0)return!0;else if(e.secure===!1)return!1;else if(e.scheme)return e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S");else return!1}function _d(e){if(!e.host)e.error=e.error||"HTTP URIs must have a host.";return e}function ec(e){let t=String(e.scheme).toLowerCase()==="https";if(e.port===(t?443:80)||e.port==="")e.port=void 0;if(!e.path)e.path="/";return e}function vA(e){return e.secure=ws(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function $A(e){if(e.port===(ws(e)?443:80)||e.port==="")e.port=void 0;if(typeof e.secure==="boolean")e.scheme=e.secure?"wss":"ws",e.secure=void 0;if(e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function SA(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(kA);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,a=bs(i);if(e.path=void 0,a)e=a.parse(e,t)}else e.error=e.error||"URN can not be parsed.";return e}function XA(e,t){if(e.nid===void 0)throw Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,a=bs(i);if(a)e=a.serialize(e,t);let s=e,o=e.nss;return s.path=`${n||t.nid}:${o}`,t.skipEscape=!0,s}function OA(e,t){let r=e;if(r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!CA(r.uuid)))r.error=r.error||"UUID is not valid.";return r}function zA(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var tc={scheme:"http",domainHost:!0,parse:_d,serialize:ec},WA={scheme:"https",domainHost:tc.domainHost,parse:_d,serialize:ec},oi={scheme:"ws",domainHost:!0,parse:vA,serialize:$A},jA={scheme:"wss",domainHost:oi.domainHost,parse:oi.parse,serialize:oi.serialize},PA={scheme:"urn",parse:SA,serialize:XA,skipNormalize:!0},TA={scheme:"urn:uuid",parse:OA,serialize:zA,skipNormalize:!0},ui={http:tc,https:WA,ws:oi,wss:jA,urn:PA,"urn:uuid":TA};Object.setPrototypeOf(ui,null);function bs(e){return e&&(ui[e]||ui[e.toLowerCase()])||void 0}rc.exports={wsIsSecure:ws,SCHEMES:ui,isValidSchemeName:LA,getSchemeHandler:bs}});var uc=g((HO,ci)=>{var{normalizeIPv6:VA,removeDotSegments:Ur,recomposeAuthority:NA,normalizePercentEncoding:EA,normalizePathEncoding:DA,escapePreservingEscapes:MA,reescapeHostDelimiters:GA,isIPv4:UA,nonSimpleDomain:JA}=qs(),{SCHEMES:FA,getSchemeHandler:ac}=nc();function BA(e,t){if(typeof e==="string")e=_A(e,t);else if(typeof e==="object")e=di(St(e,t),t);return e}function KA(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:i,malformedAuthorityOrPort:a}=li(e,n),{parsed:s,malformedAuthorityOrPort:o}=li(t,n);if(a||o)throw Error(i.error||s.error||"URI is malformed.");let u=sc(i,s,n,!0);return n.skipEscape=!0,St(u,n)}function sc(e,t,r,n){let i={};if(!n)e=di(St(e,r),r),t=di(St(t,r),r);if(r=r||{},!r.tolerant&&t.scheme)i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Ur(t.path||""),i.query=t.query;else{if(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Ur(t.path||""),i.query=t.query;else{if(!t.path)if(i.path=e.path,t.query!==void 0)i.query=t.query;else i.query=e.query;else{if(t.path[0]==="/")i.path=Ur(t.path);else{if((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path)i.path="/"+t.path;else if(!e.path)i.path=t.path;else i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path;i.path=Ur(i.path)}i.query=t.query}i.userinfo=e.userinfo,i.host=e.host,i.port=e.port}i.scheme=e.scheme}return i.fragment=t.fragment,i}function YA(e,t,r){let n=ic(e,r),i=ic(t,r);return n!==void 0&&i!==void 0&&n.toLowerCase()===i.toLowerCase()}function St(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],a=ac(n.scheme||r.scheme);if(a&&a.serialize)a.serialize(r,n);if(r.path!==void 0)if(!n.skipEscape){if(r.path=MA(r.path),r.scheme!==void 0)r.path=r.path.split("%3A").join(":")}else r.path=EA(r.path);if(n.reference!=="suffix"&&r.scheme)i.push(r.scheme,":");let s=NA(r);if(s!==void 0){if(n.reference!=="suffix")i.push("//");if(i.push(s),r.path&&r.path[0]!=="/")i.push("/")}if(r.path!==void 0){let o=r.path;if(!n.absolutePath&&(!a||!a.absolutePath))o=Ur(o);if(s===void 0&&o[0]==="/"&&o[1]==="/")o="/%2F"+o.slice(2);i.push(o)}if(r.query!==void 0)i.push("?",r.query);if(r.fragment!==void 0)i.push("#",r.fragment);return i.join("")}var HA=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,ZA=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,QA=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function xA(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port==="number"&&(e.port<0||e.port>65535))return"URI port is malformed.";return}function li(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1,a=!1;if(r.reference==="suffix")if(r.scheme)e=r.scheme+":"+e;else e="//"+e;let s=e.match(ZA);if(s!==null&&s[1].indexOf("\\")!==-1)n.error="URI authority must not contain a literal backslash.",i=!0;let o=e.match(QA);if(o!==null){let l=o[1],d=l.replace(/[\t\n\r]/g,"");if(d.length>=2){if(d.slice(0,2)!=="//")n.error=n.error||"URI authority must not contain a literal backslash.",i=!0;else if(l.length!==d.length)n.error=n.error||"URI authority introducer must not contain whitespace.",i=!0}}let u=e.match(HA);if(u){if(n.scheme=u[1],n.userinfo=u[3],n.host=u[4],n.port=parseInt(u[5],10),n.path=u[6]||"",n.query=u[7],n.fragment=u[8],isNaN(n.port))n.port=u[5];let l=xA(n,u);if(l!==void 0)n.error=n.error||l,i=!0;if(n.host)if(UA(n.host)===!1){let m=VA(n.host);n.host=m.host.toLowerCase(),a=m.isIPV6}else a=!0;if(n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path)n.reference="same-document";else if(n.scheme===void 0)n.reference="relative";else if(n.fragment===void 0)n.reference="absolute";else n.reference="uri";if(r.reference&&r.reference!=="suffix"&&r.reference!==n.reference)n.error=n.error||"URI is not a "+r.reference+" reference.";let d=ac(r.scheme||n.scheme);if(!r.unicodeSupport&&(!d||!d.unicodeSupport)){if(n.host&&(r.domainHost||d&&d.domainHost)&&a===!1&&JA(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}}if(!d||d&&!d.skipNormalize){if(e.indexOf("%")!==-1){if(n.scheme!==void 0)n.scheme=unescape(n.scheme);if(n.host!==void 0)n.host=GA(unescape(n.host),a)}if(n.path)n.path=DA(n.path);if(n.fragment)try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}}if(d&&d.parse)d.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:i}}function di(e,t){return li(e,t).parsed}function _A(e,t){return oc(e,t).normalized}function oc(e,t){let{parsed:r,malformedAuthorityOrPort:n}=li(e,t);return{normalized:n?e:St(r,t),malformedAuthorityOrPort:n}}function ic(e,t){if(typeof e==="string"){let{normalized:r,malformedAuthorityOrPort:n}=oc(e,t);return n?void 0:r}if(typeof e==="object")return St(e,t)}var As={SCHEMES:FA,normalize:BA,resolve:KA,resolveComponent:sc,equal:YA,serialize:St,parse:di};ci.exports=As;ci.exports.default=As;ci.exports.fastUri=As});var cc=g((dc)=>{Object.defineProperty(dc,"__esModule",{value:!0});var lc=uc();lc.code='require("ajv/dist/runtime/uri").default';dc.default=lc});var Rs=g((Qe)=>{Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CodeGen=Qe.Name=Qe.nil=Qe.stringify=Qe.str=Qe._=Qe.KeywordCxt=void 0;var tC=tr();Object.defineProperty(Qe,"KeywordCxt",{enumerable:!0,get:function(){return tC.KeywordCxt}});var nr=z();Object.defineProperty(Qe,"_",{enumerable:!0,get:function(){return nr._}});Object.defineProperty(Qe,"str",{enumerable:!0,get:function(){return nr.str}});Object.defineProperty(Qe,"stringify",{enumerable:!0,get:function(){return nr.stringify}});Object.defineProperty(Qe,"nil",{enumerable:!0,get:function(){return nr.nil}});Object.defineProperty(Qe,"Name",{enumerable:!0,get:function(){return nr.Name}});Object.defineProperty(Qe,"CodeGen",{enumerable:!0,get:function(){return nr.CodeGen}});var rC=Dr(),yc=rr(),nC=es(),Jr=Gr(),iC=z(),Fr=Vr(),mi=Tr(),ks=j(),mc=Bd(),aC=cc(),Ic=(e,t)=>new RegExp(e,t);Ic.code="new RegExp";var sC=["removeAdditional","useDefaults","coerceTypes"],oC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),uC={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},lC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},pc=200;function dC(e){var t,r,n,i,a,s,o,u,l,d,c,m,h,f,p,y,I,q,b,$,k,G,w,P,A;let X=e.strict,F=(t=e.code)===null||t===void 0?void 0:t.optimize,te=F===!0||F===void 0?1:F||0,kn=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Ic,Th=(i=e.uriResolver)!==null&&i!==void 0?i:aC.default;return{strictSchema:(s=(a=e.strictSchema)!==null&&a!==void 0?a:X)!==null&&s!==void 0?s:!0,strictNumbers:(u=(o=e.strictNumbers)!==null&&o!==void 0?o:X)!==null&&u!==void 0?u:!0,strictTypes:(d=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&d!==void 0?d:"log",strictTuples:(m=(c=e.strictTuples)!==null&&c!==void 0?c:X)!==null&&m!==void 0?m:"log",strictRequired:(f=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:te,regExp:kn}:{optimize:te,regExp:kn},loopRequired:(p=e.loopRequired)!==null&&p!==void 0?p:pc,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:pc,meta:(I=e.meta)!==null&&I!==void 0?I:!0,messages:(q=e.messages)!==null&&q!==void 0?q:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:($=e.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(k=e.addUsedSchema)!==null&&k!==void 0?k:!0,validateSchema:(G=e.validateSchema)!==null&&G!==void 0?G:!0,validateFormats:(w=e.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(P=e.unicodeRegExp)!==null&&P!==void 0?P:!0,int32range:(A=e.int32range)!==null&&A!==void 0?A:!0,uriResolver:Th}}class pi{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...dC(e)};let{es5:t,lines:r}=this.opts.code;this.scope=new iC.ValueScope({scope:{},prefixes:oC,es5:t,lines:r}),this.logger=yC(e.logger);let n=e.validateFormats;if(e.validateFormats=!1,this.RULES=(0,nC.getRules)(),fc.call(this,uC,e,"NOT SUPPORTED"),fc.call(this,lC,e,"DEPRECATED","warn"),this._metaOpts=fC.call(this),e.formats)mC.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords)pC.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);cC.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,n=mc;if(r==="id")n={...mc},n.id=n.$id,delete n.$id;if(t&&e)this.addMetaSchema(n,n[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:void 0}validate(e,t){let r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let n=r(t);if(!("$async"in r))this.errors=r.errors;return n}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(l,d){await i.call(this,l.$schema);let c=this._addSchema(l,d);return c.validate||a.call(this,c)}async function i(l){if(l&&!this.getSchema(l))await n.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof yc.default))throw d;return s.call(this,d),await o.call(this,d.missingSchema),a.call(this,l)}}function s({missingSchema:l,missingRef:d}){if(this.refs[l])throw Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function o(l){let d=await u.call(this,l);if(!this.refs[l])await i.call(this,d.$schema);if(!this.refs[l])this.addSchema(d,l,t)}async function u(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=r(l))}finally{delete this._loading[l]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,r,n);return this}let i;if(typeof e==="object"){let{schemaId:a}=this.opts;if(i=e[a],i!==void 0&&typeof i!="string")throw Error(`schema ${a} must be string`)}return t=(0,Fr.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if(typeof e=="boolean")return!0;let r;if(r=e.$schema,r!==void 0&&typeof r!="string")throw Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(r,e);if(!n&&t){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw Error(i)}return n}getSchema(e){let t;while(typeof(t=hc.call(this,e))=="string")e=t;if(t===void 0){let{schemaId:r}=this.opts,n=new Jr.SchemaEnv({schema:{},schemaId:r});if(t=Jr.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=hc.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);return delete this.schemas[e],delete this.refs[e],this}case"object":{let t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r)r=(0,Fr.normalizeId)(r),delete this.schemas[r],delete this.refs[r];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){if(r=e,typeof t=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r}else if(typeof e=="object"&&t===void 0){if(t=e,r=t.keyword,Array.isArray(r)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(gC.call(this,r,t),!t)return(0,ks.eachItem)(r,(i)=>Cs.call(this,i)),this;wC.call(this,t);let n={...t,type:(0,mi.getJSONTypes)(t.type),schemaType:(0,mi.getJSONTypes)(t.schemaType)};return(0,ks.eachItem)(r,n.type.length===0?(i)=>Cs.call(this,i,n):(i)=>n.type.forEach((a)=>Cs.call(this,i,n,a))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let r of t.rules){let n=r.rules.findIndex((i)=>i.keyword===e);if(n>=0)r.rules.splice(n,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);return this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((n)=>`${r}${n.instancePath} ${n.message}`).reduce((n,i)=>n+t+i)}$dataMetaSchema(e,t){let r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let n of t){let i=n.split("/").slice(1),a=e;for(let s of i)a=a[s];for(let s in r){let o=r[s];if(typeof o!="object")continue;let{$data:u}=o.definition,l=a[s];if(u&&l)a[s]=gc(l)}}return e}_removeAllSchemas(e,t){for(let r in e){let n=e[r];if(!t||t.test(r)){if(typeof n=="string")delete e[r];else if(n&&!n.meta)this._cache.delete(n.schema),delete e[r]}}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof e=="object")a=e[s];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof e!="boolean")throw Error("schema must be object or boolean");let o=this._cache.get(e);if(o!==void 0)return o;r=(0,Fr.normalizeId)(a||r);let u=Fr.getSchemaRefs.call(this,e,r);if(o=new Jr.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:u}),this._cache.set(o.schema,o),i&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=o}if(n)this.validateSchema(e,!0);return o}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else Jr.compileSchema.call(this,e);if(!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{Jr.compileSchema.call(this,e)}finally{this.opts=t}}}pi.ValidationError=rC.default;pi.MissingRefError=yc.default;Qe.default=pi;function fc(e,t,r,n="error"){for(let i in e){let a=i;if(a in t)this.logger[n](`${r}: option ${i}. ${e[a]}`)}}function hc(e){return e=(0,Fr.normalizeId)(e),this.schemas[e]||this.refs[e]}function cC(){let e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function mC(){for(let e in this.opts.formats){let t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function pC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function fC(){let e={...this.opts};for(let t of sC)delete e[t];return e}var hC={log(){},warn(){},error(){}};function yC(e){if(e===!1)return hC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}var IC=/^[a-z_$][a-z0-9_$:-]*$/i;function gC(e,t){let{RULES:r}=this;if((0,ks.eachItem)(e,(n)=>{if(r.keywords[n])throw Error(`Keyword ${n} is already defined`);if(!IC.test(n))throw Error(`Keyword ${n} has invalid name`)}),!t)return;if(t.$data&&!(("code"in t)||("validate"in t)))throw Error('$data keyword must have "code" or "validate" function')}function Cs(e,t,r){var n;let i=t===null||t===void 0?void 0:t.post;if(r&&i)throw Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,s=i?a.post:a.rules.find(({type:u})=>u===r);if(!s)s={type:r,rules:[]},a.rules.push(s);if(a.keywords[e]=!0,!t)return;let o={keyword:e,definition:{...t,type:(0,mi.getJSONTypes)(t.type),schemaType:(0,mi.getJSONTypes)(t.schemaType)}};if(t.before)qC.call(this,s,o,t.before);else s.rules.push(o);a.all[e]=o,(n=t.implements)===null||n===void 0||n.forEach((u)=>this.addKeyword(u))}function qC(e,t,r){let n=e.rules.findIndex((i)=>i.keyword===r);if(n>=0)e.rules.splice(n,0,t);else e.rules.push(t),this.logger.warn(`rule ${r} is not defined`)}function wC(e){let{metaSchema:t}=e;if(t===void 0)return;if(e.$data&&this.opts.$data)t=gc(t);e.validateSchema=this.compile(t,!0)}var bC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function gc(e){return{anyOf:[e,bC]}}});var wc=g((qc)=>{Object.defineProperty(qc,"__esModule",{value:!0});var kC={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};qc.default=kC});var yi=g((kc)=>{Object.defineProperty(kc,"__esModule",{value:!0});kc.callRef=kc.getValidate=void 0;var LC=rr(),bc=Ce(),le=z(),ir=Ae(),Ac=Gr(),fi=j(),vC={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:a,validateName:s,opts:o,self:u}=n,{root:l}=a;if((r==="#"||r==="#/")&&i===l.baseId)return c();let d=Ac.resolveRef.call(u,l,i,r);if(d===void 0)throw new LC.default(n.opts.uriResolver,i,r);if(d instanceof Ac.SchemaEnv)return m(d);return h(d);function c(){if(a===l)return hi(e,s,a,a.$async);let f=t.scopeValue("root",{ref:l});return hi(e,le._`${f}.validate`,l,l.$async)}function m(f){let p=Cc(e,f);hi(e,p,f,f.$async)}function h(f){let p=t.scopeValue("schema",o.code.source===!0?{ref:f,code:(0,le.stringify)(f)}:{ref:f}),y=t.name("valid"),I=e.subschema({schema:f,dataTypes:[],schemaPath:le.nil,topSchemaRef:p,errSchemaPath:r},y);e.mergeEvaluated(I),e.ok(y)}}};function Cc(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):le._`${r.scopeValue("wrapper",{ref:t})}.validate`}kc.getValidate=Cc;function hi(e,t,r,n){let{gen:i,it:a}=e,{allErrors:s,schemaEnv:o,opts:u}=a,l=u.passContext?ir.default.this:le.nil;if(n)d();else c();function d(){if(!o.$async)throw Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{if(i.code(le._`await ${(0,bc.callValidateCode)(e,t,l)}`),h(t),!s)i.assign(f,!0)},(p)=>{if(i.if(le._`!(${p} instanceof ${a.ValidationError})`,()=>i.throw(p)),m(p),!s)i.assign(f,!1)}),e.ok(f)}function c(){e.result((0,bc.callValidateCode)(e,t,l),()=>h(t),()=>m(t))}function m(f){let p=le._`${f}.errors`;i.assign(ir.default.vErrors,le._`${ir.default.vErrors} === null ? ${p} : ${ir.default.vErrors}.concat(${p})`),i.assign(ir.default.errors,le._`${ir.default.vErrors}.length`)}function h(f){var p;if(!a.opts.unevaluated)return;let y=(p=r===null||r===void 0?void 0:r.validate)===null||p===void 0?void 0:p.evaluated;if(a.props!==!0)if(y&&!y.dynamicProps){if(y.props!==void 0)a.props=fi.mergeEvaluated.props(i,y.props,a.props)}else{let I=i.var("props",le._`${f}.evaluated.props`);a.props=fi.mergeEvaluated.props(i,I,a.props,le.Name)}if(a.items!==!0)if(y&&!y.dynamicItems){if(y.items!==void 0)a.items=fi.mergeEvaluated.items(i,y.items,a.items)}else{let I=i.var("items",le._`${f}.evaluated.items`);a.items=fi.mergeEvaluated.items(i,I,a.items,le.Name)}}}kc.callRef=hi;kc.default=vC});var Ls=g((Lc)=>{Object.defineProperty(Lc,"__esModule",{value:!0});var XC=wc(),OC=yi(),zC=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",XC.default,OC.default];Lc.default=zC});var $c=g((vc)=>{Object.defineProperty(vc,"__esModule",{value:!0});var Ii=z(),lt=Ii.operators,gi={maximum:{okStr:"<=",ok:lt.LTE,fail:lt.GT},minimum:{okStr:">=",ok:lt.GTE,fail:lt.LT},exclusiveMaximum:{okStr:"<",ok:lt.LT,fail:lt.GTE},exclusiveMinimum:{okStr:">",ok:lt.GT,fail:lt.LTE}},jC={message:({keyword:e,schemaCode:t})=>Ii.str`must be ${gi[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Ii._`{comparison: ${gi[e].okStr}, limit: ${t}}`},PC={keyword:Object.keys(gi),type:"number",schemaType:"number",$data:!0,error:jC,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data(Ii._`${r} ${gi[t].fail} ${n} || isNaN(${r})`)}};vc.default=PC});var Xc=g((Sc)=>{Object.defineProperty(Sc,"__esModule",{value:!0});var Br=z(),VC={message:({schemaCode:e})=>Br.str`must be multiple of ${e}`,params:({schemaCode:e})=>Br._`{multipleOf: ${e}}`},NC={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:VC,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,a=i.opts.multipleOfPrecision,s=t.let("res"),o=a?Br._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:Br._`${s} !== parseInt(${s})`;e.fail$data(Br._`(${n} === 0 || (${s} = ${r}/${n}, ${o}))`)}};Sc.default=NC});var Wc=g((zc)=>{Object.defineProperty(zc,"__esModule",{value:!0});function Oc(e){let t=e.length,r=0,n=0,i;while(n<t)if(r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t){if(i=e.charCodeAt(n),(i&64512)===56320)n++}return r}zc.default=Oc;Oc.code='require("ajv/dist/runtime/ucs2length").default'});var Pc=g((jc)=>{Object.defineProperty(jc,"__esModule",{value:!0});var Xt=z(),MC=j(),GC=Wc(),UC={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return Xt.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>Xt._`{limit: ${e}}`},JC={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:UC,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,a=t==="maxLength"?Xt.operators.GT:Xt.operators.LT,s=i.opts.unicode===!1?Xt._`${r}.length`:Xt._`${(0,MC.useFunc)(e.gen,GC.default)}(${r})`;e.fail$data(Xt._`${s} ${a} ${n}`)}};jc.default=JC});var Vc=g((Tc)=>{Object.defineProperty(Tc,"__esModule",{value:!0});var BC=Ce(),KC=j(),ar=z(),YC={message:({schemaCode:e})=>ar.str`must match pattern "${e}"`,params:({schemaCode:e})=>ar._`{pattern: ${e}}`},HC={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:YC,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:a,it:s}=e,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:u}=s.opts.code,l=u.code==="new RegExp"?ar._`new RegExp`:(0,KC.useFunc)(t,u),d=t.let("valid");t.try(()=>t.assign(d,ar._`${l}(${a}, ${o}).test(${r})`),()=>t.assign(d,!1)),e.fail$data(ar._`!${d}`)}else{let u=(0,BC.usePattern)(e,i);e.fail$data(ar._`!${u}.test(${r})`)}}};Tc.default=HC});var Ec=g((Nc)=>{Object.defineProperty(Nc,"__esModule",{value:!0});var Kr=z(),QC={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return Kr.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>Kr._`{limit: ${e}}`},xC={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:QC,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Kr.operators.GT:Kr.operators.LT;e.fail$data(Kr._`Object.keys(${r}).length ${i} ${n}`)}};Nc.default=xC});var Mc=g((Dc)=>{Object.defineProperty(Dc,"__esModule",{value:!0});var Yr=Ce(),Hr=z(),ek=j(),tk={message:({params:{missingProperty:e}})=>Hr.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Hr._`{missingProperty: ${e}}`},rk={keyword:"required",type:"object",schemaType:"array",$data:!0,error:tk,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:a,it:s}=e,{opts:o}=s;if(!a&&r.length===0)return;let u=r.length>=o.loopRequired;if(s.allErrors)l();else d();if(o.strictRequired){let h=e.parentSchema.properties,{definedProperties:f}=e.it;for(let p of r)if((h===null||h===void 0?void 0:h[p])===void 0&&!f.has(p)){let y=s.schemaEnv.baseId+s.errSchemaPath,I=`required property "${p}" is not defined at "${y}" (strictRequired)`;(0,ek.checkStrictMode)(s,I,s.opts.strictRequired)}}function l(){if(u||a)e.block$data(Hr.nil,c);else for(let h of r)(0,Yr.checkReportMissingProp)(e,h)}function d(){let h=t.let("missing");if(u||a){let f=t.let("valid",!0);e.block$data(f,()=>m(h,f)),e.ok(f)}else t.if((0,Yr.checkMissingProp)(e,r,h)),(0,Yr.reportMissingProp)(e,h),t.else()}function c(){t.forOf("prop",n,(h)=>{e.setParams({missingProperty:h}),t.if((0,Yr.noPropertyInData)(t,i,h,o.ownProperties),()=>e.error())})}function m(h,f){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(f,(0,Yr.propertyInData)(t,i,h,o.ownProperties)),t.if((0,Hr.not)(f),()=>{e.error(),t.break()})},Hr.nil)}}};Dc.default=rk});var Uc=g((Gc)=>{Object.defineProperty(Gc,"__esModule",{value:!0});var Zr=z(),ik={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return Zr.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>Zr._`{limit: ${e}}`},ak={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ik,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Zr.operators.GT:Zr.operators.LT;e.fail$data(Zr._`${r}.length ${i} ${n}`)}};Gc.default=ak});var qi=g((Fc)=>{Object.defineProperty(Fc,"__esModule",{value:!0});var Jc=us();Jc.code='require("ajv/dist/runtime/equal").default';Fc.default=Jc});var Kc=g((Bc)=>{Object.defineProperty(Bc,"__esModule",{value:!0});var vs=Tr(),Z=z(),uk=j(),lk=qi(),dk={message:({params:{i:e,j:t}})=>Z.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Z._`{i: ${e}, j: ${t}}`},ck={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:dk,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:a,schemaCode:s,it:o}=e;if(!n&&!i)return;let u=t.let("valid"),l=a.items?(0,vs.getSchemaTypes)(a.items):[];e.block$data(u,d,Z._`${s} === false`),e.ok(u);function d(){let f=t.let("i",Z._`${r}.length`),p=t.let("j");e.setParams({i:f,j:p}),t.assign(u,!0),t.if(Z._`${f} > 1`,()=>(c()?m:h)(f,p))}function c(){return l.length>0&&!l.some((f)=>f==="object"||f==="array")}function m(f,p){let y=t.name("item"),I=(0,vs.checkDataTypes)(l,y,o.opts.strictNumbers,vs.DataType.Wrong),q=t.const("indices",Z._`{}`);t.for(Z._`;${f}--;`,()=>{if(t.let(y,Z._`${r}[${f}]`),t.if(I,Z._`continue`),l.length>1)t.if(Z._`typeof ${y} == "string"`,Z._`${y} += "_"`);t.if(Z._`typeof ${q}[${y}] == "number"`,()=>{t.assign(p,Z._`${q}[${y}]`),e.error(),t.assign(u,!1).break()}).code(Z._`${q}[${y}] = ${f}`)})}function h(f,p){let y=(0,uk.useFunc)(t,lk.default),I=t.name("outer");t.label(I).for(Z._`;${f}--;`,()=>t.for(Z._`${p} = ${f}; ${p}--;`,()=>t.if(Z._`${y}(${r}[${f}], ${r}[${p}])`,()=>{e.error(),t.assign(u,!1).break(I)})))}}};Bc.default=ck});var Hc=g((Yc)=>{Object.defineProperty(Yc,"__esModule",{value:!0});var $s=z(),pk=j(),fk=qi(),hk={message:"must be equal to constant",params:({schemaCode:e})=>$s._`{allowedValue: ${e}}`},yk={keyword:"const",$data:!0,error:hk,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:a}=e;if(n||a&&typeof a=="object")e.fail$data($s._`!${(0,pk.useFunc)(t,fk.default)}(${r}, ${i})`);else e.fail($s._`${a} !== ${r}`)}};Yc.default=yk});var Qc=g((Zc)=>{Object.defineProperty(Zc,"__esModule",{value:!0});var Qr=z(),gk=j(),qk=qi(),wk={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>Qr._`{allowedValues: ${e}}`},bk={keyword:"enum",schemaType:"array",$data:!0,error:wk,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:a,it:s}=e;if(!n&&i.length===0)throw Error("enum must have non-empty array");let o=i.length>=s.opts.loopEnum,u,l=()=>u!==null&&u!==void 0?u:u=(0,gk.useFunc)(t,qk.default),d;if(o||n)d=t.let("valid"),e.block$data(d,c);else{if(!Array.isArray(i))throw Error("ajv implementation error");let h=t.const("vSchema",a);d=(0,Qr.or)(...i.map((f,p)=>m(h,p)))}e.pass(d);function c(){t.assign(d,!1),t.forOf("v",a,(h)=>t.if(Qr._`${l()}(${r}, ${h})`,()=>t.assign(d,!0).break()))}function m(h,f){let p=i[f];return typeof p==="object"&&p!==null?Qr._`${l()}(${r}, ${h}[${f}])`:Qr._`${r} === ${p}`}}};Zc.default=bk});var Ss=g((xc)=>{Object.defineProperty(xc,"__esModule",{value:!0});var Ck=$c(),kk=Xc(),Rk=Pc(),Lk=Vc(),vk=Ec(),$k=Mc(),Sk=Uc(),Xk=Kc(),Ok=Hc(),zk=Qc(),Wk=[Ck.default,kk.default,Rk.default,Lk.default,vk.default,$k.default,Sk.default,Xk.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Ok.default,zk.default];xc.default=Wk});var Os=g((em)=>{Object.defineProperty(em,"__esModule",{value:!0});em.validateAdditionalItems=void 0;var Ot=z(),Xs=j(),Pk={message:({params:{len:e}})=>Ot.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Ot._`{limit: ${e}}`},Tk={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Pk,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Xs.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}_c(e,n)}};function _c(e,t){let{gen:r,schema:n,data:i,keyword:a,it:s}=e;s.items=!0;let o=r.const("len",Ot._`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass(Ot._`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,Xs.alwaysValidSchema)(s,n)){let l=r.var("valid",Ot._`${o} <= ${t.length}`);r.if((0,Ot.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,o,(d)=>{if(e.subschema({keyword:a,dataProp:d,dataPropType:Xs.Type.Num},l),!s.allErrors)r.if((0,Ot.not)(l),()=>r.break())})}}em.validateAdditionalItems=_c;em.default=Tk});var zs=g((im)=>{Object.defineProperty(im,"__esModule",{value:!0});im.validateTuple=void 0;var rm=z(),wi=j(),Nk=Ce(),Ek={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return nm(e,"additionalItems",t);if(r.items=!0,(0,wi.alwaysValidSchema)(r,t))return;e.ok((0,Nk.validateArray)(e))}};function nm(e,t,r=e.schema){let{gen:n,parentSchema:i,data:a,keyword:s,it:o}=e;if(d(i),o.opts.unevaluated&&r.length&&o.items!==!0)o.items=wi.mergeEvaluated.items(n,r.length,o.items);let u=n.name("valid"),l=n.const("len",rm._`${a}.length`);r.forEach((c,m)=>{if((0,wi.alwaysValidSchema)(o,c))return;n.if(rm._`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},u)),e.ok(u)});function d(c){let{opts:m,errSchemaPath:h}=o,f=r.length,p=f===c.minItems&&(f===c.maxItems||c[t]===!1);if(m.strictTuples&&!p){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,wi.checkStrictMode)(o,y,m.strictTuples)}}}im.validateTuple=nm;im.default=Ek});var om=g((sm)=>{Object.defineProperty(sm,"__esModule",{value:!0});var Mk=zs(),Gk={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(e)=>(0,Mk.validateTuple)(e,"items")};sm.default=Gk});var dm=g((lm)=>{Object.defineProperty(lm,"__esModule",{value:!0});var um=z(),Jk=j(),Fk=Ce(),Bk=Os(),Kk={message:({params:{len:e}})=>um.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>um._`{limit: ${e}}`},Yk={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Kk,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;if(n.items=!0,(0,Jk.alwaysValidSchema)(n,t))return;if(i)(0,Bk.validateAdditionalItems)(e,i);else e.ok((0,Fk.validateArray)(e))}};lm.default=Yk});var mm=g((cm)=>{Object.defineProperty(cm,"__esModule",{value:!0});var ke=z(),bi=j(),Zk={message:({params:{min:e,max:t}})=>t===void 0?ke.str`must contain at least ${e} valid item(s)`:ke.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?ke._`{minContains: ${e}}`:ke._`{minContains: ${e}, maxContains: ${t}}`},Qk={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Zk,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:a}=e,s,o,{minContains:u,maxContains:l}=n;if(a.opts.next)s=u===void 0?1:u,o=l;else s=1;let d=t.const("len",ke._`${i}.length`);if(e.setParams({min:s,max:o}),o===void 0&&s===0){(0,bi.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,bi.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,bi.alwaysValidSchema)(a,r)){let p=ke._`${d} >= ${s}`;if(o!==void 0)p=ke._`${p} && ${d} <= ${o}`;e.pass(p);return}a.items=!0;let c=t.name("valid");if(o===void 0&&s===1)h(c,()=>t.if(c,()=>t.break()));else if(s===0){if(t.let(c,!0),o!==void 0)t.if(ke._`${i}.length > 0`,m)}else t.let(c,!1),m();e.result(c,()=>e.reset());function m(){let p=t.name("_valid"),y=t.let("count",0);h(p,()=>t.if(p,()=>f(y)))}function h(p,y){t.forRange("i",0,d,(I)=>{e.subschema({keyword:"contains",dataProp:I,dataPropType:bi.Type.Num,compositeRule:!0},p),y()})}function f(p){if(t.code(ke._`${p}++`),o===void 0)t.if(ke._`${p} >= ${s}`,()=>t.assign(c,!0).break());else if(t.if(ke._`${p} > ${o}`,()=>t.assign(c,!1).break()),s===1)t.assign(c,!0);else t.if(ke._`${p} >= ${s}`,()=>t.assign(c,!0))}}};cm.default=Qk});var Ai=g((hm)=>{Object.defineProperty(hm,"__esModule",{value:!0});hm.validateSchemaDeps=hm.validatePropertyDeps=hm.error=void 0;var Ws=z(),_k=j(),xr=Ce();hm.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return Ws.str`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>Ws._`{property: ${e},
|
|
31
|
+
|| ${s} === "boolean" || ${i} === null`).assign(o,W._`[${i}]`)}}}function Ow({gen:e,parentData:r,parentDataProperty:t},n){e.if(W._`${r} !== undefined`,()=>e.assign(W._`${r}[${t}]`,n))}function ss(e,r,t,n=rt.Correct){let i=n===rt.Correct?W.operators.EQ:W.operators.NEQ,a;switch(e){case"null":return W._`${r} ${i} null`;case"array":a=W._`Array.isArray(${r})`;break;case"object":a=W._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":a=s(W._`!(${r} % 1) && !isNaN(${r})`);break;case"number":a=s();break;default:return W._`typeof ${r} ${i} ${e}`}return n===rt.Correct?a:(0,W.not)(a);function s(o=W.nil){return(0,W.and)(W._`typeof ${r} == "number"`,o,t?W._`isFinite(${r})`:W.nil)}}ad.checkDataType=ss;function os(e,r,t,n){if(e.length===1)return ss(e[0],r,t,n);let i,a=(0,td.toHash)(e);if(a.array&&a.object){let s=W._`typeof ${r} != "object"`;i=a.null?s:W._`!${r} || ${s}`,delete a.null,delete a.array,delete a.object}else i=W.nil;if(a.number)delete a.integer;for(let s in a)i=(0,W.and)(i,ss(s,r,t,n));return i}ad.checkDataTypes=os;var zw={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>typeof e=="string"?W._`{type: ${e}}`:W._`{type: ${r}}`};function us(e){let r=Ww(e);(0,Lw.reportError)(r,zw)}ad.reportTypeError=us;function Ww(e){let{gen:r,data:t,schema:n}=e,i=(0,td.schemaRefOrVal)(e,n,"type");return{gen:r,keyword:"type",data:t,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var dd=g((ud)=>{Object.defineProperty(ud,"__esModule",{value:!0});ud.assignDefaults=void 0;var tt=z(),Ew=j();function Mw(e,r){let{properties:t,items:n}=e.schema;if(r==="object"&&t)for(let i in t)od(e,i,t[i].default);else if(r==="array"&&Array.isArray(n))n.forEach((i,a)=>od(e,a,i.default))}ud.assignDefaults=Mw;function od(e,r,t){let{gen:n,compositeRule:i,data:a,opts:s}=e;if(t===void 0)return;let o=tt._`${a}${(0,tt.getProperty)(r)}`;if(i){(0,Ew.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=tt._`${o} === undefined`;if(s.useDefaults==="empty")u=tt._`${u} || ${o} === null || ${o} === ""`;n.if(u,tt._`${o} = ${(0,tt.stringify)(t)}`)}});var Re=g((pd)=>{Object.defineProperty(pd,"__esModule",{value:!0});pd.validateUnion=pd.validateArray=pd.usePattern=pd.callValidateCode=pd.schemaProperties=pd.allSchemaProperties=pd.noPropertyInData=pd.propertyInData=pd.isOwnProperty=pd.hasPropFunc=pd.reportMissingProp=pd.checkMissingProp=pd.checkReportMissingProp=void 0;var M=z(),ls=j(),lr=ke(),Gw=j();function Uw(e,r){let{gen:t,data:n,it:i}=e;t.if(cs(t,n,r,i.opts.ownProperties),()=>{e.setParams({missingProperty:M._`${r}`},!0),e.error()})}pd.checkReportMissingProp=Uw;function Jw({gen:e,data:r,it:{opts:t}},n,i){return(0,M.or)(...n.map((a)=>(0,M.and)(cs(e,r,a,t.ownProperties),M._`${i} = ${a}`)))}pd.checkMissingProp=Jw;function Fw(e,r){e.setParams({missingProperty:r},!0),e.error()}pd.reportMissingProp=Fw;function cd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:M._`Object.prototype.hasOwnProperty`})}pd.hasPropFunc=cd;function ds(e,r,t){return M._`${cd(e)}.call(${r}, ${t})`}pd.isOwnProperty=ds;function Kw(e,r,t,n){let i=M._`${r}${(0,M.getProperty)(t)} !== undefined`;return n?M._`${i} && ${ds(e,r,t)}`:i}pd.propertyInData=Kw;function cs(e,r,t,n){let i=M._`${r}${(0,M.getProperty)(t)} === undefined`;return n?(0,M.or)(i,(0,M.not)(ds(e,r,t))):i}pd.noPropertyInData=cs;function md(e){return e?Object.keys(e).filter((r)=>r!=="__proto__"):[]}pd.allSchemaProperties=md;function Bw(e,r){return md(r).filter((t)=>!(0,ls.alwaysValidSchema)(e,r[t]))}pd.schemaProperties=Bw;function Yw({schemaCode:e,data:r,it:{gen:t,topSchemaRef:n,schemaPath:i,errorPath:a},it:s},o,u,l){let d=l?M._`${e}, ${r}, ${n}${i}`:r,c=[[lr.default.instancePath,(0,M.strConcat)(lr.default.instancePath,a)],[lr.default.parentData,s.parentData],[lr.default.parentDataProperty,s.parentDataProperty],[lr.default.rootData,lr.default.rootData]];if(s.opts.dynamicRef)c.push([lr.default.dynamicAnchors,lr.default.dynamicAnchors]);let p=M._`${d}, ${t.object(...c)}`;return u!==M.nil?M._`${o}.call(${u}, ${p})`:M._`${o}(${p})`}pd.callValidateCode=Yw;var Zw=M._`new RegExp`;function Qw({gen:e,it:{opts:r}},t){let n=r.unicodeRegExp?"u":"",{regExp:i}=r.code,a=i(t,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:M._`${i.code==="new RegExp"?Zw:(0,Gw.useFunc)(e,i)}(${t}, ${n})`})}pd.usePattern=Qw;function Hw(e){let{gen:r,data:t,keyword:n,it:i}=e,a=r.name("valid");if(i.allErrors){let o=r.let("valid",!0);return s(()=>r.assign(o,!1)),o}return r.var(a,!0),s(()=>r.break()),a;function s(o){let u=r.const("len",M._`${t}.length`);r.forRange("i",0,u,(l)=>{e.subschema({keyword:n,dataProp:l,dataPropType:ls.Type.Num},a),r.if((0,M.not)(a),o)})}}pd.validateArray=Hw;function xw(e){let{gen:r,schema:t,keyword:n,it:i}=e;if(!Array.isArray(t))throw Error("ajv implementation error");if(t.some((u)=>(0,ls.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let s=r.let("valid",!1),o=r.name("_valid");r.block(()=>t.forEach((u,l)=>{let d=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},o);if(r.assign(s,M._`${s} || ${o}`),!e.mergeValidEvaluated(d,o))r.if((0,M.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}pd.validateUnion=xw});var qd=g((Id)=>{Object.defineProperty(Id,"__esModule",{value:!0});Id.validateKeywordUsage=Id.validSchemaType=Id.funcKeywordCode=Id.macroKeywordCode=void 0;var se=z(),Sr=ke(),cb=Re(),mb=Nt();function pb(e,r){let{gen:t,keyword:n,schema:i,parentSchema:a,it:s}=e,o=r.macro.call(s.self,i,a,s),u=yd(t,n,o);if(s.opts.validateSchema!==!1)s.self.validateSchema(o,!0);let l=t.name("valid");e.subschema({schema:o,schemaPath:se.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Id.macroKeywordCode=pb;function fb(e,r){var t;let{gen:n,keyword:i,schema:a,parentSchema:s,$data:o,it:u}=e;yb(u,r);let l=!o&&r.compile?r.compile.call(u.self,a,s,u):r.validate,d=yd(n,i,l),c=n.let("valid");e.block$data(c,p),e.ok((t=r.valid)!==null&&t!==void 0?t:c);function p(){if(r.errors===!1){if(m(),r.modifying)hd(e);y(()=>e.error())}else{let I=r.async?h():f();if(r.modifying)hd(e);y(()=>hb(e,I))}}function h(){let I=n.let("ruleErrs",null);return n.try(()=>m(se._`await `),(w)=>n.assign(c,!1).if(se._`${w} instanceof ${u.ValidationError}`,()=>n.assign(I,se._`${w}.errors`),()=>n.throw(w))),I}function f(){let I=se._`${d}.errors`;return n.assign(I,null),m(se.nil),I}function m(I=r.async?se._`await `:se.nil){let w=u.opts.passContext?Sr.default.this:Sr.default.self,q=!(("compile"in r)&&!o||r.schema===!1);n.assign(c,se._`${I}${(0,cb.callValidateCode)(e,d,w,q)}`,r.modifying)}function y(I){var w;n.if((0,se.not)((w=r.valid)!==null&&w!==void 0?w:c),I)}}Id.funcKeywordCode=fb;function hd(e){let{gen:r,data:t,it:n}=e;r.if(n.parentData,()=>r.assign(t,se._`${n.parentData}[${n.parentDataProperty}]`))}function hb(e,r){let{gen:t}=e;t.if(se._`Array.isArray(${r})`,()=>{t.assign(Sr.default.vErrors,se._`${Sr.default.vErrors} === null ? ${r} : ${Sr.default.vErrors}.concat(${r})`).assign(Sr.default.errors,se._`${Sr.default.vErrors}.length`),(0,mb.extendErrors)(e)},()=>e.error())}function yb({schemaEnv:e},r){if(r.async&&!e.$async)throw Error("async keyword in sync schema")}function yd(e,r,t){if(t===void 0)throw Error(`keyword "${r}" failed to compile`);return e.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,se.stringify)(t)})}function Ib(e,r,t=!1){return!r.length||r.some((n)=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||t&&typeof e>"u")}Id.validSchemaType=Ib;function gb({schema:e,opts:r,self:t,errSchemaPath:n},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error("ajv implementation error");let s=i.dependencies;if(s===null||s===void 0?void 0:s.some((o)=>!Object.prototype.hasOwnProperty.call(e,o)))throw Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(i.validateSchema){if(!i.validateSchema(e[a])){let u=`keyword "${a}" value is invalid at path "${n}": `+t.errorsText(i.validateSchema.errors);if(r.validateSchema==="log")t.logger.error(u);else throw Error(u)}}}Id.validateKeywordUsage=gb});var Cd=g((bd)=>{Object.defineProperty(bd,"__esModule",{value:!0});bd.extendSubschemaMode=bd.extendSubschemaData=bd.getSubschema=void 0;var Ue=z(),wd=j();function Ab(e,{keyword:r,schemaProp:t,schema:n,schemaPath:i,errSchemaPath:a,topSchemaRef:s}){if(r!==void 0&&n!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(r!==void 0){let o=e.schema[r];return t===void 0?{schema:o,schemaPath:Ue._`${e.schemaPath}${(0,Ue.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:o[t],schemaPath:Ue._`${e.schemaPath}${(0,Ue.getProperty)(r)}${(0,Ue.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,wd.escapeFragment)(t)}`}}if(n!==void 0){if(i===void 0||a===void 0||s===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:a}}throw Error('either "keyword" or "schema" must be passed')}bd.getSubschema=Ab;function Cb(e,r,{dataProp:t,dataPropType:n,data:i,dataTypes:a,propertyName:s}){if(i!==void 0&&t!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=r;if(t!==void 0){let{errorPath:l,dataPathArr:d,opts:c}=r,p=o.let("data",Ue._`${r.data}${(0,Ue.getProperty)(t)}`,!0);u(p),e.errorPath=Ue.str`${l}${(0,wd.getErrorPath)(t,n,c.jsPropertySyntax)}`,e.parentDataProperty=Ue._`${t}`,e.dataPathArr=[...d,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ue.Name?i:o.let("data",i,!0);if(u(l),s!==void 0)e.propertyName=s}if(a)e.dataTypes=a;function u(l){e.data=l,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,l]}}bd.extendSubschemaData=Cb;function kb(e,{jtdDiscriminator:r,jtdMetadata:t,compositeRule:n,createErrors:i,allErrors:a}){if(n!==void 0)e.compositeRule=n;if(i!==void 0)e.createErrors=i;if(a!==void 0)e.allErrors=a;e.jtdDiscriminator=r,e.jtdMetadata=t}bd.extendSubschemaMode=kb});var ms=g((cz,kd)=>{kd.exports=function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var n,i,a;if(Array.isArray(r)){if(n=r.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!e(r[i],t[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(a=Object.keys(r),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){var s=a[i];if(!e(r[s],t[s]))return!1}return!0}return r!==r&&t!==t}});var Ld=g((mz,Rd)=>{var dr=Rd.exports=function(e,r,t){if(typeof r=="function")t=r,r={};t=r.cb||t;var n=typeof t=="function"?t:t.pre||function(){},i=t.post||function(){};ui(r,n,i,e,"",e)};dr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};dr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};dr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};dr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ui(e,r,t,n,i,a,s,o,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){r(n,i,a,s,o,u,l);for(var d in n){var c=n[d];if(Array.isArray(c)){if(d in dr.arrayKeywords)for(var p=0;p<c.length;p++)ui(e,r,t,c[p],i+"/"+d+"/"+p,a,i,d,n,p)}else if(d in dr.propsKeywords){if(c&&typeof c=="object")for(var h in c)ui(e,r,t,c[h],i+"/"+d+"/"+vb(h),a,i,d,n,h)}else if(d in dr.keywords||e.allKeys&&!(d in dr.skipKeywords))ui(e,r,t,c,i+"/"+d,a,i,d,n)}t(n,i,a,s,o,u,l)}}function vb(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Et=g((Xd)=>{Object.defineProperty(Xd,"__esModule",{value:!0});Xd.getSchemaRefs=Xd.resolveUrl=Xd.normalizeId=Xd._getFullPath=Xd.getFullPath=Xd.inlineRef=void 0;var $b=j(),Sb=ms(),Xb=Ld(),Ob=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function zb(e,r=!0){if(typeof e=="boolean")return!0;if(r===!0)return!ps(e);if(!r)return!1;return vd(e)<=r}Xd.inlineRef=zb;var Wb=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ps(e){for(let r in e){if(Wb.has(r))return!0;let t=e[r];if(Array.isArray(t)&&t.some(ps))return!0;if(typeof t=="object"&&ps(t))return!0}return!1}function vd(e){let r=0;for(let t in e){if(t==="$ref")return 1/0;if(r++,Ob.has(t))continue;if(typeof e[t]=="object")(0,$b.eachItem)(e[t],(n)=>r+=vd(n));if(r===1/0)return 1/0}return r}function $d(e,r="",t){if(t!==!1)r=nt(r);let n=e.parse(r);return Sd(e,n)}Xd.getFullPath=$d;function Sd(e,r){return e.serialize(r).split("#")[0]+"#"}Xd._getFullPath=Sd;var jb=/#\/?$/;function nt(e){return e?e.replace(jb,""):""}Xd.normalizeId=nt;function Pb(e,r,t){return t=nt(t),e.resolve(r,t)}Xd.resolveUrl=Pb;var Tb=/^[a-z_][-a-z0-9._]*$/i;function Vb(e,r){if(typeof e=="boolean")return{};let{schemaId:t,uriResolver:n}=this.opts,i=nt(e[t]||r),a={"":i},s=$d(n,i,!1),o={},u=new Set;return Xb(e,{allKeys:!0},(c,p,h,f)=>{if(f===void 0)return;let m=s+p,y=a[f];if(typeof c[t]=="string")y=I.call(this,c[t]);w.call(this,c.$anchor),w.call(this,c.$dynamicAnchor),a[p]=y;function I(q){let v=this.opts.uriResolver.resolve;if(q=nt(y?v(y,q):q),u.has(q))throw d(q);u.add(q);let k=this.refs[q];if(typeof k=="string")k=this.refs[k];if(typeof k=="object")l(c,k.schema,q);else if(q!==nt(m))if(q[0]==="#")l(c,o[q],q),o[q]=c;else this.refs[q]=m;return q}function w(q){if(typeof q=="string"){if(!Tb.test(q))throw Error(`invalid anchor "${q}"`);I.call(this,`#${q}`)}}}),o;function l(c,p,h){if(p!==void 0&&!Sb(c,p))throw d(h)}function d(c){return Error(`reference "${c}" resolves to more than one schema`)}}Xd.getSchemaRefs=Vb});var it=g((Kd)=>{Object.defineProperty(Kd,"__esModule",{value:!0});Kd.getData=Kd.KeywordCxt=Kd.validateFunctionCode=void 0;var Td=Zl(),zd=Dt(),hs=as(),li=Dt(),Ub=dd(),Gt=qd(),fs=Cd(),$=z(),O=ke(),Jb=Et(),xe=j(),Mt=Nt();function Fb(e){if(Dd(e)){if(Ed(e),Nd(e)){Yb(e);return}}Vd(e,()=>(0,Td.topBoolOrEmptySchema)(e))}Kd.validateFunctionCode=Fb;function Vd({gen:e,validateName:r,schema:t,schemaEnv:n,opts:i},a){if(i.code.es5)e.func(r,$._`${O.default.data}, ${O.default.valCxt}`,n.$async,()=>{e.code($._`"use strict"; ${Wd(t,i)}`),Bb(e,i),e.code(a)});else e.func(r,$._`${O.default.data}, ${Kb(i)}`,n.$async,()=>e.code(Wd(t,i)).code(a))}function Kb(e){return $._`{${O.default.instancePath}="", ${O.default.parentData}, ${O.default.parentDataProperty}, ${O.default.rootData}=${O.default.data}${e.dynamicRef?$._`, ${O.default.dynamicAnchors}={}`:$.nil}}={}`}function Bb(e,r){e.if(O.default.valCxt,()=>{if(e.var(O.default.instancePath,$._`${O.default.valCxt}.${O.default.instancePath}`),e.var(O.default.parentData,$._`${O.default.valCxt}.${O.default.parentData}`),e.var(O.default.parentDataProperty,$._`${O.default.valCxt}.${O.default.parentDataProperty}`),e.var(O.default.rootData,$._`${O.default.valCxt}.${O.default.rootData}`),r.dynamicRef)e.var(O.default.dynamicAnchors,$._`${O.default.valCxt}.${O.default.dynamicAnchors}`)},()=>{if(e.var(O.default.instancePath,$._`""`),e.var(O.default.parentData,$._`undefined`),e.var(O.default.parentDataProperty,$._`undefined`),e.var(O.default.rootData,O.default.data),r.dynamicRef)e.var(O.default.dynamicAnchors,$._`{}`)})}function Yb(e){let{schema:r,opts:t,gen:n}=e;Vd(e,()=>{if(t.$comment&&r.$comment)Gd(e);if(_b(e),n.let(O.default.vErrors,null),n.let(O.default.errors,0),t.unevaluated)Zb(e);Md(e),tA(e)});return}function Zb(e){let{gen:r,validateName:t}=e;e.evaluated=r.const("evaluated",$._`${t}.evaluated`),r.if($._`${e.evaluated}.dynamicProps`,()=>r.assign($._`${e.evaluated}.props`,$._`undefined`)),r.if($._`${e.evaluated}.dynamicItems`,()=>r.assign($._`${e.evaluated}.items`,$._`undefined`))}function Wd(e,r){let t=typeof e=="object"&&e[r.schemaId];return t&&(r.code.source||r.code.process)?$._`/*# sourceURL=${t} */`:$.nil}function Qb(e,r){if(Dd(e)){if(Ed(e),Nd(e)){Hb(e,r);return}}(0,Td.boolOrEmptySchema)(e,r)}function Nd({schema:e,self:r}){if(typeof e=="boolean")return!e;for(let t in e)if(r.RULES.all[t])return!0;return!1}function Dd(e){return typeof e.schema!="boolean"}function Hb(e,r){let{schema:t,gen:n,opts:i}=e;if(i.$comment&&t.$comment)Gd(e);eA(e),rA(e);let a=n.const("_errs",O.default.errors);Md(e,a),n.var(r,$._`${a} === ${O.default.errors}`)}function Ed(e){(0,xe.checkUnknownRules)(e),xb(e)}function Md(e,r){if(e.opts.jtd)return jd(e,[],!1,r);let t=(0,zd.getSchemaTypes)(e.schema),n=(0,zd.coerceAndCheckDataType)(e,t);jd(e,t,!n,r)}function xb(e){let{schema:r,errSchemaPath:t,opts:n,self:i}=e;if(r.$ref&&n.ignoreKeywordsWithRef&&(0,xe.schemaHasRulesButRef)(r,i.RULES))i.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function _b(e){let{schema:r,opts:t}=e;if(r.default!==void 0&&t.useDefaults&&t.strictSchema)(0,xe.checkStrictMode)(e,"default is ignored in the schema root")}function eA(e){let r=e.schema[e.opts.schemaId];if(r)e.baseId=(0,Jb.resolveUrl)(e.opts.uriResolver,e.baseId,r)}function rA(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}function Gd({gen:e,schemaEnv:r,schema:t,errSchemaPath:n,opts:i}){let a=t.$comment;if(i.$comment===!0)e.code($._`${O.default.self}.logger.log(${a})`);else if(typeof i.$comment=="function"){let s=$.str`${n}/$comment`,o=e.scopeValue("root",{ref:r.root});e.code($._`${O.default.self}.opts.$comment(${a}, ${s}, ${o}.schema)`)}}function tA(e){let{gen:r,schemaEnv:t,validateName:n,ValidationError:i,opts:a}=e;if(t.$async)r.if($._`${O.default.errors} === 0`,()=>r.return(O.default.data),()=>r.throw($._`new ${i}(${O.default.vErrors})`));else{if(r.assign($._`${n}.errors`,O.default.vErrors),a.unevaluated)nA(e);r.return($._`${O.default.errors} === 0`)}}function nA({gen:e,evaluated:r,props:t,items:n}){if(t instanceof $.Name)e.assign($._`${r}.props`,t);if(n instanceof $.Name)e.assign($._`${r}.items`,n)}function jd(e,r,t,n){let{gen:i,schema:a,data:s,allErrors:o,opts:u,self:l}=e,{RULES:d}=l;if(a.$ref&&(u.ignoreKeywordsWithRef||!(0,xe.schemaHasRulesButRef)(a,d))){i.block(()=>Jd(e,"$ref",d.all.$ref.definition));return}if(!u.jtd)iA(e,r);i.block(()=>{for(let p of d.rules)c(p);c(d.post)});function c(p){if(!(0,hs.shouldUseGroup)(a,p))return;if(p.type){if(i.if((0,li.checkDataType)(p.type,s,u.strictNumbers)),Pd(e,p),r.length===1&&r[0]===p.type&&t)i.else(),(0,li.reportTypeError)(e);i.endIf()}else Pd(e,p);if(!o)i.if($._`${O.default.errors} === ${n||0}`)}}function Pd(e,r){let{gen:t,schema:n,opts:{useDefaults:i}}=e;if(i)(0,Ub.assignDefaults)(e,r.type);t.block(()=>{for(let a of r.rules)if((0,hs.shouldUseRule)(n,a))Jd(e,a.keyword,a.definition,r.type)})}function iA(e,r){if(e.schemaEnv.meta||!e.opts.strictTypes)return;if(aA(e,r),!e.opts.allowUnionTypes)sA(e,r);oA(e,e.dataTypes)}function aA(e,r){if(!r.length)return;if(!e.dataTypes.length){e.dataTypes=r;return}r.forEach((t)=>{if(!Ud(e.dataTypes,t))ys(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),lA(e,r)}function sA(e,r){if(r.length>1&&!(r.length===2&&r.includes("null")))ys(e,"use allowUnionTypes to allow union type keyword")}function oA(e,r){let t=e.self.RULES.all;for(let n in t){let i=t[n];if(typeof i=="object"&&(0,hs.shouldUseRule)(e.schema,i)){let{type:a}=i.definition;if(a.length&&!a.some((s)=>uA(r,s)))ys(e,`missing type "${a.join(",")}" for keyword "${n}"`)}}}function uA(e,r){return e.includes(r)||r==="number"&&e.includes("integer")}function Ud(e,r){return e.includes(r)||r==="integer"&&e.includes("number")}function lA(e,r){let t=[];for(let n of e.dataTypes)if(Ud(r,n))t.push(n);else if(r.includes("integer")&&n==="number")t.push("integer");e.dataTypes=t}function ys(e,r){let t=e.schemaEnv.baseId+e.errSchemaPath;r+=` at "${t}" (strictTypes)`,(0,xe.checkStrictMode)(e,r,e.opts.strictTypes)}class Is{constructor(e,r,t){if((0,Gt.validateKeywordUsage)(e,r,t),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=t,this.data=e.data,this.schema=e.schema[t],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,xe.schemaRefOrVal)(e,this.schema,t,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",Fd(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Gt.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw Error(`${t} value must be ${JSON.stringify(r.schemaType)}`);if("code"in r?r.trackErrors:r.errors!==!1)this.errsCount=e.gen.const("_errs",O.default.errors)}result(e,r,t){this.failResult((0,$.not)(e),r,t)}failResult(e,r,t){if(this.gen.if(e),t)t();else this.error();if(r){if(this.gen.else(),r(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(e,r){this.failResult((0,$.not)(e),void 0,r)}fail(e){if(e===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(e),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail($._`${r} !== undefined && (${(0,$.or)(this.invalid$data(),e)})`)}error(e,r,t){if(r){this.setParams(r),this._error(e,t),this.setParams({});return}this._error(e,t)}_error(e,r){(e?Mt.reportExtraError:Mt.reportError)(this,this.def.error,r)}$dataError(){(0,Mt.reportError)(this,this.def.$dataError||Mt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,Mt.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,r){if(r)Object.assign(this.params,e);else this.params=e}block$data(e,r,t=$.nil){this.gen.block(()=>{this.check$data(e,t),r()})}check$data(e=$.nil,r=$.nil){if(!this.$data)return;let{gen:t,schemaCode:n,schemaType:i,def:a}=this;if(t.if((0,$.or)($._`${n} === undefined`,r)),e!==$.nil)t.assign(e,!0);if(i.length||a.validateSchema){if(t.elseIf(this.invalid$data()),this.$dataError(),e!==$.nil)t.assign(e,!1)}t.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:t,def:n,it:i}=this;return(0,$.or)(a(),s());function a(){if(t.length){if(!(r instanceof $.Name))throw Error("ajv implementation error");let o=Array.isArray(t)?t:[t];return $._`${(0,li.checkDataTypes)(o,r,i.opts.strictNumbers,li.DataType.Wrong)}`}return $.nil}function s(){if(n.validateSchema){let o=e.scopeValue("validate$data",{ref:n.validateSchema});return $._`!${o}(${r})`}return $.nil}}subschema(e,r){let t=(0,fs.getSubschema)(this.it,e);(0,fs.extendSubschemaData)(t,this.it,e),(0,fs.extendSubschemaMode)(t,e);let n={...this.it,...t,items:void 0,props:void 0};return Qb(n,r),n}mergeEvaluated(e,r){let{it:t,gen:n}=this;if(!t.opts.unevaluated)return;if(t.props!==!0&&e.props!==void 0)t.props=xe.mergeEvaluated.props(n,e.props,t.props,r);if(t.items!==!0&&e.items!==void 0)t.items=xe.mergeEvaluated.items(n,e.items,t.items,r)}mergeValidEvaluated(e,r){let{it:t,gen:n}=this;if(t.opts.unevaluated&&(t.props!==!0||t.items!==!0))return n.if(r,()=>this.mergeEvaluated(e,$.Name)),!0}}Kd.KeywordCxt=Is;function Jd(e,r,t,n){let i=new Is(e,t,r);if("code"in t)t.code(i,n);else if(i.$data&&t.validate)(0,Gt.funcKeywordCode)(i,t);else if("macro"in t)(0,Gt.macroKeywordCode)(i,t);else if(t.compile||t.validate)(0,Gt.funcKeywordCode)(i,t)}var dA=/^\/(?:[^~]|~0|~1)*$/,cA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Fd(e,{dataLevel:r,dataNames:t,dataPathArr:n}){let i,a;if(e==="")return O.default.rootData;if(e[0]==="/"){if(!dA.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=O.default.rootData}else{let l=cA.exec(e);if(!l)throw Error(`Invalid JSON-pointer: ${e}`);let d=+l[1];if(i=l[2],i==="#"){if(d>=r)throw Error(u("property/index",d));return n[r-d]}if(d>r)throw Error(u("data",d));if(a=t[r-d],!i)return a}let s=a,o=i.split("/");for(let l of o)if(l)a=$._`${a}${(0,$.getProperty)((0,xe.unescapeJsonPointer)(l))}`,s=$._`${s} && ${a}`;return s;function u(l,d){return`Cannot access ${l} ${d} levels up, current level is ${r}`}}Kd.getData=Fd});var Ut=g((Zd)=>{Object.defineProperty(Zd,"__esModule",{value:!0});class Yd extends Error{constructor(e){super("validation failed");this.errors=e,this.ajv=this.validation=!0}}Zd.default=Yd});var at=g((Hd)=>{Object.defineProperty(Hd,"__esModule",{value:!0});var gs=Et();class Qd extends Error{constructor(e,r,t,n){super(n||`can't resolve reference ${t} from id ${r}`);this.missingRef=(0,gs.resolveUrl)(e,r,t),this.missingSchema=(0,gs.normalizeId)((0,gs.getFullPath)(e,this.missingRef))}}Hd.default=Qd});var Ft=g((ec)=>{Object.defineProperty(ec,"__esModule",{value:!0});ec.resolveSchema=ec.getCompilingSchema=ec.resolveRef=ec.compileSchema=ec.SchemaEnv=void 0;var Ve=z(),yA=Ut(),Xr=ke(),Ne=Et(),xd=j(),IA=it();class Jt{constructor(e){var r;this.refs={},this.dynamicAnchors={};let t;if(typeof e.schema=="object")t=e.schema;this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,Ne.normalizeId)(t===null||t===void 0?void 0:t[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t===null||t===void 0?void 0:t.$async,this.refs={}}}ec.SchemaEnv=Jt;function ws(e){let r=_d.call(this,e);if(r)return r;let t=(0,Ne.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:a}=this.opts,s=new Ve.CodeGen(this.scope,{es5:n,lines:i,ownProperties:a}),o;if(e.$async)o=s.scopeValue("Error",{ref:yA.default,code:Ve._`require("ajv/dist/runtime/validation_error").default`});let u=s.scopeName("validate");e.validateName=u;let l={gen:s,allErrors:this.opts.allErrors,data:Xr.default.data,parentData:Xr.default.parentData,parentDataProperty:Xr.default.parentDataProperty,dataNames:[Xr.default.data],dataPathArr:[Ve.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ve.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:t,baseId:e.baseId||t,schemaPath:Ve.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:Ve._`""`,opts:this.opts,self:this},d;try{this._compilations.add(e),(0,IA.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let c=s.toString();if(d=`${s.scopeRefs(Xr.default.scope)}return ${c}`,this.opts.code.process)d=this.opts.code.process(d,e);let h=Function(`${Xr.default.self}`,`${Xr.default.scope}`,d)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async)h.$async=!0;if(this.opts.code.source===!0)h.source={validateName:u,validateCode:c,scopeValues:s._values};if(this.opts.unevaluated){let{props:f,items:m}=l;if(h.evaluated={props:f instanceof Ve.Name?void 0:f,items:m instanceof Ve.Name?void 0:m,dynamicProps:f instanceof Ve.Name,dynamicItems:m instanceof Ve.Name},h.source)h.source.evaluated=(0,Ve.stringify)(h.evaluated)}return e.validate=h,e}catch(c){if(delete e.validate,delete e.validateName,d)this.logger.error("Error compiling schema, function code:",d);throw c}finally{this._compilations.delete(e)}}ec.compileSchema=ws;function gA(e,r,t){var n;t=(0,Ne.resolveUrl)(this.opts.uriResolver,r,t);let i=e.refs[t];if(i)return i;let a=bA.call(this,e,t);if(a===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[t],{schemaId:o}=this.opts;if(s)a=new Jt({schema:s,schemaId:o,root:e,baseId:r})}if(a===void 0)return;return e.refs[t]=qA.call(this,a)}ec.resolveRef=gA;function qA(e){if((0,Ne.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:ws.call(this,e)}function _d(e){for(let r of this._compilations)if(wA(r,e))return r}ec.getCompilingSchema=_d;function wA(e,r){return e.schema===r.schema&&e.root===r.root&&e.baseId===r.baseId}function bA(e,r){let t;while(typeof(t=this.refs[r])=="string")r=t;return t||this.schemas[r]||di.call(this,e,r)}function di(e,r){let t=this.opts.uriResolver.parse(r),n=(0,Ne._getFullPath)(this.opts.uriResolver,t),i=(0,Ne.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return qs.call(this,t,e);let a=(0,Ne.normalizeId)(n),s=this.refs[a]||this.schemas[a];if(typeof s=="string"){let o=di.call(this,e,s);if(typeof(o===null||o===void 0?void 0:o.schema)!=="object")return;return qs.call(this,t,o)}if(typeof(s===null||s===void 0?void 0:s.schema)!=="object")return;if(!s.validate)ws.call(this,s);if(a===(0,Ne.normalizeId)(r)){let{schema:o}=s,{schemaId:u}=this.opts,l=o[u];if(l)i=(0,Ne.resolveUrl)(this.opts.uriResolver,i,l);return new Jt({schema:o,schemaId:u,root:e,baseId:i})}return qs.call(this,t,s)}ec.resolveSchema=di;var AA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function qs(e,{baseId:r,schema:t,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if(typeof t==="boolean")return;let u=t[(0,xd.unescapeFragment)(o)];if(u===void 0)return;t=u;let l=typeof t==="object"&&t[this.opts.schemaId];if(!AA.has(o)&&l)r=(0,Ne.resolveUrl)(this.opts.uriResolver,r,l)}let a;if(typeof t!="boolean"&&t.$ref&&!(0,xd.schemaHasRulesButRef)(t,this.RULES)){let o=(0,Ne.resolveUrl)(this.opts.uriResolver,r,t.$ref);a=di.call(this,n,o)}let{schemaId:s}=this.opts;if(a=a||new Jt({schema:t,schemaId:s,root:n,baseId:r}),a.schema!==a.root.schema)return a;return}});var tc=g((gz,vA)=>{vA.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Ls=g((qz,lc)=>{var $A=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),As=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),SA=RegExp.prototype.test.bind(/^\d*$/u),Or=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Cs=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),ic=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),ks=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),XA=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),de=Array(256);for(let r=0;r<256;r++)de[r]="%"+"0123456789ABCDEF"[r>>4]+"0123456789ABCDEF"[r&15];function ee(e){if(e<2048)return de[192|e>>6]+de[128|e&63];if(e<65536)return de[224|e>>12]+de[128|e>>6&63]+de[128|e&63];return de[240|e>>18]+de[128|e>>12&63]+de[128|e>>6&63]+de[128|e&63]}function OA(e){let r="",t=0,n=0;for(n=0;n<e.length;n++){if(t=e[n].charCodeAt(0),t===48)continue;if(!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n];break}for(n+=1;n<e.length;n++){if(t=e[n].charCodeAt(0),!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n]}return r}var zA=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),WA=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),jA=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),PA=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function TA(e){if(e.length===0)return!1;for(let r=0;r<e.length;r++){if(jA(e[r]))continue;if(e[r]==="%"&&r+2<e.length&&Or(e.slice(r+1,r+3))){r+=2;continue}return!1}return!0}function nc(e){let r=-1,t=0,n=-1,i=0;for(let o=0;o<e.length;o++)if(e[o]==="0"){if(n===-1)n=o;if(i++,i>t)t=i,r=n}else n=-1,i=0;if(t<2)return e.join(":");let a=e.slice(0,r).join(":"),s=e.slice(r+t).join(":");return a+"::"+s}function VA(e){let r=e.indexOf("::");if(r!==-1&&e.indexOf("::",r+1)!==-1)return;let t=r===-1?e.split(":"):e.slice(0,r).split(":"),n=r===-1?[]:e.slice(r+2).split(":");if(r!==-1){if(t.length===1&&t[0]==="")t.length=0;if(n.length===1&&n[0]==="")n.length=0}let i=t.concat(n),a=0;for(let o=0;o<i.length;o++){let u=i[o];if(u==="")return;if(u.indexOf(".")!==-1){if(o!==i.length-1||r!==-1&&n.length===0||!As(u))return;a+=2;continue}if(!zA(u))return;i[o]=parseInt(u,16).toString(16),a++}if(r===-1){if(a!==8)return;return nc(i)}if(a>=8)return;let s=i.slice(0,t.length);for(let o=a;o<8;o++)s.push("0");for(let o=t.length;o<i.length;o++)s.push(i[o]);return nc(s)}function bs(e){let r=e[0]==="["&&e[e.length-1]==="]";if((e[0]==="["||e[e.length-1]==="]")&&!r)return{host:e,isIPV6:!1,error:!0};let n=r?e.slice(1,-1):e;if(r&&WA(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(NA(n,":")<2)return{host:e,isIPV6:!1,error:r};let i="",a=n.indexOf("%");if(a!==-1){let o=n.slice(a,a+3).toLowerCase()==="%25"?3:1;if(i=n.slice(a+o),!TA(i))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,a)}let s=VA(n);if(s===void 0)return{host:e,isIPV6:!1,error:!0};return{host:s+(i?"%"+i:""),escapedHost:s+(i?"%25"+i:""),isIPV6:!0}}function NA(e,r){let t=0;for(let n=0;n<e.length;n++)if(e[n]===r)t++;return t}function DA(e){let r=e,t=[],n=-1,i=0;while(i=r.length){if(i===1)if(r===".")break;else if(r==="/"){t.push("/");break}else{t.push(r);break}else if(i===2){if(r[0]==="."){if(r[1]===".")break;else if(r[1]==="/"){r=r.slice(2);continue}}else if(r[0]==="/"){if(r[1]==="."||r[1]==="/"){t.push("/");break}}}else if(i===3){if(r==="/.."){if(t.length!==0)t.pop();t.push("/");break}}if(r[0]==="."){if(r[1]==="."){if(r[2]==="/"){r=r.slice(3);continue}}else if(r[1]==="/"){r=r.slice(2);continue}}else if(r[0]==="/"){if(r[1]==="."){if(r[2]==="/"){r=r.slice(2);continue}else if(r[2]==="."){if(r[3]==="/"){if(r=r.slice(3),t.length!==0)t.pop();continue}}}}if((n=r.indexOf("/",1))===-1){t.push(r);break}else t.push(r.slice(0,n)),r=r.slice(n)}return t.join("")}var EA={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},MA=/[@/?#:]/g,GA=/[@/?#]/g;function ac(e,r){let t=r?GA:MA;return t.lastIndex=0,e.replace(t,(n)=>EA[n])}function sc(e,r=!1){if(e.indexOf("%")===-1)return e;let t="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(Or(i)){let a=i.toUpperCase(),s=String.fromCharCode(parseInt(a,16));if(r&&Cs(s))t+=s;else t+="%"+a;n+=2;continue}}t+=e[n]}return t}function UA(e){let r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="%"&&t+2<e.length){let i=e.slice(t+1,t+3);if(Or(i)){let a=i.toUpperCase(),s=String.fromCharCode(parseInt(a,16));if(s!=="."&&Cs(s))r+=s;else r+="%"+a;t+=2;continue}}if(ic(n))r+=n;else{let i=e.charCodeAt(t);if(i<128)r+=uc(i)?n:de[i];else if(i<55296||i>57343)r+=ee(i);else if(i<=56319&&t+1<e.length){let a=e.charCodeAt(t+1);if(a>=56320&&a<=57343)r+=ee(65536+(i-55296<<10)+(a-56320)),t++;else r+=ee(65533)}else r+=ee(65533)}}return r}function JA(e,r=!1){let t="",n=r&&e[0]!=="/";for(let i=0;i<e.length;i++){let a=e[i];if(a==="%"&&i+2<e.length){let s=e.slice(i+1,i+3);if(Or(s)){t+="%"+s.toUpperCase(),i+=2;continue}}if(a==="/")n=!1;if(ic(a)&&(a!==":"||!n))t+=a;else{let s=e.charCodeAt(i);if(s<128)t+=de[s];else if(s<55296||s>57343)t+=ee(s);else if(s<=56319&&i+1<e.length){let o=e.charCodeAt(i+1);if(o>=56320&&o<=57343)t+=ee(65536+(s-55296<<10)+(o-56320)),i++;else t+=ee(65533)}else t+=ee(65533)}}return t}function Rs(e,r){let t="";for(let n=0;n<e.length;n++){let i=e[n];if(i==="%"&&n+2<e.length){let a=e.slice(n+1,n+3);if(Or(a)){t+="%"+a.toUpperCase(),n+=2;continue}}if(r(i))t+=i;else{let a=e.charCodeAt(n);if(a<128)t+=de[a];else if(a<55296||a>57343)t+=ee(a);else if(a<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);if(s>=56320&&s<=57343)t+=ee(65536+(a-55296<<10)+(s-56320)),n++;else t+=ee(65533)}else t+=ee(65533)}}return t}function oc(e){return Rs(e,XA)}function FA(e){return Rs(e,ks)}function KA(e){return Rs(e,ks)}function uc(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===42||e===43||e===45||e===46||e===47||e===64||e===95}function BA(e){let r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="%"&&t+2<e.length){let i=e.slice(t+1,t+3);if(Or(i)){let a=i.toUpperCase(),s=String.fromCharCode(parseInt(a,16));if(Cs(s))r+=s;else r+="%"+a;t+=2;continue}}if(ks(n))r+=n;else{let i=e.charCodeAt(t);if(i<128)r+=uc(i)?n:de[i];else if(i<55296||i>57343)r+=ee(i);else if(i<=56319&&t+1<e.length){let a=e.charCodeAt(t+1);if(a>=56320&&a<=57343)r+=ee(65536+(i-55296<<10)+(a-56320)),t++;else r+=ee(65533)}else r+=ee(65533)}}return r}function YA(e){let r="";for(let t=0;t<e.length;t++){if(e[t]==="%"&&t+2<e.length){let n=e.slice(t+1,t+3);if(Or(n)){r+="%"+n.toUpperCase(),t+=2;continue}}r+=escape(e[t])}return r}function ZA(e){let r=[];if(e.userinfo!==void 0)r.push(oc(e.userinfo)),r.push("@");if(e.host!==void 0){let t=e.host;if(!As(t)){let n=bs(t);if(n.isIPV6!==!0&&n.isIPVFuture!==!0)t=sc(t,!0),n=bs(t);if(n.isIPV6===!0||n.isIPVFuture===!0)t=`[${n.escapedHost}]`;else t=ac(t,!1)}r.push(t)}if(typeof e.port==="number"||typeof e.port==="string"){let t=String(e.port);if(!SA(t))throw TypeError("URI port is malformed.");r.push(":"),r.push(t)}return r.length?r.join(""):void 0}lc.exports={nonSimpleDomain:PA,recomposeAuthority:ZA,reescapeHostDelimiters:ac,normalizePercentEncoding:sc,normalizePathEncoding:UA,serializePathEncoding:JA,normalizeQueryFragmentEncoding:BA,encodeUserinfo:oc,encodeQuery:FA,encodeFragment:KA,escapePreservingEscapes:YA,removeDotSegments:DA,isIPv4:As,isUUID:$A,normalizeIPv6:bs,stringArrayToHexStripped:OA}});var fc=g((wz,pc)=>{var{isUUID:QA}=Ls(),HA=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,xA=["http","https","ws","wss","urn","urn:uuid"];function _A(e){return xA.indexOf(e)!==-1}function vs(e){if(e.secure===!0)return!0;else if(e.secure===!1)return!1;else if(e.scheme)return e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S");else return!1}function dc(e){if(!e.host)e.error=e.error||"HTTP URIs must have a host.";return e}function cc(e){let r=String(e.scheme).toLowerCase()==="https";if(e.port===(r?443:80)||e.port==="")e.port=void 0;if(!e.path)e.path="/";return e}function eC(e){return e.secure=vs(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function rC(e){if(e.port===(vs(e)?443:80)||e.port==="")e.port=void 0;if(typeof e.secure==="boolean")e.scheme=e.secure?"wss":"ws",e.secure=void 0;if(e.resourceName){let r=e.resourceName.indexOf("?"),t=r===-1?e.resourceName:e.resourceName.slice(0,r);e.path=t&&t!=="/"?t:void 0,e.query=r===-1?void 0:e.resourceName.slice(r+1),e.resourceName=void 0}return e.fragment=void 0,e}function tC(e,r){if(!e.path)return e.error="URN can not be parsed",e;let t=e.path.match(HA);if(t&&t[0]===e.path){let n=r.scheme||e.scheme||"urn";e.nid=t[1].toLowerCase(),e.nss=t[2];let i=`${n}:${r.nid||e.nid}`,a=$s(i);if(e.path=void 0,a)e=a.parse(e,r)}else e.error=e.error||"URN can not be parsed.";return e}function nC(e,r){if(e.nid===void 0)throw Error("URN without nid cannot be serialized");let t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${t}:${r.nid||n}`,a=$s(i);if(a)e=a.serialize(e,r);let s=e,o=e.nss;return s.path=`${n||r.nid}:${o}`,r.skipEscape=!0,s}function iC(e,r){let t=e;if(t.uuid=t.nss,t.nss=void 0,!r.tolerant&&(!t.uuid||!QA(t.uuid)))t.error=t.error||"UUID is not valid.";return t}function aC(e){let r=e;return r.nss=(e.uuid||"").toLowerCase(),r}var mc={scheme:"http",domainHost:!0,parse:dc,serialize:cc},sC={scheme:"https",domainHost:mc.domainHost,parse:dc,serialize:cc},ci={scheme:"ws",domainHost:!0,parse:eC,serialize:rC},oC={scheme:"wss",domainHost:ci.domainHost,parse:ci.parse,serialize:ci.serialize},uC={scheme:"urn",parse:tC,serialize:nC,skipNormalize:!0},lC={scheme:"urn:uuid",parse:iC,serialize:aC,skipNormalize:!0},mi={http:mc,https:sC,ws:ci,wss:oC,urn:uC,"urn:uuid":lC};Object.setPrototypeOf(mi,null);function $s(e){return e&&(mi[e]||mi[e.toLowerCase()])||void 0}pc.exports={wsIsSecure:vs,SCHEMES:mi,isValidSchemeName:_A,getSchemeHandler:$s}});var Lc=g((bz,hi)=>{var{normalizeIPv6:qc,removeDotSegments:Bt,recomposeAuthority:dC,normalizePercentEncoding:Ss,normalizePathEncoding:cC,serializePathEncoding:hc,normalizeQueryFragmentEncoding:yc,encodeQuery:mC,encodeFragment:pC,reescapeHostDelimiters:fC,isIPv4:wc,nonSimpleDomain:hC}=Ls(),{SCHEMES:bc,getSchemeHandler:Xs}=fc(),Ac=/^[A-Za-z][A-Za-z0-9+.-]*$/u;function Ic(e){let r=unescape(String(e));if(!Ac.test(r))throw TypeError("URI scheme is malformed.");return r}function yC(e,r){if(typeof e==="string")e=kC(e,r);else if(typeof e==="object")e=fi(zr(e,r),r);return e}function IC(e,r,t){let n=t?Object.assign({scheme:"null"},t):{scheme:"null"},{parsed:i,malformedAuthorityOrPort:a,malformedPercentEncoding:s,malformedSchemeSpecific:o,malformedHost:u,malformedScheme:l}=pi(e,n),{parsed:d,malformedAuthorityOrPort:c,malformedPercentEncoding:p,malformedSchemeSpecific:h,malformedHost:f,malformedScheme:m}=pi(r,n);if(a||c||s||p||o||h||u||f||l||m)throw Error(i.error||d.error||"URI is malformed.");let y=Cc(i,d,n,!0),I=Xs(t&&t.scheme||y.scheme),w=y.host,q=w!==void 0&&w!==""&&(wc(w)||qc(w).isIPV6);kc(y,t||{},I,q);let v=w&&w.indexOf("%")!==-1&&!/\P{ASCII}/u.test(w);if(y.error&&!v)throw Error(y.error);return n.skipEscape=!0,zr(y,n)}function Cc(e,r,t,n){let i={};if(!n)e=fi(zr(e,t),t),r=fi(zr(r,t),t);if(t=t||{},!t.tolerant&&r.scheme)i.scheme=r.scheme,i.userinfo=r.userinfo,i.host=r.host,i.port=r.port,i.path=Bt(r.path||""),i.query=r.query;else{if(r.userinfo!==void 0||r.host!==void 0||r.port!==void 0)i.userinfo=r.userinfo,i.host=r.host,i.port=r.port,i.path=Bt(r.path||""),i.query=r.query;else{if(!r.path)if(i.path=e.path,r.query!==void 0)i.query=r.query;else i.query=e.query;else{if(r.path[0]==="/")i.path=Bt(r.path);else{if((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path)i.path="/"+r.path;else if(!e.path)i.path=r.path;else i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path;i.path=Bt(i.path)}i.query=r.query}i.userinfo=e.userinfo,i.host=e.host,i.port=e.port}i.scheme=e.scheme}return i.fragment=r.fragment,i}function gC(e,r,t){let n=gc(e,t),i=gc(r,t);return n!==void 0&&i!==void 0&&n===i}function zr(e,r){let t={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},r),i=[];if(t.scheme)t.scheme=Ic(t.scheme);let a=Xs(n.scheme||t.scheme);if(a&&a.serialize)a.serialize(t,n);let s=t.userinfo!==void 0||t.host!==void 0||t.port!==void 0,o=!n.skipEscape&&t.scheme===void 0&&!s;if(t.path!==void 0)if(!n.skipEscape)t.path=hc(t.path,o);else t.path=Ss(t.path);if(n.reference!=="suffix"&&t.scheme)t.scheme=Ic(t.scheme),i.push(t.scheme,":");let u=dC(t);if(u!==void 0){if(n.reference!=="suffix")i.push("//");if(i.push(u),t.path&&t.path[0]!=="/")i.push("/")}if(t.path!==void 0){let l=t.path;if(!n.absolutePath&&(!a||!a.absolutePath))l=Bt(l);if(o)l=hc(l,!0);if(u===void 0&&l[0]==="/"&&l[1]==="/")l="/%2F"+l.slice(2);i.push(l)}if(t.query!==void 0)i.push("?",mC(t.query));if(t.fragment!==void 0)i.push("#",pC(t.fragment));return i.join("")}var qC=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,wC=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,bC=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function AC(e,r){if(r[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port==="number"&&(e.port<0||e.port>65535))return"URI port is malformed.";return}function Kt(e){if(e===void 0)return!1;let r=e.indexOf("%");while(r!==-1){if(r+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(r+1,r+3)))return!0;r=e.indexOf("%",r+3)}return!1}function Os(e){return e[0]==="["&&e[e.length-1]==="]"}function CC(e){let r=e[4];return Kt(e[3])||r!==void 0&&!Os(r)&&Kt(r)||Kt(e[6])||Kt(e[7])||Kt(e[8])}function kc(e,r,t,n){if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&e.host&&!Os(e.host)&&(r.domainHost||t&&t.domainHost)&&n===!1&&hC(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(i){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+i,!0}return!1}function pi(e,r){let t=Object.assign({},r),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1,a=!1,s=!1,o=!1,u=!1,l=!1,d=!1;if(t.reference==="suffix")if(t.scheme)e=t.scheme+":"+e;else e="//"+e;let c=e.match(wC);if(c!==null&&c[1].indexOf("\\")!==-1)n.error="URI authority must not contain a literal backslash.",i=!0;let p=e.match(bC);if(p!==null){let f=p[1],m=f.replace(/[\t\n\r]/g,"");if(m.length>=2){if(m.slice(0,2)!=="//")n.error=n.error||"URI authority must not contain a literal backslash.",i=!0;else if(f.length!==m.length)n.error=n.error||"URI authority introducer must not contain whitespace.",i=!0}}let h=e.match(qC);if(h){if(n.scheme=h[1],n.userinfo=h[3],n.host=h[4],n.port=parseInt(h[5],10),n.path=h[6]||"",n.query=h[7],n.fragment=h[8],n.scheme!==void 0){let y=unescape(n.scheme);if(Ac.test(y))n.scheme=y.toLowerCase();else n.error=n.error||"URI scheme is malformed.",l=!0}if(a=CC(h),a)n.error=n.error||"URI contains malformed percent-encoding.";if(isNaN(n.port))n.port=h[5];let f=AC(n,h);if(f!==void 0)n.error=n.error||f,i=!0;if(n.host)if(wc(n.host)===!1){let I=Os(n.host),w=n.host.indexOf("[")!==-1||n.host.indexOf("]")!==-1,q=qc(n.host);if(d=q.isIPV6||q.isIPVFuture===!0,u=w&&(!I||q.error===!0),n.host=d?q.host:q.host.toLowerCase(),u)n.error=n.error||"URI host is malformed.",i=!0}else d=!0;if(n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path)n.reference="same-document";else if(n.scheme===void 0)n.reference="relative";else if(n.fragment===void 0)n.reference="absolute";else n.reference="uri";if(t.reference&&t.reference!=="suffix"&&t.reference!==n.reference)n.error=n.error||"URI is not a "+t.reference+" reference.";let m=Xs(t.scheme||n.scheme);if(!u)o=kc(n,t,m,d);if(e.indexOf("%")!==-1&&n.host!==void 0&&!u){let y=d?n.host:Ss(n.host,!0);if(!d)y=Ss(y.toLowerCase());n.host=fC(y,d)}if(!m||m&&!m.skipNormalize){if(n.path)n.path=cC(n.path);if(n.query)n.query=yc(n.query);if(n.fragment)n.fragment=yc(n.fragment)}if(m&&m.parse){if(m.parse(n,t),m===bc.urn&&n.nid===void 0)s=!0}}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:i,malformedPercentEncoding:a,malformedSchemeSpecific:s,malformedHost:o,malformedScheme:l}}function fi(e,r){return pi(e,r).parsed}function kC(e,r){return Rc(e,r).normalized}function Rc(e,r){let{parsed:t,malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:o}=pi(e,r);return{normalized:n||i||a||s||o?e:zr(t,r),malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:o}}function gc(e,r){if(typeof e!=="string"&&typeof e!=="object")return;let t;try{t=typeof e==="string"?e:zr(e,r)}catch{return}let{normalized:n,malformedAuthorityOrPort:i,malformedPercentEncoding:a,malformedSchemeSpecific:s,malformedHost:o,malformedScheme:u}=Rc(t,r);return i||a||s||o||u?void 0:n}var zs={SCHEMES:bc,normalize:yC,resolve:IC,resolveComponent:Cc,equal:gC,serialize:zr,parse:fi};hi.exports=zs;hi.exports.default=zs;hi.exports.fastUri=zs});var Sc=g(($c)=>{Object.defineProperty($c,"__esModule",{value:!0});var vc=Lc();vc.code='require("ajv/dist/runtime/uri").default';$c.default=vc});var Ps=g((_e)=>{Object.defineProperty(_e,"__esModule",{value:!0});_e.CodeGen=_e.Name=_e.nil=_e.stringify=_e.str=_e._=_e.KeywordCxt=void 0;var LC=it();Object.defineProperty(_e,"KeywordCxt",{enumerable:!0,get:function(){return LC.KeywordCxt}});var st=z();Object.defineProperty(_e,"_",{enumerable:!0,get:function(){return st._}});Object.defineProperty(_e,"str",{enumerable:!0,get:function(){return st.str}});Object.defineProperty(_e,"stringify",{enumerable:!0,get:function(){return st.stringify}});Object.defineProperty(_e,"nil",{enumerable:!0,get:function(){return st.nil}});Object.defineProperty(_e,"Name",{enumerable:!0,get:function(){return st.Name}});Object.defineProperty(_e,"CodeGen",{enumerable:!0,get:function(){return st.CodeGen}});var vC=Ut(),jc=at(),$C=is(),Yt=Ft(),SC=z(),Zt=Et(),yi=Dt(),js=j(),Xc=tc(),XC=Sc(),Pc=(e,r)=>new RegExp(e,r);Pc.code="new RegExp";var OC=["removeAdditional","useDefaults","coerceTypes"],zC=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),WC={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},jC={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Oc=200;function PC(e){var r,t,n,i,a,s,o,u,l,d,c,p,h,f,m,y,I,w,q,v,k,G,b,P,A;let X=e.strict,F=(r=e.code)===null||r===void 0?void 0:r.optimize,te=F===!0||F===void 0?1:F||0,$n=(n=(t=e.code)===null||t===void 0?void 0:t.regExp)!==null&&n!==void 0?n:Pc,ry=(i=e.uriResolver)!==null&&i!==void 0?i:XC.default;return{strictSchema:(s=(a=e.strictSchema)!==null&&a!==void 0?a:X)!==null&&s!==void 0?s:!0,strictNumbers:(u=(o=e.strictNumbers)!==null&&o!==void 0?o:X)!==null&&u!==void 0?u:!0,strictTypes:(d=(l=e.strictTypes)!==null&&l!==void 0?l:X)!==null&&d!==void 0?d:"log",strictTuples:(p=(c=e.strictTuples)!==null&&c!==void 0?c:X)!==null&&p!==void 0?p:"log",strictRequired:(f=(h=e.strictRequired)!==null&&h!==void 0?h:X)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:te,regExp:$n}:{optimize:te,regExp:$n},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:Oc,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:Oc,meta:(I=e.meta)!==null&&I!==void 0?I:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(q=e.inlineRefs)!==null&&q!==void 0?q:!0,schemaId:(v=e.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(k=e.addUsedSchema)!==null&&k!==void 0?k:!0,validateSchema:(G=e.validateSchema)!==null&&G!==void 0?G:!0,validateFormats:(b=e.validateFormats)!==null&&b!==void 0?b:!0,unicodeRegExp:(P=e.unicodeRegExp)!==null&&P!==void 0?P:!0,int32range:(A=e.int32range)!==null&&A!==void 0?A:!0,uriResolver:ry}}class Ii{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...PC(e)};let{es5:r,lines:t}=this.opts.code;this.scope=new SC.ValueScope({scope:{},prefixes:zC,es5:r,lines:t}),this.logger=MC(e.logger);let n=e.validateFormats;if(e.validateFormats=!1,this.RULES=(0,$C.getRules)(),zc.call(this,WC,e,"NOT SUPPORTED"),zc.call(this,jC,e,"DEPRECATED","warn"),this._metaOpts=DC.call(this),e.formats)VC.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords)NC.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);TC.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:t}=this.opts,n=Xc;if(t==="id")n={...Xc},n.id=n.$id,delete n.$id;if(r&&e)this.addMetaSchema(n,n[t],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let t;if(typeof e=="string"){if(t=this.getSchema(e),!t)throw Error(`no schema with key or ref "${e}"`)}else t=this.compile(e);let n=t(r);if(!("$async"in t))this.errors=t.errors;return n}compile(e,r){let t=this._addSchema(e,r);return t.validate||this._compileSchemaEnv(t)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:t}=this.opts;return n.call(this,e,r);async function n(l,d){await i.call(this,l.$schema);let c=this._addSchema(l,d);return c.validate||a.call(this,c)}async function i(l){if(l&&!this.getSchema(l))await n.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof jc.default))throw d;return s.call(this,d),await o.call(this,d.missingSchema),a.call(this,l)}}function s({missingSchema:l,missingRef:d}){if(this.refs[l])throw Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function o(l){let d=await u.call(this,l);if(!this.refs[l])await i.call(this,d.$schema);if(!this.refs[l])this.addSchema(d,l,r)}async function u(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=t(l))}finally{delete this._loading[l]}}}addSchema(e,r,t,n=this.opts.validateSchema){if(Array.isArray(e)){for(let a of e)this.addSchema(a,void 0,t,n);return this}let i;if(typeof e==="object"){let{schemaId:a}=this.opts;if(i=e[a],i!==void 0&&typeof i!="string")throw Error(`schema ${a} must be string`)}return r=(0,Zt.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(e,t,r,n,!0),this}addMetaSchema(e,r,t=this.opts.validateSchema){return this.addSchema(e,r,!0,t),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let t;if(t=e.$schema,t!==void 0&&typeof t!="string")throw Error("$schema must be a string");if(t=t||this.opts.defaultMeta||this.defaultMeta(),!t)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(t,e);if(!n&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw Error(i)}return n}getSchema(e){let r;while(typeof(r=Wc.call(this,e))=="string")e=r;if(r===void 0){let{schemaId:t}=this.opts,n=new Yt.SchemaEnv({schema:{},schemaId:t});if(r=Yt.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Wc.call(this,e);if(typeof r=="object")this._cache.delete(r.schema);return delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let t=e[this.opts.schemaId];if(t)t=(0,Zt.normalizeId)(t),delete this.schemas[t],delete this.refs[t];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let t;if(typeof e=="string"){if(t=e,typeof r=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=t}else if(typeof e=="object"&&r===void 0){if(r=e,t=r.keyword,Array.isArray(t)&&!t.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(UC.call(this,t,r),!r)return(0,js.eachItem)(t,(i)=>Ws.call(this,i)),this;FC.call(this,r);let n={...r,type:(0,yi.getJSONTypes)(r.type),schemaType:(0,yi.getJSONTypes)(r.schemaType)};return(0,js.eachItem)(t,n.type.length===0?(i)=>Ws.call(this,i,n):(i)=>n.type.forEach((a)=>Ws.call(this,i,n,a))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let t of r.rules){let n=t.rules.findIndex((i)=>i.keyword===e);if(n>=0)t.rules.splice(n,1)}return this}addFormat(e,r){if(typeof r=="string")r=new RegExp(r);return this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:t="data"}={}){if(!e||e.length===0)return"No errors";return e.map((n)=>`${t}${n.instancePath} ${n.message}`).reduce((n,i)=>n+r+i)}$dataMetaSchema(e,r){let t=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let n of r){let i=n.split("/").slice(1),a=e;for(let s of i)a=a[s];for(let s in t){let o=t[s];if(typeof o!="object")continue;let{$data:u}=o.definition,l=a[s];if(u&&l)a[s]=Tc(l)}}return e}_removeAllSchemas(e,r){for(let t in e){let n=e[t];if(!r||r.test(t)){if(typeof n=="string")delete e[t];else if(n&&!n.meta)this._cache.delete(n.schema),delete e[t]}}}_addSchema(e,r,t,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof e=="object")a=e[s];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof e!="boolean")throw Error("schema must be object or boolean");let o=this._cache.get(e);if(o!==void 0)return o;t=(0,Zt.normalizeId)(a||t);let u=Zt.getSchemaRefs.call(this,e,t);if(o=new Yt.SchemaEnv({schema:e,schemaId:s,meta:r,baseId:t,localRefs:u}),this._cache.set(o.schema,o),i&&!t.startsWith("#")){if(t)this._checkUnique(t);this.refs[t]=o}if(n)this.validateSchema(e,!0);return o}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else Yt.compileSchema.call(this,e);if(!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Yt.compileSchema.call(this,e)}finally{this.opts=r}}}Ii.ValidationError=vC.default;Ii.MissingRefError=jc.default;_e.default=Ii;function zc(e,r,t,n="error"){for(let i in e){let a=i;if(a in r)this.logger[n](`${t}: option ${i}. ${e[a]}`)}}function Wc(e){return e=(0,Zt.normalizeId)(e),this.schemas[e]||this.refs[e]}function TC(){let e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(let r in e)this.addSchema(e[r],r)}function VC(){for(let e in this.opts.formats){let r=this.opts.formats[e];if(r)this.addFormat(e,r)}}function NC(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let r in e){let t=e[r];if(!t.keyword)t.keyword=r;this.addKeyword(t)}}function DC(){let e={...this.opts};for(let r of OC)delete e[r];return e}var EC={log(){},warn(){},error(){}};function MC(e){if(e===!1)return EC;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}var GC=/^[a-z_$][a-z0-9_$:-]*$/i;function UC(e,r){let{RULES:t}=this;if((0,js.eachItem)(e,(n)=>{if(t.keywords[n])throw Error(`Keyword ${n} is already defined`);if(!GC.test(n))throw Error(`Keyword ${n} has invalid name`)}),!r)return;if(r.$data&&!(("code"in r)||("validate"in r)))throw Error('$data keyword must have "code" or "validate" function')}function Ws(e,r,t){var n;let i=r===null||r===void 0?void 0:r.post;if(t&&i)throw Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,s=i?a.post:a.rules.find(({type:u})=>u===t);if(!s)s={type:t,rules:[]},a.rules.push(s);if(a.keywords[e]=!0,!r)return;let o={keyword:e,definition:{...r,type:(0,yi.getJSONTypes)(r.type),schemaType:(0,yi.getJSONTypes)(r.schemaType)}};if(r.before)JC.call(this,s,o,r.before);else s.rules.push(o);a.all[e]=o,(n=r.implements)===null||n===void 0||n.forEach((u)=>this.addKeyword(u))}function JC(e,r,t){let n=e.rules.findIndex((i)=>i.keyword===t);if(n>=0)e.rules.splice(n,0,r);else e.rules.push(r),this.logger.warn(`rule ${t} is not defined`)}function FC(e){let{metaSchema:r}=e;if(r===void 0)return;if(e.$data&&this.opts.$data)r=Tc(r);e.validateSchema=this.compile(r,!0)}var KC={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Tc(e){return{anyOf:[e,KC]}}});var Nc=g((Vc)=>{Object.defineProperty(Vc,"__esModule",{value:!0});var ZC={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vc.default=ZC});var wi=g((Gc)=>{Object.defineProperty(Gc,"__esModule",{value:!0});Gc.callRef=Gc.getValidate=void 0;var HC=at(),Dc=Re(),ce=z(),ot=ke(),Ec=Ft(),gi=j(),xC={keyword:"$ref",schemaType:"string",code(e){let{gen:r,schema:t,it:n}=e,{baseId:i,schemaEnv:a,validateName:s,opts:o,self:u}=n,{root:l}=a;if((t==="#"||t==="#/")&&i===l.baseId)return c();let d=Ec.resolveRef.call(u,l,i,t);if(d===void 0)throw new HC.default(n.opts.uriResolver,i,t);if(d instanceof Ec.SchemaEnv)return p(d);return h(d);function c(){if(a===l)return qi(e,s,a,a.$async);let f=r.scopeValue("root",{ref:l});return qi(e,ce._`${f}.validate`,l,l.$async)}function p(f){let m=Mc(e,f);qi(e,m,f,f.$async)}function h(f){let m=r.scopeValue("schema",o.code.source===!0?{ref:f,code:(0,ce.stringify)(f)}:{ref:f}),y=r.name("valid"),I=e.subschema({schema:f,dataTypes:[],schemaPath:ce.nil,topSchemaRef:m,errSchemaPath:t},y);e.mergeEvaluated(I),e.ok(y)}}};function Mc(e,r){let{gen:t}=e;return r.validate?t.scopeValue("validate",{ref:r.validate}):ce._`${t.scopeValue("wrapper",{ref:r})}.validate`}Gc.getValidate=Mc;function qi(e,r,t,n){let{gen:i,it:a}=e,{allErrors:s,schemaEnv:o,opts:u}=a,l=u.passContext?ot.default.this:ce.nil;if(n)d();else c();function d(){if(!o.$async)throw Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{if(i.code(ce._`await ${(0,Dc.callValidateCode)(e,r,l)}`),h(r),!s)i.assign(f,!0)},(m)=>{if(i.if(ce._`!(${m} instanceof ${a.ValidationError})`,()=>i.throw(m)),p(m),!s)i.assign(f,!1)}),e.ok(f)}function c(){e.result((0,Dc.callValidateCode)(e,r,l),()=>h(r),()=>p(r))}function p(f){let m=ce._`${f}.errors`;i.assign(ot.default.vErrors,ce._`${ot.default.vErrors} === null ? ${m} : ${ot.default.vErrors}.concat(${m})`),i.assign(ot.default.errors,ce._`${ot.default.vErrors}.length`)}function h(f){var m;if(!a.opts.unevaluated)return;let y=(m=t===null||t===void 0?void 0:t.validate)===null||m===void 0?void 0:m.evaluated;if(a.props!==!0)if(y&&!y.dynamicProps){if(y.props!==void 0)a.props=gi.mergeEvaluated.props(i,y.props,a.props)}else{let I=i.var("props",ce._`${f}.evaluated.props`);a.props=gi.mergeEvaluated.props(i,I,a.props,ce.Name)}if(a.items!==!0)if(y&&!y.dynamicItems){if(y.items!==void 0)a.items=gi.mergeEvaluated.items(i,y.items,a.items)}else{let I=i.var("items",ce._`${f}.evaluated.items`);a.items=gi.mergeEvaluated.items(i,I,a.items,ce.Name)}}}Gc.callRef=qi;Gc.default=xC});var Ts=g((Jc)=>{Object.defineProperty(Jc,"__esModule",{value:!0});var rk=Nc(),tk=wi(),nk=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rk.default,tk.default];Jc.default=nk});var Kc=g((Fc)=>{Object.defineProperty(Fc,"__esModule",{value:!0});var bi=z(),cr=bi.operators,Ai={maximum:{okStr:"<=",ok:cr.LTE,fail:cr.GT},minimum:{okStr:">=",ok:cr.GTE,fail:cr.LT},exclusiveMaximum:{okStr:"<",ok:cr.LT,fail:cr.GTE},exclusiveMinimum:{okStr:">",ok:cr.GT,fail:cr.LTE}},ak={message:({keyword:e,schemaCode:r})=>bi.str`must be ${Ai[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>bi._`{comparison: ${Ai[e].okStr}, limit: ${r}}`},sk={keyword:Object.keys(Ai),type:"number",schemaType:"number",$data:!0,error:ak,code(e){let{keyword:r,data:t,schemaCode:n}=e;e.fail$data(bi._`${t} ${Ai[r].fail} ${n} || isNaN(${t})`)}};Fc.default=sk});var Yc=g((Bc)=>{Object.defineProperty(Bc,"__esModule",{value:!0});var Qt=z(),uk={message:({schemaCode:e})=>Qt.str`must be multiple of ${e}`,params:({schemaCode:e})=>Qt._`{multipleOf: ${e}}`},lk={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:uk,code(e){let{gen:r,data:t,schemaCode:n,it:i}=e,a=i.opts.multipleOfPrecision,s=r.let("res"),o=a?Qt._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:Qt._`${s} !== parseInt(${s})`;e.fail$data(Qt._`(${n} === 0 || (${s} = ${t}/${n}, ${o}))`)}};Bc.default=lk});var Hc=g((Qc)=>{Object.defineProperty(Qc,"__esModule",{value:!0});function Zc(e){let r=e.length,t=0,n=0,i;while(n<r)if(t++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<r){if(i=e.charCodeAt(n),(i&64512)===56320)n++}return t}Qc.default=Zc;Zc.code='require("ajv/dist/runtime/ucs2length").default'});var _c=g((xc)=>{Object.defineProperty(xc,"__esModule",{value:!0});var Wr=z(),mk=j(),pk=Hc(),fk={message({keyword:e,schemaCode:r}){let t=e==="maxLength"?"more":"fewer";return Wr.str`must NOT have ${t} than ${r} characters`},params:({schemaCode:e})=>Wr._`{limit: ${e}}`},hk={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:fk,code(e){let{keyword:r,data:t,schemaCode:n,it:i}=e,a=r==="maxLength"?Wr.operators.GT:Wr.operators.LT,s=i.opts.unicode===!1?Wr._`${t}.length`:Wr._`${(0,mk.useFunc)(e.gen,pk.default)}(${t})`;e.fail$data(Wr._`${s} ${a} ${n}`)}};xc.default=hk});var rm=g((em)=>{Object.defineProperty(em,"__esModule",{value:!0});var Ik=Re(),gk=j(),ut=z(),qk={message:({schemaCode:e})=>ut.str`must match pattern "${e}"`,params:({schemaCode:e})=>ut._`{pattern: ${e}}`},wk={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:qk,code(e){let{gen:r,data:t,$data:n,schema:i,schemaCode:a,it:s}=e,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:u}=s.opts.code,l=u.code==="new RegExp"?ut._`new RegExp`:(0,gk.useFunc)(r,u),d=r.let("valid");r.try(()=>r.assign(d,ut._`${l}(${a}, ${o}).test(${t})`),()=>r.assign(d,!1)),e.fail$data(ut._`!${d}`)}else{let u=(0,Ik.usePattern)(e,i);e.fail$data(ut._`!${u}.test(${t})`)}}};em.default=wk});var nm=g((tm)=>{Object.defineProperty(tm,"__esModule",{value:!0});var Ht=z(),Ak={message({keyword:e,schemaCode:r}){let t=e==="maxProperties"?"more":"fewer";return Ht.str`must NOT have ${t} than ${r} properties`},params:({schemaCode:e})=>Ht._`{limit: ${e}}`},Ck={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Ak,code(e){let{keyword:r,data:t,schemaCode:n}=e,i=r==="maxProperties"?Ht.operators.GT:Ht.operators.LT;e.fail$data(Ht._`Object.keys(${t}).length ${i} ${n}`)}};tm.default=Ck});var am=g((im)=>{Object.defineProperty(im,"__esModule",{value:!0});var xt=Re(),_t=z(),Rk=j(),Lk={message:({params:{missingProperty:e}})=>_t.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>_t._`{missingProperty: ${e}}`},vk={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Lk,code(e){let{gen:r,schema:t,schemaCode:n,data:i,$data:a,it:s}=e,{opts:o}=s;if(!a&&t.length===0)return;let u=t.length>=o.loopRequired;if(s.allErrors)l();else d();if(o.strictRequired){let h=e.parentSchema.properties,{definedProperties:f}=e.it;for(let m of t)if((h===null||h===void 0?void 0:h[m])===void 0&&!f.has(m)){let y=s.schemaEnv.baseId+s.errSchemaPath,I=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,Rk.checkStrictMode)(s,I,s.opts.strictRequired)}}function l(){if(u||a)e.block$data(_t.nil,c);else for(let h of t)(0,xt.checkReportMissingProp)(e,h)}function d(){let h=r.let("missing");if(u||a){let f=r.let("valid",!0);e.block$data(f,()=>p(h,f)),e.ok(f)}else r.if((0,xt.checkMissingProp)(e,t,h)),(0,xt.reportMissingProp)(e,h),r.else()}function c(){r.forOf("prop",n,(h)=>{e.setParams({missingProperty:h}),r.if((0,xt.noPropertyInData)(r,i,h,o.ownProperties),()=>e.error())})}function p(h,f){e.setParams({missingProperty:h}),r.forOf(h,n,()=>{r.assign(f,(0,xt.propertyInData)(r,i,h,o.ownProperties)),r.if((0,_t.not)(f),()=>{e.error(),r.break()})},_t.nil)}}};im.default=vk});var om=g((sm)=>{Object.defineProperty(sm,"__esModule",{value:!0});var en=z(),Sk={message({keyword:e,schemaCode:r}){let t=e==="maxItems"?"more":"fewer";return en.str`must NOT have ${t} than ${r} items`},params:({schemaCode:e})=>en._`{limit: ${e}}`},Xk={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Sk,code(e){let{keyword:r,data:t,schemaCode:n}=e,i=r==="maxItems"?en.operators.GT:en.operators.LT;e.fail$data(en._`${t}.length ${i} ${n}`)}};sm.default=Xk});var Ci=g((lm)=>{Object.defineProperty(lm,"__esModule",{value:!0});var um=ms();um.code='require("ajv/dist/runtime/equal").default';lm.default=um});var cm=g((dm)=>{Object.defineProperty(dm,"__esModule",{value:!0});var Vs=Dt(),Q=z(),Wk=j(),jk=Ci(),Pk={message:({params:{i:e,j:r}})=>Q.str`must NOT have duplicate items (items ## ${r} and ${e} are identical)`,params:({params:{i:e,j:r}})=>Q._`{i: ${e}, j: ${r}}`},Tk={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Pk,code(e){let{gen:r,data:t,$data:n,schema:i,parentSchema:a,schemaCode:s,it:o}=e;if(!n&&!i)return;let u=r.let("valid"),l=a.items?(0,Vs.getSchemaTypes)(a.items):[];e.block$data(u,d,Q._`${s} === false`),e.ok(u);function d(){let f=r.let("i",Q._`${t}.length`),m=r.let("j");e.setParams({i:f,j:m}),r.assign(u,!0),r.if(Q._`${f} > 1`,()=>(c()?p:h)(f,m))}function c(){return l.length>0&&!l.some((f)=>f==="object"||f==="array")}function p(f,m){let y=r.name("item"),I=(0,Vs.checkDataTypes)(l,y,o.opts.strictNumbers,Vs.DataType.Wrong),w=r.const("indices",Q._`{}`);r.for(Q._`;${f}--;`,()=>{if(r.let(y,Q._`${t}[${f}]`),r.if(I,Q._`continue`),l.length>1)r.if(Q._`typeof ${y} == "string"`,Q._`${y} += "_"`);r.if(Q._`typeof ${w}[${y}] == "number"`,()=>{r.assign(m,Q._`${w}[${y}]`),e.error(),r.assign(u,!1).break()}).code(Q._`${w}[${y}] = ${f}`)})}function h(f,m){let y=(0,Wk.useFunc)(r,jk.default),I=r.name("outer");r.label(I).for(Q._`;${f}--;`,()=>r.for(Q._`${m} = ${f}; ${m}--;`,()=>r.if(Q._`${y}(${t}[${f}], ${t}[${m}])`,()=>{e.error(),r.assign(u,!1).break(I)})))}}};dm.default=Tk});var pm=g((mm)=>{Object.defineProperty(mm,"__esModule",{value:!0});var Ns=z(),Nk=j(),Dk=Ci(),Ek={message:"must be equal to constant",params:({schemaCode:e})=>Ns._`{allowedValue: ${e}}`},Mk={keyword:"const",$data:!0,error:Ek,code(e){let{gen:r,data:t,$data:n,schemaCode:i,schema:a}=e;if(n||a&&typeof a=="object")e.fail$data(Ns._`!${(0,Nk.useFunc)(r,Dk.default)}(${t}, ${i})`);else e.fail(Ns._`${a} !== ${t}`)}};mm.default=Mk});var hm=g((fm)=>{Object.defineProperty(fm,"__esModule",{value:!0});var rn=z(),Uk=j(),Jk=Ci(),Fk={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>rn._`{allowedValues: ${e}}`},Kk={keyword:"enum",schemaType:"array",$data:!0,error:Fk,code(e){let{gen:r,data:t,$data:n,schema:i,schemaCode:a,it:s}=e;if(!n&&i.length===0)throw Error("enum must have non-empty array");let o=i.length>=s.opts.loopEnum,u,l=()=>u!==null&&u!==void 0?u:u=(0,Uk.useFunc)(r,Jk.default),d;if(o||n)d=r.let("valid"),e.block$data(d,c);else{if(!Array.isArray(i))throw Error("ajv implementation error");let h=r.const("vSchema",a);d=(0,rn.or)(...i.map((f,m)=>p(h,m)))}e.pass(d);function c(){r.assign(d,!1),r.forOf("v",a,(h)=>r.if(rn._`${l()}(${t}, ${h})`,()=>r.assign(d,!0).break()))}function p(h,f){let m=i[f];return typeof m==="object"&&m!==null?rn._`${l()}(${t}, ${h}[${f}])`:rn._`${t} === ${m}`}}};fm.default=Kk});var Ds=g((ym)=>{Object.defineProperty(ym,"__esModule",{value:!0});var Yk=Kc(),Zk=Yc(),Qk=_c(),Hk=rm(),xk=nm(),_k=am(),e0=om(),r0=cm(),t0=pm(),n0=hm(),i0=[Yk.default,Zk.default,Qk.default,Hk.default,xk.default,_k.default,e0.default,r0.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},t0.default,n0.default];ym.default=i0});var Ms=g((gm)=>{Object.defineProperty(gm,"__esModule",{value:!0});gm.validateAdditionalItems=void 0;var jr=z(),Es=j(),s0={message:({params:{len:e}})=>jr.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>jr._`{limit: ${e}}`},o0={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:s0,code(e){let{parentSchema:r,it:t}=e,{items:n}=r;if(!Array.isArray(n)){(0,Es.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}Im(e,n)}};function Im(e,r){let{gen:t,schema:n,data:i,keyword:a,it:s}=e;s.items=!0;let o=t.const("len",jr._`${i}.length`);if(n===!1)e.setParams({len:r.length}),e.pass(jr._`${o} <= ${r.length}`);else if(typeof n=="object"&&!(0,Es.alwaysValidSchema)(s,n)){let l=t.var("valid",jr._`${o} <= ${r.length}`);t.if((0,jr.not)(l),()=>u(l)),e.ok(l)}function u(l){t.forRange("i",r.length,o,(d)=>{if(e.subschema({keyword:a,dataProp:d,dataPropType:Es.Type.Num},l),!s.allErrors)t.if((0,jr.not)(l),()=>t.break())})}}gm.validateAdditionalItems=Im;gm.default=o0});var Gs=g((Am)=>{Object.defineProperty(Am,"__esModule",{value:!0});Am.validateTuple=void 0;var wm=z(),ki=j(),l0=Re(),d0={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:r,it:t}=e;if(Array.isArray(r))return bm(e,"additionalItems",r);if(t.items=!0,(0,ki.alwaysValidSchema)(t,r))return;e.ok((0,l0.validateArray)(e))}};function bm(e,r,t=e.schema){let{gen:n,parentSchema:i,data:a,keyword:s,it:o}=e;if(d(i),o.opts.unevaluated&&t.length&&o.items!==!0)o.items=ki.mergeEvaluated.items(n,t.length,o.items);let u=n.name("valid"),l=n.const("len",wm._`${a}.length`);t.forEach((c,p)=>{if((0,ki.alwaysValidSchema)(o,c))return;n.if(wm._`${l} > ${p}`,()=>e.subschema({keyword:s,schemaProp:p,dataProp:p},u)),e.ok(u)});function d(c){let{opts:p,errSchemaPath:h}=o,f=t.length,m=f===c.minItems&&(f===c.maxItems||c[r]===!1);if(p.strictTuples&&!m){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${r} are not specified or different at path "${h}"`;(0,ki.checkStrictMode)(o,y,p.strictTuples)}}}Am.validateTuple=bm;Am.default=d0});var Rm=g((km)=>{Object.defineProperty(km,"__esModule",{value:!0});var m0=Gs(),p0={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(e)=>(0,m0.validateTuple)(e,"items")};km.default=p0});var $m=g((vm)=>{Object.defineProperty(vm,"__esModule",{value:!0});var Lm=z(),h0=j(),y0=Re(),I0=Ms(),g0={message:({params:{len:e}})=>Lm.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Lm._`{limit: ${e}}`},q0={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:g0,code(e){let{schema:r,parentSchema:t,it:n}=e,{prefixItems:i}=t;if(n.items=!0,(0,h0.alwaysValidSchema)(n,r))return;if(i)(0,I0.validateAdditionalItems)(e,i);else e.ok((0,y0.validateArray)(e))}};vm.default=q0});var Xm=g((Sm)=>{Object.defineProperty(Sm,"__esModule",{value:!0});var Le=z(),Ri=j(),b0={message:({params:{min:e,max:r}})=>r===void 0?Le.str`must contain at least ${e} valid item(s)`:Le.str`must contain at least ${e} and no more than ${r} valid item(s)`,params:({params:{min:e,max:r}})=>r===void 0?Le._`{minContains: ${e}}`:Le._`{minContains: ${e}, maxContains: ${r}}`},A0={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:b0,code(e){let{gen:r,schema:t,parentSchema:n,data:i,it:a}=e,s,o,{minContains:u,maxContains:l}=n;if(a.opts.next)s=u===void 0?1:u,o=l;else s=1;let d=r.const("len",Le._`${i}.length`);if(e.setParams({min:s,max:o}),o===void 0&&s===0){(0,Ri.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,Ri.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ri.alwaysValidSchema)(a,t)){let m=Le._`${d} >= ${s}`;if(o!==void 0)m=Le._`${m} && ${d} <= ${o}`;e.pass(m);return}a.items=!0;let c=r.name("valid");if(o===void 0&&s===1)h(c,()=>r.if(c,()=>r.break()));else if(s===0){if(r.let(c,!0),o!==void 0)r.if(Le._`${i}.length > 0`,p)}else r.let(c,!1),p();e.result(c,()=>e.reset());function p(){let m=r.name("_valid"),y=r.let("count",0);h(m,()=>r.if(m,()=>f(y)))}function h(m,y){r.forRange("i",0,d,(I)=>{e.subschema({keyword:"contains",dataProp:I,dataPropType:Ri.Type.Num,compositeRule:!0},m),y()})}function f(m){if(r.code(Le._`${m}++`),o===void 0)r.if(Le._`${m} >= ${s}`,()=>r.assign(c,!0).break());else if(r.if(Le._`${m} > ${o}`,()=>r.assign(c,!1).break()),s===1)r.assign(c,!0);else r.if(Le._`${m} >= ${s}`,()=>r.assign(c,!0))}}};Sm.default=A0});var Li=g((Wm)=>{Object.defineProperty(Wm,"__esModule",{value:!0});Wm.validateSchemaDeps=Wm.validatePropertyDeps=Wm.error=void 0;var Us=z(),k0=j(),tn=Re();Wm.error={message:({params:{property:e,depsCount:r,deps:t}})=>{let n=r===1?"property":"properties";return Us.str`must have ${n} ${t} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:t,missingProperty:n}})=>Us._`{property: ${e},
|
|
32
32
|
missingProperty: ${n},
|
|
33
|
-
depsCount: ${
|
|
34
|
-
deps: ${r}}`};var e0={keyword:"dependencies",type:"object",schemaType:"object",error:hm.error,code(e){let[t,r]=t0(e);pm(e,t),fm(e,r)}};function t0({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function pm(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let a=r.let("missing");for(let s in t){let o=t[s];if(o.length===0)continue;let u=(0,xr.propertyInData)(r,n,s,i.opts.ownProperties);if(e.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),i.allErrors)r.if(u,()=>{for(let l of o)(0,xr.checkReportMissingProp)(e,l)});else r.if(Ws._`${u} && (${(0,xr.checkMissingProp)(e,o,a)})`),(0,xr.reportMissingProp)(e,a),r.else()}}hm.validatePropertyDeps=pm;function fm(e,t=e.schema){let{gen:r,data:n,keyword:i,it:a}=e,s=r.name("valid");for(let o in t){if((0,_k.alwaysValidSchema)(a,t[o]))continue;r.if((0,xr.propertyInData)(r,n,o,a.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:o},s);e.mergeValidEvaluated(u,s)},()=>r.var(s,!0)),e.ok(s)}}hm.validateSchemaDeps=fm;hm.default=e0});var wm=g((qm)=>{Object.defineProperty(qm,"__esModule",{value:!0});var gm=z(),i0=j(),a0={message:"property name must be valid",params:({params:e})=>gm._`{propertyName: ${e.propertyName}}`},s0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:a0,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,i0.alwaysValidSchema)(i,r))return;let a=t.name("valid");t.forIn("key",n,(s)=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},a),t.if((0,gm.not)(a),()=>{if(e.error(!0),!i.allErrors)t.break()})}),e.ok(a)}};qm.default=s0});var js=g((bm)=>{Object.defineProperty(bm,"__esModule",{value:!0});var Ci=Ce(),Ve=z(),u0=Ae(),ki=j(),l0={message:"must NOT have additional properties",params:({params:e})=>Ve._`{additionalProperty: ${e.additionalProperty}}`},d0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:l0,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:a,it:s}=e;if(!a)throw Error("ajv implementation error");let{allErrors:o,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,ki.alwaysValidSchema)(s,r))return;let l=(0,Ci.allSchemaProperties)(n.properties),d=(0,Ci.allSchemaProperties)(n.patternProperties);c(),e.ok(Ve._`${a} === ${u0.default.errors}`);function c(){t.forIn("key",i,(y)=>{if(!l.length&&!d.length)f(y);else t.if(m(y),()=>f(y))})}function m(y){let I;if(l.length>8){let q=(0,ki.schemaRefOrVal)(s,n.properties,"properties");I=(0,Ci.isOwnProperty)(t,q,y)}else if(l.length)I=(0,Ve.or)(...l.map((q)=>Ve._`${y} === ${q}`));else I=Ve.nil;if(d.length)I=(0,Ve.or)(I,...d.map((q)=>Ve._`${(0,Ci.usePattern)(e,q)}.test(${y})`));return(0,Ve.not)(I)}function h(y){t.code(Ve._`delete ${i}[${y}]`)}function f(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){if(e.setParams({additionalProperty:y}),e.error(),!o)t.break();return}if(typeof r=="object"&&!(0,ki.alwaysValidSchema)(s,r)){let I=t.name("valid");if(u.removeAdditional==="failing")p(y,I,!1),t.if((0,Ve.not)(I),()=>{e.reset(),h(y)});else if(p(y,I),!o)t.if((0,Ve.not)(I),()=>t.break())}}function p(y,I,q){let b={keyword:"additionalProperties",dataProp:y,dataPropType:ki.Type.Str};if(q===!1)Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1});e.subschema(b,I)}}};bm.default=d0});var Rm=g((km)=>{Object.defineProperty(km,"__esModule",{value:!0});var m0=tr(),Am=Ce(),Ps=j(),Cm=js(),p0={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:a}=e;if(a.opts.removeAdditional==="all"&&n.additionalProperties===void 0)Cm.default.code(new m0.KeywordCxt(a,Cm.default,"additionalProperties"));let s=(0,Am.allSchemaProperties)(r);for(let c of s)a.definedProperties.add(c);if(a.opts.unevaluated&&s.length&&a.props!==!0)a.props=Ps.mergeEvaluated.props(t,(0,Ps.toHash)(s),a.props);let o=s.filter((c)=>!(0,Ps.alwaysValidSchema)(a,r[c]));if(o.length===0)return;let u=t.name("valid");for(let c of o){if(l(c))d(c);else{if(t.if((0,Am.propertyInData)(t,i,c,a.opts.ownProperties)),d(c),!a.allErrors)t.else().var(u,!0);t.endIf()}e.it.definedProperties.add(c),e.ok(u)}function l(c){return a.opts.useDefaults&&!a.compositeRule&&r[c].default!==void 0}function d(c){e.subschema({keyword:"properties",schemaProp:c,dataProp:c},u)}}};km.default=p0});var Xm=g((Sm)=>{Object.defineProperty(Sm,"__esModule",{value:!0});var Lm=Ce(),Ri=z(),vm=j(),$m=j(),h0={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:a}=e,{opts:s}=a,o=(0,Lm.allSchemaProperties)(r),u=o.filter((p)=>(0,vm.alwaysValidSchema)(a,r[p]));if(o.length===0||u.length===o.length&&(!a.opts.unevaluated||a.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,d=t.name("valid");if(a.props!==!0&&!(a.props instanceof Ri.Name))a.props=(0,$m.evaluatedPropsToName)(t,a.props);let{props:c}=a;m();function m(){for(let p of o){if(l)h(p);if(a.allErrors)f(p);else t.var(d,!0),f(p),t.if(d)}}function h(p){for(let y in l)if(new RegExp(p).test(y))(0,vm.checkStrictMode)(a,`property ${y} matches pattern ${p} (use allowMatchingProperties)`)}function f(p){t.forIn("key",n,(y)=>{t.if(Ri._`${(0,Lm.usePattern)(e,p)}.test(${y})`,()=>{let I=u.includes(p);if(!I)e.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:$m.Type.Str},d);if(a.opts.unevaluated&&c!==!0)t.assign(Ri._`${c}[${y}]`,!0);else if(!I&&!a.allErrors)t.if((0,Ri.not)(d),()=>t.break())})})}}};Sm.default=h0});var zm=g((Om)=>{Object.defineProperty(Om,"__esModule",{value:!0});var I0=j(),g0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,I0.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Om.default=g0});var jm=g((Wm)=>{Object.defineProperty(Wm,"__esModule",{value:!0});var w0=Ce(),b0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:w0.validateUnion,error:{message:"must match a schema in anyOf"}};Wm.default=b0});var Tm=g((Pm)=>{Object.defineProperty(Pm,"__esModule",{value:!0});var Li=z(),C0=j(),k0={message:"must match exactly one schema in oneOf",params:({params:e})=>Li._`{passingSchemas: ${e.passing}}`},R0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:k0,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let a=r,s=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){a.forEach((d,c)=>{let m;if((0,C0.alwaysValidSchema)(i,d))t.var(u,!0);else m=e.subschema({keyword:"oneOf",schemaProp:c,compositeRule:!0},u);if(c>0)t.if(Li._`${u} && ${s}`).assign(s,!1).assign(o,Li._`[${o}, ${c}]`).else();t.if(u,()=>{if(t.assign(s,!0),t.assign(o,c),m)e.mergeEvaluated(m,Li.Name)})})}}};Pm.default=R0});var Nm=g((Vm)=>{Object.defineProperty(Vm,"__esModule",{value:!0});var v0=j(),$0={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let i=t.name("valid");r.forEach((a,s)=>{if((0,v0.alwaysValidSchema)(n,a))return;let o=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(o)})}};Vm.default=$0});var Gm=g((Mm)=>{Object.defineProperty(Mm,"__esModule",{value:!0});var vi=z(),Dm=j(),X0={message:({params:e})=>vi.str`must match "${e.ifClause}" schema`,params:({params:e})=>vi._`{failingKeyword: ${e.ifClause}}`},O0={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:X0,code(e){let{gen:t,parentSchema:r,it:n}=e;if(r.then===void 0&&r.else===void 0)(0,Dm.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Em(n,"then"),a=Em(n,"else");if(!i&&!a)return;let s=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),i&&a){let d=t.let("ifClause");e.setParams({ifClause:d}),t.if(o,l("then",d),l("else",d))}else if(i)t.if(o,l("then"));else t.if((0,vi.not)(o),l("else"));e.pass(s,()=>e.error(!0));function u(){let d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(d)}function l(d,c){return()=>{let m=e.subschema({keyword:d},o);if(t.assign(s,o),e.mergeValidEvaluated(m,s),c)t.assign(c,vi._`${d}`);else e.setParams({ifClause:d})}}}};function Em(e,t){let r=e.schema[t];return r!==void 0&&!(0,Dm.alwaysValidSchema)(e,r)}Mm.default=O0});var Jm=g((Um)=>{Object.defineProperty(Um,"__esModule",{value:!0});var W0=j(),j0={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===void 0)(0,W0.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Um.default=j0});var Ts=g((Fm)=>{Object.defineProperty(Fm,"__esModule",{value:!0});var T0=Os(),V0=om(),N0=zs(),E0=dm(),D0=mm(),M0=Ai(),G0=wm(),U0=js(),J0=Rm(),F0=Xm(),B0=zm(),K0=jm(),Y0=Tm(),H0=Nm(),Z0=Gm(),Q0=Jm();function x0(e=!1){let t=[B0.default,K0.default,Y0.default,H0.default,Z0.default,Q0.default,G0.default,U0.default,M0.default,J0.default,F0.default];if(e)t.push(V0.default,E0.default);else t.push(T0.default,N0.default);return t.push(D0.default),t}Fm.default=x0});var Km=g((Bm)=>{Object.defineProperty(Bm,"__esModule",{value:!0});var U=z(),eR={message:({schemaCode:e})=>U.str`must match format "${e}"`,params:({schemaCode:e})=>U._`{format: ${e}}`},tR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:eR,code(e,t){let{gen:r,data:n,$data:i,schema:a,schemaCode:s,it:o}=e,{opts:u,errSchemaPath:l,schemaEnv:d,self:c}=o;if(!u.validateFormats)return;if(i)m();else h();function m(){let f=r.scopeValue("formats",{ref:c.formats,code:u.code.formats}),p=r.const("fDef",U._`${f}[${s}]`),y=r.let("fType"),I=r.let("format");r.if(U._`typeof ${p} == "object" && !(${p} instanceof RegExp)`,()=>r.assign(y,U._`${p}.type || "string"`).assign(I,U._`${p}.validate`),()=>r.assign(y,U._`"string"`).assign(I,p)),e.fail$data((0,U.or)(q(),b()));function q(){if(u.strictSchema===!1)return U.nil;return U._`${s} && !${I}`}function b(){let $=d.$async?U._`(${p}.async ? await ${I}(${n}) : ${I}(${n}))`:U._`${I}(${n})`,k=U._`(typeof ${I} == "function" ? ${$} : ${I}.test(${n}))`;return U._`${I} && ${I} !== true && ${y} === ${t} && !${k}`}}function h(){let f=c.formats[a];if(!f){q();return}if(f===!0)return;let[p,y,I]=b(f);if(p===t)e.pass($());function q(){if(u.strictSchema===!1){c.logger.warn(k());return}throw Error(k());function k(){return`unknown format "${a}" ignored in schema at path "${l}"`}}function b(k){let G=k instanceof RegExp?(0,U.regexpCode)(k):u.code.formats?U._`${u.code.formats}${(0,U.getProperty)(a)}`:void 0,w=r.scopeValue("formats",{key:a,ref:k,code:G});if(typeof k=="object"&&!(k instanceof RegExp))return[k.type||"string",k.validate,U._`${w}.validate`];return["string",k,w]}function $(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!d.$async)throw Error("async format in sync schema");return U._`await ${I}(${n})`}return typeof y=="function"?U._`${I}(${n})`:U._`${I}.test(${n})`}}}};Bm.default=tR});var Vs=g((Ym)=>{Object.defineProperty(Ym,"__esModule",{value:!0});var nR=Km(),iR=[nR.default];Ym.default=iR});var Ns=g((Hm)=>{Object.defineProperty(Hm,"__esModule",{value:!0});Hm.contentVocabulary=Hm.metadataVocabulary=void 0;Hm.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Hm.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var _m=g((xm)=>{Object.defineProperty(xm,"__esModule",{value:!0});var oR=Ls(),uR=Ss(),lR=Ts(),dR=Vs(),Qm=Ns(),cR=[oR.default,uR.default,(0,lR.default)(),dR.default,Qm.metadataVocabulary,Qm.contentVocabulary];xm.default=cR});var np=g((tp)=>{Object.defineProperty(tp,"__esModule",{value:!0});tp.DiscrError=void 0;var ep;(function(e){e.Tag="tag",e.Mapping="mapping"})(ep||(tp.DiscrError=ep={}))});var Ds=g((ap)=>{Object.defineProperty(ap,"__esModule",{value:!0});var sr=z(),Es=np(),ip=Gr(),pR=rr(),fR=j(),hR={message:({params:{discrError:e,tagName:t}})=>e===Es.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>sr._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},yR={keyword:"discriminator",type:"object",schemaType:"object",error:hR,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:a}=e,{oneOf:s}=i;if(!a.opts.discriminator)throw Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw Error("discriminator: requires propertyName");if(n.mapping)throw Error("discriminator: mapping is not supported");if(!s)throw Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",sr._`${r}${(0,sr.getProperty)(o)}`);t.if(sr._`typeof ${l} == "string"`,()=>d(),()=>e.error(!1,{discrError:Es.DiscrError.Tag,tag:l,tagName:o})),e.ok(u);function d(){let h=m();t.if(!1);for(let f in h)t.elseIf(sr._`${l} === ${f}`),t.assign(u,c(h[f]));t.else(),e.error(!1,{discrError:Es.DiscrError.Mapping,tag:l,tagName:o}),t.endIf()}function c(h){let f=t.name("valid"),p=e.subschema({keyword:"oneOf",schemaProp:h},f);return e.mergeEvaluated(p,sr.Name),f}function m(){var h;let f={},p=I(i),y=!0;for(let $=0;$<s.length;$++){let k=s[$];if((k===null||k===void 0?void 0:k.$ref)&&!(0,fR.schemaHasRulesButRef)(k,a.self.RULES)){let w=k.$ref;if(k=ip.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,w),k instanceof ip.SchemaEnv)k=k.schema;if(k===void 0)throw new pR.default(a.opts.uriResolver,a.baseId,w)}let G=(h=k===null||k===void 0?void 0:k.properties)===null||h===void 0?void 0:h[o];if(typeof G!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(p||I(k)),q(G,$)}if(!y)throw Error(`discriminator: "${o}" must be required`);return f;function I({required:$}){return Array.isArray($)&&$.includes(o)}function q($,k){if($.const)b($.const,k);else if($.enum)for(let G of $.enum)b(G,k);else throw Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function b($,k){if(typeof $!="string"||$ in f)throw Error(`discriminator: "${o}" values must be unique strings`);f[$]=k}}}};ap.default=yR});var sp=g((Uz,gR)=>{gR.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var up=g((de,Ms)=>{Object.defineProperty(de,"__esModule",{value:!0});de.MissingRefError=de.ValidationError=de.CodeGen=de.Name=de.nil=de.stringify=de.str=de._=de.KeywordCxt=de.Ajv=void 0;var qR=Rs(),wR=_m(),bR=Ds(),op=sp(),AR=["/properties"],$i="http://json-schema.org/draft-07/schema";class _r extends qR.default{_addVocabularies(){if(super._addVocabularies(),wR.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(bR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(op,AR):op;this.addMetaSchema(e,$i,!1),this.refs["http://json-schema.org/schema"]=$i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($i)?$i:void 0)}}de.Ajv=_r;Ms.exports=de=_r;Ms.exports.Ajv=_r;Object.defineProperty(de,"__esModule",{value:!0});de.default=_r;var CR=tr();Object.defineProperty(de,"KeywordCxt",{enumerable:!0,get:function(){return CR.KeywordCxt}});var or=z();Object.defineProperty(de,"_",{enumerable:!0,get:function(){return or._}});Object.defineProperty(de,"str",{enumerable:!0,get:function(){return or.str}});Object.defineProperty(de,"stringify",{enumerable:!0,get:function(){return or.stringify}});Object.defineProperty(de,"nil",{enumerable:!0,get:function(){return or.nil}});Object.defineProperty(de,"Name",{enumerable:!0,get:function(){return or.Name}});Object.defineProperty(de,"CodeGen",{enumerable:!0,get:function(){return or.CodeGen}});var kR=Dr();Object.defineProperty(de,"ValidationError",{enumerable:!0,get:function(){return kR.default}});var RR=rr();Object.defineProperty(de,"MissingRefError",{enumerable:!0,get:function(){return RR.default}})});var Io=g((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});Af.dynamicAnchor=void 0;var yo=z(),F1=Ae(),wf=Gr(),B1=yi(),K1={keyword:"$dynamicAnchor",schemaType:"string",code:(e)=>bf(e,e.schema)};function bf(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=yo._`${F1.default.dynamicAnchors}${(0,yo.getProperty)(t)}`,a=n.errSchemaPath==="#"?n.validateName:Y1(e);r.if(yo._`!${i}`,()=>r.assign(i,a))}Af.dynamicAnchor=bf;function Y1(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:a,localRefs:s,meta:o}=t.root,{schemaId:u}=n.opts,l=new wf.SchemaEnv({schema:r,schemaId:u,root:i,baseId:a,localRefs:s,meta:o});return wf.compileSchema.call(n,l),(0,B1.getValidate)(e,l)}Af.default=K1});var go=g((vf)=>{Object.defineProperty(vf,"__esModule",{value:!0});vf.dynamicRef=void 0;var kf=z(),Z1=Ae(),Rf=yi(),Q1={keyword:"$dynamicRef",schemaType:"string",code:(e)=>Lf(e,e.schema)};function Lf(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw Error(`"${n}" only supports hash fragment reference`);let a=t.slice(1);if(i.allErrors)s();else{let u=r.let("valid",!1);s(u),e.ok(u)}function s(u){if(i.schemaEnv.root.dynamicAnchors[a]){let l=r.let("_v",kf._`${Z1.default.dynamicAnchors}${(0,kf.getProperty)(a)}`);r.if(l,o(l,u),o(i.validateName,u))}else o(i.validateName,u)()}function o(u,l){return l?()=>r.block(()=>{(0,Rf.callRef)(e,u),r.let(l,!0)}):()=>(0,Rf.callRef)(e,u)}}vf.dynamicRef=Lf;vf.default=Q1});var Xf=g((Sf)=>{Object.defineProperty(Sf,"__esModule",{value:!0});var _1=Io(),eL=j(),tL={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){if(e.schema)(0,_1.dynamicAnchor)(e,"");else(0,eL.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Sf.default=tL});var zf=g((Of)=>{Object.defineProperty(Of,"__esModule",{value:!0});var nL=go(),iL={keyword:"$recursiveRef",schemaType:"string",code:(e)=>(0,nL.dynamicRef)(e,e.schema)};Of.default=iL});var jf=g((Wf)=>{Object.defineProperty(Wf,"__esModule",{value:!0});var sL=Io(),oL=go(),uL=Xf(),lL=zf(),dL=[sL.default,oL.default,uL.default,lL.default];Wf.default=dL});var Vf=g((Tf)=>{Object.defineProperty(Tf,"__esModule",{value:!0});var Pf=Ai(),mL={keyword:"dependentRequired",type:"object",schemaType:"object",error:Pf.error,code:(e)=>(0,Pf.validatePropertyDeps)(e)};Tf.default=mL});var Ef=g((Nf)=>{Object.defineProperty(Nf,"__esModule",{value:!0});var fL=Ai(),hL={keyword:"dependentSchemas",type:"object",schemaType:"object",code:(e)=>(0,fL.validateSchemaDeps)(e)};Nf.default=hL});var Mf=g((Df)=>{Object.defineProperty(Df,"__esModule",{value:!0});var IL=j(),gL={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){if(t.contains===void 0)(0,IL.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Df.default=gL});var Uf=g((Gf)=>{Object.defineProperty(Gf,"__esModule",{value:!0});var wL=Vf(),bL=Ef(),AL=Mf(),CL=[wL.default,bL.default,AL.default];Gf.default=CL});var Bf=g((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});var mt=z(),Jf=j(),RL=Ae(),LL={message:"must NOT have unevaluated properties",params:({params:e})=>mt._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},vL={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:LL,code(e){let{gen:t,schema:r,data:n,errsCount:i,it:a}=e;if(!i)throw Error("ajv implementation error");let{allErrors:s,props:o}=a;if(o instanceof mt.Name)t.if(mt._`${o} !== true`,()=>t.forIn("key",n,(c)=>t.if(l(o,c),()=>u(c))));else if(o!==!0)t.forIn("key",n,(c)=>o===void 0?u(c):t.if(d(o,c),()=>u(c)));a.props=!0,e.ok(mt._`${i} === ${RL.default.errors}`);function u(c){if(r===!1){if(e.setParams({unevaluatedProperty:c}),e.error(),!s)t.break();return}if(!(0,Jf.alwaysValidSchema)(a,r)){let m=t.name("valid");if(e.subschema({keyword:"unevaluatedProperties",dataProp:c,dataPropType:Jf.Type.Str},m),!s)t.if((0,mt.not)(m),()=>t.break())}}function l(c,m){return mt._`!${c} || !${c}[${m}]`}function d(c,m){let h=[];for(let f in c)if(c[f]===!0)h.push(mt._`${m} !== ${f}`);return(0,mt.and)(...h)}}};Ff.default=vL});var Hf=g((Yf)=>{Object.defineProperty(Yf,"__esModule",{value:!0});var Tt=z(),Kf=j(),SL={message:({params:{len:e}})=>Tt.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Tt._`{limit: ${e}}`},XL={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:SL,code(e){let{gen:t,schema:r,data:n,it:i}=e,a=i.items||0;if(a===!0)return;let s=t.const("len",Tt._`${n}.length`);if(r===!1)e.setParams({len:a}),e.fail(Tt._`${s} > ${a}`);else if(typeof r=="object"&&!(0,Kf.alwaysValidSchema)(i,r)){let u=t.var("valid",Tt._`${s} <= ${a}`);t.if((0,Tt.not)(u),()=>o(u,a)),e.ok(u)}i.items=!0;function o(u,l){t.forRange("i",l,s,(d)=>{if(e.subschema({keyword:"unevaluatedItems",dataProp:d,dataPropType:Kf.Type.Num},u),!i.allErrors)t.if((0,Tt.not)(u),()=>t.break())})}}};Yf.default=XL});var Qf=g((Zf)=>{Object.defineProperty(Zf,"__esModule",{value:!0});var zL=Bf(),WL=Hf(),jL=[zL.default,WL.default];Zf.default=jL});var eh=g((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});var TL=Ls(),VL=Ss(),NL=Ts(),EL=jf(),DL=Uf(),ML=Qf(),GL=Vs(),xf=Ns(),UL=[EL.default,TL.default,VL.default,(0,NL.default)(!0),GL.default,xf.metadataVocabulary,xf.contentVocabulary,DL.default,ML.default];_f.default=UL});var th=g((UP,FL)=>{FL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var rh=g((JP,BL)=>{BL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var nh=g((FP,KL)=>{KL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var ih=g((BP,YL)=>{YL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var ah=g((KP,HL)=>{HL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var sh=g((YP,ZL)=>{ZL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var oh=g((HP,QL)=>{QL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var uh=g((ZP,xL)=>{xL.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var dh=g((lh)=>{Object.defineProperty(lh,"__esModule",{value:!0});var _L=th(),ev=rh(),tv=nh(),rv=ih(),nv=ah(),iv=sh(),av=oh(),sv=uh(),ov=["/properties"];function uv(e){return[_L,ev,tv,rv,nv,t(this,iv),av,t(this,sv)].forEach((r)=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,ov):n}}lh.default=uv});var ch=g((fe,wo)=>{Object.defineProperty(fe,"__esModule",{value:!0});fe.MissingRefError=fe.ValidationError=fe.CodeGen=fe.Name=fe.nil=fe.stringify=fe.str=fe._=fe.KeywordCxt=fe.Ajv2020=void 0;var dv=Rs(),cv=eh(),mv=Ds(),pv=dh(),qo="https://json-schema.org/draft/2020-12/schema";class An extends dv.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){if(super._addVocabularies(),cv.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(mv.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:t}=this.opts;if(!t)return;pv.default.call(this,e),this.refs["http://json-schema.org/schema"]=qo}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(qo)?qo:void 0)}}fe.Ajv2020=An;wo.exports=fe=An;wo.exports.Ajv2020=An;Object.defineProperty(fe,"__esModule",{value:!0});fe.default=An;var fv=tr();Object.defineProperty(fe,"KeywordCxt",{enumerable:!0,get:function(){return fv.KeywordCxt}});var pr=z();Object.defineProperty(fe,"_",{enumerable:!0,get:function(){return pr._}});Object.defineProperty(fe,"str",{enumerable:!0,get:function(){return pr.str}});Object.defineProperty(fe,"stringify",{enumerable:!0,get:function(){return pr.stringify}});Object.defineProperty(fe,"nil",{enumerable:!0,get:function(){return pr.nil}});Object.defineProperty(fe,"Name",{enumerable:!0,get:function(){return pr.Name}});Object.defineProperty(fe,"CodeGen",{enumerable:!0,get:function(){return pr.CodeGen}});var hv=Dr();Object.defineProperty(fe,"ValidationError",{enumerable:!0,get:function(){return hv.default}});var yv=rr();Object.defineProperty(fe,"MissingRefError",{enumerable:!0,get:function(){return yv.default}})});import{realpathSync as Ph}from"node:fs";import{fileURLToPath as zv}from"node:url";var Bo=Fi(Fo(),1),{program:Jv,createCommand:Fv,createArgument:Bv,createOption:Kv,CommanderError:vn,InvalidArgumentError:Yv,InvalidOptionArgumentError:Hv,Command:$n,Argument:Zv,Option:Sn,Help:Qv}=Bo.default;var R={success:0,internal:1,usage:2,authentication:3,notFound:4,conflict:5,validation:6,remote:7,partial:8};class v extends Error{code;details;exitCode;constructor(e,t,r={}){super(t,r.cause===void 0?void 0:{cause:r.cause});this.name="CliError",this.code=e,this.details=r.details,this.exitCode=r.exitCode??R.internal}}function ea(e){if(e instanceof v)return e;if(e instanceof Error){let t=e;return new v(typeof t.code==="string"?t.code:"internal_error",t.message,{cause:e,...t.details!==void 0?{details:t.details}:{},...typeof t.exitCode==="number"?{exitCode:t.exitCode}:{}})}return new v("internal_error","The command could not be completed.")}function Ko(e){let t=e.optsWithGlobals();return{...t.apiUrl?{apiUrl:t.apiUrl}:{},json:t.json===!0||t.format==="json",nonInteractive:t.nonInteractive??!1,...t.profile?{profile:t.profile}:{},...t.organization?{organization:t.organization}:{},...t.space?{space:t.space}:{}}}async function Y(e,t,r){return await t.createRuntime({globals:Ko(e),reporter:r.reporter})}function C(e){return new v("usage_error",e,{exitCode:R.usage})}function ta(e,t="--input"){try{return JSON.parse(e)}catch{throw C(`${t} must be valid JSON.`)}}async function yr(e){if(e.yes)return!0;let t=Ko(e.command);if(t.nonInteractive||t.json)throw C("This command requires --yes in JSON or non-interactive mode.");if(!e.dependencies.confirm)throw C("This command requires --yes when confirmation is unavailable.");return await e.dependencies.confirm(e.message)}function Ir(){return{human:"Cancelled.",value:{cancelled:!0}}}var Yo=[{id:"access.archivePolicy",group:"access-policies",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.archiveProfile",group:"access-profiles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.archiveRole",group:"access-roles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createPolicy",group:"access-policies",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createProfile",group:"access-profiles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createRole",group:"access-roles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getPolicy",group:"access-policies",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getProfile",group:"access-profiles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getRole",group:"access-roles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listConnectors",group:"access",command:"list-connectors",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-connectors",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listLinkedGroups",group:"access",command:"list-linked-groups",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listPolicies",group:"access-policies",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listProfiles",group:"access-profiles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listRoles",group:"access-roles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"connectorInstanceId",in:"query",required:!1},{name:"connectorSlug",in:"query",required:!1},{name:"provisioningMethodType",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishPolicy",group:"access-policies",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishProfile",group:"access-profiles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishRole",group:"access-roles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updatePolicy",group:"access-policies",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updateProfile",group:"access-profiles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updateRole",group:"access-roles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.cancelApplicationReconnect",group:"applications",command:"cancel-application-reconnect",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect/cancel",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.confirmApplication",group:"applications",command:"confirm-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/confirm",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.connectApplication",group:"applications",command:"connect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}/connect",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"slug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.createCustomIntegration",group:"applications",command:"create-custom-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.disconnectApplication",group:"applications",command:"disconnect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.disconnectIntegration",group:"applications",command:"disconnect-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.duplicateApplication",group:"applications",command:"duplicate-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/duplicate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplication",group:"applications",command:"get-application",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"providerSyncStatus",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationCatalog",group:"applications",command:"get-application-catalog",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"slug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationIssueSyncSettings",group:"applications",command:"get-application-issue-sync-settings",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationJiraForgeStatus",group:"applications",command:"get-application-jira-forge-status",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/jira-forge",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationAutomations",group:"applications",command:"list-application-automations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationAvailability",group:"applications",command:"list-application-availability",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/availability",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slug",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationGithubRepositories",group:"applications",command:"list-application-github-repositories",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/github/repositories",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationGroups",group:"applications",command:"list-application-groups",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationIssueTeams",group:"applications",command:"list-application-issue-teams",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-teams",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplications",group:"applications",command:"list-applications",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"attention",in:"query",required:!1},{name:"connectorInstanceId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationSyncRuns",group:"applications",command:"list-application-sync-runs",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync-runs",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"event",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationTriggerFieldOptions",group:"applications",command:"list-application-trigger-field-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/trigger-field-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"field",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationWorkflows",group:"applications",command:"list-application-workflows",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/workflows",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"visibility",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listConnectedApplications",group:"applications",command:"list-connected-applications",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/connected",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slug",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listIntegrations",group:"applications",command:"list-integrations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"alias",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"includeDeleted",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"nangoConnectionId",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"source",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listIntegrationTools",group:"applications",command:"list-integration-tools",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/tools",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.provisionApplicationWebhook",group:"applications",command:"provision-application-webhook",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/okta-webhook",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.reconnectApplication",group:"applications",command:"reconnect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.renameIntegration",group:"applications",command:"rename-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setApplicationActionMode",group:"applications",command:"set-application-action-mode",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/action-mode",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setApplicationEnabled",group:"applications",command:"set-application-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/enabled",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setIntegrationEnabled",group:"applications",command:"set-integration-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/enabled",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.triggerApplicationSync",group:"applications",command:"trigger-application-sync",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.updateApplication",group:"applications",command:"update-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.updateApplicationIssueSyncSettings",group:"applications",command:"update-application-issue-sync-settings",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.archive",group:"assignment-groups",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.create",group:"assignment-groups",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.get",group:"assignment-groups",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.getMembership",group:"assignment-groups",command:"get-membership",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/membership",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.getSettings",group:"assignment-groups",command:"get-settings",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/settings",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.list",group:"assignment-groups",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"kind",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"offset",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"routableOnly",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.listMembers",group:"assignment-groups",command:"list-members",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/members",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"access",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.setImportEnabled",group:"assignment-groups",command:"set-import-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/connections/{connectorInstanceId}/import",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.setImportSelection",group:"assignment-groups",command:"set-import-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/import-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.unarchive",group:"assignment-groups",command:"unarchive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/unarchive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.update",group:"assignment-groups",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.create",group:"assignment-rules",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.list",group:"assignment-rules",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.remove",group:"assignment-rules",command:"remove",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"ruleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.reorder",group:"assignment-rules",command:"reorder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/reorder",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.update",group:"assignment-rules",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"ruleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.approveEditProposal",group:"automations",command:"approve-edit-proposal",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/approve",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.archive",group:"automations",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.archived",group:"automations",command:"archived",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/archived",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.copilot",group:"automations",command:"copilot",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/copilot",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.create",group:"automations",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createTrigger",group:"automations",command:"create-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createVersion",group:"automations",command:"create-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createWorkflowTrigger",group:"automations",command:"create-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.deleteTrigger",group:"automations",command:"delete-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.deleteWorkflowTrigger",group:"automations",command:"delete-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.disableTrigger",group:"automations",command:"disable-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/disable",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.get",group:"automations",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.getEditProposal",group:"automations",command:"get-edit-proposal",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.helpDesk",group:"automations",command:"help-desk",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/help-desk",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.list",group:"automations",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listAutomationTriggers",group:"automations",command:"list-automation-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listEditProposals",group:"automations",command:"list-edit-proposals",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"threadId",in:"query",required:!0},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listTriggers",group:"automations",command:"list-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listVersions",group:"automations",command:"list-versions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listWorkflowTriggers",group:"automations",command:"list-workflow-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.managementStats",group:"automations",command:"management-stats",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/management-stats",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.rejectEditProposal",group:"automations",command:"reject-edit-proposal",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/reject",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.restore",group:"automations",command:"restore",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/restore",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.revealWebhookSecret",group:"automations",command:"reveal-webhook-secret",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/webhook-secret",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.revealWorkflowWebhookSecret",group:"automations",command:"reveal-workflow-webhook-secret",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}/webhook-secret",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.spaceStats",group:"automations",command:"space-stats",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/space-stats",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.summaries",group:"automations",command:"summaries",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/summaries",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.update",group:"automations",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.updateTrigger",group:"automations",command:"update-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.updateWorkflowTrigger",group:"automations",command:"update-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveCase",group:"cases",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveInboxApproval",group:"cases",command:"archive-inbox-approval",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveInboxCase",group:"cases",command:"archive-inbox-case",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.comment",group:"cases",command:"comment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/comments",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createCase",group:"cases",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createCategory",group:"cases",command:"create-category",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-categories",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createLabel",group:"cases",command:"create-label",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-labels",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.deleteAttachment",group:"cases",command:"delete-attachment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"attachmentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.downloadAttachment",group:"cases",command:"download-attachment",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}/download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"attachmentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.escalateRequest",group:"requests",command:"escalate",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/requests/{sourceThreadId}/escalate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceThreadId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.getCase",group:"cases",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"space",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.getSubscription",group:"cases",command:"get-subscription",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.linkRelation",group:"cases",command:"link-relation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.linkThread",group:"cases",command:"link-thread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listActivity",group:"cases",command:"list-activity",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/activity",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listAssigneeCandidates",group:"cases",command:"list-assignee-candidates",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-assignee-candidates",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listAttachments",group:"cases",command:"list-attachments",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCases",group:"cases",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCasesGrouped",group:"cases",command:"list-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCategories",group:"cases",command:"list-categories",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-categories",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listInboxCaseGroupOptions",group:"cases",command:"list-inbox-case-group-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/group-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"inboxState",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"presetAssigneeMode",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"groupQ",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listInboxCases",group:"cases",command:"list-inbox-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"inboxState",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"presetAssigneeMode",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listLabels",group:"cases",command:"list-labels",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/labels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCaseFilterOptions",group:"cases",command:"list-my-case-filter-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine/filter-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"kind",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCases",group:"cases",command:"list-my-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCasesGrouped",group:"cases",command:"list-my-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listReferenceData",group:"cases",command:"list-reference-data",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-reference-data",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"kind",in:"query",required:!0},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSourceLinks",group:"cases",command:"list-source-links",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/source-links",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCaseFilterOptions",group:"cases",command:"list-subscribed-case-filter-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/filter-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"kind",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCases",group:"cases",command:"list-subscribed-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCasesGrouped",group:"cases",command:"list-subscribed-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listThreads",group:"cases",command:"list-threads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.markRead",group:"cases",command:"mark-read",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.markUnread",group:"cases",command:"mark-unread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/unread",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readContext",group:"cases",command:"read-context",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/context",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"sessionCursor",in:"query",required:!1},{name:"sessionLimit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readInboxApproval",group:"cases",command:"read-inbox-approval",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readInboxCase",group:"cases",command:"read-inbox-case",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.reopenCase",group:"cases",command:"reopen",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/reopen",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.search",group:"cases",command:"search",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.spawnThread",group:"cases",command:"spawn-thread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads/spawn",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.subscribe",group:"cases",command:"subscribe",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.transfer",group:"cases",command:"transfer",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/transfer",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.unlinkRelation",group:"cases",command:"unlink-relation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations/{relationId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"relationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.unsubscribe",group:"cases",command:"unsubscribe",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.updateCase",group:"cases",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.uploadAttachment",group:"cases",command:"upload-attachment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.createAdminPortalLink",group:"directory",command:"create-admin-portal-link",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/admin-portal-link",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.list",group:"directory",command:"list",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/directory",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"groupMembersLimit",in:"query",required:!1},{name:"groupsCursor",in:"query",required:!1},{name:"groupsLimit",in:"query",required:!1},{name:"userId",in:"query",required:!1},{name:"usersCursor",in:"query",required:!1},{name:"usersLimit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.listGroupMembers",group:"directory",command:"list-group-members",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/groups/{groupId}/members",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"groupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.searchGroups",group:"directory",command:"search-groups",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/search/groups",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.searchUsers",group:"directory",command:"search-users",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/search/users",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.sync",group:"directory",command:"sync",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/sync",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"identity.getCurrentPrincipal",group:"identity",command:"get-current-principal",mutation:!1,idempotent:!1,path:"/v1/me",method:"get",binaryResponse:!1,parameters:[{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"identity.listSpaces",group:"identity",command:"list-spaces",mutation:!1,idempotent:!1,path:"/v1/spaces",method:"get",binaryResponse:!1,parameters:[{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveFolder",group:"knowledge",command:"archive-folder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveSubfolder",group:"knowledge",command:"archive-subfolder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"folderId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveUpload",group:"knowledge",command:"archive-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.browseGithubKnowledgeRepoFile",group:"knowledge",command:"browse-github-knowledge-repo-file",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/file",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"path",in:"query",required:!0},{name:"repo",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.browseGithubKnowledgeRepoTree",group:"knowledge",command:"browse-github-knowledge-repo-tree",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/tree",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"repo",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateConfluenceConnectorDocuments",group:"knowledge",command:"bulk-update-confluence-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateGoogleDriveConnectorDocuments",group:"knowledge",command:"bulk-update-google-drive-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateNotionConnectorDocuments",group:"knowledge",command:"bulk-update-notion-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateSharePointConnectorDocuments",group:"knowledge",command:"bulk-update-share-point-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.createUpload",group:"knowledge",command:"create-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.deleteConnectorKnowledge",group:"knowledge",command:"delete-connector-knowledge",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/knowledge",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listConfluenceConnectorDocuments",group:"knowledge",command:"list-confluence-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listFolders",group:"knowledge",command:"list-folders",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGithubConnectorRepos",group:"knowledge",command:"list-github-connector-repos",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGithubKnowledgeRepos",group:"knowledge",command:"list-github-knowledge-repos",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGoogleDriveConnectorDocuments",group:"knowledge",command:"list-google-drive-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGoogleDriveConnectorDrives",group:"knowledge",command:"list-google-drive-connector-drives",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/drives",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listNotionConnectorDocuments",group:"knowledge",command:"list-notion-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listOrganizationDocuments",group:"knowledge",command:"list-organization-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"provider",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listOrganizationKnowledgeProviderCounts",group:"knowledge",command:"list-organization-knowledge-provider-counts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/provider-counts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSharePointConnectorDocuments",group:"knowledge",command:"list-share-point-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSharePointConnectorSites",group:"knowledge",command:"list-share-point-connector-sites",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-sites",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSlackConnectorChannels",group:"knowledge",command:"list-slack-connector-channels",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listUploads",group:"knowledge",command:"list-uploads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"folder",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.readOrganizationUpload",group:"knowledge",command:"read-organization-upload",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/uploads/{documentId}/content",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.readUpload",group:"knowledge",command:"read-upload",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/content",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.reindexUpload",group:"knowledge",command:"reindex-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/reindex",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.renameFolder",group:"knowledge",command:"rename-folder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.renameSubfolder",group:"knowledge",command:"rename-subfolder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"folderId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.replaceGithubKnowledgeRepos",group:"knowledge",command:"replace-github-knowledge-repos",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.search",group:"knowledge",command:"search",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.searchNotionConnectorDocuments",group:"knowledge",command:"search-notion-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncConfluenceConnectorDocument",group:"knowledge",command:"sync-confluence-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncGoogleDriveConnectorDocument",group:"knowledge",command:"sync-google-drive-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncNotionConnectorDocument",group:"knowledge",command:"sync-notion-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.triggerGithubKnowledgeSync",group:"knowledge",command:"trigger-github-knowledge-sync",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateConfluenceConnectorDocument",group:"knowledge",command:"update-confluence-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateFolderDocuments",group:"knowledge",command:"update-folder-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGithubConnectorRepos",group:"knowledge",command:"update-github-connector-repos",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGoogleDriveConnectorDocument",group:"knowledge",command:"update-google-drive-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGoogleDriveConnectorSelection",group:"knowledge",command:"update-google-drive-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateNotionConnectorDocument",group:"knowledge",command:"update-notion-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateNotionConnectorSelection",group:"knowledge",command:"update-notion-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSharePointConnectorDocument",group:"knowledge",command:"update-share-point-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSharePointConnectorSelection",group:"knowledge",command:"update-share-point-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorAvailability",group:"knowledge",command:"update-slack-connector-availability",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/availability",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorBackfill",group:"knowledge",command:"update-slack-connector-backfill",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-backfill",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorChannelAvailability",group:"knowledge",command:"update-slack-connector-channel-availability",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channel-availability",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorSelection",group:"knowledge",command:"update-slack-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateUpload",group:"knowledge",command:"update-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.archive",group:"labels",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/{labelId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"labelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.assignNames",group:"labels",command:"assign-names",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/assign",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.create",group:"labels",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.list",group:"labels",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/labels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.listLinks",group:"labels",command:"list-links",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/links",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"entityType",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.resolveNames",group:"labels",command:"resolve-names",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/resolve",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.setLabels",group:"labels",command:"set-labels",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/links/{entityType}/{entityId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"entityType",in:"path",required:!0},{name:"entityId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.update",group:"labels",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/{labelId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"labelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.acceptQuarantine",group:"organization-email",command:"accept-quarantine",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/accept",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"eventId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.deleteSuppression",group:"organization-email",command:"delete-suppression",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/suppressions/{suppressionId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"suppressionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.disableInstallation",group:"organization-email",command:"disable-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.enableInstallation",group:"organization-email",command:"enable-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.getInstallation",group:"organization-email",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.listQuarantine",group:"organization-email",command:"list-quarantine",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.listSuppressions",group:"organization-email",command:"list-suppressions",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/suppressions",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.rejectQuarantine",group:"organization-email",command:"reject-quarantine",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/reject",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"eventId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.confirmInstall",group:"organization-github",command:"confirm-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation/confirm",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.disconnectInstallation",group:"organization-github",command:"disconnect-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.getInstallation",group:"organization-github",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.getInstallationDetails",group:"organization-github",command:"get-installation-details",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation/details",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"repoPage",in:"query",required:!1},{name:"repoPageSize",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.startInstall",group:"organization-github",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.createChannelSettingsRoute",group:"organization-slack",command:"create-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.deleteChannelSettingsRoute",group:"organization-slack",command:"delete-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes/{routeId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"routeId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.disconnectInstallation",group:"organization-slack",command:"disconnect-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.getInstallation",group:"organization-slack",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.listChannelSettings",group:"organization-slack",command:"list-channel-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.startInstall",group:"organization-slack",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/install",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.syncChannelSettings",group:"organization-slack",command:"sync-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/sync",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelEmojis",group:"organization-slack",command:"update-channel-emojis",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/emojis",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelSettings",group:"organization-slack",command:"update-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.archive",group:"organization-spaces",command:"archive",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.create",group:"organization-spaces",command:"create",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.join",group:"organization-spaces",command:"join",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/join",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.list",group:"organization-spaces",command:"list",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setEscalationMessage",group:"organization-spaces",command:"set-escalation-message",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-message",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setEscalationMute",group:"organization-spaces",command:"set-escalation-mute",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-mute",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setOrganizationRequestRouting",group:"organization-spaces",command:"set-organization-request-routing",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/request-routing",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.createChannelSettingsRoute",group:"organization-teams",command:"create-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.createGraphSubscription",group:"organization-teams",command:"create-graph-subscription",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.deleteChannelSettingsRoute",group:"organization-teams",command:"delete-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes/{routeId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"routeId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.disconnectConnection",group:"organization-teams",command:"disconnect-connection",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connection",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getAppPackage",group:"organization-teams",command:"get-app-package",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/app-package/content",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getAppPackageStatus",group:"organization-teams",command:"get-app-package-status",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/app-package",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getConnection",group:"organization-teams",command:"get-connection",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connection",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.listChannelSettings",group:"organization-teams",command:"list-channel-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.renewGraphSubscriptions",group:"organization-teams",command:"renew-graph-subscriptions",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions/renew",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.startInstall",group:"organization-teams",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connect",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelEmojis",group:"organization-teams",command:"update-channel-emojis",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/emojis",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelSettings",group:"organization-teams",command:"update-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.createInvite",group:"organizations",command:"create-invite",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/invites",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.createMembership",group:"organizations",command:"create-membership",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.getPerson",group:"organizations",command:"get-person",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/{personId}",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"personId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.getSettings",group:"organizations",command:"get-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listGroups",group:"organizations",command:"list-groups",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/groups",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"spaceId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"identityId",in:"query",required:!1},{name:"includeMembershipLastObserved",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"sourceId",in:"query",required:!1},{name:"sourceType",in:"query",required:!1},{name:"scope",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listGroupSources",group:"organizations",command:"list-group-sources",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/group-sources",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"sourceType",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listInvites",group:"organizations",command:"list-invites",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/invites",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"role",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listMembershipLabels",group:"organizations",command:"list-membership-labels",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships/labels",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"userId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listMemberships",group:"organizations",command:"list-memberships",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listPeople",group:"organizations",command:"list-people",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"groupId",in:"query",required:!1},{name:"groupSourceId",in:"query",required:!1},{name:"groupSourceType",in:"query",required:!1},{name:"directory",in:"query",required:!1},{name:"includeTotal",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"role",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listPersonApplications",group:"organizations",command:"list-person-applications",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/{personId}/applications",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"personId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listProvisionableLinkedGroups",group:"organizations",command:"list-provisionable-linked-groups",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/provisionable-linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"scope",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listRoles",group:"organizations",command:"list-roles",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/roles",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.revokeInvite",group:"organizations",command:"revoke-invite",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/invites/{inviteId}/revoke",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"inviteId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.searchPeople",group:"organizations",command:"search-people",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/search",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"spaceId",in:"query",required:!1},{name:"includeAllDirectoryPeople",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"excludeCurrentSpace",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"membersOnly",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.updateMembership",group:"organizations",command:"update-membership",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships/{membershipId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.updateSettings",group:"organizations",command:"update-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/settings",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.archive",group:"sessions",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createOrganizationRequestSession",group:"sessions",command:"create-organization-request-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/organization-request-sessions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createOrganizationRequestSessionAndSubmit",group:"sessions",command:"create-organization-request-session-and-submit",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/organization-request-sessions/submit",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createSession",group:"sessions",command:"create-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createSessionAndSubmit",group:"sessions",command:"create-session-and-submit",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/submit",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createWorkflowSuggestionSession",group:"sessions",command:"create-workflow-suggestion-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/session-builders/workflow-suggestions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.deleteArtifact",group:"sessions",command:"delete-artifact",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.downloadArtifact",group:"sessions",command:"download-artifact",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}/download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"version",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.downloadFile",group:"sessions",command:"download-file",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"path",in:"query",required:!0},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.forceResponse",group:"sessions",command:"force-response",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages/{messageId}/respond",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"messageId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.fork",group:"sessions",command:"fork",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/fork",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.get",group:"sessions",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getArtifact",group:"sessions",command:"get-artifact",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getCase",group:"sessions",command:"get-case",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases/{caseId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getFilePreview",group:"sessions",command:"get-file-preview",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-preview",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"path",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getOrganizationRequestDestination",group:"sessions",command:"get-organization-request-destination",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/session-request-destinations/{destinationSpaceId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"destinationSpaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getRuntime",group:"sessions",command:"get-runtime",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getSubagentSnapshot",group:"sessions",command:"get-subagent-snapshot",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/subagents/{toolCallId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"toolCallId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"beforeSeq",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getWorkflowApproval",group:"sessions",command:"get-workflow-approval",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/workflow-approvals/{approvalId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"runId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.intakeRequest",group:"requests",command:"intake",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/requests",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.list",group:"sessions",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"excludeCustomAutomationSessions",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"purpose",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"triggeredByKind",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"createdBy",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listArtifacts",group:"sessions",command:"list-artifacts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"createdByUserId",in:"query",required:!1},{name:"createdByAutomationId",in:"query",required:!1},{name:"sessionId",in:"query",required:!1},{name:"createdAtFrom",in:"query",required:!1},{name:"createdAtTo",in:"query",required:!1},{name:"updatedAtFrom",in:"query",required:!1},{name:"updatedAtTo",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listCases",group:"sessions",command:"list-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listFileChildren",group:"sessions",command:"list-file-children",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-children",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"path",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listFiles",group:"sessions",command:"list-files",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/files",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listMessages",group:"sessions",command:"list-messages",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listOrganizationRequestDestinations",group:"sessions",command:"list-organization-request-destinations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/session-request-destinations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listParticipants",group:"sessions",command:"list-participants",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/participants",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listTasks",group:"sessions",command:"list-tasks",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/tasks",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listUploads",group:"sessions",command:"list-uploads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.muteAutomation",group:"sessions",command:"mute-automation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/mute",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.prewarmRuntime",group:"sessions",command:"prewarm-runtime",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime/prewarm",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.readCaseSession",group:"sessions",command:"read-transcript",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/transcript",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"afterSeq",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.rename",group:"sessions",command:"rename",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.setVisibility",group:"sessions",command:"set-visibility",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/visibility",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.startBrowser",group:"sessions",command:"start-browser",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/browser",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.statusCounts",group:"sessions",command:"status-counts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/status-counts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"excludeCustomAutomationSessions",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"purpose",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"triggeredByKind",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"createdBy",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.submitMessage",group:"sessions",command:"submit-message",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.unarchive",group:"sessions",command:"unarchive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unarchive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.unmuteAutomation",group:"sessions",command:"unmute-automation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unmute",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.updateFileVisibility",group:"sessions",command:"update-file-visibility",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-visibility",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.uploadFiles",group:"sessions",command:"upload-files",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.archiveSkill",group:"skills",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.createSkill",group:"skills",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.createSkillVersion",group:"skills",command:"create-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.discardSkillDraft",group:"skills",command:"discard-draft",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/draft/discard",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.getSkill",group:"skills",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.getSkillVersion",group:"skills",command:"get-version",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"skillVersionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.listSkillAutomations",group:"skills",command:"list-automations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.listSkills",group:"skills",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.publishSkillVersion",group:"skills",command:"publish-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"skillVersionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.updateSkillTags",group:"skills",command:"update-tags",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/tags",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.archive",group:"space-access-roles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.create",group:"space-access-roles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.discard",group:"space-access-roles",command:"discard",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/discard",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.duplicate",group:"space-access-roles",command:"duplicate",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/duplicate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.get",group:"space-access-roles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.list",group:"space-access-roles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"excludeRoleId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.publish",group:"space-access-roles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.update",group:"space-access-roles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listBlockedActions",group:"space-action-grants",command:"list-blocked-actions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/blocked-actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listCatalog",group:"space-action-grants",command:"list-catalog",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listGrants",group:"space-action-grants",command:"list-grants",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listPermissions",group:"space-action-grants",command:"list-permissions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.replaceGrants",group:"space-action-grants",command:"replace-grants",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.replaceRoles",group:"space-action-grants",command:"replace-roles",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions/{actionSlug}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"actionSlug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.addGroupMembers",group:"spaces",command:"add-group-members",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/group-members",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.addMember",group:"spaces",command:"add-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.getSemanticAssignmentRouting",group:"spaces",command:"get-semantic-assignment-routing",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.leave",group:"spaces",command:"leave",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/leave",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.listMembers",group:"spaces",command:"list-members",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/members",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"accessRoleId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"eligibleForAssignment",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"roleSlug",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"userId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.removeMember",group:"spaces",command:"remove-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/{membershipId}/remove",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.setDefaultAssignment",group:"spaces",command:"set-default-assignment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/default-assignment",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.setSemanticAssignmentRouting",group:"spaces",command:"set-semantic-assignment-routing",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.updateMember",group:"spaces",command:"update-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/{membershipId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.updateProfile",group:"spaces",command:"update-profile",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/profile",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.archiveWorkflow",group:"workflows",command:"archive",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.cancelWorkflowRun",group:"workflow-runs",command:"cancel",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.createWorkflow",group:"workflows",command:"create",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.createWorkflowRun",group:"workflow-runs",command:"create",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflow-runs",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflow",group:"workflows",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflowRevision",group:"workflows",command:"get-revision",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflowRun",group:"workflow-runs",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowCapabilities",group:"workflow-capabilities",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-capabilities",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRevisions",group:"workflows",command:"list-revisions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRunEvents",group:"workflow-runs",command:"list-events",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/events",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"waitSeconds",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRuns",group:"workflow-runs",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"workflowId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflows",group:"workflows",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.publishWorkflowRevision",group:"workflows",command:"publish-revision",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.testWorkflowRevision",group:"workflows",command:"test-revision",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.updateWorkflow",group:"workflows",command:"update",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.validateWorkflowRevision",group:"workflows",command:"validate-revision",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.waitForWorkflowRun",group:"workflow-runs",command:"wait",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/wait",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"timeoutSeconds",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]}];var ge=Yo;function Ho(e){let t=ge.find((r)=>r.id===e);if(!t)throw Error(`Unknown generated operation: ${e}`);return t}function qe(e,t){let r;for(let n=0;n<e.length;n++){let i=e[n];if(i==="--")break;if(i!==t&&!i.startsWith(`${t}=`))continue;if(r!==void 0)throw C(`Pass ${t} only once.`);if(i===t){if(r=e[n+1],r===void 0||r.startsWith("--"))throw C(`${t} requires a value.`);e.splice(n,2)}else r=i.slice(t.length+1),e.splice(n,1);n--}return r}function ra(e,t){let r=!1;for(let n=(e.indexOf("--")<0?e.length:e.indexOf("--"))-1;n>=0;n--)if(e[n]===t)e.splice(n,1),r=!0;return r}function Zo(e){let t=[...e],r=qe(t,"--profile"),n=qe(t,"--space"),i=qe(t,"--organization"),a=qe(t,"--api-url"),s=qe(t,"--base-url");if(a!==void 0&&s!==void 0&&a!==s)throw C("Pass one API URL override.");let o=a??s,u={json:!1,nonInteractive:ra(t,"--non-interactive"),...r===void 0?{}:{profile:r},...n===void 0?{}:{space:n},...i===void 0?{}:{organization:i},...o===void 0?{}:{apiUrl:o}};return{args:t,globals:u,yes:ra(t,"--yes"),overwrite:ra(t,"--overwrite")}}var Qo=new Set(["--schema","--spec","--spec-raw","--debug","--version","-V","--help","-h","--dry-run","--human","--quiet","-q","--page-all","--no-retry","--no-extract","--no-pager","--no-stream"]);function na(e){let t=[];for(let r=0;r<e.length&&t.length<2;r++){let n=e[r];if(n==="--")break;if(!n.startsWith("-"))t.push(r);else if(!n.includes("=")&&!Qo.has(n)&&e[r+1]&&!e[r+1].startsWith("-"))r++}return t}function _e(e){return na(e).map((t)=>e[t])}function xo(e){let t=_e(e);return ge.find((r)=>r.group===t[0]&&r.command===t[1])}function Vt(e){for(let t=0;t<e.length;t++){let r=e[t];if(r==="--")return!1;if(["--help","-h","--schema","--spec","--spec-raw"].includes(r))return!0;if(r.startsWith("-")&&!r.includes("=")&&!Qo.has(r))t++}return!1}function _o(e){let t=qe(e,"--params");if(t===void 0)return{};if(Buffer.byteLength(t)>262144)throw C("--params must be at most 256 KiB.");let r;try{r=JSON.parse(t)}catch{throw C("--params must be a JSON object.")}if(!r||typeof r!=="object"||Array.isArray(r))throw C("--params must be a JSON object.");return r}function eu(e){let t=ge.some((o)=>o.group===e[0]),r=e[t?1:0]??"",n=[...new Set(ge.filter((o)=>!t||o.group===e[0]).map((o)=>t?o.command:o.group))],i=(o)=>{let u=Array.from({length:r.length+1},(l,d)=>d);for(let l=0;l<o.length;l++){let d=[l+1];for(let c=0;c<r.length;c++)d.push(Math.min(d[c]+1,u[c+1]+1,u[c]+(o[l]===r[c]?0:1)));u=d}return u[r.length]},s=n.map((o)=>({candidate:o,score:i(o)})).filter(({score:o})=>o<=2).sort((o,u)=>o.score-u.score)[0];return s?`action ${t?e[0]+" ":""}${s.candidate}`:void 0}function gr(e){let t=e.indexOf("--");return t<0?e:e.slice(0,t)}var qr={applications:{list:"list-applications",get:"get-application"}};function tu(e){let t=e[0]==="help"?1:0,[r,n]=na(e.slice(t));if(r===void 0||n===void 0)return;let i=qr[e[r+t]]?.[e[n+t]];if(i)e[n+t]=i}var re="0.3.0";function Ne(e){return{name:e.name(),description:e.description(),usage:e.usage(),aliases:e.aliases(),arguments:e.registeredArguments.map((t)=>({name:t.name(),required:t.required,variadic:t.variadic,description:t.description})),options:e.options.map((t)=>({flags:t.flags,description:t.description})),commands:e.commands.map(Ne)}}function ru(e){let t=ft(e);return{name:t.name(),version:re,description:"Local authentication, context, and authoring commands supplement the generated public API commands. The launcher handles auth with WorkOS profiles, not the generated sidecar keyring.",commands:t.commands.map(Ne),globalOptions:t.options.map((r)=>({flags:r.flags,description:r.description})),resourceAliases:qr,resourceOptions:[{flags:"--yes",description:"Confirm a public API mutation."},{flags:"--overwrite",description:"Allow replacing an existing output file."}],inputOutput:"Public resource input uses --json <body>; resource output uses --format json. Local commands also accept --format json (or legacy --json)."}}function nu(e){return["","Copilot: action copilot [message] — your assistant across Action.","Conversations: action sessions start, reply, wait, transcript.","","Action launcher commands (handled locally):",...ft(e).commands.map((r)=>` ${r.name().padEnd(20)} ${r.description()}`),"","action auth uses WorkOS profiles stored in the system credential store.","Run action <local-command> --help for local options and subcommands.","Shell options: --profile, --api-url, --space, --organization, --non-interactive, --yes, --overwrite.","Resource input uses --json <body>; output uses --format json. Local commands also accept --format json (or legacy --json).",""].join(`
|
|
35
|
-
`)}import{spawn as
|
|
33
|
+
depsCount: ${r},
|
|
34
|
+
deps: ${t}}`};var R0={keyword:"dependencies",type:"object",schemaType:"object",error:Wm.error,code(e){let[r,t]=L0(e);Om(e,r),zm(e,t)}};function L0({schema:e}){let r={},t={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?r:t;i[n]=e[n]}return[r,t]}function Om(e,r=e.schema){let{gen:t,data:n,it:i}=e;if(Object.keys(r).length===0)return;let a=t.let("missing");for(let s in r){let o=r[s];if(o.length===0)continue;let u=(0,tn.propertyInData)(t,n,s,i.opts.ownProperties);if(e.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),i.allErrors)t.if(u,()=>{for(let l of o)(0,tn.checkReportMissingProp)(e,l)});else t.if(Us._`${u} && (${(0,tn.checkMissingProp)(e,o,a)})`),(0,tn.reportMissingProp)(e,a),t.else()}}Wm.validatePropertyDeps=Om;function zm(e,r=e.schema){let{gen:t,data:n,keyword:i,it:a}=e,s=t.name("valid");for(let o in r){if((0,k0.alwaysValidSchema)(a,r[o]))continue;t.if((0,tn.propertyInData)(t,n,o,a.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:o},s);e.mergeValidEvaluated(u,s)},()=>t.var(s,!0)),e.ok(s)}}Wm.validateSchemaDeps=zm;Wm.default=R0});var Nm=g((Vm)=>{Object.defineProperty(Vm,"__esModule",{value:!0});var Tm=z(),S0=j(),X0={message:"property name must be valid",params:({params:e})=>Tm._`{propertyName: ${e.propertyName}}`},O0={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:X0,code(e){let{gen:r,schema:t,data:n,it:i}=e;if((0,S0.alwaysValidSchema)(i,t))return;let a=r.name("valid");r.forIn("key",n,(s)=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},a),r.if((0,Tm.not)(a),()=>{if(e.error(!0),!i.allErrors)r.break()})}),e.ok(a)}};Vm.default=O0});var Js=g((Dm)=>{Object.defineProperty(Dm,"__esModule",{value:!0});var vi=Re(),De=z(),W0=ke(),$i=j(),j0={message:"must NOT have additional properties",params:({params:e})=>De._`{additionalProperty: ${e.additionalProperty}}`},P0={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:j0,code(e){let{gen:r,schema:t,parentSchema:n,data:i,errsCount:a,it:s}=e;if(!a)throw Error("ajv implementation error");let{allErrors:o,opts:u}=s;if(s.props=!0,u.removeAdditional!=="all"&&(0,$i.alwaysValidSchema)(s,t))return;let l=(0,vi.allSchemaProperties)(n.properties),d=(0,vi.allSchemaProperties)(n.patternProperties);c(),e.ok(De._`${a} === ${W0.default.errors}`);function c(){r.forIn("key",i,(y)=>{if(!l.length&&!d.length)f(y);else r.if(p(y),()=>f(y))})}function p(y){let I;if(l.length>8){let w=(0,$i.schemaRefOrVal)(s,n.properties,"properties");I=(0,vi.isOwnProperty)(r,w,y)}else if(l.length)I=(0,De.or)(...l.map((w)=>De._`${y} === ${w}`));else I=De.nil;if(d.length)I=(0,De.or)(I,...d.map((w)=>De._`${(0,vi.usePattern)(e,w)}.test(${y})`));return(0,De.not)(I)}function h(y){r.code(De._`delete ${i}[${y}]`)}function f(y){if(u.removeAdditional==="all"||u.removeAdditional&&t===!1){h(y);return}if(t===!1){if(e.setParams({additionalProperty:y}),e.error(),!o)r.break();return}if(typeof t=="object"&&!(0,$i.alwaysValidSchema)(s,t)){let I=r.name("valid");if(u.removeAdditional==="failing")m(y,I,!1),r.if((0,De.not)(I),()=>{e.reset(),h(y)});else if(m(y,I),!o)r.if((0,De.not)(I),()=>r.break())}}function m(y,I,w){let q={keyword:"additionalProperties",dataProp:y,dataPropType:$i.Type.Str};if(w===!1)Object.assign(q,{compositeRule:!0,createErrors:!1,allErrors:!1});e.subschema(q,I)}}};Dm.default=P0});var Um=g((Gm)=>{Object.defineProperty(Gm,"__esModule",{value:!0});var V0=it(),Em=Re(),Fs=j(),Mm=Js(),N0={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:r,schema:t,parentSchema:n,data:i,it:a}=e;if(a.opts.removeAdditional==="all"&&n.additionalProperties===void 0)Mm.default.code(new V0.KeywordCxt(a,Mm.default,"additionalProperties"));let s=(0,Em.allSchemaProperties)(t);for(let c of s)a.definedProperties.add(c);if(a.opts.unevaluated&&s.length&&a.props!==!0)a.props=Fs.mergeEvaluated.props(r,(0,Fs.toHash)(s),a.props);let o=s.filter((c)=>!(0,Fs.alwaysValidSchema)(a,t[c]));if(o.length===0)return;let u=r.name("valid");for(let c of o){if(l(c))d(c);else{if(r.if((0,Em.propertyInData)(r,i,c,a.opts.ownProperties)),d(c),!a.allErrors)r.else().var(u,!0);r.endIf()}e.it.definedProperties.add(c),e.ok(u)}function l(c){return a.opts.useDefaults&&!a.compositeRule&&t[c].default!==void 0}function d(c){e.subschema({keyword:"properties",schemaProp:c,dataProp:c},u)}}};Gm.default=N0});var Ym=g((Bm)=>{Object.defineProperty(Bm,"__esModule",{value:!0});var Jm=Re(),Si=z(),Fm=j(),Km=j(),E0={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:r,schema:t,data:n,parentSchema:i,it:a}=e,{opts:s}=a,o=(0,Jm.allSchemaProperties)(t),u=o.filter((m)=>(0,Fm.alwaysValidSchema)(a,t[m]));if(o.length===0||u.length===o.length&&(!a.opts.unevaluated||a.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,d=r.name("valid");if(a.props!==!0&&!(a.props instanceof Si.Name))a.props=(0,Km.evaluatedPropsToName)(r,a.props);let{props:c}=a;p();function p(){for(let m of o){if(l)h(m);if(a.allErrors)f(m);else r.var(d,!0),f(m),r.if(d)}}function h(m){for(let y in l)if(new RegExp(m).test(y))(0,Fm.checkStrictMode)(a,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function f(m){r.forIn("key",n,(y)=>{r.if(Si._`${(0,Jm.usePattern)(e,m)}.test(${y})`,()=>{let I=u.includes(m);if(!I)e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:Km.Type.Str},d);if(a.opts.unevaluated&&c!==!0)r.assign(Si._`${c}[${y}]`,!0);else if(!I&&!a.allErrors)r.if((0,Si.not)(d),()=>r.break())})})}}};Bm.default=E0});var Qm=g((Zm)=>{Object.defineProperty(Zm,"__esModule",{value:!0});var G0=j(),U0={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:r,schema:t,it:n}=e;if((0,G0.alwaysValidSchema)(n,t)){e.fail();return}let i=r.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Zm.default=U0});var xm=g((Hm)=>{Object.defineProperty(Hm,"__esModule",{value:!0});var F0=Re(),K0={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:F0.validateUnion,error:{message:"must match a schema in anyOf"}};Hm.default=K0});var ep=g((_m)=>{Object.defineProperty(_m,"__esModule",{value:!0});var Xi=z(),Y0=j(),Z0={message:"must match exactly one schema in oneOf",params:({params:e})=>Xi._`{passingSchemas: ${e.passing}}`},Q0={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Z0,code(e){let{gen:r,schema:t,parentSchema:n,it:i}=e;if(!Array.isArray(t))throw Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let a=t,s=r.let("valid",!1),o=r.let("passing",null),u=r.name("_valid");e.setParams({passing:o}),r.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){a.forEach((d,c)=>{let p;if((0,Y0.alwaysValidSchema)(i,d))r.var(u,!0);else p=e.subschema({keyword:"oneOf",schemaProp:c,compositeRule:!0},u);if(c>0)r.if(Xi._`${u} && ${s}`).assign(s,!1).assign(o,Xi._`[${o}, ${c}]`).else();r.if(u,()=>{if(r.assign(s,!0),r.assign(o,c),p)e.mergeEvaluated(p,Xi.Name)})})}}};_m.default=Q0});var tp=g((rp)=>{Object.defineProperty(rp,"__esModule",{value:!0});var x0=j(),_0={keyword:"allOf",schemaType:"array",code(e){let{gen:r,schema:t,it:n}=e;if(!Array.isArray(t))throw Error("ajv implementation error");let i=r.name("valid");t.forEach((a,s)=>{if((0,x0.alwaysValidSchema)(n,a))return;let o=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(o)})}};rp.default=_0});var sp=g((ap)=>{Object.defineProperty(ap,"__esModule",{value:!0});var Oi=z(),ip=j(),rR={message:({params:e})=>Oi.str`must match "${e.ifClause}" schema`,params:({params:e})=>Oi._`{failingKeyword: ${e.ifClause}}`},tR={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:rR,code(e){let{gen:r,parentSchema:t,it:n}=e;if(t.then===void 0&&t.else===void 0)(0,ip.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=np(n,"then"),a=np(n,"else");if(!i&&!a)return;let s=r.let("valid",!0),o=r.name("_valid");if(u(),e.reset(),i&&a){let d=r.let("ifClause");e.setParams({ifClause:d}),r.if(o,l("then",d),l("else",d))}else if(i)r.if(o,l("then"));else r.if((0,Oi.not)(o),l("else"));e.pass(s,()=>e.error(!0));function u(){let d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(d)}function l(d,c){return()=>{let p=e.subschema({keyword:d},o);if(r.assign(s,o),e.mergeValidEvaluated(p,s),c)r.assign(c,Oi._`${d}`);else e.setParams({ifClause:d})}}}};function np(e,r){let t=e.schema[r];return t!==void 0&&!(0,ip.alwaysValidSchema)(e,t)}ap.default=tR});var up=g((op)=>{Object.defineProperty(op,"__esModule",{value:!0});var iR=j(),aR={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:r,it:t}){if(r.if===void 0)(0,iR.checkStrictMode)(t,`"${e}" without "if" is ignored`)}};op.default=aR});var Ks=g((lp)=>{Object.defineProperty(lp,"__esModule",{value:!0});var oR=Ms(),uR=Rm(),lR=Gs(),dR=$m(),cR=Xm(),mR=Li(),pR=Nm(),fR=Js(),hR=Um(),yR=Ym(),IR=Qm(),gR=xm(),qR=ep(),wR=tp(),bR=sp(),AR=up();function CR(e=!1){let r=[IR.default,gR.default,qR.default,wR.default,bR.default,AR.default,pR.default,fR.default,mR.default,hR.default,yR.default];if(e)r.push(uR.default,dR.default);else r.push(oR.default,lR.default);return r.push(cR.default),r}lp.default=CR});var cp=g((dp)=>{Object.defineProperty(dp,"__esModule",{value:!0});var U=z(),RR={message:({schemaCode:e})=>U.str`must match format "${e}"`,params:({schemaCode:e})=>U._`{format: ${e}}`},LR={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:RR,code(e,r){let{gen:t,data:n,$data:i,schema:a,schemaCode:s,it:o}=e,{opts:u,errSchemaPath:l,schemaEnv:d,self:c}=o;if(!u.validateFormats)return;if(i)p();else h();function p(){let f=t.scopeValue("formats",{ref:c.formats,code:u.code.formats}),m=t.const("fDef",U._`${f}[${s}]`),y=t.let("fType"),I=t.let("format");t.if(U._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>t.assign(y,U._`${m}.type || "string"`).assign(I,U._`${m}.validate`),()=>t.assign(y,U._`"string"`).assign(I,m)),e.fail$data((0,U.or)(w(),q()));function w(){if(u.strictSchema===!1)return U.nil;return U._`${s} && !${I}`}function q(){let v=d.$async?U._`(${m}.async ? await ${I}(${n}) : ${I}(${n}))`:U._`${I}(${n})`,k=U._`(typeof ${I} == "function" ? ${v} : ${I}.test(${n}))`;return U._`${I} && ${I} !== true && ${y} === ${r} && !${k}`}}function h(){let f=c.formats[a];if(!f){w();return}if(f===!0)return;let[m,y,I]=q(f);if(m===r)e.pass(v());function w(){if(u.strictSchema===!1){c.logger.warn(k());return}throw Error(k());function k(){return`unknown format "${a}" ignored in schema at path "${l}"`}}function q(k){let G=k instanceof RegExp?(0,U.regexpCode)(k):u.code.formats?U._`${u.code.formats}${(0,U.getProperty)(a)}`:void 0,b=t.scopeValue("formats",{key:a,ref:k,code:G});if(typeof k=="object"&&!(k instanceof RegExp))return[k.type||"string",k.validate,U._`${b}.validate`];return["string",k,b]}function v(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!d.$async)throw Error("async format in sync schema");return U._`await ${I}(${n})`}return typeof y=="function"?U._`${I}(${n})`:U._`${I}.test(${n})`}}}};dp.default=LR});var Bs=g((mp)=>{Object.defineProperty(mp,"__esModule",{value:!0});var $R=cp(),SR=[$R.default];mp.default=SR});var Ys=g((pp)=>{Object.defineProperty(pp,"__esModule",{value:!0});pp.contentVocabulary=pp.metadataVocabulary=void 0;pp.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];pp.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Ip=g((yp)=>{Object.defineProperty(yp,"__esModule",{value:!0});var zR=Ts(),WR=Ds(),jR=Ks(),PR=Bs(),hp=Ys(),TR=[zR.default,WR.default,(0,jR.default)(),PR.default,hp.metadataVocabulary,hp.contentVocabulary];yp.default=TR});var bp=g((qp)=>{Object.defineProperty(qp,"__esModule",{value:!0});qp.DiscrError=void 0;var gp;(function(e){e.Tag="tag",e.Mapping="mapping"})(gp||(qp.DiscrError=gp={}))});var Qs=g((Cp)=>{Object.defineProperty(Cp,"__esModule",{value:!0});var lt=z(),Zs=bp(),Ap=Ft(),NR=at(),DR=j(),ER={message:({params:{discrError:e,tagName:r}})=>e===Zs.DiscrError.Tag?`tag "${r}" must be string`:`value of tag "${r}" must be in oneOf`,params:({params:{discrError:e,tag:r,tagName:t}})=>lt._`{error: ${e}, tag: ${t}, tagValue: ${r}}`},MR={keyword:"discriminator",type:"object",schemaType:"object",error:ER,code(e){let{gen:r,data:t,schema:n,parentSchema:i,it:a}=e,{oneOf:s}=i;if(!a.opts.discriminator)throw Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw Error("discriminator: requires propertyName");if(n.mapping)throw Error("discriminator: mapping is not supported");if(!s)throw Error("discriminator: requires oneOf keyword");let u=r.let("valid",!1),l=r.const("tag",lt._`${t}${(0,lt.getProperty)(o)}`);r.if(lt._`typeof ${l} == "string"`,()=>d(),()=>e.error(!1,{discrError:Zs.DiscrError.Tag,tag:l,tagName:o})),e.ok(u);function d(){let h=p();r.if(!1);for(let f in h)r.elseIf(lt._`${l} === ${f}`),r.assign(u,c(h[f]));r.else(),e.error(!1,{discrError:Zs.DiscrError.Mapping,tag:l,tagName:o}),r.endIf()}function c(h){let f=r.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},f);return e.mergeEvaluated(m,lt.Name),f}function p(){var h;let f={},m=I(i),y=!0;for(let v=0;v<s.length;v++){let k=s[v];if((k===null||k===void 0?void 0:k.$ref)&&!(0,DR.schemaHasRulesButRef)(k,a.self.RULES)){let b=k.$ref;if(k=Ap.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,b),k instanceof Ap.SchemaEnv)k=k.schema;if(k===void 0)throw new NR.default(a.opts.uriResolver,a.baseId,b)}let G=(h=k===null||k===void 0?void 0:k.properties)===null||h===void 0?void 0:h[o];if(typeof G!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(m||I(k)),w(G,v)}if(!y)throw Error(`discriminator: "${o}" must be required`);return f;function I({required:v}){return Array.isArray(v)&&v.includes(o)}function w(v,k){if(v.const)q(v.const,k);else if(v.enum)for(let G of v.enum)q(G,k);else throw Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function q(v,k){if(typeof v!="string"||v in f)throw Error(`discriminator: "${o}" values must be unique strings`);f[v]=k}}}};Cp.default=MR});var kp=g((hW,UR)=>{UR.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Lp=g((me,Hs)=>{Object.defineProperty(me,"__esModule",{value:!0});me.MissingRefError=me.ValidationError=me.CodeGen=me.Name=me.nil=me.stringify=me.str=me._=me.KeywordCxt=me.Ajv=void 0;var JR=Ps(),FR=Ip(),KR=Qs(),Rp=kp(),BR=["/properties"],zi="http://json-schema.org/draft-07/schema";class nn extends JR.default{_addVocabularies(){if(super._addVocabularies(),FR.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(KR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(Rp,BR):Rp;this.addMetaSchema(e,zi,!1),this.refs["http://json-schema.org/schema"]=zi}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(zi)?zi:void 0)}}me.Ajv=nn;Hs.exports=me=nn;Hs.exports.Ajv=nn;Object.defineProperty(me,"__esModule",{value:!0});me.default=nn;var YR=it();Object.defineProperty(me,"KeywordCxt",{enumerable:!0,get:function(){return YR.KeywordCxt}});var dt=z();Object.defineProperty(me,"_",{enumerable:!0,get:function(){return dt._}});Object.defineProperty(me,"str",{enumerable:!0,get:function(){return dt.str}});Object.defineProperty(me,"stringify",{enumerable:!0,get:function(){return dt.stringify}});Object.defineProperty(me,"nil",{enumerable:!0,get:function(){return dt.nil}});Object.defineProperty(me,"Name",{enumerable:!0,get:function(){return dt.Name}});Object.defineProperty(me,"CodeGen",{enumerable:!0,get:function(){return dt.CodeGen}});var ZR=Ut();Object.defineProperty(me,"ValidationError",{enumerable:!0,get:function(){return ZR.default}});var QR=at();Object.defineProperty(me,"MissingRefError",{enumerable:!0,get:function(){return QR.default}})});var vo=g((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.dynamicAnchor=void 0;var Lo=z(),yL=ke(),Nf=Ft(),IL=wi(),gL={keyword:"$dynamicAnchor",schemaType:"string",code:(e)=>Df(e,e.schema)};function Df(e,r){let{gen:t,it:n}=e;n.schemaEnv.root.dynamicAnchors[r]=!0;let i=Lo._`${yL.default.dynamicAnchors}${(0,Lo.getProperty)(r)}`,a=n.errSchemaPath==="#"?n.validateName:qL(e);t.if(Lo._`!${i}`,()=>t.assign(i,a))}Ef.dynamicAnchor=Df;function qL(e){let{schemaEnv:r,schema:t,self:n}=e.it,{root:i,baseId:a,localRefs:s,meta:o}=r.root,{schemaId:u}=n.opts,l=new Nf.SchemaEnv({schema:t,schemaId:u,root:i,baseId:a,localRefs:s,meta:o});return Nf.compileSchema.call(n,l),(0,IL.getValidate)(e,l)}Ef.default=gL});var $o=g((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});Ff.dynamicRef=void 0;var Gf=z(),bL=ke(),Uf=wi(),AL={keyword:"$dynamicRef",schemaType:"string",code:(e)=>Jf(e,e.schema)};function Jf(e,r){let{gen:t,keyword:n,it:i}=e;if(r[0]!=="#")throw Error(`"${n}" only supports hash fragment reference`);let a=r.slice(1);if(i.allErrors)s();else{let u=t.let("valid",!1);s(u),e.ok(u)}function s(u){if(i.schemaEnv.root.dynamicAnchors[a]){let l=t.let("_v",Gf._`${bL.default.dynamicAnchors}${(0,Gf.getProperty)(a)}`);t.if(l,o(l,u),o(i.validateName,u))}else o(i.validateName,u)()}function o(u,l){return l?()=>t.block(()=>{(0,Uf.callRef)(e,u),t.let(l,!0)}):()=>(0,Uf.callRef)(e,u)}}Ff.dynamicRef=Jf;Ff.default=AL});var Yf=g((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});var kL=vo(),RL=j(),LL={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){if(e.schema)(0,kL.dynamicAnchor)(e,"");else(0,RL.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Bf.default=LL});var Qf=g((Zf)=>{Object.defineProperty(Zf,"__esModule",{value:!0});var $L=$o(),SL={keyword:"$recursiveRef",schemaType:"string",code:(e)=>(0,$L.dynamicRef)(e,e.schema)};Zf.default=SL});var xf=g((Hf)=>{Object.defineProperty(Hf,"__esModule",{value:!0});var OL=vo(),zL=$o(),WL=Yf(),jL=Qf(),PL=[OL.default,zL.default,WL.default,jL.default];Hf.default=PL});var rh=g((eh)=>{Object.defineProperty(eh,"__esModule",{value:!0});var _f=Li(),VL={keyword:"dependentRequired",type:"object",schemaType:"object",error:_f.error,code:(e)=>(0,_f.validatePropertyDeps)(e)};eh.default=VL});var nh=g((th)=>{Object.defineProperty(th,"__esModule",{value:!0});var DL=Li(),EL={keyword:"dependentSchemas",type:"object",schemaType:"object",code:(e)=>(0,DL.validateSchemaDeps)(e)};th.default=EL});var ah=g((ih)=>{Object.defineProperty(ih,"__esModule",{value:!0});var GL=j(),UL={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:r,it:t}){if(r.contains===void 0)(0,GL.checkStrictMode)(t,`"${e}" without "contains" is ignored`)}};ih.default=UL});var oh=g((sh)=>{Object.defineProperty(sh,"__esModule",{value:!0});var FL=rh(),KL=nh(),BL=ah(),YL=[FL.default,KL.default,BL.default];sh.default=YL});var dh=g((lh)=>{Object.defineProperty(lh,"__esModule",{value:!0});var fr=z(),uh=j(),QL=ke(),HL={message:"must NOT have unevaluated properties",params:({params:e})=>fr._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},xL={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:HL,code(e){let{gen:r,schema:t,data:n,errsCount:i,it:a}=e;if(!i)throw Error("ajv implementation error");let{allErrors:s,props:o}=a;if(o instanceof fr.Name)r.if(fr._`${o} !== true`,()=>r.forIn("key",n,(c)=>r.if(l(o,c),()=>u(c))));else if(o!==!0)r.forIn("key",n,(c)=>o===void 0?u(c):r.if(d(o,c),()=>u(c)));a.props=!0,e.ok(fr._`${i} === ${QL.default.errors}`);function u(c){if(t===!1){if(e.setParams({unevaluatedProperty:c}),e.error(),!s)r.break();return}if(!(0,uh.alwaysValidSchema)(a,t)){let p=r.name("valid");if(e.subschema({keyword:"unevaluatedProperties",dataProp:c,dataPropType:uh.Type.Str},p),!s)r.if((0,fr.not)(p),()=>r.break())}}function l(c,p){return fr._`!${c} || !${c}[${p}]`}function d(c,p){let h=[];for(let f in c)if(c[f]===!0)h.push(fr._`${p} !== ${f}`);return(0,fr.and)(...h)}}};lh.default=xL});var ph=g((mh)=>{Object.defineProperty(mh,"__esModule",{value:!0});var Dr=z(),ch=j(),ev={message:({params:{len:e}})=>Dr.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Dr._`{limit: ${e}}`},rv={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:ev,code(e){let{gen:r,schema:t,data:n,it:i}=e,a=i.items||0;if(a===!0)return;let s=r.const("len",Dr._`${n}.length`);if(t===!1)e.setParams({len:a}),e.fail(Dr._`${s} > ${a}`);else if(typeof t=="object"&&!(0,ch.alwaysValidSchema)(i,t)){let u=r.var("valid",Dr._`${s} <= ${a}`);r.if((0,Dr.not)(u),()=>o(u,a)),e.ok(u)}i.items=!0;function o(u,l){r.forRange("i",l,s,(d)=>{if(e.subschema({keyword:"unevaluatedItems",dataProp:d,dataPropType:ch.Type.Num},u),!i.allErrors)r.if((0,Dr.not)(u),()=>r.break())})}}};mh.default=rv});var hh=g((fh)=>{Object.defineProperty(fh,"__esModule",{value:!0});var nv=dh(),iv=ph(),av=[nv.default,iv.default];fh.default=av});var gh=g((Ih)=>{Object.defineProperty(Ih,"__esModule",{value:!0});var ov=Ts(),uv=Ds(),lv=Ks(),dv=xf(),cv=oh(),mv=hh(),pv=Bs(),yh=Ys(),fv=[dv.default,ov.default,uv.default,(0,lv.default)(!0),pv.default,yh.metadataVocabulary,yh.contentVocabulary,cv.default,mv.default];Ih.default=fv});var qh=g((hT,yv)=>{yv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var wh=g((yT,Iv)=>{Iv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var bh=g((IT,gv)=>{gv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Ah=g((gT,qv)=>{qv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Ch=g((qT,wv)=>{wv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var kh=g((wT,bv)=>{bv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Rh=g((bT,Av)=>{Av.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Lh=g((AT,Cv)=>{Cv.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var $h=g((vh)=>{Object.defineProperty(vh,"__esModule",{value:!0});var kv=qh(),Rv=wh(),Lv=bh(),vv=Ah(),$v=Ch(),Sv=kh(),Xv=Rh(),Ov=Lh(),zv=["/properties"];function Wv(e){return[kv,Rv,Lv,vv,$v,r(this,Sv),Xv,r(this,Ov)].forEach((t)=>this.addMetaSchema(t,void 0,!1)),this;function r(t,n){return e?t.$dataMetaSchema(n,zv):n}}vh.default=Wv});var Sh=g((ye,Xo)=>{Object.defineProperty(ye,"__esModule",{value:!0});ye.MissingRefError=ye.ValidationError=ye.CodeGen=ye.Name=ye.nil=ye.stringify=ye.str=ye._=ye.KeywordCxt=ye.Ajv2020=void 0;var Pv=Ps(),Tv=gh(),Vv=Qs(),Nv=$h(),So="https://json-schema.org/draft/2020-12/schema";class Ln extends Pv.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){if(super._addVocabularies(),Tv.default.forEach((e)=>this.addVocabulary(e)),this.opts.discriminator)this.addKeyword(Vv.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:r}=this.opts;if(!r)return;Nv.default.call(this,e),this.refs["http://json-schema.org/schema"]=So}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(So)?So:void 0)}}ye.Ajv2020=Ln;Xo.exports=ye=Ln;Xo.exports.Ajv2020=Ln;Object.defineProperty(ye,"__esModule",{value:!0});ye.default=Ln;var Dv=it();Object.defineProperty(ye,"KeywordCxt",{enumerable:!0,get:function(){return Dv.KeywordCxt}});var yt=z();Object.defineProperty(ye,"_",{enumerable:!0,get:function(){return yt._}});Object.defineProperty(ye,"str",{enumerable:!0,get:function(){return yt.str}});Object.defineProperty(ye,"stringify",{enumerable:!0,get:function(){return yt.stringify}});Object.defineProperty(ye,"nil",{enumerable:!0,get:function(){return yt.nil}});Object.defineProperty(ye,"Name",{enumerable:!0,get:function(){return yt.Name}});Object.defineProperty(ye,"CodeGen",{enumerable:!0,get:function(){return yt.CodeGen}});var Ev=Ut();Object.defineProperty(ye,"ValidationError",{enumerable:!0,get:function(){return Ev.default}});var Mv=at();Object.defineProperty(ye,"MissingRefError",{enumerable:!0,get:function(){return Mv.default}})});import{realpathSync as ey}from"node:fs";import{fileURLToPath as i$}from"node:url";var tu=Zi(ru(),1),{program:y$,createCommand:I$,createArgument:g$,createOption:q$,CommanderError:On,InvalidArgumentError:w$,InvalidOptionArgumentError:b$,Command:zn,Argument:A$,Option:Wn,Help:C$}=tu.default;var R={success:0,internal:1,usage:2,authentication:3,notFound:4,conflict:5,validation:6,remote:7,partial:8};class L extends Error{code;details;exitCode;constructor(e,r,t={}){super(r,t.cause===void 0?void 0:{cause:t.cause});this.name="CliError",this.code=e,this.details=t.details,this.exitCode=t.exitCode??R.internal}}function ia(e){if(e instanceof L)return e;if(e instanceof Error){let r=e;return new L(typeof r.code==="string"?r.code:"internal_error",r.message,{cause:e,...r.details!==void 0?{details:r.details}:{},...typeof r.exitCode==="number"?{exitCode:r.exitCode}:{}})}return new L("internal_error","The command could not be completed.")}function nu(e){let r=e.optsWithGlobals();return{...r.apiUrl?{apiUrl:r.apiUrl}:{},json:r.json===!0||r.format==="json",nonInteractive:r.nonInteractive??!1,...r.profile?{profile:r.profile}:{},...r.organization?{organization:r.organization}:{},...r.space?{space:r.space}:{}}}async function Y(e,r,t){return await r.createRuntime({globals:nu(e),reporter:t.reporter})}function C(e){return new L("usage_error",e,{exitCode:R.usage})}function aa(e,r="--input"){try{return JSON.parse(e)}catch{throw C(`${r} must be valid JSON.`)}}async function qt(e){if(e.yes)return!0;let r=nu(e.command);if(r.nonInteractive||r.json)throw C("This command requires --yes in JSON or non-interactive mode.");if(!e.dependencies.confirm)throw C("This command requires --yes when confirmation is unavailable.");return await e.dependencies.confirm(e.message)}function wt(){return{human:"Cancelled.",value:{cancelled:!0}}}var iu=[{id:"access.archivePolicy",group:"access-policies",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.archiveProfile",group:"access-profiles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.archiveRole",group:"access-roles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createPolicy",group:"access-policies",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createProfile",group:"access-profiles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.createRole",group:"access-roles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getPolicy",group:"access-policies",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getProfile",group:"access-profiles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.getRole",group:"access-roles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listConnectors",group:"access",command:"list-connectors",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-connectors",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listLinkedGroups",group:"access",command:"list-linked-groups",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listPolicies",group:"access-policies",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listProfiles",group:"access-profiles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.listRoles",group:"access-roles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"connectorInstanceId",in:"query",required:!1},{name:"connectorSlug",in:"query",required:!1},{name:"provisioningMethodType",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishPolicy",group:"access-policies",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishProfile",group:"access-profiles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.publishRole",group:"access-roles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updatePolicy",group:"access-policies",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"policyId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updateProfile",group:"access-profiles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"profileId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"access.updateRole",group:"access-roles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.cancelApplicationReconnect",group:"applications",command:"cancel-application-reconnect",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect/cancel",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.confirmApplication",group:"applications",command:"confirm-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/confirm",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.connectApplication",group:"applications",command:"connect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}/connect",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"slug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.createCustomIntegration",group:"applications",command:"create-custom-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.disconnectApplication",group:"applications",command:"disconnect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.disconnectIntegration",group:"applications",command:"disconnect-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.duplicateApplication",group:"applications",command:"duplicate-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/duplicate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplication",group:"applications",command:"get-application",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"providerSyncStatus",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationCatalog",group:"applications",command:"get-application-catalog",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"slug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationIssueSyncSettings",group:"applications",command:"get-application-issue-sync-settings",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.getApplicationJiraForgeStatus",group:"applications",command:"get-application-jira-forge-status",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/jira-forge",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationAutomations",group:"applications",command:"list-application-automations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationAvailability",group:"applications",command:"list-application-availability",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/availability",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slug",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationGithubRepositories",group:"applications",command:"list-application-github-repositories",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/github/repositories",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationGroups",group:"applications",command:"list-application-groups",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationIssueTeams",group:"applications",command:"list-application-issue-teams",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-teams",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplications",group:"applications",command:"list-applications",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"attention",in:"query",required:!1},{name:"connectorInstanceId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationSyncRuns",group:"applications",command:"list-application-sync-runs",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync-runs",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"event",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationTriggerFieldOptions",group:"applications",command:"list-application-trigger-field-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/trigger-field-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"field",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listApplicationWorkflows",group:"applications",command:"list-application-workflows",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/workflows",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"visibility",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listConnectedApplications",group:"applications",command:"list-connected-applications",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/connected",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slug",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listIntegrations",group:"applications",command:"list-integrations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"alias",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"includeDeleted",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"nangoConnectionId",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"source",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.listIntegrationTools",group:"applications",command:"list-integration-tools",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/tools",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.provisionApplicationWebhook",group:"applications",command:"provision-application-webhook",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/okta-webhook",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.reconnectApplication",group:"applications",command:"reconnect-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.renameIntegration",group:"applications",command:"rename-integration",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setApplicationActionMode",group:"applications",command:"set-application-action-mode",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/action-mode",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setApplicationEnabled",group:"applications",command:"set-application-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/enabled",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.setIntegrationEnabled",group:"applications",command:"set-integration-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/enabled",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.triggerApplicationSync",group:"applications",command:"trigger-application-sync",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.updateApplication",group:"applications",command:"update-application",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"applications.updateApplicationIssueSyncSettings",group:"applications",command:"update-application-issue-sync-settings",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"id",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.archive",group:"assignment-groups",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.create",group:"assignment-groups",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.get",group:"assignment-groups",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.getMembership",group:"assignment-groups",command:"get-membership",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/membership",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.getSettings",group:"assignment-groups",command:"get-settings",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/settings",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.list",group:"assignment-groups",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"kind",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"offset",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"routableOnly",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.listMembers",group:"assignment-groups",command:"list-members",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/members",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"access",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.setImportEnabled",group:"assignment-groups",command:"set-import-enabled",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/connections/{connectorInstanceId}/import",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.setImportSelection",group:"assignment-groups",command:"set-import-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/import-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.unarchive",group:"assignment-groups",command:"unarchive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/unarchive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-groups.update",group:"assignment-groups",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"assignmentGroupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.create",group:"assignment-rules",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.list",group:"assignment-rules",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.remove",group:"assignment-rules",command:"remove",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"ruleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.reorder",group:"assignment-rules",command:"reorder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/reorder",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"assignment-rules.update",group:"assignment-rules",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"ruleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.approveEditProposal",group:"automations",command:"approve-edit-proposal",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/approve",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.archive",group:"automations",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.archived",group:"automations",command:"archived",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/archived",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.copilot",group:"automations",command:"copilot",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/copilot",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.create",group:"automations",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createTrigger",group:"automations",command:"create-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createVersion",group:"automations",command:"create-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.createWorkflowTrigger",group:"automations",command:"create-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.deleteTrigger",group:"automations",command:"delete-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.deleteWorkflowTrigger",group:"automations",command:"delete-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.disableTrigger",group:"automations",command:"disable-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/disable",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.get",group:"automations",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.getEditProposal",group:"automations",command:"get-edit-proposal",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.helpDesk",group:"automations",command:"help-desk",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/help-desk",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.list",group:"automations",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"slugId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listAutomationTriggers",group:"automations",command:"list-automation-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listEditProposals",group:"automations",command:"list-edit-proposals",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"threadId",in:"query",required:!0},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listTriggers",group:"automations",command:"list-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listVersions",group:"automations",command:"list-versions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.listWorkflowTriggers",group:"automations",command:"list-workflow-triggers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.managementStats",group:"automations",command:"management-stats",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/management-stats",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.rejectEditProposal",group:"automations",command:"reject-edit-proposal",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/reject",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"proposalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.restore",group:"automations",command:"restore",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/restore",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.revealWebhookSecret",group:"automations",command:"reveal-webhook-secret",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/webhook-secret",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.revealWorkflowWebhookSecret",group:"automations",command:"reveal-workflow-webhook-secret",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}/webhook-secret",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.spaceStats",group:"automations",command:"space-stats",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/space-stats",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.summaries",group:"automations",command:"summaries",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/summaries",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.update",group:"automations",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"automationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.updateTrigger",group:"automations",command:"update-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"automations.updateWorkflowTrigger",group:"automations",command:"update-workflow-trigger",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"triggerId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.addSubscribers",group:"cases",command:"add-subscribers",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscribers",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveCase",group:"cases",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveInboxApproval",group:"cases",command:"archive-inbox-approval",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.archiveInboxCase",group:"cases",command:"archive-inbox-case",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.comment",group:"cases",command:"comment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/comments",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createCase",group:"cases",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createCategory",group:"cases",command:"create-category",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-categories",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.createLabel",group:"cases",command:"create-label",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-labels",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.deleteAttachment",group:"cases",command:"delete-attachment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"attachmentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.downloadAttachment",group:"cases",command:"download-attachment",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}/download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"attachmentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.escalateRequest",group:"requests",command:"escalate",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/requests/{sourceThreadId}/escalate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceThreadId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.getCase",group:"cases",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"space",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.getSubscription",group:"cases",command:"get-subscription",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.linkRelation",group:"cases",command:"link-relation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.linkThread",group:"cases",command:"link-thread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listActivity",group:"cases",command:"list-activity",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/activity",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listAssigneeCandidates",group:"cases",command:"list-assignee-candidates",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-assignee-candidates",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listAttachments",group:"cases",command:"list-attachments",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCases",group:"cases",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCasesGrouped",group:"cases",command:"list-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listCategories",group:"cases",command:"list-categories",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-categories",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listInboxCaseGroupOptions",group:"cases",command:"list-inbox-case-group-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/group-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"inboxState",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"presetAssigneeMode",in:"query",required:!1},{name:"notificationType",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"groupQ",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listInboxCases",group:"cases",command:"list-inbox-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"inboxState",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"presetAssigneeMode",in:"query",required:!1},{name:"notificationType",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listLabels",group:"cases",command:"list-labels",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/labels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCaseFilterOptions",group:"cases",command:"list-my-case-filter-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine/filter-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"kind",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCases",group:"cases",command:"list-my-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listMyCasesGrouped",group:"cases",command:"list-my-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-mine/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listReferenceData",group:"cases",command:"list-reference-data",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/case-reference-data",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"kind",in:"query",required:!0},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSourceLinks",group:"cases",command:"list-source-links",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/source-links",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCaseFilterOptions",group:"cases",command:"list-subscribed-case-filter-options",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/filter-options",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"kind",in:"query",required:!0},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCases",group:"cases",command:"list-subscribed-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribedCasesGrouped",group:"cases",command:"list-subscribed-cases-grouped",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/grouped",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"withoutParent",in:"query",required:!1},{name:"withoutRequester",in:"query",required:!1},{name:"withoutCategory",in:"query",required:!1},{name:"id",in:"query",required:!1},{name:"statusType",in:"query",required:!1},{name:"statusGroup",in:"query",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"statusId",in:"query",required:!1},{name:"stageCategory",in:"query",required:!1},{name:"priority",in:"query",required:!1},{name:"assigneeUserId",in:"query",required:!1},{name:"assignmentGroupId",in:"query",required:!1},{name:"requesterUserId",in:"query",required:!1},{name:"categoryId",in:"query",required:!1},{name:"labelId",in:"query",required:!1},{name:"fieldFilters",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"groupBy",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listSubscribers",group:"cases",command:"list-subscribers",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscribers",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listThreads",group:"cases",command:"list-threads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.listWorkPlan",group:"cases",command:"list-work-plan",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/work-plan",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.markRead",group:"cases",command:"mark-read",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.markUnread",group:"cases",command:"mark-unread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/unread",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.move",group:"cases",command:"move",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/move",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.previewMove",group:"cases",command:"preview-move",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/move-preview",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"caseTypeId",in:"query",required:!1},{name:"targetSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readContext",group:"cases",command:"read-context",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/context",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunCursor",in:"query",required:!1},{name:"workflowRunLimit",in:"query",required:!1},{name:"automationRunCursor",in:"query",required:!1},{name:"automationRunLimit",in:"query",required:!1},{name:"sessionCursor",in:"query",required:!1},{name:"sessionLimit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readInboxApproval",group:"cases",command:"read-inbox-approval",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.readInboxCase",group:"cases",command:"read-inbox-case",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/read",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.removeSubscriber",group:"cases",command:"remove-subscriber",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscribers/{userId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"userId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.reopenCase",group:"cases",command:"reopen",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/reopen",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.search",group:"cases",command:"search",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.spawnThread",group:"cases",command:"spawn-thread",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads/spawn",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.subscribe",group:"cases",command:"subscribe",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.unlinkRelation",group:"cases",command:"unlink-relation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations/{relationId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"relationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.unsubscribe",group:"cases",command:"unsubscribe",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.updateCase",group:"cases",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"cases.uploadAttachment",group:"cases",command:"upload-attachment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"caseIdOrIdentifier",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.createAdminPortalLink",group:"directory",command:"create-admin-portal-link",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/admin-portal-link",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.list",group:"directory",command:"list",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/directory",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"groupMembersLimit",in:"query",required:!1},{name:"groupsCursor",in:"query",required:!1},{name:"groupsLimit",in:"query",required:!1},{name:"userId",in:"query",required:!1},{name:"usersCursor",in:"query",required:!1},{name:"usersLimit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.listGroupMembers",group:"directory",command:"list-group-members",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/groups/{groupId}/members",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"groupId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.searchGroups",group:"directory",command:"search-groups",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/search/groups",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.searchUsers",group:"directory",command:"search-users",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/search/users",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"directory.sync",group:"directory",command:"sync",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/directory/sync",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"identity.getCurrentPrincipal",group:"identity",command:"get-current-principal",mutation:!1,idempotent:!1,path:"/v1/me",method:"get",binaryResponse:!1,parameters:[{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"identity.listSpaces",group:"identity",command:"list-spaces",mutation:!1,idempotent:!1,path:"/v1/spaces",method:"get",binaryResponse:!1,parameters:[{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveFolder",group:"knowledge",command:"archive-folder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveSubfolder",group:"knowledge",command:"archive-subfolder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"folderId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.archiveUpload",group:"knowledge",command:"archive-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.browseGithubKnowledgeRepoFile",group:"knowledge",command:"browse-github-knowledge-repo-file",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/file",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"path",in:"query",required:!0},{name:"repo",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.browseGithubKnowledgeRepoTree",group:"knowledge",command:"browse-github-knowledge-repo-tree",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/tree",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"repo",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateConfluenceConnectorDocuments",group:"knowledge",command:"bulk-update-confluence-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateGoogleDriveConnectorDocuments",group:"knowledge",command:"bulk-update-google-drive-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateNotionConnectorDocuments",group:"knowledge",command:"bulk-update-notion-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateSharePointConnectorDocuments",group:"knowledge",command:"bulk-update-share-point-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.bulkUpdateSimpplrConnectorDocuments",group:"knowledge",command:"bulk-update-simpplr-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.createUpload",group:"knowledge",command:"create-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.deleteConnectorKnowledge",group:"knowledge",command:"delete-connector-knowledge",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/knowledge",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listConfluenceConnectorDocuments",group:"knowledge",command:"list-confluence-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listConfluenceConnectorSpaces",group:"knowledge",command:"list-confluence-connector-spaces",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-spaces",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listFolders",group:"knowledge",command:"list-folders",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGithubConnectorRepos",group:"knowledge",command:"list-github-connector-repos",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGithubKnowledgeRepos",group:"knowledge",command:"list-github-knowledge-repos",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGoogleDriveConnectorDocuments",group:"knowledge",command:"list-google-drive-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listGoogleDriveConnectorDrives",group:"knowledge",command:"list-google-drive-connector-drives",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/drives",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listNotionConnectorDocuments",group:"knowledge",command:"list-notion-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listOrganizationDocuments",group:"knowledge",command:"list-organization-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"provider",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"sortDirection",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listOrganizationKnowledgeProviderCounts",group:"knowledge",command:"list-organization-knowledge-provider-counts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/provider-counts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSharePointConnectorDocuments",group:"knowledge",command:"list-share-point-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSharePointConnectorSites",group:"knowledge",command:"list-share-point-connector-sites",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-sites",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSimpplrConnectorDocuments",group:"knowledge",command:"list-simpplr-connector-documents",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge/documents",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"availability",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"confluenceSpaceId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSimpplrConnectorSites",group:"knowledge",command:"list-simpplr-connector-sites",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-sites",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listSlackConnectorChannels",group:"knowledge",command:"list-slack-connector-channels",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.listUploads",group:"knowledge",command:"list-uploads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"folder",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.readOrganizationUpload",group:"knowledge",command:"read-organization-upload",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/uploads/{documentId}/content",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.readUpload",group:"knowledge",command:"read-upload",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/content",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.reindexUpload",group:"knowledge",command:"reindex-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/reindex",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.renameFolder",group:"knowledge",command:"rename-folder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.renameSubfolder",group:"knowledge",command:"rename-subfolder",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"folderId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.replaceGithubKnowledgeRepos",group:"knowledge",command:"replace-github-knowledge-repos",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.search",group:"knowledge",command:"search",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.searchNotionConnectorDocuments",group:"knowledge",command:"search-notion-connector-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/search",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncConfluenceConnectorDocument",group:"knowledge",command:"sync-confluence-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncGoogleDriveConnectorDocument",group:"knowledge",command:"sync-google-drive-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.syncNotionConnectorDocument",group:"knowledge",command:"sync-notion-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.triggerGithubKnowledgeSync",group:"knowledge",command:"trigger-github-knowledge-sync",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/sync",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateConfluenceConnectorDocument",group:"knowledge",command:"update-confluence-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateConfluenceConnectorSelection",group:"knowledge",command:"update-confluence-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateFolderDocuments",group:"knowledge",command:"update-folder-documents",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/documents",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sourceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGithubConnectorRepos",group:"knowledge",command:"update-github-connector-repos",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGoogleDriveConnectorDocument",group:"knowledge",command:"update-google-drive-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateGoogleDriveConnectorSelection",group:"knowledge",command:"update-google-drive-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateNotionConnectorDocument",group:"knowledge",command:"update-notion-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateNotionConnectorSelection",group:"knowledge",command:"update-notion-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSharePointConnectorDocument",group:"knowledge",command:"update-share-point-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSharePointConnectorSelection",group:"knowledge",command:"update-share-point-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSimpplrConnectorDocument",group:"knowledge",command:"update-simpplr-connector-document",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge/documents/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSimpplrConnectorSelection",group:"knowledge",command:"update-simpplr-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorAvailability",group:"knowledge",command:"update-slack-connector-availability",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/availability",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorBackfill",group:"knowledge",command:"update-slack-connector-backfill",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-backfill",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorChannelAvailability",group:"knowledge",command:"update-slack-connector-channel-availability",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channel-availability",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateSlackConnectorSelection",group:"knowledge",command:"update-slack-connector-selection",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-selection",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"knowledge.updateUpload",group:"knowledge",command:"update-upload",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"documentId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.archive",group:"labels",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/{labelId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"labelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.assignNames",group:"labels",command:"assign-names",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/assign",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.create",group:"labels",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.list",group:"labels",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/labels",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"query",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.listLinks",group:"labels",command:"list-links",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/links",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"entityType",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.resolveNames",group:"labels",command:"resolve-names",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/resolve",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.setLabels",group:"labels",command:"set-labels",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/links/{entityType}/{entityId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"entityType",in:"path",required:!0},{name:"entityId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"labels.update",group:"labels",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/labels/{labelId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"labelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.acceptQuarantine",group:"organization-email",command:"accept-quarantine",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/accept",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"eventId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.deleteSuppression",group:"organization-email",command:"delete-suppression",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/suppressions/{suppressionId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"suppressionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.disableInstallation",group:"organization-email",command:"disable-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.enableInstallation",group:"organization-email",command:"enable-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.getInstallation",group:"organization-email",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.listQuarantine",group:"organization-email",command:"list-quarantine",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.listSuppressions",group:"organization-email",command:"list-suppressions",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/email/suppressions",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-email.rejectQuarantine",group:"organization-email",command:"reject-quarantine",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/reject",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"eventId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.confirmInstall",group:"organization-github",command:"confirm-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation/confirm",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.disconnectInstallation",group:"organization-github",command:"disconnect-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.getInstallation",group:"organization-github",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.getInstallationDetails",group:"organization-github",command:"get-installation-details",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation/details",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"repoPage",in:"query",required:!1},{name:"repoPageSize",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-github.startInstall",group:"organization-github",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/github-app/installation",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.createChannelSettingsRoute",group:"organization-slack",command:"create-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.deleteChannelSettingsRoute",group:"organization-slack",command:"delete-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes/{routeId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"routeId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.disconnectInstallation",group:"organization-slack",command:"disconnect-installation",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/installation",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.getInstallation",group:"organization-slack",command:"get-installation",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/installation",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.listChannelSettings",group:"organization-slack",command:"list-channel-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.startInstall",group:"organization-slack",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/install",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.syncChannelSettings",group:"organization-slack",command:"sync-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/sync",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelEmojis",group:"organization-slack",command:"update-channel-emojis",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/emojis",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelIntakeMode",group:"organization-slack",command:"update-channel-intake-mode",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/intake-mode",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-slack.updateChannelSettings",group:"organization-slack",command:"update-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.archive",group:"organization-spaces",command:"archive",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.create",group:"organization-spaces",command:"create",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.join",group:"organization-spaces",command:"join",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/join",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.list",group:"organization-spaces",command:"list",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setEscalationMute",group:"organization-spaces",command:"set-escalation-mute",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-mute",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-spaces.setOrganizationRequestRouting",group:"organization-spaces",command:"set-organization-request-routing",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/request-routing",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.createChannelSettingsRoute",group:"organization-teams",command:"create-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.createGraphSubscription",group:"organization-teams",command:"create-graph-subscription",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.deleteChannelSettingsRoute",group:"organization-teams",command:"delete-channel-settings-route",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes/{routeId}",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"routeId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.disconnectConnection",group:"organization-teams",command:"disconnect-connection",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connection",method:"delete",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getAppPackage",group:"organization-teams",command:"get-app-package",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/app-package/content",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getAppPackageStatus",group:"organization-teams",command:"get-app-package-status",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/app-package",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.getConnection",group:"organization-teams",command:"get-connection",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connection",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.listChannelSettings",group:"organization-teams",command:"list-channel-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.renewGraphSubscriptions",group:"organization-teams",command:"renew-graph-subscriptions",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions/renew",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.startInstall",group:"organization-teams",command:"start-install",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/connect",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelEmojis",group:"organization-teams",command:"update-channel-emojis",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/emojis",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelIntakeMode",group:"organization-teams",command:"update-channel-intake-mode",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/intake-mode",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organization-teams.updateChannelSettings",group:"organization-teams",command:"update-channel-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"channelId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.createInvite",group:"organizations",command:"create-invite",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/invites",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.createMembership",group:"organizations",command:"create-membership",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.getPerson",group:"organizations",command:"get-person",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/{personId}",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"personId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.getSettings",group:"organizations",command:"get-settings",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/settings",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listGroups",group:"organizations",command:"list-groups",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/groups",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"spaceId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"identityId",in:"query",required:!1},{name:"includeMembershipLastObserved",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"sourceId",in:"query",required:!1},{name:"sourceType",in:"query",required:!1},{name:"scope",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listGroupSources",group:"organizations",command:"list-group-sources",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/group-sources",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"sourceType",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listInvites",group:"organizations",command:"list-invites",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/invites",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"role",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listMembershipLabels",group:"organizations",command:"list-membership-labels",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships/labels",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"userId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listMemberships",group:"organizations",command:"list-memberships",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listPeople",group:"organizations",command:"list-people",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"groupId",in:"query",required:!1},{name:"groupSourceId",in:"query",required:!1},{name:"groupSourceType",in:"query",required:!1},{name:"directory",in:"query",required:!1},{name:"includeTotal",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"role",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sort",in:"query",required:!1},{name:"direction",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listPersonApplications",group:"organizations",command:"list-person-applications",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/{personId}/applications",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"personId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listProvisionableLinkedGroups",group:"organizations",command:"list-provisionable-linked-groups",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/provisionable-linked-groups",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"scope",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.listRoles",group:"organizations",command:"list-roles",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/roles",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.revokeInvite",group:"organizations",command:"revoke-invite",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/invites/{inviteId}/revoke",method:"post",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"inviteId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.searchPeople",group:"organizations",command:"search-people",mutation:!1,idempotent:!1,path:"/v1/organizations/{organizationId}/people/search",method:"get",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"spaceId",in:"query",required:!1},{name:"includeAllDirectoryPeople",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"excludeCurrentSpace",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"membersOnly",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"selectedId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.updateMembership",group:"organizations",command:"update-membership",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/memberships/{membershipId}",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"organizations.updateSettings",group:"organizations",command:"update-settings",mutation:!0,idempotent:!1,path:"/v1/organizations/{organizationId}/settings",method:"patch",binaryResponse:!1,parameters:[{name:"organizationId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.archive",group:"sessions",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createOrganizationRequestSession",group:"sessions",command:"create-organization-request-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/organization-request-sessions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createOrganizationRequestSessionAndSubmit",group:"sessions",command:"create-organization-request-session-and-submit",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/organization-request-sessions/submit",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createSession",group:"sessions",command:"create-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createSessionAndSubmit",group:"sessions",command:"create-session-and-submit",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/submit",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.createWorkflowSuggestionSession",group:"sessions",command:"create-workflow-suggestion-session",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/session-builders/workflow-suggestions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.deleteArtifact",group:"sessions",command:"delete-artifact",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.downloadArtifact",group:"sessions",command:"download-artifact",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}/download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"version",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.downloadFile",group:"sessions",command:"download-file",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-download",method:"get",binaryResponse:!0,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"path",in:"query",required:!0},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.forceResponse",group:"sessions",command:"force-response",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages/{messageId}/respond",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"messageId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.fork",group:"sessions",command:"fork",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/fork",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.get",group:"sessions",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getArtifact",group:"sessions",command:"get-artifact",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"artifactId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getCase",group:"sessions",command:"get-case",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases/{caseId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"caseId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getFilePreview",group:"sessions",command:"get-file-preview",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-preview",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"path",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getOrganizationRequestDestination",group:"sessions",command:"get-organization-request-destination",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/session-request-destinations/{destinationSpaceId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"destinationSpaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getRuntime",group:"sessions",command:"get-runtime",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.getWorkflowApproval",group:"sessions",command:"get-workflow-approval",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/workflow-approvals/{approvalId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"approvalId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"runId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.intakeRequest",group:"requests",command:"intake",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/requests",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.list",group:"sessions",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"excludeCustomAutomationSessions",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"purpose",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"triggeredByKind",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"createdBy",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listArtifacts",group:"sessions",command:"list-artifacts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/artifacts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"createdByUserId",in:"query",required:!1},{name:"createdByAutomationId",in:"query",required:!1},{name:"sessionId",in:"query",required:!1},{name:"createdAtFrom",in:"query",required:!1},{name:"createdAtTo",in:"query",required:!1},{name:"updatedAtFrom",in:"query",required:!1},{name:"updatedAtTo",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listCases",group:"sessions",command:"list-cases",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listFileChildren",group:"sessions",command:"list-file-children",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-children",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"path",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listFiles",group:"sessions",command:"list-files",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/files",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listMessages",group:"sessions",command:"list-messages",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listOrganizationRequestDestinations",group:"sessions",command:"list-organization-request-destinations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/session-request-destinations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listParticipants",group:"sessions",command:"list-participants",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/participants",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listTasks",group:"sessions",command:"list-tasks",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/tasks",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.listUploads",group:"sessions",command:"list-uploads",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"workflowRunId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.muteAutomation",group:"sessions",command:"mute-automation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/mute",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.readCaseSession",group:"sessions",command:"read-transcript",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/transcript",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"afterSeq",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.rename",group:"sessions",command:"rename",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.setVisibility",group:"sessions",command:"set-visibility",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/visibility",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.startBrowser",group:"sessions",command:"start-browser",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/browser",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.statusCounts",group:"sessions",command:"status-counts",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/status-counts",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"limit",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"mine",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"excludeCustomAutomationSessions",in:"query",required:!1},{name:"includeTotalCount",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"purpose",in:"query",required:!1},{name:"after",in:"query",required:!1},{name:"before",in:"query",required:!1},{name:"updatedAfter",in:"query",required:!1},{name:"updatedBefore",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"triggeredByKind",in:"query",required:!1},{name:"automationId",in:"query",required:!1},{name:"createdBy",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.submitMessage",group:"sessions",command:"submit-message",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.unarchive",group:"sessions",command:"unarchive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unarchive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.unmuteAutomation",group:"sessions",command:"unmute-automation",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unmute",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.updateFileVisibility",group:"sessions",command:"update-file-visibility",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-visibility",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"sessions.uploadFiles",group:"sessions",command:"upload-files",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"sessionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.archiveSkill",group:"skills",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.createSkill",group:"skills",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.createSkillVersion",group:"skills",command:"create-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.discardSkillDraft",group:"skills",command:"discard-draft",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/draft/discard",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.getSkill",group:"skills",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.getSkillVersion",group:"skills",command:"get-version",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"skillVersionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.listSkillAutomations",group:"skills",command:"list-automations",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/automations",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.listSkills",group:"skills",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/skills",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.publishSkillVersion",group:"skills",command:"publish-version",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"skillVersionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"expectedRevision",in:"query",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"skills.updateSkillTags",group:"skills",command:"update-tags",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/tags",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"skillId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.archive",group:"space-access-roles",command:"archive",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/archive",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.create",group:"space-access-roles",command:"create",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.discard",group:"space-access-roles",command:"discard",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/discard",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.duplicate",group:"space-access-roles",command:"duplicate",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/duplicate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.get",group:"space-access-roles",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.list",group:"space-access-roles",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"excludeRoleId",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"sortBy",in:"query",required:!1},{name:"sortDir",in:"query",required:!1},{name:"type",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.publish",group:"space-access-roles",command:"publish",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-access-roles.update",group:"space-access-roles",command:"update",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listBlockedActions",group:"space-action-grants",command:"list-blocked-actions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/blocked-actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listCatalog",group:"space-action-grants",command:"list-catalog",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listGrants",group:"space-action-grants",command:"list-grants",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.listPermissions",group:"space-action-grants",command:"list-permissions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.replaceGrants",group:"space-action-grants",command:"replace-grants",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"roleId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"space-action-grants.replaceRoles",group:"space-action-grants",command:"replace-roles",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions/{actionSlug}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"connectorInstanceId",in:"path",required:!0},{name:"actionSlug",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.addGroupMembers",group:"spaces",command:"add-group-members",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/group-members",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.addMember",group:"spaces",command:"add-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.leave",group:"spaces",command:"leave",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/leave",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.listMembers",group:"spaces",command:"list-members",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/members",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"accessRoleId",in:"query",required:!1},{name:"cursor",in:"query",required:!1},{name:"eligibleForAssignment",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"roleSlug",in:"query",required:!1},{name:"search",in:"query",required:!1},{name:"userId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.removeMember",group:"spaces",command:"remove-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/{membershipId}/remove",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.setDefaultAssignment",group:"spaces",command:"set-default-assignment",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/default-assignment",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.updateMember",group:"spaces",command:"update-member",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/members/{membershipId}",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"membershipId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"spaces.updateProfile",group:"spaces",command:"update-profile",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/profile",method:"patch",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.archiveWorkflow",group:"workflows",command:"archive",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"delete",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.cancelWorkflowRun",group:"workflow-runs",command:"cancel",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.createWorkflow",group:"workflows",command:"create",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.createWorkflowRun",group:"workflow-runs",command:"create",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflow-runs",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflow",group:"workflows",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflowRevision",group:"workflows",command:"get-revision",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.getWorkflowRun",group:"workflow-runs",command:"get",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowCapabilities",group:"workflow-capabilities",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-capabilities",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"q",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRevisions",group:"workflows",command:"list-revisions",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRunEvents",group:"workflow-runs",command:"list-events",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/events",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"waitSeconds",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflowRuns",group:"workflow-runs",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"status",in:"query",required:!1},{name:"workflowId",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.listWorkflows",group:"workflows",command:"list",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"cursor",in:"query",required:!1},{name:"includeArchived",in:"query",required:!1},{name:"limit",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.publishWorkflowRevision",group:"workflows",command:"publish-revision",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.testWorkflowRevision",group:"workflows",command:"test-revision",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.updateWorkflow",group:"workflows",command:"update",mutation:!0,idempotent:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",method:"put",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"Idempotency-Key",in:"header",required:!0},{name:"If-Match",in:"header",required:!0},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.validateWorkflowRevision",group:"workflows",command:"validate-revision",mutation:!0,idempotent:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate",method:"post",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"workflowId",in:"path",required:!0},{name:"revisionId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]},{id:"workflows.waitForWorkflowRun",group:"workflow-runs",command:"wait",mutation:!1,idempotent:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/wait",method:"get",binaryResponse:!1,parameters:[{name:"spaceId",in:"path",required:!0},{name:"runId",in:"path",required:!0},{name:"X-Action-Correlation-Id",in:"header",required:!1},{name:"timeoutSeconds",in:"query",required:!1},{name:"X-Action-CLI-Version",in:"header",required:!1}]}];var we=iu;function au(e){let r=we.find((t)=>t.id===e);if(!r)throw Error(`Unknown generated operation: ${e}`);return r}function be(e,r){let t;for(let n=0;n<e.length;n++){let i=e[n];if(i==="--")break;if(i!==r&&!i.startsWith(`${r}=`))continue;if(t!==void 0)throw C(`Pass ${r} only once.`);if(i===r){if(t=e[n+1],t===void 0||t.startsWith("--"))throw C(`${r} requires a value.`);e.splice(n,2)}else t=i.slice(r.length+1),e.splice(n,1);n--}return t}function sa(e,r){let t=!1;for(let n=(e.indexOf("--")<0?e.length:e.indexOf("--"))-1;n>=0;n--)if(e[n]===r)e.splice(n,1),t=!0;return t}function su(e){let r=[...e],t=be(r,"--profile"),n=be(r,"--space"),i=be(r,"--organization"),a=be(r,"--api-url"),s=be(r,"--base-url");if(a!==void 0&&s!==void 0&&a!==s)throw C("Pass one API URL override.");let o=a??s,u={json:!1,nonInteractive:sa(r,"--non-interactive"),...t===void 0?{}:{profile:t},...n===void 0?{}:{space:n},...i===void 0?{}:{organization:i},...o===void 0?{}:{apiUrl:o}};return{args:r,globals:u,yes:sa(r,"--yes"),overwrite:sa(r,"--overwrite")}}var ou=new Set(["--schema","--spec","--spec-raw","--debug","--version","-V","--help","-h","--dry-run","--human","--quiet","-q","--page-all","--no-retry","--no-extract","--no-pager","--no-stream"]);function oa(e){let r=[];for(let t=0;t<e.length&&r.length<2;t++){let n=e[t];if(n==="--")break;if(!n.startsWith("-"))r.push(t);else if(!n.includes("=")&&!ou.has(n)&&e[t+1]&&!e[t+1].startsWith("-"))t++}return r}function rr(e){return oa(e).map((r)=>e[r])}function uu(e){let r=rr(e);return we.find((t)=>t.group===r[0]&&t.command===r[1])}function Er(e){for(let r=0;r<e.length;r++){let t=e[r];if(t==="--")return!1;if(["--help","-h","--schema","--spec","--spec-raw"].includes(t))return!0;if(t.startsWith("-")&&!t.includes("=")&&!ou.has(t))r++}return!1}function lu(e){let r=be(e,"--params");if(r===void 0)return{};if(Buffer.byteLength(r)>262144)throw C("--params must be at most 256 KiB.");let t;try{t=JSON.parse(r)}catch{throw C("--params must be a JSON object.")}if(!t||typeof t!=="object"||Array.isArray(t))throw C("--params must be a JSON object.");return t}function du(e){let r=we.some((o)=>o.group===e[0]),t=e[r?1:0]??"",n=[...new Set(we.filter((o)=>!r||o.group===e[0]).map((o)=>r?o.command:o.group))],i=(o)=>{let u=Array.from({length:t.length+1},(l,d)=>d);for(let l=0;l<o.length;l++){let d=[l+1];for(let c=0;c<t.length;c++)d.push(Math.min(d[c]+1,u[c+1]+1,u[c]+(o[l]===t[c]?0:1)));u=d}return u[t.length]},s=n.map((o)=>({candidate:o,score:i(o)})).filter(({score:o})=>o<=2).sort((o,u)=>o.score-u.score)[0];return s?`action ${r?e[0]+" ":""}${s.candidate}`:void 0}function bt(e){let r=e.indexOf("--");return r<0?e:e.slice(0,r)}var At={applications:{list:"list-applications",get:"get-application"}};function cu(e){let r=e[0]==="help"?1:0,[t,n]=oa(e.slice(r));if(t===void 0||n===void 0)return;let i=At[e[t+r]]?.[e[n+r]];if(i)e[n+r]=i}var ne="0.3.1";function Ee(e){return{name:e.name(),description:e.description(),usage:e.usage(),aliases:e.aliases(),arguments:e.registeredArguments.map((r)=>({name:r.name(),required:r.required,variadic:r.variadic,description:r.description})),options:e.options.map((r)=>({flags:r.flags,description:r.description})),commands:e.commands.map(Ee)}}function mu(e){let r=yr(e);return{name:r.name(),version:ne,description:"Local authentication, context, and authoring commands supplement the generated public API commands. The launcher handles auth with WorkOS profiles, not the generated sidecar keyring.",commands:r.commands.map(Ee),globalOptions:r.options.map((t)=>({flags:t.flags,description:t.description})),resourceAliases:At,resourceOptions:[{flags:"--yes",description:"Confirm a public API mutation."},{flags:"--overwrite",description:"Allow replacing an existing output file."}],inputOutput:"Public resource input uses --json <body>; resource output uses --format json. Local commands also accept --format json (or legacy --json)."}}function pu(e){return["","Copilot: action copilot [message] — your assistant across Action.","Conversations: action sessions start, reply, wait, transcript.","","Action launcher commands (handled locally):",...yr(e).commands.map((t)=>` ${t.name().padEnd(20)} ${t.description()}`),"","action auth uses WorkOS profiles stored in the system credential store.","Run action <local-command> --help for local options and subcommands.","Shell options: --profile, --api-url, --space, --organization, --non-interactive, --yes, --overwrite.","Resource input uses --json <body>; output uses --format json. Local commands also accept --format json (or legacy --json).",""].join(`
|
|
35
|
+
`)}import{spawn as rI}from"node:child_process";import{access as tI}from"node:fs/promises";import{constants as hu}from"node:fs";import{dirname as yu,join as Ct,resolve as nI}from"node:path";import{fileURLToPath as iI}from"node:url";var fu=new AbortController,tr=fu.signal;function ua(e){if(e.code!=="EPIPE")throw e;fu.abort()}var Iu=67108864;class Ae extends Error{exitCode;envelope;constructor(e,r){super("The generated Action CLI command failed.");this.exitCode=e;this.envelope=r;this.name="GeneratedCommandError"}}async function aI(e){let r=process.platform==="win32"?"windows":process.platform;if(!["darwin","linux","windows"].includes(r)||!["arm64","x64"].includes(process.arch))throw Error("This platform has no packaged Action API binary.");let t=process.platform==="win32"?"action-api.exe":"action-api",n=`${r}-${process.arch}`,i=yu(iI(import.meta.url)),a=e?[nI(e)]:[Ct(yu(process.execPath),"bin",n,t),Ct(i,"bin",n,t),Ct(i,"..","..","dist","bin",n,t),Ct(i,"..","..","generated","target","release",t),Ct(i,"..","generated","target","release",t)];for(let s of a)try{return await tI(s,process.platform==="win32"?hu.F_OK:hu.X_OK),s}catch(o){if(!["ENOENT","EACCES"].includes(o.code??""))throw o}throw Error("The generated Action API binary is missing. Build or reinstall the complete Action CLI package.")}function sI(e){let r={...e.env??process.env};for(let t of Object.keys(r))if(t.startsWith("ACTION_API_"))delete r[t];r.ACTION_API_TOKEN=e.token??"",r.ACTION_API_OUTPUT=(e.env??process.env).ACTION_OUTPUT??(e.env??process.env).ACTION_API_OUTPUT??(process.stdout.isTTY?"table":"json");for(let t of["TIMEOUT_SECS","CA_BUNDLE","PROXY","USER_AGENT_SUFFIX"]){let n=(e.env??process.env)[`ACTION_API_${t}`];if(n)r[`ACTION_API_${t}`]=n}if(r.ACTION_API_PAGER="",r.ACTION_API_INSECURE="0",r.ACTION_API_ALLOW_CROSS_HOST_REDIRECTS="0",r.ACTION_API_ALLOW_CROSS_HOST_PAGINATION="0",e.timeoutInSeconds!==void 0)r.ACTION_API_TIMEOUT_SECS=String(e.timeoutInSeconds);return r}async function la(e){let r=AbortSignal.any([tr,...e.abortSignal?[e.abortSignal]:[]]);if(r.aborted)throw new DOMException("The operation was aborted.","AbortError");let t=await aI(e.binaryPath);return await new Promise((n,i)=>{let a=rI(t,[...e.args],{cwd:e.cwd??process.cwd(),env:sI(e),shell:!1,stdio:[e.input===void 0&&!e.capture?"inherit":"pipe","pipe","pipe"],windowsHide:!0}),s="",o="",u=0,l=!1,d=()=>{a.kill("SIGTERM")},c=()=>{a.kill("SIGINT")},p=()=>{a.kill("SIGTERM")};if(r.addEventListener("abort",d,{once:!0}),r.aborted)d();process.on("SIGINT",c),process.on("SIGTERM",p);let h=()=>{r.removeEventListener("abort",d),process.off("SIGINT",c),process.off("SIGTERM",p)};if(a.stdout?.setEncoding("utf8"),a.stderr?.setEncoding("utf8"),a.stdout?.on("data",(f)=>{if(tr.aborted)return;if(e.capture)if(u+=Buffer.byteLength(f),u>Iu)l=!0,a.kill();else s+=f;else(e.stdout??process.stdout).write(f)}),a.stderr?.on("data",(f)=>{if(tr.aborted)return;if(e.capture)if(u+=Buffer.byteLength(f),u>Iu)l=!0,a.kill();else o+=f;else(e.stderr??process.stderr).write(f)}),a.on("error",()=>{h(),i(Error("Could not start the packaged Action API binary."))}),a.on("close",(f,m)=>{if(h(),r.aborted)return i(new DOMException("The operation was aborted.","AbortError"));if(l)return i(Error("The generated API response exceeded the capture limit."));n({exitCode:f??(m==="SIGINT"?130:1),stdout:s,stderr:o})}),a.stdin?.on("error",()=>{return}),a.stdin)a.stdin.end(e.input)})}async function Mr(e){let r=(await e.tokenProvider()).replace(/^Bearer\s+/u,"").trim();if(!r||/[\r\n]/u.test(r))throw new Ae(2,{error:{message:"A valid credential is required."}});let t=e.version??ne;if(!/^[A-Za-z0-9.+_-]{1,64}$/u.test(t))throw new Ae(3,{error:{message:"The CLI version is invalid."}});let n=au(e.operation),i=[n.group,n.command,"--base-url",e.baseUrl,"--format","json","--no-retry","--user-agent-suffix",`action-cli/${e.version??ne}`,"--x-action-c-l-i-version",t,"--params",JSON.stringify(e.parameters??{}),"--x-action-correlation-id",e.correlationId??crypto.randomUUID()],a=e.body===void 0?void 0:JSON.stringify(e.body);if(a!==void 0)i.push("--json","-");let s=await la({...e,args:i,...a===void 0?{}:{input:a},token:r,capture:!0}),o=(l)=>{try{return JSON.parse(l)}catch{return}};if(s.exitCode!==0)throw new Ae(s.exitCode,o(s.stderr)??o(s.stdout));if(!s.stdout.trim())return null;let u=o(s.stdout);if(u===void 0)throw new Ae(1,{error:{message:"The generated API response was not JSON."}});return u}function gu(e){return e.status===408||e.status===429||e.status>=500}async function kt(e){let r=e.now??Date.now,t=e.deadline===void 0?1/0:e.deadline-r();if(t<=0)throw Error("The auth provider request deadline expired.");let n=new AbortController,i=setTimeout(()=>n.abort(),Math.min(e.timeoutMs??1e4,t));try{return await e.fetch(e.url,{...e.init,signal:n.signal})}finally{clearTimeout(i)}}import{createHash as yI}from"node:crypto";import{chmod as II,lstat as gI,mkdir as qI}from"node:fs/promises";import{join as wI}from"node:path";import{spawn as oI}from"node:child_process";import{constants as da}from"node:fs";import{lstat as qu,open as uI}from"node:fs/promises";var lI=1,wu="printf '\\001'; exec /bin/cat >/dev/null",dI=String.raw`
|
|
36
36
|
$ErrorActionPreference = "Stop"
|
|
37
37
|
$path = $env:ACTION_CLI_LOCK_PATH
|
|
38
38
|
$timeoutValue = $env:ACTION_CLI_LOCK_TIMEOUT_MS
|
|
@@ -67,7 +67,7 @@ try {
|
|
|
67
67
|
} finally {
|
|
68
68
|
$stream.Dispose()
|
|
69
69
|
}
|
|
70
|
-
`;async function By(e){if(await e.ensureParent?.(),(e.platform??process.platform)==="win32")try{let n=await lu(e.path);if(n.isSymbolicLink()||!n.isFile())throw e.invalidFileError(e.path);return}catch(n){if(n.code!=="ENOENT")throw n}let t;try{if(t=await Uy(e.path,sa.O_CREAT|sa.O_RDWR|sa.O_NOFOLLOW,384),!(await t.stat()).isFile())throw e.invalidFileError(e.path);await t.chmod(384)}catch(n){if(n instanceof Error&&"code"in n&&(n.code==="ELOOP"||n.code==="EISDIR"))throw e.invalidFileError(e.path);throw n}finally{await t?.close()}let r=await lu(e.path);if(r.isSymbolicLink()||!r.isFile())throw e.invalidFileError(e.path)}function Ky(e,t,r){if(e==="darwin")return{args:["-k","-s",...r===void 0?[]:["-t",String(Math.max(1,Math.ceil(r/1000)))],"-w",t,"/bin/sh","-c",du],command:"/usr/bin/lockf"};if(e==="linux")return{args:["--exclusive",...r===void 0?[]:["--timeout",String(r/1000)],t,"/bin/sh","-c",du],command:"/usr/bin/flock"};if(e==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",Fy],command:"powershell.exe",env:{ACTION_CLI_LOCK_PATH:t,...r===void 0?{}:{ACTION_CLI_LOCK_TIMEOUT_MS:String(r)}}};throw Error(`Action CLI file locks are not supported on ${e}.`)}function Yy(e,t){return new Promise((r,n)=>{let i="",a=!1,s=t.timeoutMs===void 0?null:setTimeout(()=>{if(a)return;a=!0,e.kill("SIGKILL"),n(t.timeoutError(t.path))},t.timeoutMs),o=(u)=>{if(a)return;if(a=!0,s)clearTimeout(s);u()};e.stderr.on("data",(u)=>{i+=u.toString("utf8")}),e.stdout.on("data",(u)=>{if(u.includes(Jy))o(r)}),e.once("error",(u)=>o(()=>n(u))),e.once("close",()=>o(()=>{let u=i.trim();n(u?Error(`The operating-system lock helper failed: ${u}`):t.timeoutError(t.path))}))})}async function Hy(e){await new Promise((t)=>{let r=()=>{e.off("close",r),t()};if(e.once("close",r),e.exitCode!==null||e.signalCode!==null){r();return}e.stdin.end()})}async function Zy(e){await new Promise((t)=>{let r=()=>{e.off("close",r),t()};if(e.once("close",r),e.pid===void 0||e.exitCode!==null||e.signalCode!==null){r();return}try{if(!e.kill("SIGKILL"))r()}catch{r()}})}async function Xn(e){await By(e);let t=Ky(e.platform??process.platform,e.path,e.timeoutMs),r=Gy(t.command,t.args,{env:t.env?{...process.env,...t.env}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0});try{await Yy(r,e)}catch(i){throw await Zy(r),i}let n=!1;return{path:e.path,async release(){if(n)return;n=!0,await Hy(r)}}}class ht extends Error{constructor(e){super(e);this.name="AuthStateLockError"}}async function rI(e){await eI(e,{mode:448,recursive:!0});let t=await _y(e);if(t.isSymbolicLink()||!t.isDirectory())throw new ht("The Action CLI auth lock directory must be a real directory.");await xy(e,448)}async function Ar(e,t,r){let n=Qy("sha256").update(t).digest("hex").slice(0,24),i=tI(e,`auth-${n}.lock`),a=await Xn({ensureParent:()=>rI(e),invalidFileError:()=>new ht("The Action CLI auth lock must be a regular file."),path:i,timeoutError:()=>new ht(`Another Action CLI process is updating auth for profile ${t}.`)});try{return await r()}finally{await a.release()}}var Cr="https://schemas.action.ai/workflows/v1/project.json",yt="https://schemas.action.ai/workflows/v1/workflow.json",kr="https://schemas.action.ai/workflows/v1/lock.json",It=1,Be="index.mjs",oa=/^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9](?:[a-z0-9-]{0,118}[a-z0-9])?$/u;function x(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e.workflows,t))return;return e.workflows[t]}class Et extends Error{actual;expected;kind;constructor(e,t,r){super(`Project lock ${e} mismatch: expected ${t}, found ${r}.`);this.name="ProjectContextMismatchError",this.kind=e,this.expected=t,this.actual=r}}function gt(e){let t;try{t=new URL(e)}catch{throw TypeError(`Invalid API origin: ${e}`)}if(t.protocol!=="http:"&&t.protocol!=="https:")throw TypeError("API origin must use http or https.");if(t.username||t.password||t.search||t.hash)throw TypeError("API origin cannot contain credentials, a query, or a fragment.");return t.pathname=t.pathname.replace(/\/+$/u,"")||"/",t.toString().replace(/\/$/u,"")}function Dt(e){if(!e.organizationId.trim())throw TypeError("Organization ID cannot be blank.");if(!e.spaceId.trim())throw TypeError("Space ID cannot be blank.");return{organizationId:e.organizationId,origin:gt(e.origin),spaceId:e.spaceId}}function Mt(e){let t=Dt(e);return{$schema:kr,organizationId:t.organizationId,origin:t.origin,schemaVersion:It,spaceId:t.spaceId,workflows:{}}}function $e(e,t){let r=Dt(t),n=gt(e.origin);if(n!==r.origin)throw new Et("origin",r.origin,n);if(e.organizationId!==r.organizationId)throw new Et("organization",r.organizationId,e.organizationId);if(e.spaceId!==r.spaceId)throw new Et("space",r.spaceId,e.spaceId)}var cu=60000,ua=2;class Xe extends Error{constructor(e="Run `action auth login` or set ACTION_TOKEN or ACTION_API_KEY."){super(e);this.name="AuthenticationRequiredError"}}class he extends Error{constructor(e="The stored Action CLI session has expired or was revoked. Sign in again."){super(e);this.name="HumanSessionExpiredError"}}class Ee extends Error{constructor(e="The Action CLI could not refresh the stored session."){super(e);this.name="HumanSessionRefreshError"}}function Se(e){return typeof e==="string"&&e.trim()?e.trim():null}function Lr(e,t){return new URL(`/user_management${t}`,e).toString()}function mu(e){let t=e?.trim();if(!t)return null;if(/\r|\n/u.test(t))throw new Xe("Environment credentials must not contain newlines.");return t}function nI(e){let t=e.split(".");if(t.length!==3||!t[1])return null;try{let r=JSON.parse(Buffer.from(t[1],"base64url").toString("utf8"));return typeof r.exp==="number"&&Number.isFinite(r.exp)?r.exp*1000:null}catch{return null}}function On(e){let t=Se(e.accessToken),r=Se(e.refreshToken),n=Se(e.clientId),i=Se(e.issuer),a;try{a=gt(e.apiOrigin)}catch{throw new Ee("The Action API origin for this session is invalid.")}let s=e.now??Date.now(),o=e.expiresAt??nI(e.accessToken)??(typeof e.expiresInSeconds==="number"&&Number.isFinite(e.expiresInSeconds)?s+e.expiresInSeconds*1000:null);if(!t||!r||!n||!i||!o||o<=s)throw new Ee("WorkOS returned an incomplete or already-expired session.");return{accessToken:t,apiOrigin:a,clientId:n,expiresAt:o,issuer:i,organizationId:e.organizationId?.trim()||null,refreshToken:r,version:ua}}function zn(e){return JSON.stringify(e)}function Rr(e){let t;try{t=JSON.parse(e)}catch{throw new he("The stored Action CLI session is invalid. Sign in again.")}if(!t||typeof t!=="object"||Array.isArray(t))throw new he("The stored Action CLI session is invalid. Sign in again.");let r=t,n=Se(r.accessToken),i=Se(r.apiOrigin),a=Se(r.refreshToken),s=Se(r.clientId),o=Se(r.issuer);if(r.version!==ua||!n||!i||!a||!s||!o||typeof r.expiresAt!=="number"||!Number.isFinite(r.expiresAt)||r.organizationId!==null&&typeof r.organizationId!=="string")throw new he("The stored Action CLI session is invalid. Sign in again.");let u;try{u=gt(i)}catch{throw new he("The stored Action CLI session is invalid. Sign in again.")}return{accessToken:n,apiOrigin:u,clientId:s,expiresAt:r.expiresAt,issuer:o,organizationId:r.organizationId,refreshToken:a,version:ua}}async function iI(e){try{let t=await e.json();return t&&typeof t==="object"&&!Array.isArray(t)?t:{}}catch{return{}}}function aI(e,t){return e.status===401||e.status===403||t.error==="invalid_grant"||t.error==="access_denied"||t.error==="expired_token"}async function Wn(e){let t=e.fetch??fetch,r;try{r=await br({fetch:t,init:{body:new URLSearchParams({client_id:e.profile.clientId,grant_type:"refresh_token",...e.organizationId?{organization_id:e.organizationId}:{},refresh_token:e.session.refreshToken}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...e.now?{now:e.now}:{},...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.tokenUrl??Lr(e.profile.issuer,"/authenticate")})}catch{throw new Ee}let n=await iI(r);if(!r.ok){if(aI(r,n))throw new he;throw new Ee}let i=Se(n.access_token);if(!i)throw new Ee("WorkOS returned no access token.");return On({accessToken:i,apiOrigin:e.profile.apiOrigin,clientId:e.profile.clientId,expiresInSeconds:typeof n.expires_in==="number"?n.expires_in:null,issuer:e.profile.issuer,now:e.now?.()??Date.now(),organizationId:typeof n.organization_id==="string"?n.organization_id:e.organizationId??e.session.organizationId,refreshToken:Se(n.refresh_token)??e.session.refreshToken})}async function la(e){let t=e.env??process.env,r=mu(t.ACTION_TOKEN);if(r)return{authorization:`Bearer ${r}`,source:"environment_token"};let n=mu(t.ACTION_API_KEY);if(n)return{authorization:`Bearer ${n}`,source:"environment_api_key"};let i=await e.credentialStore.get(e.profile.name);if(i)try{let a=Rr(i);if(a.apiOrigin===e.profile.apiOrigin&&a.clientId===e.profile.clientId&&a.issuer===e.profile.issuer&&a.expiresAt>(e.now?.()??Date.now())+cu)return{authorization:`Bearer ${a.accessToken}`,source:"human_session"}}catch{}return await Ar(e.lockDirectory,e.profile.name,async()=>{let a=await e.credentialStore.get(e.profile.name);if(!a)throw new Xe;let s;try{s=Rr(a)}catch(u){throw await e.credentialStore.delete(e.profile.name),u}if(s.apiOrigin!==e.profile.apiOrigin||s.clientId!==e.profile.clientId||s.issuer!==e.profile.issuer)throw await e.credentialStore.delete(e.profile.name),new he("The stored session does not match the selected profile.");let o=e.now?.()??Date.now();if(s.expiresAt>o+cu)return{authorization:`Bearer ${s.accessToken}`,source:"human_session"};try{let u=await Wn({...e.fetch?{fetch:e.fetch}:{},...e.now?{now:e.now}:{},profile:e.profile,session:s,...e.tokenUrl?{tokenUrl:e.tokenUrl}:{}});try{await e.credentialStore.set(e.profile.name,zn(u))}catch{throw new Ee("Session refresh succeeded, but the secure credential store could not save it. Unlock the credential store and run `action auth login`.")}return{authorization:`Bearer ${u.accessToken}`,source:"human_session"}}catch(u){if(u instanceof he){let l=await e.credentialStore.get(e.profile.name);if(l&&l!==a)try{let d=Rr(l);if(d.apiOrigin===e.profile.apiOrigin&&d.clientId===e.profile.clientId&&d.issuer===e.profile.issuer&&d.expiresAt>(e.now?.()??Date.now()))return{authorization:`Bearer ${d.accessToken}`,source:"human_session"}}catch{}}throw u}})}async function da(e,t,r){await Ar(t,r,async()=>{await e.delete(r)})}async function ca(e,t){let r=await e.get(t);if(!r)return{authenticated:!1};let n=Rr(r);return{authenticated:!0,expiresAt:n.expiresAt,organizationId:n.organizationId}}class H extends Error{constructor(e){super(e);this.name="HumanSessionBootstrapError"}}function qt(e){return typeof e==="string"&&e.trim()?e.trim():null}async function hu(e){try{let t=await e.json();return t&&typeof t==="object"&&!Array.isArray(t)?t:{}}catch{return{}}}async function ma(e){let t=e.fetch??fetch,r;try{r=await t(new URL("/.well-known/action-cli.json",e.apiOrigin),{headers:{accept:"application/json"}})}catch{throw new H("The Action API authentication configuration is unavailable.")}let i=(await hu(r)).authentication;if(!r.ok||!i||typeof i!=="object")throw new H("The Action API does not support human CLI login.");let a=i,s=qt(a.clientId),o=qt(a.issuer);if(!s||!o)throw new H("The Action API returned invalid authentication configuration.");let u;try{u=new URL(o)}catch{throw new H("The Action API returned invalid authentication configuration.")}if(u.protocol!=="https:"||u.pathname!=="/"||u.search||u.hash)throw new H("The Action API returned invalid authentication configuration.");return{clientId:s,issuer:u.origin}}function pu(e){if(!e||typeof e!=="object"||Array.isArray(e))return null;let t=e,r=qt(t.id),n=qt(t.key),i=qt(t.name),a=qt(t.workosOrganizationId);return r&&n&&i&&a?{id:r,key:n,name:i,workosOrganizationId:a}:null}async function fu(e){let t;try{t=await e.fetch(new URL("/v1/auth/bootstrap",e.apiOrigin),{body:JSON.stringify(e.organization?{organization:e.organization}:{}),headers:{accept:"application/json",authorization:`Bearer ${e.token}`,"content-type":"application/json"},method:"POST"})}catch{throw new H("The Action organization lookup is unavailable.")}let r=await hu(t);if(!t.ok){let i=r.error,a=i&&typeof i==="object"?qt(i.message):null;throw new H(a??"The Action organization lookup failed.")}if(r.ok!==!0||r.status!=="ready"&&r.status!=="selection_required")throw new H("The Action API returned an invalid organization response.");if(r.status==="ready"){let i=pu(r.organization);if(!i)throw new H("The Action API returned an invalid organization response.");return{ok:!0,organization:i,status:"ready"}}if(!Array.isArray(r.organizations))throw new H("The Action API returned an invalid organization response.");let n=r.organizations.map(pu);if(n.some((i)=>i===null)||n.length===0)throw new H("The Action API returned an invalid organization response.");return{ok:!0,organizations:n,status:"selection_required"}}async function pa(e){let t=e.fetch??fetch,r=await fu({apiOrigin:e.apiOrigin,fetch:t,...e.organization?{organization:e.organization}:{},token:e.session.accessToken});if(r.status==="selection_required"){if(!e.selectOrganization)throw new H("More than one Action organization is available. Re-run login with --organization <id-or-key>.");let i=await e.selectOrganization(r.organizations);if(r=await fu({apiOrigin:e.apiOrigin,fetch:t,organization:i,token:e.session.accessToken}),r.status!=="ready")throw new H("An Action organization must be selected.")}let n=await Wn({fetch:t,organizationId:r.organization.workosOrganizationId,profile:e.profile,session:e.session});return{organization:r.organization,session:n}}import{spawn as sI}from"node:child_process";var oI="so.action.cli",uI=String.raw`
|
|
70
|
+
`;async function cI(e){if(await e.ensureParent?.(),(e.platform??process.platform)==="win32")try{let n=await qu(e.path);if(n.isSymbolicLink()||!n.isFile())throw e.invalidFileError(e.path);return}catch(n){if(n.code!=="ENOENT")throw n}let r;try{if(r=await uI(e.path,da.O_CREAT|da.O_RDWR|da.O_NOFOLLOW,384),!(await r.stat()).isFile())throw e.invalidFileError(e.path);await r.chmod(384)}catch(n){if(n instanceof Error&&"code"in n&&(n.code==="ELOOP"||n.code==="EISDIR"))throw e.invalidFileError(e.path);throw n}finally{await r?.close()}let t=await qu(e.path);if(t.isSymbolicLink()||!t.isFile())throw e.invalidFileError(e.path)}function mI(e,r,t){if(e==="darwin")return{args:["-k","-s",...t===void 0?[]:["-t",String(Math.max(1,Math.ceil(t/1000)))],"-w",r,"/bin/sh","-c",wu],command:"/usr/bin/lockf"};if(e==="linux")return{args:["--exclusive",...t===void 0?[]:["--timeout",String(t/1000)],r,"/bin/sh","-c",wu],command:"/usr/bin/flock"};if(e==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",dI],command:"powershell.exe",env:{ACTION_CLI_LOCK_PATH:r,...t===void 0?{}:{ACTION_CLI_LOCK_TIMEOUT_MS:String(t)}}};throw Error(`Action CLI file locks are not supported on ${e}.`)}function pI(e,r){return new Promise((t,n)=>{let i="",a=!1,s=r.timeoutMs===void 0?null:setTimeout(()=>{if(a)return;a=!0,e.kill("SIGKILL"),n(r.timeoutError(r.path))},r.timeoutMs),o=(u)=>{if(a)return;if(a=!0,s)clearTimeout(s);u()};e.stderr.on("data",(u)=>{i+=u.toString("utf8")}),e.stdout.on("data",(u)=>{if(u.includes(lI))o(t)}),e.once("error",(u)=>o(()=>n(u))),e.once("close",()=>o(()=>{let u=i.trim();n(u?Error(`The operating-system lock helper failed: ${u}`):r.timeoutError(r.path))}))})}async function fI(e){await new Promise((r)=>{let t=()=>{e.off("close",t),r()};if(e.once("close",t),e.exitCode!==null||e.signalCode!==null){t();return}e.stdin.end()})}async function hI(e){await new Promise((r)=>{let t=()=>{e.off("close",t),r()};if(e.once("close",t),e.pid===void 0||e.exitCode!==null||e.signalCode!==null){t();return}try{if(!e.kill("SIGKILL"))t()}catch{t()}})}async function jn(e){await cI(e);let r=mI(e.platform??process.platform,e.path,e.timeoutMs),t=oI(r.command,r.args,{env:r.env?{...process.env,...r.env}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0});try{await pI(t,e)}catch(i){throw await hI(t),i}let n=!1;return{path:e.path,async release(){if(n)return;n=!0,await fI(t)}}}class Ir extends Error{constructor(e){super(e);this.name="AuthStateLockError"}}async function bI(e){await qI(e,{mode:448,recursive:!0});let r=await gI(e);if(r.isSymbolicLink()||!r.isDirectory())throw new Ir("The Action CLI auth lock directory must be a real directory.");await II(e,448)}async function Rt(e,r,t){let n=yI("sha256").update(r).digest("hex").slice(0,24),i=wI(e,`auth-${n}.lock`),a=await jn({ensureParent:()=>bI(e),invalidFileError:()=>new Ir("The Action CLI auth lock must be a regular file."),path:i,timeoutError:()=>new Ir(`Another Action CLI process is updating auth for profile ${r}.`)});try{return await t()}finally{await a.release()}}var Lt="https://schemas.action.ai/workflows/v1/project.json",gr="https://schemas.action.ai/workflows/v1/workflow.json",vt="https://schemas.action.ai/workflows/v1/lock.json",qr=1,Ye="index.mjs",ca=/^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9](?:[a-z0-9-]{0,118}[a-z0-9])?$/u;function x(e,r){if(!e||!Object.prototype.hasOwnProperty.call(e.workflows,r))return;return e.workflows[r]}class Gr extends Error{actual;expected;kind;constructor(e,r,t){super(`Project lock ${e} mismatch: expected ${r}, found ${t}.`);this.name="ProjectContextMismatchError",this.kind=e,this.expected=r,this.actual=t}}function wr(e){let r;try{r=new URL(e)}catch{throw TypeError(`Invalid API origin: ${e}`)}if(r.protocol!=="http:"&&r.protocol!=="https:")throw TypeError("API origin must use http or https.");if(r.username||r.password||r.search||r.hash)throw TypeError("API origin cannot contain credentials, a query, or a fragment.");return r.pathname=r.pathname.replace(/\/+$/u,"")||"/",r.toString().replace(/\/$/u,"")}function Ur(e){if(!e.organizationId.trim())throw TypeError("Organization ID cannot be blank.");if(!e.spaceId.trim())throw TypeError("Space ID cannot be blank.");return{organizationId:e.organizationId,origin:wr(e.origin),spaceId:e.spaceId}}function Jr(e){let r=Ur(e);return{$schema:vt,organizationId:r.organizationId,origin:r.origin,schemaVersion:qr,spaceId:r.spaceId,workflows:{}}}function Xe(e,r){let t=Ur(r),n=wr(e.origin);if(n!==t.origin)throw new Gr("origin",t.origin,n);if(e.organizationId!==t.organizationId)throw new Gr("organization",t.organizationId,e.organizationId);if(e.spaceId!==t.spaceId)throw new Gr("space",t.spaceId,e.spaceId)}var bu=60000,ma=2;class ze extends Error{constructor(e="Run `action auth login` or set ACTION_TOKEN or ACTION_API_KEY."){super(e);this.name="AuthenticationRequiredError"}}class Ie extends Error{constructor(e="The stored Action CLI session has expired or was revoked. Sign in again."){super(e);this.name="HumanSessionExpiredError"}}class Me extends Error{constructor(e="The Action CLI could not refresh the stored session."){super(e);this.name="HumanSessionRefreshError"}}function Oe(e){return typeof e==="string"&&e.trim()?e.trim():null}function St(e,r){return new URL(`/user_management${r}`,e).toString()}function Au(e){let r=e?.trim();if(!r)return null;if(/\r|\n/u.test(r))throw new ze("Environment credentials must not contain newlines.");return r}function AI(e){let r=e.split(".");if(r.length!==3||!r[1])return null;try{let t=JSON.parse(Buffer.from(r[1],"base64url").toString("utf8"));return typeof t.exp==="number"&&Number.isFinite(t.exp)?t.exp*1000:null}catch{return null}}function Pn(e){let r=Oe(e.accessToken),t=Oe(e.refreshToken),n=Oe(e.clientId),i=Oe(e.issuer),a;try{a=wr(e.apiOrigin)}catch{throw new Me("The Action API origin for this session is invalid.")}let s=e.now??Date.now(),o=e.expiresAt??AI(e.accessToken)??(typeof e.expiresInSeconds==="number"&&Number.isFinite(e.expiresInSeconds)?s+e.expiresInSeconds*1000:null);if(!r||!t||!n||!i||!o||o<=s)throw new Me("WorkOS returned an incomplete or already-expired session.");return{accessToken:r,apiOrigin:a,clientId:n,expiresAt:o,issuer:i,organizationId:e.organizationId?.trim()||null,refreshToken:t,version:ma}}function Tn(e){return JSON.stringify(e)}function $t(e){let r;try{r=JSON.parse(e)}catch{throw new Ie("The stored Action CLI session is invalid. Sign in again.")}if(!r||typeof r!=="object"||Array.isArray(r))throw new Ie("The stored Action CLI session is invalid. Sign in again.");let t=r,n=Oe(t.accessToken),i=Oe(t.apiOrigin),a=Oe(t.refreshToken),s=Oe(t.clientId),o=Oe(t.issuer);if(t.version!==ma||!n||!i||!a||!s||!o||typeof t.expiresAt!=="number"||!Number.isFinite(t.expiresAt)||t.organizationId!==null&&typeof t.organizationId!=="string")throw new Ie("The stored Action CLI session is invalid. Sign in again.");let u;try{u=wr(i)}catch{throw new Ie("The stored Action CLI session is invalid. Sign in again.")}return{accessToken:n,apiOrigin:u,clientId:s,expiresAt:t.expiresAt,issuer:o,organizationId:t.organizationId,refreshToken:a,version:ma}}async function CI(e){try{let r=await e.json();return r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{return{}}}function kI(e,r){return e.status===401||e.status===403||r.error==="invalid_grant"||r.error==="access_denied"||r.error==="expired_token"}async function Vn(e){let r=e.fetch??fetch,t;try{t=await kt({fetch:r,init:{body:new URLSearchParams({client_id:e.profile.clientId,grant_type:"refresh_token",...e.organizationId?{organization_id:e.organizationId}:{},refresh_token:e.session.refreshToken}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...e.now?{now:e.now}:{},...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.tokenUrl??St(e.profile.issuer,"/authenticate")})}catch{throw new Me}let n=await CI(t);if(!t.ok){if(kI(t,n))throw new Ie;throw new Me}let i=Oe(n.access_token);if(!i)throw new Me("WorkOS returned no access token.");return Pn({accessToken:i,apiOrigin:e.profile.apiOrigin,clientId:e.profile.clientId,expiresInSeconds:typeof n.expires_in==="number"?n.expires_in:null,issuer:e.profile.issuer,now:e.now?.()??Date.now(),organizationId:typeof n.organization_id==="string"?n.organization_id:e.organizationId??e.session.organizationId,refreshToken:Oe(n.refresh_token)??e.session.refreshToken})}async function pa(e){let r=e.env??process.env,t=Au(r.ACTION_TOKEN);if(t)return{authorization:`Bearer ${t}`,source:"environment_token"};let n=Au(r.ACTION_API_KEY);if(n)return{authorization:`Bearer ${n}`,source:"environment_api_key"};let i=await e.credentialStore.get(e.profile.name);if(i)try{let a=$t(i);if(a.apiOrigin===e.profile.apiOrigin&&a.clientId===e.profile.clientId&&a.issuer===e.profile.issuer&&a.expiresAt>(e.now?.()??Date.now())+bu)return{authorization:`Bearer ${a.accessToken}`,source:"human_session"}}catch{}return await Rt(e.lockDirectory,e.profile.name,async()=>{let a=await e.credentialStore.get(e.profile.name);if(!a)throw new ze;let s;try{s=$t(a)}catch(u){throw await e.credentialStore.delete(e.profile.name),u}if(s.apiOrigin!==e.profile.apiOrigin||s.clientId!==e.profile.clientId||s.issuer!==e.profile.issuer)throw await e.credentialStore.delete(e.profile.name),new Ie("The stored session does not match the selected profile.");let o=e.now?.()??Date.now();if(s.expiresAt>o+bu)return{authorization:`Bearer ${s.accessToken}`,source:"human_session"};try{let u=await Vn({...e.fetch?{fetch:e.fetch}:{},...e.now?{now:e.now}:{},profile:e.profile,session:s,...e.tokenUrl?{tokenUrl:e.tokenUrl}:{}});try{await e.credentialStore.set(e.profile.name,Tn(u))}catch{throw new Me("Session refresh succeeded, but the secure credential store could not save it. Unlock the credential store and run `action auth login`.")}return{authorization:`Bearer ${u.accessToken}`,source:"human_session"}}catch(u){if(u instanceof Ie){let l=await e.credentialStore.get(e.profile.name);if(l&&l!==a)try{let d=$t(l);if(d.apiOrigin===e.profile.apiOrigin&&d.clientId===e.profile.clientId&&d.issuer===e.profile.issuer&&d.expiresAt>(e.now?.()??Date.now()))return{authorization:`Bearer ${d.accessToken}`,source:"human_session"}}catch{}}throw u}})}async function fa(e,r,t){await Rt(r,t,async()=>{await e.delete(t)})}async function ha(e,r){let t=await e.get(r);if(!t)return{authenticated:!1};let n=$t(t);return{authenticated:!0,expiresAt:n.expiresAt,organizationId:n.organizationId}}class Z extends Error{constructor(e){super(e);this.name="HumanSessionBootstrapError"}}function br(e){return typeof e==="string"&&e.trim()?e.trim():null}async function Ru(e){try{let r=await e.json();return r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{return{}}}async function ya(e){let r=e.fetch??fetch,t;try{t=await r(new URL("/.well-known/action-cli.json",e.apiOrigin),{headers:{accept:"application/json"}})}catch{throw new Z("The Action API authentication configuration is unavailable.")}let i=(await Ru(t)).authentication;if(!t.ok||!i||typeof i!=="object")throw new Z("The Action API does not support human CLI login.");let a=i,s=br(a.clientId),o=br(a.issuer);if(!s||!o)throw new Z("The Action API returned invalid authentication configuration.");let u;try{u=new URL(o)}catch{throw new Z("The Action API returned invalid authentication configuration.")}if(u.protocol!=="https:"||u.pathname!=="/"||u.search||u.hash)throw new Z("The Action API returned invalid authentication configuration.");return{clientId:s,issuer:u.origin}}function Cu(e){if(!e||typeof e!=="object"||Array.isArray(e))return null;let r=e,t=br(r.id),n=br(r.key),i=br(r.name),a=br(r.workosOrganizationId);return t&&n&&i&&a?{id:t,key:n,name:i,workosOrganizationId:a}:null}async function ku(e){let r;try{r=await e.fetch(new URL("/v1/auth/bootstrap",e.apiOrigin),{body:JSON.stringify(e.organization?{organization:e.organization}:{}),headers:{accept:"application/json",authorization:`Bearer ${e.token}`,"content-type":"application/json"},method:"POST"})}catch{throw new Z("The Action organization lookup is unavailable.")}let t=await Ru(r);if(!r.ok){let i=t.error,a=i&&typeof i==="object"?br(i.message):null;throw new Z(a??"The Action organization lookup failed.")}if(t.ok!==!0||t.status!=="ready"&&t.status!=="selection_required")throw new Z("The Action API returned an invalid organization response.");if(t.status==="ready"){let i=Cu(t.organization);if(!i)throw new Z("The Action API returned an invalid organization response.");return{ok:!0,organization:i,status:"ready"}}if(!Array.isArray(t.organizations))throw new Z("The Action API returned an invalid organization response.");let n=t.organizations.map(Cu);if(n.some((i)=>i===null)||n.length===0)throw new Z("The Action API returned an invalid organization response.");return{ok:!0,organizations:n,status:"selection_required"}}async function Ia(e){let r=e.fetch??fetch,t=await ku({apiOrigin:e.apiOrigin,fetch:r,...e.organization?{organization:e.organization}:{},token:e.session.accessToken});if(t.status==="selection_required"){if(!e.selectOrganization)throw new Z("More than one Action organization is available. Re-run login with --organization <id-or-key>.");let i=await e.selectOrganization(t.organizations);if(t=await ku({apiOrigin:e.apiOrigin,fetch:r,organization:i,token:e.session.accessToken}),t.status!=="ready")throw new Z("An Action organization must be selected.")}let n=await Vn({fetch:r,organizationId:t.organization.workosOrganizationId,profile:e.profile,session:e.session});return{organization:t.organization,session:n}}import{spawn as RI}from"node:child_process";var LI="so.action.cli",vI=String.raw`
|
|
71
71
|
ObjC.import("Foundation");
|
|
72
72
|
ObjC.import("Security");
|
|
73
73
|
ObjC.bindFunction("exit", ["void", ["int"]]);
|
|
@@ -119,7 +119,7 @@ if (operation === "delete") {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
$.exit(125);
|
|
122
|
-
|
|
122
|
+
`,$I=String.raw`
|
|
123
123
|
$ErrorActionPreference = "Stop"
|
|
124
124
|
[void][Windows.Security.Credentials.PasswordVault, Windows.Security.Credentials, ContentType = WindowsRuntime]
|
|
125
125
|
[void][Windows.Security.Credentials.PasswordCredential, Windows.Security.Credentials, ContentType = WindowsRuntime]
|
|
@@ -197,36 +197,36 @@ if ($operation -eq "delete") {
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
exit 125
|
|
200
|
-
`;class
|
|
201
|
-
`})).code!==0)throw new se("The Linux Secret Service could not store Action CLI credentials.")}async delete(e){let t=await this.invoke({args:["clear",...this.attributes(e)],command:"secret-tool"});if(t.code!==0&&!(t.code===1&&!t.stderr.trim()))throw new se("The Linux Secret Service could not delete Action CLI credentials.")}}class ya extends jn{invocation(e,t){return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",lI],command:"powershell.exe",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:Iu(e),ACTION_CLI_KEYCHAIN_OPERATION:t,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(e){let t=await this.invoke(this.invocation(e,"get"));if(t.code===0)return t.stdout;if(t.code===44)return null;throw new se("Windows Credential Manager could not read Action CLI credentials.")}async set(e,t){if((await this.invoke({...this.invocation(e,"set"),stdin:t})).code!==0)throw new se("Windows Credential Manager could not store Action CLI credentials.")}async delete(e){let t=await this.invoke(this.invocation(e,"delete"));if(t.code!==0&&t.code!==44)throw new se("Windows Credential Manager could not delete Action CLI credentials.")}}function Ia(e={}){let t=e.platform??process.platform,r=e.runner??yu,n=e.service?.trim()||oI;if(t==="darwin")return new fa(r,n);if(t==="linux")return new ha(r,n);if(t==="win32")return new ya(r,n);throw new Gt(`The Action CLI does not support a secure credential store on ${t}.`)}var dI="urn:ietf:params:oauth:grant-type:device_code",cI=5,mI=5;class ye extends Error{code;constructor(e,t){super(t);this.name="DeviceFlowError",this.code=e}}function Ut(e){return typeof e==="string"&&e.trim()?e.trim():null}async function gu(e){try{let t=await e.json();return t&&typeof t==="object"&&!Array.isArray(t)?t:{}}catch{return{}}}async function qu(e){let t=e.fetch??fetch,r;try{r=await br({fetch:t,init:{body:new URLSearchParams({client_id:e.clientId}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...e.now?{now:e.now}:{},...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.deviceAuthorizationUrl??Lr(e.issuer,"/authorize/device")})}catch{throw new ye("request_failed","Device authorization could not be started.")}let n=await gu(r);if(!r.ok)throw new ye("request_failed","Device authorization could not be started.");let i=Ut(n.device_code),a=Ut(n.user_code),s=Ut(n.verification_uri),o=n.expires_in,u=n.interval??cI;if(!i||!a||!s||typeof o!=="number"||!Number.isFinite(o)||o<=0||typeof u!=="number"||!Number.isFinite(u)||u<=0)throw new ye("invalid_response","WorkOS returned invalid device authorization data.");return{deviceCode:i,expiresInSeconds:o,intervalSeconds:u,userCode:a,verificationUri:s,verificationUriComplete:Ut(n.verification_uri_complete)}}async function wu(e){let t=e.fetch??fetch,r=e.now??Date.now,n=e.sleep??((s)=>new Promise((o)=>setTimeout(o,s))),i=r()+e.authorization.expiresInSeconds*1000,a=e.authorization.intervalSeconds;while(r()<i){if(await n(a*1000),r()>=i)break;let s;try{s=await br({deadline:i,fetch:t,init:{body:new URLSearchParams({client_id:e.clientId,device_code:e.authorization.deviceCode,grant_type:dI}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},now:r,...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.tokenUrl??Lr(e.issuer,"/authenticate")})}catch{continue}let o=await gu(s);if(s.ok){let u=Ut(o.access_token),l=Ut(o.refresh_token);if(!u||!l)throw new ye("invalid_response","WorkOS returned an incomplete CLI session.");try{return On({accessToken:u,apiOrigin:e.apiOrigin,clientId:e.clientId,expiresInSeconds:typeof o.expires_in==="number"?o.expires_in:null,issuer:e.issuer,now:r(),organizationId:typeof o.organization_id==="string"?o.organization_id:null,refreshToken:l})}catch{throw new ye("invalid_response","WorkOS returned an invalid CLI session.")}}if(uu(s))continue;switch(o.error){case"authorization_pending":break;case"slow_down":a+=mI;break;case"access_denied":throw new ye("access_denied","Device authorization was denied.");case"expired_token":case"invalid_grant":throw new ye("authorization_expired","Device authorization expired.");default:throw new ye("request_failed","Device authorization polling failed.")}}throw new ye("authorization_expired","Device authorization expired.")}async function ga(e){return await Ar(e.lockDirectory,e.profileName,async()=>{let t=await qu({clientId:e.clientId,...e.deviceAuthorizationUrl?{deviceAuthorizationUrl:e.deviceAuthorizationUrl}:{},...e.fetch?{fetch:e.fetch}:{},issuer:e.issuer,...e.now?{now:e.now}:{}});if(await e.onVerification(t),e.openBrowser)await Promise.resolve(e.openBrowser(t.verificationUriComplete??t.verificationUri)).catch(()=>{return});let r=await wu({apiOrigin:e.apiOrigin,authorization:t,clientId:e.clientId,...e.fetch?{fetch:e.fetch}:{},issuer:e.issuer,...e.now?{now:e.now}:{},...e.sleep?{sleep:e.sleep}:{},...e.tokenUrl?{tokenUrl:e.tokenUrl}:{}});if(e.finalizeSession)r=await e.finalizeSession(r);return await e.credentialStore.set(e.profileName,zn(r)),r})}function wt(e){return e instanceof Xe||e instanceof ht||e instanceof se||e instanceof Gt||e instanceof he||e instanceof Ee||e instanceof H||e instanceof ye}var pI="[redacted]",fI=5,bu=50,ku=2000,hI=/^(?:authorization(?:[_-]?header)?|cookie(?:[_-]?header)?|credentials?|passwords?|passphrases?|private|secrets?|secret[_-]?keys?|tokens?|source|content|api[_-]?(?:keys?|secrets?)|client[_-]?secrets?|private[_-]?keys?|signing[_-]?keys?|webhook[_-]?secrets?|(?:access|auth|bearer|github|id|oauth|personal[_-]?access|refresh|session|slack|stripe)[_-]?tokens?)$/iu,Ru=new Set(["authentication_required","invalid_credential","insufficient_scope","forbidden","feature_disabled","content_too_large","unsupported_media_type","invalid_request","validation_failed","not_found","stale_revision","idempotency_mismatch","operation_in_progress","conflict","rate_limited","upstream_unavailable","internal_error"]),yI=new Set(["__proto__","constructor","prototype"]);class B extends Error{code;correlationId;details;retryable;status;constructor(e){super(e.message);this.name="CliApiError",this.code=e.code,this.correlationId=e.correlationId??null,this.details=e.details,this.retryable=e.retryable,this.status=e.status??null}toJSON(){return{code:this.code,correlationId:this.correlationId,...this.details?{details:this.details}:{},message:this.message,retryable:this.retryable,status:this.status}}}function Ke(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)}function II(e,t){if(typeof e!=="string")return t;let r=e.trim();return r?r.slice(0,ku):t}function gI(e){return typeof e==="string"&&Ru.has(e)?e:"api_error"}function qa(e,t,r){if(r&&hI.test(r))return pI;if(t>=fI)return"[truncated]";if(typeof e==="string")return e.slice(0,ku);if(e===null||typeof e==="boolean"||typeof e==="number")return e;if(Array.isArray(e))return e.slice(0,bu).map((i)=>qa(i,t+1));if(!Ke(e))return;let n=Object.create(null);for(let[i,a]of Object.entries(e).slice(0,bu)){if(yI.has(i))continue;let s=qa(a,t+1,i);if(s!==void 0)n[i]=s}return n}function Au(e){if(!Ke(e)||!Ke(e.error))return null;let t=e.error,r=typeof t.correlationId==="string"?t.correlationId.slice(0,128):null,n=Ke(t.details)?qa(t.details,0):void 0;return{code:gI(t.code),correlationId:r,...Ke(n)?{details:n}:{},message:II(t.message,"The Action API rejected the request.")}}function Cu(e,t){return e==="operation_in_progress"||e==="rate_limited"||e==="upstream_unavailable"||t===408||t===425||t===429||t!==null&&t>=500}function wa(e,t){return e!==null&&(typeof e==="object"||typeof e==="function")&&"name"in e&&e.name===t}function qI(e){return wa(e,"AbortError")}function wI(e){let t=Ke(e.envelope)&&Ke(e.envelope.error)?e.envelope.error:null,r=t?.code,n=typeof r==="number"&&Number.isInteger(r)&&r>=100&&r<=599?r:null,i=t?.details,a=Ke(i)&&Ke(i.error)?i.error:null,s=Au(a?{error:{...a,message:a.message??t?.message}}:i)??(typeof r==="string"&&Ru.has(r)?Au(e.envelope):null);if(s)return new B({code:s.code,correlationId:s.correlationId,...s.details?{details:s.details}:{},message:s.message,retryable:Cu(s.code,n),status:n});if(t?.reason==="networkError")return new B({code:"transport_error",message:"Unable to reach the Action API.",retryable:!0});if(e.exitCode===3)return Ie("The request does not match the generated Action API contract.");if(e.exitCode!==1)return new B({code:e.exitCode===2?"authentication_required":"api_error",message:e.exitCode===2?"The Action API requires authentication.":"The generated Action CLI could not complete the request.",retryable:!1});if(n!==null&&n>=200&&n<400)return new B({code:"invalid_response",message:"The Action API returned an invalid response.",retryable:!1,status:n});if(n!==null)return new B({code:"api_error",message:`The Action API request failed with HTTP ${n}.`,retryable:Cu("api_error",n),status:n});return new B({code:"api_error",message:"The generated Action CLI could not complete the request.",retryable:!1})}function tt(e){if(e instanceof B)return e;if(e instanceof we)return wI(e);if(wa(e,"JsonError"))return Ie("The request does not match the Action API contract.");if(wa(e,"ParseError"))return Oe("The Action API returned an invalid response.");if(qI(e))return new B({code:"request_aborted",message:"The Action API request was cancelled.",retryable:!1});return new B({code:"unknown_error",message:"The Action API request could not be completed.",retryable:!1})}function Ie(e){return new B({code:"invalid_request",message:e,retryable:!1})}function Oe(e){return new B({code:"invalid_response",message:e,retryable:!1})}import{setTimeout as AI}from"node:timers/promises";var bI=1e4;async function vr(e){let t=[],r=new Set,n;for(let i=0;i<bI;i+=1){let a=await e(n);if(!Array.isArray(a.items))throw Oe("The Action API returned an invalid page.");if(t.push(...a.items),a.nextCursor===null)return t;if(typeof a.nextCursor!=="string"||!a.nextCursor)throw Oe("The Action API returned an invalid pagination cursor.");if(r.has(a.nextCursor))throw Oe("The Action API repeated a pagination cursor.");r.add(a.nextCursor),n=a.nextCursor}throw Oe("The Action API returned too many pages.")}var CI=/^[A-Za-z0-9._:-]{1,128}$/u,kI=/^[A-Za-z0-9._:-]{8,200}$/u,RI=100,Lu=100,LI=2,vI=50,vu=5;function $I(e){let t;try{t=new URL(e)}catch{throw Ie("The Action API base URL is invalid.")}if(t.protocol!=="https:"&&t.protocol!=="http:")throw Ie("The Action API base URL must use HTTP or HTTPS.");return t.origin}function Jt(e){if(e===void 0)return RI;if(!Number.isInteger(e)||e<1||e>Lu)throw Ie(`The page size must be between 1 and ${Lu}.`);return e}function SI(e){let t=e.trim();if(!kI.test(t))throw Ie("The idempotency key contains unsupported characters.");return t}function $u(e,t){let r=e??t.defaultValue;if(!Number.isInteger(r)||r<t.minimum||r>t.maximum)throw Ie(`${t.name} must be an integer between ${t.minimum} and ${t.maximum}.`);return r}function Su(e){if(e===void 0)return;let t=e.trim();if(!t||t.length>1000)throw Ie("cursor must contain 1 to 1000 characters.");return t}function zu(e){let t=e.trim();if(/^W\//u.test(t))throw Ie("ifMatch must be a generation-aware strong ETag.");let r=t.startsWith('"')&&t.endsWith('"')?t:`"${t}"`,n=r.match(/^"([^"\\]{1,200}):([0-9]{1,10})"$/u),i=Number(n?.[2]);if(!n?.[1]||!Number.isSafeInteger(i)||i<0||i>2147483647)throw Ie("ifMatch must be a generation-aware strong ETag.");return r}function XI(e){return zu(e).slice(1,-1).replace(/:\d+$/u,"")}async function Xu(e,t){let r=(t??await e()).trim();if(!CI.test(r))throw Ie("The correlation ID contains unsupported characters.");return r}function Ou(e,t){let r=new Map(e.map((n)=>[n.name,n]));for(let n of t){let i=r.get(n.name);r.set(n.name,{...i??n,...n.inputSchema!==null?{inputSchema:n.inputSchema}:{},...n.outputSchema!==null?{outputSchema:n.outputSchema}:{}})}return[...r.values()]}function OI(e){let t=new Map;for(let r of e){let n=t.get(r.slug);if(!n){t.set(r.slug,{...r,connectorInstances:[...r.connectorInstances]});continue}let i=new Map(n.connectorInstances.map((a)=>[a.id,a]));for(let a of r.connectorInstances)i.set(a.id,a);t.set(r.slug,{...n,actions:Ou(n.actions,r.actions),connectionStatus:n.connectionStatus==="connected"||r.connectionStatus==="connected"?"connected":"not_connected",connectorInstances:[...i.values()],readActions:Ou(n.readActions,r.readActions)})}return[...t.values()]}async function zI(e,t={}){let r=t.maxRetries??0;if(!Number.isInteger(r)||r<0)throw Ie("maxRetries must be a non-negative integer.");for(let n=0;;n+=1){if(t.abortSignal?.aborted)throw tt({name:"AbortError"});try{return await e()}catch(i){if(t.preserveError?.(i))throw i;let a=tt(i);if(t.abortSignal?.aborted)throw tt({name:"AbortError"});let s=a.status;if(!(a.code==="transport_error"||s===408||s===425||s===429||s!==null&&s>=500)||n>=r)throw a;try{await AI(vI*(n+1),void 0,t.abortSignal?{signal:t.abortSignal}:void 0)}catch(u){throw tt(u)}}}}class ba{options;correlationIdProvider;constructor(e){this.options={...e,baseUrl:$I(e.baseUrl)},this.correlationIdProvider=e.correlationIdProvider??(()=>crypto.randomUUID())}async getIdentity(e={}){return await this.invoke("identity.getCurrentPrincipal",{},e)}async listSpaces(e={}){let t=Jt(e.pageSize),r=await this.paginated(e);return await vr(async(n)=>{let i=await this.invoke("identity.listSpaces",{...n?{cursor:n}:{},limit:t},r);return{items:i.spaces,nextCursor:i.nextCursor}})}async listWorkflows(e,t={}){let r=Jt(t.pageSize),n=await this.paginated(t);return await vr(async(i)=>{let a=await this.invoke("workflows.listWorkflows",{...e,...i?{cursor:i}:{},limit:r},n);return{items:a.data,nextCursor:a.nextCursor}})}async getWorkflow(e,t={}){return await this.invoke("workflows.getWorkflow",{...e},t)}async listWorkflowRevisions(e,t={}){let r=Jt(t.pageSize),n=await this.paginated(t);return await vr(async(i)=>{let a=await this.invoke("workflows.listWorkflowRevisions",{spaceId:e.spaceId,workflowId:e.workflowId,...i?{cursor:i}:{},limit:r},n);return{items:a.data,nextCursor:a.nextCursor}})}async getWorkflowRevision(e,t={}){return await this.invoke("workflows.getWorkflowRevision",{...e},t)}async listWorkflowCapabilities(e,t={}){let r=Jt(t.pageSize),n=await this.paginated(t),i=await vr(async(a)=>{let s=await this.invoke("workflows.listWorkflowCapabilities",{spaceId:e,...a?{cursor:a}:{},...t.query?{q:t.query}:{},limit:r},n);return{items:s.applications,nextCursor:s.nextCursor}});return OI(i)}async createWorkflow(e,t){let{spaceId:r,...n}=e;return await this.invoke("workflows.createWorkflow",{spaceId:r,...this.mutationParameters(t)},t,n)}async updateWorkflow(e,t){let{spaceId:r,workflowId:n,ifMatch:i,...a}=e;return await this.invoke("workflows.updateWorkflow",{spaceId:r,workflowId:n,...this.mutationParameters(t,i)},t,{...a,baseRevisionId:XI(i)})}async validateWorkflowRevision(e,t={}){return await this.invoke("workflows.validateWorkflowRevision",{...e},t)}async testWorkflowRevision(e,t){let{spaceId:r,workflowId:n,revisionId:i,ifMatch:a,input:s}=e;return await this.invoke("workflows.testWorkflowRevision",{spaceId:r,workflowId:n,revisionId:i,...this.mutationParameters(t,a)},t,{input:s})}async createWorkflowRun(e,t){let{spaceId:r,...n}=e;return await this.invoke("workflows.createWorkflowRun",{spaceId:r,...this.mutationParameters(t)},t,n)}async listWorkflowRuns(e,t={}){let r=Su(t.cursor);return await this.invoke("workflows.listWorkflowRuns",{...e,...r?{cursor:r}:{},limit:Jt(t.pageSize)},t)}async getWorkflowRun(e,t={}){return await this.invoke("workflows.getWorkflowRun",{...e},t)}async waitForWorkflowRun(e,t={}){let r=$u(e.timeoutSeconds,{defaultValue:25,maximum:30,minimum:1,name:"timeoutSeconds"});return await this.invoke("workflows.waitForWorkflowRun",{runId:e.runId,spaceId:e.spaceId,timeoutSeconds:r},t,void 0,0,r+vu)}async listWorkflowRunEvents(e,t={}){let r=Su(e.cursor),n=$u(e.waitSeconds,{defaultValue:25,maximum:30,minimum:0,name:"waitSeconds"});return await this.invoke("workflows.listWorkflowRunEvents",{...r?{cursor:r}:{},limit:Jt(e.pageSize),runId:e.runId,spaceId:e.spaceId,waitSeconds:n},t,void 0,0,n+vu)}async cancelWorkflowRun(e,t){return await this.invoke("workflows.cancelWorkflowRun",{...e,...this.mutationParameters(t)},t)}async publishWorkflowRevision(e,t){let{ifMatch:r,...n}=e;return await this.invoke("workflows.publishWorkflowRevision",{...n,...this.mutationParameters(t,r)},t)}async archiveWorkflow(e,t){let{ifMatch:r,...n}=e;return await this.invoke("workflows.archiveWorkflow",{...n,...this.mutationParameters(t,r)},t)}mutationParameters(e,t){return{"Idempotency-Key":SI(e.idempotencyKey),...t===void 0?{}:{"If-Match":zu(t)}}}async paginated(e){return{...e,correlationId:await Xu(this.correlationIdProvider,e.correlationId)}}async invoke(e,t,r,n,i=LI,a){let s=await Xu(this.correlationIdProvider,r.correlationId);return await zI(async()=>await Nt({operation:e,parameters:t,...n===void 0?{}:{body:n},baseUrl:this.options.baseUrl,tokenProvider:this.options.tokenProvider,correlationId:s,version:this.options.version??re,...r.abortSignal?{abortSignal:r.abortSignal}:{},...a===void 0?{}:{timeoutInSeconds:a},...this.options.cwd===void 0?{}:{cwd:this.options.cwd},...this.options.env===void 0?{}:{env:this.options.env},...this.options.binaryPath===void 0?{}:{binaryPath:this.options.binaryPath}}),{...r.abortSignal?{abortSignal:r.abortSignal}:{},maxRetries:i,...this.options.preserveError?{preserveError:this.options.preserveError}:{}})}}function $r(e){return new ba(e)}function Aa(e,t,r){let n=e.command("auth").description("Authenticate the Action CLI");n.command("profiles").description("List saved profiles and their organization/space context without authenticating").action(async(i,a)=>{let s=r(a),o=await Y(a,t,{reporter:s});if(!o.auth.profiles)throw Error("Profile inventory is unavailable in this runtime.");let u=await o.auth.profiles();s.result(u.value,u.human)}),n.command("login").description("Sign in using the secure WorkOS device flow").option("--organization <id-or-key>","select an Action organization").action(async(i,a)=>{let s=r(a),o=await Y(a,t,{reporter:s}),u=a.optsWithGlobals().organization,l=await o.auth.login(u?{organization:u}:{});s.result(l.value,l.human)}),n.command("logout").description("Remove the stored session for the selected profile").action(async(i,a)=>{let s=r(a),u=await(await Y(a,t,{reporter:s})).auth.logout();s.result(u.value,u.human)}),n.command("status").description("Show authentication status for the selected profile").action(async(i,a)=>{let s=r(a),u=await(await Y(a,t,{reporter:s})).auth.status();s.result(u.value,u.human)})}import{mkdir as ju,mkdtemp as jI,readdir as PI,readFile as TI,rename as ka,rm as Pu,stat as VI,writeFile as NI}from"node:fs/promises";import{dirname as Tu,join as EI,relative as Vu,resolve as Pn,sep as Nu}from"node:path";var Wu=1200000,Ca=200,WI=[{description:"Archive an access policy.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archivePolicy",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"none"},{description:"Archive an access profile.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archiveProfile",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"none"},{description:"Archive an access role so it can no longer be requested.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archiveRole",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"Create a published access policy.",bodyProperties:["status","name","description","maxAccessMinutes","recommendedAccessMinutes","businessJustificationMode","requireBusinessJustification","businessJustificationSpec","businessJustificationApprovalMode","businessJustificationRejectionMode","allowSelfApproval","notifyApproversViaSlack","notifyApproversViaTeams","slackNotifyDelivery","slackEscalationIntervalMinutes","teamsNotifyDelivery","teamsEscalationIntervalMinutes","approvalStages","approvers","approverProvisioningImpactAcknowledged"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createPolicy",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies",queryParameters:[],requestBody:"json"},{description:"Create a published access profile. Changes take effect immediately.",bodyProperties:["status","name","description","isDefault","matchingCriteria","roleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createProfile",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles",queryParameters:[],requestBody:"json"},{description:"Create a published application access role. Set requestsEnabled=false to keep it unavailable for requests.",bodyProperties:["status","name","description","requestsEnabled","connectorInstanceId","accessProfileId","accessPolicyId","provisioningMethodType","provisioningConfig","externalId","externalData"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createRole",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles",queryParameters:[],requestBody:"json"},{description:"Read one access policy, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getPolicy",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"none"},{description:"Read one access profile, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getProfile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"none"},{description:"Read one access role, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getRole",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"List applications available to access configuration in this space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listConnectors",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-connectors",queryParameters:["query","limit","cursor"],requestBody:"none"},{description:"List groups available for linked-group access provisioning in this space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listLinkedGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-linked-groups",queryParameters:["query","limit","cursor"],requestBody:"none"},{description:"List the access policies in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listPolicies",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-policies",queryParameters:["includeArchived","status","query","limit","cursor"],requestBody:"none"},{description:"List the access profiles in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listProfiles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-profiles",queryParameters:["includeArchived","status","query","limit","cursor"],requestBody:"none"},{description:"List the access roles in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listRoles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-roles",queryParameters:["includeArchived","status","connectorInstanceId","connectorSlug","provisioningMethodType","query","limit","cursor"],requestBody:"none"},{description:"Publish an access policy draft, or apply a draft edit to the published policy.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishPolicy",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}/publish",queryParameters:[],requestBody:"none"},{description:"Publish an access profile draft, or apply a draft edit to the published profile.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishProfile",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}/publish",queryParameters:[],requestBody:"none"},{description:"Publish an access role draft, or apply a draft edit to the published role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishRole",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}/publish",queryParameters:[],requestBody:"none"},{description:"Update an access policy's approvers, limits and justification handling.",bodyProperties:["name","description","maxAccessMinutes","recommendedAccessMinutes","businessJustificationMode","requireBusinessJustification","businessJustificationSpec","businessJustificationApprovalMode","businessJustificationRejectionMode","allowSelfApproval","notifyApproversViaSlack","notifyApproversViaTeams","slackNotifyDelivery","slackEscalationIntervalMinutes","teamsNotifyDelivery","teamsEscalationIntervalMinutes","approvalStages","approvers","approverProvisioningImpactAcknowledged"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updatePolicy",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"json"},{description:"Update an access profile's fields, group criteria and role set.",bodyProperties:["addExcludedGroupIds","removeExcludedGroupIds","addGroupIds","removeGroupIds","addRoleIds","removeRoleIds","name","description","isDefault","matchingCriteria","roleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updateProfile",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"json"},{description:"Update an access role's fields and provisioning configuration.",bodyProperties:["name","description","requestsEnabled","connectorInstanceId","accessProfileId","accessPolicyId","provisioningMethodType","provisioningConfig","externalId","externalData"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updateRole",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"json"},{description:"Abandon a pending reconnect and restore the connector's prior status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.cancelApplicationReconnect",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect/cancel",queryParameters:[],requestBody:"none"},{description:"Confirm a connector authorization flow after the provider callback.",bodyProperties:["connectionId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.confirmApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/confirm",queryParameters:[],requestBody:"json"},{description:"Start a connector authorization flow.",bodyProperties:["label","connectionConfig","generateSuggestions"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.connectApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}/connect",queryParameters:[],requestBody:"json"},{description:"Connect a custom MCP server to the current space.",bodyProperties:["displayName","endpointUrl","headers","transport"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.createCustomIntegration",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/integrations",queryParameters:[],requestBody:"json"},{description:"Disconnect a connector instance and retire everything bound to its connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.disconnectApplication",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:[],requestBody:"none"},{description:"Disconnect an integration from the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.disconnectIntegration",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}",queryParameters:[],requestBody:"none"},{description:"Duplicate a connected connector instance into another authorized space.",bodyProperties:["targetSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.duplicateApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/duplicate",queryParameters:[],requestBody:"json"},{description:"Read one connector instance with its knowledge sources and sync status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplication",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:["providerSyncStatus"],requestBody:"none"},{description:"Read actions and syncs exposed by one connector catalog entry.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationCatalog",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}",queryParameters:[],requestBody:"none"},{description:"Read an application's inbound and outbound issue sync settings.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationIssueSyncSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",queryParameters:[],requestBody:"none"},{description:"Report whether the Jira Forge app is installed on the connector's Jira site.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationJiraForgeStatus",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/jira-forge",queryParameters:[],requestBody:"none"},{description:"List automations that use this application connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationAutomations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/automations",queryParameters:["cursor","limit","q","sortBy","sortDirection"],requestBody:"none"},{description:"Report whether requested connector types have connected or enabled instances.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationAvailability",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/availability",queryParameters:["slug"],requestBody:"none"},{description:"List repositories available to GitHub connector.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationGithubRepositories",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/github/repositories",queryParameters:["cursor","q"],requestBody:"none"},{description:"List directory groups a provisioning connector can link roles to.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/linked-groups",queryParameters:["cursor","limit","search","selectedId"],requestBody:"none"},{description:"List available issue teams or assignment groups for an application.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationIssueTeams",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-teams",queryParameters:[],requestBody:"none"},{description:"List connector catalog entries and instances visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications",queryParameters:["attention","connectorInstanceId","cursor","limit","q"],requestBody:"none"},{description:"List connector synchronization runs.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationSyncRuns",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync-runs",queryParameters:["cursor","event","limit","q","status"],requestBody:"none"},{description:"List the provider's choices for an application trigger field, such as Linear teams.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationTriggerFieldOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/trigger-field-options",queryParameters:["field","q","cursor"],requestBody:"none"},{description:"List workflows that use this connector's application.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationWorkflows",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/workflows",queryParameters:["cursor","limit","q","sort","status","visibility"],requestBody:"none"},{description:"List connected instances for requested connector types.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listConnectedApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/connected",queryParameters:["slug"],requestBody:"none"},{description:"List integrations available in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listIntegrations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/integrations",queryParameters:["alias","cursor","id","includeDeleted","limit","nangoConnectionId","q","source"],requestBody:"none"},{description:"List tools exposed by one connected integration.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listIntegrationTools",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/tools",queryParameters:[],requestBody:"none"},{description:"Issue new Okta webhook credentials, invalidating the previous hook.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.provisionApplicationWebhook",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/okta-webhook",queryParameters:[],requestBody:"none"},{description:"Start a reconnect against the connector's existing auth connection.",bodyProperties:["connectionConfig"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.reconnectApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect",queryParameters:[],requestBody:"json"},{description:"Rename an integration connection.",bodyProperties:["displayName"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.renameIntegration",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}",queryParameters:[],requestBody:"json"},{description:"Choose whether a connector instance may perform write actions.",bodyProperties:["actionMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setApplicationActionMode",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/action-mode",queryParameters:[],requestBody:"json"},{description:"Turn a connector instance on or off across every surface that reads it.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setApplicationEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/enabled",queryParameters:[],requestBody:"json"},{description:"Enable or disable an integration connection.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setIntegrationEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}/enabled",queryParameters:[],requestBody:"json"},{description:"Request synchronization for an application connection.",bodyProperties:["initial"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.triggerApplicationSync",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/sync",queryParameters:[],requestBody:"json"},{description:"Update a connector instance label.",bodyProperties:["label"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.updateApplication",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:[],requestBody:"json"},{description:"Replace an application's issue sync settings and reconcile provider schedules.",bodyProperties:["agentPreferences","pull","push","autoAddress"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.updateApplicationIssueSyncSettings",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",queryParameters:[],requestBody:"json"},{description:"Archive an assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a custom assignment group.",bodyProperties:["name","sources","kind","connectorInstanceId","externalProviderGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups",queryParameters:[],requestBody:"json"},{description:"Read one assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",queryParameters:[],requestBody:"none"},{description:"Read an assignment group's resolved membership.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.getMembership",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/membership",queryParameters:[],requestBody:"none"},{description:"Read the assignment-group import settings for the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.getSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/settings",queryParameters:[],requestBody:"none"},{description:"List assignment groups in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups",queryParameters:["cursor","includeArchived","kind","limit","offset","q","routableOnly","sortBy","sortDirection"],requestBody:"none"},{description:"List the people in an imported assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.listMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/members",queryParameters:["access","cursor","limit","q","sortBy","sortDirection"],requestBody:"none"},{description:"Enable or disable assignment-group import for one connection.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.setImportEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/connections/{connectorInstanceId}/import",queryParameters:[],requestBody:"json"},{description:"Set assignment-group import for several connections at once.",bodyProperties:["changes"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.setImportSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/import-selection",queryParameters:[],requestBody:"json"},{description:"Restore an archived assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.unarchive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/unarchive",queryParameters:[],requestBody:"none"},{description:"Rename a custom assignment group or replace its sources.",bodyProperties:["name","sources","kind","connectorInstanceId","externalProviderGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",queryParameters:[],requestBody:"json"},{description:"Create an assignment rule at the end of the evaluation order.",bodyProperties:["conditions","actions","matchMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules",queryParameters:[],requestBody:"json"},{description:"List the assignment rules in the active space, in evaluation order.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-rules",queryParameters:[],requestBody:"none"},{description:"Delete an assignment rule and clear the cases it routed.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.remove",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",queryParameters:[],requestBody:"none"},{description:"Reorder every assignment rule in the space.",bodyProperties:["ruleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.reorder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/reorder",queryParameters:[],requestBody:"json"},{description:"Update an assignment rule's conditions, actions, match mode or enabled state.",bodyProperties:["isEnabled","matchMode","conditions","actions"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",queryParameters:[],requestBody:"json"},{description:"Approve a proposed automation edit and publish its immutable version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.approveEditProposal",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/approve",queryParameters:[],requestBody:"none"},{description:"Archive a user-managed automation definition and disable its automations.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.archive",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"none"},{description:"List archived automation definitions in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.archived",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/archived",queryParameters:[],requestBody:"none"},{description:"Read the copilot automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.copilot",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/copilot",queryParameters:[],requestBody:"none"},{description:"Create an automation definition and its initial immutable version.",bodyProperties:["name","description","slugId","paused","runAsUserId","config"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations",queryParameters:[],requestBody:"json"},{description:"Create an automation for an automation definition.",bodyProperties:["displayName","triggerKind","userMessageTemplate","workflowInput","config","connectorInstanceId","connectorSlug","fieldValues","triggerSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",queryParameters:[],requestBody:"json"},{description:"Publish a new immutable version of an automation definition.",bodyProperties:["config"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",queryParameters:[],requestBody:"json"},{description:"Create an automation for a published workflow.",bodyProperties:["displayName","triggerKind","userMessageTemplate","workflowInput","config","connectorInstanceId","connectorSlug","fieldValues","triggerSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createWorkflowTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",queryParameters:[],requestBody:"json"},{description:"Delete an automation automation and tear down unused trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.deleteTrigger",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",queryParameters:[],requestBody:"none"},{description:"Delete a workflow automation and tear down unused trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.deleteWorkflowTrigger",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",queryParameters:[],requestBody:"none"},{description:"Disable an automation automation and its trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.disableTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/disable",queryParameters:[],requestBody:"none"},{description:"Read one automation definition visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"none"},{description:"Read an automation edit proposal.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.getEditProposal",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}",queryParameters:[],requestBody:"none"},{description:"Read the help desk automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.helpDesk",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/help-desk",queryParameters:[],requestBody:"none"},{description:"List automation definitions visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations",queryParameters:["cursor","limit","search","automationId"],requestBody:"none"},{description:"List automations for an automation definition.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listAutomationTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List pending automation edits proposed in a conversation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listEditProposals",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals",queryParameters:["threadId","cursor","limit"],requestBody:"none"},{description:"List automation automations visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List immutable versions of an automation definition.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listVersions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List automations for a workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listWorkflowTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Read aggregate automation management metrics for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.managementStats",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/management-stats",queryParameters:[],requestBody:"none"},{description:"Reject a proposed automation edit.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.rejectEditProposal",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/reject",queryParameters:[],requestBody:"none"},{description:"Restore an archived automation definition and the automations archived with it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.restore",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/restore",queryParameters:[],requestBody:"none"},{description:"Reveal the signing secret for an automation webhook automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.revealWebhookSecret",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/webhook-secret",queryParameters:[],requestBody:"none"},{description:"Reveal the signing secret for a workflow webhook automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.revealWorkflowWebhookSecret",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}/webhook-secret",queryParameters:[],requestBody:"none"},{description:"Read weekly automation activity for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.spaceStats",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/space-stats",queryParameters:[],requestBody:"none"},{description:"List automation summaries with their activity counters.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.summaries",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/summaries",queryParameters:["cursor","limit","search","sortBy","sortDirection","automationId"],requestBody:"none"},{description:"Update an automation definition's profile.",bodyProperties:["name","description","slugId","paused","runAsUserId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"json"},{description:"Update an automation automation.",bodyProperties:["integrationId","triggerSlug","displayName","triggerConfig","userMessageTemplate","workflowInput"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.updateTrigger",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",queryParameters:[],requestBody:"json"},{description:"Update a workflow automation.",bodyProperties:["integrationId","triggerSlug","displayName","triggerConfig","userMessageTemplate","workflowInput"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.updateWorkflowTrigger",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",queryParameters:[],requestBody:"json"},{description:"Archive a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/archive",queryParameters:[],requestBody:"none"},{description:"Archive one approval inbox row for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveInboxApproval",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/archive",queryParameters:[],requestBody:"none"},{description:"Archive one case inbox row for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveInboxCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/archive",queryParameters:[],requestBody:"none"},{description:"Add a public or internal comment to a case.",bodyProperties:["body","visibility","turnId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.comment",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/comments",queryParameters:[],requestBody:"json"},{description:"Create a case in the current space.",bodyProperties:["title","summary","statusId","priority","categoryId","requesterUserId","assigneeUserId","assignmentGroupId","dueAt","primaryThreadId","parentCaseId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases",queryParameters:[],requestBody:"json"},{description:"Create a category in the active case space.",bodyProperties:["name","description"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createCategory",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-categories",queryParameters:[],requestBody:"json"},{description:"Create a label in the current case space.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createLabel",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-labels",queryParameters:[],requestBody:"json"},{description:"Remove an attachment from a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.deleteAttachment",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}",queryParameters:[],requestBody:"none"},{description:"Download an attachment from a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.downloadAttachment",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}/download",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Escalate a request to human ownership using the space's assignment and muting settings.",bodyProperties:["reason"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.escalateRequest",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/requests/{sourceThreadId}/escalate",queryParameters:[],requestBody:"json"},{description:"Read one case with the first page of everything hanging off it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.getCase",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",queryParameters:["workflowRunId","space"],requestBody:"none"},{description:"Get the current actor's subscription to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.getSubscription",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Link a writable case as a subcase of another writable case. Requires a signed-in user credential.",bodyProperties:["targetCaseIdOrIdentifier","type"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.linkRelation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations",queryParameters:[],requestBody:"json"},{description:"Link an existing automation thread to a writable case. Requires a signed-in user credential.",bodyProperties:["threadId","relationship","purpose","metadata","automationId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.linkThread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",queryParameters:[],requestBody:"json"},{description:"List visible activity for a case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listActivity",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/activity",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Search people who can be assigned to a case in the current space. Requires space_member:read in addition to the public cases:read scope.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listAssigneeCandidates",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-assignee-candidates",queryParameters:["assignmentGroupId","cursor","limit","q"],requestBody:"none"},{description:"List file attachments for a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listAttachments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List cases in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of cases in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List the active categories in the current case space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCategories",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-categories",queryParameters:[],requestBody:"none"},{description:"List assignment groups available as case-inbox filters. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listInboxCaseGroupOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-inbox/group-options",queryParameters:["inboxState","statusType","priority","assigneeUserId","presetAssigneeMode","q","limit","cursor","groupQ"],requestBody:"none"},{description:"List the current actor's case inbox rows. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listInboxCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-inbox",queryParameters:["inboxState","statusType","priority","assigneeUserId","presetAssigneeMode","q","limit","cursor","assignmentGroupId","sortBy","sortDir"],requestBody:"none"},{description:"List the labels attached to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listLabels",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/labels",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the filter values still worth offering over the current actor's cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCaseFilterOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine/filter-options",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","kind","q"],requestBody:"none"},{description:"List the cases the current actor is involved in, across spaces. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of the current actor's cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List statuses, categories, or labels in the current case space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listReferenceData",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-reference-data",queryParameters:["kind","cursor","limit"],requestBody:"none"},{description:"List the source links attached to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSourceLinks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/source-links",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the filter values still worth offering over subscribed cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCaseFilterOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/filter-options",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","kind","q"],requestBody:"none"},{description:"List the cases the current actor subscribes to. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of the current actor's subscribed cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List the sessions linked to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listThreads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Mark a visible case and its notifications read for the current actor. Requires a signed-in user credential.",bodyProperties:["mode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.markRead",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/read",queryParameters:[],requestBody:"json"},{description:"Mark a visible case unread for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.markUnread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/unread",queryParameters:[],requestBody:"none"},{description:"Read a case with names and a page of linked sessions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readContext",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/context",queryParameters:["sessionCursor","sessionLimit"],requestBody:"none"},{description:"Mark one approval inbox row read for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readInboxApproval",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/read",queryParameters:[],requestBody:"none"},{description:"Mark one case inbox row read for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readInboxCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/read",queryParameters:[],requestBody:"none"},{description:"Reopen a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.reopenCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/reopen",queryParameters:[],requestBody:"none"},{description:"Search accessible case history by meaning.",bodyProperties:["question","statusType","categoryId","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.search",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/search",queryParameters:[],requestBody:"json"},{description:"Start and link a new automation thread for a writable case. Requires a signed-in user credential.",bodyProperties:["id","relationship","purpose","metadata","startMuted","automationId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.spawnThread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads/spawn",queryParameters:[],requestBody:"json"},{description:"Subscribe the current actor to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.subscribe",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Transfer a writable case to another active space. Requires a signed-in user credential.",bodyProperties:["destinationSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.transfer",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/transfer",queryParameters:[],requestBody:"json"},{description:"Remove a writable subcase relation. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.unlinkRelation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations/{relationId}",queryParameters:[],requestBody:"none"},{description:"Unsubscribe the current actor from a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.unsubscribe",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Update a writable case.",bodyProperties:["title","summary","statusId","statusType","priority","categoryId","requesterUserId","assigneeUserId","assigneeActorType","assignmentGroupId","assigneeGroupId","dueAt","labelIds","relevantKnowledgeIds","relevantSkillIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.updateCase",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",queryParameters:[],requestBody:"json"},{description:"Upload files to a writable case using the same file restrictions as the web app.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.uploadAttachment",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",queryParameters:[],requestBody:"multipart"},{description:"Create a provider-hosted directory setup link.",bodyProperties:["returnUrl","successUrl"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.createAdminPortalLink",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/admin-portal-link",queryParameters:[],requestBody:"json"},{description:"List the organization's directory snapshot.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/directory",queryParameters:["groupMembersLimit","groupsCursor","groupsLimit","userId","usersCursor","usersLimit"],requestBody:"none"},{description:"List the members of one directory group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.listGroupMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/directory/groups/{groupId}/members",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Search groups in the organization directory.",bodyProperties:["cursor","limit","queries","query"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.searchGroups",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/search/groups",queryParameters:[],requestBody:"json"},{description:"Search people in the organization directory.",bodyProperties:["cursor","limit","query"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.searchUsers",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/search/users",queryParameters:[],requestBody:"json"},{description:"Schedule a fresh organization directory snapshot.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.sync",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/sync",queryParameters:[],requestBody:"none"},{description:"Get the principal and organization the supplied credential resolves to.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"identity.getCurrentPrincipal",idempotent:!1,method:"get",mutation:!1,path:"/v1/me",queryParameters:[],requestBody:"none"},{description:"List the spaces the supplied credential can reach.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"identity.listSpaces",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Archive an uploaded-knowledge folder and all of its documents.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveFolder",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",queryParameters:[],requestBody:"none"},{description:"Archive an uploaded-knowledge subfolder and its documents.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveSubfolder",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",queryParameters:[],requestBody:"none"},{description:"Archive an uploaded knowledge document.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveUpload",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",queryParameters:[],requestBody:"none"},{description:"Read a GitHub knowledge repository file.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.browseGithubKnowledgeRepoFile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/file",queryParameters:["path","repo"],requestBody:"none"},{description:"Browse GitHub knowledge repository tree.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.browseGithubKnowledgeRepoTree",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/tree",queryParameters:["repo"],requestBody:"none"},{description:"Update visibility and availability for all documents in the Confluence source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateConfluenceConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Google Drive source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateGoogleDriveConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Notion source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateNotionConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the SharePoint source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateSharePointConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Upload and index a knowledge document. The folder and subfolders are created as needed.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.createUpload",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads",queryParameters:[],requestBody:"multipart"},{description:"Remove this connector's knowledge and prevent its source from being recreated by sync.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.deleteConnectorKnowledge",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/knowledge",queryParameters:[],requestBody:"none"},{description:"List indexed Confluence documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listConfluenceConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List upload folders in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listFolders",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/folders",queryParameters:[],requestBody:"none"},{description:"List repositories available to GitHub connector.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGithubConnectorRepos",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",queryParameters:["cursor","query"],requestBody:"none"},{description:"List GitHub knowledge repositories.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGithubKnowledgeRepos",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",queryParameters:[],requestBody:"none"},{description:"List indexed Google Drive documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGoogleDriveConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List Google Drive corpora available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGoogleDriveConnectorDrives",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/drives",queryParameters:[],requestBody:"none"},{description:"List indexed Notion documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listNotionConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List the knowledge catalog visible to organization administrators.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listOrganizationDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/documents",queryParameters:["cursor","limit","provider","q","sort","sortDirection"],requestBody:"none"},{description:"List provider totals for the organization knowledge catalog.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listOrganizationKnowledgeProviderCounts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/provider-counts",queryParameters:[],requestBody:"none"},{description:"List indexed SharePoint documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSharePointConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"Discover SharePoint sites available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSharePointConnectorSites",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-sites",queryParameters:["cursor","query"],requestBody:"none"},{description:"List Slack knowledge channels and their indexing settings. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSlackConnectorChannels",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channels",queryParameters:["cursor","search","limit"],requestBody:"none"},{description:"List uploaded knowledge documents in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listUploads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",queryParameters:["cursor","folder","limit"],requestBody:"none"},{description:"Download an organization knowledge document. Requires a signed-in organization administrator.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.readOrganizationUpload",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/uploads/{documentId}/content",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Download a document owned by the selected space or shared with the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.readUpload",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/content",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Reindex an uploaded knowledge document.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.reindexUpload",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/reindex",queryParameters:[],requestBody:"none"},{description:"Rename an uploaded-knowledge folder.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.renameFolder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",queryParameters:[],requestBody:"json"},{description:"Rename an uploaded-knowledge subfolder.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.renameSubfolder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",queryParameters:[],requestBody:"json"},{description:"Replace GitHub knowledge repositories.",bodyProperties:["repos"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.replaceGithubKnowledgeRepos",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",queryParameters:[],requestBody:"json"},{description:"Search accessible knowledge documents and return excerpts with citations.",bodyProperties:["question","provider","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.search",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/search",queryParameters:[],requestBody:"json"},{description:"Search connected Notion pages and data sources available for selection.",bodyProperties:["cursor","query","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.searchNotionConnectorDocuments",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/search",queryParameters:[],requestBody:"json"},{description:"Refresh one Confluence document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncConfluenceConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Refresh one Google Drive document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncGoogleDriveConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Refresh one Notion document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncNotionConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Trigger GitHub knowledge synchronization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.triggerGithubKnowledgeSync",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/sync",queryParameters:[],requestBody:"none"},{description:"Update visibility and availability for one Confluence document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateConfluenceConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update visibility for every uploaded document in a folder.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateFolderDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/documents",queryParameters:[],requestBody:"json"},{description:"Update GitHub connector repository selection.",bodyProperties:["repos"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGithubConnectorRepos",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Google Drive document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGoogleDriveConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Google Drive knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGoogleDriveConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Notion document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateNotionConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Notion knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateNotionConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one SharePoint document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSharePointConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the SharePoint knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSharePointConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update who can access knowledge from this Slack connector. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["availability"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorAvailability",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/availability",queryParameters:[],requestBody:"json"},{description:"Update the amount of Slack history included in knowledge. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["depth"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorBackfill",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-backfill",queryParameters:[],requestBody:"json"},{description:"Update who can access knowledge from a Slack channel. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["channelId","availability"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorChannelAvailability",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channel-availability",queryParameters:[],requestBody:"json"},{description:"Update the Slack knowledge selection and reconcile its indexed documents. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["excludedChannelIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update an uploaded knowledge document's visibility.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateUpload",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",queryParameters:[],requestBody:"json"},{description:"Archive a label and drop its links.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.archive",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/labels/{labelId}",queryParameters:[],requestBody:"none"},{description:"Add, remove, or replace an entity's labels by name.",bodyProperties:["entityType","entityId","names","mode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.assignNames",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/labels/assign",queryParameters:[],requestBody:"json"},{description:"Create a label in the active space.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/labels",queryParameters:[],requestBody:"json"},{description:"List labels in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/labels",queryParameters:["includeArchived","query"],requestBody:"none"},{description:"List label links for one entity type.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.listLinks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/labels/links",queryParameters:["entityType"],requestBody:"none"},{description:"Resolve label names, creating missing labels in the active space.",bodyProperties:["names"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.resolveNames",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/labels/resolve",queryParameters:[],requestBody:"json"},{description:"Replace the labels attached to one entity.",bodyProperties:["labelIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.setLabels",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/labels/links/{entityType}/{entityId}",queryParameters:[],requestBody:"json"},{description:"Rename or recolour a label.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/labels/{labelId}",queryParameters:[],requestBody:"json"},{description:"Accept and re-inject a quarantined inbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.acceptQuarantine",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/accept",queryParameters:[],requestBody:"none"},{description:"Remove an address from outbound email suppression.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.deleteSuppression",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/email/suppressions/{suppressionId}",queryParameters:[],requestBody:"none"},{description:"Disable hosted email for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.disableInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"Enable hosted email for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.enableInstallation",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"Get the organization's email installation and channel diagnostics.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"List recently quarantined inbound email events.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.listQuarantine",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/quarantine",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List addresses suppressed from outbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.listSuppressions",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/suppressions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Reject a quarantined inbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.rejectQuarantine",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/reject",queryParameters:[],requestBody:"none"},{description:"Confirm the organization's GitHub App connection after the provider handoff.",bodyProperties:["connectionId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.confirmInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation/confirm",queryParameters:[],requestBody:"json"},{description:"Disconnect the organization's GitHub App and disable its connected spaces.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.disconnectInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Read the organization's GitHub App installation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Read GitHub App repository access and connected spaces for this organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.getInstallationDetails",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/github-app/installation/details",queryParameters:["repoPage","repoPageSize"],requestBody:"none"},{description:"Start the organization's GitHub App connection handoff. The returned session token is short-lived authorization material.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Attach a space to a Slack channel setting.",bodyProperties:["spaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.createChannelSettingsRoute",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes",queryParameters:[],requestBody:"json"},{description:"Remove one route from a Slack channel setting.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.deleteChannelSettingsRoute",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes/{routeId}",queryParameters:[],requestBody:"none"},{description:"Disconnect the active Slack installation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.disconnectInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/slack/installation",queryParameters:[],requestBody:"none"},{description:"Read the active Slack installation and its channel diagnostics.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/slack/installation",queryParameters:[],requestBody:"none"},{description:"List Slack channel settings for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.listChannelSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings",queryParameters:[],requestBody:"none"},{description:"Start the Slack OAuth installation flow for the active organization.",bodyProperties:["returnTo"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/install",queryParameters:[],requestBody:"json"},{description:"Synchronize Slack channel settings from the connected workspace.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.syncChannelSettings",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/sync",queryParameters:[],requestBody:"none"},{description:"Update status reaction emojis for one Slack channel setting.",bodyProperties:["emojis"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelEmojis",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/emojis",queryParameters:[],requestBody:"json"},{description:"Update the response behavior for one Slack channel setting.",bodyProperties:["responseMode","threadReplyMode","ambientInstruction","ambientRules"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}",queryParameters:[],requestBody:"json"},{description:"Archive a space and revoke its active memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a space and its default roles and statuses.",bodyProperties:["description","name","organizationRequestRoutingEnabled","slug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces",queryParameters:[],requestBody:"json"},{description:"Join an active space as an organization administrator.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.join",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/join",queryParameters:[],requestBody:"none"},{description:"List active spaces in the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/spaces",queryParameters:[],requestBody:"none"},{description:"Set the message the help desk sends a requester when it hands a case to a human.",bodyProperties:["escalationClosingMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setEscalationMessage",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-message",queryParameters:[],requestBody:"json"},{description:"Enable or disable muting the help desk on this space's cases after a handoff.",bodyProperties:["escalationMuteEnabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setEscalationMute",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-mute",queryParameters:[],requestBody:"json"},{description:"Enable or disable organization request routing for a space.",bodyProperties:["organizationRequestRoutingEnabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setOrganizationRequestRouting",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/request-routing",queryParameters:[],requestBody:"json"},{description:"Route a Teams channel to a space in this organization.",bodyProperties:["spaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.createChannelSettingsRoute",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes",queryParameters:[],requestBody:"json"},{description:"Create a Teams message subscription for this organization.",bodyProperties:["scope","teamId","channelId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.createGraphSubscription",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions",queryParameters:[],requestBody:"json"},{description:"Remove one organization-wide Teams channel route.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.deleteChannelSettingsRoute",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes/{routeId}",queryParameters:[],requestBody:"none"},{description:"Disconnect the organization's Microsoft Teams tenant.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.disconnectConnection",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/connection",queryParameters:[],requestBody:"none"},{description:"Build the Teams app package as base64-encoded ZIP content.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getAppPackage",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/app-package/content",queryParameters:[],requestBody:"none"},{description:"Read whether the Teams app package can be downloaded.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getAppPackageStatus",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/app-package",queryParameters:[],requestBody:"none"},{description:"Read the organization's Microsoft Teams connection and subscription status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getConnection",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/connection",queryParameters:[],requestBody:"none"},{description:"List organization-wide Teams channel behavior and routes.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.listChannelSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings",queryParameters:[],requestBody:"none"},{description:"Renew due Teams subscriptions belonging to this organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.renewGraphSubscriptions",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions/renew",queryParameters:[],requestBody:"none"},{description:"Create a Microsoft Teams administrator consent URL for the organization.",bodyProperties:["returnTo","force"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/connect",queryParameters:[],requestBody:"json"},{description:"Update status reaction emojis for a Teams channel.",bodyProperties:["emojis"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelEmojis",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/emojis",queryParameters:[],requestBody:"json"},{description:"Update organization-wide Teams channel response behavior.",bodyProperties:["responseMode","threadReplyMode","ambientInstruction","ambientRules"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}",queryParameters:[],requestBody:"json"},{description:"Create an organization invitation with compensating provider rollback.",bodyProperties:["email","expiresInDays","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.createInvite",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/invites",queryParameters:[],requestBody:"json"},{description:"Provision an organization membership when direct provisioning is enabled.",bodyProperties:["email","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.createMembership",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/memberships",queryParameters:[],requestBody:"json"},{description:"Read one organization person.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.getPerson",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/{personId}",queryParameters:[],requestBody:"none"},{description:"Read organization presentation settings.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.getSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/settings",queryParameters:[],requestBody:"none"},{description:"List the organization's groups. Pass scope=space with a spaceId to return only the groups that space can use.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/groups",queryParameters:["spaceId","cursor","identityId","includeMembershipLastObserved","limit","q","sort","direction","selectedId","sourceId","sourceType","scope"],requestBody:"none"},{description:"List where groups come from: directory sync and each connected app.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listGroupSources",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/group-sources",queryParameters:["sourceType"],requestBody:"none"},{description:"List organization invitations.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listInvites",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/invites",queryParameters:["cursor","direction","limit","role","search","sort","status"],requestBody:"none"},{description:"List membership labels for a bounded set of users.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listMembershipLabels",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/memberships/labels",queryParameters:["userId"],requestBody:"none"},{description:"List organization memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listMemberships",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/memberships",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the organization people roster.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listPeople",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people",queryParameters:["cursor","groupId","groupSourceId","groupSourceType","directory","includeTotal","limit","role","search","sort","direction"],requestBody:"none"},{description:"List applications observed for one organization person.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listPersonApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/{personId}/applications",queryParameters:["cursor","limit","q"],requestBody:"none"},{description:"List linked groups that can provision the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listProvisionableLinkedGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/provisionable-linked-groups",queryParameters:["scope","cursor","limit","search","selectedId"],requestBody:"none"},{description:"List roles available to organization memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listRoles",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/roles",queryParameters:[],requestBody:"none"},{description:"Revoke an organization invitation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.revokeInvite",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/invites/{inviteId}/revoke",queryParameters:[],requestBody:"none"},{description:"Search organization people available to a picker.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.searchPeople",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/search",queryParameters:["spaceId","includeAllDirectoryPeople","cursor","excludeCurrentSpace","limit","membersOnly","q","selectedId"],requestBody:"none"},{description:"Update an organization membership and synchronize its identity-provider state.",bodyProperties:["roleSlug","status","statusReason"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.updateMembership",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/memberships/{membershipId}",queryParameters:[],requestBody:"json"},{description:"Update organization presentation settings.",bodyProperties:["showProfilePictures"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.updateSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/settings",queryParameters:[],requestBody:"json"},{description:"Archive a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/archive",queryParameters:[],requestBody:"none"},{description:"Create an organization request session. Requires a signed-in user credential.",bodyProperties:["id","caseId","reuseExisting","destinationSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createOrganizationRequestSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/organization-request-sessions",queryParameters:[],requestBody:"json"},{description:"Create an organization request session and submit its initial message. Requires a signed-in user credential.",bodyProperties:["prewarmOnly","id","caseId","reuseExisting","destinationSpaceId","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createOrganizationRequestSessionAndSubmit",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/organization-request-sessions/submit",queryParameters:[],requestBody:"json"},{description:"Create a conversation session. Requires a signed-in user credential.",bodyProperties:["id","automation","visibility"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions",queryParameters:[],requestBody:"json"},{description:"Create a conversation session and submit its first message. Requires a signed-in user credential.",bodyProperties:["id","automation","visibility","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createSessionAndSubmit",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/submit",queryParameters:[],requestBody:"json"},{description:"Create a workflow-suggestion session. Requires a signed-in user credential.",bodyProperties:["id"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createWorkflowSuggestionSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/session-builders/workflow-suggestions",queryParameters:[],requestBody:"json"},{description:"Delete an artifact in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.deleteArtifact",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",queryParameters:[],requestBody:"none"},{description:"Download an accessible session artifact as a file; defaults to the current version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.downloadArtifact",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}/download",queryParameters:["version"],requestBody:"none",binaryResponse:!0},{description:"Download a file inside an accessible session's uploads or workspace directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.downloadFile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-download",queryParameters:["path","workflowRunId"],requestBody:"none",binaryResponse:!0},{description:"Request an automation response to an eligible existing message. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.forceResponse",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages/{messageId}/respond",queryParameters:[],requestBody:"none"},{description:"Copy a session and its runtime state into a new session. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:128,minLength:1,type:"string"}}],id:"sessions.fork",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/fork",queryParameters:[],requestBody:"none"},{description:"Get a session and its initial transcript window.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get an artifact in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getArtifact",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",queryParameters:[],requestBody:"none"},{description:"Read a case linked to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getCase",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases/{caseId}",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get a preview of a session runtime file.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getFilePreview",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-preview",queryParameters:["workflowRunId","path"],requestBody:"none"},{description:"Get an organization request destination. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getOrganizationRequestDestination",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/session-request-destinations/{destinationSpaceId}",queryParameters:[],requestBody:"none"},{description:"Probe the live runtime state for a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getRuntime",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get the live transcript snapshot for a session-owned subagent.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getSubagentSnapshot",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/subagents/{toolCallId}",queryParameters:["beforeSeq"],requestBody:"none"},{description:"Read a workflow approval belonging to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getWorkflowApproval",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/workflow-approvals/{approvalId}",queryParameters:["workflowRunId","runId"],requestBody:"none"},{description:"Create an organization request session and submit its initial message. Requires a signed-in user credential.",bodyProperties:["prewarmOnly","id","caseId","reuseExisting","destinationSpaceId","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.intakeRequest",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/requests",queryParameters:[],requestBody:"json"},{description:"List sessions visible to the actor.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions",queryParameters:["limit","cursor","mine","includeArchived","excludeCustomAutomationSessions","includeTotalCount","search","purpose","after","before","updatedAfter","updatedBefore","sortBy","sortDir","status","triggeredByKind","automationId","createdBy"],requestBody:"none"},{description:"List artifacts in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listArtifacts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts",queryParameters:["limit","cursor","mine","createdByUserId","createdByAutomationId","sessionId","createdAtFrom","createdAtTo","updatedAtFrom","updatedAtTo"],requestBody:"none"},{description:"List readable cases linked to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List children of a session runtime directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listFileChildren",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-children",queryParameters:["workflowRunId","path"],requestBody:"none"},{description:"List files owned by a session runtime.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listFiles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/files",queryParameters:["workflowRunId"],requestBody:"none"},{description:"List a session transcript page.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listMessages",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List spaces that can receive an organization request. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listOrganizationRequestDestinations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/session-request-destinations",queryParameters:["cursor","q"],requestBody:"none"},{description:"List participants in a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listParticipants",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/participants",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List background tasks owned by a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listTasks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/tasks",queryParameters:["limit","cursor","status"],requestBody:"none"},{description:"List files uploaded to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listUploads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Pause the automation assigned to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.muteAutomation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/mute",queryParameters:[],requestBody:"none"},{description:"Prewarm a session runtime before an interaction.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.prewarmRuntime",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime/prewarm",queryParameters:[],requestBody:"none"},{description:"Read the authoritative transcript of an accessible case-linked session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.readCaseSession",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/transcript",queryParameters:["afterSeq","limit"],requestBody:"none"},{description:"Rename a session.",bodyProperties:["title"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.rename",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",queryParameters:[],requestBody:"json"},{description:"Set who can open a session: the whole space, or only its creator. Requires a signed-in user credential.",bodyProperties:["visibility"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.setVisibility",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/visibility",queryParameters:[],requestBody:"json"},{description:"Start the browser attached to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.startBrowser",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/browser",queryParameters:[],requestBody:"none"},{description:"Count visible sessions by inbox status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.statusCounts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/status-counts",queryParameters:["limit","cursor","mine","includeArchived","excludeCustomAutomationSessions","includeTotalCount","search","purpose","after","before","updatedAfter","updatedBefore","sortBy","sortDir","status","triggeredByKind","automationId","createdBy"],requestBody:"none"},{description:"Submit a message to a conversation session. Requires a signed-in user credential.",bodyProperties:["clientMessageId","content","mode","model","thinkingLevel","timezone","page","mentions","skills","suppressAutomationWake"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.submitMessage",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",queryParameters:[],requestBody:"json"},{description:"Restore an archived session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.unarchive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unarchive",queryParameters:[],requestBody:"none"},{description:"Resume the automation assigned to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.unmuteAutomation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unmute",queryParameters:[],requestBody:"none"},{description:"Update the file browser state visible for a session.",bodyProperties:["directories","previewPath"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.updateFileVisibility",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-visibility",queryParameters:[],requestBody:"json"},{description:"Upload files into a writable session's uploads directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.uploadFiles",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",queryParameters:[],requestBody:"multipart"},{description:"Archive an organization skill while retaining its versions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.archiveSkill",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}",queryParameters:[],requestBody:"none"},{description:"Create a skill definition.",bodyProperties:["description","scope","slug","title"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.createSkill",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills",queryParameters:[],requestBody:"json"},{description:"Create a draft version of a skill bundle.",bodyProperties:["files"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.createSkillVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions",queryParameters:[],requestBody:"json"},{description:"Delete a skill's open draft version, leaving the published version in place.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.discardSkillDraft",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/draft/discard",queryParameters:[],requestBody:"none"},{description:"Get a visible skill and its available versions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.getSkill",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",queryParameters:[],requestBody:"none"},{description:"Get one visible skill version and its bundle files.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.getSkillVersion",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}",queryParameters:[],requestBody:"none"},{description:"List automations that currently use this skill.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.listSkillAutomations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/automations",queryParameters:["cursor","limit","search"],requestBody:"none"},{description:"List skills visible in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.listSkills",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills",queryParameters:[],requestBody:"none"},{description:"Publish a draft skill version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.publishSkillVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}/publish",queryParameters:[],requestBody:"none"},{description:"Replace a skill's tags.",bodyProperties:["tags","expectedTags"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.updateSkillTags",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/tags",queryParameters:[],requestBody:"json"},{description:"Archive a space role, reassigning members to a replacement role when required.",bodyProperties:["replacementRoleId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/archive",queryParameters:[],requestBody:"json"},{description:"Create a space access role. Live creation also requires publish permission.",bodyProperties:["status","name","description","permissionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles",queryParameters:[],requestBody:"json"},{description:"Discard an unpublished space role draft.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.discard",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/discard",queryParameters:[],requestBody:"none"},{description:"Duplicate a role and its application capabilities into a published role.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.duplicate",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/duplicate",queryParameters:[],requestBody:"json"},{description:"Get a space access role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"List access roles in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles",queryParameters:["cursor","excludeRoleId","limit","search","sortBy","sortDir","type"],requestBody:"none"},{description:"Publish a space role draft.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.publish",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/publish",queryParameters:[],requestBody:"none"},{description:"Update a space access role, or propose a draft edit with status=draft. Live edits require publish permission.",bodyProperties:["status","name","description","permissionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",queryParameters:[],requestBody:"json"},{description:"Count blocked application actions for a space role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listBlockedActions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/blocked-actions",queryParameters:[],requestBody:"none"},{description:"List configurable application actions for a space connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listCatalog",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"none"},{description:"List application action grants for a space role and connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listGrants",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"none"},{description:"List application actions and the active roles blocked from each action.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listPermissions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions",queryParameters:[],requestBody:"none"},{description:"Replace a role's allowed application actions. Live roles require publish permission.",bodyProperties:["actionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.replaceGrants",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"json"},{description:"Replace the active roles blocked from an application action.",bodyProperties:["blockedRoleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.replaceRoles",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions/{actionSlug}",queryParameters:[],requestBody:"json"},{description:"Add every eligible member of a directory group to the current space.",bodyProperties:["accessRoleId","roleSlug","groupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.addGroupMembers",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/group-members",queryParameters:[],requestBody:"json"},{description:"Add or reactivate an organization member in the current space.",bodyProperties:["accessRoleId","roleSlug","email"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.addMember",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members",queryParameters:[],requestBody:"json"},{description:"Get semantic assignment-group routing settings for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.getSemanticAssignmentRouting",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",queryParameters:[],requestBody:"none"},{description:"Leave the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.leave",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members/leave",queryParameters:[],requestBody:"none"},{description:"List active members of the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.listMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/members",queryParameters:["accessRoleId","cursor","eligibleForAssignment","limit","roleSlug","search","userId"],requestBody:"none"},{description:"Revoke a member from the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.removeMember",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members/{membershipId}/remove",queryParameters:[],requestBody:"none"},{description:"Set the space's default routing assignment group.",bodyProperties:["defaultRoutingAssignmentGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.setDefaultAssignment",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/default-assignment",queryParameters:[],requestBody:"json"},{description:"Update semantic assignment-group routing for the current space.",bodyProperties:["allowUnassigned","assigneeMode","assignmentGroupIds","mode","skillIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.setSemanticAssignmentRouting",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/semantic-assignment-routing",queryParameters:[],requestBody:"json"},{description:"Change a member's access role in the current space.",bodyProperties:["accessRoleId","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.updateMember",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/members/{membershipId}",queryParameters:[],requestBody:"json"},{description:"Update the current space profile.",bodyProperties:["agentPreferences","description","name","slug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.updateProfile",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/profile",queryParameters:[],requestBody:"json"},{description:"Archive a workflow at an explicit base revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.archiveWorkflow",idempotent:!0,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",precondition:"if-match",queryParameters:[],requestBody:"none"},{description:"Cancel a public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.cancelWorkflowRun",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel",queryParameters:[],requestBody:"none"},{description:"Create a workflow and its initial revision.",bodyProperties:["description","key","metadata","name","source"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.createWorkflow",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows",queryParameters:[],requestBody:"json"},{description:"Queue a production run for a published workflow.",bodyProperties:["input","workflowId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.createWorkflowRun",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflow-runs",queryParameters:[],requestBody:"json"},{description:"Get one workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflow",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",queryParameters:[],requestBody:"none"},{description:"Get one workflow revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflowRevision",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}",queryParameters:[],requestBody:"none"},{description:"Get one public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflowRun",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}",queryParameters:[],requestBody:"none"},{description:"List workflow applications and action capabilities available in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowCapabilities",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-capabilities",queryParameters:["cursor","limit","q"],requestBody:"none"},{description:"List revisions of one workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRevisions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List or briefly wait for status events for one public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRunEvents",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/events",queryParameters:["cursor","limit","waitSeconds"],requestBody:"none"},{description:"List public workflow runs in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRuns",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs",queryParameters:["cursor","limit","status","workflowId"],requestBody:"none"},{description:"List workflows in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflows",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows",queryParameters:["cursor","includeArchived","limit"],requestBody:"none"},{description:"Publish a validated workflow revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.publishWorkflowRevision",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish",queryParameters:[],requestBody:"none"},{description:"Execute a draft workflow revision in the test environment.",bodyProperties:["input"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.testWorkflowRevision",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test",queryParameters:[],requestBody:"json"},{description:"Update a workflow by creating a revision from an explicit base revision.",bodyProperties:["baseRevisionId","description","metadata","name","source"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.updateWorkflow",idempotent:!0,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",queryParameters:[],requestBody:"json"},{description:"Validate one workflow revision without executing it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.validateWorkflowRevision",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate",queryParameters:[],requestBody:"none"},{description:"Wait briefly for one public workflow run to change state.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.waitForWorkflowRun",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/wait",queryParameters:["timeoutSeconds"],requestBody:"none"}],kS=new Map(WI.map((e)=>[e.id,e]));var DI=4096,MI=new Set([".git",".DS_Store","node_modules"]);function GI(e,t){return Vu(e,t).split(Nu).join("/")}async function Eu(e,t,r){let n=await PI(t,{withFileTypes:!0});for(let i of n){if(MI.has(i.name))continue;let a=EI(t,i.name);if(i.isDirectory())await Eu(e,a,r);else if(i.isFile())r.push(a)}}async function Du(e){let t=Pn(e),r=[];try{await Eu(t,t,r)}catch{throw C(`Could not read the bundle directory ${e}.`)}if(r.length===0)throw C(`${e} contains no files to push.`);if(r.length>Ca)throw C(`${e} holds ${r.length} files, more than the ${Ca} a push sends. Point --dir at the skill bundle itself.`);let n=[];for(let s of r.sort()){let o=await TI(s);n.push({contentBase64:o.toString("base64"),path:GI(t,s)})}let i=Buffer.byteLength(JSON.stringify(n),"utf8"),a=Wu-DI;if(i>a)throw C(`${e} encodes to ${i} bytes, over the ${a} a push can send. Point --dir at the skill bundle itself, or split the bundle.`);return n}function UI(e){throw C(`The bundle contains a path that escapes the output directory: ${e}.`)}function JI(e,t){let r=Pn(e,t),n=Vu(e,r),i=n===".."||n.startsWith(`..${Nu}`);if(n===""||i||Pn(e,n)!==r)UI(t);return r}async function Mu(e,t,r){let n=Pn(e);await ju(Tu(n),{recursive:!0});let i=await VI(n).catch(()=>null);if(i&&!r.force)throw C(`${e} already exists. Pass --force to replace its contents with this version's bundle.`);let a=await jI(`${n}.pull-`),s=null;try{for(let o of t){let u=JI(a,o.path);await ju(Tu(u),{recursive:!0}),await NI(u,Buffer.from(o.contentBase64,"base64"))}if(i)await ka(n,`${a}.replaced`),s=`${a}.replaced`;try{await ka(a,n)}catch(o){let u=s;if(s=null,u)await ka(u,n).catch(()=>{throw C(`${e} could not be restored after a failed pull. The previous bundle is at ${u}.`)});throw o}if(s)await Pu(s,{force:!0,recursive:!0}).catch(()=>{});return s=null,t.map((o)=>o.path).sort()}finally{await Pu(a,{force:!0,recursive:!0})}}function Ra(e,t){return[...t,e]}async function Gu(e,t){return(await e.get({skillId:t})).value.definition.tags}async function FI(e,t,r){let n=r.add.length>0||r.remove.length>0,i=r.set.length>0||r.clear;if(n&&i)throw C("Use --add/--remove to change tags, or --set/--clear to replace them.");if(r.clear&&r.set.length>0)throw C("--clear removes every tag, so it cannot be combined with --set.");if(r.clear)return{tags:[]};if(r.set.length>0)return{tags:[...new Set(r.set)]};if(!n)return null;let a=await Gu(e,t),s=new Set(r.remove),o=a.filter((u)=>!s.has(u));return{expectedTags:a,tags:[...new Set([...o,...r.add])]}}function BI(e){let t=e.files;if(!(Array.isArray(t)&&t.length>0&&t.every((n)=>typeof n.path==="string"&&typeof n.contentBase64==="string")))throw Oe("The Action API returned a skill version with no bundle files.");if(!t.some((n)=>n.path.trim().replace(/\\/gu,"/")==="SKILL.md"))throw Oe("The Action API returned a bundle with no SKILL.md.");return t}async function KI(e,t,r){let a=(await e.get({skillId:t})).value.versions.filter((s)=>s.status===r).sort((s,o)=>o.versionNumber-s.versionNumber)[0];if(!a)throw C(`Skill ${t} has no ${r} version. Pass --version to pull a specific one.`);return a.id}function La(e,t,r){let n=e.command("skill-project").description("Author skill bundles and merge tags safely"),i=async(s,o)=>{let u=r(s),l=(await Y(s,t,{reporter:u})).skills,d=await o(l);u.result(d.value,d.human)},a=async(s,o,u)=>{if(await yr({command:s,dependencies:t,message:o,yes:u}))return!0;let l=Ir();return r(s).result(l.value,l.human),!1};n.command("tags").description("Show or change a skill's tags").argument("<id>","skill ID").option("--add <tag>","add a tag, keeping the rest, repeatable",Ra,[]).option("--remove <tag>","remove a tag, keeping the rest, repeatable",Ra,[]).option("--set <tag>","replace every tag with these, repeatable",Ra,[]).option("--clear","remove every tag",!1).option("--yes","confirm the tag mutation",!1).action(async(s,o,u)=>{let l=r(u),d=(await Y(u,t,{reporter:l})).skills,c=await FI(d,s,o);if(!c){let h=await Gu(d,s);l.result({skillId:s,tags:h},h.join(", ")||"No tags.");return}if(!await a(u,`Update tags for skill ${s}?`,o.yes))return;let m=await d.updateTags({skillId:s,...c});l.result(m.value,m.human)}),n.command("pull").description("Write a skill version's bundle files into a directory").argument("<id>","skill ID").option("--dir <path>","directory to write the bundle into").option("--version <id>","skill version to pull; defaults to the published one").option("--draft","pull the open draft instead of the published version",!1).option("--force","replace the directory's contents if it already exists",!1).action(async(s,o,u)=>{let l=r(u),d=(await Y(u,t,{reporter:l})).skills,c=o.dir??s,m=o.version??await KI(d,s,o.draft?"draft":"published"),h=await d.getVersion({skillId:s,skillVersionId:m}),f=await Mu(c,BI(h.value),{force:o.force});l.result({directory:c,files:f,skillId:s,skillVersionId:m},`Wrote ${f.length} file${f.length===1?"":"s"} to ${c}.`)}),n.command("push").description("Create a draft version from a directory of bundle files").argument("<id>","skill ID").option("--dir <path>","directory holding the bundle").option("--yes","confirm draft creation",!1).action(async(s,o,u)=>{let l=await Du(o.dir??s);if(!await a(u,`Create a draft bundle for skill ${s}?`,o.yes))return;await i(u,async(d)=>await d.createVersion({body:{files:l},skillId:s}))})}function va(e,t,r){let n=e.command("context").description("Manage the active organization and space");n.command("list").description("List spaces available to the selected principal").action(async(i,a)=>{let s=r(a),u=await(await Y(a,t,{reporter:s})).context.list();s.result(u.value,u.human)}),n.command("show").description("Show the active profile, organization, and space").action(async(i,a)=>{let s=r(a),u=await(await Y(a,t,{reporter:s})).context.show();s.result(u.value,u.human)}),n.command("use").description("Select a space by ID or key for the active profile").argument("<space>","space ID or key").action(async(i,a,s)=>{let o=r(s),l=await(await Y(s,t,{reporter:o})).context.use(i);o.result(l.value,l.human)})}import{open as YI}from"node:fs/promises";var bt=262144;function Uu(e,t){if(Buffer.byteLength(e,"utf8")>bt)throw C(`${t} must be ${bt} bytes or smaller.`)}async function HI(e){let t=[],r=0;for await(let n of process.stdin){let i=Buffer.isBuffer(n)?n:Buffer.from(String(n));if(r+=i.byteLength,r>bt)throw C(`${e} must be ${bt} bytes or smaller.`);t.push(i)}return Buffer.concat(t).toString("utf8")}async function ZI(e,t){if(e==="-")return await HI(t);let r=await YI(e,"r");try{let n=Buffer.alloc(bt+1),i=0;while(i<n.byteLength){let{bytesRead:a}=await r.read(n,i,n.byteLength-i,i);if(a===0)break;i+=a}if(i>bt)throw C(`${t} must be ${bt} bytes or smaller.`);return n.subarray(0,i).toString("utf8")}finally{await r.close()}}async function Ft(e,t,r="Workflow input"){if(e.input!==void 0===(e.inputFile!==void 0))throw C("Specify exactly one of --input or --input-file.");if(e.input!==void 0)return Uu(e.input,r),ta(e.input);return ta(await $a(e.inputFile,t,r),"--input-file")}async function $a(e,t,r="Message"){let n;try{n=e==="-"&&t.readStdin?await t.readStdin():await ZI(e,r)}catch(i){if(i instanceof v)throw i;throw C(`Could not read ${r.toLowerCase()} from ${e}.`)}return Uu(n,r),n}var Ju=new Set(["queued","running","waiting","succeeded","failed","cancelled"]);function QI(e){if(e===void 0)return;if(!/^\d+$/u.test(e))throw C("--limit must be an integer between 1 and 100.");let t=Number(e);if(!Number.isInteger(t)||t<1||t>100)throw C("--limit must be an integer between 1 and 100.");return t}function xI(e){if(e===void 0)return;if(!Ju.has(e))throw C(`--status must be one of: ${[...Ju].join(", ")}.`);return e}function _I(e){return`${e.createdAt} ${e.type} ${e.id} ${JSON.stringify(e.data)}`}async function eg(e){let t=new AbortController,r=()=>t.abort();process.once("SIGINT",r);try{return await e(t.signal)}finally{process.removeListener("SIGINT",r)}}async function Sr(e,t,r){return(await Y(e,t,{reporter:r})).workflows}function tg(e,t,r){if(!r){e.result(t.value,t.human);return}let n=t.value;e.stream({eventCount:n.eventCount,nextCursor:n.nextCursor,run:n.run,stopped:n.stopped,type:"summary"},"",!0)}function Sa(e,t,r){e.command("run").description("Run the published workflow revision in production").argument("<key>","workflow key").option("--input <json>","JSON workflow input (visible in process arguments)").option("--input-file <path>","read JSON workflow input from a file, or - for stdin").option("--wait","wait for a terminal run state",!1).action(async(i,a,s)=>{let o=r(s),u=await(await Sr(s,t,o)).run({input:await Ft(a,t),key:i,wait:a.wait??!1});o.result(u.value,u.human)});let n=e.command("runs").description("Inspect and control production workflow runs");n.command("list").description("List a cursor-bounded page of workflow runs").option("--cursor <cursor>","opaque resume cursor").option("--limit <number>","page size from 1 to 100").option("--status <status>","filter by run status").option("--workflow <key>","filter by workflow key").action(async(i,a)=>{let s=r(a),o=QI(i.limit),u=xI(i.status),l=await(await Sr(a,t,s)).runsList({...i.cursor?{cursor:i.cursor}:{},...o?{limit:o}:{},...u?{status:u}:{},...i.workflow?{workflowKey:i.workflow}:{}});s.result(l.value,l.human)}),n.command("get").description("Get one workflow run").argument("<run-id>","workflow run ID").action(async(i,a,s)=>{let o=r(s),u=await(await Sr(s,t,o)).runGet({runId:i});o.result(u.value,u.human)}),n.command("watch").description("Watch durable workflow-run events until completion or Ctrl-C").argument("<run-id>","workflow run ID").option("--cursor <cursor>","opaque event resume cursor").option("--jsonl","stream one stable JSON object per line",!1).action(async(i,a,s)=>{let o=r(s),u=a.jsonl??!1;if(u&&o.json)throw C("--jsonl cannot be combined with the global --json option.");let l=await eg(async(d)=>(await Sr(s,t,o)).runWatch({captureEvents:o.json,...a.cursor?{cursor:a.cursor}:{},...!o.json?{onEvent:(c)=>o.stream({event:c,type:"event"},_I(c),u)}:{},runId:i,signal:d}));tg(o,l,u)}),n.command("cancel").description("Request cancellation of one workflow run").argument("<run-id>","workflow run ID").action(async(i,a,s)=>{let o=r(s),u=await(await Sr(s,t,o)).runCancel({runId:i});o.result(u.value,u.human)})}async function be(e,t,r){return(await Y(e,t,{reporter:r})).workflows}function Xa(e,t,r){let n=e.command("workflow-project").description("Author and manage workflows as code");Sa(n,t,r),n.command("init").description("Initialize a local Action workflow project").argument("[directory]","project directory").action(async(i,a,s)=>{let o=r(s),u=await(await be(s,t,o)).init({...i?{directory:i}:{}});o.result(u.value,u.human)}),n.command("capabilities").description("Discover workflow application actions and connected accounts").argument("[application]","application slug or name; include it to fetch full action schemas").action(async(i,a,s)=>{let o=r(s),u=await(await be(s,t,o)).capabilities({...i?{application:i}:{}});o.result(u.value,u.human)}),n.command("list").description("List workflows in the active space").option("--include-archived","include archived workflows",!1).action(async(i,a)=>{let s=r(a),o=await(await be(a,t,s)).list({includeArchived:i.includeArchived===!0});s.result(o.value,o.human)}),n.command("pull").description("Pull latest workflow revisions into the local project").argument("[key]","workflow key").option("--published","pull published revisions for inspection",!1).option("--output <directory>","output directory for --published").option("--force","overwrite local divergence",!1).action(async(i,a,s)=>{let o=r(s);if(a.published&&!a.output)throw C("--published requires --output so inspection files cannot replace the authoring base.");if(a.output&&!a.published)throw C("--output can only be used with --published.");let u=await(await be(s,t,o)).pull({force:a.force??!1,...i?{key:i}:{},...a.output?{outputDirectory:a.output}:{},published:a.published??!1});o.result(u.value,u.human)}),n.command("status").description("Compare local workflows with their lockfile and remote revisions").option("--offline","compare only local state and the lockfile",!1).action(async(i,a)=>{let s=r(a),o=await(await be(a,t,s)).status({offline:i.offline??!1});s.result(o.value,o.human)}),n.command("diff").description("Show canonical metadata and source differences").argument("<key>","workflow key").action(async(i,a,s)=>{let o=r(s),u=await(await be(s,t,o)).diff({key:i});o.result(u.value,u.human)}),n.command("validate").description("Validate local workflow files and optionally the remote draft").argument("[key]","workflow key").option("--remote","also validate the matching remote revision",!1).action(async(i,a,s)=>{let o=r(s),u=await(await be(s,t,o)).validate({...i?{key:i}:{},remote:a.remote??!1});o.result(u.value,u.human)}),n.command("push").description("Create or update workflow drafts without publishing").argument("[key]","workflow key").action(async(i,a,s)=>{let o=r(s),u=await(await be(s,t,o)).push({...i?{key:i}:{}});o.result(u.value,u.human)}),n.command("test").description("Start a real test run for one unpublished workflow draft").addHelpText("after",`
|
|
202
|
-
This is not a simulated dry run. Connector actions may change external systems.`).argument("<key>","workflow key").option("--input <json>","JSON test input (visible in process arguments)").option("--input-file <path>","read JSON test input from a file, or - for stdin").option("--wait","wait for the test run to finish",!1).action(async(i,a,s)=>{let o=
|
|
203
|
-
`;if(
|
|
204
|
-
`)?
|
|
205
|
-
`)}function
|
|
206
|
-
`}function
|
|
207
|
-
`);return
|
|
208
|
-
`)?
|
|
209
|
-
`}function
|
|
210
|
-
`))e=e.trim();if(!
|
|
211
|
-
`))
|
|
212
|
-
`))e=e.slice(0,-1);if(
|
|
213
|
-
`))
|
|
214
|
-
`);let
|
|
215
|
-
`))
|
|
216
|
-
`)}let
|
|
200
|
+
`;class Fr extends Error{constructor(e="No supported secure operating-system credential store is available."){super(e);this.name="CredentialStoreUnavailableError"}}class oe extends Error{constructor(e){super(e);this.name="CredentialStoreError"}}var Lu=async({args:e,command:r,env:t,stdin:n})=>{return await new Promise((i,a)=>{let s=RI(r,e,{env:t?{...process.env,...t}:process.env,shell:!1,stdio:["pipe","pipe","pipe"],windowsHide:!0}),o=[],u=[];if(s.stdout.on("data",(l)=>o.push(l)),s.stderr.on("data",(l)=>u.push(l)),s.on("error",(l)=>a(l)),s.on("close",(l)=>i({code:l??1,stderr:Buffer.concat(u).toString("utf8"),stdout:Buffer.concat(o).toString("utf8")})),n!==void 0)s.stdin.end(n);else s.stdin.end()})};function vu(e){return`profile:${e}`}class Nn{runner;service;constructor(e,r){this.runner=e,this.service=r}async invoke(e){try{return await this.runner(e)}catch(r){if(r.code==="ENOENT")throw new Fr;throw new oe("The secure credential store command could not be started.")}}}class ga extends Nn{invocation(e,r){return{args:["-l","JavaScript","-e",vI],command:"/usr/bin/osascript",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:vu(e),ACTION_CLI_KEYCHAIN_OPERATION:r,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(e){let r=await this.invoke(this.invocation(e,"get"));if(r.code===0)return r.stdout;if(r.code===44)return null;throw new oe("The macOS Keychain could not read Action CLI credentials.")}async set(e,r){if((await this.invoke({...this.invocation(e,"set"),stdin:r})).code!==0)throw new oe("The macOS Keychain could not store Action CLI credentials.")}async delete(e){let r=await this.invoke(this.invocation(e,"delete"));if(r.code!==0&&r.code!==44)throw new oe("The macOS Keychain could not delete Action CLI credentials.")}}class qa extends Nn{attributes(e){return["service",this.service,"profile",e]}async get(e){let r=await this.invoke({args:["lookup",...this.attributes(e)],command:"secret-tool"});if(r.code===0)return r.stdout.replace(/\r?\n$/u,"");if(r.code===1&&!r.stderr.trim())return null;throw new oe("The Linux Secret Service could not read Action CLI credentials.")}async set(e,r){if((await this.invoke({args:["store","--label=Action CLI",...this.attributes(e)],command:"secret-tool",stdin:`${r}
|
|
201
|
+
`})).code!==0)throw new oe("The Linux Secret Service could not store Action CLI credentials.")}async delete(e){let r=await this.invoke({args:["clear",...this.attributes(e)],command:"secret-tool"});if(r.code!==0&&!(r.code===1&&!r.stderr.trim()))throw new oe("The Linux Secret Service could not delete Action CLI credentials.")}}class wa extends Nn{invocation(e,r){return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command",$I],command:"powershell.exe",env:{ACTION_CLI_KEYCHAIN_ACCOUNT:vu(e),ACTION_CLI_KEYCHAIN_OPERATION:r,ACTION_CLI_KEYCHAIN_SERVICE:this.service}}}async get(e){let r=await this.invoke(this.invocation(e,"get"));if(r.code===0)return r.stdout;if(r.code===44)return null;throw new oe("Windows Credential Manager could not read Action CLI credentials.")}async set(e,r){if((await this.invoke({...this.invocation(e,"set"),stdin:r})).code!==0)throw new oe("Windows Credential Manager could not store Action CLI credentials.")}async delete(e){let r=await this.invoke(this.invocation(e,"delete"));if(r.code!==0&&r.code!==44)throw new oe("Windows Credential Manager could not delete Action CLI credentials.")}}function ba(e={}){let r=e.platform??process.platform,t=e.runner??Lu,n=e.service?.trim()||LI;if(r==="darwin")return new ga(t,n);if(r==="linux")return new qa(t,n);if(r==="win32")return new wa(t,n);throw new Fr(`The Action CLI does not support a secure credential store on ${r}.`)}var SI="urn:ietf:params:oauth:grant-type:device_code",XI=5,OI=5;class ge extends Error{code;constructor(e,r){super(r);this.name="DeviceFlowError",this.code=e}}function Kr(e){return typeof e==="string"&&e.trim()?e.trim():null}async function $u(e){try{let r=await e.json();return r&&typeof r==="object"&&!Array.isArray(r)?r:{}}catch{return{}}}async function Su(e){let r=e.fetch??fetch,t;try{t=await kt({fetch:r,init:{body:new URLSearchParams({client_id:e.clientId}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},...e.now?{now:e.now}:{},...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.deviceAuthorizationUrl??St(e.issuer,"/authorize/device")})}catch{throw new ge("request_failed","Device authorization could not be started.")}let n=await $u(t);if(!t.ok)throw new ge("request_failed","Device authorization could not be started.");let i=Kr(n.device_code),a=Kr(n.user_code),s=Kr(n.verification_uri),o=n.expires_in,u=n.interval??XI;if(!i||!a||!s||typeof o!=="number"||!Number.isFinite(o)||o<=0||typeof u!=="number"||!Number.isFinite(u)||u<=0)throw new ge("invalid_response","WorkOS returned invalid device authorization data.");return{deviceCode:i,expiresInSeconds:o,intervalSeconds:u,userCode:a,verificationUri:s,verificationUriComplete:Kr(n.verification_uri_complete)}}async function Xu(e){let r=e.fetch??fetch,t=e.now??Date.now,n=e.sleep??((s)=>new Promise((o)=>setTimeout(o,s))),i=t()+e.authorization.expiresInSeconds*1000,a=e.authorization.intervalSeconds;while(t()<i){if(await n(a*1000),t()>=i)break;let s;try{s=await kt({deadline:i,fetch:r,init:{body:new URLSearchParams({client_id:e.clientId,device_code:e.authorization.deviceCode,grant_type:SI}),headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST"},now:t,...e.requestTimeoutMs?{timeoutMs:e.requestTimeoutMs}:{},url:e.tokenUrl??St(e.issuer,"/authenticate")})}catch{continue}let o=await $u(s);if(s.ok){let u=Kr(o.access_token),l=Kr(o.refresh_token);if(!u||!l)throw new ge("invalid_response","WorkOS returned an incomplete CLI session.");try{return Pn({accessToken:u,apiOrigin:e.apiOrigin,clientId:e.clientId,expiresInSeconds:typeof o.expires_in==="number"?o.expires_in:null,issuer:e.issuer,now:t(),organizationId:typeof o.organization_id==="string"?o.organization_id:null,refreshToken:l})}catch{throw new ge("invalid_response","WorkOS returned an invalid CLI session.")}}if(gu(s))continue;switch(o.error){case"authorization_pending":break;case"slow_down":a+=OI;break;case"access_denied":throw new ge("access_denied","Device authorization was denied.");case"expired_token":case"invalid_grant":throw new ge("authorization_expired","Device authorization expired.");default:throw new ge("request_failed","Device authorization polling failed.")}}throw new ge("authorization_expired","Device authorization expired.")}async function Aa(e){return await Rt(e.lockDirectory,e.profileName,async()=>{let r=await Su({clientId:e.clientId,...e.deviceAuthorizationUrl?{deviceAuthorizationUrl:e.deviceAuthorizationUrl}:{},...e.fetch?{fetch:e.fetch}:{},issuer:e.issuer,...e.now?{now:e.now}:{}});if(await e.onVerification(r),e.openBrowser)await Promise.resolve(e.openBrowser(r.verificationUriComplete??r.verificationUri)).catch(()=>{return});let t=await Xu({apiOrigin:e.apiOrigin,authorization:r,clientId:e.clientId,...e.fetch?{fetch:e.fetch}:{},issuer:e.issuer,...e.now?{now:e.now}:{},...e.sleep?{sleep:e.sleep}:{},...e.tokenUrl?{tokenUrl:e.tokenUrl}:{}});if(e.finalizeSession)t=await e.finalizeSession(t);return await e.credentialStore.set(e.profileName,Tn(t)),t})}function Ar(e){return e instanceof ze||e instanceof Ir||e instanceof oe||e instanceof Fr||e instanceof Ie||e instanceof Me||e instanceof Z||e instanceof ge}var zI="[redacted]",WI=5,Ou=50,ju=2000,jI=/^(?:authorization(?:[_-]?header)?|cookie(?:[_-]?header)?|credentials?|passwords?|passphrases?|private|secrets?|secret[_-]?keys?|tokens?|source|content|api[_-]?(?:keys?|secrets?)|client[_-]?secrets?|private[_-]?keys?|signing[_-]?keys?|webhook[_-]?secrets?|(?:access|auth|bearer|github|id|oauth|personal[_-]?access|refresh|session|slack|stripe)[_-]?tokens?)$/iu,Pu=new Set(["authentication_required","invalid_credential","insufficient_scope","forbidden","feature_disabled","content_too_large","unsupported_media_type","invalid_request","validation_failed","not_found","stale_revision","idempotency_mismatch","operation_in_progress","conflict","rate_limited","upstream_unavailable","internal_error"]),PI=new Set(["__proto__","constructor","prototype"]);class K extends Error{code;correlationId;details;retryable;status;constructor(e){super(e.message);this.name="CliApiError",this.code=e.code,this.correlationId=e.correlationId??null,this.details=e.details,this.retryable=e.retryable,this.status=e.status??null}toJSON(){return{code:this.code,correlationId:this.correlationId,...this.details?{details:this.details}:{},message:this.message,retryable:this.retryable,status:this.status}}}function Ze(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)}function TI(e,r){if(typeof e!=="string")return r;let t=e.trim();return t?t.slice(0,ju):r}function VI(e){return typeof e==="string"&&Pu.has(e)?e:"api_error"}function Ca(e,r,t){if(t&&jI.test(t))return zI;if(r>=WI)return"[truncated]";if(typeof e==="string")return e.slice(0,ju);if(e===null||typeof e==="boolean"||typeof e==="number")return e;if(Array.isArray(e))return e.slice(0,Ou).map((i)=>Ca(i,r+1));if(!Ze(e))return;let n=Object.create(null);for(let[i,a]of Object.entries(e).slice(0,Ou)){if(PI.has(i))continue;let s=Ca(a,r+1,i);if(s!==void 0)n[i]=s}return n}function zu(e){if(!Ze(e)||!Ze(e.error))return null;let r=e.error,t=typeof r.correlationId==="string"?r.correlationId.slice(0,128):null,n=Ze(r.details)?Ca(r.details,0):void 0;return{code:VI(r.code),correlationId:t,...Ze(n)?{details:n}:{},message:TI(r.message,"The Action API rejected the request.")}}function Wu(e,r){return e==="operation_in_progress"||e==="rate_limited"||e==="upstream_unavailable"||r===408||r===425||r===429||r!==null&&r>=500}function ka(e,r){return e!==null&&(typeof e==="object"||typeof e==="function")&&"name"in e&&e.name===r}function NI(e){return ka(e,"AbortError")}function DI(e){let r=Ze(e.envelope)&&Ze(e.envelope.error)?e.envelope.error:null,t=r?.code,n=typeof t==="number"&&Number.isInteger(t)&&t>=100&&t<=599?t:null,i=r?.details,a=Ze(i)&&Ze(i.error)?i.error:null,s=zu(a?{error:{...a,message:a.message??r?.message}}:i)??(typeof t==="string"&&Pu.has(t)?zu(e.envelope):null);if(s)return new K({code:s.code,correlationId:s.correlationId,...s.details?{details:s.details}:{},message:s.message,retryable:Wu(s.code,n),status:n});if(r?.reason==="networkError")return new K({code:"transport_error",message:"Unable to reach the Action API.",retryable:!0});if(e.exitCode===3)return qe("The request does not match the generated Action API contract.");if(e.exitCode!==1)return new K({code:e.exitCode===2?"authentication_required":"api_error",message:e.exitCode===2?"The Action API requires authentication.":"The generated Action CLI could not complete the request.",retryable:!1});if(n!==null&&n>=200&&n<400)return new K({code:"invalid_response",message:"The Action API returned an invalid response.",retryable:!1,status:n});if(n!==null)return new K({code:"api_error",message:`The Action API request failed with HTTP ${n}.`,retryable:Wu("api_error",n),status:n});return new K({code:"api_error",message:"The generated Action CLI could not complete the request.",retryable:!1})}function nr(e){if(e instanceof K)return e;if(e instanceof Ae)return DI(e);if(ka(e,"JsonError"))return qe("The request does not match the Action API contract.");if(ka(e,"ParseError"))return We("The Action API returned an invalid response.");if(NI(e))return new K({code:"request_aborted",message:"The Action API request was cancelled.",retryable:!1});return new K({code:"unknown_error",message:"The Action API request could not be completed.",retryable:!1})}function qe(e){return new K({code:"invalid_request",message:e,retryable:!1})}function We(e){return new K({code:"invalid_response",message:e,retryable:!1})}import{setTimeout as MI}from"node:timers/promises";var EI=1e4;async function Xt(e){let r=[],t=new Set,n;for(let i=0;i<EI;i+=1){let a=await e(n);if(!Array.isArray(a.items))throw We("The Action API returned an invalid page.");if(r.push(...a.items),a.nextCursor===null)return r;if(typeof a.nextCursor!=="string"||!a.nextCursor)throw We("The Action API returned an invalid pagination cursor.");if(t.has(a.nextCursor))throw We("The Action API repeated a pagination cursor.");t.add(a.nextCursor),n=a.nextCursor}throw We("The Action API returned too many pages.")}var GI=/^[A-Za-z0-9._:-]{1,128}$/u,UI=/^[A-Za-z0-9._:-]{8,200}$/u,JI=100,Tu=100,FI=2,KI=50,Vu=5;function BI(e){let r;try{r=new URL(e)}catch{throw qe("The Action API base URL is invalid.")}if(r.protocol!=="https:"&&r.protocol!=="http:")throw qe("The Action API base URL must use HTTP or HTTPS.");return r.origin}function Br(e){if(e===void 0)return JI;if(!Number.isInteger(e)||e<1||e>Tu)throw qe(`The page size must be between 1 and ${Tu}.`);return e}function YI(e){let r=e.trim();if(!UI.test(r))throw qe("The idempotency key contains unsupported characters.");return r}function Nu(e,r){let t=e??r.defaultValue;if(!Number.isInteger(t)||t<r.minimum||t>r.maximum)throw qe(`${r.name} must be an integer between ${r.minimum} and ${r.maximum}.`);return t}function Du(e){if(e===void 0)return;let r=e.trim();if(!r||r.length>1000)throw qe("cursor must contain 1 to 1000 characters.");return r}function Gu(e){let r=e.trim();if(/^W\//u.test(r))throw qe("ifMatch must be a generation-aware strong ETag.");let t=r.startsWith('"')&&r.endsWith('"')?r:`"${r}"`,n=t.match(/^"([^"\\]{1,200}):([0-9]{1,10})"$/u),i=Number(n?.[2]);if(!n?.[1]||!Number.isSafeInteger(i)||i<0||i>2147483647)throw qe("ifMatch must be a generation-aware strong ETag.");return t}function ZI(e){return Gu(e).slice(1,-1).replace(/:\d+$/u,"")}async function Eu(e,r){let t=(r??await e()).trim();if(!GI.test(t))throw qe("The correlation ID contains unsupported characters.");return t}function Mu(e,r){let t=new Map(e.map((n)=>[n.name,n]));for(let n of r){let i=t.get(n.name);t.set(n.name,{...i??n,...n.inputSchema!==null?{inputSchema:n.inputSchema}:{},...n.outputSchema!==null?{outputSchema:n.outputSchema}:{}})}return[...t.values()]}function QI(e){let r=new Map;for(let t of e){let n=r.get(t.slug);if(!n){r.set(t.slug,{...t,connectorInstances:[...t.connectorInstances]});continue}let i=new Map(n.connectorInstances.map((a)=>[a.id,a]));for(let a of t.connectorInstances)i.set(a.id,a);r.set(t.slug,{...n,actions:Mu(n.actions,t.actions),connectionStatus:n.connectionStatus==="connected"||t.connectionStatus==="connected"?"connected":"not_connected",connectorInstances:[...i.values()],readActions:Mu(n.readActions,t.readActions)})}return[...r.values()]}async function HI(e,r={}){let t=r.maxRetries??0;if(!Number.isInteger(t)||t<0)throw qe("maxRetries must be a non-negative integer.");for(let n=0;;n+=1){if(r.abortSignal?.aborted)throw nr({name:"AbortError"});try{return await e()}catch(i){if(r.preserveError?.(i))throw i;let a=nr(i);if(r.abortSignal?.aborted)throw nr({name:"AbortError"});let s=a.status;if(!(a.code==="transport_error"||s===408||s===425||s===429||s!==null&&s>=500)||n>=t)throw a;try{await MI(KI*(n+1),void 0,r.abortSignal?{signal:r.abortSignal}:void 0)}catch(u){throw nr(u)}}}}class Ra{options;correlationIdProvider;constructor(e){this.options={...e,baseUrl:BI(e.baseUrl)},this.correlationIdProvider=e.correlationIdProvider??(()=>crypto.randomUUID())}async getIdentity(e={}){return await this.invoke("identity.getCurrentPrincipal",{},e)}async listSpaces(e={}){let r=Br(e.pageSize),t=await this.paginated(e);return await Xt(async(n)=>{let i=await this.invoke("identity.listSpaces",{...n?{cursor:n}:{},limit:r},t);return{items:i.spaces,nextCursor:i.nextCursor}})}async listWorkflows(e,r={}){let t=Br(r.pageSize),n=await this.paginated(r);return await Xt(async(i)=>{let a=await this.invoke("workflows.listWorkflows",{...e,...i?{cursor:i}:{},limit:t},n);return{items:a.data,nextCursor:a.nextCursor}})}async getWorkflow(e,r={}){return await this.invoke("workflows.getWorkflow",{...e},r)}async listWorkflowRevisions(e,r={}){let t=Br(r.pageSize),n=await this.paginated(r);return await Xt(async(i)=>{let a=await this.invoke("workflows.listWorkflowRevisions",{spaceId:e.spaceId,workflowId:e.workflowId,...i?{cursor:i}:{},limit:t},n);return{items:a.data,nextCursor:a.nextCursor}})}async getWorkflowRevision(e,r={}){return await this.invoke("workflows.getWorkflowRevision",{...e},r)}async listWorkflowCapabilities(e,r={}){let t=Br(r.pageSize),n=await this.paginated(r),i=await Xt(async(a)=>{let s=await this.invoke("workflows.listWorkflowCapabilities",{spaceId:e,...a?{cursor:a}:{},...r.query?{q:r.query}:{},limit:t},n);return{items:s.applications,nextCursor:s.nextCursor}});return QI(i)}async createWorkflow(e,r){let{spaceId:t,...n}=e;return await this.invoke("workflows.createWorkflow",{spaceId:t,...this.mutationParameters(r)},r,n)}async updateWorkflow(e,r){let{spaceId:t,workflowId:n,ifMatch:i,...a}=e;return await this.invoke("workflows.updateWorkflow",{spaceId:t,workflowId:n,...this.mutationParameters(r,i)},r,{...a,baseRevisionId:ZI(i)})}async validateWorkflowRevision(e,r={}){return await this.invoke("workflows.validateWorkflowRevision",{...e},r)}async testWorkflowRevision(e,r){let{spaceId:t,workflowId:n,revisionId:i,ifMatch:a,input:s}=e;return await this.invoke("workflows.testWorkflowRevision",{spaceId:t,workflowId:n,revisionId:i,...this.mutationParameters(r,a)},r,{input:s})}async createWorkflowRun(e,r){let{spaceId:t,...n}=e;return await this.invoke("workflows.createWorkflowRun",{spaceId:t,...this.mutationParameters(r)},r,n)}async listWorkflowRuns(e,r={}){let t=Du(r.cursor);return await this.invoke("workflows.listWorkflowRuns",{...e,...t?{cursor:t}:{},limit:Br(r.pageSize)},r)}async getWorkflowRun(e,r={}){return await this.invoke("workflows.getWorkflowRun",{...e},r)}async waitForWorkflowRun(e,r={}){let t=Nu(e.timeoutSeconds,{defaultValue:25,maximum:30,minimum:1,name:"timeoutSeconds"});return await this.invoke("workflows.waitForWorkflowRun",{runId:e.runId,spaceId:e.spaceId,timeoutSeconds:t},r,void 0,0,t+Vu)}async listWorkflowRunEvents(e,r={}){let t=Du(e.cursor),n=Nu(e.waitSeconds,{defaultValue:25,maximum:30,minimum:0,name:"waitSeconds"});return await this.invoke("workflows.listWorkflowRunEvents",{...t?{cursor:t}:{},limit:Br(e.pageSize),runId:e.runId,spaceId:e.spaceId,waitSeconds:n},r,void 0,0,n+Vu)}async cancelWorkflowRun(e,r){return await this.invoke("workflows.cancelWorkflowRun",{...e,...this.mutationParameters(r)},r)}async publishWorkflowRevision(e,r){let{ifMatch:t,...n}=e;return await this.invoke("workflows.publishWorkflowRevision",{...n,...this.mutationParameters(r,t)},r)}async archiveWorkflow(e,r){let{ifMatch:t,...n}=e;return await this.invoke("workflows.archiveWorkflow",{...n,...this.mutationParameters(r,t)},r)}mutationParameters(e,r){return{"Idempotency-Key":YI(e.idempotencyKey),...r===void 0?{}:{"If-Match":Gu(r)}}}async paginated(e){return{...e,correlationId:await Eu(this.correlationIdProvider,e.correlationId)}}async invoke(e,r,t,n,i=FI,a){let s=await Eu(this.correlationIdProvider,t.correlationId);return await HI(async()=>await Mr({operation:e,parameters:r,...n===void 0?{}:{body:n},baseUrl:this.options.baseUrl,tokenProvider:this.options.tokenProvider,correlationId:s,version:this.options.version??ne,...t.abortSignal?{abortSignal:t.abortSignal}:{},...a===void 0?{}:{timeoutInSeconds:a},...this.options.cwd===void 0?{}:{cwd:this.options.cwd},...this.options.env===void 0?{}:{env:this.options.env},...this.options.binaryPath===void 0?{}:{binaryPath:this.options.binaryPath}}),{...t.abortSignal?{abortSignal:t.abortSignal}:{},maxRetries:i,...this.options.preserveError?{preserveError:this.options.preserveError}:{}})}}function Ot(e){return new Ra(e)}function La(e,r,t){let n=e.command("auth").description("Authenticate the Action CLI");n.command("profiles").description("List saved profiles and their organization/space context without authenticating").action(async(i,a)=>{let s=t(a),o=await Y(a,r,{reporter:s});if(!o.auth.profiles)throw Error("Profile inventory is unavailable in this runtime.");let u=await o.auth.profiles();s.result(u.value,u.human)}),n.command("login").description("Sign in using the secure WorkOS device flow").option("--organization <id-or-key>","select an Action organization").action(async(i,a)=>{let s=t(a),o=await Y(a,r,{reporter:s}),u=a.optsWithGlobals().organization,l=await o.auth.login(u?{organization:u}:{});s.result(l.value,l.human)}),n.command("logout").description("Remove the stored session for the selected profile").action(async(i,a)=>{let s=t(a),u=await(await Y(a,r,{reporter:s})).auth.logout();s.result(u.value,u.human)}),n.command("status").description("Show authentication status for the selected profile").action(async(i,a)=>{let s=t(a),u=await(await Y(a,r,{reporter:s})).auth.status();s.result(u.value,u.human)})}import{mkdir as Ju,mkdtemp as _I,readdir as eg,readFile as rg,rename as $a,rm as Fu,stat as tg,writeFile as ng}from"node:fs/promises";import{dirname as Ku,join as ig,relative as Bu,resolve as Dn,sep as Yu}from"node:path";var Uu=1200000,va=200,xI=[{description:"Archive an access policy.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archivePolicy",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"none"},{description:"Archive an access profile.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archiveProfile",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"none"},{description:"Archive an access role so it can no longer be requested.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.archiveRole",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"Create a published access policy.",bodyProperties:["status","name","description","maxAccessMinutes","recommendedAccessMinutes","businessJustificationMode","requireBusinessJustification","businessJustificationSpec","businessJustificationApprovalMode","businessJustificationRejectionMode","allowSelfApproval","autoApproveWhenRequesterIsApprover","notifyApproversViaSlack","notifyApproversViaTeams","slackNotifyDelivery","slackEscalationIntervalMinutes","teamsNotifyDelivery","teamsEscalationIntervalMinutes","notifyApproversViaGoogleChat","googleChatNotifyDelivery","googleChatEscalationIntervalMinutes","approvalStages","approvers","approverProvisioningImpactAcknowledged"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createPolicy",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies",queryParameters:[],requestBody:"json"},{description:"Create a published access profile. Changes take effect immediately.",bodyProperties:["status","name","description","isDefault","matchingCriteria","roleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createProfile",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles",queryParameters:[],requestBody:"json"},{description:"Create a published application access role. Set requestsEnabled=false to keep it unavailable for requests.",bodyProperties:["status","name","description","requestsEnabled","connectorInstanceId","accessProfileId","accessPolicyId","provisioningMethodType","provisioningConfig","externalId","externalData"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.createRole",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles",queryParameters:[],requestBody:"json"},{description:"Read one access policy, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getPolicy",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"none"},{description:"Read one access profile, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getProfile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"none"},{description:"Read one access role, draft or published.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.getRole",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"List applications available to access configuration in this space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listConnectors",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-connectors",queryParameters:["query","limit","cursor"],requestBody:"none"},{description:"List groups available for linked-group access provisioning in this space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listLinkedGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-linked-groups",queryParameters:["query","limit","cursor"],requestBody:"none"},{description:"List the access policies in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listPolicies",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-policies",queryParameters:["includeArchived","status","query","limit","cursor"],requestBody:"none"},{description:"List the access profiles in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listProfiles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-profiles",queryParameters:["includeArchived","status","query","limit","cursor"],requestBody:"none"},{description:"List the access roles in the caller's space, newest first.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.listRoles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/access-roles",queryParameters:["includeArchived","status","connectorInstanceId","connectorSlug","provisioningMethodType","query","limit","cursor"],requestBody:"none"},{description:"Publish an access policy draft, or apply a draft edit to the published policy.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishPolicy",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}/publish",queryParameters:[],requestBody:"none"},{description:"Publish an access profile draft, or apply a draft edit to the published profile.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishProfile",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}/publish",queryParameters:[],requestBody:"none"},{description:"Publish an access role draft, or apply a draft edit to the published role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.publishRole",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}/publish",queryParameters:[],requestBody:"none"},{description:"Update an access policy's approvers, limits and justification handling.",bodyProperties:["name","description","maxAccessMinutes","recommendedAccessMinutes","businessJustificationMode","requireBusinessJustification","businessJustificationSpec","businessJustificationApprovalMode","businessJustificationRejectionMode","allowSelfApproval","autoApproveWhenRequesterIsApprover","notifyApproversViaSlack","notifyApproversViaTeams","slackNotifyDelivery","slackEscalationIntervalMinutes","teamsNotifyDelivery","teamsEscalationIntervalMinutes","notifyApproversViaGoogleChat","googleChatNotifyDelivery","googleChatEscalationIntervalMinutes","approvalStages","approvers","approverProvisioningImpactAcknowledged"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updatePolicy",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-policies/{policyId}",queryParameters:[],requestBody:"json"},{description:"Update an access profile's fields, group criteria and role set.",bodyProperties:["addExcludedGroupIds","removeExcludedGroupIds","addGroupIds","removeGroupIds","addRoleIds","removeRoleIds","name","description","isDefault","matchingCriteria","roleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updateProfile",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-profiles/{profileId}",queryParameters:[],requestBody:"json"},{description:"Update an access role's fields and provisioning configuration.",bodyProperties:["name","description","requestsEnabled","connectorInstanceId","accessProfileId","accessPolicyId","provisioningMethodType","provisioningConfig","externalId","externalData"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"access.updateRole",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/access-roles/{roleId}",queryParameters:[],requestBody:"json"},{description:"Abandon a pending reconnect and restore the connector's prior status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.cancelApplicationReconnect",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect/cancel",queryParameters:[],requestBody:"none"},{description:"Confirm a connector authorization flow after the provider callback.",bodyProperties:["connectionId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.confirmApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/confirm",queryParameters:[],requestBody:"json"},{description:"Start a connector authorization flow.",bodyProperties:["label","connectionConfig","generateSuggestions"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.connectApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}/connect",queryParameters:[],requestBody:"json"},{description:"Connect a custom MCP server to the current space.",bodyProperties:["displayName","endpointUrl","headers","transport"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.createCustomIntegration",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/integrations",queryParameters:[],requestBody:"json"},{description:"Disconnect a connector instance and retire everything bound to its connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.disconnectApplication",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:[],requestBody:"none"},{description:"Disconnect an integration from the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.disconnectIntegration",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}",queryParameters:[],requestBody:"none"},{description:"Duplicate a connected connector instance into another authorized space.",bodyProperties:["targetSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.duplicateApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/duplicate",queryParameters:[],requestBody:"json"},{description:"Read one connector instance with its knowledge sources and sync status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplication",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:["providerSyncStatus"],requestBody:"none"},{description:"Read actions and syncs exposed by one connector catalog entry.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationCatalog",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/catalog/{slug}",queryParameters:[],requestBody:"none"},{description:"Read an application's inbound and outbound issue sync settings.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationIssueSyncSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",queryParameters:[],requestBody:"none"},{description:"Report whether the Jira Forge app is installed on the connector's Jira site.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.getApplicationJiraForgeStatus",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/jira-forge",queryParameters:[],requestBody:"none"},{description:"List automations that use this application connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationAutomations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/automations",queryParameters:["cursor","limit","q","sortBy","sortDirection"],requestBody:"none"},{description:"Report whether requested connector types have connected or enabled instances.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationAvailability",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/availability",queryParameters:["slug"],requestBody:"none"},{description:"List repositories available to GitHub connector.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationGithubRepositories",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/github/repositories",queryParameters:["cursor","q"],requestBody:"none"},{description:"List directory groups a provisioning connector can link roles to.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/linked-groups",queryParameters:["cursor","limit","search","selectedId"],requestBody:"none"},{description:"List available issue teams or assignment groups for an application.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationIssueTeams",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/issue-teams",queryParameters:[],requestBody:"none"},{description:"List connector catalog entries and instances visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications",queryParameters:["attention","connectorInstanceId","cursor","limit","q"],requestBody:"none"},{description:"List connector synchronization runs.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationSyncRuns",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/sync-runs",queryParameters:["cursor","event","limit","q","status"],requestBody:"none"},{description:"List the provider's choices for an application trigger field, such as Linear teams.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationTriggerFieldOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/trigger-field-options",queryParameters:["field","q","cursor"],requestBody:"none"},{description:"List workflows that use this connector's application.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listApplicationWorkflows",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/{id}/workflows",queryParameters:["cursor","limit","q","sort","status","visibility"],requestBody:"none"},{description:"List connected instances for requested connector types.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listConnectedApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/applications/connected",queryParameters:["slug"],requestBody:"none"},{description:"List integrations available in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listIntegrations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/integrations",queryParameters:["alias","cursor","id","includeDeleted","limit","nangoConnectionId","q","source"],requestBody:"none"},{description:"List tools exposed by one connected integration.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.listIntegrationTools",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/integrations/{id}/tools",queryParameters:[],requestBody:"none"},{description:"Issue new Okta webhook credentials, invalidating the previous hook.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.provisionApplicationWebhook",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/okta-webhook",queryParameters:[],requestBody:"none"},{description:"Start a reconnect against the connector's existing auth connection.",bodyProperties:["connectionConfig"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.reconnectApplication",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/reconnect",queryParameters:[],requestBody:"json"},{description:"Rename an integration connection.",bodyProperties:["displayName"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.renameIntegration",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}",queryParameters:[],requestBody:"json"},{description:"Choose whether a connector instance may perform write actions.",bodyProperties:["actionMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setApplicationActionMode",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/action-mode",queryParameters:[],requestBody:"json"},{description:"Turn a connector instance on or off across every surface that reads it.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setApplicationEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/enabled",queryParameters:[],requestBody:"json"},{description:"Enable or disable an integration connection.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.setIntegrationEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/integrations/{id}/enabled",queryParameters:[],requestBody:"json"},{description:"Request synchronization for an application connection.",bodyProperties:["initial"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.triggerApplicationSync",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/sync",queryParameters:[],requestBody:"json"},{description:"Update a connector instance label.",bodyProperties:["label"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.updateApplication",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}",queryParameters:[],requestBody:"json"},{description:"Replace an application's issue sync settings and reconcile provider schedules.",bodyProperties:["agentPreferences","mappings","pull","push","autoAddress"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"applications.updateApplicationIssueSyncSettings",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/applications/{id}/issue-sync",queryParameters:[],requestBody:"json"},{description:"Archive an assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a custom assignment group.",bodyProperties:["name","sources","kind","connectorInstanceId","externalProviderGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups",queryParameters:[],requestBody:"json"},{description:"Read one assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",queryParameters:[],requestBody:"none"},{description:"Read an assignment group's resolved membership.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.getMembership",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/membership",queryParameters:[],requestBody:"none"},{description:"Read the assignment-group import settings for the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.getSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/settings",queryParameters:[],requestBody:"none"},{description:"List assignment groups in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups",queryParameters:["cursor","includeArchived","kind","limit","offset","q","routableOnly","sortBy","sortDirection"],requestBody:"none"},{description:"List the people in an imported assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.listMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/members",queryParameters:["access","cursor","limit","q","sortBy","sortDirection"],requestBody:"none"},{description:"Enable or disable assignment-group import for one connection.",bodyProperties:["enabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.setImportEnabled",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/connections/{connectorInstanceId}/import",queryParameters:[],requestBody:"json"},{description:"Set assignment-group import for several connections at once.",bodyProperties:["changes"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.setImportSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/import-selection",queryParameters:[],requestBody:"json"},{description:"Restore an archived assignment group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.unarchive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}/unarchive",queryParameters:[],requestBody:"none"},{description:"Rename a custom assignment group or replace its sources.",bodyProperties:["name","sources","kind","connectorInstanceId","externalProviderGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-groups.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-groups/{assignmentGroupId}",queryParameters:[],requestBody:"json"},{description:"Create an assignment rule at the end of the evaluation order.",bodyProperties:["conditions","actions","matchMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules",queryParameters:[],requestBody:"json"},{description:"List the assignment rules in the active space, in evaluation order.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/assignment-rules",queryParameters:[],requestBody:"none"},{description:"Delete an assignment rule and clear the cases it routed.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.remove",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",queryParameters:[],requestBody:"none"},{description:"Reorder every assignment rule in the space.",bodyProperties:["ruleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.reorder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/reorder",queryParameters:[],requestBody:"json"},{description:"Update an assignment rule's conditions, actions, match mode or enabled state.",bodyProperties:["isEnabled","matchMode","conditions","actions"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"assignment-rules.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/assignment-rules/{ruleId}",queryParameters:[],requestBody:"json"},{description:"Approve a proposed automation edit and publish its immutable version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.approveEditProposal",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/approve",queryParameters:[],requestBody:"none"},{description:"Archive a user-managed automation definition and disable its automations.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.archive",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"none"},{description:"List archived automation definitions in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.archived",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/archived",queryParameters:[],requestBody:"none"},{description:"Read the copilot automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.copilot",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/copilot",queryParameters:[],requestBody:"none"},{description:"Create an automation definition and its initial immutable version.",bodyProperties:["name","description","slugId","paused","runAsUserId","config"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations",queryParameters:[],requestBody:"json"},{description:"Create an automation for an automation definition.",bodyProperties:["displayName","triggerKind","userMessageTemplate","workflowInput","config","connectorInstanceId","connectorSlug","fieldValues","triggerSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",queryParameters:[],requestBody:"json"},{description:"Publish a new immutable version of an automation definition.",bodyProperties:["config"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",queryParameters:[],requestBody:"json"},{description:"Create an automation for a published workflow.",bodyProperties:["displayName","triggerKind","userMessageTemplate","workflowInput","config","connectorInstanceId","connectorSlug","fieldValues","triggerSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.createWorkflowTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",queryParameters:[],requestBody:"json"},{description:"Delete an automation automation and tear down unused trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.deleteTrigger",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",queryParameters:[],requestBody:"none"},{description:"Delete a workflow automation and tear down unused trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.deleteWorkflowTrigger",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",queryParameters:[],requestBody:"none"},{description:"Disable an automation automation and its trigger delivery.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.disableTrigger",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/disable",queryParameters:[],requestBody:"none"},{description:"Read one automation definition visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"none"},{description:"Read an automation edit proposal.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.getEditProposal",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}",queryParameters:[],requestBody:"none"},{description:"Read the help desk automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.helpDesk",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/help-desk",queryParameters:[],requestBody:"none"},{description:"List automation definitions visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations",queryParameters:["slugId","cursor","limit","search","automationId"],requestBody:"none"},{description:"List automations for an automation definition.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listAutomationTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List pending automation edits proposed in a conversation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listEditProposals",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-edit-proposals",queryParameters:["threadId","cursor","limit"],requestBody:"none"},{description:"List automation automations visible in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List immutable versions of an automation definition.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listVersions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/{automationId}/versions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List automations for a workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.listWorkflowTriggers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Read aggregate automation management metrics for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.managementStats",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/management-stats",queryParameters:[],requestBody:"none"},{description:"Reject a proposed automation edit.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.rejectEditProposal",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automation-edit-proposals/{proposalId}/reject",queryParameters:[],requestBody:"none"},{description:"Restore an archived automation definition and the automations archived with it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.restore",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}/restore",queryParameters:[],requestBody:"none"},{description:"Reveal the signing secret for an automation webhook automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.revealWebhookSecret",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}/webhook-secret",queryParameters:[],requestBody:"none"},{description:"Reveal the signing secret for a workflow webhook automation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.revealWorkflowWebhookSecret",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}/webhook-secret",queryParameters:[],requestBody:"none"},{description:"Read weekly automation activity for the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.spaceStats",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/space-stats",queryParameters:[],requestBody:"none"},{description:"List automation summaries with their activity counters.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.summaries",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/automations/summaries",queryParameters:["cursor","limit","search","sortBy","sortDirection","automationId"],requestBody:"none"},{description:"Update an automation definition's profile.",bodyProperties:["name","description","slugId","paused","runAsUserId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/automations/{automationId}",queryParameters:[],requestBody:"json"},{description:"Update an automation automation.",bodyProperties:["integrationId","triggerSlug","displayName","triggerConfig","userMessageTemplate","workflowInput"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.updateTrigger",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/automation-triggers/{triggerId}",queryParameters:[],requestBody:"json"},{description:"Update a workflow automation.",bodyProperties:["integrationId","triggerSlug","displayName","triggerConfig","userMessageTemplate","workflowInput"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"automations.updateWorkflowTrigger",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/triggers/{triggerId}",queryParameters:[],requestBody:"json"},{description:"Subscribe other organization members to a visible case and notify each person added. Requires a signed-in user credential.",bodyProperties:["userIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.addSubscribers",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscribers",queryParameters:[],requestBody:"json"},{description:"Archive a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/archive",queryParameters:[],requestBody:"none"},{description:"Archive one approval inbox row for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveInboxApproval",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/archive",queryParameters:[],requestBody:"none"},{description:"Archive one case inbox row for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.archiveInboxCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/archive",queryParameters:[],requestBody:"none"},{description:"Add a public or internal comment to a case.",bodyProperties:["body","visibility","turnId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.comment",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/comments",queryParameters:[],requestBody:"json"},{description:"Create a case in the current space.",bodyProperties:["title","summary","statusId","priority","categoryId","requesterUserId","assigneeUserId","assignmentGroupId","dueAt","availableAt","primaryThreadId","parentCaseId","blocksCaseId","caseTypeId","fields"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases",queryParameters:[],requestBody:"json"},{description:"Create a category in the active case space.",bodyProperties:["name","description"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createCategory",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-categories",queryParameters:[],requestBody:"json"},{description:"Create a label in the current case space.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.createLabel",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-labels",queryParameters:[],requestBody:"json"},{description:"Remove an attachment from a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.deleteAttachment",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}",queryParameters:[],requestBody:"none"},{description:"Download an attachment from a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.downloadAttachment",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments/{attachmentId}/download",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Escalate a request to human ownership using the space's assignment and muting settings.",bodyProperties:["reason"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.escalateRequest",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/requests/{sourceThreadId}/escalate",queryParameters:[],requestBody:"json"},{description:"Read one case with the first page of everything hanging off it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.getCase",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",queryParameters:["workflowRunId","space"],requestBody:"none"},{description:"Get the current actor's subscription to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.getSubscription",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Link two writable cases: as a subcase (type parent, the default) or as a blocker of the path case (type blocks). Requires a signed-in user credential.",bodyProperties:["targetCaseIdOrIdentifier","type"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.linkRelation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations",queryParameters:[],requestBody:"json"},{description:"Link an existing automation thread to a writable case. Requires a signed-in user credential.",bodyProperties:["threadId","relationship","purpose","metadata","automationId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.linkThread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",queryParameters:[],requestBody:"json"},{description:"List visible activity for a case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listActivity",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/activity",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Search people who can be assigned to a case in the current space. Requires space_member:read in addition to the public cases:read scope.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listAssigneeCandidates",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-assignee-candidates",queryParameters:["assignmentGroupId","cursor","limit","q"],requestBody:"none"},{description:"List file attachments for a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listAttachments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List cases in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of cases in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List the active categories in the current case space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listCategories",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-categories",queryParameters:[],requestBody:"none"},{description:"List assignment groups available as case-inbox filters. Personal spans every space the actor is addressed in; a space inbox shows only its own. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listInboxCaseGroupOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-inbox/group-options",queryParameters:["inboxState","statusType","stageCategory","priority","assigneeUserId","requesterUserId","presetAssigneeMode","notificationType","q","limit","cursor","groupQ"],requestBody:"none"},{description:"List the current actor's case inbox rows. Personal spans every space the actor is addressed in; a space inbox shows only its own. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listInboxCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-inbox",queryParameters:["inboxState","statusType","stageCategory","priority","assigneeUserId","requesterUserId","presetAssigneeMode","notificationType","q","limit","cursor","assignmentGroupId","sortBy","sortDir"],requestBody:"none"},{description:"List the labels attached to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listLabels",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/labels",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the filter values still worth offering over the current actor's cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCaseFilterOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine/filter-options",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","kind","q"],requestBody:"none"},{description:"List the cases the current actor is involved in, across spaces. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of the current actor's cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listMyCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-mine/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List statuses, categories, or labels in the current case space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listReferenceData",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/case-reference-data",queryParameters:["kind","cursor","limit"],requestBody:"none"},{description:"List the source links attached to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSourceLinks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/source-links",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the filter values still worth offering over subscribed cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCaseFilterOptions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/filter-options",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","kind","q"],requestBody:"none"},{description:"List the cases the current actor subscribes to. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir"],requestBody:"none"},{description:"List the first page of each group of the current actor's subscribed cases. The selected space anchors authorization; results include the user's accessible cases across the organization. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribedCasesGrouped",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases-subscribed/grouped",queryParameters:["includeArchived","includeTotalCount","withoutParent","withoutRequester","withoutCategory","id","statusType","statusGroup","caseTypeId","statusId","stageCategory","priority","assigneeUserId","assignmentGroupId","requesterUserId","categoryId","labelId","fieldFilters","search","limit","cursor","after","before","updatedAfter","updatedBefore","sortBy","sortDir","groupBy"],requestBody:"none"},{description:"List the people subscribed to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listSubscribers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscribers",queryParameters:[],requestBody:"none"},{description:"List the sessions linked to a visible case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listThreads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Read a permission-aware page of a case's descendant tasks and native blocker edges. Follow nextCursor until null; restricted pages cannot establish whole-plan completion.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.listWorkPlan",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/work-plan",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Mark a visible case and its notifications read for the current actor. Requires a signed-in user credential.",bodyProperties:["mode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.markRead",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/read",queryParameters:[],requestBody:"json"},{description:"Mark a visible case unread for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.markUnread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/unread",queryParameters:[],requestBody:"none"},{description:"Move a case to another space or type. It changes in place when it can; otherwise a new case of the target type takes over its conversation and this one is cancelled. Requires a signed-in user credential.",bodyProperties:["caseTypeId","targetSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:100,minLength:1,type:"string"}}],id:"cases.move",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/move",queryParameters:[],requestBody:"json"},{description:"Show whether a move would change the case in place, open a new case, or be refused. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.previewMove",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/move-preview",queryParameters:["caseTypeId","targetSpaceId"],requestBody:"none"},{description:"Read a case with names and pages of linked sessions, case-triggered automation runs, and workflow runs.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readContext",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/context",queryParameters:["workflowRunCursor","workflowRunLimit","automationRunCursor","automationRunLimit","sessionCursor","sessionLimit"],requestBody:"none"},{description:"Mark one approval inbox row read for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readInboxApproval",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/approvals/{approvalId}/read",queryParameters:[],requestBody:"none"},{description:"Mark one case inbox row read for the current actor. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.readInboxCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/case-inbox/cases/{caseId}/read",queryParameters:[],requestBody:"none"},{description:"Remove a person's subscription to a visible case. Other users cannot remove the current assignee. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.removeSubscriber",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscribers/{userId}",queryParameters:[],requestBody:"none"},{description:"Reopen a writable case.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.reopenCase",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/reopen",queryParameters:[],requestBody:"none"},{description:"Search accessible case history by meaning.",bodyProperties:["question","statusType","statusId","stageCategory","categoryId","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.search",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/search",queryParameters:[],requestBody:"json"},{description:"Start and link a new automation thread for a writable case. Requires a signed-in user credential.",bodyProperties:["id","relationship","purpose","metadata","startMuted","automationId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.spawnThread",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/threads/spawn",queryParameters:[],requestBody:"json"},{description:"Subscribe the current actor to a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.subscribe",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Remove a writable subcase or blocker relation. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.unlinkRelation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/relations/{relationId}",queryParameters:[],requestBody:"none"},{description:"Unsubscribe the current actor from a visible case. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.unsubscribe",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/subscription",queryParameters:[],requestBody:"none"},{description:"Update a writable case.",bodyProperties:["title","summary","statusId","statusType","stageCategory","priority","categoryId","requesterUserId","assigneeUserId","assigneeActorType","assignmentGroupId","assigneeGroupId","dueAt","availableAt","labelIds","relevantKnowledgeIds","relevantSkillIds","fields"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.updateCase",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}",queryParameters:[],requestBody:"json"},{description:"Upload files to a writable case using the same file restrictions as the web app.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"cases.uploadAttachment",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/cases/{caseIdOrIdentifier}/attachments",queryParameters:[],requestBody:"multipart"},{description:"Create a provider-hosted Admin Portal link for directory, SSO or domain setup.",bodyProperties:["intent","returnUrl","successUrl"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.createAdminPortalLink",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/admin-portal-link",queryParameters:[],requestBody:"json"},{description:"List the organization's directory snapshot.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/directory",queryParameters:["groupMembersLimit","groupsCursor","groupsLimit","userId","usersCursor","usersLimit"],requestBody:"none"},{description:"List the members of one directory group.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.listGroupMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/directory/groups/{groupId}/members",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Search groups in the organization directory.",bodyProperties:["cursor","limit","queries","query"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.searchGroups",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/search/groups",queryParameters:[],requestBody:"json"},{description:"Search people in the organization directory.",bodyProperties:["cursor","limit","query"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.searchUsers",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/search/users",queryParameters:[],requestBody:"json"},{description:"Schedule a fresh organization directory snapshot.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"directory.sync",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/directory/sync",queryParameters:[],requestBody:"none"},{description:"Get the principal and organization the supplied credential resolves to.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"identity.getCurrentPrincipal",idempotent:!1,method:"get",mutation:!1,path:"/v1/me",queryParameters:[],requestBody:"none"},{description:"List the spaces the supplied credential can reach.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"identity.listSpaces",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Archive an uploaded-knowledge folder and all of its documents.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveFolder",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",queryParameters:[],requestBody:"none"},{description:"Archive an uploaded-knowledge subfolder and its documents.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveSubfolder",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",queryParameters:[],requestBody:"none"},{description:"Archive an uploaded knowledge document.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.archiveUpload",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",queryParameters:[],requestBody:"none"},{description:"Read a GitHub knowledge repository file.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.browseGithubKnowledgeRepoFile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/file",queryParameters:["path","repo"],requestBody:"none"},{description:"Browse GitHub knowledge repository tree.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.browseGithubKnowledgeRepoTree",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/tree",queryParameters:["repo"],requestBody:"none"},{description:"Update visibility and availability for all documents in the Confluence source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateConfluenceConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Google Drive source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateGoogleDriveConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Notion source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateNotionConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the SharePoint source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateSharePointConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for all documents in the Simpplr source.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.bulkUpdateSimpplrConnectorDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge/documents",queryParameters:[],requestBody:"json"},{description:"Upload and index a knowledge document. The folder and subfolders are created as needed.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.createUpload",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads",queryParameters:[],requestBody:"multipart"},{description:"Remove this connector's knowledge and prevent its source from being recreated by sync.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.deleteConnectorKnowledge",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/knowledge",queryParameters:[],requestBody:"none"},{description:"List indexed Confluence documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listConfluenceConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"Discover Confluence spaces available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listConfluenceConnectorSpaces",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-spaces",queryParameters:["cursor"],requestBody:"none"},{description:"List upload folders in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listFolders",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/folders",queryParameters:[],requestBody:"none"},{description:"List repositories available to GitHub connector.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGithubConnectorRepos",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",queryParameters:["cursor","query"],requestBody:"none"},{description:"List GitHub knowledge repositories.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGithubKnowledgeRepos",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",queryParameters:[],requestBody:"none"},{description:"List indexed Google Drive documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGoogleDriveConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List Google Drive corpora available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listGoogleDriveConnectorDrives",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/drives",queryParameters:[],requestBody:"none"},{description:"List indexed Notion documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listNotionConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"List the knowledge catalog visible to organization administrators.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listOrganizationDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/documents",queryParameters:["cursor","limit","provider","q","sort","sortDirection"],requestBody:"none"},{description:"List provider totals for the organization knowledge catalog.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listOrganizationKnowledgeProviderCounts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/provider-counts",queryParameters:[],requestBody:"none"},{description:"List indexed SharePoint documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSharePointConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"Discover SharePoint sites available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSharePointConnectorSites",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-sites",queryParameters:["cursor","query"],requestBody:"none"},{description:"List indexed Simpplr documents in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSimpplrConnectorDocuments",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge/documents",queryParameters:["cursor","limit","q","status","availability","type","sort","confluenceSpaceId"],requestBody:"none"},{description:"Discover Simpplr sites available for knowledge selection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSimpplrConnectorSites",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-sites",queryParameters:["cursor"],requestBody:"none"},{description:"List Slack knowledge channels and their indexing settings. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listSlackConnectorChannels",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channels",queryParameters:["cursor","search","limit"],requestBody:"none"},{description:"List uploaded knowledge documents in the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.listUploads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads",queryParameters:["cursor","folder","limit"],requestBody:"none"},{description:"Download an organization knowledge document. Requires a signed-in organization administrator.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.readOrganizationUpload",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/organization/uploads/{documentId}/content",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Download a document owned by the selected space or shared with the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.readUpload",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/content",queryParameters:[],requestBody:"none",binaryResponse:!0},{description:"Reindex an uploaded knowledge document.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.reindexUpload",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}/reindex",queryParameters:[],requestBody:"none"},{description:"Rename an uploaded-knowledge folder.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.renameFolder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}",queryParameters:[],requestBody:"json"},{description:"Rename an uploaded-knowledge subfolder.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.renameSubfolder",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/subfolders/{folderId}",queryParameters:[],requestBody:"json"},{description:"Replace GitHub knowledge repositories.",bodyProperties:["repos"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.replaceGithubKnowledgeRepos",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos",queryParameters:[],requestBody:"json"},{description:"Search accessible knowledge documents and return excerpts with citations.",bodyProperties:["question","provider","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.search",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/search",queryParameters:[],requestBody:"json"},{description:"Search connected Notion pages and data sources available for selection.",bodyProperties:["cursor","query","limit"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.searchNotionConnectorDocuments",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/search",queryParameters:[],requestBody:"json"},{description:"Refresh one Confluence document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncConfluenceConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Refresh one Google Drive document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncGoogleDriveConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Refresh one Notion document from its provider.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.syncNotionConnectorDocument",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}/sync",queryParameters:[],requestBody:"none"},{description:"Trigger GitHub knowledge synchronization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.triggerGithubKnowledgeSync",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/knowledge-repos/sync",queryParameters:[],requestBody:"none"},{description:"Update visibility and availability for one Confluence document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateConfluenceConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Confluence knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateConfluenceConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/confluence-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility for every uploaded document in a folder.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateFolderDocuments",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/folders/{sourceId}/documents",queryParameters:[],requestBody:"json"},{description:"Update GitHub connector repository selection.",bodyProperties:["repos"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGithubConnectorRepos",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/github/repos",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Google Drive document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGoogleDriveConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Google Drive knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateGoogleDriveConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/google-drive-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Notion document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateNotionConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Notion knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateNotionConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/notion-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one SharePoint document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSharePointConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the SharePoint knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSharePointConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/sharepoint-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update visibility and availability for one Simpplr document.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSimpplrConnectorDocument",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge/documents/{documentId}",queryParameters:[],requestBody:"json"},{description:"Update the Simpplr knowledge selection and reconcile its indexed documents.",bodyProperties:["selection"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSimpplrConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/simpplr-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update who can access knowledge from this Slack connector. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["availability"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorAvailability",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/availability",queryParameters:[],requestBody:"json"},{description:"Update the amount of Slack history included in knowledge. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["depth"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorBackfill",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-backfill",queryParameters:[],requestBody:"json"},{description:"Update who can access knowledge from a Slack channel. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["channelId","availability"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorChannelAvailability",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge/channel-availability",queryParameters:[],requestBody:"json"},{description:"Update the Slack knowledge selection and reconcile its indexed documents. Requires a human principal because Slack knowledge is shared across the organization.",bodyProperties:["excludedChannelIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateSlackConnectorSelection",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/connectors/{connectorId}/slack-knowledge-selection",queryParameters:[],requestBody:"json"},{description:"Update an uploaded knowledge document's visibility.",bodyProperties:["availability","visible"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"knowledge.updateUpload",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/knowledge/uploads/{documentId}",queryParameters:[],requestBody:"json"},{description:"Archive a label and drop its links.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.archive",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/labels/{labelId}",queryParameters:[],requestBody:"none"},{description:"Add, remove, or replace an entity's labels by name.",bodyProperties:["entityType","entityId","names","mode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.assignNames",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/labels/assign",queryParameters:[],requestBody:"json"},{description:"Create a label in the active space.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/labels",queryParameters:[],requestBody:"json"},{description:"List labels in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/labels",queryParameters:["includeArchived","query"],requestBody:"none"},{description:"List label links for one entity type.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.listLinks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/labels/links",queryParameters:["entityType"],requestBody:"none"},{description:"Resolve label names, creating missing labels in the active space.",bodyProperties:["names"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.resolveNames",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/labels/resolve",queryParameters:[],requestBody:"json"},{description:"Replace the labels attached to one entity.",bodyProperties:["labelIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.setLabels",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/labels/links/{entityType}/{entityId}",queryParameters:[],requestBody:"json"},{description:"Rename or recolour a label.",bodyProperties:["name","color"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"labels.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/labels/{labelId}",queryParameters:[],requestBody:"json"},{description:"Accept and re-inject a quarantined inbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.acceptQuarantine",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/accept",queryParameters:[],requestBody:"none"},{description:"Remove an address from outbound email suppression.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.deleteSuppression",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/email/suppressions/{suppressionId}",queryParameters:[],requestBody:"none"},{description:"Disable hosted email for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.disableInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"Enable hosted email for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.enableInstallation",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"Get the organization's email installation and channel diagnostics.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/installation",queryParameters:[],requestBody:"none"},{description:"List recently quarantined inbound email events.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.listQuarantine",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/quarantine",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List addresses suppressed from outbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.listSuppressions",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/email/suppressions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"Reject a quarantined inbound email.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-email.rejectQuarantine",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/email/quarantine/{eventId}/reject",queryParameters:[],requestBody:"none"},{description:"Confirm the organization's GitHub App connection after the provider handoff.",bodyProperties:["connectionId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.confirmInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation/confirm",queryParameters:[],requestBody:"json"},{description:"Disconnect the organization's GitHub App and disable its connected spaces.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.disconnectInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Read the organization's GitHub App installation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Read GitHub App repository access and connected spaces for this organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.getInstallationDetails",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/github-app/installation/details",queryParameters:["repoPage","repoPageSize"],requestBody:"none"},{description:"Start the organization's GitHub App connection handoff. The returned session token is short-lived authorization material.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-github.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/github-app/installation",queryParameters:[],requestBody:"none"},{description:"Attach a space to a Slack channel setting.",bodyProperties:["spaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.createChannelSettingsRoute",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes",queryParameters:[],requestBody:"json"},{description:"Remove one route from a Slack channel setting.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.deleteChannelSettingsRoute",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/routes/{routeId}",queryParameters:[],requestBody:"none"},{description:"Disconnect the active Slack installation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.disconnectInstallation",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/slack/installation",queryParameters:[],requestBody:"none"},{description:"Read the active Slack installation and its channel diagnostics.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.getInstallation",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/slack/installation",queryParameters:[],requestBody:"none"},{description:"List Slack channel settings for the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.listChannelSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/slack/channel-settings",queryParameters:[],requestBody:"none"},{description:"Start the Slack OAuth installation flow for the active organization.",bodyProperties:["returnTo","reauthorize"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/install",queryParameters:[],requestBody:"json"},{description:"Synchronize Slack channel settings from the connected workspace.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.syncChannelSettings",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/sync",queryParameters:[],requestBody:"none"},{description:"Update status reaction emojis for one Slack channel setting.",bodyProperties:["emojis"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelEmojis",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/emojis",queryParameters:[],requestBody:"json"},{description:"Set whether a Slack channel converses or only files a case.",bodyProperties:["intakeMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelIntakeMode",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}/intake-mode",queryParameters:[],requestBody:"json"},{description:"Update the response behavior for one Slack channel setting.",bodyProperties:["responseMode","threadReplyMode","ambientInstruction","ambientRules"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-slack.updateChannelSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/slack/channel-settings/{channelId}",queryParameters:[],requestBody:"json"},{description:"Archive a space and revoke its active memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/archive",queryParameters:[],requestBody:"none"},{description:"Create a space and its default roles and statuses.",bodyProperties:["description","name","organizationRequestRoutingEnabled","slug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces",queryParameters:[],requestBody:"json"},{description:"Join an active space as an organization administrator.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.join",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/join",queryParameters:[],requestBody:"none"},{description:"List active spaces in the organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/spaces",queryParameters:[],requestBody:"none"},{description:"Enable or disable muting the help desk on this space's cases after a handoff.",bodyProperties:["escalationMuteEnabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setEscalationMute",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/escalation-mute",queryParameters:[],requestBody:"json"},{description:"Enable or disable organization request routing for a space.",bodyProperties:["organizationRequestRoutingEnabled"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-spaces.setOrganizationRequestRouting",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/request-routing",queryParameters:[],requestBody:"json"},{description:"Route a Teams channel to a space in this organization.",bodyProperties:["spaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.createChannelSettingsRoute",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes",queryParameters:[],requestBody:"json"},{description:"Create a Teams message subscription for this organization.",bodyProperties:["scope","teamId","channelId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.createGraphSubscription",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions",queryParameters:[],requestBody:"json"},{description:"Remove one organization-wide Teams channel route.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.deleteChannelSettingsRoute",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/routes/{routeId}",queryParameters:[],requestBody:"none"},{description:"Disconnect the organization's Microsoft Teams tenant.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.disconnectConnection",idempotent:!1,method:"delete",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/connection",queryParameters:[],requestBody:"none"},{description:"Build the Teams app package as base64-encoded ZIP content.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getAppPackage",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/app-package/content",queryParameters:[],requestBody:"none"},{description:"Read whether the Teams app package can be downloaded.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getAppPackageStatus",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/app-package",queryParameters:[],requestBody:"none"},{description:"Read the organization's Microsoft Teams connection and subscription status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.getConnection",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/connection",queryParameters:[],requestBody:"none"},{description:"List organization-wide Teams channel behavior and routes.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.listChannelSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/msteams/channel-settings",queryParameters:[],requestBody:"none"},{description:"Renew due Teams subscriptions belonging to this organization.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.renewGraphSubscriptions",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/graph-subscriptions/renew",queryParameters:[],requestBody:"none"},{description:"Create a Microsoft Teams administrator consent URL for the organization.",bodyProperties:["returnTo","force"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.startInstall",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/connect",queryParameters:[],requestBody:"json"},{description:"Update status reaction emojis for a Teams channel.",bodyProperties:["emojis"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelEmojis",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/emojis",queryParameters:[],requestBody:"json"},{description:"Set whether a Teams channel converses or only files a case.",bodyProperties:["intakeMode"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelIntakeMode",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}/intake-mode",queryParameters:[],requestBody:"json"},{description:"Update organization-wide Teams channel response behavior.",bodyProperties:["responseMode","threadReplyMode","ambientInstruction","ambientRules"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organization-teams.updateChannelSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/msteams/channel-settings/{channelId}",queryParameters:[],requestBody:"json"},{description:"Create an organization invitation with compensating provider rollback.",bodyProperties:["email","expiresInDays","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.createInvite",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/invites",queryParameters:[],requestBody:"json"},{description:"Provision an organization membership when direct provisioning is enabled.",bodyProperties:["email","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.createMembership",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/memberships",queryParameters:[],requestBody:"json"},{description:"Read one organization person.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.getPerson",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/{personId}",queryParameters:[],requestBody:"none"},{description:"Read organization presentation settings.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.getSettings",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/settings",queryParameters:[],requestBody:"none"},{description:"List the organization's groups. Pass scope=space with a spaceId to return only the groups that space can use.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/groups",queryParameters:["spaceId","cursor","identityId","includeMembershipLastObserved","limit","q","sort","direction","selectedId","sourceId","sourceType","scope"],requestBody:"none"},{description:"List where groups come from: directory sync and each connected app.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listGroupSources",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/group-sources",queryParameters:["sourceType"],requestBody:"none"},{description:"List organization invitations.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listInvites",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/invites",queryParameters:["cursor","direction","limit","role","search","sort","status"],requestBody:"none"},{description:"List membership labels for a bounded set of users.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listMembershipLabels",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/memberships/labels",queryParameters:["userId"],requestBody:"none"},{description:"List organization memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listMemberships",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/memberships",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List the organization people roster.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listPeople",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people",queryParameters:["cursor","groupId","groupSourceId","groupSourceType","directory","includeTotal","limit","role","search","sort","direction"],requestBody:"none"},{description:"List applications observed for one organization person.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listPersonApplications",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/{personId}/applications",queryParameters:["cursor","limit","q"],requestBody:"none"},{description:"List linked groups that can provision the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listProvisionableLinkedGroups",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/spaces/{spaceId}/provisionable-linked-groups",queryParameters:["scope","cursor","limit","search","selectedId"],requestBody:"none"},{description:"List roles available to organization memberships.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.listRoles",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/roles",queryParameters:[],requestBody:"none"},{description:"Revoke an organization invitation.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.revokeInvite",idempotent:!1,method:"post",mutation:!0,path:"/v1/organizations/{organizationId}/invites/{inviteId}/revoke",queryParameters:[],requestBody:"none"},{description:"Search organization people available to a picker.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.searchPeople",idempotent:!1,method:"get",mutation:!1,path:"/v1/organizations/{organizationId}/people/search",queryParameters:["spaceId","includeAllDirectoryPeople","cursor","excludeCurrentSpace","limit","membersOnly","q","selectedId"],requestBody:"none"},{description:"Update an organization membership and synchronize its identity-provider state.",bodyProperties:["roleSlug","status","statusReason"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.updateMembership",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/memberships/{membershipId}",queryParameters:[],requestBody:"json"},{description:"Update organization presentation settings.",bodyProperties:["name","showProfilePictures"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"organizations.updateSettings",idempotent:!1,method:"patch",mutation:!0,path:"/v1/organizations/{organizationId}/settings",queryParameters:[],requestBody:"json"},{description:"Archive a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/archive",queryParameters:[],requestBody:"none"},{description:"Create an organization request session. Requires a signed-in user credential.",bodyProperties:["id","caseId","reuseExisting","destinationSpaceId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createOrganizationRequestSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/organization-request-sessions",queryParameters:[],requestBody:"json"},{description:"Create an organization request session and submit its initial message. Requires a signed-in user credential.",bodyProperties:["prewarmOnly","id","caseId","reuseExisting","destinationSpaceId","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createOrganizationRequestSessionAndSubmit",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/organization-request-sessions/submit",queryParameters:[],requestBody:"json"},{description:"Create a conversation session. Requires a signed-in user credential.",bodyProperties:["id","automation","visibility"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions",queryParameters:[],requestBody:"json"},{description:"Create a conversation session and submit its first message. Requires a signed-in user credential.",bodyProperties:["id","automation","visibility","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createSessionAndSubmit",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/submit",queryParameters:[],requestBody:"json"},{description:"Create a workflow-suggestion session. Requires a signed-in user credential.",bodyProperties:["id"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.createWorkflowSuggestionSession",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/session-builders/workflow-suggestions",queryParameters:[],requestBody:"json"},{description:"Delete an artifact in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.deleteArtifact",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",queryParameters:[],requestBody:"none"},{description:"Download an accessible session artifact as a file; defaults to the current version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.downloadArtifact",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}/download",queryParameters:["version"],requestBody:"none",binaryResponse:!0},{description:"Download a file inside an accessible session's uploads or workspace directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.downloadFile",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-download",queryParameters:["path","workflowRunId"],requestBody:"none",binaryResponse:!0},{description:"Request an automation response to an eligible existing message. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.forceResponse",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages/{messageId}/respond",queryParameters:[],requestBody:"none"},{description:"Copy a session and its runtime state into a new session. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:128,minLength:1,type:"string"}}],id:"sessions.fork",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/fork",queryParameters:[],requestBody:"none"},{description:"Get a session and its initial transcript window.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get an artifact in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getArtifact",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts/{artifactId}",queryParameters:[],requestBody:"none"},{description:"Read a case linked to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getCase",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases/{caseId}",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Get a preview of a session runtime file.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getFilePreview",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-preview",queryParameters:["workflowRunId","path"],requestBody:"none"},{description:"Get an organization request destination. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getOrganizationRequestDestination",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/session-request-destinations/{destinationSpaceId}",queryParameters:[],requestBody:"none"},{description:"Probe the live runtime state for a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getRuntime",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/runtime",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Read a workflow approval belonging to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.getWorkflowApproval",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/workflow-approvals/{approvalId}",queryParameters:["workflowRunId","runId"],requestBody:"none"},{description:"Create an organization request session and submit its initial message. Requires a signed-in user credential.",bodyProperties:["prewarmOnly","id","caseId","reuseExisting","destinationSpaceId","initialMessage"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.intakeRequest",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/requests",queryParameters:[],requestBody:"json"},{description:"List sessions visible to the actor.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions",queryParameters:["limit","cursor","mine","includeArchived","excludeCustomAutomationSessions","includeTotalCount","search","purpose","after","before","updatedAfter","updatedBefore","sortBy","sortDir","status","triggeredByKind","automationId","createdBy"],requestBody:"none"},{description:"List artifacts in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listArtifacts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/artifacts",queryParameters:["limit","cursor","mine","createdByUserId","createdByAutomationId","sessionId","createdAtFrom","createdAtTo","updatedAtFrom","updatedAtTo"],requestBody:"none"},{description:"List readable cases linked to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listCases",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/cases",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List children of a session runtime directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listFileChildren",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-children",queryParameters:["workflowRunId","path"],requestBody:"none"},{description:"List files owned by a session runtime.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listFiles",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/files",queryParameters:["workflowRunId"],requestBody:"none"},{description:"List a session transcript page.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listMessages",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List spaces that can receive an organization request. Requires a signed-in user credential.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listOrganizationRequestDestinations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/session-request-destinations",queryParameters:["cursor","q"],requestBody:"none"},{description:"List participants in a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listParticipants",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/participants",queryParameters:["workflowRunId","limit","cursor"],requestBody:"none"},{description:"List background tasks owned by a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listTasks",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/tasks",queryParameters:["limit","cursor","status"],requestBody:"none"},{description:"List files uploaded to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.listUploads",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",queryParameters:["workflowRunId"],requestBody:"none"},{description:"Pause the automation assigned to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.muteAutomation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/mute",queryParameters:[],requestBody:"none"},{description:"Read the authoritative transcript of an accessible case-linked session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.readCaseSession",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/transcript",queryParameters:["afterSeq","limit"],requestBody:"none"},{description:"Rename a session.",bodyProperties:["title"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.rename",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}",queryParameters:[],requestBody:"json"},{description:"Set who can open a session: the whole space, or only its creator. Requires a signed-in user credential.",bodyProperties:["visibility"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.setVisibility",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/visibility",queryParameters:[],requestBody:"json"},{description:"Start the browser attached to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.startBrowser",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/browser",queryParameters:[],requestBody:"none"},{description:"Count visible sessions by inbox status.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.statusCounts",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/sessions/status-counts",queryParameters:["limit","cursor","mine","includeArchived","excludeCustomAutomationSessions","includeTotalCount","search","purpose","after","before","updatedAfter","updatedBefore","sortBy","sortDir","status","triggeredByKind","automationId","createdBy"],requestBody:"none"},{description:"Submit a message to a conversation session. Requires a signed-in user credential.",bodyProperties:["clientMessageId","content","mode","model","thinkingLevel","timezone","page","mentions","skills","suppressAutomationWake"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.submitMessage",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/messages",queryParameters:[],requestBody:"json"},{description:"Restore an archived session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.unarchive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unarchive",queryParameters:[],requestBody:"none"},{description:"Resume the automation assigned to a session.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.unmuteAutomation",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/unmute",queryParameters:[],requestBody:"none"},{description:"Update the file browser state visible for a session.",bodyProperties:["directories","previewPath"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.updateFileVisibility",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/file-visibility",queryParameters:[],requestBody:"json"},{description:"Upload files into a writable session's uploads directory.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"sessions.uploadFiles",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/sessions/{sessionId}/uploads",queryParameters:[],requestBody:"multipart"},{description:"Archive an organization skill while retaining its versions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.archiveSkill",idempotent:!1,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}",queryParameters:[],requestBody:"none"},{description:"Create a skill definition.",bodyProperties:["description","scope","slug","title"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.createSkill",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills",queryParameters:[],requestBody:"json"},{description:"Create a draft version of a skill bundle.",bodyProperties:["files"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.createSkillVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions",queryParameters:[],requestBody:"json"},{description:"Delete a skill's open draft version, leaving the published version in place.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.discardSkillDraft",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/draft/discard",queryParameters:[],requestBody:"none"},{description:"Get a visible skill and its available versions.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.getSkill",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}",queryParameters:[],requestBody:"none"},{description:"Get one visible skill version and its bundle files.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.getSkillVersion",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}",queryParameters:[],requestBody:"none"},{description:"List automations that currently use this skill.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.listSkillAutomations",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills/{skillId}/automations",queryParameters:["cursor","limit","search"],requestBody:"none"},{description:"List skills visible in the active space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.listSkills",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/skills",queryParameters:[],requestBody:"none"},{description:"Publish a draft skill version.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.publishSkillVersion",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/versions/{skillVersionId}/publish",queryParameters:["expectedRevision"],requestBody:"none"},{description:"Replace a skill's tags.",bodyProperties:["tags","expectedTags"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"skills.updateSkillTags",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/skills/{skillId}/tags",queryParameters:[],requestBody:"json"},{description:"Archive a space role, reassigning members to a replacement role when required.",bodyProperties:["replacementRoleId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.archive",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/archive",queryParameters:[],requestBody:"json"},{description:"Create a space access role. Live creation also requires publish permission.",bodyProperties:["status","name","description","permissionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.create",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles",queryParameters:[],requestBody:"json"},{description:"Discard an unpublished space role draft.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.discard",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/discard",queryParameters:[],requestBody:"none"},{description:"Duplicate a role and its application capabilities into a published role.",bodyProperties:["name"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.duplicate",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/duplicate",queryParameters:[],requestBody:"json"},{description:"Get a space access role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.get",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",queryParameters:[],requestBody:"none"},{description:"List access roles in the selected space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.list",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles",queryParameters:["cursor","excludeRoleId","limit","search","sortBy","sortDir","type"],requestBody:"none"},{description:"Publish a space role draft.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.publish",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/publish",queryParameters:[],requestBody:"none"},{description:"Update a space access role, or propose a draft edit with status=draft. Live edits require publish permission.",bodyProperties:["status","name","description","permissionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-access-roles.update",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}",queryParameters:[],requestBody:"json"},{description:"Count blocked application actions for a space role.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listBlockedActions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/blocked-actions",queryParameters:[],requestBody:"none"},{description:"List configurable application actions for a space connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listCatalog",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"none"},{description:"List application action grants for a space role and connection.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listGrants",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"none"},{description:"List application actions and the active roles blocked from each action.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.listPermissions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions",queryParameters:[],requestBody:"none"},{description:"Replace a role's allowed application actions. Live roles require publish permission.",bodyProperties:["actionSlugs"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.replaceGrants",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/space-access-roles/{roleId}/connections/{connectorInstanceId}/actions",queryParameters:[],requestBody:"json"},{description:"Replace the active roles blocked from an application action.",bodyProperties:["blockedRoleIds"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"space-action-grants.replaceRoles",idempotent:!1,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/connections/{connectorInstanceId}/action-permissions/{actionSlug}",queryParameters:[],requestBody:"json"},{description:"Add every eligible member of a directory group to the current space.",bodyProperties:["accessRoleId","roleSlug","groupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.addGroupMembers",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/group-members",queryParameters:[],requestBody:"json"},{description:"Add or reactivate an organization member in the current space.",bodyProperties:["accessRoleId","roleSlug","email"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.addMember",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members",queryParameters:[],requestBody:"json"},{description:"Leave the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.leave",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members/leave",queryParameters:[],requestBody:"none"},{description:"List active members of the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.listMembers",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/members",queryParameters:["accessRoleId","cursor","eligibleForAssignment","limit","roleSlug","search","userId"],requestBody:"none"},{description:"Revoke a member from the current space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.removeMember",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/members/{membershipId}/remove",queryParameters:[],requestBody:"none"},{description:"Set the space's default routing assignment group.",bodyProperties:["defaultRoutingAssignmentGroupId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.setDefaultAssignment",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/default-assignment",queryParameters:[],requestBody:"json"},{description:"Change a member's access role in the current space.",bodyProperties:["accessRoleId","roleSlug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.updateMember",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/members/{membershipId}",queryParameters:[],requestBody:"json"},{description:"Update the current space profile.",bodyProperties:["disabledSections","agentPreferences","description","name","slug"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"spaces.updateProfile",idempotent:!1,method:"patch",mutation:!0,path:"/v1/spaces/{spaceId}/profile",queryParameters:[],requestBody:"json"},{description:"Archive a workflow at an explicit base revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.archiveWorkflow",idempotent:!0,method:"delete",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",precondition:"if-match",queryParameters:[],requestBody:"none"},{description:"Cancel a public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.cancelWorkflowRun",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/cancel",queryParameters:[],requestBody:"none"},{description:"Create a workflow and its initial revision.",bodyProperties:["description","key","metadata","name","source"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.createWorkflow",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows",queryParameters:[],requestBody:"json"},{description:"Queue a production run for a published workflow.",bodyProperties:["input","workflowId"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.createWorkflowRun",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflow-runs",queryParameters:[],requestBody:"json"},{description:"Get one workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflow",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",queryParameters:[],requestBody:"none"},{description:"Get one workflow revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflowRevision",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}",queryParameters:[],requestBody:"none"},{description:"Get one public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.getWorkflowRun",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}",queryParameters:[],requestBody:"none"},{description:"List workflow applications and action capabilities available in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowCapabilities",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-capabilities",queryParameters:["cursor","limit","q"],requestBody:"none"},{description:"List revisions of one workflow.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRevisions",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions",queryParameters:["cursor","limit"],requestBody:"none"},{description:"List or briefly wait for status events for one public workflow run.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRunEvents",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/events",queryParameters:["cursor","limit","waitSeconds"],requestBody:"none"},{description:"List public workflow runs in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflowRuns",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs",queryParameters:["cursor","limit","status","workflowId"],requestBody:"none"},{description:"List workflows in a space.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.listWorkflows",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflows",queryParameters:["cursor","includeArchived","limit"],requestBody:"none"},{description:"Publish a validated workflow revision.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.publishWorkflowRevision",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/publish",queryParameters:[],requestBody:"none"},{description:"Execute a draft workflow revision in the test environment.",bodyProperties:["input"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.testWorkflowRevision",idempotent:!0,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/test",queryParameters:[],requestBody:"json"},{description:"Update a workflow by creating a revision from an explicit base revision.",bodyProperties:["baseRevisionId","description","metadata","name","source"],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["idempotencyKey"],name:"Idempotency-Key",required:!0,schema:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}},{aliases:["ifMatch"],name:"If-Match",required:!0,schema:{maxLength:213,minLength:5,pattern:'^"[^"\\\\]{1,200}:[0-9]{1,10}"$',type:"string"}}],id:"workflows.updateWorkflow",idempotent:!0,method:"put",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}",queryParameters:[],requestBody:"json"},{description:"Validate one workflow revision without executing it.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.validateWorkflowRevision",idempotent:!1,method:"post",mutation:!0,path:"/v1/spaces/{spaceId}/workflows/{workflowId}/revisions/{revisionId}/validate",queryParameters:[],requestBody:"none"},{description:"Wait briefly for one public workflow run to change state.",bodyProperties:[],headers:[{aliases:["correlationId","xActionCorrelationId"],name:"X-Action-Correlation-Id",required:!1,schema:{maxLength:128,minLength:1,pattern:"^[A-Za-z0-9._:-]+$",type:"string"}}],id:"workflows.waitForWorkflowRun",idempotent:!1,method:"get",mutation:!1,path:"/v1/spaces/{spaceId}/workflow-runs/{runId}/wait",queryParameters:["timeoutSeconds"],requestBody:"none"}],QS=new Map(xI.map((e)=>[e.id,e]));var ag=4096,sg=new Set([".git",".DS_Store","node_modules"]);function og(e,r){return Bu(e,r).split(Yu).join("/")}async function Zu(e,r,t){let n=await eg(r,{withFileTypes:!0});for(let i of n){if(sg.has(i.name))continue;let a=ig(r,i.name);if(i.isDirectory())await Zu(e,a,t);else if(i.isFile())t.push(a)}}async function Qu(e){let r=Dn(e),t=[];try{await Zu(r,r,t)}catch{throw C(`Could not read the bundle directory ${e}.`)}if(t.length===0)throw C(`${e} contains no files to push.`);if(t.length>va)throw C(`${e} holds ${t.length} files, more than the ${va} a push sends. Point --dir at the skill bundle itself.`);let n=[];for(let s of t.sort()){let o=await rg(s);n.push({contentBase64:o.toString("base64"),path:og(r,s)})}let i=Buffer.byteLength(JSON.stringify(n),"utf8"),a=Uu-ag;if(i>a)throw C(`${e} encodes to ${i} bytes, over the ${a} a push can send. Point --dir at the skill bundle itself, or split the bundle.`);return n}function ug(e){throw C(`The bundle contains a path that escapes the output directory: ${e}.`)}function lg(e,r){let t=Dn(e,r),n=Bu(e,t),i=n===".."||n.startsWith(`..${Yu}`);if(n===""||i||Dn(e,n)!==t)ug(r);return t}async function Hu(e,r,t){let n=Dn(e);await Ju(Ku(n),{recursive:!0});let i=await tg(n).catch(()=>null);if(i&&!t.force)throw C(`${e} already exists. Pass --force to replace its contents with this version's bundle.`);let a=await _I(`${n}.pull-`),s=null;try{for(let o of r){let u=lg(a,o.path);await Ju(Ku(u),{recursive:!0}),await ng(u,Buffer.from(o.contentBase64,"base64"))}if(i)await $a(n,`${a}.replaced`),s=`${a}.replaced`;try{await $a(a,n)}catch(o){let u=s;if(s=null,u)await $a(u,n).catch(()=>{throw C(`${e} could not be restored after a failed pull. The previous bundle is at ${u}.`)});throw o}if(s)await Fu(s,{force:!0,recursive:!0}).catch(()=>{});return s=null,r.map((o)=>o.path).sort()}finally{await Fu(a,{force:!0,recursive:!0})}}function Sa(e,r){return[...r,e]}async function xu(e,r){return(await e.get({skillId:r})).value.definition.tags}async function dg(e,r,t){let n=t.add.length>0||t.remove.length>0,i=t.set.length>0||t.clear;if(n&&i)throw C("Use --add/--remove to change tags, or --set/--clear to replace them.");if(t.clear&&t.set.length>0)throw C("--clear removes every tag, so it cannot be combined with --set.");if(t.clear)return{tags:[]};if(t.set.length>0)return{tags:[...new Set(t.set)]};if(!n)return null;let a=await xu(e,r),s=new Set(t.remove),o=a.filter((u)=>!s.has(u));return{expectedTags:a,tags:[...new Set([...o,...t.add])]}}function cg(e){let r=e.files;if(!(Array.isArray(r)&&r.length>0&&r.every((n)=>typeof n.path==="string"&&typeof n.contentBase64==="string")))throw We("The Action API returned a skill version with no bundle files.");if(!r.some((n)=>n.path.trim().replace(/\\/gu,"/")==="SKILL.md"))throw We("The Action API returned a bundle with no SKILL.md.");return r}async function mg(e,r,t){let a=(await e.get({skillId:r})).value.versions.filter((s)=>s.status===t).sort((s,o)=>o.versionNumber-s.versionNumber)[0];if(!a)throw C(`Skill ${r} has no ${t} version. Pass --version to pull a specific one.`);return a.id}function Xa(e,r,t){let n=e.command("skill-project").description("Author skill bundles and merge tags safely"),i=async(s,o)=>{let u=t(s),l=(await Y(s,r,{reporter:u})).skills,d=await o(l);u.result(d.value,d.human)},a=async(s,o,u)=>{if(await qt({command:s,dependencies:r,message:o,yes:u}))return!0;let l=wt();return t(s).result(l.value,l.human),!1};n.command("tags").description("Show or change a skill's tags").argument("<id>","skill ID").option("--add <tag>","add a tag, keeping the rest, repeatable",Sa,[]).option("--remove <tag>","remove a tag, keeping the rest, repeatable",Sa,[]).option("--set <tag>","replace every tag with these, repeatable",Sa,[]).option("--clear","remove every tag",!1).option("--yes","confirm the tag mutation",!1).action(async(s,o,u)=>{let l=t(u),d=(await Y(u,r,{reporter:l})).skills,c=await dg(d,s,o);if(!c){let h=await xu(d,s);l.result({skillId:s,tags:h},h.join(", ")||"No tags.");return}if(!await a(u,`Update tags for skill ${s}?`,o.yes))return;let p=await d.updateTags({skillId:s,...c});l.result(p.value,p.human)}),n.command("pull").description("Write a skill version's bundle files into a directory").argument("<id>","skill ID").option("--dir <path>","directory to write the bundle into").option("--version <id>","skill version to pull; defaults to the published one").option("--draft","pull the open draft instead of the published version",!1).option("--force","replace the directory's contents if it already exists",!1).action(async(s,o,u)=>{let l=t(u),d=(await Y(u,r,{reporter:l})).skills,c=o.dir??s,p=o.version??await mg(d,s,o.draft?"draft":"published"),h=await d.getVersion({skillId:s,skillVersionId:p}),f=await Hu(c,cg(h.value),{force:o.force});l.result({directory:c,files:f,skillId:s,skillVersionId:p},`Wrote ${f.length} file${f.length===1?"":"s"} to ${c}.`)}),n.command("push").description("Create a draft version from a directory of bundle files").argument("<id>","skill ID").option("--dir <path>","directory holding the bundle").option("--yes","confirm draft creation",!1).action(async(s,o,u)=>{let l=await Qu(o.dir??s);if(!await a(u,`Create a draft bundle for skill ${s}?`,o.yes))return;await i(u,async(d)=>await d.createVersion({body:{files:l},skillId:s}))})}function Oa(e,r,t){let n=e.command("context").description("Manage the active organization and space");n.command("list").description("List spaces available to the selected principal").action(async(i,a)=>{let s=t(a),u=await(await Y(a,r,{reporter:s})).context.list();s.result(u.value,u.human)}),n.command("show").description("Show the active profile, organization, and space").action(async(i,a)=>{let s=t(a),u=await(await Y(a,r,{reporter:s})).context.show();s.result(u.value,u.human)}),n.command("use").description("Select a space by ID or key for the active profile").argument("<space>","space ID or key").action(async(i,a,s)=>{let o=t(s),l=await(await Y(s,r,{reporter:o})).context.use(i);o.result(l.value,l.human)})}import{open as pg}from"node:fs/promises";var Cr=262144;function _u(e,r){if(Buffer.byteLength(e,"utf8")>Cr)throw C(`${r} must be ${Cr} bytes or smaller.`)}async function fg(e){let r=[],t=0;for await(let n of process.stdin){let i=Buffer.isBuffer(n)?n:Buffer.from(String(n));if(t+=i.byteLength,t>Cr)throw C(`${e} must be ${Cr} bytes or smaller.`);r.push(i)}return Buffer.concat(r).toString("utf8")}async function hg(e,r){if(e==="-")return await fg(r);let t=await pg(e,"r");try{let n=Buffer.alloc(Cr+1),i=0;while(i<n.byteLength){let{bytesRead:a}=await t.read(n,i,n.byteLength-i,i);if(a===0)break;i+=a}if(i>Cr)throw C(`${r} must be ${Cr} bytes or smaller.`);return n.subarray(0,i).toString("utf8")}finally{await t.close()}}async function Yr(e,r,t="Workflow input"){if(e.input!==void 0===(e.inputFile!==void 0))throw C("Specify exactly one of --input or --input-file.");if(e.input!==void 0)return _u(e.input,t),aa(e.input);return aa(await za(e.inputFile,r,t),"--input-file")}async function za(e,r,t="Message"){let n;try{n=e==="-"&&r.readStdin?await r.readStdin():await hg(e,t)}catch(i){if(i instanceof L)throw i;throw C(`Could not read ${t.toLowerCase()} from ${e}.`)}return _u(n,t),n}var el=new Set(["queued","running","waiting","succeeded","failed","cancelled"]);function yg(e){if(e===void 0)return;if(!/^\d+$/u.test(e))throw C("--limit must be an integer between 1 and 100.");let r=Number(e);if(!Number.isInteger(r)||r<1||r>100)throw C("--limit must be an integer between 1 and 100.");return r}function Ig(e){if(e===void 0)return;if(!el.has(e))throw C(`--status must be one of: ${[...el].join(", ")}.`);return e}function gg(e){return`${e.createdAt} ${e.type} ${e.id} ${JSON.stringify(e.data)}`}async function qg(e){let r=new AbortController,t=()=>r.abort();process.once("SIGINT",t);try{return await e(r.signal)}finally{process.removeListener("SIGINT",t)}}async function zt(e,r,t){return(await Y(e,r,{reporter:t})).workflows}function wg(e,r,t){if(!t){e.result(r.value,r.human);return}let n=r.value;e.stream({eventCount:n.eventCount,nextCursor:n.nextCursor,run:n.run,stopped:n.stopped,type:"summary"},"",!0)}function Wa(e,r,t){e.command("run").description("Run the published workflow revision in production").argument("<key>","workflow key").option("--input <json>","JSON workflow input (visible in process arguments)").option("--input-file <path>","read JSON workflow input from a file, or - for stdin").option("--wait","wait for a terminal run state",!1).action(async(i,a,s)=>{let o=t(s),u=await(await zt(s,r,o)).run({input:await Yr(a,r),key:i,wait:a.wait??!1});o.result(u.value,u.human)});let n=e.command("runs").description("Inspect and control production workflow runs");n.command("list").description("List a cursor-bounded page of workflow runs").option("--cursor <cursor>","opaque resume cursor").option("--limit <number>","page size from 1 to 100").option("--status <status>","filter by run status").option("--workflow <key>","filter by workflow key").action(async(i,a)=>{let s=t(a),o=yg(i.limit),u=Ig(i.status),l=await(await zt(a,r,s)).runsList({...i.cursor?{cursor:i.cursor}:{},...o?{limit:o}:{},...u?{status:u}:{},...i.workflow?{workflowKey:i.workflow}:{}});s.result(l.value,l.human)}),n.command("get").description("Get one workflow run").argument("<run-id>","workflow run ID").action(async(i,a,s)=>{let o=t(s),u=await(await zt(s,r,o)).runGet({runId:i});o.result(u.value,u.human)}),n.command("watch").description("Watch durable workflow-run events until completion or Ctrl-C").argument("<run-id>","workflow run ID").option("--cursor <cursor>","opaque event resume cursor").option("--jsonl","stream one stable JSON object per line",!1).action(async(i,a,s)=>{let o=t(s),u=a.jsonl??!1;if(u&&o.json)throw C("--jsonl cannot be combined with the global --json option.");let l=await qg(async(d)=>(await zt(s,r,o)).runWatch({captureEvents:o.json,...a.cursor?{cursor:a.cursor}:{},...!o.json?{onEvent:(c)=>o.stream({event:c,type:"event"},gg(c),u)}:{},runId:i,signal:d}));wg(o,l,u)}),n.command("cancel").description("Request cancellation of one workflow run").argument("<run-id>","workflow run ID").action(async(i,a,s)=>{let o=t(s),u=await(await zt(s,r,o)).runCancel({runId:i});o.result(u.value,u.human)})}async function Ce(e,r,t){return(await Y(e,r,{reporter:t})).workflows}function ja(e,r,t){let n=e.command("workflow-project").description("Author and manage workflows as code");Wa(n,r,t),n.command("init").description("Initialize a local Action workflow project").argument("[directory]","project directory").action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).init({...i?{directory:i}:{}});o.result(u.value,u.human)}),n.command("capabilities").description("Discover workflow application actions and connected accounts").argument("[application]","application slug or name; include it to fetch full action schemas").action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).capabilities({...i?{application:i}:{}});o.result(u.value,u.human)}),n.command("list").description("List workflows in the active space").option("--include-archived","include archived workflows",!1).action(async(i,a)=>{let s=t(a),o=await(await Ce(a,r,s)).list({includeArchived:i.includeArchived===!0});s.result(o.value,o.human)}),n.command("pull").description("Pull latest workflow revisions into the local project").argument("[key]","workflow key").option("--published","pull published revisions for inspection",!1).option("--output <directory>","output directory for --published").option("--force","overwrite local divergence",!1).action(async(i,a,s)=>{let o=t(s);if(a.published&&!a.output)throw C("--published requires --output so inspection files cannot replace the authoring base.");if(a.output&&!a.published)throw C("--output can only be used with --published.");let u=await(await Ce(s,r,o)).pull({force:a.force??!1,...i?{key:i}:{},...a.output?{outputDirectory:a.output}:{},published:a.published??!1});o.result(u.value,u.human)}),n.command("status").description("Compare local workflows with their lockfile and remote revisions").option("--offline","compare only local state and the lockfile",!1).action(async(i,a)=>{let s=t(a),o=await(await Ce(a,r,s)).status({offline:i.offline??!1});s.result(o.value,o.human)}),n.command("diff").description("Show canonical metadata and source differences").argument("<key>","workflow key").action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).diff({key:i});o.result(u.value,u.human)}),n.command("validate").description("Validate local workflow files and optionally the remote draft").argument("[key]","workflow key").option("--remote","also validate the matching remote revision",!1).action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).validate({...i?{key:i}:{},remote:a.remote??!1});o.result(u.value,u.human)}),n.command("push").description("Create or update workflow drafts without publishing").argument("[key]","workflow key").action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).push({...i?{key:i}:{}});o.result(u.value,u.human)}),n.command("test").description("Start a real test run for one unpublished workflow draft").addHelpText("after",`
|
|
202
|
+
This is not a simulated dry run. Connector actions may change external systems.`).argument("<key>","workflow key").option("--input <json>","JSON test input (visible in process arguments)").option("--input-file <path>","read JSON test input from a file, or - for stdin").option("--wait","wait for the test run to finish",!1).action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).test({input:await Yr(a,r),key:i,wait:a.wait??!1});o.result(u.value,u.human)}),n.command("publish").description("Publish one exact workflow revision").argument("<key>","workflow key").option("--revision <revision-id>","revision to publish; defaults to the locked latest revision").option("--yes","confirm the production change",!1).action(async(i,a,s)=>{let o=t(s);if(!await qt({command:s,dependencies:r,message:`Publish workflow "${i}" to production?`,yes:a.yes??!1})){let d=wt();o.result(d.value,d.human);return}let l=await(await Ce(s,r,o)).publish({confirmed:!0,key:i,...a.revision?{revisionId:a.revision}:{}});o.result(l.value,l.human)}),n.command("archive").description("Archive one workflow without deleting its history").argument("<key>","workflow key").option("--yes","confirm the production change",!1).action(async(i,a,s)=>{let o=t(s);if(!await qt({command:s,dependencies:r,message:`Archive workflow "${i}"?`,yes:a.yes??!1})){let d=wt();o.result(d.value,d.human);return}let l=await(await Ce(s,r,o)).archive({confirmed:!0,key:i});o.result(l.value,l.human)}),n.command("revisions").description("List immutable revisions for one workflow").argument("<key>","workflow key").action(async(i,a,s)=>{let o=t(s),u=await(await Ce(s,r,o)).revisions({key:i});o.result(u.value,u.human)})}import{homedir as bg}from"node:os";import{posix as Ag,win32 as Cg}from"node:path";function Pa(e={}){let r=e.env??process.env,t=e.homeDir?.trim()||r.HOME?.trim()||bg();if(!t)throw Error("The Action CLI could not determine the current user's home directory.");let n=e.platform??process.platform,i=r.XDG_CONFIG_HOME?.trim(),a=n==="win32"?Cg:Ag,s=n==="win32"?a.join(r.APPDATA?.trim()||a.join(t,"AppData","Roaming"),"action"):n==="darwin"?a.join(t,"Library","Application Support","action"):a.join(i||a.join(t,".config"),"action");return{configDir:s,profilesFile:a.join(s,"profiles.json")}}import{closeSync as Qr,chmodSync as kg,constants as Qe,mkdirSync as Rg,openSync as En,readFileSync as Na,renameSync as Lg,unlinkSync as Wt,writeSync as tl,fsyncSync as Ta,fchmodSync as nl,lstatSync as Da}from"node:fs";import{randomUUID as il}from"node:crypto";var vg=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/u,Mn=384,rl=448,Va=1,$g=5000,Sg=300000,Xg=25,Og=new Int32Array(new SharedArrayBuffer(4));class S extends Error{constructor(e){super(e);this.name="ProfileConfigError"}}function zg(){return{currentProfile:null,profiles:Object.create(null),version:Va}}function ar(e,r){return Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0}function Hr(e,r,t=500){if(typeof e!=="string"||!e.trim()||e.length>t)throw new S(`${r} must be a non-empty string.`);return e.trim()}function Wg(e,r){if(e===void 0)return;if(e===null)return null;return Hr(e,r,300)}function je(e){let r=e.trim();if(!vg.test(r))throw new S("Profile names must start with a letter or number and contain at most 64 letters, numbers, dots, underscores, or hyphens.");return r}function jg(e,r){let t=Hr(e,r,2000),n;try{n=new URL(t)}catch{throw new S(`${r} must be a valid URL.`)}if(n.protocol!=="https:")throw new S(`${r} must use HTTPS.`);if(n.username||n.password||n.search||n.hash)throw new S(`${r} cannot contain credentials, a query, or a fragment.`);if(n.pathname!=="/")throw new S(`${r} must be an HTTPS origin without a path.`);return n.origin}function Pg(e){let r=Hr(e,"apiUrl",2000),t;try{t=new URL(r)}catch{throw new S("apiUrl must be a valid URL.")}let n=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol!=="https:"&&!(t.protocol==="http:"&&n))throw new S("apiUrl must use HTTPS, except for a local loopback URL.");if(t.username||t.password||t.search||t.hash)throw new S("apiUrl cannot contain credentials, a query, or a fragment.");return t.pathname=t.pathname.replace(/\/+$/u,""),t.toString().replace(/\/$/u,"")}function Zr(e,r){if(e===null)return null;if(!e||typeof e!=="object"||Array.isArray(e))throw new S(`${r} must be an object or null.`);let t=e,n=Wg(t.name,`${r}.name`);return{id:Hr(t.id,`${r}.id`,300),...n!==void 0?{name:n}:{}}}function al(e){if(!e||typeof e!=="object"||Array.isArray(e))throw new S("Each profile must be an object.");let r=e;if(!r.auth||typeof r.auth!=="object"||Array.isArray(r.auth))throw new S("profile.auth must be an object.");let t=r.auth;return{apiUrl:Pg(r.apiUrl),auth:{clientId:Hr(t.clientId,"profile.auth.clientId",300),issuer:jg(t.issuer,"profile.auth.issuer")},organization:Zr(r.organization,"profile.organization"),space:Zr(r.space,"profile.space")}}function Tg(e){let r;try{r=JSON.parse(e)}catch{throw new S("The Action CLI profile configuration is not valid JSON.")}if(!r||typeof r!=="object"||Array.isArray(r))throw new S("The Action CLI profile configuration must be an object.");let t=r;if(t.version!==Va)throw new S("The Action CLI profile configuration version is unsupported.");if(!t.profiles||typeof t.profiles!=="object"||Array.isArray(t.profiles))throw new S("profiles must be an object.");let n=Object.create(null);for(let[a,s]of Object.entries(t.profiles))n[je(a)]=al(s);let i=t.currentProfile===null?null:je(Hr(t.currentProfile,"currentProfile",64));if(i&&!ar(n,i))throw new S(`The current profile "${i}" does not exist.`);return{currentProfile:i,profiles:n,version:Va}}function Vg(e){try{let t=Da(e);if(t.isSymbolicLink()||!t.isFile())throw new S("The profile configuration must be a regular file, not a link.")}catch(t){if(t.code==="ENOENT")return null;throw t}let r;try{r=En(e,Qe.O_RDONLY|(Qe.O_NOFOLLOW??0))}catch(t){if(t.code==="ENOENT")return null;if(t.code==="ELOOP")throw new S("The profile configuration must not be a symbolic link.");throw t}try{return nl(r,Mn),Na(r,"utf8")}finally{Qr(r)}}function Ea(e){Rg(e.configDir,{mode:rl,recursive:!0});let r=Da(e.configDir);if(r.isSymbolicLink()||!r.isDirectory())throw new S("The Action CLI configuration directory must be a real directory, not a link.");kg(e.configDir,rl)}function Ng(e){let r;try{r=Da(e)}catch(n){if(n.code==="ENOENT")return!0;throw n}if(r.isSymbolicLink()||!r.isFile())throw new S("The Action CLI profile lock must be a regular file.");let t={};try{t=JSON.parse(Na(e,"utf8"))}catch{}if(typeof t.pid==="number")try{return process.kill(t.pid,0),!1}catch(n){if(n.code!=="ESRCH")return!1;return Wt(e),!0}if(Date.now()-r.mtimeMs<=Sg)return!1;return Wt(e),!0}function Dg(e,r){try{if(JSON.parse(Na(e,"utf8")).token===r)Wt(e)}catch(t){if(t.code!=="ENOENT")throw t}}function kr(e,r){Ea(e);let t=`${e.profilesFile}.lock`,n=Date.now()+$g,i=il();while(!0){let a=null,s=!1;try{a=En(t,Qe.O_CREAT|Qe.O_EXCL|Qe.O_WRONLY,Mn),s=!0,tl(a,JSON.stringify({pid:process.pid,token:i})),Ta(a),Qr(a),a=null;break}catch(o){if(a!==null)Qr(a);if(s)try{Wt(t)}catch{}if(o.code!=="EEXIST")throw o;if(Ng(t))continue;if(Date.now()>=n)throw new S("Another Action CLI process is updating the profile file.");Atomics.wait(Og,0,0,Xg)}}try{return r()}finally{Dg(t,i)}}function Rr(e,r){Ea(e);let t=`${e.profilesFile}.${process.pid}.${il()}.tmp`,n=null;try{n=En(t,Qe.O_CREAT|Qe.O_EXCL|Qe.O_WRONLY,Mn);let i=`${JSON.stringify(r,null,2)}
|
|
203
|
+
`;if(tl(n,i,void 0,"utf8"),nl(n,Mn),Ta(n),Qr(n),n=null,Lg(t,e.profilesFile),process.platform!=="win32"){let a=En(e.configDir,Qe.O_RDONLY);try{Ta(a)}finally{Qr(a)}}}catch(i){if(n!==null)Qr(n);try{Wt(t)}catch{}throw i}}function ir(e,r){return{name:e,apiUrl:r.apiUrl,auth:{...r.auth},organization:r.organization?{...r.organization}:null,space:r.space?{...r.space}:null}}class Gn{paths;constructor(e=Pa()){this.paths=e}loadDocument(){Ea(this.paths);let e=Vg(this.paths.profilesFile);return e===null?zg():Tg(e)}list(){let e=this.loadDocument();return Object.entries(e.profiles).sort(([r],[t])=>r.localeCompare(t)).map(([r,t])=>ir(r,t))}currentName(){return this.loadDocument().currentProfile}get(e){let r=this.loadDocument(),t=e?je(e):r.currentProfile;if(!t)throw new S("No Action CLI profile is selected.");let n=ar(r.profiles,t);if(!n)throw new S(`Action CLI profile "${t}" does not exist.`);return ir(t,n)}upsert(e,r,t=!1){let n=je(e),i=al(r);if(i.space&&!i.organization)throw new S("A space cannot be selected without an organization.");return kr(this.paths,()=>{let a=this.loadDocument();if(a.profiles[n]=i,t||!a.currentProfile)a.currentProfile=n;return Rr(this.paths,a),ir(n,i)})}use(e){let r=je(e);return kr(this.paths,()=>{let t=this.loadDocument(),n=ar(t.profiles,r);if(!n)throw new S(`Action CLI profile "${r}" does not exist.`);return t.currentProfile=r,Rr(this.paths,t),ir(r,n)})}remove(e){let r=je(e);kr(this.paths,()=>{let t=this.loadDocument();if(!ar(t.profiles,r))throw new S(`Action CLI profile "${r}" does not exist.`);if(delete t.profiles[r],t.currentProfile===r)t.currentProfile=Object.keys(t.profiles).sort()[0]??null;Rr(this.paths,t)})}selectOrganization(e,r){let t=je(e),n=Zr(r,"organization");return kr(this.paths,()=>{let i=this.loadDocument(),a=ar(i.profiles,t);if(!a)throw new S(`Action CLI profile "${t}" does not exist.`);return a.organization=n,a.space=null,Rr(this.paths,i),ir(t,a)})}selectSpace(e,r){let t=je(e),n=Zr(r,"space");return kr(this.paths,()=>{let i=this.loadDocument(),a=ar(i.profiles,t);if(!a)throw new S(`Action CLI profile "${t}" does not exist.`);if(!a.organization)throw new S("Select an organization before selecting a space.");return a.space=n,Rr(this.paths,i),ir(t,a)})}selectContext(e,r,t){let n=je(e),i=Zr(r,"organization"),a=Zr(t,"space");return kr(this.paths,()=>{let s=this.loadDocument(),o=ar(s.profiles,n);if(!o)throw new S(`Action CLI profile "${n}" does not exist.`);return o.organization=i,o.space=a,Rr(this.paths,s),ir(n,o)})}clearContext(e){let r=je(e);return kr(this.paths,()=>{let t=this.loadDocument(),n=ar(t.profiles,r);if(!n)throw new S(`Action CLI profile "${r}" does not exist.`);return n.organization=null,n.space=null,Rr(this.paths,t),ir(r,n)})}}function Un(e,r){e.write(r.endsWith(`
|
|
204
|
+
`)?r:`${r}
|
|
205
|
+
`)}function Jn(e){let r=e.stdout??process.stdout,t=e.stderr??process.stderr;return{json:e.json,error(n){let i={error:{code:n.code,message:n.message,...n.details!==void 0?{details:n.details}:{}}};Un(t,e.json?JSON.stringify(i):`${n.code}: ${n.message}`)},info(n){if(!e.json)Un(t,n)},result(n,i){Un(r,e.json?JSON.stringify(n):typeof i==="string"?i:i())},stream(n,i,a){Un(r,a?JSON.stringify(n):i)}}}import{createHash as Eg}from"node:crypto";class jt extends Error{constructor(e){super(e);this.name="NonCanonicalJsonValueError"}}function B(e,r){return e<r?-1:e>r?1:0}function Ma(e,r){if(e===null||typeof e==="string"||typeof e==="boolean")return e;if(typeof e==="number"){if(!Number.isFinite(e))throw new jt("Canonical JSON does not support non-finite numbers.");return e}if(typeof e!=="object")throw new jt(`Canonical JSON does not support ${typeof e} values.`);if(r.has(e))throw new jt("Canonical JSON does not support cyclic values.");r.add(e);try{if(Array.isArray(e))return e.map((n)=>Ma(n,r));let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)throw new jt("Canonical JSON requires plain objects.");return Object.fromEntries(Object.entries(e).sort(([n],[i])=>B(n,i)).map(([n,i])=>[n,Ma(i,r)]))}finally{r.delete(e)}}function ie(e){return`${JSON.stringify(Ma(e,new Set),null,2)}
|
|
206
|
+
`}function Ge(e){let r=e.replace(/\r\n?/gu,`
|
|
207
|
+
`);return r.endsWith(`
|
|
208
|
+
`)?r:`${r}
|
|
209
|
+
`}function Lr(e){return Eg("sha256").update(e).digest("hex")}function Fn(e){return Lr(Ge(e))}function Kn(e,r){return Lr(ie({source:Ge(r),workflow:e}))}class Bn{diff(e,r,t={}){let n;if(typeof t==="function")n=t,t={};else if("callback"in t)n=t.callback;let i=this.castInput(e,t),a=this.castInput(r,t),s=this.removeEmpty(this.tokenize(i,t)),o=this.removeEmpty(this.tokenize(a,t));return this.diffWithOptionsObj(s,o,t,n)}diffWithOptionsObj(e,r,t,n){var i;let a=(I)=>{if(I=this.postProcess(I,t),n){setTimeout(function(){n(I)},0);return}else return I},s=r.length,o=e.length,u=1,l=s+o;if(t.maxEditLength!=null)l=Math.min(l,t.maxEditLength);let d=(i=t.timeout)!==null&&i!==void 0?i:1/0,c=Date.now()+d,p=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(p[0],r,e,0,t);if(p[0].oldPos+1>=o&&h+1>=s)return a(this.buildValues(p[0].lastComponent,r,e));let f=-1/0,m=1/0,y=()=>{for(let I=Math.max(f,-u);I<=Math.min(m,u);I+=2){let w,q=p[I-1],v=p[I+1];if(q)p[I-1]=void 0;let k=!1;if(v){let b=v.oldPos-I;k=v&&0<=b&&b<s}let G=q&&q.oldPos+1<o;if(!k&&!G){p[I]=void 0;continue}if(!G||k&&q.oldPos<v.oldPos)w=this.addToPath(v,!0,!1,0,t);else w=this.addToPath(q,!1,!0,1,t);if(h=this.extractCommon(w,r,e,I,t),w.oldPos+1>=o&&h+1>=s)return a(this.buildValues(w.lastComponent,r,e))||!0;else{if(p[I]=w,w.oldPos+1>=o)m=Math.min(m,I-1);if(h+1>=s)f=Math.max(f,I+1)}}u++};if(n)(function I(){setTimeout(function(){if(u>l||Date.now()>c)return n(void 0);if(!y())I()},0)})();else while(u<=l&&Date.now()<=c){let I=y();if(I)return I}}addToPath(e,r,t,n,i){let a=e.lastComponent;if(a&&!i.oneChangePerToken&&a.added===r&&a.removed===t)return{oldPos:e.oldPos+n,lastComponent:{count:a.count+1,added:r,removed:t,previousComponent:a.previousComponent}};else return{oldPos:e.oldPos+n,lastComponent:{count:1,added:r,removed:t,previousComponent:a}}}extractCommon(e,r,t,n,i){let a=r.length,s=t.length,o=e.oldPos,u=o-n,l=0;while(u+1<a&&o+1<s&&this.equals(t[o+1],r[u+1],i))if(u++,o++,l++,i.oneChangePerToken)e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1};if(l&&!i.oneChangePerToken)e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1};return e.oldPos=o,u}equals(e,r,t){if(t.comparator)return t.comparator(e,r);else return e===r||!!t.ignoreCase&&e.toLowerCase()===r.toLowerCase()}removeEmpty(e){let r=[];for(let t=0;t<e.length;t++)if(e[t])r.push(e[t]);return r}castInput(e,r){return e}tokenize(e,r){return Array.from(e)}join(e){return e.join("")}postProcess(e,r){return e}get useLongestToken(){return!1}buildValues(e,r,t){let n=[],i;while(e)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();let a=n.length,s=0,o=0,u=0;for(;s<a;s++){let l=n[s];if(!l.removed){if(!l.added&&this.useLongestToken){let d=r.slice(o,o+l.count);d=d.map(function(c,p){let h=t[u+p];return h.length>c.length?h:c}),l.value=this.join(d)}else l.value=this.join(r.slice(o,o+l.count));if(o+=l.count,!l.added)u+=l.count}else l.value=this.join(t.slice(u,u+l.count)),u+=l.count}return n}}class sl extends Bn{constructor(){super(...arguments);this.tokenize=Gg}equals(e,r,t){if(t.ignoreWhitespace){if(!t.newlineIsToken||!e.includes(`
|
|
210
|
+
`))e=e.trim();if(!t.newlineIsToken||!r.includes(`
|
|
211
|
+
`))r=r.trim()}else if(t.ignoreNewlineAtEof&&!t.newlineIsToken){if(e.endsWith(`
|
|
212
|
+
`))e=e.slice(0,-1);if(r.endsWith(`
|
|
213
|
+
`))r=r.slice(0,-1)}return super.equals(e,r,t)}}var Mg=new sl;function Ga(e,r,t){return Mg.diff(e,r,t)}function Gg(e,r){if(r.stripTrailingCr)e=e.replace(/\r\n/g,`
|
|
214
|
+
`);let t=[],n=e.split(/(\n|\r\n)/);if(!n[n.length-1])n.pop();for(let i=0;i<n.length;i++){let a=n[i];if(i%2&&!r.newlineIsToken)t[t.length-1]+=a;else t.push(a)}return t}var ol={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Ua(e,r,t,n,i,a,s){let o;if(!s)o={};else if(typeof s==="function")o={callback:s};else o=s;if(typeof o.context>"u")o.context=4;let u=o.context;if(o.newlineIsToken)throw Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!o.callback)return l(Ga(t,n,o));else{let{callback:d}=o;Ga(t,n,Object.assign(Object.assign({},o),{callback:(c)=>{let p=l(c);d(p)}}))}function l(d){if(!d)return;d.push({value:"",lines:[]});function c(w){return w.map(function(q){return" "+q})}let p=[],h=0,f=0,m=[],y=1,I=1;for(let w=0;w<d.length;w++){let q=d[w],v=q.lines||Ug(q.value);if(q.lines=v,q.added||q.removed){if(!h){let k=d[w-1];if(h=y,f=I,k)m=u>0?c(k.lines.slice(-u)):[],h-=m.length,f-=m.length}for(let k of v)m.push((q.added?"+":"-")+k);if(q.added)I+=v.length;else y+=v.length}else{if(h)if(v.length<=u*2&&w<d.length-2)for(let k of c(v))m.push(k);else{let k=Math.min(v.length,u);for(let b of c(v.slice(0,k)))m.push(b);let G={oldStart:h,oldLines:y-h+k,newStart:f,newLines:I-f+k,lines:m};p.push(G),h=0,f=0,m=[]}y+=v.length,I+=v.length}}for(let w of p)for(let q=0;q<w.lines.length;q++)if(w.lines[q].endsWith(`
|
|
215
|
+
`))w.lines[q]=w.lines[q].slice(0,-1);else w.lines.splice(q+1,0,"\"),q++;return{oldFileName:e,newFileName:r,oldHeader:i,newHeader:a,hunks:p}}}function Yn(e,r){if(!r)r=ol;if(Array.isArray(e)){if(e.length>1&&!r.includeFileHeaders)throw Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map((n)=>Yn(n,r)).join(`
|
|
216
|
+
`)}let t=[];if(r.includeIndex&&e.oldFileName==e.newFileName)t.push("Index: "+e.oldFileName);if(r.includeUnderline)t.push("===================================================================");if(r.includeFileHeaders)t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":"\t"+e.newHeader));for(let n=0;n<e.hunks.length;n++){let i=e.hunks[n];if(i.oldLines===0)i.oldStart-=1;if(i.newLines===0)i.newStart-=1;t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@");for(let a of i.lines)t.push(a)}return t.join(`
|
|
217
217
|
`)+`
|
|
218
|
-
`}function
|
|
219
|
-
`),
|
|
218
|
+
`}function Ja(e,r,t,n,i,a,s){if(typeof s==="function")s={callback:s};if(!(s===null||s===void 0?void 0:s.callback)){let o=Ua(e,r,t,n,i,a,s);if(!o)return;return Yn(o,s===null||s===void 0?void 0:s.headerOptions)}else{let{callback:o}=s;Ua(e,r,t,n,i,a,Object.assign(Object.assign({},s),{callback:(u)=>{if(!u)o(void 0);else o(Yn(u,s.headerOptions))}}))}}function Ug(e){let r=e.endsWith(`
|
|
219
|
+
`),t=e.split(`
|
|
220
220
|
`).map((n)=>n+`
|
|
221
|
-
`);if(t
|
|
222
|
-
`)}import{randomUUID as
|
|
223
|
-
${
|
|
224
|
-
`)}`);this.name="ProjectValidationError",this.issues=
|
|
225
|
-
`,384),await pp(t.next),await Wt(t.directory),await Promise.all([Xi(Le(t.next,"workflow.json"),e.manifest),Xi(Le(t.next,Be),e.source)]),await Wt(t.next),await Xi(t.ready,"",384),await Wt(t.directory),e.currentExists)await Oi(t.target,t.previous);await Oi(t.next,t.target),await Bs(t)}catch(n){try{await nn(e.projectRoot,e.key,r)}catch(i){let a=n instanceof Error?n.message:String(n);throw Error(`Workflow write failed (${a}) and recovery also failed.`,{cause:i})}throw n}}class Wi extends Error{constructor(e){super(`No action.json project was found at or above ${e}.`);this.name="ActionProjectNotFoundError"}}function me(e,t){return e instanceof Error&&"code"in e&&e.code===t}async function _R(e){try{return await Ys(e),!0}catch(t){if(me(t,"ENOENT"))return!1;throw t}}async function Ue(e){try{let t=await an(e);if(t.isSymbolicLink()||!t.isDirectory())throw new E(e,["path must be a real directory, not a link"])}catch(t){if(!me(t,"ENOENT"))throw t;try{await Hs(e)}catch(r){if(!me(r,"EEXIST"))throw r;await Ue(e)}}}function ee(e){let t=kp(e),r=Ge(t,".action");return{actionDirectory:r,lockfile:Ge(r,"lock.json"),manifest:Ge(t,"action.json"),mutationLock:Ge(r,"mutation.lock"),root:t,workflows:Ge(t,"workflows")}}function Rp(e,t){ce(t);let r=Ge(ee(e).workflows,t);return{directory:r,manifest:Ge(r,"workflow.json"),source:Ge(r,Be)}}async function e1(e=process.cwd()){let t=kp(e);try{if(!(await Ys(t)).isDirectory())t=on(t)}catch(r){if(!me(r,"ENOENT"))throw r}while(!0){let r=Ge(t,"action.json");try{if((await Ys(r)).isFile())return t}catch(i){if(!me(i,"ENOENT"))throw i}let n=on(t);if(n===t||t===xR(t).root)return null;t=n}}async function Lp(e=process.cwd()){let t=await e1(e);if(!t)throw new Wi(e);return t}async function t1(e){let t;try{t=await Cp(e,"r"),await t.sync()}catch(r){if(!me(r,"EINVAL")&&!me(r,"ENOTSUP")&&!me(r,"EISDIR")&&!me(r,"EPERM"))throw r}finally{await t?.close()}}async function r1(e){await t1(on(e))}async function n1(e,t,r={}){await Hs(on(e),{recursive:!0});let n=Ge(on(e),`.${QR(e)}.${process.pid}.${KR()}.tmp`),i;try{i=await Cp(n,"wx",r.mode??420),await i.writeFile(t),await i.sync(),await i.close(),i=void 0,await r.beforeRename?.(n,e),await HR(n,e),await r1(e)}catch(a){throw await i?.close().catch(()=>{}),await ZR(n).catch((s)=>{if(!me(s,"ENOENT"))throw s}),a}}async function vp(e,t,r={}){let n=typeof t==="string"?Buffer.from(t):Buffer.from(t);try{if((await sn(e)).equals(n))return!1}catch(i){if(!me(i,"ENOENT"))throw i}return await n1(e,n,r),!0}async function Zs(e,t){try{let r=await an(e);if(r.isSymbolicLink()||!r.isFile())throw new E(t,["file must be a regular file, not a link"]);return mp(await sn(e,"utf8"),t)}catch(r){if(me(r,"ENOENT"))throw new E(t,["file is missing"]);throw r}}async function ji(e){let t=ee(e);return Fs(await Zs(t.manifest,t.manifest),t.manifest)}async function pe(e){let t=ee(e);if(!await _R(t.lockfile))return null;return ur(await Zs(t.lockfile,t.lockfile),t.lockfile)}async function jt(e,t){let r=Rp(e,t);for(let n=0;n<3;n+=1){if(await nn(e,t),!await lr(r.directory))return null;try{let i=await an(r.directory);if(i.isSymbolicLink()||!i.isDirectory())throw new E(r.directory,["workflow path must be a real directory, not a link"]);let[a,s]=await Promise.all([Zs(r.manifest,r.manifest),sn(r.source,"utf8")]),o=await an(r.directory);if(o.isSymbolicLink()||!o.isDirectory())throw new E(r.directory,["workflow path must be a real directory, not a link"]);if(i.dev!==o.dev||i.ino!==o.ino)continue;let u=en(a,{document:r.manifest,expectedKey:t}),l=De(tn(s,r.source));return{canonicalWorkflowJson:ne(u),contentDigest:Gn(u,l),manifest:u,source:l,sourceDigest:Mn(l)}}catch(i){if(me(i,"ENOENT"))continue;throw i}}throw new E(r.directory,["workflow changed while it was read; retry"])}async function Pt(e){await bp(e);let t=ee(e).workflows,r;try{let a=await an(t);if(a.isSymbolicLink()||!a.isDirectory())throw new E(t,["workflows path must be a real directory, not a link"]);r=await YR(t,{withFileTypes:!0})}catch(a){if(me(a,"ENOENT"))return new Map;throw a}let n=r.filter((a)=>a.isDirectory()).map((a)=>a.name).sort(K),i=new Map;for(let a of n){ce(a);let s=await jt(e,a);if(s)i.set(a,s)}return i}async function i1(e,t){return Fs(t),await Ue(ee(e).root),await vp(ee(e).manifest,ne(t))}async function xe(e,t){return ur(t),await Ue(ee(e).actionDirectory),await vp(ee(e).lockfile,ne(t))}async function Pi(e,t,r){en(t);let n=Rp(e,t.key),i=De(tn(r,n.source)),a=ne(t),s=ee(e);await nn(e,t.key),await Ue(s.actionDirectory),await Ue(zi(e)),await Ue(s.workflows);let o=await lr(n.directory),[u,l]=o?await Promise.all([sn(n.manifest),sn(n.source)]):[null,null],d=!u?.equals(Buffer.from(a)),c=!l?.equals(Buffer.from(i));if(!d&&!c)return{manifestChanged:d,sourceChanged:c};return await Ap({currentExists:o,key:t.key,manifest:a,projectRoot:e,source:i}),{manifestChanged:d,sourceChanged:c}}async function $p(e,t){let r=ee(e);if(await Hs(r.root,{recursive:!0}),await Promise.all([Ue(r.actionDirectory),Ue(r.workflows)]),await i1(e,{$schema:Cr,schemaVersion:It}),t)await xe(e,Mt(t))}class Ti extends Error{constructor(e){super(`Another Action CLI process is mutating this project (${e}).`);this.name="ProjectMutationLockedError"}}async function a1(e,t={}){let n=ee(e).mutationLock,i=t.timeoutMs??5000;return await Xn({ensureParent:()=>Ue(ee(e).actionDirectory),invalidFileError:(a)=>new E(a,["mutation lock must be a regular file, not a link"]),path:n,timeoutError:(a)=>new Ti(a),timeoutMs:i})}async function un(e,t,r){let n=await a1(e,r);try{return await t()}finally{await n.release()}}function Vi(e){let{base:t,key:r,local:n,remote:i}=e;if(!t&&!n&&!i)return null;if(!t){let l=Boolean(n&&i&&n.contentDigest===i.contentDigest),d=n?i?l?"remote_changes":"conflict":"new":"remote_changes";return Sp({base:t,key:r,local:n,localModified:Boolean(n)&&!l,remote:i,remoteModified:Boolean(i),status:d})}let a=n?n.contentDigest!==t.contentDigest:!0,s=i?i.workflowId!==t.workflowId||i.draftGeneration!==(t.draftGeneration??0)||i.latestRevisionId!==t.latestRevisionId||i.contentDigest!==t.contentDigest:!0,o=Boolean(s&&n&&i&&n.contentDigest===i.contentDigest);return Sp({base:t,key:r,local:n,localModified:o?!1:a,remote:i,remoteModified:s,status:!n?"missing":o?"remote_changes":a&&s?"conflict":a?"local_changes":s?"remote_changes":"clean"})}function Sp(e){return{baseDigest:e.base?.contentDigest??null,baseRevisionId:e.base?.latestRevisionId??null,key:e.key,localDigest:e.local?.contentDigest??null,localModified:e.localModified,remoteDigest:e.remote?.contentDigest??null,remoteModified:e.remoteModified,remoteRevisionId:e.remote?.latestRevisionId??null,status:e.status}}class Ei extends Error{refusals;constructor(e){super(`Pull would overwrite local divergence in: ${e.map((t)=>t.key).join(", ")}.`);this.name="PullRefusedError",this.refusals=e}}class ln extends Error{constructor(e){super(e);this.name="PullPlanStaleError"}}function Qs(e){let t=en(e.manifest),r=De(tn(e.source));return{canonicalWorkflowJson:ne(t),...e.codeRef?{codeRef:e.codeRef}:{},contentDigest:Gn(t,r),draftGeneration:e.draftGeneration??0,latestRevisionId:e.latestRevisionId,manifest:t,publishedRevisionId:e.publishedRevisionId,...e.remoteContentDigest?{remoteContentDigest:e.remoteContentDigest}:{},source:r,sourceDigest:Mn(r),workflowId:e.workflowId}}function s1(e){return{...e.codeRef?{codeRef:e.codeRef}:{},contentDigest:e.contentDigest,draftGeneration:e.draftGeneration,latestRevisionId:e.latestRevisionId,mutableLabels:{description:e.manifest.description??null,name:e.manifest.name},publishedRevisionId:e.publishedRevisionId,...e.remoteContentDigest?{remoteContentDigest:e.remoteContentDigest}:{},sourceDigest:e.sourceDigest,workflowId:e.workflowId}}function Ni(e,t){return{...s1(e),...t?.pendingPublication&&e.publishedRevisionId!==t.pendingPublication.revisionId?{pendingPublication:t.pendingPublication}:{},...t?.validatedRevisionId===e.latestRevisionId?{validatedRevisionId:t.validatedRevisionId}:{}}}function o1(e){if(e==="local_changes")return"local_changes";if(e==="conflict")return"local_and_remote_changes";if(e==="missing")return"missing_local";return null}function Xp(e){let t=Dt(e.context);if(e.lockfile)ur(e.lockfile),$e(e.lockfile,t);let r=e.lockfile?{...e.lockfile,workflows:{...e.lockfile.workflows}}:Mt(t),n=new Map;for(let d of e.remote){let c=Qs({...d.codeRef?{codeRef:d.codeRef}:{},draftGeneration:d.draftGeneration,latestRevisionId:d.latestRevisionId,manifest:d.manifest,publishedRevisionId:d.publishedRevisionId,...d.remoteContentDigest?{remoteContentDigest:d.remoteContentDigest}:{},source:d.source,workflowId:d.workflowId}),m=c.manifest.key;if(n.has(m))throw Error(`Remote pull contained duplicate workflow key ${m}.`);n.set(m,c)}let i=e.keys?new Set(e.keys):null,a=[...new Set([...e.local.keys(),...n.keys(),...Object.keys(r.workflows)])].filter((d)=>i?.has(d)??!0).sort(K),s=[],o=[],u=[],l=[];for(let d of a){let c=x(e.lockfile,d)??null,m=e.local.get(d)??null,h=n.get(d)??null,f=Vi({base:c,key:d,local:m,remote:h});if(!f)continue;if(l.push(f),m&&h&&m.contentDigest===h.contentDigest){r.workflows[d]=Ni(h,c);continue}if(f.status==="clean"){if(h)r.workflows[d]=Ni(h,c);continue}if(f.status==="remote_changes"&&h){s.push({expectedLocalDigest:m?.contentDigest??null,key:d,manifest:h.manifest,source:h.source}),r.workflows[d]=Ni(h,c);continue}let p=o1(f.status);if(h&&p&&e.overwriteDiverged===!0){s.push({expectedLocalDigest:m?.contentDigest??null,key:d,manifest:h.manifest,source:h.source}),r.workflows[d]=Ni(h,c);continue}if(h&&p)o.push({key:d,reason:p,status:f.status});else u.push(d)}return ur(r),{baseLockDigest:e.lockfile?kt(ne(e.lockfile)):null,context:t,nextLockfile:r,preserved:u,refusals:o,statuses:l,writes:s}}function u1(e){if(e.refusals.length>0)throw new Ei(e.refusals)}async function Op(e,t){u1(t),await un(e,async()=>{await ji(e);let r=await pe(e);if(r)$e(r,t.context);if((r?kt(ne(r)):null)!==t.baseLockDigest)throw new ln("The project lockfile changed after pull planning.");for(let i of t.writes)if(((await jt(e,i.key))?.contentDigest??null)!==i.expectedLocalDigest)throw new ln(`Workflow ${i.key} changed locally after pull planning; no files were overwritten.`);for(let i of t.writes)await Pi(e,i.manifest,i.source);await xe(e,t.nextLockfile)})}function zp(e,t){if(e.type!=="object")throw TypeError(`workflow.json ${t} must be a JSON object schema with type "object".`);return e}function dn(e){let t=e.manifest.outputs;return{...e.manifest.description!==void 0?{description:e.manifest.description}:{},metadata:{inputs:zp(e.manifest.inputs,"inputs"),...t!==void 0?{outputs:t===null?null:zp(t,"outputs")}:{}},name:e.manifest.name,source:{files:[{content:e.source,path:Be}]}}}function ct(e,t,r={}){if(t.workflowId!==e.id)throw TypeError(`Revision ${t.id} does not belong to workflow ${e.id}.`);let n=t.source.files.length===1?t.source.files[0]:void 0;if(!n||n.path!==Be)throw TypeError(`Revision ${t.id} must contain exactly one ${Be} source file.`);return Qs({draftGeneration:t.draftGeneration,latestRevisionId:t.id,manifest:{$schema:yt,...r.mutableLabels==="omit"?{}:{description:e.description},inputs:t.metadata.inputs,key:e.key,name:r.mutableLabels==="omit"?e.key:e.name,...t.metadata.outputs!==void 0?{outputs:t.metadata.outputs}:{}},publishedRevisionId:e.publishedRevisionId,remoteContentDigest:t.contentDigest,source:n.content,workflowId:e.id})}class Q extends Error{key;constructor(e,t){super(t==="lockfile"?"The project workflow lockfile is missing. Run `action workflow-project pull` or `action workflow-project push` first.":t==="available"?`Workflow ${e} was not found locally, in the project lockfile, or remotely.`:`Workflow ${e} was not found ${t==="tracked"?"in the project lockfile":t}.`);this.name="WorkflowNotFoundError",this.key=e}}class cn extends Error{key;constructor(e,t){super(`Workflow ${e} does not have a ${t} revision.`);this.name="WorkflowRevisionUnavailableError",this.key=e}}class dr extends Error{operation;polls;constructor(e,t){super(`Workflow run ${e} exceeded the bounded polling limit (${t}).`);this.name="WorkflowRunPollingLimitError",this.operation=e,this.polls=t}}class mn extends Error{limit;constructor(e){super(`Workflow run watch exceeded the JSON capture limit (${e} events); use --jsonl to stream bounded-memory output.`);this.name="WorkflowRunCaptureLimitError",this.limit=e}}class pn extends Error{keys;constructor(e){super(`Published pull would overwrite local files for: ${e.join(", ")}.`);this.name="PublishedPullRefusedError",this.keys=e}}import{setTimeout as c1}from"node:timers/promises";import{randomUUID as l1}from"node:crypto";var d1=/^[a-z][a-z0-9-]{0,39}$/u;function xs(e){if(!d1.test(e.operation))throw TypeError("The idempotency operation must be a lowercase dash-separated name.");let t=kt(ne({operation:e.operation,origin:e.origin,payload:e.payload,spaceId:e.spaceId,workflowKey:e.workflowKey}));return`action-cli-${e.operation}-${t}`}function Wp(e){return xs({...e,payload:{invocationId:l1(),value:e.payload}})}function jp(e){return{api:e.api,context:Dt(e.context),projectRoot:e.projectRoot}}function fn(e,t,r,n){return xs({operation:t,origin:e.context.origin,payload:n,spaceId:e.context.spaceId,workflowKey:r})}function hn(e,t,r,n){return Wp({operation:t,origin:e.context.origin,payload:n,spaceId:e.context.spaceId,workflowKey:r})}async function _s(e){let t=await pe(e.projectRoot);if(!t)throw new Q("project","lockfile");return $e(t,e.context),t}async function yn(e,t){ce(t);let n=(await e.api.listWorkflows({spaceId:e.context.spaceId})).find((i)=>i.key===t&&!i.archivedAt);if(!n)throw new Q(t,"remote");return n.id}async function eo(e,t){ce(t);let r=await _s(e),n=x(r,t);if(!n)throw new Q(t,"tracked");return n}var Pp=25,m1=100,p1=1440,f1=1440,h1=1e4,y1=1e4,I1=new Set(["succeeded","failed","cancelled"]);function to(e){return I1.has(e.status)}function Tp(e){let t=e??y1;if(!Number.isInteger(t)||t<0)throw TypeError("requestIntervalMs must be a non-negative integer.");return t}async function Vp(e,t){if(e<=0)return!t?.aborted;try{return await c1(e,void 0,t?{signal:t}:void 0),!0}catch(r){if(t?.aborted)return!1;throw r}}async function Np(e,t,r,n){if(n?.aborted)return!1;if(e===null||t===0)return!0;let i=t-(Date.now()-e);return i<=0?!0:await r(i,n)}async function Ep(e,t,r){let n=await yn(e,t);return await e.api.createWorkflowRun({input:r,spaceId:e.context.spaceId,workflowId:n},{idempotencyKey:hn(e,"run",t,{input:r})})}async function Dp(e,t={}){let r=t.workflowKey?await yn(e,t.workflowKey):void 0;return await e.api.listWorkflowRuns({spaceId:e.context.spaceId,...t.status?{status:t.status}:{},...r?{workflowId:r}:{}},{...t.cursor?{cursor:t.cursor}:{},...t.pageSize?{pageSize:t.pageSize}:{}})}async function ro(e,t,r={}){return await e.api.getWorkflowRun({runId:t,spaceId:e.context.spaceId},r.abortSignal?{abortSignal:r.abortSignal}:{})}async function Mp(e,t,r={}){let n=t,i=r.maxPolls??p1,a=Tp(r.requestIntervalMs),s=r.requestDelay??Vp,o=null;for(let u=0;u<i&&!to(n);u+=1){if(!await Np(o,a,s,r.signal))return n;o=Date.now();try{n=await e.api.waitForWorkflowRun({runId:n.id,spaceId:e.context.spaceId,timeoutSeconds:Pp},r.signal?{abortSignal:r.signal}:{})}catch(l){if(r.signal?.aborted)return n;throw l}}if(!to(n)&&!r.signal?.aborted)throw new dr("wait",i);return n}function g1(e,t){return e.nextCursor??e.data.at(-1)?.cursor??t}async function Gp(e,t){let r=t.maxPages??f1,n=t.maxCapturedEvents??h1,i=t.captureEvents??!0,a=Tp(t.requestIntervalMs),s=t.requestDelay??Vp;if(!Number.isInteger(n)||n<1)throw TypeError("maxCapturedEvents must be a positive integer.");let o=[],u=0,l=new Set,d=new Set(t.cursor?[t.cursor]:[]),c=t.cursor;if(t.signal?.aborted)throw new DOMException("The Action API request was cancelled.","AbortError");let m=await ro(e,t.runId,{...t.signal?{abortSignal:t.signal}:{}}),h=null;for(let f=0;f<r;f+=1){if(!await Np(h,a,s,t.signal))return{eventCount:u,events:o,nextCursor:c??null,run:m,stopped:!0};h=Date.now();let p;try{p=await e.api.listWorkflowRunEvents({...c?{cursor:c}:{},pageSize:m1,runId:t.runId,spaceId:e.context.spaceId,waitSeconds:Pp},t.signal?{abortSignal:t.signal}:{})}catch(q){if(t.signal?.aborted)return{eventCount:u,events:o,nextCursor:c??null,run:m,stopped:!0};throw q}m=p.run;for(let q of p.data){if(l.has(q.id))continue;if(l.add(q.id),u+=1,i){if(o.length>=n)throw new mn(n);o.push(q)}await t.onEvent?.(q)}let y=g1(p,c);if(y&&y!==c){if(d.has(y))throw Oe("The Action API repeated a workflow-run event cursor.");d.add(y),c=y}let I=p.nextCursor===null;if(to(m)&&I)return{eventCount:u,events:o,nextCursor:c??null,run:m,stopped:!1}}throw new dr("watch",r)}async function Up(e,t){return await e.api.cancelWorkflowRun({runId:t,spaceId:e.context.spaceId},{idempotencyKey:fn(e,"run-cancel",t,{runId:t})})}function In(e){if(e===void 0)return null;let t=new Set;for(let r of e)ce(r),t.add(r);return t}function gn(e,t){let r=In(t);if(r){for(let n of r)if(!e.has(n))throw new Q(n,"local")}return[...e.entries()].filter(([n])=>r?.has(n)??!0).sort(([n],[i])=>K(n,i))}function Jp(e,t){return[...new Set([...e.keys(),...Object.keys(t?.workflows??{})])].sort(K).map((n)=>{let i=x(t,n)??null,a=e.get(n)??null,s=i?a?.contentDigest!==i.contentDigest:Boolean(a);return{baseDigest:i?.contentDigest??null,baseRevisionId:i?.latestRevisionId??null,key:n,localDigest:a?.contentDigest??null,localModified:s,remoteDigest:i?.contentDigest??null,remoteModified:!1,remoteRevisionId:i?.latestRevisionId??null,status:!i?"new":!a?"missing":s?"local_changes":"clean"}})}function no(e,t){return e.map((r)=>{let n=x(t,r.manifest.key),i=n?.mutableLabels!==void 0&&n.mutableLabels.name===r.manifest.name&&n.mutableLabels.description===(r.manifest.description??null);if(!(n?.workflowId===r.workflowId&&(n.draftGeneration??0)===r.draftGeneration&&n.latestRevisionId===r.latestRevisionId&&n.remoteContentDigest!==void 0&&n.remoteContentDigest===r.remoteContentDigest&&i))return r;return{...r,contentDigest:n.contentDigest}})}function Fp(e){let t={...e};return delete t.pendingPublication,t}function q1(e){return e instanceof B&&e.status!==null&&!e.retryable}function Bp(e,t){return t===e.latestRevisionId?e.draftGeneration??0:0}function Di(e,t){return`${t}:${Bp(e,t)}`}async function Kp(e,t={}){return await un(e.projectRoot,async()=>{await ji(e.projectRoot);let r=await Pt(e.projectRoot),n=gn(r,t.keys),i=new Map(n.map(([l,d])=>[l,dn(d)])),a=await pe(e.projectRoot)??Mt(e.context);$e(a,e.context);let s={failures:[],items:[],skipped:[],validationFailures:[]},o=async(l)=>{try{return await e.api.validateWorkflowRevision({revisionId:l.revisionId,spaceId:e.context.spaceId,workflowId:l.workflowId})}catch(d){return s.validationFailures.push({error:d,...l}),null}},u=async(l,d)=>{let c=x(a,l);if(!c||c.latestRevisionId!==d)throw Error(`Cannot record validation for stale workflow revision ${d}.`);a={...a,workflows:{...a.workflows,[l]:{...c,validatedRevisionId:d}}},await xe(e.projectRoot,a)};for(let[l,d]of n){let c=x(a,l);if(c?.contentDigest===d.contentDigest){if(c.validatedRevisionId===c.latestRevisionId){s.skipped.push(l);continue}let m=await o({key:l,revisionId:c.latestRevisionId,workflowId:c.workflowId});if(!m)continue;if(m.ok){await u(l,c.latestRevisionId),s.skipped.push(l);continue}s.items.push({created:!1,key:l,revisionId:c.latestRevisionId,validation:m,workflowId:c.workflowId});continue}try{let m=i.get(l);if(!m)throw Error(`Missing validated payload for ${l}.`);let h=fn(e,c?"update":"create",l,{baseDraftGeneration:c?.draftGeneration??null,baseRevisionId:c?.latestRevisionId??null,contentDigest:d.contentDigest,workflowId:c?.workflowId??null}),f=c?await e.api.updateWorkflow({...m,baseRevisionId:c.latestRevisionId,ifMatch:Di(c,c.latestRevisionId),spaceId:e.context.spaceId,workflowId:c.workflowId},{idempotencyKey:h}):await e.api.createWorkflow({...m,key:l,spaceId:e.context.spaceId},{idempotencyKey:h}),p=ct(f.workflow,f.revision);a={...a,workflows:{...a.workflows,[l]:{contentDigest:d.contentDigest,draftGeneration:p.draftGeneration,latestRevisionId:p.latestRevisionId,mutableLabels:{description:p.manifest.description??null,name:p.manifest.name},...c?.pendingPublication&&p.publishedRevisionId!==c.pendingPublication.revisionId?{pendingPublication:c.pendingPublication}:{},publishedRevisionId:p.publishedRevisionId,remoteContentDigest:f.revision.contentDigest,sourceDigest:d.sourceDigest,workflowId:p.workflowId}}},await xe(e.projectRoot,a);let y=await o({key:l,revisionId:f.revision.id,workflowId:f.workflow.id});if(!y)continue;if(y.ok)await u(l,f.revision.id);s.items.push({created:!c,key:l,revisionId:f.revision.id,validation:y,workflowId:f.workflow.id})}catch(m){s.failures.push({error:m,key:l})}}return s})}async function Yp(e,t,r,n){let i=await eo(e,t),a=n??i.latestRevisionId,s=Bp(i,a);return await e.api.testWorkflowRevision({ifMatch:Di(i,a),input:r,revisionId:a,spaceId:e.context.spaceId,workflowId:i.workflowId},{idempotencyKey:hn(e,"test",t,{draftGeneration:s,input:r,revisionId:a,workflowId:i.workflowId})})}async function Hp(e,t,r){return await un(e.projectRoot,async()=>{let n=await _s(e),i=x(n,t);if(!i)throw new Q(t,"tracked");let a=r??i.latestRevisionId;if(!a)throw new cn(t,"base");let s=i.pendingPublication?.revisionId===a?i.pendingPublication.idempotencyKey:hn(e,"publish",t,{draftGeneration:i.draftGeneration??0,revisionId:a,workflowId:i.workflowId}),o={...i,pendingPublication:{idempotencyKey:s,revisionId:a}},u={...n,workflows:{...n.workflows,[t]:o}};await xe(e.projectRoot,u);let l;try{l=await e.api.publishWorkflowRevision({ifMatch:Di(i,a),revisionId:a,spaceId:e.context.spaceId,workflowId:i.workflowId},{idempotencyKey:s})}catch(d){if(q1(d))await xe(e.projectRoot,{...u,workflows:{...u.workflows,[t]:Fp(o)}});throw d}return await xe(e.projectRoot,{...u,workflows:{...u.workflows,[t]:{...Fp(o),draftGeneration:l.draftGeneration??0,publishedRevisionId:l.revisionId}}}),l})}async function Zp(e,t){let r=await eo(e,t);return await e.api.archiveWorkflow({ifMatch:Di(r,r.latestRevisionId),spaceId:e.context.spaceId,workflowId:r.workflowId},{idempotencyKey:fn(e,"archive",t,{draftGeneration:r.draftGeneration??0,revisionId:r.latestRevisionId,workflowId:r.workflowId})})}async function Qp(e,t){return await e.api.listWorkflowRevisions({spaceId:e.context.spaceId,workflowId:await yn(e,t)})}var cr=8;async function mr(e,t,r){if(!Number.isInteger(t)||t<1)throw TypeError("concurrency must be a positive integer");let n=Array(e.length),i=0,a=async()=>{while(i<e.length){let s=i;i+=1,n[s]=await r(e[s],s)}};return await Promise.all(Array.from({length:Math.min(t,e.length)},async()=>a())),n}async function xp(e,t){return await e.api.listWorkflowCapabilities(e.context.spaceId,{...t?{query:t}:{}})}async function qn(e,t={}){return await e.api.listWorkflows({...t.includeArchived!==void 0?{includeArchived:t.includeArchived}:{},spaceId:e.context.spaceId})}function io(e,t){let r=In(t);if(r){let n=new Set(e.map((i)=>i.key));for(let i of r)if(!n.has(i))throw new Q(i,"remote")}return e.filter((n)=>r?.has(n.key)??!0).sort((n,i)=>K(n.key,i.key))}async function ao(e,t){let r=await qn(e,{...t.includeArchived!==void 0?{includeArchived:t.includeArchived}:{}}),n=In(t.archivedKeys),i=In(t.keys),a=n?r.filter((o)=>o.archivedAt===null||n.has(o.key)):r,s=t.allowMissingKeys?a.filter((o)=>i?.has(o.key)??!0).sort((o,u)=>K(o.key,u.key)):io(a,t.keys);return await mr(s,cr,async(o)=>ct(o,await e.api.getWorkflowRevision({revisionId:o.latestRevisionId,spaceId:e.context.spaceId,workflowId:o.id})))}async function _p(e,t={}){let[r,n]=await Promise.all([Pt(e.projectRoot),pe(e.projectRoot)]),i=[...new Set([...r.keys(),...Object.keys(n?.workflows??{}),...t.keys??[]])],a=await ao(e,{allowMissingKeys:!0,archivedKeys:i,includeArchived:!0,...t.keys?{keys:t.keys}:{}});if(t.keys){let u=new Set([...r.keys(),...Object.keys(n?.workflows??{}),...a.map((l)=>l.manifest.key)]);for(let l of t.keys)if(!u.has(l))throw new Q(l,"available")}let s=no(a,n),o=Xp({context:e.context,...t.keys?{keys:t.keys}:{},local:r,lockfile:n,...t.force!==void 0?{overwriteDiverged:t.force}:{},remote:s});return await Op(e.projectRoot,o),o}async function ef(e,t){let r=io(await qn(e),t.keys),n=r.filter((l)=>l.publishedRevisionId===null).map((l)=>l.key),i=r.filter((l)=>l.publishedRevisionId!==null),a=await mr(i,cr,async(l)=>ct(l,await e.api.getWorkflowRevision({revisionId:l.publishedRevisionId,spaceId:e.context.spaceId,workflowId:l.id}),{mutableLabels:"omit"})),s=await mr(a,cr,async(l)=>({local:await jt(t.outputRoot,l.manifest.key),snapshot:l})),o=s.filter(({local:l,snapshot:d})=>l!==null&&l.contentDigest!==d.contentDigest&&!t.force).map(({snapshot:l})=>l.manifest.key);if(o.length>0)throw new pn(o);let u=[];for(let{local:l,snapshot:d}of s){if(l?.contentDigest===d.contentDigest)continue;await Pi(t.outputRoot,d.manifest,d.source),u.push(d.manifest.key)}return{skippedUnpublished:n,workflows:a,written:u}}async function tf(e,t={}){let[r,n]=await Promise.all([Pt(e.projectRoot),pe(e.projectRoot)]);if(n)$e(n,e.context);if(t.offline)return Jp(r,n);let i=no(await ao(e,{archivedKeys:[...r.keys(),...Object.keys(n?.workflows??{})],includeArchived:!0}),n),a=new Map(i.map((o)=>[o.manifest.key,o]));return[...new Set([...r.keys(),...a.keys(),...Object.keys(n?.workflows??{})])].sort(K).flatMap((o)=>{let u=Vi({base:x(n,o)??null,key:o,local:r.get(o)??null,remote:a.get(o)??null});return u?[u]:[]})}async function rf(e,t){ce(t);let[r,n]=await Promise.all([jt(e,t),pe(e)]),i=x(n,t);if(!i&&!r)throw new Q(t,"local");if(!i)return{baseRevisionId:null,diff:Fn({after:r,before:null,key:t}),key:t};if(r?.contentDigest===i.contentDigest)return{baseRevisionId:i.latestRevisionId,diff:"",key:t};return}async function nf(e,t){return[...gn(await Pt(e),t)].map(([n,i])=>{return dn(i),{key:n,localValid:!0}})}async function af(e,t){ce(t);let[r,n]=await Promise.all([jt(e.projectRoot,t),pe(e.projectRoot)]);if(n)$e(n,e.context);let i=x(n,t);if(!i&&!r)throw new Q(t,"local");if(!i)return{baseRevisionId:null,diff:Fn({after:r,before:null,key:t}),key:t};if(r?.contentDigest===i.contentDigest)return{baseRevisionId:i.latestRevisionId,diff:"",key:t};let[a,s]=await Promise.all([e.api.getWorkflow({spaceId:e.context.spaceId,workflowId:i.workflowId}),e.api.getWorkflowRevision({revisionId:i.latestRevisionId,spaceId:e.context.spaceId,workflowId:i.workflowId})]),o=i.mutableLabels?ct({...a,description:i.mutableLabels.description,name:i.mutableLabels.name},s):ct(a,s,{mutableLabels:"omit"}),{description:u,outputs:l,...d}=o.manifest,c={...o,manifest:{...d,...u!==void 0&&(u!==null||r?.manifest.description!==void 0)?{description:u}:{},...l!==void 0&&(l!==null||r?.manifest.outputs!==void 0)?{outputs:l}:{}}};return{baseRevisionId:i.latestRevisionId,diff:Fn({after:r,before:c,key:t}),key:t}}async function sf(e,t={}){let[r,n]=await Promise.all([Pt(e.projectRoot),pe(e.projectRoot)]);if(n)$e(n,e.context);let i=gn(r,t.keys);for(let[,a]of i)dn(a);return await mr(i,cr,async([a,s])=>{if(!t.remote)return{key:a,localValid:!0};let o=x(n,a);if(!o)return{key:a,localValid:!0,remote:{reason:"not-pushed",state:"skipped"}};if(s.contentDigest!==o.contentDigest)return{key:a,localValid:!0,remote:{reason:"locally-modified",state:"skipped"}};return{key:a,localValid:!0,remote:{result:await e.api.validateWorkflowRevision({revisionId:o.latestRevisionId,spaceId:e.context.spaceId,workflowId:o.workflowId}),revisionId:o.latestRevisionId,state:"validated"}}})}class so{scope;constructor(e){this.scope=jp(e)}async list(e={}){return await qn(this.scope,e)}async capabilities(e){return await xp(this.scope,e)}async pull(e={}){return await _p(this.scope,e)}async pullPublished(e){return await ef(this.scope,e)}async status(e={}){return await tf(this.scope,e)}async diff(e){return await af(this.scope,e)}async validate(e={}){return await sf(this.scope,e)}async push(e={}){return await Kp(this.scope,e)}async test(e,t,r){return await Yp(this.scope,e,t,r)}async run(e,t){return await Ep(this.scope,e,t)}async runs(e={}){return await Dp(this.scope,e)}async getRun(e){return await ro(this.scope,e)}async waitForRun(e,t={}){return await Mp(this.scope,e,t)}async watchRun(e){return await Gp(this.scope,e)}async cancelRun(e){return await Up(this.scope,e)}async publish(e,t){return await Hp(this.scope,e,t)}async archive(e){return await Zp(this.scope,e)}async revisions(e){return await Qp(this.scope,e)}}var w1=new Set(["authentication_required","invalid_credential"]),b1=new Set(["conflict","idempotency_mismatch","operation_in_progress","stale_revision"]),A1=new Set(["content_too_large","invalid_request","unsupported_media_type"]);function C1(e){if(e===401)return R.authentication;if(e===404)return R.notFound;if(e===409)return R.conflict;if(e===400||e===413||e===415||e===422)return R.validation;return R.remote}function oo(e,t){e=gr(e);let r=e.indexOf("--format"),i=(r>=0?e[r+1]:e.find((a)=>a.startsWith("--format="))?.slice(9))??t.defaultOutputFormat;if(i!==void 0)return i==="json";if(!lo(e))return!process.stdout.isTTY;return e.includes("--json")}function k1(e){let t=R.remote;if(w1.has(e.code))t=R.authentication;else if(e.code==="not_found")t=R.notFound;else if(b1.has(e.code))t=R.conflict;else if(A1.has(e.code))t=R.validation;else if(e.code==="api_error")t=C1(e.status);return new v(e.code,e.message,{cause:e,details:{...e.correlationId?{correlationId:e.correlationId}:{},...e.details?{fields:e.details}:{},retryable:e.retryable,...e.status!==null?{status:e.status}:{}},exitCode:t})}function of(e){if(e instanceof v)return e;if(e instanceof we){let r=e.envelope;return new v(typeof r?.error?.code==="string"?r.error.code:"api_error",r?.error?.message??e.message,{details:{response:e.envelope},exitCode:e.exitCode})}if(e instanceof B)return k1(e);if(wt(e))return new v("authentication_failed",e.message,{cause:e,exitCode:R.authentication});if(e instanceof Wi)return new v("project_not_found",e.message,{cause:e,exitCode:R.notFound});if(e instanceof Q||e instanceof cn)return new v("workflow_not_found",e.message,{cause:e,exitCode:R.notFound});if(e instanceof dr)return new v("polling_limit_exceeded",e.message,{cause:e,details:{operation:e.operation,polls:e.polls},exitCode:R.remote});if(e instanceof mn)return new v("capture_limit_exceeded",e.message,{cause:e,details:{limit:e.limit},exitCode:R.remote});if(e instanceof S)return new v("profile_error",e.message,{cause:e,exitCode:R.usage});if(e instanceof E)return new v("validation_failed",e.message,{cause:e,exitCode:R.validation});if(e instanceof Et||e instanceof Ti||e instanceof pn||e instanceof ln||e instanceof Ei)return new v("workflow_conflict",e.message,{cause:e,exitCode:R.conflict});let t=e;if(t?.code==="partial_failure"||t?.name==="WorkflowPartialFailureError"){let r=ea(e);return new v("partial_failure",r.message,{cause:e,details:r.details,exitCode:R.partial})}return ea(e)}function ft(e){let t=new $n;t.name("action").description("Operate Action headlessly from a terminal or coding agent").version(re).option("--profile <name>","use a named CLI profile").option("--api-url <url>","override the selected profile's Action API URL").option("--space <id-or-key>","override the active space for this command").option("--organization <id>","use the authenticated organization without selecting a space").addOption(new Sn("--format <format>","output format").choices(["json","text","table"]).default(e.defaultOutputFormat)).option("--schema","show command schema without authenticating").option("--json","emit one stable JSON result",!1).option("--non-interactive","disable prompts and browser-dependent choices",!1).showSuggestionAfterError(!0).allowExcessArguments(!1).exitOverride().configureOutput({outputError:()=>{return},writeErr:()=>{return},writeOut:(n)=>(e.stdout??process.stdout).write(n)});let r=(n)=>Dn({json:n.optsWithGlobals().json===!0||n.optsWithGlobals().format==="json",...e.stderr?{stderr:e.stderr}:{},...e.stdout?{stdout:e.stdout}:{}});return Aa(t,e,r),La(t,e,r),va(t,e,r),Xa(t,e,r),t}var uf=new Set(["--profile","--api-url","--space","--organization","--format","--base-url"]);function uo(e,t){let r=e;for(let n=0;n<t.length;n++){let i=t[n];if(uf.has(i)){n++;continue}if(i.startsWith("-"))continue;let a=r.commands.find((s)=>s.name()===i||s.aliases().includes(i));if(!a)break;r=a}return r}function R1(e){let t=[];for(let r=e;r;r=r.parent)t.unshift(r.name());return t.join(" ")}function lo(e){for(let t=0;t<e.length;t++){let r=e[t];if(uf.has(r)){t++;continue}if(r.startsWith("-"))continue;return["auth","context","workflow-project","skill-project"].includes(r==="help"?e[t+1]??"":r)}return!1}async function co(e,t){let r=ft(t);try{if(lo(e)){let n=gr(e),i=n.indexOf("--format"),a=(i>=0?n[i+1]:n.find((s)=>s.startsWith("--format="))?.slice(9))??t.defaultOutputFormat;if(a!==void 0&&!["json","text","table"].includes(a))throw new v("usage_error","Local command output supports json, text, or table. Set --format explicitly or correct ACTION_OUTPUT / ACTION_API_OUTPUT.",{exitCode:R.usage})}if(t.runGenerated&&!lo(e))return await t.runGenerated(e.length?e:["--help"]);if(e.includes("--schema"))return(t.stdout??process.stdout).write(`${JSON.stringify(Ne(uo(r,e)),null,2)}
|
|
226
|
-
`),R.success;return await
|
|
227
|
-
`):"No results."}function
|
|
228
|
-
`):"No saved profiles. Run action auth login."}},async login(r={}){if(e.globals.json||e.globals.nonInteractive)throw new v("usage_error","Human login requires interactive mode.",{exitCode:R.usage});let n=await e.humanAuthProfile(),i={},a=await ga({apiOrigin:n.apiUrl,clientId:n.auth.clientId,credentialStore:e.credentialStore(),...t.fetch?{fetch:t.fetch}:{},finalizeSession:async(o)=>{let u=await pa({apiOrigin:n.apiUrl,...t.fetch?{fetch:t.fetch}:{},...r.organization?{organization:r.organization}:{},profile:{apiOrigin:n.apiUrl,clientId:n.auth.clientId,issuer:n.auth.issuer},...t.selectOrganization?{selectOrganization:t.selectOrganization}:{},session:o});return i.organization=u.organization,u.session},issuer:n.auth.issuer,lockDirectory:e.profileStore.paths.configDir,onVerification:(o)=>{t.reporter.info(`Open ${o.verificationUri} and enter code ${o.userCode}.`)},...t.openBrowser?{openBrowser:t.openBrowser}:{},profileName:n.name}),s=i.organization;if(!s)throw Error("Action organization selection did not complete.");return e.profileStore.upsert(n.name,{...n,organization:{id:s.id,name:s.name},space:null},!0),{human:`Signed in to ${s.name} for profile ${n.name}.`,value:{authenticated:!0,expiresAt:new Date(a.expiresAt).toISOString(),organization:{id:s.id,key:s.key,name:s.name},profile:n.name}}},async logout(){let r=e.profileName();await da(e.credentialStore(),e.profileStore.paths.configDir,r);let n=Boolean(e.env.ACTION_TOKEN?.trim()||e.env.ACTION_API_KEY?.trim());return{human:n?`Removed the stored session for ${r}; an environment credential is still active.`:`Signed out of profile ${r}.`,value:{environmentCredential:n,profile:r,signedOut:!0}}},async status(){let r=e.profileName();if(e.env.ACTION_TOKEN?.trim())return{human:"Authenticated with ACTION_TOKEN.",value:{authenticated:!0,profile:r,source:"environment_token"}};if(e.env.ACTION_API_KEY?.trim())return{human:"Authenticated with ACTION_API_KEY.",value:{authenticated:!0,profile:r,source:"environment_api_key"}};let n={authenticated:!1};if(e.selectedProfile(!1))try{await e.credential(),n=await ca(e.credentialStore(),r)}catch(i){if(!(i instanceof Xe)&&!(i instanceof he))throw i}return n.authenticated?{human:`Authenticated with a stored human session for ${r}.`,value:{authenticated:!0,expiresAt:new Date(n.expiresAt).toISOString(),organizationId:n.organizationId,profile:r,source:"human_session"}}:{human:`Not authenticated for profile ${r}.`,value:{authenticated:!1,profile:r}}}}}function cf(e){return{async list(){let t=await e.identity().listSpaces(),r=e.globals.space??e.env.ACTION_SPACE_ID?.trim()??e.selectedProfile(!1)?.space?.id??null,n={spaces:t.map((i)=>({active:i.id===r||i.key===r,id:i.id,key:i.key,name:i.name,organizationId:i.organizationId}))};return{human:lf(n.spaces.map((i)=>`${i.active?"*":" "} ${i.key} ${i.name} ${i.id}`)),value:n}},async show(){let t=e.selectedProfile(!1),r={apiUrl:e.apiUrl(),organization:t?.organization??null,profile:t?.name??e.profileName(),space:e.globals.space?{id:e.globals.space,override:!0}:t?.space??null};return{human:lf([`Profile: ${r.profile}`,`API: ${r.apiUrl}`,`Organization: ${r.organization?.name??r.organization?.id??"not selected"}`,`Space: ${r.space?.id??"not selected"}`]),value:r}},async use(t){let r=e.selectedProfile(),n=await e.remoteSelection(t),i=e.profileStore.selectContext(r.name,n.organization,n.space);return{human:`Using ${n.space.name} (${n.space.key}) for profile ${r.name}.`,value:{organization:i.organization,profile:r.name,space:{id:n.space.id,key:n.space.key,name:n.space.name}}}}}}import{resolve as L1}from"node:path";function mo(e){let t=$r(e);return{getCurrentPrincipal:async(r={})=>await t.getIdentity(r),listSpaces:async(r={})=>await t.listSpaces(r)}}var v1="https://backend.action.so",$1="https://api.workos.com",S1={clientId:"machine-credential",issuer:"https://api.workos.com"},X1={delete:async()=>{return},get:async()=>null,set:async()=>{return}};function J(e){return e?.trim()||null}function po(e){let t;try{t=gt(e)}catch(i){throw new S(i instanceof Error?i.message:"The Action API URL is invalid.")}let r=new URL(t),n=r.hostname==="localhost"||r.hostname==="127.0.0.1"||r.hostname==="[::1]";if(r.protocol!=="https:"&&!(r.protocol==="http:"&&n))throw new S("The Action API URL must use HTTPS outside local development.");return t}class wn{env;globals;profileStore;cwdProvider;fetcher;credentialStoreValue;apiValue;generatedBinaryPath;identityValue;publicClientOptionsValue;actionCorrelationIdValue;constructor(e){let t=e.env??process.env;this.env={...t,ACTION_TOKEN:J(t.ACTION_TOKEN)??(J(t.ACTION_API_KEY)?void 0:J(t.ACTION_API_TOKEN))??void 0},this.globals=e.globals,this.generatedBinaryPath=e.generatedBinaryPath,this.profileStore=e.profileStore??new Nn,this.cwdProvider=e.cwd??process.cwd,this.fetcher=e.fetch,this.credentialStoreValue=e.credentialStore}cwd(){return this.cwdProvider()}apiUrl(e){return po(this.globals.apiUrl??J(this.env.ACTION_API_URL)??J(this.env.ACTION_API_BASE_URL)??this.selectedProfile(!1)?.apiUrl??e??v1)}profileName(){return this.globals.profile??J(this.env.ACTION_PROFILE)??this.profileStore.currentName()??"default"}selectedProfile(e=!0){let t=this.globals.profile??J(this.env.ACTION_PROFILE)??this.profileStore.currentName();if(!t){if(e)throw new S("No Action CLI profile is selected.");return null}let r=this.profileStore.list().find((n)=>n.name===t)??null;if(!r&&e)throw new S(`Action CLI profile "${t}" does not exist.`);return r}async humanAuthProfile(){let e=this.selectedProfile(!1);if(e){if(po(e.apiUrl)!==this.apiUrl())throw new S("Human login is bound to the selected profile's API URL. Use a matching profile before logging in.");return e}let t=J(this.env.ACTION_AUTHKIT_CLIENT_ID),r=t?null:await ma({apiOrigin:this.apiUrl(),...this.fetcher?{fetch:this.fetcher}:{}}),n=t??r?.clientId,i=J(this.env.ACTION_AUTHKIT_ISSUER)??r?.issuer??$1;if(!n)throw new S("Human login is not configured.");return this.profileStore.upsert(this.profileName(),{apiUrl:this.apiUrl(),auth:{clientId:n,issuer:i},organization:null,space:null},!0)}credentialStore(){return this.credentialStoreValue??=Ia(),this.credentialStoreValue}requestFetcher(){return this.fetcher}async credential(){let e=this.selectedProfile(!1);return await this.credentialForProfile(e)}identity(){return this.identityValue??=mo(this.publicClientOptions()),this.identityValue}async credentialForProfile(e,t=this.apiUrl()){let r=J(this.env.ACTION_TOKEN)??J(this.env.ACTION_API_KEY);if(!e&&!r)throw new Xe;if(e&&!r&&po(e.apiUrl)!==t)throw new Xe("The stored human session is bound to the selected profile's API URL. Use a matching profile or set ACTION_TOKEN or ACTION_API_KEY for an API override.");return await la({credentialStore:r?X1:this.credentialStore(),env:{ACTION_API_KEY:this.env.ACTION_API_KEY,ACTION_TOKEN:this.env.ACTION_TOKEN},...this.fetcher?{fetch:this.fetcher}:{},lockDirectory:this.profileStore.paths.configDir,profile:{apiOrigin:t,name:e?.name??this.profileName(),...e?.auth??S1}})}api(){return this.apiValue??=$r(this.publicClientOptions()),this.apiValue}publicClientOptions(){if(this.publicClientOptionsValue)return this.publicClientOptionsValue;let e=this.apiUrl(),t=this.selectedProfile(!1);return this.publicClientOptionsValue={baseUrl:e,correlationIdProvider:()=>{return this.actionCorrelationIdValue??=crypto.randomUUID(),this.actionCorrelationIdValue},preserveError:(r)=>wt(r)||r instanceof S,cwd:this.cwd(),env:this.env,...this.generatedBinaryPath?{binaryPath:this.generatedBinaryPath}:{},tokenProvider:async()=>{return(await this.credentialForProfile(t,e)).authorization.replace(/^Bearer\s+/u,"")},version:re},this.publicClientOptionsValue}async projectRoot(){return await Lp(this.cwd())}async initializationContext(){let e=this.selectedProfile(!1),t=this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID),r=this.globals.space??J(this.env.ACTION_SPACE_ID);if(!t&&!r)return e?.organization&&e.space?{origin:this.apiUrl(),organizationId:e.organization.id,spaceId:e.space.id}:void 0;let n=r??e?.space?.id;if(!n)throw new S("ACTION_ORGANIZATION_ID requires --space or ACTION_SPACE_ID when initializing a project.");if(e?.organization&&e.space?.id===n&&(!t||t===e.organization.id))return{origin:this.apiUrl(),organizationId:e.organization.id,spaceId:e.space.id};let i=await this.remoteSelection(n);if(t&&i.organization.id!==t)throw new S(`Space "${n}" does not belong to organization ${t}.`);return{origin:this.apiUrl(),organizationId:i.organization.id,spaceId:i.space.id}}async spaceId(e){if(e)return e;let t=this.globals.space??J(this.env.ACTION_SPACE_ID);if(t){if(/^(?:ws_|space_|[0-9a-f]{8}-)/u.test(t))return t;return(await this.remoteSelection(t)).space.id}let r=this.selectedProfile(!1)?.space?.id;if(r)return r;return(await this.remoteSelection()).space.id}async organizationId(e){return e??this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID)??this.selectedProfile(!1)?.organization?.id??(await this.remoteOrganization()).id}async remoteSelection(e,t={}){let r=this.identity(),[n,i]=await Promise.all([r.getCurrentPrincipal(t),r.listSpaces(t)]),a=this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID);if(a&&n.organization.id!==a)throw new S("The requested organization does not match your current login.");let s=e??this.globals.space??J(this.env.ACTION_SPACE_ID)??this.selectedProfile(!1)?.space?.id??null,o=i.filter((l)=>l.organizationId===n.organization.id),u;if(s){if(u=o.find((l)=>l.id===s||l.key===s),!u)throw new S(`Space "${s}" is not available in organization ${n.organization.name}.`)}else if(o.length===1)u=o[0];else throw new S("Select a space with `action context use <space>` or pass --space.");if(!u)throw new S("No Action workflow space is available.");return{organization:n.organization,space:u}}async remoteOrganization(e={}){let t=await this.identity().getCurrentPrincipal(e),r=this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID)??this.selectedProfile(!1)?.organization?.id;if(r&&r!==t.organization.id)throw new S(`Organization "${r}" does not match the authenticated organization. Log in to that organization first.`);return t.organization}async projectContext(e){let[t,r]=await Promise.all([pe(e),Promise.resolve(this.selectedProfile(!1))]),n=this.globals.space??J(this.env.ACTION_SPACE_ID),i=r?.space?.id??t?.spaceId??null,a=n??i,s=this.globals.organization??r?.organization?.id??J(this.env.ACTION_ORGANIZATION_ID)??t?.organizationId??null,u=!n&&!r?.space&&a===t?.spaceId&&t?.organizationId!==s;if(a&&s&&(!this.globals.organization||this.globals.organization===r?.organization?.id)&&(!n||n===i)&&!u)return{origin:this.apiUrl(t?.origin),organizationId:s,spaceId:a};let l=await this.remoteSelection(a??void 0);return{origin:this.apiUrl(t?.origin),organizationId:l.organization.id,spaceId:l.space.id}}async workflowService(e={}){let t=e.projectRequired===!1?this.cwd():await this.projectRoot(),r=e.projectRequired===!1?await this.remoteSelection(void 0,{...e.abortSignal?{abortSignal:e.abortSignal}:{}}).then((n)=>({origin:this.apiUrl(),organizationId:n.organization.id,spaceId:n.space.id})):await this.projectContext(t);return new so({api:this.api(),context:r,projectRoot:t})}resolveDirectory(e){return L1(this.cwd(),e??".")}}import{lstat as O1,mkdir as z1,open as W1,unlink as j1}from"node:fs/promises";import{join as bn}from"node:path";async function mf(e){let t=bn(e,"workflows","example"),r=[bn(t,"workflow.json"),bn(t,"index.mjs")];for(let a of r){try{await O1(a)}catch(s){if(s.code==="ENOENT")continue;throw s}throw new v("scaffold_conflict",`Cannot initialize: ${a} already exists. Choose an empty directory.`,{exitCode:R.conflict})}await z1(t,{recursive:!0});let n=[],i=async(a,s)=>{let o=await W1(a,"wx");n.push(a);try{await o.writeFile(s)}finally{await o.close()}};try{let a={type:"object",properties:{},additionalProperties:!1};await i(bn(t,"workflow.json"),JSON.stringify({$schema:yt,key:"example",name:"Example workflow",inputs:a},null,2)+`
|
|
229
|
-
`),await i(
|
|
221
|
+
`);if(r)t.pop();else t.push(t.pop().slice(0,-1));return t}function ul(e){let r=Ge(e.before),t=Ge(e.after);if(r===t)return"";return Ja(`a/${e.path}`,`b/${e.path}`,r,t,"","",{context:e.context??3})??""}function Zn(e){let r=`workflows/${e.key}`,t=ul({after:e.after?ie(e.after.manifest):"",before:e.before?ie(e.before.manifest):"",path:`${r}/workflow.json`}),n=ul({after:e.after?.source??"",before:e.before?.source??"",path:`${r}/index.mjs`});return[t,n].filter(Boolean).join(`
|
|
222
|
+
`)}import{randomUUID as g1}from"node:crypto";import{mkdir as ao,lstat as ln,open as Mp,readFile as dn,readdir as q1,rename as w1,stat as io,unlink as b1}from"node:fs/promises";import{basename as A1,dirname as cn,join as Je,parse as C1,resolve as Gp}from"node:path";var $p=Zi(Lp(),1);var Sp=ca.source,xs="^[0-9a-f]{64}$",ve={minLength:1,type:"string"},vp={properties:{type:{const:"object"}},required:["type"],type:"object"},_R={$id:Lt,additionalProperties:!1,properties:{$schema:{const:Lt},schemaVersion:{const:qr}},required:["$schema","schemaVersion"],type:"object"},e1={$id:gr,additionalProperties:!1,properties:{$schema:{const:gr},description:{anyOf:[{maxLength:2000,type:"string"},{type:"null"}]},inputs:vp,key:{maxLength:120,pattern:Sp,type:"string"},name:{maxLength:200,minLength:1,pattern:"\\S",type:"string"},outputs:{anyOf:[vp,{type:"null"}]}},required:["$schema","inputs","key","name"],type:"object"},r1={additionalProperties:!1,properties:{commitSha:ve,path:ve,ref:ve,repo:ve},required:["commitSha","path","ref","repo"],type:"object"},t1={additionalProperties:!1,properties:{idempotencyKey:{maxLength:200,minLength:8,pattern:"^[A-Za-z0-9._:-]+$",type:"string"},revisionId:ve},required:["idempotencyKey","revisionId"],type:"object"},n1={additionalProperties:!1,properties:{description:{anyOf:[{maxLength:2000,type:"string"},{type:"null"}]},name:{maxLength:200,minLength:1,pattern:"\\S",type:"string"}},required:["description","name"],type:"object"},i1={additionalProperties:!1,properties:{codeRef:r1,contentDigest:{pattern:xs,type:"string"},draftGeneration:{minimum:0,type:"integer"},latestRevisionId:ve,mutableLabels:n1,pendingPublication:t1,publishedRevisionId:{anyOf:[ve,{type:"null"}]},remoteContentDigest:{pattern:xs,type:"string"},sourceDigest:{pattern:xs,type:"string"},validatedRevisionId:ve,workflowId:ve},required:["contentDigest","latestRevisionId","publishedRevisionId","sourceDigest","workflowId"],type:"object"},a1={$id:vt,additionalProperties:!1,properties:{$schema:{const:vt},organizationId:ve,origin:ve,schemaVersion:{const:qr},spaceId:ve,workflows:{additionalProperties:i1,propertyNames:{maxLength:120,pattern:Sp},type:"object"}},required:["$schema","organizationId","origin","schemaVersion","spaceId","workflows"],type:"object"},_s=new $p.default({allErrors:!0,strict:!0}),s1=_s.compile(_R),o1=_s.compile(e1),u1=_s.compile(a1);class D extends Error{issues;constructor(e,r){super(`${e} is invalid:
|
|
223
|
+
${r.map((t)=>`- ${t}`).join(`
|
|
224
|
+
`)}`);this.name="ProjectValidationError",this.issues=r}}function l1(e){return(e??[]).map((r)=>{return`${r.instancePath||"/"} ${r.message??"is invalid"}`})}function eo(e,r,t){if(!r(e))throw new D(t,l1(r.errors))}function Xp(e,r){try{return JSON.parse(e)}catch(t){let n=t instanceof Error?t.message:"Invalid JSON";throw new D(r,[n])}}function ro(e,r="action.json"){return eo(e,s1,r),e}function an(e,r={}){let t=r.document??"workflow.json";if(eo(e,o1,t),r.expectedKey!==void 0&&e.key!==r.expectedKey)throw new D(t,[`/key must match its workflows/${r.expectedKey} directory`]);return e}function ct(e,r=".action/lock.json"){return eo(e,u1,r),e}function pe(e){if(!ca.test(e))throw new D("workflow key",["must be a portable lowercase, dash-separated identifier with at most 120 characters"])}function sn(e,r="index.mjs"){if(Buffer.byteLength(e,"utf8")>1e6)throw new D(r,["must be 1000000 UTF-8 bytes or fewer"]);return e}import{randomUUID as d1}from"node:crypto";import{lstat as zp,mkdir as Op,open as Wp,readFile as c1,readdir as no,rename as m1,rm as p1}from"node:fs/promises";import{hostname as jp}from"node:os";import{dirname as Wi,join as $e,resolve as on}from"node:path";var Pp="owner.json",Tp="ready",f1=50,h1=30000;function Pr(e,r){return e instanceof Error&&"code"in e&&e.code===r}function Ti(e){return $e(on(e),".action","workflow-transactions")}function Vp(e,r){pe(r);let t=Ti(e),n=$e(t,r);return{directory:n,next:$e(n,"next"),owner:$e(n,Pp),previous:$e(n,"previous"),ready:$e(n,Tp),root:t,target:$e(on(e),"workflows",r)}}async function Tr(e){let r;try{r=await Wp(e,"r"),await r.sync()}catch(t){if(!Pr(t,"EINVAL")&&!Pr(t,"ENOTSUP")&&!Pr(t,"EISDIR")&&!Pr(t,"EPERM"))throw t}finally{await r?.close()}}async function Pi(e,r){if(await m1(e,r),await Tr(Wi(e)),Wi(e)!==Wi(r))await Tr(Wi(r))}async function Np(e){try{let r=await zp(e);if(r.isSymbolicLink()||!r.isFile())throw new D(e,["path must be a regular file, not a link"]);return!0}catch(r){if(Pr(r,"ENOENT"))return!1;throw r}}async function mr(e){try{let r=await zp(e);if(r.isSymbolicLink()||!r.isDirectory())throw new D(e,["path must be a real directory, not a link"]);return!0}catch(r){if(Pr(r,"ENOENT"))return!1;throw r}}async function mt(e,r={}){if(!await mr(e))return!1;let t=await no(e,{withFileTypes:!0}),n=new Set(["workflow.json",Ye]),i=t.filter((s)=>n.has(s.name)&&!s.isFile()).map((s)=>s.name).sort(B);if(i.length>0)throw new D(e,[`required paths must be regular files: ${i.join(", ")}`]);let a=t.map((s)=>s.name).filter((s)=>!n.has(s)).sort(B);if(a.length>0)throw new D(e,[`unsupported files for the v1 layout: ${a.join(", ")}`]);if(r.complete!==!1){let s=new Set(t.map((u)=>u.name)),o=[...n].filter((u)=>!s.has(u));if(o.length>0)throw new D(e,[`required files are missing: ${o.join(", ")}`])}return!0}async function y1(e){if(!await Np(e))return null;let r;try{r=JSON.parse(await c1(e,"utf8"))}catch{return null}if(typeof r.createdAt!=="string"||typeof r.hostname!=="string"||!Number.isInteger(r.pid)||(r.pid??0)<=0||typeof r.token!=="string")return null;return r}function I1(e){let r=Date.parse(e.createdAt),t=Date.now()-r;if(!Number.isFinite(r)||t<0||t>h1)return!1;if(e.hostname!==jp())return!0;try{return process.kill(e.pid,0),!0}catch(n){return!Pr(n,"ESRCH")}}async function to(e){await p1(e.directory,{recursive:!0}),await Tr(e.root)}async function un(e,r,t){let n=$e(on(e),".action");if(!await mr(n))return;let i=Vp(e,r);if(!await mr(i.root))return;let a=$e(on(e),"workflows");if(!await mr(a))throw new D(a,["workflows path is missing during transaction recovery"]);for(let s=0;s<f1;s+=1){if(!await mr(i.directory))return;let o=await no(i.directory,{withFileTypes:!0}),u=new Set([Pp,Tp,"next","previous"]),l=o.filter((m)=>!u.has(m.name)).map((m)=>m.name).sort(B);if(l.length>0)throw new D(i.directory,[`unsupported transaction paths: ${l.join(", ")}`]);let d=await y1(i.owner),c=await mr(i.target);if(d&&d.token!==t&&I1(d)){if(c)return;await new Promise((m)=>setTimeout(m,10));continue}if(c){await mt(i.target),await to(i);return}let p=await Np(i.ready),h=await mt(i.next,{complete:p});if(await mt(i.previous))await Pi(i.previous,i.target);else if(h&&p)await Pi(i.next,i.target);await to(i);return}throw new D(i.directory,["workflow update is still in progress; retry"])}async function Dp(e){let r=$e(on(e),".action");if(!await mr(r))return;let t=Ti(e);if(!await mr(t))return;let n=await no(t,{withFileTypes:!0});for(let i of n.sort((a,s)=>B(a.name,s.name))){if(!i.isDirectory())throw new D(t,[`transaction path must be a real directory: ${i.name}`]);pe(i.name),await un(e,i.name)}}async function ji(e,r,t=420){let n=await Wp(e,"wx",t);try{await n.writeFile(r),await n.sync()}finally{await n.close()}}async function Ep(e){let r=Vp(e.projectRoot,e.key),t=d1();await Op(r.directory),await Tr(r.root);try{if(await ji(r.owner,`${JSON.stringify({createdAt:new Date().toISOString(),hostname:jp(),pid:process.pid,token:t})}
|
|
225
|
+
`,384),await Op(r.next),await Tr(r.directory),await Promise.all([ji($e(r.next,"workflow.json"),e.manifest),ji($e(r.next,Ye),e.source)]),await Tr(r.next),await ji(r.ready,"",384),await Tr(r.directory),e.currentExists)await Pi(r.target,r.previous);await Pi(r.next,r.target),await to(r)}catch(n){try{await un(e.projectRoot,e.key,t)}catch(i){let a=n instanceof Error?n.message:String(n);throw Error(`Workflow write failed (${a}) and recovery also failed.`,{cause:i})}throw n}}class Vi extends Error{constructor(e){super(`No action.json project was found at or above ${e}.`);this.name="ActionProjectNotFoundError"}}function fe(e,r){return e instanceof Error&&"code"in e&&e.code===r}async function k1(e){try{return await io(e),!0}catch(r){if(fe(r,"ENOENT"))return!1;throw r}}async function Fe(e){try{let r=await ln(e);if(r.isSymbolicLink()||!r.isDirectory())throw new D(e,["path must be a real directory, not a link"])}catch(r){if(!fe(r,"ENOENT"))throw r;try{await ao(e)}catch(t){if(!fe(t,"EEXIST"))throw t;await Fe(e)}}}function re(e){let r=Gp(e),t=Je(r,".action");return{actionDirectory:t,lockfile:Je(t,"lock.json"),manifest:Je(r,"action.json"),mutationLock:Je(t,"mutation.lock"),root:r,workflows:Je(r,"workflows")}}function Up(e,r){pe(r);let t=Je(re(e).workflows,r);return{directory:t,manifest:Je(t,"workflow.json"),source:Je(t,Ye)}}async function R1(e=process.cwd()){let r=Gp(e);try{if(!(await io(r)).isDirectory())r=cn(r)}catch(t){if(!fe(t,"ENOENT"))throw t}while(!0){let t=Je(r,"action.json");try{if((await io(t)).isFile())return r}catch(i){if(!fe(i,"ENOENT"))throw i}let n=cn(r);if(n===r||r===C1(r).root)return null;r=n}}async function Jp(e=process.cwd()){let r=await R1(e);if(!r)throw new Vi(e);return r}async function L1(e){let r;try{r=await Mp(e,"r"),await r.sync()}catch(t){if(!fe(t,"EINVAL")&&!fe(t,"ENOTSUP")&&!fe(t,"EISDIR")&&!fe(t,"EPERM"))throw t}finally{await r?.close()}}async function v1(e){await L1(cn(e))}async function $1(e,r,t={}){await ao(cn(e),{recursive:!0});let n=Je(cn(e),`.${A1(e)}.${process.pid}.${g1()}.tmp`),i;try{i=await Mp(n,"wx",t.mode??420),await i.writeFile(r),await i.sync(),await i.close(),i=void 0,await t.beforeRename?.(n,e),await w1(n,e),await v1(e)}catch(a){throw await i?.close().catch(()=>{}),await b1(n).catch((s)=>{if(!fe(s,"ENOENT"))throw s}),a}}async function Fp(e,r,t={}){let n=typeof r==="string"?Buffer.from(r):Buffer.from(r);try{if((await dn(e)).equals(n))return!1}catch(i){if(!fe(i,"ENOENT"))throw i}return await $1(e,n,t),!0}async function so(e,r){try{let t=await ln(e);if(t.isSymbolicLink()||!t.isFile())throw new D(r,["file must be a regular file, not a link"]);return Xp(await dn(e,"utf8"),r)}catch(t){if(fe(t,"ENOENT"))throw new D(r,["file is missing"]);throw t}}async function Ni(e){let r=re(e);return ro(await so(r.manifest,r.manifest),r.manifest)}async function he(e){let r=re(e);if(!await k1(r.lockfile))return null;return ct(await so(r.lockfile,r.lockfile),r.lockfile)}async function Vr(e,r){let t=Up(e,r);for(let n=0;n<3;n+=1){if(await un(e,r),!await mt(t.directory))return null;try{let i=await ln(t.directory);if(i.isSymbolicLink()||!i.isDirectory())throw new D(t.directory,["workflow path must be a real directory, not a link"]);let[a,s]=await Promise.all([so(t.manifest,t.manifest),dn(t.source,"utf8")]),o=await ln(t.directory);if(o.isSymbolicLink()||!o.isDirectory())throw new D(t.directory,["workflow path must be a real directory, not a link"]);if(i.dev!==o.dev||i.ino!==o.ino)continue;let u=an(a,{document:t.manifest,expectedKey:r}),l=Ge(sn(s,t.source));return{canonicalWorkflowJson:ie(u),contentDigest:Kn(u,l),manifest:u,source:l,sourceDigest:Fn(l)}}catch(i){if(fe(i,"ENOENT"))continue;throw i}}throw new D(t.directory,["workflow changed while it was read; retry"])}async function Nr(e){await Dp(e);let r=re(e).workflows,t;try{let a=await ln(r);if(a.isSymbolicLink()||!a.isDirectory())throw new D(r,["workflows path must be a real directory, not a link"]);t=await q1(r,{withFileTypes:!0})}catch(a){if(fe(a,"ENOENT"))return new Map;throw a}let n=t.filter((a)=>a.isDirectory()).map((a)=>a.name).sort(B),i=new Map;for(let a of n){pe(a);let s=await Vr(e,a);if(s)i.set(a,s)}return i}async function S1(e,r){return ro(r),await Fe(re(e).root),await Fp(re(e).manifest,ie(r))}async function er(e,r){return ct(r),await Fe(re(e).actionDirectory),await Fp(re(e).lockfile,ie(r))}async function Di(e,r,t){an(r);let n=Up(e,r.key),i=Ge(sn(t,n.source)),a=ie(r),s=re(e);await un(e,r.key),await Fe(s.actionDirectory),await Fe(Ti(e)),await Fe(s.workflows);let o=await mt(n.directory),[u,l]=o?await Promise.all([dn(n.manifest),dn(n.source)]):[null,null],d=!u?.equals(Buffer.from(a)),c=!l?.equals(Buffer.from(i));if(!d&&!c)return{manifestChanged:d,sourceChanged:c};return await Ep({currentExists:o,key:r.key,manifest:a,projectRoot:e,source:i}),{manifestChanged:d,sourceChanged:c}}async function Kp(e,r){let t=re(e);if(await ao(t.root,{recursive:!0}),await Promise.all([Fe(t.actionDirectory),Fe(t.workflows)]),await S1(e,{$schema:Lt,schemaVersion:qr}),r)await er(e,Jr(r))}class Ei extends Error{constructor(e){super(`Another Action CLI process is mutating this project (${e}).`);this.name="ProjectMutationLockedError"}}async function X1(e,r={}){let n=re(e).mutationLock,i=r.timeoutMs??5000;return await jn({ensureParent:()=>Fe(re(e).actionDirectory),invalidFileError:(a)=>new D(a,["mutation lock must be a regular file, not a link"]),path:n,timeoutError:(a)=>new Ei(a),timeoutMs:i})}async function mn(e,r,t){let n=await X1(e,t);try{return await r()}finally{await n.release()}}function Mi(e){let{base:r,key:t,local:n,remote:i}=e;if(!r&&!n&&!i)return null;if(!r){let l=Boolean(n&&i&&n.contentDigest===i.contentDigest),d=n?i?l?"remote_changes":"conflict":"new":"remote_changes";return Bp({base:r,key:t,local:n,localModified:Boolean(n)&&!l,remote:i,remoteModified:Boolean(i),status:d})}let a=n?n.contentDigest!==r.contentDigest:!0,s=i?i.workflowId!==r.workflowId||i.draftGeneration!==(r.draftGeneration??0)||i.latestRevisionId!==r.latestRevisionId||i.contentDigest!==r.contentDigest:!0,o=Boolean(s&&n&&i&&n.contentDigest===i.contentDigest);return Bp({base:r,key:t,local:n,localModified:o?!1:a,remote:i,remoteModified:s,status:!n?"missing":o?"remote_changes":a&&s?"conflict":a?"local_changes":s?"remote_changes":"clean"})}function Bp(e){return{baseDigest:e.base?.contentDigest??null,baseRevisionId:e.base?.latestRevisionId??null,key:e.key,localDigest:e.local?.contentDigest??null,localModified:e.localModified,remoteDigest:e.remote?.contentDigest??null,remoteModified:e.remoteModified,remoteRevisionId:e.remote?.latestRevisionId??null,status:e.status}}class Ui extends Error{refusals;constructor(e){super(`Pull would overwrite local divergence in: ${e.map((r)=>r.key).join(", ")}.`);this.name="PullRefusedError",this.refusals=e}}class pn extends Error{constructor(e){super(e);this.name="PullPlanStaleError"}}function oo(e){let r=an(e.manifest),t=Ge(sn(e.source));return{canonicalWorkflowJson:ie(r),...e.codeRef?{codeRef:e.codeRef}:{},contentDigest:Kn(r,t),draftGeneration:e.draftGeneration??0,latestRevisionId:e.latestRevisionId,manifest:r,publishedRevisionId:e.publishedRevisionId,...e.remoteContentDigest?{remoteContentDigest:e.remoteContentDigest}:{},source:t,sourceDigest:Fn(t),workflowId:e.workflowId}}function O1(e){return{...e.codeRef?{codeRef:e.codeRef}:{},contentDigest:e.contentDigest,draftGeneration:e.draftGeneration,latestRevisionId:e.latestRevisionId,mutableLabels:{description:e.manifest.description??null,name:e.manifest.name},publishedRevisionId:e.publishedRevisionId,...e.remoteContentDigest?{remoteContentDigest:e.remoteContentDigest}:{},sourceDigest:e.sourceDigest,workflowId:e.workflowId}}function Gi(e,r){return{...O1(e),...r?.pendingPublication&&e.publishedRevisionId!==r.pendingPublication.revisionId?{pendingPublication:r.pendingPublication}:{},...r?.validatedRevisionId===e.latestRevisionId?{validatedRevisionId:r.validatedRevisionId}:{}}}function z1(e){if(e==="local_changes")return"local_changes";if(e==="conflict")return"local_and_remote_changes";if(e==="missing")return"missing_local";return null}function Yp(e){let r=Ur(e.context);if(e.lockfile)ct(e.lockfile),Xe(e.lockfile,r);let t=e.lockfile?{...e.lockfile,workflows:{...e.lockfile.workflows}}:Jr(r),n=new Map;for(let d of e.remote){let c=oo({...d.codeRef?{codeRef:d.codeRef}:{},draftGeneration:d.draftGeneration,latestRevisionId:d.latestRevisionId,manifest:d.manifest,publishedRevisionId:d.publishedRevisionId,...d.remoteContentDigest?{remoteContentDigest:d.remoteContentDigest}:{},source:d.source,workflowId:d.workflowId}),p=c.manifest.key;if(n.has(p))throw Error(`Remote pull contained duplicate workflow key ${p}.`);n.set(p,c)}let i=e.keys?new Set(e.keys):null,a=[...new Set([...e.local.keys(),...n.keys(),...Object.keys(t.workflows)])].filter((d)=>i?.has(d)??!0).sort(B),s=[],o=[],u=[],l=[];for(let d of a){let c=x(e.lockfile,d)??null,p=e.local.get(d)??null,h=n.get(d)??null,f=Mi({base:c,key:d,local:p,remote:h});if(!f)continue;if(l.push(f),p&&h&&p.contentDigest===h.contentDigest){t.workflows[d]=Gi(h,c);continue}if(f.status==="clean"){if(h)t.workflows[d]=Gi(h,c);continue}if(f.status==="remote_changes"&&h){s.push({expectedLocalDigest:p?.contentDigest??null,key:d,manifest:h.manifest,source:h.source}),t.workflows[d]=Gi(h,c);continue}let m=z1(f.status);if(h&&m&&e.overwriteDiverged===!0){s.push({expectedLocalDigest:p?.contentDigest??null,key:d,manifest:h.manifest,source:h.source}),t.workflows[d]=Gi(h,c);continue}if(h&&m)o.push({key:d,reason:m,status:f.status});else u.push(d)}return ct(t),{baseLockDigest:e.lockfile?Lr(ie(e.lockfile)):null,context:r,nextLockfile:t,preserved:u,refusals:o,statuses:l,writes:s}}function W1(e){if(e.refusals.length>0)throw new Ui(e.refusals)}async function Zp(e,r){W1(r),await mn(e,async()=>{await Ni(e);let t=await he(e);if(t)Xe(t,r.context);if((t?Lr(ie(t)):null)!==r.baseLockDigest)throw new pn("The project lockfile changed after pull planning.");for(let i of r.writes)if(((await Vr(e,i.key))?.contentDigest??null)!==i.expectedLocalDigest)throw new pn(`Workflow ${i.key} changed locally after pull planning; no files were overwritten.`);for(let i of r.writes)await Di(e,i.manifest,i.source);await er(e,r.nextLockfile)})}function Qp(e,r){if(e.type!=="object")throw TypeError(`workflow.json ${r} must be a JSON object schema with type "object".`);return e}function fn(e){let r=e.manifest.outputs;return{...e.manifest.description!==void 0?{description:e.manifest.description}:{},metadata:{inputs:Qp(e.manifest.inputs,"inputs"),...r!==void 0?{outputs:r===null?null:Qp(r,"outputs")}:{}},name:e.manifest.name,source:{files:[{content:e.source,path:Ye}]}}}function pr(e,r,t={}){if(r.workflowId!==e.id)throw TypeError(`Revision ${r.id} does not belong to workflow ${e.id}.`);let n=r.source.files.length===1?r.source.files[0]:void 0;if(!n||n.path!==Ye)throw TypeError(`Revision ${r.id} must contain exactly one ${Ye} source file.`);return oo({draftGeneration:r.draftGeneration,latestRevisionId:r.id,manifest:{$schema:gr,...t.mutableLabels==="omit"?{}:{description:e.description},inputs:r.metadata.inputs,key:e.key,name:t.mutableLabels==="omit"?e.key:e.name,...r.metadata.outputs!==void 0?{outputs:r.metadata.outputs}:{}},publishedRevisionId:e.publishedRevisionId,remoteContentDigest:r.contentDigest,source:n.content,workflowId:e.id})}class H extends Error{key;constructor(e,r){super(r==="lockfile"?"The project workflow lockfile is missing. Run `action workflow-project pull` or `action workflow-project push` first.":r==="available"?`Workflow ${e} was not found locally, in the project lockfile, or remotely.`:`Workflow ${e} was not found ${r==="tracked"?"in the project lockfile":r}.`);this.name="WorkflowNotFoundError",this.key=e}}class hn extends Error{key;constructor(e,r){super(`Workflow ${e} does not have a ${r} revision.`);this.name="WorkflowRevisionUnavailableError",this.key=e}}class pt extends Error{operation;polls;constructor(e,r){super(`Workflow run ${e} exceeded the bounded polling limit (${r}).`);this.name="WorkflowRunPollingLimitError",this.operation=e,this.polls=r}}class yn extends Error{limit;constructor(e){super(`Workflow run watch exceeded the JSON capture limit (${e} events); use --jsonl to stream bounded-memory output.`);this.name="WorkflowRunCaptureLimitError",this.limit=e}}class In extends Error{keys;constructor(e){super(`Published pull would overwrite local files for: ${e.join(", ")}.`);this.name="PublishedPullRefusedError",this.keys=e}}import{setTimeout as T1}from"node:timers/promises";import{randomUUID as j1}from"node:crypto";var P1=/^[a-z][a-z0-9-]{0,39}$/u;function uo(e){if(!P1.test(e.operation))throw TypeError("The idempotency operation must be a lowercase dash-separated name.");let r=Lr(ie({operation:e.operation,origin:e.origin,payload:e.payload,spaceId:e.spaceId,workflowKey:e.workflowKey}));return`action-cli-${e.operation}-${r}`}function Hp(e){return uo({...e,payload:{invocationId:j1(),value:e.payload}})}function xp(e){return{api:e.api,context:Ur(e.context),projectRoot:e.projectRoot}}function gn(e,r,t,n){return uo({operation:r,origin:e.context.origin,payload:n,spaceId:e.context.spaceId,workflowKey:t})}function qn(e,r,t,n){return Hp({operation:r,origin:e.context.origin,payload:n,spaceId:e.context.spaceId,workflowKey:t})}async function lo(e){let r=await he(e.projectRoot);if(!r)throw new H("project","lockfile");return Xe(r,e.context),r}async function wn(e,r){pe(r);let n=(await e.api.listWorkflows({spaceId:e.context.spaceId})).find((i)=>i.key===r&&!i.archivedAt);if(!n)throw new H(r,"remote");return n.id}async function co(e,r){pe(r);let t=await lo(e),n=x(t,r);if(!n)throw new H(r,"tracked");return n}var _p=25,V1=100,N1=1440,D1=1440,E1=1e4,M1=1e4,G1=new Set(["succeeded","failed","cancelled"]);function mo(e){return G1.has(e.status)}function ef(e){let r=e??M1;if(!Number.isInteger(r)||r<0)throw TypeError("requestIntervalMs must be a non-negative integer.");return r}async function rf(e,r){if(e<=0)return!r?.aborted;try{return await T1(e,void 0,r?{signal:r}:void 0),!0}catch(t){if(r?.aborted)return!1;throw t}}async function tf(e,r,t,n){if(n?.aborted)return!1;if(e===null||r===0)return!0;let i=r-(Date.now()-e);return i<=0?!0:await t(i,n)}async function nf(e,r,t){let n=await wn(e,r);return await e.api.createWorkflowRun({input:t,spaceId:e.context.spaceId,workflowId:n},{idempotencyKey:qn(e,"run",r,{input:t})})}async function af(e,r={}){let t=r.workflowKey?await wn(e,r.workflowKey):void 0;return await e.api.listWorkflowRuns({spaceId:e.context.spaceId,...r.status?{status:r.status}:{},...t?{workflowId:t}:{}},{...r.cursor?{cursor:r.cursor}:{},...r.pageSize?{pageSize:r.pageSize}:{}})}async function po(e,r,t={}){return await e.api.getWorkflowRun({runId:r,spaceId:e.context.spaceId},t.abortSignal?{abortSignal:t.abortSignal}:{})}async function sf(e,r,t={}){let n=r,i=t.maxPolls??N1,a=ef(t.requestIntervalMs),s=t.requestDelay??rf,o=null;for(let u=0;u<i&&!mo(n);u+=1){if(!await tf(o,a,s,t.signal))return n;o=Date.now();try{n=await e.api.waitForWorkflowRun({runId:n.id,spaceId:e.context.spaceId,timeoutSeconds:_p},t.signal?{abortSignal:t.signal}:{})}catch(l){if(t.signal?.aborted)return n;throw l}}if(!mo(n)&&!t.signal?.aborted)throw new pt("wait",i);return n}function U1(e,r){return e.nextCursor??e.data.at(-1)?.cursor??r}async function of(e,r){let t=r.maxPages??D1,n=r.maxCapturedEvents??E1,i=r.captureEvents??!0,a=ef(r.requestIntervalMs),s=r.requestDelay??rf;if(!Number.isInteger(n)||n<1)throw TypeError("maxCapturedEvents must be a positive integer.");let o=[],u=0,l=new Set,d=new Set(r.cursor?[r.cursor]:[]),c=r.cursor;if(r.signal?.aborted)throw new DOMException("The Action API request was cancelled.","AbortError");let p=await po(e,r.runId,{...r.signal?{abortSignal:r.signal}:{}}),h=null;for(let f=0;f<t;f+=1){if(!await tf(h,a,s,r.signal))return{eventCount:u,events:o,nextCursor:c??null,run:p,stopped:!0};h=Date.now();let m;try{m=await e.api.listWorkflowRunEvents({...c?{cursor:c}:{},pageSize:V1,runId:r.runId,spaceId:e.context.spaceId,waitSeconds:_p},r.signal?{abortSignal:r.signal}:{})}catch(w){if(r.signal?.aborted)return{eventCount:u,events:o,nextCursor:c??null,run:p,stopped:!0};throw w}p=m.run;for(let w of m.data){if(l.has(w.id))continue;if(l.add(w.id),u+=1,i){if(o.length>=n)throw new yn(n);o.push(w)}await r.onEvent?.(w)}let y=U1(m,c);if(y&&y!==c){if(d.has(y))throw We("The Action API repeated a workflow-run event cursor.");d.add(y),c=y}let I=m.nextCursor===null;if(mo(p)&&I)return{eventCount:u,events:o,nextCursor:c??null,run:p,stopped:!1}}throw new pt("watch",t)}async function uf(e,r){return await e.api.cancelWorkflowRun({runId:r,spaceId:e.context.spaceId},{idempotencyKey:gn(e,"run-cancel",r,{runId:r})})}function bn(e){if(e===void 0)return null;let r=new Set;for(let t of e)pe(t),r.add(t);return r}function An(e,r){let t=bn(r);if(t){for(let n of t)if(!e.has(n))throw new H(n,"local")}return[...e.entries()].filter(([n])=>t?.has(n)??!0).sort(([n],[i])=>B(n,i))}function lf(e,r){return[...new Set([...e.keys(),...Object.keys(r?.workflows??{})])].sort(B).map((n)=>{let i=x(r,n)??null,a=e.get(n)??null,s=i?a?.contentDigest!==i.contentDigest:Boolean(a);return{baseDigest:i?.contentDigest??null,baseRevisionId:i?.latestRevisionId??null,key:n,localDigest:a?.contentDigest??null,localModified:s,remoteDigest:i?.contentDigest??null,remoteModified:!1,remoteRevisionId:i?.latestRevisionId??null,status:!i?"new":!a?"missing":s?"local_changes":"clean"}})}function fo(e,r){return e.map((t)=>{let n=x(r,t.manifest.key),i=n?.mutableLabels!==void 0&&n.mutableLabels.name===t.manifest.name&&n.mutableLabels.description===(t.manifest.description??null);if(!(n?.workflowId===t.workflowId&&(n.draftGeneration??0)===t.draftGeneration&&n.latestRevisionId===t.latestRevisionId&&n.remoteContentDigest!==void 0&&n.remoteContentDigest===t.remoteContentDigest&&i))return t;return{...t,contentDigest:n.contentDigest}})}function df(e){let r={...e};return delete r.pendingPublication,r}function J1(e){return e instanceof K&&e.status!==null&&!e.retryable}function cf(e,r){return r===e.latestRevisionId?e.draftGeneration??0:0}function Ji(e,r){return`${r}:${cf(e,r)}`}async function mf(e,r={}){return await mn(e.projectRoot,async()=>{await Ni(e.projectRoot);let t=await Nr(e.projectRoot),n=An(t,r.keys),i=new Map(n.map(([l,d])=>[l,fn(d)])),a=await he(e.projectRoot)??Jr(e.context);Xe(a,e.context);let s={failures:[],items:[],skipped:[],validationFailures:[]},o=async(l)=>{try{return await e.api.validateWorkflowRevision({revisionId:l.revisionId,spaceId:e.context.spaceId,workflowId:l.workflowId})}catch(d){return s.validationFailures.push({error:d,...l}),null}},u=async(l,d)=>{let c=x(a,l);if(!c||c.latestRevisionId!==d)throw Error(`Cannot record validation for stale workflow revision ${d}.`);a={...a,workflows:{...a.workflows,[l]:{...c,validatedRevisionId:d}}},await er(e.projectRoot,a)};for(let[l,d]of n){let c=x(a,l);if(c?.contentDigest===d.contentDigest){if(c.validatedRevisionId===c.latestRevisionId){s.skipped.push(l);continue}let p=await o({key:l,revisionId:c.latestRevisionId,workflowId:c.workflowId});if(!p)continue;if(p.ok){await u(l,c.latestRevisionId),s.skipped.push(l);continue}s.items.push({created:!1,key:l,revisionId:c.latestRevisionId,validation:p,workflowId:c.workflowId});continue}try{let p=i.get(l);if(!p)throw Error(`Missing validated payload for ${l}.`);let h=gn(e,c?"update":"create",l,{baseDraftGeneration:c?.draftGeneration??null,baseRevisionId:c?.latestRevisionId??null,contentDigest:d.contentDigest,workflowId:c?.workflowId??null}),f=c?await e.api.updateWorkflow({...p,baseRevisionId:c.latestRevisionId,ifMatch:Ji(c,c.latestRevisionId),spaceId:e.context.spaceId,workflowId:c.workflowId},{idempotencyKey:h}):await e.api.createWorkflow({...p,key:l,spaceId:e.context.spaceId},{idempotencyKey:h}),m=pr(f.workflow,f.revision);a={...a,workflows:{...a.workflows,[l]:{contentDigest:d.contentDigest,draftGeneration:m.draftGeneration,latestRevisionId:m.latestRevisionId,mutableLabels:{description:m.manifest.description??null,name:m.manifest.name},...c?.pendingPublication&&m.publishedRevisionId!==c.pendingPublication.revisionId?{pendingPublication:c.pendingPublication}:{},publishedRevisionId:m.publishedRevisionId,remoteContentDigest:f.revision.contentDigest,sourceDigest:d.sourceDigest,workflowId:m.workflowId}}},await er(e.projectRoot,a);let y=await o({key:l,revisionId:f.revision.id,workflowId:f.workflow.id});if(!y)continue;if(y.ok)await u(l,f.revision.id);s.items.push({created:!c,key:l,revisionId:f.revision.id,validation:y,workflowId:f.workflow.id})}catch(p){s.failures.push({error:p,key:l})}}return s})}async function pf(e,r,t,n){let i=await co(e,r),a=n??i.latestRevisionId,s=cf(i,a);return await e.api.testWorkflowRevision({ifMatch:Ji(i,a),input:t,revisionId:a,spaceId:e.context.spaceId,workflowId:i.workflowId},{idempotencyKey:qn(e,"test",r,{draftGeneration:s,input:t,revisionId:a,workflowId:i.workflowId})})}async function ff(e,r,t){return await mn(e.projectRoot,async()=>{let n=await lo(e),i=x(n,r);if(!i)throw new H(r,"tracked");let a=t??i.latestRevisionId;if(!a)throw new hn(r,"base");let s=i.pendingPublication?.revisionId===a?i.pendingPublication.idempotencyKey:qn(e,"publish",r,{draftGeneration:i.draftGeneration??0,revisionId:a,workflowId:i.workflowId}),o={...i,pendingPublication:{idempotencyKey:s,revisionId:a}},u={...n,workflows:{...n.workflows,[r]:o}};await er(e.projectRoot,u);let l;try{l=await e.api.publishWorkflowRevision({ifMatch:Ji(i,a),revisionId:a,spaceId:e.context.spaceId,workflowId:i.workflowId},{idempotencyKey:s})}catch(d){if(J1(d))await er(e.projectRoot,{...u,workflows:{...u.workflows,[r]:df(o)}});throw d}return await er(e.projectRoot,{...u,workflows:{...u.workflows,[r]:{...df(o),draftGeneration:l.draftGeneration??0,publishedRevisionId:l.revisionId}}}),l})}async function hf(e,r){let t=await co(e,r);return await e.api.archiveWorkflow({ifMatch:Ji(t,t.latestRevisionId),spaceId:e.context.spaceId,workflowId:t.workflowId},{idempotencyKey:gn(e,"archive",r,{draftGeneration:t.draftGeneration??0,revisionId:t.latestRevisionId,workflowId:t.workflowId})})}async function yf(e,r){return await e.api.listWorkflowRevisions({spaceId:e.context.spaceId,workflowId:await wn(e,r)})}var ft=8;async function ht(e,r,t){if(!Number.isInteger(r)||r<1)throw TypeError("concurrency must be a positive integer");let n=Array(e.length),i=0,a=async()=>{while(i<e.length){let s=i;i+=1,n[s]=await t(e[s],s)}};return await Promise.all(Array.from({length:Math.min(r,e.length)},async()=>a())),n}async function If(e,r){return await e.api.listWorkflowCapabilities(e.context.spaceId,{...r?{query:r}:{}})}async function Cn(e,r={}){return await e.api.listWorkflows({...r.includeArchived!==void 0?{includeArchived:r.includeArchived}:{},spaceId:e.context.spaceId})}function ho(e,r){let t=bn(r);if(t){let n=new Set(e.map((i)=>i.key));for(let i of t)if(!n.has(i))throw new H(i,"remote")}return e.filter((n)=>t?.has(n.key)??!0).sort((n,i)=>B(n.key,i.key))}async function yo(e,r){let t=await Cn(e,{...r.includeArchived!==void 0?{includeArchived:r.includeArchived}:{}}),n=bn(r.archivedKeys),i=bn(r.keys),a=n?t.filter((o)=>o.archivedAt===null||n.has(o.key)):t,s=r.allowMissingKeys?a.filter((o)=>i?.has(o.key)??!0).sort((o,u)=>B(o.key,u.key)):ho(a,r.keys);return await ht(s,ft,async(o)=>pr(o,await e.api.getWorkflowRevision({revisionId:o.latestRevisionId,spaceId:e.context.spaceId,workflowId:o.id})))}async function gf(e,r={}){let[t,n]=await Promise.all([Nr(e.projectRoot),he(e.projectRoot)]),i=[...new Set([...t.keys(),...Object.keys(n?.workflows??{}),...r.keys??[]])],a=await yo(e,{allowMissingKeys:!0,archivedKeys:i,includeArchived:!0,...r.keys?{keys:r.keys}:{}});if(r.keys){let u=new Set([...t.keys(),...Object.keys(n?.workflows??{}),...a.map((l)=>l.manifest.key)]);for(let l of r.keys)if(!u.has(l))throw new H(l,"available")}let s=fo(a,n),o=Yp({context:e.context,...r.keys?{keys:r.keys}:{},local:t,lockfile:n,...r.force!==void 0?{overwriteDiverged:r.force}:{},remote:s});return await Zp(e.projectRoot,o),o}async function qf(e,r){let t=ho(await Cn(e),r.keys),n=t.filter((l)=>l.publishedRevisionId===null).map((l)=>l.key),i=t.filter((l)=>l.publishedRevisionId!==null),a=await ht(i,ft,async(l)=>pr(l,await e.api.getWorkflowRevision({revisionId:l.publishedRevisionId,spaceId:e.context.spaceId,workflowId:l.id}),{mutableLabels:"omit"})),s=await ht(a,ft,async(l)=>({local:await Vr(r.outputRoot,l.manifest.key),snapshot:l})),o=s.filter(({local:l,snapshot:d})=>l!==null&&l.contentDigest!==d.contentDigest&&!r.force).map(({snapshot:l})=>l.manifest.key);if(o.length>0)throw new In(o);let u=[];for(let{local:l,snapshot:d}of s){if(l?.contentDigest===d.contentDigest)continue;await Di(r.outputRoot,d.manifest,d.source),u.push(d.manifest.key)}return{skippedUnpublished:n,workflows:a,written:u}}async function wf(e,r={}){let[t,n]=await Promise.all([Nr(e.projectRoot),he(e.projectRoot)]);if(n)Xe(n,e.context);if(r.offline)return lf(t,n);let i=fo(await yo(e,{archivedKeys:[...t.keys(),...Object.keys(n?.workflows??{})],includeArchived:!0}),n),a=new Map(i.map((o)=>[o.manifest.key,o]));return[...new Set([...t.keys(),...a.keys(),...Object.keys(n?.workflows??{})])].sort(B).flatMap((o)=>{let u=Mi({base:x(n,o)??null,key:o,local:t.get(o)??null,remote:a.get(o)??null});return u?[u]:[]})}async function bf(e,r){pe(r);let[t,n]=await Promise.all([Vr(e,r),he(e)]),i=x(n,r);if(!i&&!t)throw new H(r,"local");if(!i)return{baseRevisionId:null,diff:Zn({after:t,before:null,key:r}),key:r};if(t?.contentDigest===i.contentDigest)return{baseRevisionId:i.latestRevisionId,diff:"",key:r};return}async function Af(e,r){return[...An(await Nr(e),r)].map(([n,i])=>{return fn(i),{key:n,localValid:!0}})}async function Cf(e,r){pe(r);let[t,n]=await Promise.all([Vr(e.projectRoot,r),he(e.projectRoot)]);if(n)Xe(n,e.context);let i=x(n,r);if(!i&&!t)throw new H(r,"local");if(!i)return{baseRevisionId:null,diff:Zn({after:t,before:null,key:r}),key:r};if(t?.contentDigest===i.contentDigest)return{baseRevisionId:i.latestRevisionId,diff:"",key:r};let[a,s]=await Promise.all([e.api.getWorkflow({spaceId:e.context.spaceId,workflowId:i.workflowId}),e.api.getWorkflowRevision({revisionId:i.latestRevisionId,spaceId:e.context.spaceId,workflowId:i.workflowId})]),o=i.mutableLabels?pr({...a,description:i.mutableLabels.description,name:i.mutableLabels.name},s):pr(a,s,{mutableLabels:"omit"}),{description:u,outputs:l,...d}=o.manifest,c={...o,manifest:{...d,...u!==void 0&&(u!==null||t?.manifest.description!==void 0)?{description:u}:{},...l!==void 0&&(l!==null||t?.manifest.outputs!==void 0)?{outputs:l}:{}}};return{baseRevisionId:i.latestRevisionId,diff:Zn({after:t,before:c,key:r}),key:r}}async function kf(e,r={}){let[t,n]=await Promise.all([Nr(e.projectRoot),he(e.projectRoot)]);if(n)Xe(n,e.context);let i=An(t,r.keys);for(let[,a]of i)fn(a);return await ht(i,ft,async([a,s])=>{if(!r.remote)return{key:a,localValid:!0};let o=x(n,a);if(!o)return{key:a,localValid:!0,remote:{reason:"not-pushed",state:"skipped"}};if(s.contentDigest!==o.contentDigest)return{key:a,localValid:!0,remote:{reason:"locally-modified",state:"skipped"}};return{key:a,localValid:!0,remote:{result:await e.api.validateWorkflowRevision({revisionId:o.latestRevisionId,spaceId:e.context.spaceId,workflowId:o.workflowId}),revisionId:o.latestRevisionId,state:"validated"}}})}class Io{scope;constructor(e){this.scope=xp(e)}async list(e={}){return await Cn(this.scope,e)}async capabilities(e){return await If(this.scope,e)}async pull(e={}){return await gf(this.scope,e)}async pullPublished(e){return await qf(this.scope,e)}async status(e={}){return await wf(this.scope,e)}async diff(e){return await Cf(this.scope,e)}async validate(e={}){return await kf(this.scope,e)}async push(e={}){return await mf(this.scope,e)}async test(e,r,t){return await pf(this.scope,e,r,t)}async run(e,r){return await nf(this.scope,e,r)}async runs(e={}){return await af(this.scope,e)}async getRun(e){return await po(this.scope,e)}async waitForRun(e,r={}){return await sf(this.scope,e,r)}async watchRun(e){return await of(this.scope,e)}async cancelRun(e){return await uf(this.scope,e)}async publish(e,r){return await ff(this.scope,e,r)}async archive(e){return await hf(this.scope,e)}async revisions(e){return await yf(this.scope,e)}}var F1=new Set(["authentication_required","invalid_credential"]),K1=new Set(["conflict","idempotency_mismatch","operation_in_progress","stale_revision"]),B1=new Set(["content_too_large","invalid_request","unsupported_media_type"]);function Y1(e){if(e===401)return R.authentication;if(e===404)return R.notFound;if(e===409)return R.conflict;if(e===400||e===413||e===415||e===422)return R.validation;return R.remote}function go(e,r){e=bt(e);let t=e.indexOf("--format"),i=(t>=0?e[t+1]:e.find((a)=>a.startsWith("--format="))?.slice(9))??r.defaultOutputFormat;if(i!==void 0)return i==="json";if(!wo(e))return!process.stdout.isTTY;return e.includes("--json")}function Z1(e){let r=R.remote;if(F1.has(e.code))r=R.authentication;else if(e.code==="not_found")r=R.notFound;else if(K1.has(e.code))r=R.conflict;else if(B1.has(e.code))r=R.validation;else if(e.code==="api_error")r=Y1(e.status);return new L(e.code,e.message,{cause:e,details:{...e.correlationId?{correlationId:e.correlationId}:{},...e.details?{fields:e.details}:{},retryable:e.retryable,...e.status!==null?{status:e.status}:{}},exitCode:r})}function Rf(e){if(e instanceof L)return e;if(e instanceof Ae){let t=e.envelope;return new L(typeof t?.error?.code==="string"?t.error.code:"api_error",t?.error?.message??e.message,{details:{response:e.envelope},exitCode:e.exitCode})}if(e instanceof K)return Z1(e);if(Ar(e))return new L("authentication_failed",e.message,{cause:e,exitCode:R.authentication});if(e instanceof Vi)return new L("project_not_found",e.message,{cause:e,exitCode:R.notFound});if(e instanceof H||e instanceof hn)return new L("workflow_not_found",e.message,{cause:e,exitCode:R.notFound});if(e instanceof pt)return new L("polling_limit_exceeded",e.message,{cause:e,details:{operation:e.operation,polls:e.polls},exitCode:R.remote});if(e instanceof yn)return new L("capture_limit_exceeded",e.message,{cause:e,details:{limit:e.limit},exitCode:R.remote});if(e instanceof S)return new L("profile_error",e.message,{cause:e,exitCode:R.usage});if(e instanceof D)return new L("validation_failed",e.message,{cause:e,exitCode:R.validation});if(e instanceof Gr||e instanceof Ei||e instanceof In||e instanceof pn||e instanceof Ui)return new L("workflow_conflict",e.message,{cause:e,exitCode:R.conflict});let r=e;if(r?.code==="partial_failure"||r?.name==="WorkflowPartialFailureError"){let t=ia(e);return new L("partial_failure",t.message,{cause:e,details:t.details,exitCode:R.partial})}return ia(e)}function yr(e){let r=new zn;r.name("action").description("Operate Action headlessly from a terminal or coding agent").version(ne).option("--profile <name>","use a named CLI profile").option("--api-url <url>","override the selected profile's Action API URL").option("--space <id-or-key>","override the active space for this command").option("--organization <id>","use the authenticated organization without selecting a space").addOption(new Wn("--format <format>","output format").choices(["json","text","table"]).default(e.defaultOutputFormat)).option("--schema","show command schema without authenticating").option("--json","emit one stable JSON result",!1).option("--non-interactive","disable prompts and browser-dependent choices",!1).showSuggestionAfterError(!0).allowExcessArguments(!1).exitOverride().configureOutput({outputError:()=>{return},writeErr:()=>{return},writeOut:(n)=>(e.stdout??process.stdout).write(n)});let t=(n)=>Jn({json:n.optsWithGlobals().json===!0||n.optsWithGlobals().format==="json",...e.stderr?{stderr:e.stderr}:{},...e.stdout?{stdout:e.stdout}:{}});return La(r,e,t),Xa(r,e,t),Oa(r,e,t),ja(r,e,t),r}var Lf=new Set(["--profile","--api-url","--space","--organization","--format","--base-url"]);function qo(e,r){let t=e;for(let n=0;n<r.length;n++){let i=r[n];if(Lf.has(i)){n++;continue}if(i.startsWith("-"))continue;let a=t.commands.find((s)=>s.name()===i||s.aliases().includes(i));if(!a)break;t=a}return t}function Q1(e){let r=[];for(let t=e;t;t=t.parent)r.unshift(t.name());return r.join(" ")}function wo(e){for(let r=0;r<e.length;r++){let t=e[r];if(Lf.has(t)){r++;continue}if(t.startsWith("-"))continue;return["auth","context","workflow-project","skill-project"].includes(t==="help"?e[r+1]??"":t)}return!1}async function bo(e,r){let t=yr(r);try{if(wo(e)){let n=bt(e),i=n.indexOf("--format"),a=(i>=0?n[i+1]:n.find((s)=>s.startsWith("--format="))?.slice(9))??r.defaultOutputFormat;if(a!==void 0&&!["json","text","table"].includes(a))throw new L("usage_error","Local command output supports json, text, or table. Set --format explicitly or correct ACTION_OUTPUT / ACTION_API_OUTPUT.",{exitCode:R.usage})}if(r.runGenerated&&!wo(e))return await r.runGenerated(e.length?e:["--help"]);if(e.includes("--schema"))return(r.stdout??process.stdout).write(`${JSON.stringify(Ee(qo(t,e)),null,2)}
|
|
226
|
+
`),R.success;return await t.parseAsync([...e],{from:"user"}),R.success}catch(n){if(tr.aborted)return R.success;if(n instanceof On){if(n.exitCode===R.success)return R.success;if(n.code==="commander.help"&&!go(e,r))return(r.stdout??process.stdout).write(qo(t,e).helpInformation()),R.success;return Jn({json:go(e,r),...r.stderr?{stderr:r.stderr}:{},...r.stdout?{stdout:r.stdout}:{}}).error(new L("usage_error",n.code==="commander.help"?`No command given. Run \`${Q1(qo(t,e))} --help\` to list commands.`:n.message.replace(/^error:\s*/u,""),{exitCode:R.usage})),R.usage}let i=Rf(n);return Jn({json:go(e,r),...r.stderr?{stderr:r.stderr}:{},...r.stdout?{stdout:r.stdout}:{}}).error(i),i.exitCode}}import{spawn as n$}from"node:child_process";import{createInterface as Zh}from"node:readline/promises";function vf(e){return e.length>0?e.join(`
|
|
227
|
+
`):"No results."}function $f(e,r){return{async profiles(){let t=e.profileName(),n=e.profileStore.list().map(({name:i,apiUrl:a,organization:s,space:o})=>({name:i,apiUrl:a,organization:s,space:o,selected:i===t}));return{value:{profiles:n},human:n.length?n.map((i)=>`${i.selected?"*":" "} ${i.name}: ${i.apiUrl} — ${i.space?.name??i.space?.id??"no space selected"}`).join(`
|
|
228
|
+
`):"No saved profiles. Run action auth login."}},async login(t={}){if(e.globals.json||e.globals.nonInteractive)throw new L("usage_error","Human login requires interactive mode.",{exitCode:R.usage});let n=await e.humanAuthProfile(),i={},a=await Aa({apiOrigin:n.apiUrl,clientId:n.auth.clientId,credentialStore:e.credentialStore(),...r.fetch?{fetch:r.fetch}:{},finalizeSession:async(o)=>{let u=await Ia({apiOrigin:n.apiUrl,...r.fetch?{fetch:r.fetch}:{},...t.organization?{organization:t.organization}:{},profile:{apiOrigin:n.apiUrl,clientId:n.auth.clientId,issuer:n.auth.issuer},...r.selectOrganization?{selectOrganization:r.selectOrganization}:{},session:o});return i.organization=u.organization,u.session},issuer:n.auth.issuer,lockDirectory:e.profileStore.paths.configDir,onVerification:(o)=>{r.reporter.info(`Open ${o.verificationUri} and enter code ${o.userCode}.`)},...r.openBrowser?{openBrowser:r.openBrowser}:{},profileName:n.name}),s=i.organization;if(!s)throw Error("Action organization selection did not complete.");return e.profileStore.upsert(n.name,{...n,organization:{id:s.id,name:s.name},space:null},!0),{human:`Signed in to ${s.name} for profile ${n.name}.`,value:{authenticated:!0,expiresAt:new Date(a.expiresAt).toISOString(),organization:{id:s.id,key:s.key,name:s.name},profile:n.name}}},async logout(){let t=e.profileName();await fa(e.credentialStore(),e.profileStore.paths.configDir,t);let n=Boolean(e.env.ACTION_TOKEN?.trim()||e.env.ACTION_API_KEY?.trim());return{human:n?`Removed the stored session for ${t}; an environment credential is still active.`:`Signed out of profile ${t}.`,value:{environmentCredential:n,profile:t,signedOut:!0}}},async status(){let t=e.profileName();if(e.env.ACTION_TOKEN?.trim())return{human:"Authenticated with ACTION_TOKEN.",value:{authenticated:!0,profile:t,source:"environment_token"}};if(e.env.ACTION_API_KEY?.trim())return{human:"Authenticated with ACTION_API_KEY.",value:{authenticated:!0,profile:t,source:"environment_api_key"}};let n={authenticated:!1};if(e.selectedProfile(!1))try{await e.credential(),n=await ha(e.credentialStore(),t)}catch(i){if(!(i instanceof ze)&&!(i instanceof Ie))throw i}return n.authenticated?{human:`Authenticated with a stored human session for ${t}.`,value:{authenticated:!0,expiresAt:new Date(n.expiresAt).toISOString(),organizationId:n.organizationId,profile:t,source:"human_session"}}:{human:`Not authenticated for profile ${t}.`,value:{authenticated:!1,profile:t}}}}}function Sf(e){return{async list(){let r=await e.identity().listSpaces(),t=e.globals.space??e.env.ACTION_SPACE_ID?.trim()??e.selectedProfile(!1)?.space?.id??null,n={spaces:r.map((i)=>({active:i.id===t||i.key===t,id:i.id,key:i.key,name:i.name,organizationId:i.organizationId}))};return{human:vf(n.spaces.map((i)=>`${i.active?"*":" "} ${i.key} ${i.name} ${i.id}`)),value:n}},async show(){let r=e.selectedProfile(!1),t={apiUrl:e.apiUrl(),organization:r?.organization??null,profile:r?.name??e.profileName(),space:e.globals.space?{id:e.globals.space,override:!0}:r?.space??null};return{human:vf([`Profile: ${t.profile}`,`API: ${t.apiUrl}`,`Organization: ${t.organization?.name??t.organization?.id??"not selected"}`,`Space: ${t.space?.id??"not selected"}`]),value:t}},async use(r){let t=e.selectedProfile(),n=await e.remoteSelection(r),i=e.profileStore.selectContext(t.name,n.organization,n.space);return{human:`Using ${n.space.name} (${n.space.key}) for profile ${t.name}.`,value:{organization:i.organization,profile:t.name,space:{id:n.space.id,key:n.space.key,name:n.space.name}}}}}}import{resolve as H1}from"node:path";function Ao(e){let r=Ot(e);return{getCurrentPrincipal:async(t={})=>await r.getIdentity(t),listSpaces:async(t={})=>await r.listSpaces(t)}}var x1="https://backend.action.so",_1="https://api.workos.com",eL={clientId:"machine-credential",issuer:"https://api.workos.com"},rL={delete:async()=>{return},get:async()=>null,set:async()=>{return}};function J(e){return e?.trim()||null}function Co(e){let r;try{r=wr(e)}catch(i){throw new S(i instanceof Error?i.message:"The Action API URL is invalid.")}let t=new URL(r),n=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol!=="https:"&&!(t.protocol==="http:"&&n))throw new S("The Action API URL must use HTTPS outside local development.");return r}class kn{env;globals;profileStore;cwdProvider;fetcher;credentialStoreValue;apiValue;generatedBinaryPath;identityValue;publicClientOptionsValue;actionCorrelationIdValue;constructor(e){let r=e.env??process.env;this.env={...r,ACTION_TOKEN:J(r.ACTION_TOKEN)??(J(r.ACTION_API_KEY)?void 0:J(r.ACTION_API_TOKEN))??void 0},this.globals=e.globals,this.generatedBinaryPath=e.generatedBinaryPath,this.profileStore=e.profileStore??new Gn,this.cwdProvider=e.cwd??process.cwd,this.fetcher=e.fetch,this.credentialStoreValue=e.credentialStore}cwd(){return this.cwdProvider()}apiUrl(e){return Co(this.globals.apiUrl??J(this.env.ACTION_API_URL)??J(this.env.ACTION_API_BASE_URL)??this.selectedProfile(!1)?.apiUrl??e??x1)}profileName(){return this.globals.profile??J(this.env.ACTION_PROFILE)??this.profileStore.currentName()??"default"}selectedProfile(e=!0){let r=this.globals.profile??J(this.env.ACTION_PROFILE)??this.profileStore.currentName();if(!r){if(e)throw new S("No Action CLI profile is selected.");return null}let t=this.profileStore.list().find((n)=>n.name===r)??null;if(!t&&e)throw new S(`Action CLI profile "${r}" does not exist.`);return t}async humanAuthProfile(){let e=this.selectedProfile(!1);if(e){if(Co(e.apiUrl)!==this.apiUrl())throw new S("Human login is bound to the selected profile's API URL. Use a matching profile before logging in.");return e}let r=J(this.env.ACTION_AUTHKIT_CLIENT_ID),t=r?null:await ya({apiOrigin:this.apiUrl(),...this.fetcher?{fetch:this.fetcher}:{}}),n=r??t?.clientId,i=J(this.env.ACTION_AUTHKIT_ISSUER)??t?.issuer??_1;if(!n)throw new S("Human login is not configured.");return this.profileStore.upsert(this.profileName(),{apiUrl:this.apiUrl(),auth:{clientId:n,issuer:i},organization:null,space:null},!0)}credentialStore(){return this.credentialStoreValue??=ba(),this.credentialStoreValue}requestFetcher(){return this.fetcher}async credential(){let e=this.selectedProfile(!1);return await this.credentialForProfile(e)}identity(){return this.identityValue??=Ao(this.publicClientOptions()),this.identityValue}async credentialForProfile(e,r=this.apiUrl()){let t=J(this.env.ACTION_TOKEN)??J(this.env.ACTION_API_KEY);if(!e&&!t)throw new ze;if(e&&!t&&Co(e.apiUrl)!==r)throw new ze("The stored human session is bound to the selected profile's API URL. Use a matching profile or set ACTION_TOKEN or ACTION_API_KEY for an API override.");return await pa({credentialStore:t?rL:this.credentialStore(),env:{ACTION_API_KEY:this.env.ACTION_API_KEY,ACTION_TOKEN:this.env.ACTION_TOKEN},...this.fetcher?{fetch:this.fetcher}:{},lockDirectory:this.profileStore.paths.configDir,profile:{apiOrigin:r,name:e?.name??this.profileName(),...e?.auth??eL}})}api(){return this.apiValue??=Ot(this.publicClientOptions()),this.apiValue}publicClientOptions(){if(this.publicClientOptionsValue)return this.publicClientOptionsValue;let e=this.apiUrl(),r=this.selectedProfile(!1);return this.publicClientOptionsValue={baseUrl:e,correlationIdProvider:()=>{return this.actionCorrelationIdValue??=crypto.randomUUID(),this.actionCorrelationIdValue},preserveError:(t)=>Ar(t)||t instanceof S,cwd:this.cwd(),env:this.env,...this.generatedBinaryPath?{binaryPath:this.generatedBinaryPath}:{},tokenProvider:async()=>{return(await this.credentialForProfile(r,e)).authorization.replace(/^Bearer\s+/u,"")},version:ne},this.publicClientOptionsValue}async projectRoot(){return await Jp(this.cwd())}async initializationContext(){let e=this.selectedProfile(!1),r=this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID),t=this.globals.space??J(this.env.ACTION_SPACE_ID);if(!r&&!t)return e?.organization&&e.space?{origin:this.apiUrl(),organizationId:e.organization.id,spaceId:e.space.id}:void 0;let n=t??e?.space?.id;if(!n)throw new S("ACTION_ORGANIZATION_ID requires --space or ACTION_SPACE_ID when initializing a project.");if(e?.organization&&e.space?.id===n&&(!r||r===e.organization.id))return{origin:this.apiUrl(),organizationId:e.organization.id,spaceId:e.space.id};let i=await this.remoteSelection(n);if(r&&i.organization.id!==r)throw new S(`Space "${n}" does not belong to organization ${r}.`);return{origin:this.apiUrl(),organizationId:i.organization.id,spaceId:i.space.id}}async spaceId(e){if(e)return e;let r=this.globals.space??J(this.env.ACTION_SPACE_ID);if(r){if(/^(?:ws_|space_|[0-9a-f]{8}-)/u.test(r))return r;return(await this.remoteSelection(r)).space.id}let t=this.selectedProfile(!1)?.space?.id;if(t)return t;return(await this.remoteSelection()).space.id}async organizationId(e){return e??this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID)??this.selectedProfile(!1)?.organization?.id??(await this.remoteOrganization()).id}async remoteSelection(e,r={}){let t=this.identity(),[n,i]=await Promise.all([t.getCurrentPrincipal(r),t.listSpaces(r)]),a=this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID);if(a&&n.organization.id!==a)throw new S("The requested organization does not match your current login.");let s=e??this.globals.space??J(this.env.ACTION_SPACE_ID)??this.selectedProfile(!1)?.space?.id??null,o=i.filter((l)=>l.organizationId===n.organization.id),u;if(s){if(u=o.find((l)=>l.id===s||l.key===s),!u)throw new S(`Space "${s}" is not available in organization ${n.organization.name}.`)}else if(o.length===1)u=o[0];else throw new S("Select a space with `action context use <space>` or pass --space.");if(!u)throw new S("No Action workflow space is available.");return{organization:n.organization,space:u}}async remoteOrganization(e={}){let r=await this.identity().getCurrentPrincipal(e),t=this.globals.organization??J(this.env.ACTION_ORGANIZATION_ID)??this.selectedProfile(!1)?.organization?.id;if(t&&t!==r.organization.id)throw new S(`Organization "${t}" does not match the authenticated organization. Log in to that organization first.`);return r.organization}async projectContext(e){let[r,t]=await Promise.all([he(e),Promise.resolve(this.selectedProfile(!1))]),n=this.globals.space??J(this.env.ACTION_SPACE_ID),i=t?.space?.id??r?.spaceId??null,a=n??i,s=this.globals.organization??t?.organization?.id??J(this.env.ACTION_ORGANIZATION_ID)??r?.organizationId??null,u=!n&&!t?.space&&a===r?.spaceId&&r?.organizationId!==s;if(a&&s&&(!this.globals.organization||this.globals.organization===t?.organization?.id)&&(!n||n===i)&&!u)return{origin:this.apiUrl(r?.origin),organizationId:s,spaceId:a};let l=await this.remoteSelection(a??void 0);return{origin:this.apiUrl(r?.origin),organizationId:l.organization.id,spaceId:l.space.id}}async workflowService(e={}){let r=e.projectRequired===!1?this.cwd():await this.projectRoot(),t=e.projectRequired===!1?await this.remoteSelection(void 0,{...e.abortSignal?{abortSignal:e.abortSignal}:{}}).then((n)=>({origin:this.apiUrl(),organizationId:n.organization.id,spaceId:n.space.id})):await this.projectContext(r);return new Io({api:this.api(),context:t,projectRoot:r})}resolveDirectory(e){return H1(this.cwd(),e??".")}}import{lstat as tL,mkdir as nL,open as iL,unlink as aL}from"node:fs/promises";import{join as Rn}from"node:path";async function Xf(e){let r=Rn(e,"workflows","example"),t=[Rn(r,"workflow.json"),Rn(r,"index.mjs")];for(let a of t){try{await tL(a)}catch(s){if(s.code==="ENOENT")continue;throw s}throw new L("scaffold_conflict",`Cannot initialize: ${a} already exists. Choose an empty directory.`,{exitCode:R.conflict})}await nL(r,{recursive:!0});let n=[],i=async(a,s)=>{let o=await iL(a,"wx");n.push(a);try{await o.writeFile(s)}finally{await o.close()}};try{let a={type:"object",properties:{},additionalProperties:!1};await i(Rn(r,"workflow.json"),JSON.stringify({$schema:gr,key:"example",name:"Example workflow",inputs:a},null,2)+`
|
|
229
|
+
`),await i(Rn(r,"index.mjs"),`import { workflow } from "@action/workflows";
|
|
230
230
|
|
|
231
231
|
export default workflow({
|
|
232
232
|
id: "example",
|
|
@@ -236,14 +236,14 @@ export default workflow({
|
|
|
236
236
|
capabilities: [],
|
|
237
237
|
run: async () => ({ ok: true }),
|
|
238
238
|
});
|
|
239
|
-
`)}catch(a){await Promise.all(n.map((o)=>
|
|
240
|
-
`):
|
|
241
|
-
${JSON.stringify(t.output,null,2)}`}async function G1(e){try{return await P1(e),!0}catch(t){if(t.code==="ENOENT")return!1;throw t}}function U1(e){if(e instanceof B)return{code:e.code,...e.correlationId?{correlationId:e.correlationId}:{},...e.details?{details:e.details}:{},message:e.message,retryable:e.retryable,...e.status!==null?{status:e.status}:{}};if(e instanceof v)return{code:e.code,...e.details!==void 0?{details:e.details}:{},message:e.message};if(wt(e))return{code:"authentication_failed",message:e instanceof Error?e.message:"Authentication failed.",retryable:!1};let t=e;return{code:typeof t?.code==="string"?t.code:"workflow_push_failed",message:typeof t?.message==="string"?t.message:"The workflow could not be pushed."}}function pf(e){let t=e;return{error:U1(e.error),key:e.key,...typeof t.revisionId==="string"?{revisionId:t.revisionId}:{},...typeof t.workflowId==="string"?{workflowId:t.workflowId}:{}}}function ff(e,t){return new v("validation_failed",e,{details:{workflows:t},exitCode:R.validation})}function hf(e){if(e.status!=="failed"&&e.status!=="cancelled")return;throw new v("workflow_run_failed",`Run ${e.id} finished with status ${e.status}.`,{details:{run:e},exitCode:R.remote})}class ho extends v{constructor(e){let t=e.failures.map(pf),r=e.validationFailures.map(pf),n=e.items.filter((s)=>!s.validation.ok),i=new Set([...e.skipped,...e.items.filter((s)=>s.validation.ok).map((s)=>s.key)]),a=new Set([...t.map((s)=>s.key),...r.map((s)=>s.key),...n.map((s)=>s.key)]);super("partial_failure",i.size>0?`Push completed for ${i.size} workflow(s); ${a.size} workflow(s) failed.`:`Push failed for ${a.size} workflow(s).`,{details:{failures:t,items:e.items,skipped:e.skipped,validationFailures:r},exitCode:R.partial});this.name="WorkflowPartialFailureError"}}async function fo(e){try{return await V1(e)}catch(t){if(t.code!=="ENOENT")throw t;let r=E1(e);return r===e?e:If(await fo(r),N1(e))}}function yf(e,t){let r=M1(e,t);return r===""||!r.startsWith("..")&&!D1(r)}async function J1(e,t){let r=await fo(ee(e).workflows),n=await fo(ee(t).workflows);if(yf(r,n)||yf(n,r))throw new v("workflow_conflict","Published inspection output must not overlap the active project's workflows directory.",{exitCode:R.conflict})}function gf(e){return{async init(t){let r=e.resolveDirectory(t.directory),n=If(r,"action.json");if(await G1(n))throw new v("project_exists",`An Action project already exists at ${r}.`,{exitCode:R.conflict});let i=await e.initializationContext();return await mf(r),await $p(r,i),{human:`Initialized an Action workflow project at ${r} with workflows/example. Run action workflow-project validate there.`,value:{contextConfigured:Boolean(i),projectRoot:r}}},async capabilities(t){let r=await(await e.workflowService({projectRequired:!1})).capabilities(t.application),n={applications:r,query:t.application??null};if(!t.application)return{human:Je(r.map((i)=>`${i.slug} ${i.displayName} ${i.connectionStatus}`),"No workflow applications found."),value:n};return{human:Je(r.flatMap((i)=>[`${i.slug} ${i.displayName} ${i.connectionStatus}`,...i.connectorInstances.map((a)=>`connection ${a.id} ${a.label??a.displayName}`),...i.actions.map((a)=>`action ${a.effect} ${a.name}`),...i.readActions.map((a)=>`read-action ${a.effect} ${a.name}`)]),"No matching workflow applications found."),value:n}},async list(t){let n={workflows:(await(await e.workflowService({projectRequired:!1})).list({includeArchived:t.includeArchived})).map((i)=>({archivedAt:i.archivedAt,hasUnpublishedChanges:i.hasUnpublishedChanges,id:i.id,key:i.key,latestRevisionId:i.latestRevisionId,name:i.name,publishedRevisionId:i.publishedRevisionId}))};return{human:Je(n.workflows.map((i)=>`${i.key} ${i.name} ${i.archivedAt?"archived":i.hasUnpublishedChanges?"draft":"published"}`)),value:n}},async pull(t){if(t.published){if(!t.outputDirectory)throw Error("Published pull requires an output directory.");let a=e.resolveDirectory(t.outputDirectory);await J1(await e.projectRoot(),a),await T1(a,{recursive:!0});let o=await(await e.workflowService()).pullPublished({force:t.force,...Mi(t.key),outputRoot:a}),u={outputRoot:a,skippedUnpublished:o.skippedUnpublished,workflows:o.workflows.map((l)=>({contentDigest:l.contentDigest,key:l.manifest.key,revisionId:l.latestRevisionId,workflowId:l.workflowId})),written:o.written};return{human:Je([...u.written.map((l)=>`pulled ${l}`),...u.skippedUnpublished.map((l)=>`skipped-unpublished ${l}`)],"Published workflows are already up to date."),value:u}}let n=await(await e.workflowService()).pull({force:t.force,...Mi(t.key)}),i={preserved:n.preserved,refusals:n.refusals,statuses:n.statuses,written:n.writes.map((a)=>a.key)};return{human:Je(i.written.map((a)=>`pulled ${a}`),"Workflows are up to date."),value:i}},async status(t){let r=await(await e.workflowService()).status({offline:t.offline});return{human:Je(r.map((n)=>`${n.status} ${n.key}`),"No local or remote workflows found."),value:{offline:t.offline,workflows:r}}},async diff(t){let r=await rf(await e.projectRoot(),t.key)??await(await e.workflowService()).diff(t.key);return{human:r.diff||`No changes for ${t.key}.`,value:r}},async validate(t){let r=t.remote?await(await e.workflowService()).validate({...Mi(t.key),remote:!0}):await nf(await e.projectRoot(),t.key?[t.key]:void 0),n=r.filter((i)=>i.remote?.state==="validated"&&!i.remote.result.ok);if(n.length>0)throw ff(`Remote validation failed for ${n.map((i)=>i.key).join(", ")}.`,n);return{human:Je(r.map((i)=>{return`${i.remote?i.remote.state==="validated"?i.remote.result.ok?"remote-valid":"remote-invalid":`remote-skipped:${i.remote.reason}`:"local-valid"} ${i.key}`})),value:{workflows:r}}},async push(t){let r=await(await e.workflowService()).push({...Mi(t.key)}),n=r.items.filter((l)=>!l.validation.ok),i=new Set([...r.failures.map((l)=>l.key),...r.validationFailures.map((l)=>l.key),...n.map((l)=>l.key)]),a=new Set([...r.skipped,...r.items.filter((l)=>l.validation.ok).map((l)=>l.key)]),s=r.failures.length>0||r.validationFailures.length>0;if(i.size>0&&(a.size>0||s&&i.size>1))throw new ho(r);let o=r.failures[0];if(o)throw o.error;let u=r.validationFailures[0];if(u)throw u.error;if(n.length>0)throw ff(`Workflow validation failed for ${n.map((l)=>l.key).join(", ")}.`,n);return{human:Je([...r.items.map((l)=>`${l.created?"created":"updated"} ${l.key}`),...r.skipped.map((l)=>`unchanged ${l}`)],"Workflows are already up to date."),value:{failures:[],skipped:r.skipped,workflows:r.items}}},async test(t){let r=await e.workflowService(),n=await r.test(t.key,t.input),i=t.wait?await r.waitForRun(n):n;if(t.wait)hf(i);return{human:t.wait?Gi(`Test run ${i.id} finished with status ${i.status}.`,i):`Started test run ${i.id} (${i.status}).`,value:{run:i,waited:t.wait}}},async run(t){let r=await e.workflowService({projectRequired:!1}),n=await r.run(t.key,t.input),i=t.wait?await r.waitForRun(n):n;if(t.wait)hf(i);return{human:t.wait?Gi(`Run ${i.id} finished with status ${i.status}.`,i):`Started production run ${i.id} (${i.status}).`,value:{run:i,waited:t.wait}}},async runsList(t){let r=await(await e.workflowService({projectRequired:!1})).runs({...t.cursor?{cursor:t.cursor}:{},...t.limit?{pageSize:t.limit}:{},...t.status?{status:t.status}:{},...t.workflowKey?{workflowKey:t.workflowKey}:{}});return{human:Je(r.data.map((n)=>`${n.id} ${n.status} ${n.workflowId} ${n.createdAt}`),"No workflow runs found."),value:{nextCursor:r.nextCursor,runs:r.data}}},async runGet(t){let r=await(await e.workflowService({projectRequired:!1})).getRun(t.runId);return{human:Gi(`${r.id} ${r.status} ${r.workflowId} ${r.updatedAt}`,r),value:{run:r}}},async runWatch(t){let r=await(await e.workflowService({...t.signal?{abortSignal:t.signal}:{},projectRequired:!1})).watchRun(t);return{human:r.stopped?`Stopped watching ${r.run.id}; the remote run was not cancelled.`:Gi(`Run ${r.run.id} finished with status ${r.run.status}.`,r.run),value:r}},async runCancel(t){let r=await(await e.workflowService({projectRequired:!1})).cancelRun(t.runId);return{human:`Cancellation requested for ${r.id} (${r.status}).`,value:{run:r}}},async publish(t){let r=await(await e.workflowService()).publish(t.key,t.revisionId);return{human:`Published ${t.key} at revision ${r.revisionId}.`,value:{key:t.key,publication:r}}},async archive(t){let r=await(await e.workflowService()).archive(t.key);return{human:`Archived ${t.key}.`,value:{workflow:{archivedAt:r.archivedAt,id:r.id,key:r.key,latestRevisionId:r.latestRevisionId}}}},async revisions(t){let r=await(await e.workflowService({projectRequired:!1})).revisions(t.key);return{human:Je(r.map((n)=>`${n.revisionNumber} ${n.status} ${n.id} ${n.contentDigest}`),`No revisions found for ${t.key}.`),value:{key:t.key,revisions:r}}}}}function qf(e){let t=async(r,n,i)=>{let a=(await e.remoteSelection()).space.id;try{let s=await Nt({operation:r,parameters:{...n,spaceId:a},...i===void 0?{}:{body:i},baseUrl:e.apiUrl(),tokenProvider:async()=>(await e.credential()).authorization,cwd:e.cwd(),env:e.env,...e.generatedBinaryPath?{binaryPath:e.generatedBinaryPath}:{}});return{value:s,human:()=>JSON.stringify(s,null,2)}}catch(s){throw tt(s)}};return{get:async(r)=>await t("skills.getSkill",r),getVersion:async(r)=>await t("skills.getSkillVersion",r),createVersion:async({skillId:r,body:n})=>await t("skills.createSkillVersion",{skillId:r},n),updateTags:async({skillId:r,...n})=>await t("skills.updateSkillTags",{skillId:r},n)}}var hh=Fi(ch(),1);var mh={operations:{"access.createPolicy":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","published"]},name:{type:"string"},description:{anyOf:[{type:"null"},{type:"string"}]},maxAccessMinutes:{anyOf:[{type:"null"},{type:"number"}]},recommendedAccessMinutes:{anyOf:[{type:"null"},{type:"number"}]},businessJustificationMode:{type:"string",enum:["not_required","required","advanced"]},requireBusinessJustification:{type:"boolean"},businessJustificationSpec:{anyOf:[{type:"null"},{type:"string"}]},businessJustificationApprovalMode:{type:"string",enum:["auto","escalate"]},businessJustificationRejectionMode:{type:"string",enum:["auto","escalate"]},allowSelfApproval:{type:"boolean"},notifyApproversViaSlack:{type:"boolean"},notifyApproversViaTeams:{type:"boolean"},slackNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},slackEscalationIntervalMinutes:{type:"number"},teamsNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},teamsEscalationIntervalMinutes:{type:"number"},approvalStages:{maxItems:20,type:"array",items:{type:"object",properties:{name:{type:"string"},approvalMode:{default:"any",type:"string",enum:["any","all"]},notificationConfig:{default:null,anyOf:[{type:"object",properties:{slack:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]},teams:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]}},required:["slack","teams"]},{type:"null"}]},approvers:{minItems:1,maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}}},required:["name","approvers"]}},approvers:{maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}},approverProvisioningImpactAcknowledged:{type:"boolean"}},required:["name"]},"access.createProfile":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","published"]},name:{type:"string"},description:{anyOf:[{type:"null"},{type:"string"}]},isDefault:{description:"Mark this profile as the space's default. At most one published profile per space can hold it. It labels the profile; it does not widen who matches, which matchingCriteria decides on its own.",type:"boolean"},matchingCriteria:{type:"object",properties:{matchType:{type:"string",enum:["any","all"]},includedGroupIds:{default:[],description:`People in these groups match this profile. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}},excludedGroupIds:{default:[],description:`People in these groups never match this profile, even if they also match an included group. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}}},required:["matchType"]},roleIds:{description:'The access roles people matching this profile can request. Look ids up with the access-roles "list" operation; each must be in this space and not archived. Draft roles are accepted, so a role can be attached before it is published.',maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},required:["name"]},"access.createRole":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","published"]},name:{type:"string"},description:{anyOf:[{type:"null"},{type:"string"}]},requestsEnabled:{type:"boolean"},connectorInstanceId:{description:"Application connection ID from applications list-applications. Required when creating an access role.",type:"string"},accessProfileId:{anyOf:[{type:"null"},{type:"string"}]},accessPolicyId:{anyOf:[{type:"null"},{type:"string"}]},provisioningMethodType:{anyOf:[{type:"string",enum:["manual","workflow","linkedGroup"]},{type:"null"}]},provisioningConfig:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},externalId:{anyOf:[{type:"null"},{type:"string"}]},externalData:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]}},required:["name","connectorInstanceId"]},"access.updatePolicy":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"},description:{anyOf:[{type:"null"},{type:"string"}]},maxAccessMinutes:{anyOf:[{type:"null"},{type:"number"}]},recommendedAccessMinutes:{anyOf:[{type:"null"},{type:"number"}]},businessJustificationMode:{type:"string",enum:["not_required","required","advanced"]},requireBusinessJustification:{type:"boolean"},businessJustificationSpec:{anyOf:[{type:"null"},{type:"string"}]},businessJustificationApprovalMode:{type:"string",enum:["auto","escalate"]},businessJustificationRejectionMode:{type:"string",enum:["auto","escalate"]},allowSelfApproval:{type:"boolean"},notifyApproversViaSlack:{type:"boolean"},notifyApproversViaTeams:{type:"boolean"},slackNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},slackEscalationIntervalMinutes:{type:"number"},teamsNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},teamsEscalationIntervalMinutes:{type:"number"},approvalStages:{maxItems:20,type:"array",items:{type:"object",properties:{name:{type:"string"},approvalMode:{default:"any",type:"string",enum:["any","all"]},notificationConfig:{default:null,anyOf:[{type:"object",properties:{slack:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]},teams:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]}},required:["slack","teams"]},{type:"null"}]},approvers:{minItems:1,maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}}},required:["name","approvers"]}},approvers:{maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}},approverProvisioningImpactAcknowledged:{type:"boolean"}},required:[]},"access.updateProfile":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{addExcludedGroupIds:{description:"Add excluded canonical groups atomically.",maxItems:100,type:"array",items:{type:"string",minLength:1}},removeExcludedGroupIds:{description:"Remove excluded canonical groups atomically.",maxItems:100,type:"array",items:{type:"string",minLength:1}},addGroupIds:{description:"Add included canonical groups atomically, preserving other groups.",maxItems:100,type:"array",items:{type:"string",minLength:1}},removeGroupIds:{description:"Remove included canonical groups atomically, preserving other groups.",maxItems:100,type:"array",items:{type:"string",minLength:1}},addRoleIds:{description:"Attach access roles atomically, preserving existing role assignments.",maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},removeRoleIds:{description:"Remove access roles atomically, preserving other assignments.",maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},name:{type:"string"},description:{anyOf:[{type:"null"},{type:"string"}]},isDefault:{description:"Mark this profile as the space's default. At most one published profile per space can hold it. It labels the profile; it does not widen who matches, which matchingCriteria decides on its own.",type:"boolean"},matchingCriteria:{type:"object",properties:{matchType:{type:"string",enum:["any","all"]},includedGroupIds:{default:[],description:`People in these groups match this profile. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}},excludedGroupIds:{default:[],description:`People in these groups never match this profile, even if they also match an included group. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}}},required:["matchType"]},roleIds:{description:'The access roles people matching this profile can request. Look ids up with the access-roles "list" operation; each must be in this space and not archived. Draft roles are accepted, so a role can be attached before it is published.',maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},required:[]},"access.updateRole":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"},description:{anyOf:[{type:"null"},{type:"string"}]},requestsEnabled:{type:"boolean"},connectorInstanceId:{anyOf:[{type:"null"},{type:"string"}]},accessProfileId:{anyOf:[{type:"null"},{type:"string"}]},accessPolicyId:{anyOf:[{type:"null"},{type:"string"}]},provisioningMethodType:{anyOf:[{type:"string",enum:["manual","workflow","linkedGroup"]},{type:"null"}]},provisioningConfig:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},externalId:{anyOf:[{type:"null"},{type:"string"}]},externalData:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]}},required:[]},"applications.confirmApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{connectionId:{type:"string"}},required:[]},"applications.connectApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{label:{type:"string"},connectionConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{}},generateSuggestions:{type:"boolean"}},required:[]},"applications.createCustomIntegration":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{displayName:{type:"string"},endpointUrl:{type:"string",minLength:1},headers:{anyOf:[{type:"array",items:{type:"object",properties:{name:{type:"string"},value:{type:"string"}},required:["name","value"]}},{type:"null"}]},transport:{anyOf:[{type:"string",enum:["auto","streamable_http"]},{type:"null"}]}},required:["displayName","endpointUrl"]},"applications.duplicateApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{targetSpaceId:{type:"string",minLength:1}},required:["targetSpaceId"]},"applications.reconnectApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{connectionConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{}}},required:[]},"applications.renameIntegration":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{displayName:{type:"string",minLength:1,maxLength:120}},required:["displayName"]},"applications.setApplicationActionMode":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{actionMode:{type:"string",enum:["read_only","read_write"]}},required:["actionMode"]},"applications.setApplicationEnabled":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"]},"applications.setIntegrationEnabled":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"]},"applications.triggerApplicationSync":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{initial:{type:"boolean"}},required:[]},"applications.updateApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{label:{type:"string",minLength:1,maxLength:200}},required:["label"]},"applications.updateApplicationIssueSyncSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{agentPreferences:{anyOf:[{type:"string"},{type:"null"}]},pull:{type:"object",properties:{assignmentGroupIds:{type:"array",items:{type:"string"}},enabled:{type:"boolean"},sources:{type:"array",items:{type:"object",properties:{cadence:{type:"string",enum:["1m","5m","15m","60m"]},enabled:{type:"boolean"},filter:{anyOf:[{oneOf:[{type:"object",properties:{kind:{type:"string",const:"all"}},required:["kind"]},{type:"object",properties:{ids:{type:"array",items:{type:"string"}},kind:{type:"string",const:"routing_container_ids"}},required:["ids","kind"]},{type:"object",properties:{ids:{type:"array",items:{type:"string"}},kind:{type:"string",const:"routing_container_ids_or_unassigned"}},required:["ids","kind"]}]},{type:"null"}]},source:{type:"string",enum:["servicenow:change_request","servicenow:incident","servicenow:sc_request","servicenow:sc_req_item","servicenow:sc_task"]}},required:["cadence","enabled","filter","source"]}},teamIds:{type:"array",items:{type:"string"}}},required:["assignmentGroupIds","enabled","teamIds"]},push:{type:"object",properties:{assignmentGroupId:{anyOf:[{type:"string"},{type:"null"}]},enabled:{type:"boolean"},teamId:{anyOf:[{type:"string"},{type:"null"}]}},required:["assignmentGroupId","enabled","teamId"]},autoAddress:{type:"object",properties:{enabled:{type:"boolean"},replyMode:{type:"string",enum:["mention","always","ambient"]},sources:{type:"array",items:{type:"string",enum:["servicenow:change_request","servicenow:incident","servicenow:sc_request","servicenow:sc_req_item","servicenow:sc_task"]}}},required:["enabled"]}},required:["pull","push","autoAddress"]},"assignment-groups.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:200},sources:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"canonical_group"},canonicalGroupId:{type:"string",minLength:1}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"imported_assignment_group"},importedAssignmentGroupId:{type:"string",minLength:1}},required:["type","importedAssignmentGroupId"]},{type:"object",properties:{type:{type:"string",const:"action_user"},userId:{type:"string",minLength:1}},required:["type","userId"]}]}},kind:{not:{}},connectorInstanceId:{not:{}},externalProviderGroupId:{not:{}}},required:["name","sources"]},"assignment-groups.setImportEnabled":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"]},"assignment-groups.setImportSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{changes:{minItems:1,maxItems:100,type:"array",items:{type:"object",properties:{connectorInstanceId:{type:"string",minLength:1},enabled:{type:"boolean"}},required:["connectorInstanceId","enabled"]}}},required:["changes"]},"assignment-groups.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:200},sources:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"canonical_group"},canonicalGroupId:{type:"string",minLength:1}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"imported_assignment_group"},importedAssignmentGroupId:{type:"string",minLength:1}},required:["type","importedAssignmentGroupId"]},{type:"object",properties:{type:{type:"string",const:"action_user"},userId:{type:"string",minLength:1}},required:["type","userId"]}]}},kind:{not:{}},connectorInstanceId:{not:{}},externalProviderGroupId:{not:{}}},required:[]},"assignment-rules.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{conditions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"category"},categoryId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","categoryId"]},{type:"object",properties:{type:{type:"string",const:"priority"},priority:{type:"string",enum:["urgent","high","medium","low","none"]},operator:{anyOf:[{type:"string",enum:["is","is_not","at_least","at_most"]},{type:"null"}]}},required:["type","priority"]},{type:"object",properties:{type:{type:"string",const:"status"},statusId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","statusId"]},{type:"object",properties:{type:{type:"string",const:"label"},labelId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","labelId"]},{type:"object",properties:{type:{type:"string",const:"time"},timezone:{type:"string",minLength:1},daysMask:{type:"integer",minimum:1,maximum:127},startMinute:{type:"integer",minimum:0,maximum:1439},endMinute:{type:"integer",minimum:0,maximum:1439},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","timezone","daysMask","startMinute","endMinute"]}]}},actions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{targetType:{type:"string",const:"user"},userId:{type:"string",minLength:1}},required:["targetType","userId"]},{type:"object",properties:{targetType:{type:"string",const:"group"},assignmentGroupId:{type:"string",minLength:1}},required:["targetType","assignmentGroupId"]}]}},matchMode:{type:"string",enum:["all","any"]}},required:["conditions","actions"]},"assignment-rules.reorder":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{ruleIds:{type:"array",items:{type:"string",minLength:1}}},required:["ruleIds"]},"assignment-rules.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{isEnabled:{type:"boolean"},matchMode:{type:"string",enum:["all","any"]},conditions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"category"},categoryId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","categoryId"]},{type:"object",properties:{type:{type:"string",const:"priority"},priority:{type:"string",enum:["urgent","high","medium","low","none"]},operator:{anyOf:[{type:"string",enum:["is","is_not","at_least","at_most"]},{type:"null"}]}},required:["type","priority"]},{type:"object",properties:{type:{type:"string",const:"status"},statusId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","statusId"]},{type:"object",properties:{type:{type:"string",const:"label"},labelId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","labelId"]},{type:"object",properties:{type:{type:"string",const:"time"},timezone:{type:"string",minLength:1},daysMask:{type:"integer",minimum:1,maximum:127},startMinute:{type:"integer",minimum:0,maximum:1439},endMinute:{type:"integer",minimum:0,maximum:1439},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","timezone","daysMask","startMinute","endMinute"]}]}},actions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{targetType:{type:"string",const:"user"},userId:{type:"string",minLength:1}},required:["targetType","userId"]},{type:"object",properties:{targetType:{type:"string",const:"group"},assignmentGroupId:{type:"string",minLength:1}},required:["targetType","assignmentGroupId"]}]}}},required:[]},"automations.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1},description:{default:null,anyOf:[{type:"string"},{type:"null"}]},slugId:{type:"string"},paused:{default:!1,type:"boolean"},runAsUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},config:{$ref:"#/components/schemas/AutomationVersionConfigInput"}},required:["name"]},"automations.createTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",oneOf:[{type:"object",properties:{displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"webhook"},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["triggerKind"]},{type:"object",properties:{config:{type:"object",properties:{eventKind:{type:"string",enum:["case.created","case.status_changed","case.priority_changed","case.assigned","case.category_changed","case.archived","case.reopened","case.labels_changed","comment.created"]},filter:{type:"object",properties:{toStatusType:{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},toPriority:{type:"string",enum:["urgent","high","medium","low","none"]},toAssigneeUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},toCategoryId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},labelChange:{type:"string",enum:["added","removed"]},addedLabelId:{type:"string",minLength:1},removedLabelId:{type:"string",minLength:1}}}},required:["eventKind"]},displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"case"},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["config","triggerKind"]},{type:"object",properties:{connectorInstanceId:{type:"string",minLength:1},connectorSlug:{type:"string",minLength:1},displayName:{type:"string",minLength:1},fieldValues:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},triggerKind:{type:"string",const:"application"},triggerSlug:{type:"string",minLength:1},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["connectorInstanceId","connectorSlug","triggerKind","triggerSlug"]}]},"automations.createVersion":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{config:{$ref:"#/components/schemas/AutomationVersionConfigInput"}},required:["config"]},"automations.createWorkflowTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",oneOf:[{type:"object",properties:{displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"webhook"},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["triggerKind"]},{type:"object",properties:{config:{type:"object",properties:{eventKind:{type:"string",enum:["case.created","case.status_changed","case.priority_changed","case.assigned","case.category_changed","case.archived","case.reopened","case.labels_changed","comment.created"]},filter:{type:"object",properties:{toStatusType:{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},toPriority:{type:"string",enum:["urgent","high","medium","low","none"]},toAssigneeUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},toCategoryId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},labelChange:{type:"string",enum:["added","removed"]},addedLabelId:{type:"string",minLength:1},removedLabelId:{type:"string",minLength:1}}}},required:["eventKind"]},displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"case"},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["config","triggerKind"]},{type:"object",properties:{connectorInstanceId:{type:"string",minLength:1},connectorSlug:{type:"string",minLength:1},displayName:{type:"string",minLength:1},fieldValues:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},triggerKind:{type:"string",const:"application"},triggerSlug:{type:"string",minLength:1},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["connectorInstanceId","connectorSlug","triggerKind","triggerSlug"]}]},"automations.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1},description:{anyOf:[{type:"string"},{type:"null"}]},slugId:{type:"string"},paused:{type:"boolean"},runAsUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:[]},"automations.updateTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{integrationId:{not:{}},triggerSlug:{not:{}},displayName:{type:"string",minLength:1},triggerConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:[]},"automations.updateWorkflowTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{integrationId:{not:{}},triggerSlug:{not:{}},displayName:{type:"string",minLength:1},triggerConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:[]},"cases.comment":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{body:{type:"string",minLength:1,maxLength:20000},visibility:{type:"string",enum:["public","internal"]},turnId:{type:"string",maxLength:200}},required:["body","visibility"]},"cases.createCase":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{title:{type:"string",minLength:1},summary:{anyOf:[{type:"string"},{type:"null"}]},statusId:{anyOf:[{type:"string"},{type:"null"}]},priority:{type:"string",enum:["none","low","medium","high","urgent"]},categoryId:{anyOf:[{type:"string"},{type:"null"}]},requesterUserId:{anyOf:[{type:"string"},{type:"null"}]},assigneeUserId:{anyOf:[{type:"string"},{type:"null"}]},assignmentGroupId:{anyOf:[{type:"string"},{type:"null"}]},dueAt:{anyOf:[{type:"string"},{type:"null"}]},primaryThreadId:{anyOf:[{type:"string"},{type:"null"}]},parentCaseId:{anyOf:[{type:"string"},{type:"null"}]}},required:["title"]},"cases.createCategory":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:80},description:{anyOf:[{type:"string",maxLength:500},{type:"null"}]}},required:["name"]},"cases.createLabel":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:64},color:{anyOf:[{type:"string"},{type:"null"}]}},required:["name"]},"cases.escalateRequest":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{reason:{anyOf:[{type:"string",maxLength:4000},{type:"null"}]}},required:[]},"cases.linkRelation":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{targetCaseIdOrIdentifier:{type:"string",minLength:1,maxLength:200},type:{type:"string",const:"parent"}},required:["targetCaseIdOrIdentifier"]},"cases.linkThread":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{threadId:{type:"string",minLength:1,maxLength:200},relationship:{default:"specialist",type:"string",enum:["primary","specialist"]},purpose:{anyOf:[{type:"string",maxLength:500},{type:"null"}]},metadata:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},automationId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:["threadId"]},"cases.markRead":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{mode:{type:"string",enum:["auto","manual"]}},required:[]},"cases.search":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{question:{type:"string",minLength:1,maxLength:1000},statusType:{anyOf:[{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},{type:"null"}]},categoryId:{anyOf:[{type:"string"},{type:"null"}]},limit:{default:5,type:"integer",minimum:1,maximum:20}},required:["question"]},"cases.spawnThread":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},relationship:{default:"specialist",type:"string",enum:["primary","specialist"]},purpose:{anyOf:[{type:"string",maxLength:500},{type:"null"}]},metadata:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},startMuted:{default:!1,type:"boolean"},automationId:{type:"string",minLength:1}},required:["automationId"]},"cases.transfer":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{destinationSpaceId:{type:"string",minLength:1,maxLength:200}},required:["destinationSpaceId"]},"cases.updateCase":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{title:{type:"string"},summary:{anyOf:[{type:"string"},{type:"null"}]},statusId:{type:"string"},statusType:{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},priority:{type:"string",enum:["none","low","medium","high","urgent"]},categoryId:{anyOf:[{type:"string"},{type:"null"}]},requesterUserId:{anyOf:[{type:"string"},{type:"null"}]},assigneeUserId:{anyOf:[{type:"string"},{type:"null"}]},assigneeActorType:{anyOf:[{type:"string",enum:["agent"]},{type:"null"}]},assignmentGroupId:{anyOf:[{type:"string"},{type:"null"}]},assigneeGroupId:{type:"string"},dueAt:{anyOf:[{type:"string"},{type:"null"}]},labelIds:{type:"array",items:{type:"string",minLength:1}},relevantKnowledgeIds:{maxItems:200,type:"array",items:{type:"string",minLength:1}},relevantSkillIds:{maxItems:200,type:"array",items:{type:"string",minLength:1}}},required:[]},"cases.uploadAttachment":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{file:{minItems:1,maxItems:10,type:"array",items:{type:"string",format:"binary",contentEncoding:"binary",minLength:1,maxLength:10485760}}},required:["file"]},"directory.createAdminPortalLink":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{returnUrl:{type:"string",format:"uri"},successUrl:{type:"string",format:"uri"}}},"directory.searchGroups":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{cursor:{anyOf:[{type:"object",properties:{groupId:{type:"string"},memberCount:{type:"integer",minimum:0,maximum:9007199254740991},name:{type:"string"}},required:["groupId","memberCount","name"]},{type:"null"}]},limit:{type:"integer",exclusiveMinimum:0,maximum:500},queries:{type:"array",items:{type:"string"}},query:{type:"string"}}},"directory.searchUsers":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{cursor:{anyOf:[{type:"object",properties:{matchRank:{type:"number"},sortKey:{type:"string"},userId:{type:"string"}},required:["matchRank","sortKey","userId"]},{type:"null"}]},limit:{type:"integer",exclusiveMinimum:0,maximum:500},query:{type:"string"}},required:["query"]},"knowledge.bulkUpdateConfluenceConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateGoogleDriveConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateNotionConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateSharePointConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.createUpload":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{file:{type:"string",format:"binary",contentEncoding:"binary",minLength:1,maxLength:52428800},folder:{type:"string",minLength:1,maxLength:80},path:{description:"Slash-separated relative subfolder path.",type:"string"},availability:{type:"string",enum:["org","space"]}},required:["file","folder","availability"]},"knowledge.renameFolder":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"}},required:["name"]},"knowledge.renameSubfolder":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"}},required:["name"]},"knowledge.replaceGithubKnowledgeRepos":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{repos:{maxItems:500,type:"array",items:{type:"object",properties:{branch:{type:"string",minLength:1},repoFullName:{type:"string",pattern:"^[^/\\s]+\\/[^/\\s]+$"}},required:["branch","repoFullName"]}}},required:["repos"]},"knowledge.search":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{question:{type:"string",minLength:1,maxLength:500},provider:{anyOf:[{type:"string"},{type:"null"}]},limit:{default:5,type:"integer",minimum:1,maximum:10}},required:["question"]},"knowledge.searchNotionConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{cursor:{type:"string"},query:{type:"string"},limit:{type:"number"}},required:[]},"knowledge.updateConfluenceConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateFolderDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateGithubConnectorRepos":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{repos:{maxItems:500,type:"array",items:{type:"string",pattern:"^[^/\\s]+\\/[^/\\s]+$"}}},required:["repos"]},"knowledge.updateGoogleDriveConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateGoogleDriveConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{oneOf:[{type:"object",properties:{mode:{type:"string",const:"all"},corpora:{type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{anyOf:[{type:"string"},{type:"null"}]}},required:["id"]}}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"selected"},corpora:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{anyOf:[{type:"string"},{type:"null"}]}},required:["id"]}}},required:["mode","corpora"]}]}},required:["selection"]},"knowledge.updateNotionConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateNotionConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{oneOf:[{type:"object",properties:{mode:{type:"string",const:"all"},items:{type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},object:{type:"string",enum:["page","data_source"]},title:{anyOf:[{type:"string"},{type:"null"}]},url:{anyOf:[{type:"string"},{type:"null"}]},lastEditedTime:{anyOf:[{type:"string"},{type:"null"}]}},required:["id","object"]}}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"selected"},items:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},object:{type:"string",enum:["page","data_source"]},title:{anyOf:[{type:"string"},{type:"null"}]},url:{anyOf:[{type:"string"},{type:"null"}]},lastEditedTime:{anyOf:[{type:"string"},{type:"null"}]}},required:["id","object"]}}},required:["mode","items"]}]}},required:["selection"]},"knowledge.updateSharePointConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateSharePointConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{type:"object",properties:{mode:{type:"string",const:"selected"},sites:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{anyOf:[{type:"string"},{type:"null"}]},displayName:{anyOf:[{type:"string"},{type:"null"}]},webUrl:{anyOf:[{type:"string"},{type:"null"}]}},required:["id"]}}},required:["mode","sites"]}},required:["selection"]},"knowledge.updateSlackConnectorAvailability":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]}},required:["availability"]},"knowledge.updateSlackConnectorBackfill":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{depth:{anyOf:[{type:"number",minimum:1},{type:"string",const:"all"}]}},required:["depth"]},"knowledge.updateSlackConnectorChannelAvailability":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{channelId:{type:"string",minLength:1},availability:{type:"string",enum:["org","space"]}},required:["channelId","availability"]},"knowledge.updateSlackConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{excludedChannelIds:{type:"array",items:{type:"string",minLength:1}}},required:["excludedChannelIds"]},"knowledge.updateUpload":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"labels.assignNames":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{entityType:{type:"string",enum:["agent","workflow","skill","access_profile","access_policy","access_role"]},entityId:{type:"string",minLength:1,maxLength:200},names:{maxItems:25,type:"array",items:{type:"string",minLength:1,maxLength:60}},mode:{type:"string",enum:["set","add","remove"]}},required:["entityType","entityId","names","mode"]},"labels.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:60},color:{anyOf:[{type:"string",pattern:"^#[0-9a-f]{6}$"},{type:"null"}]}},required:["name"]},"labels.resolveNames":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{names:{maxItems:25,type:"array",items:{type:"string",minLength:1,maxLength:60}}},required:["names"]},"labels.setLabels":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{labelIds:{maxItems:25,type:"array",items:{type:"string",pattern:"^lbl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},required:["labelIds"]},"labels.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:60},color:{anyOf:[{type:"string",pattern:"^#[0-9a-f]{6}$"},{type:"null"}]}},required:[]},"organization-github.confirmInstall":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{connectionId:{type:"string",minLength:1}},required:["connectionId"]},"organization-slack.createChannelSettingsRoute":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{spaceId:{type:"string",minLength:1}},required:["spaceId"]},"organization-slack.startInstall":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{returnTo:{type:"string",maxLength:2048}}},"organization-slack.updateChannelEmojis":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{emojis:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{type:"string"}},{type:"null"}]}},required:["emojis"]},"organization-slack.updateChannelSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{responseMode:{type:"string",enum:["mention","always","ambient"]},threadReplyMode:{type:"string",enum:["mention","always","ambient"]},ambientInstruction:{anyOf:[{type:"string"},{type:"null"}]},ambientRules:{anyOf:[{type:"object",properties:{respondKeywords:{type:"array",items:{type:"string"}},ignoreKeywords:{type:"array",items:{type:"string"}},respondRegex:{anyOf:[{type:"string"},{type:"null"}]}}},{type:"null"}]}},required:["responseMode","threadReplyMode"]},"organization-spaces.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{description:{type:"string",minLength:1,maxLength:1000},name:{type:"string",minLength:1},organizationRequestRoutingEnabled:{default:!1,type:"boolean"},slug:{type:"string"}},required:["description","name"]},"organization-spaces.setEscalationMessage":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{escalationClosingMessage:{anyOf:[{type:"string",maxLength:500},{type:"null"}]}},required:["escalationClosingMessage"]},"organization-spaces.setEscalationMute":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{escalationMuteEnabled:{type:"boolean"}},required:["escalationMuteEnabled"]},"organization-spaces.setOrganizationRequestRouting":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{organizationRequestRoutingEnabled:{type:"boolean"}},required:["organizationRequestRoutingEnabled"]},"organization-teams.createChannelSettingsRoute":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{spaceId:{type:"string",minLength:1}},required:["spaceId"]},"organization-teams.createGraphSubscription":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{scope:{type:"string",enum:["tenant","channel"]},teamId:{type:"string",minLength:1},channelId:{type:"string",minLength:1}}},"organization-teams.startInstall":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{returnTo:{type:"string",maxLength:2048},force:{type:"boolean"}}},"organization-teams.updateChannelEmojis":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{emojis:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{type:"string"}},{type:"null"}]}},required:["emojis"]},"organization-teams.updateChannelSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{responseMode:{type:"string",enum:["mention","always","ambient"]},threadReplyMode:{type:"string",enum:["mention","always","ambient"]},ambientInstruction:{anyOf:[{type:"string"},{type:"null"}]},ambientRules:{anyOf:[{type:"object",properties:{respondKeywords:{type:"array",items:{type:"string"}},ignoreKeywords:{type:"array",items:{type:"string"}},respondRegex:{anyOf:[{type:"string"},{type:"null"}]}}},{type:"null"}]}},required:["responseMode","threadReplyMode"]},"organizations.createInvite":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{email:{type:"string",minLength:1},expiresInDays:{type:"integer",minimum:1,maximum:30},roleSlug:{type:"string",enum:["admin","operator"]}},required:["email","roleSlug"]},"organizations.createMembership":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{email:{type:"string",minLength:1},roleSlug:{type:"string",enum:["admin","operator"]}},required:["email","roleSlug"]},"organizations.updateMembership":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{roleSlug:{anyOf:[{type:"string",enum:["admin","operator"]},{type:"null"}]},status:{anyOf:[{type:"string",enum:["active","revoked"]},{type:"null"}]},statusReason:{anyOf:[{type:"string"},{type:"null"}]}},required:[]},"organizations.updateSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{showProfilePictures:{type:"boolean"}},required:["showProfilePictures"]},"sessions.createOrganizationRequestSession":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},caseId:{type:"string",pattern:"^case_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},reuseExisting:{type:"boolean"},destinationSpaceId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}}},"sessions.createOrganizationRequestSessionAndSubmit":{$schema:"https://json-schema.org/draft/2020-12/schema",anyOf:[{type:"object",properties:{prewarmOnly:{type:"boolean",const:!0}},required:["prewarmOnly"]},{type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},caseId:{type:"string",pattern:"^case_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},reuseExisting:{type:"boolean"},destinationSpaceId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},initialMessage:{$ref:"#/components/schemas/PublicSessionInitialMessageInput"}},required:["initialMessage"]}]},"sessions.createSession":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},automation:{$ref:"#/components/schemas/PublicSessionCreateAutomationInput"},visibility:{type:"string",enum:["team","private"]}},required:["automation"]},"sessions.createSessionAndSubmit":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},automation:{$ref:"#/components/schemas/PublicSessionCreateAutomationInput"},visibility:{type:"string",enum:["team","private"]},initialMessage:{$ref:"#/components/schemas/PublicSessionInitialMessageInput"}},required:["automation","initialMessage"]},"sessions.createWorkflowSuggestionSession":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"sessions.intakeRequest":{$schema:"https://json-schema.org/draft/2020-12/schema",anyOf:[{type:"object",properties:{prewarmOnly:{type:"boolean",const:!0}},required:["prewarmOnly"]},{type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},caseId:{type:"string",pattern:"^case_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},reuseExisting:{type:"boolean"},destinationSpaceId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},initialMessage:{$ref:"#/components/schemas/PublicSessionInitialMessageInput"}},required:["initialMessage"]}]},"sessions.rename":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{title:{type:"string",maxLength:120}},required:["title"]},"sessions.setVisibility":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{visibility:{type:"string",enum:["team","private"]}},required:["visibility"]},"sessions.submitMessage":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{clientMessageId:{type:"string",minLength:1},content:{type:"string",minLength:1},mode:{type:"string",enum:["prompt","steer","followUp"]},model:{anyOf:[{type:"object",properties:{id:{type:"string",minLength:1},provider:{type:"string",minLength:1}},required:["id","provider"]},{type:"null"}]},thinkingLevel:{anyOf:[{type:"string",enum:["off","minimal","low","medium","high","xhigh","max"]},{type:"null"}]},timezone:{anyOf:[{type:"string",maxLength:100},{type:"null"}]},page:{anyOf:[{type:"string",maxLength:200},{type:"null"}]},mentions:{maxItems:50,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},type:{type:"string",enum:["case","user","automation","access_policy","access_role","access_profile"]}},required:["id","type"]}},skills:{maxItems:8,type:"array",items:{type:"object",properties:{skillId:{type:"string",minLength:1}},required:["skillId"]}},suppressAutomationWake:{type:"boolean"}},required:["clientMessageId","content","mode"]},"sessions.updateFileVisibility":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{directories:{type:"array",items:{type:"string"}},previewPath:{anyOf:[{type:"string"},{type:"null"}]}},required:["directories"]},"sessions.uploadFiles":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{file:{minItems:1,maxItems:10,type:"array",items:{type:"string",format:"binary",contentEncoding:"binary",maxLength:10485760}}},required:["file"]},"skills.createSkill":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{description:{type:"string",minLength:1},scope:{type:"string",enum:["system","org"]},slug:{type:"string",minLength:1},title:{type:"string",minLength:1}},required:["description","scope","slug","title"]},"skills.createSkillVersion":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{files:{minItems:1,maxItems:200,type:"array",items:{type:"object",properties:{path:{type:"string",minLength:1},contentBase64:{type:"string",minLength:1}},required:["path","contentBase64"]}}},required:["files"]},"skills.updateSkillTags":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{tags:{maxItems:32,type:"array",items:{type:"string",minLength:1,maxLength:64}},expectedTags:{maxItems:32,type:"array",items:{type:"string",minLength:1,maxLength:64}}},required:["tags"]},"space-access-roles.archive":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{replacementRoleId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:[]},"space-access-roles.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","active"]},name:{type:"string",minLength:1},description:{anyOf:[{type:"string"},{type:"null"}]},permissionSlugs:{type:"array",items:{type:"string"}}},required:["name","permissionSlugs"]},"space-access-roles.duplicate":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1}},required:["name"]},"space-access-roles.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","active"]},name:{type:"string",minLength:1},description:{anyOf:[{type:"string"},{type:"null"}]},permissionSlugs:{type:"array",items:{type:"string"}}},required:["name","permissionSlugs"]},"space-action-grants.replaceGrants":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{actionSlugs:{type:"array",items:{type:"string"}}},required:["actionSlugs"]},"space-action-grants.replaceRoles":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{blockedRoleIds:{type:"array",items:{type:"string",minLength:1}}},required:["blockedRoleIds"]},"spaces.addGroupMembers":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{accessRoleId:{type:"string"},roleSlug:{type:"string"},groupId:{type:"string",minLength:1}},required:["groupId"]},"spaces.addMember":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{accessRoleId:{type:"string"},roleSlug:{type:"string"},email:{type:"string",minLength:1}},required:["email"]},"spaces.setDefaultAssignment":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{defaultRoutingAssignmentGroupId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:["defaultRoutingAssignmentGroupId"]},"spaces.setSemanticAssignmentRouting":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{allowUnassigned:{type:"boolean"},assigneeMode:{type:"string",enum:["group_only","round_robin"]},assignmentGroupIds:{type:"array",items:{type:"string",minLength:1}},mode:{type:"string",enum:["disabled","propose_on_creation","apply_on_escalation"]},skillIds:{type:"array",items:{type:"string",minLength:1}}},required:["allowUnassigned","assigneeMode","assignmentGroupIds","mode","skillIds"]},"spaces.updateMember":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{accessRoleId:{type:"string"},roleSlug:{type:"string"}},required:[]},"spaces.updateProfile":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{agentPreferences:{anyOf:[{type:"string",maxLength:1000},{type:"null"}]},description:{anyOf:[{type:"string",maxLength:1000},{type:"null"}]},name:{type:"string",minLength:1},slug:{type:"string",minLength:1}},required:[]},"workflows.createWorkflow":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{description:{anyOf:[{type:"string",maxLength:2000},{type:"null"}]},key:{type:"string",minLength:1,maxLength:120,pattern:"^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9](?:[a-z0-9-]{0,118}[a-z0-9])?$"},metadata:{$ref:"#/components/schemas/PublicWorkflowMetadataInput"},name:{type:"string",minLength:1,maxLength:200},source:{$ref:"#/components/schemas/PublicWorkflowSource"}},required:["key","metadata","name","source"]},"workflows.createWorkflowRun":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{input:{$ref:"#/components/schemas/JsonValue"},workflowId:{type:"string",minLength:1,maxLength:200}},required:["input","workflowId"]},"workflows.testWorkflowRevision":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{input:{$ref:"#/components/schemas/JsonValue"}},required:["input"]},"workflows.updateWorkflow":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{baseRevisionId:{type:"string",minLength:1,maxLength:200},description:{anyOf:[{type:"string",maxLength:2000},{type:"null"}]},metadata:{$ref:"#/components/schemas/PublicWorkflowMetadataInput"},name:{type:"string",minLength:1,maxLength:200},source:{$ref:"#/components/schemas/PublicWorkflowSource"}},required:["baseRevisionId","metadata","name","source"]}},components:{schemas:{AutomationVersionConfigInput:{type:"object",properties:{systemPrompt:{type:"string"},model:{type:"object",properties:{provider:{type:"string",minLength:1},modelId:{type:"string",minLength:1}},required:["provider","modelId"]},reasoning:{type:"string",enum:["off","low","medium","high","xhigh","max"]},runtime:{oneOf:[{type:"object",properties:{runtimeBackend:{type:"string",const:"sandbox"}},required:["runtimeBackend"]},{type:"object",properties:{runtimeBackend:{type:"string",const:"thread-do"},toolExecutionBackend:{type:"string",enum:["dynamic-worker","just-bash","pi-builtins"]}},required:["runtimeBackend","toolExecutionBackend"]}]},sandboxEnvironmentId:{default:null,anyOf:[{type:"string",minLength:1},{type:"null"}]},tools:{default:[],type:"array",items:{type:"object",properties:{kind:{type:"string",minLength:1},enabled:{type:"boolean"},config:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}}},required:["kind","enabled"]}},skillIds:{default:[],type:"array",items:{type:"string",minLength:1}},mcpServerIds:{default:[],type:"array",items:{type:"string",minLength:1}},mcpToolAllowlists:{type:"object",propertyNames:{type:"string"},additionalProperties:{type:"array",items:{type:"string"}}},secretIds:{default:[],type:"array",items:{type:"string",minLength:1}},memoryEnabled:{default:!1,type:"boolean"},browserEnabled:{default:!1,type:"boolean"},workflowBuilderEnabled:{default:!1,type:"boolean"},permissions:{type:"object",properties:{workflows:{type:"object",properties:{mode:{type:"string",enum:["all","selected","none"]},workflowIds:{default:[],maxItems:500,type:"array",items:{type:"string",minLength:1}}},required:["mode"]},cases:{type:"string",enum:["none","read","write"]},accessProfiles:{type:"string",enum:["none","read","write"]},accessPolicies:{type:"string",enum:["none","read","write"]},accessRoles:{type:"string",enum:["none","read","write"]},spaceRoles:{type:"string",enum:["none","read","write"]},labels:{default:"write",type:"string",enum:["none","read","write"]},knowledge:{default:!0,type:"boolean"},directory:{default:!0,type:"boolean"},editSelf:{default:!1,type:"boolean"},createSkills:{type:"boolean"}},required:["workflows","cases","accessProfiles","accessPolicies","accessRoles","spaceRoles","createSkills"]},memoryPolicyId:{default:null,anyOf:[{type:"string",minLength:1},{type:"null"}]},triggers:{type:"array",items:{$ref:"#/components/schemas/AutomationCronTriggerInput"}},knowledge:{default:null,anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]},allowedAutomationIds:{default:[],type:"array",items:{type:"string",minLength:1}},allowAllAutomations:{type:"boolean"},automationBuilderEnabled:{default:!1,type:"boolean"},subautomationsEnabled:{type:"boolean"}},required:["systemPrompt","model","reasoning","runtime","subautomationsEnabled"],additionalProperties:!1},JsonValue:{anyOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"null"},{items:{},type:"array"},{additionalProperties:{},type:"object"}]},AutomationCronTriggerInput:{anyOf:[{type:"string",minLength:1},{type:"object",properties:{cron:{type:"string",minLength:1},userMessageTemplate:{anyOf:[{type:"string"},{type:"null"}]},timezone:{anyOf:[{type:"string"},{type:"null"}]}},required:["cron"]}]},PublicSessionInitialMessageInput:{type:"object",properties:{clientMessageId:{type:"string",minLength:1},content:{type:"string",minLength:1},mode:{type:"string",enum:["prompt","steer","followUp"]},model:{anyOf:[{type:"object",properties:{id:{type:"string",minLength:1},provider:{type:"string",minLength:1}},required:["id","provider"]},{type:"null"}]},thinkingLevel:{anyOf:[{type:"string",enum:["off","minimal","low","medium","high","xhigh","max"]},{type:"null"}]},timezone:{anyOf:[{type:"string",maxLength:100},{type:"null"}]},page:{anyOf:[{type:"string",maxLength:200},{type:"null"}]},mentions:{maxItems:50,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},type:{type:"string",enum:["case","user","automation","access_policy","access_role","access_profile"]}},required:["id","type"]}},skills:{maxItems:8,type:"array",items:{type:"object",properties:{skillId:{type:"string",minLength:1}},required:["skillId"]}},suppressAutomationWake:{type:"boolean"}},required:["clientMessageId","content","mode"]},PublicSessionCreateAutomationInput:{type:"object",properties:{automationId:{type:"string",minLength:1},automationVersionId:{type:"string",minLength:1},version:{type:"number"},attachedSkills:{type:"array",items:{type:"object",properties:{skillVersionId:{type:"string",minLength:1}},required:["skillVersionId"]}},enabledSkillIds:{type:"array",items:{type:"string",minLength:1}},disabledSkillIds:{type:"array",items:{type:"string",minLength:1}},enabledMcpServerIds:{type:"array",items:{type:"string",minLength:1}},disabledMcpServerIds:{type:"array",items:{type:"string",minLength:1}},memoryEnabled:{type:"boolean"}},required:["automationId","automationVersionId","version"]},PublicWorkflowMetadataInput:{type:"object",properties:{inputs:{$ref:"#/components/schemas/PublicWorkflowJsonSchemaObject"},outputs:{default:null,anyOf:[{$ref:"#/components/schemas/PublicWorkflowJsonSchemaObject"},{type:"null"}]}},required:["inputs"],additionalProperties:!1},PublicWorkflowJsonSchemaObject:{type:"object",properties:{type:{type:"string",const:"object"}},required:["type"],additionalProperties:{}},PublicWorkflowSource:{type:"object",properties:{files:{minItems:1,maxItems:1,type:"array",items:{$ref:"#/components/schemas/PublicWorkflowSourceFile"}}},required:["files"],additionalProperties:!1},PublicWorkflowSourceFile:{type:"object",properties:{content:{type:"string",minLength:1,maxLength:1e6,description:"Workflow source text. OpenAPI maxLength counts characters; the server also enforces an encoded UTF-8 limit of 1,000,000 bytes."},path:{type:"string",const:"index.mjs"}},required:["content","path"],additionalProperties:!1}}}};var Cn=mh,ph=new hh.default({strict:!1,allErrors:!0,validateFormats:!1}),fh=new Map,bo=(e)=>e.$ref?Cn.components.schemas[e.$ref.split("/").at(-1)]:e;function yh(e,t){let r=Cn.operations[e];if(!r)return;let n=JSON.parse(t),i=n.body;if(n.multipart_form_data){i={};let s=bo(r).properties??{};for(let o of n.multipart_form_data){let u=o.type==="file"?o.path:o.value,l=bo(s[o.name]??{});if(o.type!=="file"&&["number","integer","boolean"].includes(l.type))try{u=JSON.parse(u)}catch{}if(l.type==="array")(i[o.name]??=[]).push(u);else i[o.name]=u}}let a=fh.get(e);if(!a)a=ph.compile({...r,components:Cn.components}),fh.set(e,a);if(!a(i===void 0?{}:i))throw C(`Invalid request: ${ph.errorsText(a.errors,{separator:"; "})}. Use --schema to inspect constraints.`)}function Ih(e,t){let r=Cn.operations[e];if(!r||!t.input)return t;let n=bo(r),i={};function a(o){if(!o||typeof o!=="object")return;let u=o.$ref;if(u){let l=u.split("/").at(-1);if(!(l in i))i[l]=Cn.components.schemas[l],a(i[l])}for(let l of Object.values(o))a(l)}a(r);let s={...t.input.properties};for(let[o,u]of Object.entries(n.properties??{}))s[o]={...s[o],...u};return{...t,input:{...t.input,properties:s,required:[...new Set([...t.input.required??[],...n.required??[]])]},requestBodySchema:r,...Object.keys(i).length?{components:{schemas:i}}:{}}}function Ao(e,t){if(t==="applications")e=e.replace(`Commands:
|
|
239
|
+
`)}catch(a){await Promise.all(n.map((o)=>aL(o)));let s=a.code==="EEXIST";throw new L(s?"scaffold_conflict":"scaffold_failed",s?"Scaffold files changed during initialization. No existing files were overwritten.":"Could not create the workflow scaffold.",{cause:a,exitCode:s?R.conflict:R.validation})}return r}import{access as sL,mkdir as oL,realpath as uL}from"node:fs/promises";import{basename as lL,dirname as dL,isAbsolute as cL,join as Pf,relative as mL}from"node:path";function Fi(e){return e?{keys:[e]}:{}}function Ke(e,r="No workflows found."){return e.length>0?e.join(`
|
|
240
|
+
`):r}function Ki(e,r){return r.output===null?e:`${e}
|
|
241
|
+
${JSON.stringify(r.output,null,2)}`}async function pL(e){try{return await sL(e),!0}catch(r){if(r.code==="ENOENT")return!1;throw r}}function fL(e){if(e instanceof K)return{code:e.code,...e.correlationId?{correlationId:e.correlationId}:{},...e.details?{details:e.details}:{},message:e.message,retryable:e.retryable,...e.status!==null?{status:e.status}:{}};if(e instanceof L)return{code:e.code,...e.details!==void 0?{details:e.details}:{},message:e.message};if(Ar(e))return{code:"authentication_failed",message:e instanceof Error?e.message:"Authentication failed.",retryable:!1};let r=e;return{code:typeof r?.code==="string"?r.code:"workflow_push_failed",message:typeof r?.message==="string"?r.message:"The workflow could not be pushed."}}function Of(e){let r=e;return{error:fL(e.error),key:e.key,...typeof r.revisionId==="string"?{revisionId:r.revisionId}:{},...typeof r.workflowId==="string"?{workflowId:r.workflowId}:{}}}function zf(e,r){return new L("validation_failed",e,{details:{workflows:r},exitCode:R.validation})}function Wf(e){if(e.status!=="failed"&&e.status!=="cancelled")return;throw new L("workflow_run_failed",`Run ${e.id} finished with status ${e.status}.`,{details:{run:e},exitCode:R.remote})}class Ro extends L{constructor(e){let r=e.failures.map(Of),t=e.validationFailures.map(Of),n=e.items.filter((s)=>!s.validation.ok),i=new Set([...e.skipped,...e.items.filter((s)=>s.validation.ok).map((s)=>s.key)]),a=new Set([...r.map((s)=>s.key),...t.map((s)=>s.key),...n.map((s)=>s.key)]);super("partial_failure",i.size>0?`Push completed for ${i.size} workflow(s); ${a.size} workflow(s) failed.`:`Push failed for ${a.size} workflow(s).`,{details:{failures:r,items:e.items,skipped:e.skipped,validationFailures:t},exitCode:R.partial});this.name="WorkflowPartialFailureError"}}async function ko(e){try{return await uL(e)}catch(r){if(r.code!=="ENOENT")throw r;let t=dL(e);return t===e?e:Pf(await ko(t),lL(e))}}function jf(e,r){let t=mL(e,r);return t===""||!t.startsWith("..")&&!cL(t)}async function hL(e,r){let t=await ko(re(e).workflows),n=await ko(re(r).workflows);if(jf(t,n)||jf(n,t))throw new L("workflow_conflict","Published inspection output must not overlap the active project's workflows directory.",{exitCode:R.conflict})}function Tf(e){return{async init(r){let t=e.resolveDirectory(r.directory),n=Pf(t,"action.json");if(await pL(n))throw new L("project_exists",`An Action project already exists at ${t}.`,{exitCode:R.conflict});let i=await e.initializationContext();return await Xf(t),await Kp(t,i),{human:`Initialized an Action workflow project at ${t} with workflows/example. Run action workflow-project validate there.`,value:{contextConfigured:Boolean(i),projectRoot:t}}},async capabilities(r){let t=await(await e.workflowService({projectRequired:!1})).capabilities(r.application),n={applications:t,query:r.application??null};if(!r.application)return{human:Ke(t.map((i)=>`${i.slug} ${i.displayName} ${i.connectionStatus}`),"No workflow applications found."),value:n};return{human:Ke(t.flatMap((i)=>[`${i.slug} ${i.displayName} ${i.connectionStatus}`,...i.connectorInstances.map((a)=>`connection ${a.id} ${a.label??a.displayName}`),...i.actions.map((a)=>`action ${a.effect} ${a.name}`),...i.readActions.map((a)=>`read-action ${a.effect} ${a.name}`)]),"No matching workflow applications found."),value:n}},async list(r){let n={workflows:(await(await e.workflowService({projectRequired:!1})).list({includeArchived:r.includeArchived})).map((i)=>({archivedAt:i.archivedAt,hasUnpublishedChanges:i.hasUnpublishedChanges,id:i.id,key:i.key,latestRevisionId:i.latestRevisionId,name:i.name,publishedRevisionId:i.publishedRevisionId}))};return{human:Ke(n.workflows.map((i)=>`${i.key} ${i.name} ${i.archivedAt?"archived":i.hasUnpublishedChanges?"draft":"published"}`)),value:n}},async pull(r){if(r.published){if(!r.outputDirectory)throw Error("Published pull requires an output directory.");let a=e.resolveDirectory(r.outputDirectory);await hL(await e.projectRoot(),a),await oL(a,{recursive:!0});let o=await(await e.workflowService()).pullPublished({force:r.force,...Fi(r.key),outputRoot:a}),u={outputRoot:a,skippedUnpublished:o.skippedUnpublished,workflows:o.workflows.map((l)=>({contentDigest:l.contentDigest,key:l.manifest.key,revisionId:l.latestRevisionId,workflowId:l.workflowId})),written:o.written};return{human:Ke([...u.written.map((l)=>`pulled ${l}`),...u.skippedUnpublished.map((l)=>`skipped-unpublished ${l}`)],"Published workflows are already up to date."),value:u}}let n=await(await e.workflowService()).pull({force:r.force,...Fi(r.key)}),i={preserved:n.preserved,refusals:n.refusals,statuses:n.statuses,written:n.writes.map((a)=>a.key)};return{human:Ke(i.written.map((a)=>`pulled ${a}`),"Workflows are up to date."),value:i}},async status(r){let t=await(await e.workflowService()).status({offline:r.offline});return{human:Ke(t.map((n)=>`${n.status} ${n.key}`),"No local or remote workflows found."),value:{offline:r.offline,workflows:t}}},async diff(r){let t=await bf(await e.projectRoot(),r.key)??await(await e.workflowService()).diff(r.key);return{human:t.diff||`No changes for ${r.key}.`,value:t}},async validate(r){let t=r.remote?await(await e.workflowService()).validate({...Fi(r.key),remote:!0}):await Af(await e.projectRoot(),r.key?[r.key]:void 0),n=t.filter((i)=>i.remote?.state==="validated"&&!i.remote.result.ok);if(n.length>0)throw zf(`Remote validation failed for ${n.map((i)=>i.key).join(", ")}.`,n);return{human:Ke(t.map((i)=>{return`${i.remote?i.remote.state==="validated"?i.remote.result.ok?"remote-valid":"remote-invalid":`remote-skipped:${i.remote.reason}`:"local-valid"} ${i.key}`})),value:{workflows:t}}},async push(r){let t=await(await e.workflowService()).push({...Fi(r.key)}),n=t.items.filter((l)=>!l.validation.ok),i=new Set([...t.failures.map((l)=>l.key),...t.validationFailures.map((l)=>l.key),...n.map((l)=>l.key)]),a=new Set([...t.skipped,...t.items.filter((l)=>l.validation.ok).map((l)=>l.key)]),s=t.failures.length>0||t.validationFailures.length>0;if(i.size>0&&(a.size>0||s&&i.size>1))throw new Ro(t);let o=t.failures[0];if(o)throw o.error;let u=t.validationFailures[0];if(u)throw u.error;if(n.length>0)throw zf(`Workflow validation failed for ${n.map((l)=>l.key).join(", ")}.`,n);return{human:Ke([...t.items.map((l)=>`${l.created?"created":"updated"} ${l.key}`),...t.skipped.map((l)=>`unchanged ${l}`)],"Workflows are already up to date."),value:{failures:[],skipped:t.skipped,workflows:t.items}}},async test(r){let t=await e.workflowService(),n=await t.test(r.key,r.input),i=r.wait?await t.waitForRun(n):n;if(r.wait)Wf(i);return{human:r.wait?Ki(`Test run ${i.id} finished with status ${i.status}.`,i):`Started test run ${i.id} (${i.status}).`,value:{run:i,waited:r.wait}}},async run(r){let t=await e.workflowService({projectRequired:!1}),n=await t.run(r.key,r.input),i=r.wait?await t.waitForRun(n):n;if(r.wait)Wf(i);return{human:r.wait?Ki(`Run ${i.id} finished with status ${i.status}.`,i):`Started production run ${i.id} (${i.status}).`,value:{run:i,waited:r.wait}}},async runsList(r){let t=await(await e.workflowService({projectRequired:!1})).runs({...r.cursor?{cursor:r.cursor}:{},...r.limit?{pageSize:r.limit}:{},...r.status?{status:r.status}:{},...r.workflowKey?{workflowKey:r.workflowKey}:{}});return{human:Ke(t.data.map((n)=>`${n.id} ${n.status} ${n.workflowId} ${n.createdAt}`),"No workflow runs found."),value:{nextCursor:t.nextCursor,runs:t.data}}},async runGet(r){let t=await(await e.workflowService({projectRequired:!1})).getRun(r.runId);return{human:Ki(`${t.id} ${t.status} ${t.workflowId} ${t.updatedAt}`,t),value:{run:t}}},async runWatch(r){let t=await(await e.workflowService({...r.signal?{abortSignal:r.signal}:{},projectRequired:!1})).watchRun(r);return{human:t.stopped?`Stopped watching ${t.run.id}; the remote run was not cancelled.`:Ki(`Run ${t.run.id} finished with status ${t.run.status}.`,t.run),value:t}},async runCancel(r){let t=await(await e.workflowService({projectRequired:!1})).cancelRun(r.runId);return{human:`Cancellation requested for ${t.id} (${t.status}).`,value:{run:t}}},async publish(r){let t=await(await e.workflowService()).publish(r.key,r.revisionId);return{human:`Published ${r.key} at revision ${t.revisionId}.`,value:{key:r.key,publication:t}}},async archive(r){let t=await(await e.workflowService()).archive(r.key);return{human:`Archived ${r.key}.`,value:{workflow:{archivedAt:t.archivedAt,id:t.id,key:t.key,latestRevisionId:t.latestRevisionId}}}},async revisions(r){let t=await(await e.workflowService({projectRequired:!1})).revisions(r.key);return{human:Ke(t.map((n)=>`${n.revisionNumber} ${n.status} ${n.id} ${n.contentDigest}`),`No revisions found for ${r.key}.`),value:{key:r.key,revisions:t}}}}}function Vf(e){let r=async(t,n,i)=>{let a=(await e.remoteSelection()).space.id;try{let s=await Mr({operation:t,parameters:{...n,spaceId:a},...i===void 0?{}:{body:i},baseUrl:e.apiUrl(),tokenProvider:async()=>(await e.credential()).authorization,cwd:e.cwd(),env:e.env,...e.generatedBinaryPath?{binaryPath:e.generatedBinaryPath}:{}});return{value:s,human:()=>JSON.stringify(s,null,2)}}catch(s){throw nr(s)}};return{get:async(t)=>await r("skills.getSkill",t),getVersion:async(t)=>await r("skills.getSkillVersion",t),createVersion:async({skillId:t,body:n})=>await r("skills.createSkillVersion",{skillId:t},n),updateTags:async({skillId:t,...n})=>await r("skills.updateSkillTags",{skillId:t},n)}}var Wh=Zi(Sh(),1);var Xh={operations:{"access.createPolicy":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","published"]},name:{type:"string"},description:{type:["null","string"]},maxAccessMinutes:{type:["null","number"]},recommendedAccessMinutes:{type:["null","number"]},businessJustificationMode:{type:"string",enum:["not_required","required","advanced"]},requireBusinessJustification:{type:"boolean"},businessJustificationSpec:{type:["null","string"]},businessJustificationApprovalMode:{type:"string",enum:["auto","escalate"]},businessJustificationRejectionMode:{type:"string",enum:["auto","escalate"]},allowSelfApproval:{type:"boolean"},autoApproveWhenRequesterIsApprover:{type:"boolean"},notifyApproversViaSlack:{type:"boolean"},notifyApproversViaTeams:{type:"boolean"},slackNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},slackEscalationIntervalMinutes:{type:"number"},teamsNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},teamsEscalationIntervalMinutes:{type:"number"},notifyApproversViaGoogleChat:{type:"boolean"},googleChatNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},googleChatEscalationIntervalMinutes:{type:"number"},approvalStages:{maxItems:20,type:"array",items:{type:"object",properties:{name:{type:"string"},approvalMode:{default:"any",type:"string",enum:["any","all"]},notificationConfig:{default:null,anyOf:[{type:"object",properties:{googleChat:{default:null,anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]},slack:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]},teams:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]}},required:["slack","teams"]},{type:"null"}]},approvers:{minItems:1,maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}}},required:["name","approvers"]}},approvers:{maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}},approverProvisioningImpactAcknowledged:{type:"boolean"}},required:["name"]},"access.createProfile":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","published"]},name:{type:"string"},description:{type:["null","string"]},isDefault:{description:"Mark this profile as the space's default. At most one published profile per space can hold it. It labels the profile; it does not widen who matches, which matchingCriteria decides on its own.",type:"boolean"},matchingCriteria:{type:"object",properties:{matchType:{type:"string",enum:["any","all"]},includedGroupIds:{default:[],description:`People in these groups match this profile. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}},excludedGroupIds:{default:[],description:`People in these groups never match this profile, even if they also match an included group. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}}},required:["matchType"]},roleIds:{description:'The access roles people matching this profile can request. Look ids up with the access-roles "list" operation; each must be in this space and not archived. Draft roles are accepted, so a role can be attached before it is published.',maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},required:["name"]},"access.createRole":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","published"]},name:{type:"string"},description:{type:["null","string"]},requestsEnabled:{type:"boolean"},connectorInstanceId:{description:"Application connection ID from applications list-applications. Required when creating an access role.",type:"string"},accessProfileId:{type:["null","string"]},accessPolicyId:{type:["null","string"]},provisioningMethodType:{anyOf:[{type:"string",enum:["manual","workflow","linkedGroup"]},{type:"null"}]},provisioningConfig:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},externalId:{type:["null","string"]},externalData:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]}},required:["name","connectorInstanceId"]},"access.updatePolicy":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"},description:{type:["null","string"]},maxAccessMinutes:{type:["null","number"]},recommendedAccessMinutes:{type:["null","number"]},businessJustificationMode:{type:"string",enum:["not_required","required","advanced"]},requireBusinessJustification:{type:"boolean"},businessJustificationSpec:{type:["null","string"]},businessJustificationApprovalMode:{type:"string",enum:["auto","escalate"]},businessJustificationRejectionMode:{type:"string",enum:["auto","escalate"]},allowSelfApproval:{type:"boolean"},autoApproveWhenRequesterIsApprover:{type:"boolean"},notifyApproversViaSlack:{type:"boolean"},notifyApproversViaTeams:{type:"boolean"},slackNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},slackEscalationIntervalMinutes:{type:"number"},teamsNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},teamsEscalationIntervalMinutes:{type:"number"},notifyApproversViaGoogleChat:{type:"boolean"},googleChatNotifyDelivery:{type:"string",enum:["broadcast","sequential","round_robin"]},googleChatEscalationIntervalMinutes:{type:"number"},approvalStages:{maxItems:20,type:"array",items:{type:"object",properties:{name:{type:"string"},approvalMode:{default:"any",type:"string",enum:["any","all"]},notificationConfig:{default:null,anyOf:[{type:"object",properties:{googleChat:{default:null,anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]},slack:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]},teams:{anyOf:[{type:"object",properties:{delivery:{type:"string",enum:["broadcast","sequential","round_robin"]},intervalMinutes:{type:"integer",minimum:1,maximum:720}},required:["delivery","intervalMinutes"]},{type:"null"}]}},required:["slack","teams"]},{type:"null"}]},approvers:{minItems:1,maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}}},required:["name","approvers"]}},approvers:{maxItems:50,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"user"},canonicalIdentityId:{type:"string",pattern:"^idn_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},required:["type","canonicalIdentityId"]},{type:"object",properties:{type:{type:"string",const:"group"},canonicalGroupId:{type:"string",pattern:"^cg_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},quorum:{type:"integer",exclusiveMinimum:0,maximum:9007199254740991}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"manager"},managerSelector:{oneOf:[{type:"object",properties:{type:{type:"string",const:"legacy_directory_any"}},required:["type"]},{type:"object",properties:{type:{type:"string",const:"connector"},connectorInstanceId:{type:"string",maxLength:255}},required:["type","connectorInstanceId"]},{type:"object",properties:{type:{type:"string",const:"directory"},workosDirectoryId:{type:"string",maxLength:255}},required:["type","workosDirectoryId"]}]}},required:["type"]}]}},approverProvisioningImpactAcknowledged:{type:"boolean"}},required:[]},"access.updateProfile":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{addExcludedGroupIds:{description:"Add excluded canonical groups atomically.",maxItems:100,type:"array",items:{type:"string",minLength:1}},removeExcludedGroupIds:{description:"Remove excluded canonical groups atomically.",maxItems:100,type:"array",items:{type:"string",minLength:1}},addGroupIds:{description:"Add included canonical groups atomically, preserving other groups.",maxItems:100,type:"array",items:{type:"string",minLength:1}},removeGroupIds:{description:"Remove included canonical groups atomically, preserving other groups.",maxItems:100,type:"array",items:{type:"string",minLength:1}},addRoleIds:{description:"Attach access roles atomically, preserving existing role assignments.",maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},removeRoleIds:{description:"Remove access roles atomically, preserving other assignments.",maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},name:{type:"string"},description:{type:["null","string"]},isDefault:{description:"Mark this profile as the space's default. At most one published profile per space can hold it. It labels the profile; it does not widen who matches, which matchingCriteria decides on its own.",type:"boolean"},matchingCriteria:{type:"object",properties:{matchType:{type:"string",enum:["any","all"]},includedGroupIds:{default:[],description:`People in these groups match this profile. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}},excludedGroupIds:{default:[],description:`People in these groups never match this profile, even if they also match an included group. Look ids up with the organization "list groups" operation using scope=space and this space's id: unscoped it lists the whole organization, including groups this space cannot use.`,maxItems:100,type:"array",items:{type:"string",minLength:1}}},required:["matchType"]},roleIds:{description:'The access roles people matching this profile can request. Look ids up with the access-roles "list" operation; each must be in this space and not archived. Draft roles are accepted, so a role can be attached before it is published.',maxItems:200,type:"array",items:{type:"string",pattern:"^arol_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},required:[]},"access.updateRole":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"},description:{type:["null","string"]},requestsEnabled:{type:"boolean"},connectorInstanceId:{type:["null","string"]},accessProfileId:{type:["null","string"]},accessPolicyId:{type:["null","string"]},provisioningMethodType:{anyOf:[{type:"string",enum:["manual","workflow","linkedGroup"]},{type:"null"}]},provisioningConfig:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},externalId:{type:["null","string"]},externalData:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]}},required:[]},"applications.confirmApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{connectionId:{type:"string"}},required:[]},"applications.connectApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{label:{type:"string"},connectionConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{}},generateSuggestions:{type:"boolean"}},required:[]},"applications.createCustomIntegration":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{displayName:{type:"string"},endpointUrl:{type:"string",minLength:1},headers:{anyOf:[{type:"array",items:{type:"object",properties:{name:{type:"string"},value:{type:"string"}},required:["name","value"]}},{type:"null"}]},transport:{anyOf:[{type:"string",enum:["auto","streamable_http"]},{type:"null"}]}},required:["displayName","endpointUrl"]},"applications.duplicateApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{targetSpaceId:{type:"string",minLength:1}},required:["targetSpaceId"]},"applications.reconnectApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{connectionConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{}}},required:[]},"applications.renameIntegration":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{displayName:{type:"string",minLength:1,maxLength:120}},required:["displayName"]},"applications.setApplicationActionMode":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{actionMode:{type:"string",enum:["read_only","read_write"]}},required:["actionMode"]},"applications.setApplicationEnabled":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"]},"applications.setIntegrationEnabled":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"]},"applications.triggerApplicationSync":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{initial:{type:"boolean"}},required:[]},"applications.updateApplication":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{label:{type:"string",minLength:1,maxLength:200}},required:["label"]},"applications.updateApplicationIssueSyncSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{agentPreferences:{type:["string","null"]},mappings:{type:"array",items:{type:"object",properties:{createDefaults:{type:"array",items:{anyOf:[{type:"object",properties:{kind:{type:"string",enum:["date","datetime","time","option","text","textarea","rich-text","number","integer","boolean","url","email"]},providerField:{type:"string",minLength:1},value:{type:"string",minLength:1,maxLength:32768}},required:["kind","providerField","value"]},{type:"object",properties:{kind:{type:"string",enum:["multi-option","cascading-option","labels"]},providerField:{type:"string",minLength:1},value:{minItems:1,maxItems:100,type:"array",items:{type:"string",minLength:1,maxLength:4096}}},required:["kind","providerField","value"]}]}},caseTypeId:{type:"string"},fields:{type:"array",items:{oneOf:[{type:"object",properties:{actionField:{anyOf:[{type:"string",enum:["title","description","priority","category","assignmentGroup","assignee","requester","dueDate","labels"]},{type:"string",pattern:"^custom:[^\\s:]+$"}]},providerKind:{type:"string",enum:["date","datetime","time","option","text","textarea","rich-text","number","integer","boolean","url","email","multi-option","cascading-option","labels"]},direction:{type:"string",enum:["inbound","outbound","both"]},providerField:{type:"string"},kind:{type:"string",enum:["date","option","text","number","boolean","multi-option"]},values:{type:"array",items:{type:"object",properties:{actionValue:{type:"string"},providerValue:{type:"string"},writeBack:{type:"boolean"}},required:["actionValue","providerValue"]}}},required:["actionField","providerField"]},{type:"object",properties:{actionField:{anyOf:[{type:"string",enum:["title","description","priority","category","assignmentGroup","assignee","requester","dueDate","labels"]},{type:"string",pattern:"^custom:[^\\s:]+$"}]},providerKind:{type:"string",enum:["date","datetime","time","option","text","textarea","rich-text","number","integer","boolean","url","email","multi-option","cascading-option","labels"]},direction:{type:"string",enum:["inbound","outbound","both"]},providerField:{type:"string"},kind:{type:"string",const:"cascading"},childActionField:{anyOf:[{type:"string",enum:["title","description","priority","category","assignmentGroup","assignee","requester","dueDate","labels"]},{type:"string",pattern:"^custom:[^\\s:]+$"}]},values:{type:"array",items:{type:"object",properties:{actionValue:{type:"string"},providerValue:{type:"string"},writeBack:{type:"boolean"},children:{type:"array",items:{type:"object",properties:{actionValue:{type:"string"},providerValue:{type:"string"},writeBack:{type:"boolean"}},required:["actionValue","providerValue"]}}},required:["actionValue","providerValue"]}}},required:["actionField","providerField","kind","values"]}]}},source:{type:"string"},stages:{type:"array",items:{type:"object",properties:{providerState:{type:"string"},stageId:{type:"string"},writeBack:{type:"boolean"}},required:["providerState","stageId"]}}},required:["source"]}},pull:{type:"object",properties:{assignmentGroupIds:{type:"array",items:{type:"string"}},enabled:{type:"boolean"},sources:{type:"array",items:{type:"object",properties:{cadence:{type:"string",enum:["1m","5m","15m","60m","12h"]},enabled:{type:"boolean"},filter:{anyOf:[{oneOf:[{type:"object",properties:{kind:{type:"string",const:"all"}},required:["kind"]},{type:"object",properties:{ids:{type:"array",items:{type:"string"}},kind:{type:"string",const:"routing_container_ids"}},required:["ids","kind"]},{type:"object",properties:{ids:{type:"array",items:{type:"string"}},kind:{type:"string",const:"routing_container_ids_or_unassigned"}},required:["ids","kind"]}]},{type:"null"}]},source:{type:"string",enum:["servicenow:change_request","servicenow:incident","servicenow:sc_request","servicenow:sc_req_item","servicenow:sc_task"]}},required:["cadence","enabled","filter","source"]}},teamIds:{type:"array",items:{type:"string"}}},required:["assignmentGroupIds","enabled","teamIds"]},push:{type:"object",properties:{assignmentGroupId:{type:["string","null"]},createNew:{type:"boolean"},createSources:{type:"array",items:{type:"string"}},teamId:{type:["string","null"]},updateLinked:{type:"boolean"}},required:["assignmentGroupId","createNew","updateLinked"]},autoAddress:{type:"object",properties:{enabled:{type:"boolean"},replyMode:{type:"string",enum:["mention","always","ambient"]},sources:{type:"array",items:{type:"string"}}},required:["enabled"]}},required:["pull","push","autoAddress"]},"assignment-groups.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:200},sources:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"canonical_group"},canonicalGroupId:{type:"string",minLength:1}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"imported_assignment_group"},importedAssignmentGroupId:{type:"string",minLength:1}},required:["type","importedAssignmentGroupId"]},{type:"object",properties:{type:{type:"string",const:"action_user"},userId:{type:"string",minLength:1}},required:["type","userId"]}]}},kind:{not:{}},connectorInstanceId:{not:{}},externalProviderGroupId:{not:{}}},required:["name","sources"]},"assignment-groups.setImportEnabled":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"]},"assignment-groups.setImportSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{changes:{minItems:1,maxItems:100,type:"array",items:{type:"object",properties:{connectorInstanceId:{type:"string",minLength:1},enabled:{type:"boolean"}},required:["connectorInstanceId","enabled"]}}},required:["changes"]},"assignment-groups.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:200},sources:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"canonical_group"},canonicalGroupId:{type:"string",minLength:1}},required:["type","canonicalGroupId"]},{type:"object",properties:{type:{type:"string",const:"imported_assignment_group"},importedAssignmentGroupId:{type:"string",minLength:1}},required:["type","importedAssignmentGroupId"]},{type:"object",properties:{type:{type:"string",const:"action_user"},userId:{type:"string",minLength:1}},required:["type","userId"]}]}},kind:{not:{}},connectorInstanceId:{not:{}},externalProviderGroupId:{not:{}}},required:[]},"assignment-rules.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{conditions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"category"},categoryId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","categoryId"]},{type:"object",properties:{type:{type:"string",const:"priority"},priority:{type:"string",enum:["urgent","high","medium","low","none"]},operator:{anyOf:[{type:"string",enum:["is","is_not","at_least","at_most"]},{type:"null"}]}},required:["type","priority"]},{type:"object",properties:{type:{type:"string",const:"status"},statusId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","statusId"]},{type:"object",properties:{type:{type:"string",const:"label"},labelId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","labelId"]},{type:"object",properties:{type:{type:"string",const:"time"},timezone:{type:"string",minLength:1},daysMask:{type:"integer",minimum:1,maximum:127},startMinute:{type:"integer",minimum:0,maximum:1439},endMinute:{type:"integer",minimum:0,maximum:1439},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","timezone","daysMask","startMinute","endMinute"]}]}},actions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{targetType:{type:"string",const:"user"},userId:{type:"string",minLength:1}},required:["targetType","userId"]},{type:"object",properties:{targetType:{type:"string",const:"group"},assignmentGroupId:{type:"string",minLength:1}},required:["targetType","assignmentGroupId"]}]}},matchMode:{type:"string",enum:["all","any"]}},required:["conditions","actions"]},"assignment-rules.reorder":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{ruleIds:{type:"array",items:{type:"string",minLength:1}}},required:["ruleIds"]},"assignment-rules.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{isEnabled:{type:"boolean"},matchMode:{type:"string",enum:["all","any"]},conditions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{type:{type:"string",const:"category"},categoryId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","categoryId"]},{type:"object",properties:{type:{type:"string",const:"priority"},priority:{type:"string",enum:["urgent","high","medium","low","none"]},operator:{anyOf:[{type:"string",enum:["is","is_not","at_least","at_most"]},{type:"null"}]}},required:["type","priority"]},{type:"object",properties:{type:{type:"string",const:"status"},statusId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","statusId"]},{type:"object",properties:{type:{type:"string",const:"label"},labelId:{type:"string",minLength:1},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","labelId"]},{type:"object",properties:{type:{type:"string",const:"time"},timezone:{type:"string",minLength:1},daysMask:{type:"integer",minimum:1,maximum:127},startMinute:{type:"integer",minimum:0,maximum:1439},endMinute:{type:"integer",minimum:0,maximum:1439},operator:{anyOf:[{type:"string",enum:["is","is_not"]},{type:"null"}]}},required:["type","timezone","daysMask","startMinute","endMinute"]}]}},actions:{minItems:1,type:"array",items:{oneOf:[{type:"object",properties:{targetType:{type:"string",const:"user"},userId:{type:"string",minLength:1}},required:["targetType","userId"]},{type:"object",properties:{targetType:{type:"string",const:"group"},assignmentGroupId:{type:"string",minLength:1}},required:["targetType","assignmentGroupId"]}]}}},required:[]},"automations.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1},description:{default:null,type:["string","null"]},slugId:{type:"string"},paused:{default:!1,type:"boolean"},runAsUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},config:{$ref:"#/components/schemas/AutomationVersionConfigInput"}},required:["name"]},"automations.createTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",oneOf:[{type:"object",properties:{displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"webhook"},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["triggerKind"]},{type:"object",properties:{config:{type:"object",properties:{eventKind:{type:"string",enum:["case.created","case.status_changed","case.priority_changed","case.assigned","case.category_changed","case.archived","case.reopened","case.labels_changed","case.escalated","comment.created"]},caseTypeIds:{minItems:1,type:"array",items:{type:"string",minLength:1}},filter:{type:"object",properties:{toStatusType:{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},toStageCategory:{type:"string",enum:["todo","in_progress","done","cancelled"]},toStatusId:{type:"string",minLength:1},toPriority:{type:"string",enum:["urgent","high","medium","low","none"]},toAssigneeUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},toCategoryId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},labelChange:{type:"string",enum:["added","removed"]},addedLabelId:{type:"string",minLength:1},removedLabelId:{type:"string",minLength:1},escalationPolicyResult:{minItems:1,type:"array",items:{type:"string",enum:["rule","default","preserved","none"]}}}}},required:["eventKind"]},displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"case"},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["config","triggerKind"]},{type:"object",properties:{connectorInstanceId:{type:"string",minLength:1},connectorSlug:{type:"string",minLength:1},displayName:{type:"string",minLength:1},fieldValues:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},triggerKind:{type:"string",const:"application"},triggerSlug:{type:"string",minLength:1},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["connectorInstanceId","connectorSlug","triggerKind","triggerSlug"]}]},"automations.createVersion":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{config:{$ref:"#/components/schemas/AutomationVersionConfigInput"}},required:["config"]},"automations.createWorkflowTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",oneOf:[{type:"object",properties:{displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"webhook"},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["triggerKind"]},{type:"object",properties:{config:{type:"object",properties:{eventKind:{type:"string",enum:["case.created","case.status_changed","case.priority_changed","case.assigned","case.category_changed","case.archived","case.reopened","case.labels_changed","case.escalated","comment.created"]},caseTypeIds:{minItems:1,type:"array",items:{type:"string",minLength:1}},filter:{type:"object",properties:{toStatusType:{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},toStageCategory:{type:"string",enum:["todo","in_progress","done","cancelled"]},toStatusId:{type:"string",minLength:1},toPriority:{type:"string",enum:["urgent","high","medium","low","none"]},toAssigneeUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},toCategoryId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},labelChange:{type:"string",enum:["added","removed"]},addedLabelId:{type:"string",minLength:1},removedLabelId:{type:"string",minLength:1},escalationPolicyResult:{minItems:1,type:"array",items:{type:"string",enum:["rule","default","preserved","none"]}}}}},required:["eventKind"]},displayName:{type:"string",minLength:1},triggerKind:{type:"string",const:"case"},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["config","triggerKind"]},{type:"object",properties:{connectorInstanceId:{type:"string",minLength:1},connectorSlug:{type:"string",minLength:1},displayName:{type:"string",minLength:1},fieldValues:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},triggerKind:{type:"string",const:"application"},triggerSlug:{type:"string",minLength:1},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:["connectorInstanceId","connectorSlug","triggerKind","triggerSlug"]}]},"automations.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1},description:{type:["string","null"]},slugId:{type:"string"},paused:{type:"boolean"},runAsUserId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:[]},"automations.updateTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{integrationId:{not:{}},triggerSlug:{not:{}},displayName:{type:"string",minLength:1},triggerConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:[]},"automations.updateWorkflowTrigger":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{integrationId:{not:{}},triggerSlug:{not:{}},displayName:{type:"string",minLength:1},triggerConfig:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}},userMessageTemplate:{type:["string","null"]},workflowInput:{anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]}},required:[]},"cases.addSubscribers":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{userIds:{minItems:1,maxItems:100,type:"array",items:{type:"string",minLength:1,maxLength:200}}},required:["userIds"]},"cases.comment":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{body:{type:"string",minLength:1,maxLength:20000},visibility:{type:"string",enum:["public","internal"]},turnId:{type:"string",maxLength:200}},required:["body","visibility"]},"cases.createCase":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{title:{type:"string",minLength:1},summary:{type:["string","null"]},statusId:{type:["string","null"]},priority:{type:"string",enum:["none","low","medium","high","urgent"]},categoryId:{type:["string","null"]},requesterUserId:{type:["string","null"]},assigneeUserId:{type:["string","null"]},assignmentGroupId:{type:["string","null"]},dueAt:{type:["string","null"]},availableAt:{type:["string","null"]},primaryThreadId:{type:["string","null"]},parentCaseId:{type:["string","null"]},blocksCaseId:{type:["string","null"]},caseTypeId:{type:["string","null"]},fields:{type:"object",propertyNames:{type:"string"},additionalProperties:{anyOf:[{anyOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array",items:{type:"string"}}]},{type:"null"}]}}},required:["title"]},"cases.createCategory":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:80},description:{anyOf:[{type:"string",maxLength:500},{type:"null"}]}},required:["name"]},"cases.createLabel":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:64},color:{type:["string","null"]}},required:["name"]},"cases.escalateRequest":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{reason:{anyOf:[{type:"string",maxLength:4000},{type:"null"}]}},required:[]},"cases.linkRelation":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{targetCaseIdOrIdentifier:{type:"string",minLength:1,maxLength:200},type:{type:"string",enum:["parent","blocks"]}},required:["targetCaseIdOrIdentifier"]},"cases.linkThread":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{threadId:{type:"string",minLength:1,maxLength:200},relationship:{default:"specialist",type:"string",enum:["primary","specialist"]},purpose:{anyOf:[{type:"string",maxLength:500},{type:"null"}]},metadata:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},automationId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:["threadId"]},"cases.markRead":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{mode:{type:"string",enum:["auto","manual"]}},required:[]},"cases.move":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{caseTypeId:{type:"string",minLength:1,maxLength:200},targetSpaceId:{description:"The space to move the case to. Defaults to the case's own space.",type:"string",minLength:1,maxLength:200}},required:[]},"cases.search":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{question:{type:"string",minLength:1,maxLength:1000},statusType:{anyOf:[{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},{type:"null"}]},statusId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},stageCategory:{anyOf:[{type:"string",enum:["todo","in_progress","done","cancelled"]},{type:"null"}]},categoryId:{type:["string","null"]},limit:{default:5,type:"integer",minimum:1,maximum:20}},required:["question"]},"cases.spawnThread":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},relationship:{default:"specialist",type:"string",enum:["primary","specialist"]},purpose:{anyOf:[{type:"string",maxLength:500},{type:"null"}]},metadata:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{}},{type:"null"}]},startMuted:{default:!1,type:"boolean"},automationId:{type:"string",minLength:1}},required:["automationId"]},"cases.updateCase":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{title:{type:"string"},summary:{type:["string","null"]},statusId:{type:"string"},statusType:{type:"string",enum:["triage","open","in_progress","blocked","done","cancelled"]},stageCategory:{type:"string",enum:["todo","in_progress","done","cancelled"]},priority:{type:"string",enum:["none","low","medium","high","urgent"]},categoryId:{type:["string","null"]},requesterUserId:{type:["string","null"]},assigneeUserId:{type:["string","null"]},assigneeActorType:{anyOf:[{type:"string",enum:["agent"]},{type:"null"}]},assignmentGroupId:{type:["string","null"]},assigneeGroupId:{type:"string"},dueAt:{type:["string","null"]},availableAt:{type:["string","null"]},labelIds:{type:"array",items:{type:"string",minLength:1}},relevantKnowledgeIds:{maxItems:200,type:"array",items:{type:"string",minLength:1}},relevantSkillIds:{maxItems:200,type:"array",items:{type:"string",minLength:1}},fields:{type:"object",propertyNames:{type:"string"},additionalProperties:{anyOf:[{anyOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array",items:{type:"string"}}]},{type:"null"}]}}},required:[]},"cases.uploadAttachment":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{file:{minItems:1,maxItems:10,type:"array",items:{type:"string",format:"binary",contentEncoding:"binary",minLength:1,maxLength:10485760}}},required:["file"]},"directory.createAdminPortalLink":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{intent:{default:"dsync",type:"string",enum:["domain_verification","sso","dsync"]},returnUrl:{type:"string",format:"uri"},successUrl:{type:"string",format:"uri"}}},"directory.searchGroups":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{cursor:{anyOf:[{type:"object",properties:{groupId:{type:"string"},memberCount:{type:"integer",minimum:0,maximum:9007199254740991},name:{type:"string"}},required:["groupId","memberCount","name"]},{type:"null"}]},limit:{type:"integer",exclusiveMinimum:0,maximum:500},queries:{type:"array",items:{type:"string"}},query:{type:"string"}}},"directory.searchUsers":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{cursor:{anyOf:[{type:"object",properties:{matchRank:{type:"number"},sortKey:{type:"string"},userId:{type:"string"}},required:["matchRank","sortKey","userId"]},{type:"null"}]},limit:{type:"integer",exclusiveMinimum:0,maximum:500},query:{type:"string"}},required:["query"]},"knowledge.bulkUpdateConfluenceConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateGoogleDriveConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateNotionConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateSharePointConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.bulkUpdateSimpplrConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.createUpload":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{file:{type:"string",format:"binary",contentEncoding:"binary",minLength:1,maxLength:52428800},folder:{type:"string",minLength:1,maxLength:80},path:{description:"Slash-separated relative subfolder path.",type:"string"},availability:{type:"string",enum:["org","space"]}},required:["file","folder","availability"]},"knowledge.renameFolder":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"}},required:["name"]},"knowledge.renameSubfolder":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string"}},required:["name"]},"knowledge.replaceGithubKnowledgeRepos":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{repos:{maxItems:500,type:"array",items:{type:"object",properties:{branch:{type:"string",minLength:1},repoFullName:{type:"string",pattern:"^[^/\\s]+\\/[^/\\s]+$"}},required:["branch","repoFullName"]}}},required:["repos"]},"knowledge.search":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{question:{type:"string",minLength:1,maxLength:500},provider:{type:["string","null"]},limit:{default:5,type:"integer",minimum:1,maximum:10}},required:["question"]},"knowledge.searchNotionConnectorDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{cursor:{type:"string"},query:{type:"string"},limit:{type:"number"}},required:[]},"knowledge.updateConfluenceConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateConfluenceConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{type:"object",properties:{mode:{type:"string",const:"selected"},spaces:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},key:{type:["string","null"]},name:{type:["string","null"]}},required:["id"]}}},required:["mode","spaces"]}},required:["selection"]},"knowledge.updateFolderDocuments":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateGithubConnectorRepos":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{repos:{maxItems:500,type:"array",items:{type:"string",pattern:"^[^/\\s]+\\/[^/\\s]+$"}}},required:["repos"]},"knowledge.updateGoogleDriveConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateGoogleDriveConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{oneOf:[{type:"object",properties:{mode:{type:"string",const:"all"},corpora:{type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{type:["string","null"]}},required:["id"]}}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"selected"},corpora:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{type:["string","null"]}},required:["id"]}}},required:["mode","corpora"]}]}},required:["selection"]},"knowledge.updateNotionConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateNotionConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{oneOf:[{type:"object",properties:{mode:{type:"string",const:"all"},items:{type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},object:{type:"string",enum:["page","data_source"]},title:{type:["string","null"]},url:{type:["string","null"]},lastEditedTime:{type:["string","null"]}},required:["id","object"]}}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"selected"},items:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},object:{type:"string",enum:["page","data_source"]},title:{type:["string","null"]},url:{type:["string","null"]},lastEditedTime:{type:["string","null"]}},required:["id","object"]}}},required:["mode","items"]}]}},required:["selection"]},"knowledge.updateSharePointConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateSharePointConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{type:"object",properties:{mode:{type:"string",const:"selected"},sites:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{type:["string","null"]},displayName:{type:["string","null"]},webUrl:{type:["string","null"]}},required:["id"]}}},required:["mode","sites"]}},required:["selection"]},"knowledge.updateSimpplrConnectorDocument":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"knowledge.updateSimpplrConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{selection:{type:"object",properties:{mode:{type:"string",const:"selected"},sites:{maxItems:500,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},name:{type:["string","null"]}},required:["id"]}}},required:["mode","sites"]}},required:["selection"]},"knowledge.updateSlackConnectorAvailability":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]}},required:["availability"]},"knowledge.updateSlackConnectorBackfill":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{depth:{anyOf:[{type:"number",minimum:1},{type:"string",const:"all"}]}},required:["depth"]},"knowledge.updateSlackConnectorChannelAvailability":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{channelId:{type:"string",minLength:1},availability:{type:"string",enum:["org","space"]}},required:["channelId","availability"]},"knowledge.updateSlackConnectorSelection":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{excludedChannelIds:{type:"array",items:{type:"string",minLength:1}}},required:["excludedChannelIds"]},"knowledge.updateUpload":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{availability:{type:"string",enum:["org","space"]},visible:{type:"boolean"}},required:[]},"labels.assignNames":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{entityType:{type:"string",enum:["agent","workflow","skill","access_profile","access_policy","access_role"]},entityId:{type:"string",minLength:1,maxLength:200},names:{maxItems:25,type:"array",items:{type:"string",minLength:1,maxLength:60}},mode:{type:"string",enum:["set","add","remove"]}},required:["entityType","entityId","names","mode"]},"labels.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:60},color:{anyOf:[{type:"string",pattern:"^#[0-9a-f]{6}$"},{type:"null"}]}},required:["name"]},"labels.resolveNames":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{names:{maxItems:25,type:"array",items:{type:"string",minLength:1,maxLength:60}}},required:["names"]},"labels.setLabels":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{labelIds:{maxItems:25,type:"array",items:{type:"string",pattern:"^lbl_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}},required:["labelIds"]},"labels.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:60},color:{anyOf:[{type:"string",pattern:"^#[0-9a-f]{6}$"},{type:"null"}]}},required:[]},"organization-github.confirmInstall":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{connectionId:{type:"string",minLength:1}},required:["connectionId"]},"organization-slack.createChannelSettingsRoute":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{spaceId:{type:"string",minLength:1}},required:["spaceId"]},"organization-slack.startInstall":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{returnTo:{type:"string",maxLength:2048},reauthorize:{type:"boolean"}}},"organization-slack.updateChannelEmojis":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{emojis:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{type:"string"}},{type:"null"}]}},required:["emojis"]},"organization-slack.updateChannelIntakeMode":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{intakeMode:{type:"string",enum:["converse","file_only"]}},required:["intakeMode"]},"organization-slack.updateChannelSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{responseMode:{type:"string",enum:["mention","always","ambient"]},threadReplyMode:{type:"string",enum:["mention","always","ambient"]},ambientInstruction:{type:["string","null"]},ambientRules:{anyOf:[{type:"object",properties:{respondKeywords:{type:"array",items:{type:"string"}},ignoreKeywords:{type:"array",items:{type:"string"}},respondRegex:{type:["string","null"]}}},{type:"null"}]}},required:["responseMode","threadReplyMode"]},"organization-spaces.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{description:{type:"string",minLength:1,maxLength:1000},name:{type:"string",minLength:1},organizationRequestRoutingEnabled:{default:!1,type:"boolean"},slug:{type:"string"}},required:["description","name"]},"organization-spaces.setEscalationMute":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{escalationMuteEnabled:{type:"boolean"}},required:["escalationMuteEnabled"]},"organization-spaces.setOrganizationRequestRouting":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{organizationRequestRoutingEnabled:{type:"boolean"}},required:["organizationRequestRoutingEnabled"]},"organization-teams.createChannelSettingsRoute":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{spaceId:{type:"string",minLength:1}},required:["spaceId"]},"organization-teams.createGraphSubscription":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{scope:{type:"string",enum:["tenant","channel"]},teamId:{type:"string",minLength:1},channelId:{type:"string",minLength:1}}},"organization-teams.startInstall":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{returnTo:{type:"string",maxLength:2048},force:{type:"boolean"}}},"organization-teams.updateChannelEmojis":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{emojis:{anyOf:[{type:"object",propertyNames:{type:"string"},additionalProperties:{type:"string"}},{type:"null"}]}},required:["emojis"]},"organization-teams.updateChannelIntakeMode":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{intakeMode:{type:"string",enum:["converse","file_only"]}},required:["intakeMode"]},"organization-teams.updateChannelSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{responseMode:{type:"string",enum:["mention","always","ambient"]},threadReplyMode:{type:"string",enum:["mention","always","ambient"]},ambientInstruction:{type:["string","null"]},ambientRules:{anyOf:[{type:"object",properties:{respondKeywords:{type:"array",items:{type:"string"}},ignoreKeywords:{type:"array",items:{type:"string"}},respondRegex:{type:["string","null"]}}},{type:"null"}]}},required:["responseMode","threadReplyMode"]},"organizations.createInvite":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{email:{type:"string",minLength:1},expiresInDays:{type:"integer",minimum:1,maximum:30},roleSlug:{type:"string",enum:["admin","operator"]}},required:["email","roleSlug"]},"organizations.createMembership":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{email:{type:"string",minLength:1},roleSlug:{type:"string",enum:["admin","operator"]}},required:["email","roleSlug"]},"organizations.updateMembership":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{roleSlug:{anyOf:[{type:"string",enum:["admin","operator"]},{type:"null"}]},status:{anyOf:[{type:"string",enum:["active","revoked"]},{type:"null"}]},statusReason:{type:["string","null"]}},required:[]},"organizations.updateSettings":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1,maxLength:80},showProfilePictures:{type:"boolean"}}},"sessions.createOrganizationRequestSession":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},caseId:{type:"string",pattern:"^case_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},reuseExisting:{type:"boolean"},destinationSpaceId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}}},"sessions.createOrganizationRequestSessionAndSubmit":{$schema:"https://json-schema.org/draft/2020-12/schema",anyOf:[{type:"object",properties:{prewarmOnly:{type:"boolean",const:!0}},required:["prewarmOnly"]},{type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},caseId:{type:"string",pattern:"^case_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},reuseExisting:{type:"boolean"},destinationSpaceId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},initialMessage:{$ref:"#/components/schemas/PublicSessionInitialMessageInput"}},required:["initialMessage"]}]},"sessions.createSession":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},automation:{$ref:"#/components/schemas/PublicSessionCreateAutomationInput"},visibility:{type:"string",enum:["team","private"]}},required:["automation"]},"sessions.createSessionAndSubmit":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},automation:{$ref:"#/components/schemas/PublicSessionCreateAutomationInput"},visibility:{type:"string",enum:["team","private"]},initialMessage:{$ref:"#/components/schemas/PublicSessionInitialMessageInput"}},required:["automation","initialMessage"]},"sessions.createWorkflowSuggestionSession":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"sessions.intakeRequest":{$schema:"https://json-schema.org/draft/2020-12/schema",anyOf:[{type:"object",properties:{prewarmOnly:{type:"boolean",const:!0}},required:["prewarmOnly"]},{type:"object",properties:{id:{type:"string",format:"uuid",pattern:"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},caseId:{type:"string",pattern:"^case_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},reuseExisting:{type:"boolean"},destinationSpaceId:{anyOf:[{type:"string",minLength:1},{type:"null"}]},initialMessage:{$ref:"#/components/schemas/PublicSessionInitialMessageInput"}},required:["initialMessage"]}]},"sessions.rename":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{title:{type:"string",maxLength:120}},required:["title"]},"sessions.setVisibility":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{visibility:{type:"string",enum:["team","private"]}},required:["visibility"]},"sessions.submitMessage":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{clientMessageId:{type:"string",minLength:1},content:{type:"string",minLength:1},mode:{type:"string",enum:["prompt","steer","followUp"]},model:{anyOf:[{type:"object",properties:{id:{type:"string",minLength:1},provider:{type:"string",minLength:1}},required:["id","provider"]},{type:"null"}]},thinkingLevel:{anyOf:[{type:"string",enum:["off","minimal","low","medium","high","xhigh","max"]},{type:"null"}]},timezone:{anyOf:[{type:"string",maxLength:100},{type:"null"}]},page:{anyOf:[{type:"string",maxLength:200},{type:"null"}]},mentions:{maxItems:50,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},type:{type:"string",enum:["case","user","automation","access_policy","access_role","access_profile"]}},required:["id","type"]}},skills:{maxItems:8,type:"array",items:{type:"object",properties:{skillId:{type:"string",minLength:1}},required:["skillId"]}},suppressAutomationWake:{type:"boolean"}},required:["clientMessageId","content","mode"]},"sessions.updateFileVisibility":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{directories:{type:"array",items:{type:"string"}},previewPath:{type:["string","null"]}},required:["directories"]},"sessions.uploadFiles":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{file:{minItems:1,maxItems:10,type:"array",items:{type:"string",format:"binary",contentEncoding:"binary",maxLength:10485760}}},required:["file"]},"skills.createSkill":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{description:{type:"string",minLength:1},scope:{type:"string",enum:["system","org"]},slug:{type:"string",minLength:1},title:{type:"string",minLength:1}},required:["description","scope","slug","title"]},"skills.createSkillVersion":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{files:{minItems:1,maxItems:200,type:"array",items:{type:"object",properties:{path:{type:"string",minLength:1},contentBase64:{type:"string",minLength:1}},required:["path","contentBase64"]}}},required:["files"]},"skills.updateSkillTags":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{tags:{maxItems:32,type:"array",items:{type:"string",minLength:1,maxLength:64}},expectedTags:{maxItems:32,type:"array",items:{type:"string",minLength:1,maxLength:64}}},required:["tags"]},"space-access-roles.archive":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{replacementRoleId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:[]},"space-access-roles.create":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","active"]},name:{type:"string",minLength:1},description:{type:["string","null"]},permissionSlugs:{type:"array",items:{type:"string"}}},required:["name","permissionSlugs"]},"space-access-roles.duplicate":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{name:{type:"string",minLength:1}},required:["name"]},"space-access-roles.update":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{status:{type:"string",enum:["draft","active"]},name:{type:"string",minLength:1},description:{type:["string","null"]},permissionSlugs:{type:"array",items:{type:"string"}}},required:["name","permissionSlugs"]},"space-action-grants.replaceGrants":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{actionSlugs:{type:"array",items:{type:"string"}}},required:["actionSlugs"]},"space-action-grants.replaceRoles":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{blockedRoleIds:{type:"array",items:{type:"string",minLength:1}}},required:["blockedRoleIds"]},"spaces.addGroupMembers":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{accessRoleId:{type:"string"},roleSlug:{type:"string"},groupId:{type:"string",minLength:1}},required:["groupId"]},"spaces.addMember":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{accessRoleId:{type:"string"},roleSlug:{type:"string"},email:{type:"string",minLength:1}},required:["email"]},"spaces.setDefaultAssignment":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{defaultRoutingAssignmentGroupId:{anyOf:[{type:"string",minLength:1},{type:"null"}]}},required:["defaultRoutingAssignmentGroupId"]},"spaces.updateMember":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{accessRoleId:{type:"string"},roleSlug:{type:"string"}},required:[]},"spaces.updateProfile":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{disabledSections:{anyOf:[{maxItems:14,type:"array",items:{type:"string",enum:["inbox","dashboards","cases","agents","workflows","applications","skills","knowledge","forms","secrets","environments","access","iga","entities"]}},{type:"null"}]},agentPreferences:{anyOf:[{type:"string",maxLength:1000},{type:"null"}]},description:{anyOf:[{type:"string",maxLength:1000},{type:"null"}]},name:{type:"string",minLength:1},slug:{type:"string",minLength:1}},required:[]},"workflows.createWorkflow":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{description:{anyOf:[{type:"string",maxLength:2000},{type:"null"}]},key:{type:"string",minLength:1,maxLength:120,pattern:"^(?!(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$)[a-z0-9](?:[a-z0-9-]{0,118}[a-z0-9])?$"},metadata:{$ref:"#/components/schemas/PublicWorkflowMetadataInput"},name:{type:"string",minLength:1,maxLength:200},source:{$ref:"#/components/schemas/PublicWorkflowSource"}},required:["key","metadata","name","source"]},"workflows.createWorkflowRun":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{input:{$ref:"#/components/schemas/JsonValue"},workflowId:{type:"string",minLength:1,maxLength:200}},required:["input","workflowId"]},"workflows.testWorkflowRevision":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{input:{$ref:"#/components/schemas/JsonValue"}},required:["input"]},"workflows.updateWorkflow":{$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",additionalProperties:!1,properties:{baseRevisionId:{type:"string",minLength:1,maxLength:200},description:{anyOf:[{type:"string",maxLength:2000},{type:"null"}]},metadata:{$ref:"#/components/schemas/PublicWorkflowMetadataInput"},name:{type:"string",minLength:1,maxLength:200},source:{$ref:"#/components/schemas/PublicWorkflowSource"}},required:["baseRevisionId","metadata","name","source"]}},components:{schemas:{AutomationVersionConfigInput:{type:"object",properties:{systemPrompt:{type:"string"},model:{type:"object",properties:{provider:{type:"string",minLength:1},modelId:{type:"string",minLength:1}},required:["provider","modelId"]},reasoning:{type:"string",enum:["off","low","medium","high","xhigh","max"]},runtime:{oneOf:[{type:"object",properties:{runtimeBackend:{type:"string",const:"sandbox"}},required:["runtimeBackend"]},{type:"object",properties:{runtimeBackend:{type:"string",const:"thread-do"},toolExecutionBackend:{type:"string",enum:["dynamic-worker","just-bash","pi-builtins"]}},required:["runtimeBackend","toolExecutionBackend"]}]},sandboxEnvironmentId:{default:null,anyOf:[{type:"string",minLength:1},{type:"null"}]},sandboxInstanceId:{default:null,anyOf:[{type:"string",minLength:1},{type:"null"}]},environmentAccess:{default:"all",type:"string",enum:["all","selected"]},environmentIds:{default:[],type:"array",items:{type:"string",minLength:1}},tools:{default:[],type:"array",items:{type:"object",properties:{kind:{type:"string",minLength:1},enabled:{type:"boolean"},config:{type:"object",propertyNames:{type:"string"},additionalProperties:{$ref:"#/components/schemas/JsonValue"}}},required:["kind","enabled"]}},skillIds:{default:[],type:"array",items:{type:"string",minLength:1}},mcpServerIds:{default:[],type:"array",items:{type:"string",minLength:1}},nativeApiServerIds:{maxItems:100,type:"array",items:{type:"string",minLength:1}},nativeApiLevels:{type:"object",propertyNames:{type:"string",minLength:1},additionalProperties:{minItems:1,maxItems:3,type:"array",items:{type:"string",enum:["read","change","delete"]}}},mcpToolAllowlists:{type:"object",propertyNames:{type:"string"},additionalProperties:{type:"array",items:{type:"string"}}},secretIds:{default:[],type:"array",items:{type:"string",minLength:1}},browserEnabled:{default:!1,type:"boolean"},browserProfiles:{oneOf:[{type:"object",properties:{mode:{type:"string",const:"none"}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"default"}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"runner"}},required:["mode"]},{type:"object",properties:{mode:{type:"string",const:"selected"},ids:{minItems:1,maxItems:100,type:"array",items:{type:"string",minLength:1}}},required:["mode","ids"]}]},loginIds:{maxItems:200,type:"array",items:{type:"string",minLength:1}},workflowBuilderEnabled:{default:!1,type:"boolean"},permissions:{type:"object",properties:{workflows:{type:"object",properties:{mode:{type:"string",enum:["all","selected","none"]},workflowIds:{default:[],maxItems:500,type:"array",items:{type:"string",minLength:1}}},required:["mode"]},cases:{type:"string",enum:["none","read","write"]},accessProfiles:{type:"string",enum:["none","read","write"]},accessPolicies:{type:"string",enum:["none","read","write"]},accessRoles:{type:"string",enum:["none","read","write"]},spaceRoles:{type:"string",enum:["none","read","write"]},labels:{default:"write",type:"string",enum:["none","read","write"]},forms:{default:"none",type:"string",enum:["none","read","write"]},agents:{default:"none",type:"string",enum:["none","read","write"]},dashboards:{default:"none",type:"string",enum:["none","read","write"]},applications:{default:"none",type:"string",enum:["none","read","write"]},vault:{default:"none",type:"string",enum:["none","read","write"]},database:{default:"none",type:"string",enum:["none","read","write"]},environments:{default:"none",type:"string",enum:["none","read","write"]},knowledge:{default:!0,type:"boolean"},knowledgeSources:{type:"object",properties:{spacePublic:{type:"boolean"},spaceInternal:{type:"boolean"},otherSpacesPublic:{type:"boolean"}},required:["spacePublic","spaceInternal","otherSpacesPublic"]},directory:{default:!0,type:"boolean"},editSelf:{default:!1,type:"boolean"},createSkills:{type:"boolean"}},required:["workflows","cases","accessProfiles","accessPolicies","accessRoles","spaceRoles","createSkills"]},triggers:{type:"array",items:{$ref:"#/components/schemas/AutomationCronTriggerInput"}},notifications:{maxItems:20,type:"array",items:{oneOf:[{type:"object",properties:{channel:{type:"string",enum:["inbox","email","slack_dm","teams_dm"]},on:{type:"string",enum:["start","failure"]},userIds:{maxItems:50,type:"array",items:{type:"string",minLength:1}}},required:["channel","on","userIds"]},{type:"object",properties:{channel:{type:"string",const:"slack_channel"},on:{type:"string",enum:["start","failure"]},channelId:{type:"string",minLength:1},channelName:{type:"string",maxLength:200}},required:["channel","on","channelId"]},{type:"object",properties:{channel:{type:"string",const:"teams_channel"},on:{type:"string",enum:["start","failure"]},teamId:{type:"string",minLength:1},channelId:{type:"string",minLength:1},channelName:{type:"string",maxLength:200}},required:["channel","on","teamId","channelId"]}]}},knowledge:{default:null,anyOf:[{$ref:"#/components/schemas/JsonValue"},{type:"null"}]},allowedAutomationIds:{default:[],type:"array",items:{type:"string",minLength:1}},allowAllAutomations:{type:"boolean"},automationBuilderEnabled:{default:!1,type:"boolean"},subautomationsEnabled:{type:"boolean"}},required:["systemPrompt","model","reasoning","runtime","subautomationsEnabled"],additionalProperties:!1},JsonValue:{anyOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"null"},{items:{},type:"array"},{additionalProperties:{},type:"object"}]},AutomationCronTriggerInput:{anyOf:[{type:"string",minLength:1},{type:"object",properties:{cron:{type:"string",minLength:1},userMessageTemplate:{type:["string","null"]},timezone:{type:["string","null"]}},required:["cron"]}]},PublicSessionInitialMessageInput:{type:"object",properties:{clientMessageId:{type:"string",minLength:1},content:{type:"string",minLength:1},mode:{type:"string",enum:["prompt","steer","followUp"]},model:{anyOf:[{type:"object",properties:{id:{type:"string",minLength:1},provider:{type:"string",minLength:1}},required:["id","provider"]},{type:"null"}]},thinkingLevel:{anyOf:[{type:"string",enum:["off","minimal","low","medium","high","xhigh","max"]},{type:"null"}]},timezone:{anyOf:[{type:"string",maxLength:100},{type:"null"}]},page:{anyOf:[{type:"string",maxLength:200},{type:"null"}]},mentions:{maxItems:50,type:"array",items:{type:"object",properties:{id:{type:"string",minLength:1},type:{type:"string",enum:["case","user","automation","access_policy","access_role","access_profile"]}},required:["id","type"]}},skills:{maxItems:8,type:"array",items:{type:"object",properties:{skillId:{type:"string",minLength:1}},required:["skillId"]}},suppressAutomationWake:{type:"boolean"}},required:["clientMessageId","content","mode"]},PublicSessionCreateAutomationInput:{type:"object",properties:{automationId:{type:"string",minLength:1},automationVersionId:{type:"string",minLength:1},version:{type:"number"},attachedSkills:{type:"array",items:{type:"object",properties:{skillVersionId:{type:"string",minLength:1}},required:["skillVersionId"]}},enabledSkillIds:{type:"array",items:{type:"string",minLength:1}},disabledSkillIds:{type:"array",items:{type:"string",minLength:1}},enabledMcpServerIds:{type:"array",items:{type:"string",minLength:1}},disabledMcpServerIds:{type:"array",items:{type:"string",minLength:1}}},required:["automationId","automationVersionId","version"]},PublicWorkflowMetadataInput:{type:"object",properties:{inputs:{$ref:"#/components/schemas/PublicWorkflowJsonSchemaObject"},outputs:{default:null,anyOf:[{$ref:"#/components/schemas/PublicWorkflowJsonSchemaObject"},{type:"null"}]}},required:["inputs"],additionalProperties:!1},PublicWorkflowJsonSchemaObject:{type:"object",properties:{type:{type:"string",const:"object"}},required:["type"],additionalProperties:{}},PublicWorkflowSource:{type:"object",properties:{files:{minItems:1,maxItems:1,type:"array",items:{$ref:"#/components/schemas/PublicWorkflowSourceFile"}}},required:["files"],additionalProperties:!1},PublicWorkflowSourceFile:{type:"object",properties:{content:{type:"string",minLength:1,maxLength:1e6,description:"Workflow source text. OpenAPI maxLength counts characters; the server also enforces an encoded UTF-8 limit of 1,000,000 bytes."},path:{type:"string",const:"index.mjs"}},required:["content","path"],additionalProperties:!1}}}};var vn=Xh,Oh=new Wh.default({strict:!1,allErrors:!0,validateFormats:!1}),zh=new Map,Oo=(e)=>e.$ref?vn.components.schemas[e.$ref.split("/").at(-1)]:e;function jh(e,r){let t=vn.operations[e];if(!t)return;let n=JSON.parse(r),i=n.body;if(n.multipart_form_data){i={};let s=Oo(t).properties??{};for(let o of n.multipart_form_data){let u=o.type==="file"?o.path:o.value,l=Oo(s[o.name]??{});if(o.type!=="file"&&["number","integer","boolean"].includes(l.type))try{u=JSON.parse(u)}catch{}if(l.type==="array")(i[o.name]??=[]).push(u);else i[o.name]=u}}let a=zh.get(e);if(!a)a=Oh.compile({...t,components:vn.components}),zh.set(e,a);if(!a(i===void 0?{}:i))throw C(`Invalid request: ${Oh.errorsText(a.errors,{separator:"; "})}. Use --schema to inspect constraints.`)}function Ph(e,r){let t=vn.operations[e];if(!t||!r.input)return r;let n=Oo(t),i={};function a(o){if(!o||typeof o!=="object")return;let u=o.$ref;if(u){let l=u.split("/").at(-1);if(!(l in i))i[l]=vn.components.schemas[l],a(i[l])}for(let l of Object.values(o))a(l)}a(t);let s={...r.input.properties};for(let[o,u]of Object.entries(n.properties??{}))s[o]={...s[o],...u};return{...r,input:{...r.input,properties:s,required:[...new Set([...r.input.required??[],...n.required??[]])]},requestBodySchema:t,...Object.keys(i).length?{components:{schemas:i}}:{}}}function zo(e,r){if(r==="applications")e=e.replace(`Commands:
|
|
242
242
|
`,`Commands:
|
|
243
243
|
list List applications (alias for list-applications)
|
|
244
244
|
get Get an application (alias for get-application)
|
|
245
|
-
`);let
|
|
246
|
-
${
|
|
245
|
+
`);let t=Fv[r??""];if(t)e+=`
|
|
246
|
+
${t}
|
|
247
247
|
`;return e.replaceAll("Auto-paginate through all results (NDJSON)","Merge all pages into the original response envelope").replaceAll("<NAME>_OUTPUT","ACTION_OUTPUT").replaceAll("<NAME>_USER_AGENT_SUFFIX","ACTION_USER_AGENT_SUFFIX").replace(/(^|\n)Usage: action-api[^\n]*/gu,(n)=>{let i=new Set;return n.replace("Usage: action-api","Usage: action").replace(/ --[a-z0-9-]+(?: <[^>]+>)?/gu,(a)=>{if(i.has(a))return"";return i.add(a),/^ --(?:space|organization)-id /u.test(a)?` [${a.trim()}]`:a})}).replace(/Authentication:[\s\S]*?(?=Standard env vars)/u,`Authentication: action auth login, ACTION_TOKEN, ACTION_API_KEY, or ACTION_API_TOKEN.
|
|
248
248
|
|
|
249
249
|
Environment variables:
|
|
@@ -253,7 +253,7 @@ Environment variables:
|
|
|
253
253
|
ACTION_API_CA_BUNDLE Extra PEM trust roots
|
|
254
254
|
ACTION_API_PROXY HTTP(S) proxy
|
|
255
255
|
|
|
256
|
-
`)}var
|
|
256
|
+
`)}var Fv={workflows:`Workflow source must default-export workflow({ id, inputSchema, connectors, capabilities, run }) from @action/workflows.
|
|
257
257
|
metadata.inputs must match the inline inputSchema exactly. Updates require baseRevisionId plus a quoted If-Match value "<revisionId>:<draftGeneration>" and an idempotency key.
|
|
258
258
|
workflow-project init creates a project config; it does not generate workflow source.`,knowledge:`Upload with create-upload --file <path> --folder <name> --availability space (or org).
|
|
259
259
|
A pending upload is accepted but not yet indexed. Use list-uploads to verify readiness.
|
|
@@ -272,18 +272,19 @@ Create publishes immediately; updates edit the current profile.`,"access-roles":
|
|
|
272
272
|
Create requires --connector-instance-id and publishes immediately; --requests-enabled false keeps requests disabled.`,applications:`List connected applications and the catalog with action applications list-applications.
|
|
273
273
|
Connections use connect-application and provider authorization; there is no generic create command.`,"space-access-roles":`Space roles control access inside Action; access-roles describe requestable application access.
|
|
274
274
|
Updates replace permissionSlugs. Read the role before preserving or changing permissions.`,spaces:`add-group-members grants current eligible directory-group members access to the space.
|
|
275
|
-
It is different from adding a group to access-profile matching criteria or assignment-group sources.`};async function Co(e){let t=[],r=new Set,n;for(let i=0;i<100;i++){let a=await e("sessions.listOrganizationRequestDestinations",n?{cursor:n}:{});if(!Array.isArray(a.destinations)||a.destinations.some((s)=>!s||typeof s.id!=="string"||typeof s.name!=="string"||typeof s.slug!=="string"))throw new v("invalid_destinations","Helpdesk destinations returned an invalid response.",{exitCode:R.remote});if(t.push(...a.destinations),!a.nextCursor)return t;if(r.has(a.nextCursor))break;r.add(a.nextCursor),n=a.nextCursor}throw new v("incomplete_destinations","Could not finish listing helpdesk destinations; no request was created.",{exitCode:R.remote})}async function gh(e,t){let r=await Co(e),n=r.filter((i)=>[i.id,i.name,i.slug].some((a)=>a.toLowerCase()===t.toLowerCase()));if(n.length===1)return n[0];throw new v(n.length?"ambiguous_destination":"destination_not_found",n.length?`Several helpdesks match "${t}". Choose a destination ID.`:`No helpdesk matches "${t}". Use requests destinations to choose a space.`,{exitCode:R.usage,details:{destinations:n.length?n:r}})}async function Ui(e,t,r={}){let n=new Map(e.messages.map((s)=>[s.id,s])),i=e.olderMessagesCursor,a=new Set;while(i&&!(r.untilMessageId&&n.has(r.untilMessageId))){if(a.has(i)||a.size>=(r.pageLimit??100))throw new v("history_incomplete","Message history traversal is incomplete; the page limit or a repeated cursor was reached.",{details:{nextCursor:i},exitCode:R.remote});a.add(i);let s=await t(i,r.signal);for(let o of s.messages)n.set(o.id,o);i=s.nextCursor}return{...e,messages:[...n.values()].sort((s,o)=>s.seqNumber-o.seqNumber),hasOlderMessages:Boolean(i),olderMessagesCursor:i}}function pt(e,t,r,n,i=R.remote){let s=(e instanceof we?e.envelope:void 0)?.error?.message??(e instanceof Error?e.message:"Request failed.");return new v(t,`${r} ${s}`,{cause:e,details:{...n,reason:s},exitCode:i})}function ko(e){if(!(e instanceof we))return!1;let t=e.envelope?.error?.code;return typeof t==="number"&&t>=400&&t<500&&t!==408}import{setTimeout as bv}from"node:timers/promises";function Ro(e){return e.filter((t)=>["user","assistant"].includes(t.role)&&t.type==="text"&&t.content.trim()).map(({id:t,role:r,content:n,turnId:i})=>({id:t,role:r,content:r==="user"?n.replace(/^\[Message metadata\]\r?\n(?:- [^\n]*\r?\n)+\r?\n/u,""):n,turnId:i}))}async function qh(e,t,r,n){if(!Number.isSafeInteger(r)||r<1||r>3600000)throw new v("usage_error","Timeout must be between 1 millisecond and 3600 seconds.",{exitCode:R.usage});let i=new AbortController,a=i.signal,s=globalThis.setTimeout(()=>i.abort(),r),o=`action sessions wait ${t.sessionId} ${t.clientMessageId}${t.spaceId?` --space-id ${t.spaceId}`:""}`,u=null,l=!1,d=[],c;try{for(;;){a.throwIfAborted();let m=await e(a);if(!u&&!m.messages.some((q)=>q.id===t.clientMessageId)&&m.hasOlderMessages&&m.olderMessagesCursor!==c&&n)c=m.olderMessagesCursor,m=await Ui(m,n,{untilMessageId:t.clientMessageId,signal:a}),d=m.messages;let h=new Map([...d,...m.messages].map((q)=>[q.id,q])),f=h.get(t.clientMessageId);l||=Boolean(f),u??=f?.turnId??null;let p=Ro([...h.values()].sort((q,b)=>q.seqNumber-b.seqNumber)).filter((q)=>q.role==="assistant"&&u!==null&&q.turnId===u),y=[...h.values()].filter((q)=>q.turnId).sort((q,b)=>b.seqNumber-q.seqNumber)[0]?.turnId,I=m.activeTurnId??y;if(u&&m.runtime.status==="error"&&I===u)throw new v("session_failed",`The session failed while responding. Inspect session ${t.sessionId}.`,{details:{...t,turnId:u,messages:p},exitCode:R.remote});if(u&&m.activeTurnId===u&&m.pendingHitlRequest)return{...t,turnId:u,status:"needs_input",messages:p,inputRequest:m.pendingHitlRequest};if(u&&m.activeTurnId!==u&&p.length)return{...t,turnId:u,status:"reply_received",messages:p};await bv(500,void 0,{signal:a})}}catch(m){if(a.aborted)throw new v("reply_timeout",`The reply was not confirmed before the timeout${l?"":"; the message was not found in the available history"}. Resume without resending: ${o}`,{details:{...t,turnId:u,messageFound:l,resume:o},exitCode:R.remote});if(m instanceof v&&m.code==="session_failed")throw m;throw pt(m,"reply_read_failed",`Could not confirm the reply. Resume without resending: ${o}.`,{...t,turnId:u,resume:o})}finally{globalThis.clearTimeout(s)}}function ve(){let e=new $n("action").exitOverride().option("--space-id <id>","use this space"),t=(o)=>o.option("--space-id <id>","use this space without a context lookup").addOption(new Sn("--format <format>","output format").choices(["json","text","table"])).option("--schema","show command schema without authenticating").option("--dry-run","validate and show the operator plan without sending requests"),r=(o)=>t(o).option("--client-message-id <id>","reuse this ID when retrying the same message").option("--input-file <path>","read the message as text from a file, or - for stdin").option("--no-wait","return a resumable submission receipt immediately").option("--timeout <seconds>","reply wait limit, from 0.001 to 3600 seconds","120");r(e.command("copilot [message]").description("Ask Copilot to help with anything in Action")).option("--case <id-or-identifier>","start a Copilot session linked to this case").option("--session <id>","continue a session; without a message, show its transcript");let n=e.command("requests").description("Open and continue requests with a space’s helpdesk");t(n.command("destinations").description("List available helpdesks")),r(n.command("start [message]").description("Ask a space’s helpdesk for help")).requiredOption("--to <space>","destination space name, slug, or ID"),r(n.command("reply [session-id] [message]").description("Continue a helpdesk request")).option("--session-id <id>","named alternative to the request session ID").option("--wait","wait for an agent reply when one is expected",!1),t(n.command("get [session-id]").description("Read a helpdesk conversation")).option("--session-id <id>","named alternative to the request session ID").option("--page-all","include older messages").option("--page-limit <count>","maximum older-history pages","100");let i=e.command("sessions");r(i.command("start [message]").description("Start a conversation with Copilot")),r(i.command("reply [session-id] [message]").description("Send a message and wait for its reply")).option("--session-id <id>","named alternative to the positional session ID"),t(i.command("wait [session-id] [client-message-id]").description("Wait for a submitted message without sending it again")).option("--session-id <id>","named alternative to the positional session ID").option("--client-message-id <id>","ID returned by reply or copilot").option("--timeout <seconds>","reply wait limit, from 0.001 to 3600 seconds","120"),t(i.command("transcript [session-id]").description("Read the conversation without transport events")).option("--session-id <id>","named alternative to the positional session ID").option("--page-all","include older messages").option("--page-limit <count>","maximum older-history pages with --page-all","100");let a=e.command("workflows");t(a.command("token [workflow-id]").description("Get the exact If-Match value for a workflow update or archive")).option("--workflow-id <id>","named alternative to the workflow ID");let s=e.command("cases");r(s.command("reply [case] [message]").description("Reply in an existing case thread")).option("--case-id <id-or-identifier>","named alternative to the case argument").option("--thread-id <id>","choose a linked thread when the case has several").option("--wait","wait for an agent reply when one is expected",!1);for(let o of["reopen","unarchive"])t(s.command(`${o} [case]`).description(o==="reopen"?"Unarchive a case and move it to an open status":"Remove archiving and preserve the case status")).option("--case-id-or-identifier <id>","case ID or identifier").option("--case-id <id>","alias for --case-id-or-identifier");return e}import{resolve as Av}from"node:path";async function wh(e,t,r,n,i,a,s){if(e==="request-start"&&!r.to?.trim())throw C("Choose a helpdesk with --to <space name, slug, or ID>.");let o=Number(r.timeout??120),u=Math.ceil(o*1000);if(!Number.isFinite(o)||o<0.001||o>3600)throw C("--timeout must be between 0.001 and 3600 seconds.");let l=r.format??a??(process.stdout.isTTY?"text":"json");if(!["json","text","table"].includes(l))throw C("Operator output supports json, text, or table; select --format explicitly.");let d=Number(r.pageLimit??100);if(!Number.isSafeInteger(d)||d<1||d>1000)throw C("--page-limit must be an integer from 1 to 1000.");let[c,m]=t,h=r.workflowId??(e==="token"?c:void 0);if(e==="token"&&(!h?.trim()||r.workflowId&&c))throw C("Pass one workflow ID, positionally or with --workflow-id.");let f=r.session,p,y=r.clientMessageId;if(["reply","wait","transcript"].includes(e)){if(r.sessionId){if(m!==void 0)throw C("Use a positional session ID or --session-id, not both.");f=r.sessionId,m=c}else f=c;if(!f?.trim())throw C("A session ID is required; pass it positionally or with --session-id.");if(e==="reply")p=m;if(e==="wait"){if(m&&y&&m!==y)throw C("Conflicting client message IDs.");if(y??=m,!y)throw C("A client message ID is required; use the receipt from reply or copilot.")}if(e==="transcript"&&m!==void 0)throw C("Transcript accepts one session ID.")}else if(["copilot","start","request-start"].includes(e))p=c;let I;if(e==="case-reply"){if(r.caseId&&m!==void 0)throw C("Use a positional case or --case-id, not both.");if(I=r.caseId??c,p=r.caseId?c:m,!I?.trim())throw C("A case ID or identifier is required.");if(r.threadId!==void 0&&!r.threadId.trim())throw C("--thread-id must contain a linked thread ID.")}if(r.case&&f)throw C("Pass either --case or --session.");if(r.inputFile!==void 0){if(p!==void 0)throw C("Pass a message or --input-file, not both.");p=await $a(r.inputFile==="-"?"-":Av(i,r.inputFile),n)}if(p!==void 0&&(!p.trim()||Buffer.byteLength(p)>262144))throw C("Message must contain text and be at most 256 KiB.");if(["reply","case-reply","request-start"].includes(e)&&p===void 0)throw C("A message is required; pass text or --input-file <path|->.");if(y!==void 0&&(!y.trim()||y.length>128))throw C("--client-message-id must contain 1 to 128 characters.");if(["reopen","unarchive"].includes(e)){let q=[c,r.caseId,r.caseIdOrIdentifier].filter((b)=>b!==void 0);if(!q.length||q.some((b)=>!b.trim())||new Set(q).size!==1)throw C("Pass one case ID or identifier.");if(I=q[0],!s&&!r.dryRun)throw C(`${e==="reopen"?"Reopening":"Unarchiving"} a case requires --yes.`)}return{sessionId:f,message:p,clientMessageId:y,caseId:I,workflowId:h,timeoutMs:u,format:l,pageLimit:d}}async function bh(e,t,r){let n=new Map,i=new Set,a;for(let s=0;s<100;s++){let o=await e("cases.listThreads",{caseIdOrIdentifier:t,limit:100,...a?{cursor:a}:{}});for(let u of o.items){if(r===u.threadId){if(u.status==="archived")throw new v("case_thread_archived","That case thread is archived. Choose an active linked thread before replying.",{exitCode:R.usage,details:{caseId:t,threadId:r}});return u}if(u.status!=="archived")n.set(u.threadId,u)}if(!o.hasMore){if(!r&&n.size===1)return[...n.values()][0];throw new v("case_thread_required",r?"That thread is not linked to this case. Choose a linked thread.":n.size?"This case has several threads. Choose --thread-id using the conversation context.":"This case has no unarchived threads. Start a linked conversation with action copilot --case <case> <message>.",{exitCode:R.usage,details:{caseId:t,threads:[...n.values()].map(({threadId:u,threadTitle:l,threadSpaceId:d,status:c})=>({threadId:u,threadTitle:l,threadSpaceId:d,status:c}))}})}if(!o.nextCursor||i.has(o.nextCursor))break;i.add(o.nextCursor),a=o.nextCursor}throw new v("case_threads_incomplete","Could not enumerate the case threads completely; no message was sent.",{details:{caseId:t},exitCode:R.remote})}async function Ah(e,t,r,n){let i={caseIdOrIdentifier:r};if(t==="unarchive")return e("cases.reopenCase",i);let a=await e("cases.getCase",i),s=[],o="update_status";try{let u=await e("cases.updateCase",i,{statusType:"open"});if(s.push("status_open"),!a.case.archivedAt)return u;return o="unarchive",await e("cases.reopenCase",i),s.push("unarchived"),o="verify",await e("cases.getCase",i)}catch(u){let l=null;try{l=(await e("cases.getCase",i)).case}catch{}throw pt(u,"reopen_incomplete",`Could not complete reopening ${r}. A status change may already have occurred; inspect the case and retry reopen with --yes.`,{caseId:r,spaceId:n,stage:o,completedWrites:s,observedCase:l,recovery:{command:"cases reopen",caseId:r,spaceId:n,yes:!0}},R.partial)}}async function Ch(e,t,r,n){let i=ve(),a=[i,...i.commands,...i.commands.flatMap((o)=>o.commands)];for(let o of a)o.configureOutput({writeOut:(u)=>(r.stdout??process.stdout).write(u),writeErr:()=>{return},outputError:()=>{return}});if(gr(e).includes("--schema")){let o=_e(e),u=i.commands.find((d)=>d.name()===o[0]),l=u?.commands.find((d)=>d.name()===o[1])??u;if(l)return(r.stdout??process.stdout).write(`${JSON.stringify(Ne(l),null,2)}
|
|
276
|
-
`),
|
|
275
|
+
It is different from adding a group to access-profile matching criteria or assignment-group sources.`};async function Wo(e){let r=[],t=new Set,n;for(let i=0;i<100;i++){let a=await e("sessions.listOrganizationRequestDestinations",n?{cursor:n}:{});if(!Array.isArray(a.destinations)||a.destinations.some((s)=>!s||typeof s.id!=="string"||typeof s.name!=="string"||typeof s.slug!=="string"))throw new L("invalid_destinations","Helpdesk destinations returned an invalid response.",{exitCode:R.remote});if(r.push(...a.destinations),!a.nextCursor)return r;if(t.has(a.nextCursor))break;t.add(a.nextCursor),n=a.nextCursor}throw new L("incomplete_destinations","Could not finish listing helpdesk destinations; no request was created.",{exitCode:R.remote})}async function Th(e,r){let t=await Wo(e),n=t.filter((i)=>[i.id,i.name,i.slug].some((a)=>a.toLowerCase()===r.toLowerCase()));if(n.length===1)return n[0];throw new L(n.length?"ambiguous_destination":"destination_not_found",n.length?`Several helpdesks match "${r}". Choose a destination ID.`:`No helpdesk matches "${r}". Use requests destinations to choose a space.`,{exitCode:R.usage,details:{destinations:n.length?n:t}})}async function Bi(e,r,t={}){let n=new Map(e.messages.map((s)=>[s.id,s])),i=e.olderMessagesCursor,a=new Set;while(i&&!(t.untilMessageId&&n.has(t.untilMessageId))){if(a.has(i)||a.size>=(t.pageLimit??100))throw new L("history_incomplete","Message history traversal is incomplete; the page limit or a repeated cursor was reached.",{details:{nextCursor:i},exitCode:R.remote});a.add(i);let s=await r(i,t.signal);for(let o of s.messages)n.set(o.id,o);i=s.nextCursor}return{...e,messages:[...n.values()].sort((s,o)=>s.seqNumber-o.seqNumber),hasOlderMessages:Boolean(i),olderMessagesCursor:i}}function hr(e,r,t,n,i=R.remote){let s=(e instanceof Ae?e.envelope:void 0)?.error?.message??(e instanceof Error?e.message:"Request failed.");return new L(r,`${t} ${s}`,{cause:e,details:{...n,reason:s},exitCode:i})}function jo(e){if(!(e instanceof Ae))return!1;let r=e.envelope?.error?.code;return typeof r==="number"&&r>=400&&r<500&&r!==408}import{setTimeout as Kv}from"node:timers/promises";function Po(e){return e.filter((r)=>["user","assistant"].includes(r.role)&&r.type==="text"&&r.content.trim()).map(({id:r,role:t,content:n,turnId:i})=>({id:r,role:t,content:t==="user"?n.replace(/^\[Message metadata\]\r?\n(?:- [^\n]*\r?\n)+\r?\n/u,""):n,turnId:i}))}async function Vh(e,r,t,n){if(!Number.isSafeInteger(t)||t<1||t>3600000)throw new L("usage_error","Timeout must be between 1 millisecond and 3600 seconds.",{exitCode:R.usage});let i=new AbortController,a=i.signal,s=globalThis.setTimeout(()=>i.abort(),t),o=`action sessions wait ${r.sessionId} ${r.clientMessageId}${r.spaceId?` --space-id ${r.spaceId}`:""}`,u=null,l=!1,d=[],c;try{for(;;){a.throwIfAborted();let p=await e(a);if(!u&&!p.messages.some((q)=>q.id===r.clientMessageId)&&p.hasOlderMessages&&p.olderMessagesCursor!==c&&n)c=p.olderMessagesCursor,p=await Bi(p,n,{untilMessageId:r.clientMessageId,signal:a}),d=p.messages;let h=new Map([...d,...p.messages].map((q)=>[q.id,q])),f=h.get(r.clientMessageId);l||=Boolean(f),u??=f?.turnId??null;let m=Po([...h.values()].sort((q,v)=>q.seqNumber-v.seqNumber)).filter((q)=>q.role==="assistant"&&u!==null&&q.turnId===u),y=[...h.values()].filter((q)=>q.turnId).sort((q,v)=>v.seqNumber-q.seqNumber)[0]?.turnId,I=p.activeTurnId??y;if(u&&p.runtime.status==="error"&&I===u)throw new L("session_failed",`The session failed while responding. Inspect session ${r.sessionId}.`,{details:{...r,turnId:u,messages:m},exitCode:R.remote});let w=f&&p.pendingHitlRequest&&Date.parse(p.pendingHitlRequest.createdAt)>=Date.parse(f.createdAt)?p.pendingHitlRequest:null;if(u&&p.activeTurnId===u&&w)return{...r,turnId:u,status:"needs_input",messages:m,inputRequest:w};if(u&&p.activeTurnId!==u&&m.length)return{...r,turnId:u,status:"reply_received",messages:m};await Kv(500,void 0,{signal:a})}}catch(p){if(a.aborted)throw new L("reply_timeout",`The reply was not confirmed before the timeout${l?"":"; the message was not found in the available history"}. Resume without resending: ${o}`,{details:{...r,turnId:u,messageFound:l,resume:o},exitCode:R.remote});if(p instanceof L&&p.code==="session_failed")throw p;throw hr(p,"reply_read_failed",`Could not confirm the reply. Resume without resending: ${o}.`,{...r,turnId:u,resume:o})}finally{globalThis.clearTimeout(s)}}function Se(){let e=new zn("action").exitOverride().option("--space-id <id>","use this space"),r=(o)=>o.option("--space-id <id>","use this space without a context lookup").addOption(new Wn("--format <format>","output format").choices(["json","text","table"])).option("--schema","show command schema without authenticating").option("--dry-run","validate and show the operator plan without sending requests"),t=(o)=>r(o).option("--client-message-id <id>","reuse this ID when retrying the same message").option("--input-file <path>","read the message as text from a file, or - for stdin").option("--no-wait","return a resumable submission receipt immediately").option("--timeout <seconds>","reply wait limit, from 0.001 to 3600 seconds","120");r(e.command("whoami").description("Show your authenticated identity and current context")).option("--verbose","include credential and organization scopes").allowExcessArguments(!1),t(e.command("copilot [message]").description("Ask Copilot to help with anything in Action")).option("--case <id-or-identifier>","start a Copilot session linked to this case").option("--session <id>","continue a session; without a message, show its transcript");let n=e.command("requests").description("Open and continue requests with a space’s helpdesk");r(n.command("destinations").description("List available helpdesks")),t(n.command("start [message]").description("Ask a space’s helpdesk for help")).requiredOption("--to <space>","destination space name, slug, or ID"),t(n.command("reply [session-id] [message]").description("Continue a helpdesk request")).option("--session-id <id>","named alternative to the request session ID").option("--wait","wait for an agent reply when one is expected",!1),r(n.command("get [session-id]").description("Read a helpdesk conversation")).option("--session-id <id>","named alternative to the request session ID").option("--page-all","include older messages").option("--page-limit <count>","maximum older-history pages","100");let i=e.command("sessions");t(i.command("start [message]").description("Start a conversation with Copilot")),t(i.command("reply [session-id] [message]").description("Send a message and wait for its reply")).option("--session-id <id>","named alternative to the positional session ID"),r(i.command("wait [session-id] [client-message-id]").description("Wait for a submitted message without sending it again")).option("--session-id <id>","named alternative to the positional session ID").option("--client-message-id <id>","ID returned by reply or copilot").option("--timeout <seconds>","reply wait limit, from 0.001 to 3600 seconds","120"),r(i.command("transcript [session-id]").description("Read the conversation without transport events")).option("--session-id <id>","named alternative to the positional session ID").option("--page-all","include older messages").option("--page-limit <count>","maximum older-history pages with --page-all","100");let a=e.command("workflows");r(a.command("token [workflow-id]").description("Get the exact If-Match value for a workflow update or archive")).option("--workflow-id <id>","named alternative to the workflow ID");let s=e.command("cases");t(s.command("reply [case] [message]").description("Reply in an existing case thread")).option("--case-id <id-or-identifier>","named alternative to the case argument").option("--thread-id <id>","choose a linked thread when the case has several").option("--wait","wait for an agent reply when one is expected",!1);for(let o of["reopen","unarchive"])r(s.command(`${o} [case]`).description(o==="reopen"?"Unarchive a case and move it to an open status":"Remove archiving and preserve the case status")).option("--case-id-or-identifier <id>","case ID or identifier").option("--case-id <id>","alias for --case-id-or-identifier");return e}import{resolve as Bv}from"node:path";async function Nh(e,r,t,n,i,a,s){if(e==="request-start"&&!t.to?.trim())throw C("Choose a helpdesk with --to <space name, slug, or ID>.");let o=Number(t.timeout??120),u=Math.ceil(o*1000);if(!Number.isFinite(o)||o<0.001||o>3600)throw C("--timeout must be between 0.001 and 3600 seconds.");let l=t.format??a??(process.stdout.isTTY?"text":"json");if(!["json","text","table"].includes(l))throw C("Operator output supports json, text, or table; select --format explicitly.");let d=Number(t.pageLimit??100);if(!Number.isSafeInteger(d)||d<1||d>1000)throw C("--page-limit must be an integer from 1 to 1000.");let[c,p]=r,h=t.workflowId??(e==="token"?c:void 0);if(e==="token"&&(!h?.trim()||t.workflowId&&c))throw C("Pass one workflow ID, positionally or with --workflow-id.");let f=t.session,m,y=t.clientMessageId;if(["reply","wait","transcript"].includes(e)){if(t.sessionId){if(p!==void 0)throw C("Use a positional session ID or --session-id, not both.");f=t.sessionId,p=c}else f=c;if(!f?.trim())throw C("A session ID is required; pass it positionally or with --session-id.");if(e==="reply")m=p;if(e==="wait"){if(p&&y&&p!==y)throw C("Conflicting client message IDs.");if(y??=p,!y)throw C("A client message ID is required; use the receipt from reply or copilot.")}if(e==="transcript"&&p!==void 0)throw C("Transcript accepts one session ID.")}else if(["copilot","start","request-start"].includes(e))m=c;let I;if(e==="case-reply"){if(t.caseId&&p!==void 0)throw C("Use a positional case or --case-id, not both.");if(I=t.caseId??c,m=t.caseId?c:p,!I?.trim())throw C("A case ID or identifier is required.");if(t.threadId!==void 0&&!t.threadId.trim())throw C("--thread-id must contain a linked thread ID.")}if(t.case&&f)throw C("Pass either --case or --session.");if(t.inputFile!==void 0){if(m!==void 0)throw C("Pass a message or --input-file, not both.");m=await za(t.inputFile==="-"?"-":Bv(i,t.inputFile),n)}if(m!==void 0&&(!m.trim()||Buffer.byteLength(m)>262144))throw C("Message must contain text and be at most 256 KiB.");if(["reply","case-reply","request-start"].includes(e)&&m===void 0)throw C("A message is required; pass text or --input-file <path|->.");if(y!==void 0&&(!y.trim()||y.length>128))throw C("--client-message-id must contain 1 to 128 characters.");if(["reopen","unarchive"].includes(e)){let w=[c,t.caseId,t.caseIdOrIdentifier].filter((q)=>q!==void 0);if(!w.length||w.some((q)=>!q.trim())||new Set(w).size!==1)throw C("Pass one case ID or identifier.");if(I=w[0],!s&&!t.dryRun)throw C(`${e==="reopen"?"Reopening":"Unarchiving"} a case requires --yes.`)}return{sessionId:f,message:m,clientMessageId:y,caseId:I,workflowId:h,timeoutMs:u,format:l,pageLimit:d}}async function Dh(e,r,t){let n=new Map,i=new Set,a;for(let s=0;s<100;s++){let o=await e("cases.listThreads",{caseIdOrIdentifier:r,limit:100,...a?{cursor:a}:{}});for(let u of o.items){if(t===u.threadId){if(u.status==="archived")throw new L("case_thread_archived","That case thread is archived. Choose an active linked thread before replying.",{exitCode:R.usage,details:{caseId:r,threadId:t}});return u}if(u.status!=="archived")n.set(u.threadId,u)}if(!o.hasMore){if(!t&&n.size===1)return[...n.values()][0];throw new L("case_thread_required",t?"That thread is not linked to this case. Choose a linked thread.":n.size?"This case has several threads. Choose --thread-id using the conversation context.":"This case has no unarchived threads. Start a linked conversation with action copilot --case <case> <message>.",{exitCode:R.usage,details:{caseId:r,threads:[...n.values()].map(({threadId:u,threadTitle:l,threadSpaceId:d,status:c})=>({threadId:u,threadTitle:l,threadSpaceId:d,status:c}))}})}if(!o.nextCursor||i.has(o.nextCursor))break;i.add(o.nextCursor),a=o.nextCursor}throw new L("case_threads_incomplete","Could not enumerate the case threads completely; no message was sent.",{details:{caseId:r},exitCode:R.remote})}async function Yv(e,r){if(r.statusType!=null||!r.caseTypeId)return{statusType:"open"};let t;for(let n=0;n<100;n++){let i=await e("cases.listReferenceData",{kind:"statuses",limit:200,...t?{cursor:t}:{}}),a=i.items.find((s)=>s.caseTypeId===r.caseTypeId&&s.isDefault);if(a)return{statusId:a.id};if(!i.nextCursor)break;t=i.nextCursor}throw new L("case_type_initial_stage_missing","This case's type has no active initial stage to reopen into.",{exitCode:R.usage,details:{caseId:r.id}})}async function Eh(e,r,t,n){let i={caseIdOrIdentifier:t};if(r==="unarchive")return e("cases.reopenCase",i);let a=await e("cases.getCase",i),s=[],o="update_status";try{let u=await e("cases.updateCase",i,await Yv(e,a.case));if(s.push("status_open"),!a.case.archivedAt)return u;return o="unarchive",await e("cases.reopenCase",i),s.push("unarchived"),o="verify",await e("cases.getCase",i)}catch(u){let l=null;try{l=(await e("cases.getCase",i)).case}catch{}throw hr(u,"reopen_incomplete",`Could not complete reopening ${t}. A status change may already have occurred; inspect the case and retry reopen with --yes.`,{caseId:t,spaceId:n,stage:o,completedWrites:s,observedCase:l,recovery:{command:"cases reopen",caseId:t,spaceId:n,yes:!0}},R.partial)}}async function Mh(e,r,t){let n=await e.identity().getCurrentPrincipal({}),i=n?.principal,a=n?.organization;if(!i||!a||![i.id,i.displayName,i.type,a.id,a.name].every((o)=>typeof o==="string")||!["user_bearer","organization_api_key","m2m_bearer"].includes(i.credentialClass)||!Array.isArray(i.scopes)||!i.scopes.every((o)=>typeof o==="string")||i.organizationScopes!==void 0&&(!Array.isArray(i.organizationScopes)||!i.organizationScopes.every((o)=>typeof o==="string")))throw new L("invalid_identity_response","GET /v1/me returned an invalid identity.",{exitCode:R.remote});let s={principal:{id:i.id,displayName:i.displayName,type:i.type,credentialClass:i.credentialClass,...t?{scopes:i.scopes,...i.organizationScopes===void 0?{}:{organizationScopes:i.organizationScopes}}:{}},organization:{id:a.id,name:a.name},apiUrl:e.apiUrl(),profile:e.profileName(),selectedSpace:r??e.globals.space??(e.env.ACTION_SPACE_ID?.trim()||void 0)??e.selectedProfile(!1)?.space?.id??null};return{value:s,human:[`Identity: ${i.displayName} (${i.id})`,`Type: ${i.type}`,`Credential: ${i.credentialClass}`,`Organization: ${a.name} (${a.id})`,`Profile: ${s.profile}`,`API: ${s.apiUrl}`,`Selected space: ${s.selectedSpace??"not selected"}`,...s.principal.scopes===void 0?[]:[`Scopes: ${s.principal.scopes.join(", ")||"none"}`],...s.principal.organizationScopes===void 0?[]:[`Organization scopes: ${s.principal.organizationScopes.join(", ")||"none"}`]].join(`
|
|
276
|
+
`)}}async function Gh(e,r,t,n){let i=Se(),a=[i,...i.commands,...i.commands.flatMap((o)=>o.commands)];for(let o of a)o.configureOutput({writeOut:(u)=>(t.stdout??process.stdout).write(u),writeErr:()=>{return},outputError:()=>{return}});if(bt(e).includes("--schema")){let o=rr(e),u=i.commands.find((d)=>d.name()===o[0]),l=u?.commands.find((d)=>d.name()===o[1])??u;if(l)return(t.stdout??process.stdout).write(`${JSON.stringify(Ee(l),null,2)}
|
|
277
|
+
`),0}let s=i.commands.flatMap((o)=>o.commands.length?o.commands:[o]);for(let o of s)o.action(async(...u)=>{let l=o.optsWithGlobals(),d=o.parent?.name()==="requests"&&o.name()==="start"?"request-start":o.parent?.name()==="requests"&&o.name()==="get"?"transcript":o.name()==="reply"&&o.parent?.name()==="cases"?"case-reply":o.name(),c=await Nh(d,u.slice(0,-2),l,t,r.cwd(),r.env.ACTION_OUTPUT??r.env.ACTION_API_OUTPUT,n),p=(A,X)=>(t.stdout??process.stdout).write(c.format==="json"?`${JSON.stringify(A,null,2)}
|
|
277
278
|
`:`${X}
|
|
278
|
-
`);if(l.dryRun){
|
|
279
|
-
`)||"No helpdesks are available.");return}if(d==="token"){let A=await f("workflows.getWorkflow",{workflowId:c.workflowId});if(!A.latestRevisionId||!Number.isSafeInteger(A.draftGeneration)||A.draftGeneration<0)throw new
|
|
280
|
-
Base revision: ${A.latestRevisionId}`);return}if(c.caseId&&d!=="case-reply"){let A=await
|
|
279
|
+
`);if(l.dryRun){p({dryRun:!0,command:`${o.parent?.name()==="action"?"":o.parent?.name()+" "}${o.name()}`,...c,destination:l.to,case:l.case,threadId:l.threadId,spaceId:l.spaceId??r.globals.space},`Validated ${d}; no requests sent.`);return}if(d==="whoami"){let A=await Mh(r,l.spaceId,l.verbose===!0);p(A.value,A.human);return}let h=await r.spaceId(l.spaceId),f=(A,X={},F,te)=>Mr({operation:A,parameters:{spaceId:h,...X},...F===void 0?{}:{body:F},baseUrl:r.apiUrl(),tokenProvider:async()=>(await r.credential()).authorization,env:r.env,cwd:r.cwd(),...te?{abortSignal:te}:{},...r.generatedBinaryPath?{binaryPath:r.generatedBinaryPath}:{}});if(d==="destinations"){let A=await Wo(f);p({destinations:A},A.map((X)=>`${X.name} (${X.slug}): ${X.description}`).join(`
|
|
280
|
+
`)||"No helpdesks are available.");return}if(d==="token"){let A=await f("workflows.getWorkflow",{workflowId:c.workflowId});if(!A.latestRevisionId||!Number.isSafeInteger(A.draftGeneration)||A.draftGeneration<0)throw new L("invalid_workflow_token","The workflow response did not contain a valid revision and draft generation.",{exitCode:R.remote});let X=JSON.stringify(`${A.latestRevisionId}:${A.draftGeneration}`);p({workflowId:A.id,baseRevisionId:A.latestRevisionId,draftGeneration:A.draftGeneration,ifMatch:X},`If-Match: ${X}
|
|
281
|
+
Base revision: ${A.latestRevisionId}`);return}if(c.caseId&&d!=="case-reply"){let A=await Eh(f,d,c.caseId,h);p(A,`${d==="reopen"?"Reopened":"Unarchived"} ${c.caseId}.`);return}let m=c.sessionId;if(d==="case-reply"){let A=await Dh(f,c.caseId,l.threadId);m=A.threadId,h=A.threadSpaceId??h}let y=c.clientMessageId??(c.message!==void 0?crypto.randomUUID():void 0),I=!1,w;if(d==="request-start"){w=await Th(f,l.to.trim()),m=crypto.randomUUID();try{let A=await f("sessions.createOrganizationRequestSession",{},{id:m,destinationSpaceId:w.id});if(A.session?.id!==m)throw Error("Request creation returned an unexpected session ID.");h=A.session.spaceId??w.id,I=!0}catch(A){let X=jo(A);throw hr(A,X?"request_creation_rejected":"request_creation_unconfirmed",X?"Request creation was rejected. Resolve the reported error before retrying.":`Could not confirm request creation. Inspect session ${m} before creating another request.`,{sessionId:m,clientMessageId:y,spaceId:h,destination:w,creation:X?"rejected":"unknown",stage:"create_session",submission:"not_attempted"})}}if(!m){let{summary:A}=await f("automations.copilot");if(!A?.latestVersion)throw C("Copilot is unavailable in this space.");m=crypto.randomUUID();try{if(l.case)await f("cases.spawnThread",{caseIdOrIdentifier:l.case},{id:m,automationId:A.automation.id});else m=(await f("sessions.createSession",{},{id:m,visibility:"private",automation:{automationId:A.automation.id,automationVersionId:A.latestVersion.id,version:A.latestVersion.version}})).session.id;I=!0}catch(X){throw hr(X,"session_creation_unconfirmed",`Could not confirm session creation. Inspect session ${m} before starting another conversation.`,{sessionId:m,clientMessageId:y,spaceId:h,stage:"create_session",submission:"not_attempted"})}}let q={sessionId:m,clientMessageId:y,spaceId:h,...w?{destination:w}:{}},v=async(A)=>{let X=await f("sessions.get",{sessionId:m},void 0,A);if(o.parent?.name()==="requests"&&X.session?.selectedSpaceId)h=X.session.selectedSpaceId;return X},k=async()=>{if(o.parent?.name()!=="requests")return{};try{let A=await f("sessions.listCases",{sessionId:m});if(!Array.isArray(A.cases))throw Error("Invalid linked-case response.");return{cases:A.cases,casesHasMore:A.hasMore,casesNextCursor:A.nextCursor,spaceId:h}}catch(A){return{spaceId:h,caseLookupError:A instanceof Error?A.message:"Could not load linked cases."}}},G=(A,X)=>f("sessions.listMessages",{sessionId:m,cursor:A,limit:200},void 0,X);if(d==="transcript"||!I&&d==="copilot"&&c.message===void 0){let A=await v(),X={};if(o.parent?.name()==="requests"){let[te,$n]=await Promise.all([f("sessions.listMessages",{sessionId:m,limit:200}),k()]);A={...A,messages:te.messages,hasOlderMessages:Boolean(te.nextCursor),olderMessagesCursor:te.nextCursor},X=$n}if(l.pageAll)A=await Bi(A,G,{pageLimit:c.pageLimit});let F=Po(A.messages);p({sessionId:m,...X,messages:F,hasOlderMessages:A.hasOlderMessages,olderMessagesCursor:A.olderMessagesCursor},[`Session ${m}`,...F.map((te)=>`${te.role}: ${te.content}`),...A.hasOlderMessages?["Older messages available: use sessions transcript --page-all."]:[]].join(`
|
|
281
282
|
|
|
282
|
-
`));return}if(d!=="wait"&&c.message===void 0){
|
|
283
|
-
${A.agentPaused?`Unpause: action sessions unmute-automation --session-id ${
|
|
284
|
-
`:""}Wait: ${
|
|
283
|
+
`));return}if(d!=="wait"&&c.message===void 0){p({sessionId:m,spaceId:h},`Started Copilot session ${m}.`);return}let b=`action sessions wait ${m} ${y} --space-id ${h}`;if(d!=="wait"){let A;try{A=await f("sessions.submitMessage",{sessionId:m},{clientMessageId:y,content:c.message,mode:"followUp"})}catch(X){let F=jo(X);throw hr(X,F?"submission_rejected":"submission_unconfirmed",F?`Submission was rejected for session ${m} (message ${y}). Resolve the reported error before retrying.`:`Could not confirm submission to ${m} (message ${y}). Inspect or wait before retrying. Reuse this session and message ID; do not start another conversation.`,{...q,stage:"submit_message",submission:F?"rejected":"unknown",resume:b,retry:{command:"sessions reply",sessionId:m,clientMessageId:y,spaceId:h}})}if(!A.accepted)throw new L("message_rejected",A.rejectionReason??"Message was rejected.",{details:{...q,submission:"rejected"},exitCode:R.conflict});if(l.wait===!1||A.agentPaused){let X=A.agentPaused?"paused":"submitted";p({...q,...A,status:X,resume:b},`Message ${y} ${X} in session ${m}.${A.agentPaused?" The agent is paused; unpause it before expecting a reply.":""}
|
|
284
|
+
${A.agentPaused?`Unpause: action sessions unmute-automation --session-id ${m} --space-id ${h} --yes
|
|
285
|
+
`:""}Wait: ${b}`);return}}let P=await Vh(v,q,c.timeoutMs,G);p({...P,...w?{destination:w}:{},...await k()},[`Session ${m}; message ${y}; ${P.status}.`,...P.messages.map((A)=>A.content),...P.status==="needs_input"?[`Input requested: ${JSON.stringify(P.inputRequest)}`]:[]].join(`
|
|
285
286
|
|
|
286
|
-
`))});try{return await i.parseAsync(e,{from:"user"}),0}catch(o){if(o instanceof
|
|
287
|
+
`))});try{return await i.parseAsync(e,{from:"user"}),0}catch(o){if(o instanceof On){if(o.exitCode===0)return 0;throw C(o.message.replace(/^error:\s*/u,""))}throw o}}function Zv(e){let r=new Map,t=(n,i)=>{let a=[...n.commands.map((o)=>o.name()),...n.options.flatMap((o)=>[o.long,o.short].filter((u)=>!!u))],s=i.join(" ");r.set(s,[...new Set([...r.get(s)??[],...a])]);for(let o of n.commands)t(o,[...i,o.name()])};t(yr(e),[]),t(Se(),[]),r.get("cases")?.push("unarchive");for(let[n,i]of Object.entries(At))r.set(n,[...r.get(n)??[],...Object.keys(i)]);return r}function Uh(e,r,t){let n=e.replaceAll("action-api","action"),i=Zv(t);if(r==="bash")return n.replace("_action()","_action_generated()")+`
|
|
287
288
|
_action() {
|
|
288
289
|
_action_generated "$@"
|
|
289
290
|
local path="" word choices="" current="\${COMP_WORDS[COMP_CWORD]}" skip=0
|
|
@@ -302,11 +303,11 @@ ${[...i].map(([o,u])=>` '${o}') choices='${u.join(" ")}' ;;`).join(`
|
|
|
302
303
|
while IFS= read -r word; do COMPREPLY+=("$word"); done < <(compgen -W "$choices" -- "$current")
|
|
303
304
|
}
|
|
304
305
|
complete -F _action action
|
|
305
|
-
`;if(
|
|
306
|
+
`;if(r==="fish")return n+`
|
|
306
307
|
`+[...i].map(([o,u])=>{let l=o.split(" ").filter(Boolean),d=l.length?`__fish_seen_subcommand_from ${l.at(-1)}`:"__fish_use_subcommand";return u.map((c)=>c.startsWith("--")?`complete -c action -n '${d}' -l '${c.slice(2)}'`:c.startsWith("-")?"":`complete -c action -n '${d}' -a '${c}'`).join(`
|
|
307
308
|
`)}).join(`
|
|
308
309
|
`)+`
|
|
309
|
-
`;if(
|
|
310
|
+
`;if(r==="zsh")return n.replaceAll("_action","_action_generated")+`
|
|
310
311
|
_action() {
|
|
311
312
|
_action_generated "$@"
|
|
312
313
|
local lookup="" word
|
|
@@ -329,23 +330,23 @@ ${[...i].map(([o,u])=>` '${o}') choices=(${u.map((l)=>`'${l}'`).join(" ")}) ;
|
|
|
329
330
|
compadd -- $choices
|
|
330
331
|
}
|
|
331
332
|
compdef _action action
|
|
332
|
-
`;let a=
|
|
333
|
+
`;let a=r==="powershell"?"$completions = @(switch ($command) {":r==="elvish"?"var completions = [":void 0;if(a&&n.split(a).length!==2)throw C(`Generated ${r} completion changed; could not safely add Action commands. Regenerate and review the completion adapter.`);let s=n;for(let[o,u]of i){let l=["action",...o.split(" ").filter(Boolean)].join(";");if(r==="powershell"){let d=` '${l}' {`,c=u.map((p)=>` [CompletionResult]::new('${p}', '${p}', [CompletionResultType]::ParameterValue, '${p}')`).join(`
|
|
333
334
|
`);s=s.includes(d)?s.replace(d,`${d}
|
|
334
335
|
${c}`):s.replace("$completions = @(switch ($command) {",`$completions = @(switch ($command) {
|
|
335
336
|
${d}
|
|
336
337
|
${c}
|
|
337
|
-
}`)}else if(
|
|
338
|
+
}`)}else if(r==="elvish"){let d=` &'${l}'= {`,c=u.map((p)=>` cand '${p}' '${p}'`).join(`
|
|
338
339
|
`);s=s.includes(d)?s.replace(d,`${d}
|
|
339
340
|
${c}`):s.replace("var completions = [",`var completions = [
|
|
340
341
|
${d}
|
|
341
342
|
${c}
|
|
342
|
-
}`)}}return s}function
|
|
343
|
-
`),0;
|
|
344
|
-
`:
|
|
343
|
+
}`)}}return s}function Jh(){return Se().commands.map(Ee)}function To(e,r){let n=Se().commands.flatMap((a)=>a.commands.length?a.commands.map((s)=>({group:a.name(),operation:`${a.name()}.${s.name()}`,...Ee(s)})):[{group:a.name(),operation:a.name(),...Ee(a)}]).filter((a)=>!r||a.group===r),i=new Set(n.map((a)=>a.operation));return[...e.filter((a)=>!i.has(String(a.operation))),...n]}function Vo(e){let r=Se().commands.find((t)=>t.name()===e[0]);if(!r)return!1;return!r.commands.length||r.commands.some((t)=>t.name()===e[1])}function No(e){return Se().commands.some((r)=>r.name()===e&&r.commands.length>0)&&we.some((r)=>r.group===e)}function Fh(e,r,t){let n=Se();for(let a of e){let[s,o]=a.operation.split(".");if(!s||!o)continue;let u=n.commands.find((l)=>l.name()===s)??n.command(s).description(`Operations on '${s}'`);if(!u.commands.some((l)=>l.name()===o))u.command(o).description(a.description)}let i=t?n.commands.find((a)=>a.name()===t):n;if(!i)throw Error(`Unknown command group: ${t}`);for(let a of r)if(!i.options.some((s)=>s.long===a.flag))i.option(a.flag+(a.valueName?` <${a.valueName}>`:""),a.description);return i.helpInformation()}import{link as Qv,lstat as Hv,mkdtemp as xv,rename as _v,rm as e$}from"node:fs/promises";import{dirname as r$,join as Kh,resolve as t$}from"node:path";async function Bh(e,r,t){let n=t$(e,r);try{let s=await Hv(n);if(!t||!s.isFile()||s.isSymbolicLink())throw C("Output already exists; use --overwrite only for an existing regular file.")}catch(s){if(s.code!=="ENOENT")throw s}let i=await xv(Kh(r$(n),".action-download-")),a=Kh(i,"download");return{destination:n,path:a,async finish(s){try{if(s)if(t)await _v(a,n);else await Qv(a,n)}finally{await e$(i,{recursive:!0,force:!0})}}}}async function Yh(e,r,t){let{args:n,globals:i,yes:a,overwrite:s}=su(e);if(n.length===1&&["--version","-V"].includes(n[0]))return(r.stdout??process.stdout).write(`${ne}
|
|
344
|
+
`),0;cu(n);let o=t(i),u,l=(b={})=>la({args:n,...u===void 0?{}:{input:u},cwd:o.cwd(),env:o.env,...o.generatedBinaryPath?{binaryPath:o.generatedBinaryPath}:{},...r.stdout?{stdout:r.stdout}:{},...r.stderr?{stderr:r.stderr}:{},...b});if(n[0]==="help"&&Vo(rr(n.slice(1))))n.shift(),n.push("--help");let d=rr(n);if(Vo(d))return Gh(n,o,r,a);if(d[0]==="cases"&&d[1]==="unarchive")n[n.indexOf("unarchive")]="reopen";let c=uu(n);if(c?.group==="cases"&&c.parameters.some((b)=>b.name==="caseIdOrIdentifier")&&!c.parameters.some((b)=>b.name==="caseId")){for(let b=0;b<n.length;b++)if(n[b]==="--case-id")n[b]="--case-id-or-identifier";else if(n[b]?.startsWith("--case-id="))n[b]=n[b].replace("--case-id=","--case-id-or-identifier=")}if(d=rr(n),d.length===1&&we.some((b)=>b.group===d[0])&&!Er(n))n.push("--help");let p=d.length===0||d.length===1&&d[0]==="help";if(n.includes("--schema")&&!p&&!c&&!(d.length===1&&we.some((b)=>b.group===d[0])))throw C(`Unknown command '${d.join(" ")}'. Run action ${we.some((b)=>b.group===d[0])?d[0]+" ":""}--help to list available commands.`);if(n[0]==="help"||Er(n)&&(n.includes("--help")||n.includes("-h"))){let b=n[0]==="help"?rr(n.slice(1)):d,P=b.length===1?b[0]:void 0;if(p||No(P)){let X=await l({args:["--schema"],capture:!0});if(X.exitCode!==0)return(r.stderr??process.stderr).write(X.stderr||X.stdout),X.exitCode;let F=JSON.parse(X.stdout);if((r.stdout??process.stdout).write(zo(Fh(F.operations,F.globalFlags,P),P)),p)(r.stdout??process.stdout).write(pu(r));return 0}let A=await l({capture:!0});if(A.stdout)(r.stdout??process.stdout).write(zo(A.stdout,d[0]==="help"?d[1]:d.length===1?d[0]:void 0));if(A.stderr)(r.stderr??process.stderr).write(A.stderr);return A.exitCode}if((p||d.length===1&&No(d[0]))&&Er(n)&&n.includes("--schema")){let b=await l({capture:!0});if(b.stdout){let P=b.exitCode===0?JSON.parse(b.stdout):void 0;(r.stdout??process.stdout).write(P?`${JSON.stringify(p?{...P,operations:To(P.operations),launcher:mu(r),operatorCommands:Jh()}:To(P,d[0]),null,2)}
|
|
345
|
+
`:b.stdout)}if(b.stderr)(r.stderr??process.stderr).write(b.stderr);return b.exitCode}if(["completion","man"].includes(n[0]??"")&&!Er(n)){let b=await l({capture:!0});if(b.stdout)(r.stdout??process.stdout).write(n[0]==="completion"?Uh(b.stdout,n[1]??"",r):b.stdout.replaceAll("action-api","action")+`
|
|
345
346
|
.SH OPERATOR COMMANDS
|
|
346
347
|
Copilot: action copilot [message]. Reply: action sessions reply <id> <message>.
|
|
347
348
|
Use action auth, context, workflow-project, or skill-project --help for local operations.
|
|
348
|
-
`);if(
|
|
349
|
-
`:
|
|
350
|
-
`)}}function
|
|
351
|
-
`);let
|
|
349
|
+
`);if(b.stderr)(r.stderr??process.stderr).write(b.stderr);return b.exitCode}if(c&&n.includes("--schema")){let b=await l({capture:!0});if(b.stdout)(r.stdout??process.stdout).write(b.exitCode===0?`${JSON.stringify(Ph(c.id,JSON.parse(b.stdout)),null,2)}
|
|
350
|
+
`:b.stdout);if(b.stderr)(r.stderr??process.stderr).write(b.stderr);return b.exitCode}if(Er(n)||["help","completion","man","generate-skills"].includes(n[0]??""))return(await l()).exitCode;if(!c){let b=du(d);throw C(`Unknown command '${d.join(" ")}'. Run action ${we.some((P)=>P.group===d[0])?d[0]+" ":""}--help to list available commands.${b?` Did you mean ${b}?`:""}`)}let h=n.includes("--dry-run");if(c.mutation&&!c.idempotent&&!n.includes("--no-retry"))n.push("--no-retry");let f=lu(n),m=[];for(let b of["spaceId","organizationId"]){if(!c.parameters.some((te)=>te.name===b&&te.in==="path"))continue;let P=b==="spaceId"?"--space-id":"--organization-id",A=be(n,P),X=f[b];if(X!==void 0&&typeof X!=="string")throw C(`${b} must be a string.`);if(A!==void 0&&X!==void 0&&A!==X)throw C(`Conflicting ${P} and --params values.`);let F=A??X;m.push({name:b,...F===void 0?{}:{requested:F}})}let y=be(n,"--json");if(y==="-")u=JSON.stringify(await Yr({inputFile:"-"},r,"Request body"));if(y!==void 0)n.push("--json",y);let I={...f};for(let{name:b,requested:P}of m)I[b]=P??"validation-scope";let w=[...n];be(w,"--format"),be(w,"--query");let q=await l({args:[...w.filter((b)=>!["--dry-run","--quiet","-q","--human"].includes(b)),"--dry-run","--format","json","--params",JSON.stringify(I),"--base-url",o.apiUrl()],capture:!0});if(q.exitCode!==0)return(r.stderr??process.stderr).write(q.stderr||q.stdout),q.exitCode;jh(c.id,q.stdout);for(let{name:b,requested:P}of m)f[b]=b==="spaceId"?await o.spaceId(P):await o.organizationId(P);if(n.push("--params",JSON.stringify(f),"--base-url",o.apiUrl(),"--user-agent-suffix",`action-cli/${ne}`,"--x-action-c-l-i-version",ne),c.mutation&&!h&&!a){if(i.nonInteractive||!process.stdin.isTTY||!r.confirm)throw C("This mutation requires --yes in non-interactive mode.");if(!await r.confirm(`Run ${c.group} ${c.command} against ${o.apiUrl()}?`))return 0}let v=be(n,"--output");if(c.binaryResponse&&!h&&!v)throw C("Binary downloads require --output <path>.");let k=v!==void 0&&!h?await Bh(o.cwd(),v,s):void 0;if(k)n.push("--output",k.path);else if(v!==void 0)n.push("--output",v);let G=!1;try{let b=h?void 0:(await o.credential()).authorization.replace(/^Bearer\s+/u,""),P=await l({...b===void 0?{}:{token:b},...k?{capture:!0}:{}});if(G=P.exitCode===0,k){if(P.stderr)(r.stderr??process.stderr).write(P.stderr);if(!G&&P.stdout)(r.stdout??process.stdout).write(P.stdout)}return P.exitCode}finally{if(await k?.finish(G),k&&G&&!n.includes("--quiet")&&!n.includes("-q"))(r.stdout??process.stdout).write(JSON.stringify({saved_file:k.destination})+`
|
|
351
|
+
`)}}function Qh(e,r=process.platform){let t,n;if(r==="darwin")t="/usr/bin/open",n=[e];else if(r==="linux")t="xdg-open",n=[e];else if(r==="win32")return{args:["-NoLogo","-NoProfile","-NonInteractive","-Command","Start-Process -FilePath $env:ACTION_CLI_BROWSER_URL"],command:"powershell.exe",env:{ACTION_CLI_BROWSER_URL:e}};else throw Error(`Opening a browser is not supported on ${r}.`);return{args:n,command:t}}async function Hh(e){let{args:r,command:t,env:n}=Qh(e);await new Promise((i,a)=>{let s=n$(t,r,{detached:!0,env:n?{...process.env,...n}:process.env,shell:!1,stdio:"ignore",windowsHide:!0});s.once("error",a),s.once("spawn",()=>{s.unref(),i()})})}async function xh(e){let r=Zh({input:process.stdin,output:process.stderr});try{let t=await r.question(`${e} [y/N] `);return/^(?:y|yes)$/iu.test(t.trim())}finally{r.close()}}async function _h(e){if(!process.stdin.isTTY)throw Error("Organization selection requires an interactive terminal.");let r=Zh({input:process.stdin,output:process.stderr});try{for(let[a,s]of e.entries())process.stderr.write(`${a+1}. ${s.name} (${s.key})
|
|
352
|
+
`);let t=await r.question("Choose an organization: "),n=Number.parseInt(t.trim(),10)-1,i=e[n];if(!i)throw Error("A valid organization number is required.");return i.id}finally{r.close()}}function Yi(e={}){let r=e.env??process.env,t=r.ACTION_OUTPUT??r.ACTION_API_OUTPUT,n={...t?{defaultOutputFormat:t}:{},confirm:e.confirm??xh,createRuntime:({globals:i,reporter:a})=>{let s=new kn({...e.credentialStore?{credentialStore:e.credentialStore}:{},...e.cwd?{cwd:e.cwd}:{},...e.env?{env:e.env}:{},...e.fetch?{fetch:e.fetch}:{},globals:i,...e.generatedBinaryPath?{generatedBinaryPath:e.generatedBinaryPath}:{},...e.profileStore?{profileStore:e.profileStore}:{}});return{auth:$f(s,{...e.fetch?{fetch:e.fetch}:{},openBrowser:e.openBrowser??Hh,reporter:a,selectOrganization:e.selectOrganization??_h}),context:Sf(s),skills:Vf(s),workflows:Tf(s)}},...e.readStdin?{readStdin:e.readStdin}:{},...e.stderr?{stderr:e.stderr}:{},...e.stdout?{stdout:e.stdout}:{}};return n.runGenerated=async(i)=>await Yh(i,n,(a)=>new kn({...e.credentialStore?{credentialStore:e.credentialStore}:{},...e.cwd?{cwd:e.cwd}:{},...e.env?{env:e.env}:{},...e.fetch?{fetch:e.fetch}:{},...e.profileStore?{profileStore:e.profileStore}:{},...e.generatedBinaryPath?{generatedBinaryPath:e.generatedBinaryPath}:{},globals:a})),n}function a$(){return globalThis.Bun?.isStandaloneExecutable===!0}function s$(e=process.argv[1],r=import.meta.url,t=typeof ACTION_CLI_COMPILED_ENTRYPOINT<"u"&&ACTION_CLI_COMPILED_ENTRYPOINT||a$()){if(t)return!0;if(!e)return!1;try{return ey(e)===ey(i$(r))}catch{return!1}}if(s$()){process.stdout.on("error",ua),process.stderr.on("error",ua);let e=await bo(process.argv.slice(2),Yi());process.exitCode=tr.aborted?0:e}export{bo as runCli,Rf as normalizeCliError,s$ as invokedAsMain,Yi as createDefaultCliDependencies,yr as createCli};
|