@tailor-platform/sdk 0.17.0 → 0.18.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/CHANGELOG.md +22 -0
- package/dist/cli/api.d.mts +32 -32
- package/dist/cli/api.mjs +2 -2
- package/dist/cli/api.mjs.map +1 -1
- package/dist/cli/index.mjs +343 -14
- package/dist/cli/index.mjs.map +1 -1
- package/dist/configure/index.d.mts +3 -3
- package/dist/{index-Bin7-j3v.d.mts → index-Ba6ekRxa.d.mts} +2 -2
- package/dist/job-CL8myeqs.mjs.map +1 -1
- package/dist/{resume-B2ba5opn.mjs → resume-8Y9mmXHa.mjs} +87 -157
- package/dist/{resume-B2ba5opn.mjs.map → resume-8Y9mmXHa.mjs.map} +1 -1
- package/dist/{types-Da_WnvA0.d.mts → types-Dz5wcR2h.d.mts} +13 -5
- package/dist/utils/test/index.d.mts +2 -2
- package/docs/cli-reference.md +10 -0
- package/docs/configuration.md +26 -0
- package/docs/services/auth.md +21 -2
- package/docs/services/tailordb.md +21 -1
- package/package.json +9 -6
|
@@ -231,7 +231,15 @@ const OAuth2ClientSchema = z.object({
|
|
|
231
231
|
z.literal("confidential"),
|
|
232
232
|
z.literal("public"),
|
|
233
233
|
z.literal("browser")
|
|
234
|
-
]).optional()
|
|
234
|
+
]).optional(),
|
|
235
|
+
accessTokenLifetimeSeconds: z.number().int().min(60, "Minimum access token lifetime is 60 seconds").max(86400, "Maximum access token lifetime is 1 day (86400 seconds)").optional().transform((val) => val ? {
|
|
236
|
+
seconds: BigInt(val),
|
|
237
|
+
nanos: 0
|
|
238
|
+
} : void 0),
|
|
239
|
+
refreshTokenLifetimeSeconds: z.number().int().min(60, "Minimum refresh token lifetime is 60 seconds").max(604800, "Maximum refresh token lifetime is 7 days (604800 seconds)").optional().transform((val) => val ? {
|
|
240
|
+
seconds: BigInt(val),
|
|
241
|
+
nanos: 0
|
|
242
|
+
} : void 0)
|
|
235
243
|
});
|
|
236
244
|
const SCIMAuthorizationSchema = z.object({
|
|
237
245
|
type: z.union([z.literal("oauth2"), z.literal("bearer")]),
|
|
@@ -535,7 +543,7 @@ var ResolverService = class {
|
|
|
535
543
|
var require_package$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/eslint/package.json": ((exports, module) => {
|
|
536
544
|
module.exports = {
|
|
537
545
|
"name": "eslint",
|
|
538
|
-
"version": "9.39.
|
|
546
|
+
"version": "9.39.2",
|
|
539
547
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
|
540
548
|
"description": "An AST-based pattern checker for JavaScript.",
|
|
541
549
|
"type": "commonjs",
|
|
@@ -631,7 +639,7 @@ var require_package$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/eslint/
|
|
|
631
639
|
"@eslint/config-helpers": "^0.4.2",
|
|
632
640
|
"@eslint/core": "^0.17.0",
|
|
633
641
|
"@eslint/eslintrc": "^3.3.1",
|
|
634
|
-
"@eslint/js": "9.39.
|
|
642
|
+
"@eslint/js": "9.39.2",
|
|
635
643
|
"@eslint/plugin-kit": "^0.4.1",
|
|
636
644
|
"@humanfs/node": "^0.16.6",
|
|
637
645
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
@@ -2149,7 +2157,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/esutils/l
|
|
|
2149
2157
|
//#endregion
|
|
2150
2158
|
//#region ../../node_modules/acorn/dist/acorn.mjs
|
|
2151
2159
|
var acorn_exports = /* @__PURE__ */ __export({
|
|
2152
|
-
Node: () => Node
|
|
2160
|
+
Node: () => Node,
|
|
2153
2161
|
Parser: () => Parser,
|
|
2154
2162
|
Position: () => Position,
|
|
2155
2163
|
SourceLocation: () => SourceLocation,
|
|
@@ -2394,7 +2402,7 @@ function parseExpressionAt(input, pos, options) {
|
|
|
2394
2402
|
function tokenizer(input, options) {
|
|
2395
2403
|
return Parser.tokenizer(input, options);
|
|
2396
2404
|
}
|
|
2397
|
-
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords$3, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty$3, toString, hasOwn, isArray$3, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions$2, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty$2, pp$4, pp$3, Scope$1, Node
|
|
2405
|
+
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords$3, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty$3, toString, hasOwn, isArray$3, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions$2, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty$2, pp$4, pp$3, Scope$1, Node, pp$2, scriptValuesAddedInUnicode, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, ecma14BinaryProperties, unicodeBinaryProperties, ecma14BinaryPropertiesOfStrings, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, ecma14ScriptValues, unicodeScriptValues, data, i, list, ecmaVersion, pp$1, BranchID$1, RegExpValidationState, CharSetNone, CharSetOk, CharSetString, Token$1, pp, INVALID_TEMPLATE_ESCAPE_ERROR, version$6;
|
|
2398
2406
|
var init_acorn = __esm({ "../../node_modules/acorn/dist/acorn.mjs": (() => {
|
|
2399
2407
|
astralIdentifierCodes = [
|
|
2400
2408
|
509,
|
|
@@ -5680,7 +5688,7 @@ var init_acorn = __esm({ "../../node_modules/acorn/dist/acorn.mjs": (() => {
|
|
|
5680
5688
|
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW)) return scope;
|
|
5681
5689
|
}
|
|
5682
5690
|
};
|
|
5683
|
-
Node
|
|
5691
|
+
Node = function Node$1(parser$3, pos, loc) {
|
|
5684
5692
|
this.type = "";
|
|
5685
5693
|
this.start = pos;
|
|
5686
5694
|
this.end = 0;
|
|
@@ -5690,10 +5698,10 @@ var init_acorn = __esm({ "../../node_modules/acorn/dist/acorn.mjs": (() => {
|
|
|
5690
5698
|
};
|
|
5691
5699
|
pp$2 = Parser.prototype;
|
|
5692
5700
|
pp$2.startNode = function() {
|
|
5693
|
-
return new Node
|
|
5701
|
+
return new Node(this, this.start, this.startLoc);
|
|
5694
5702
|
};
|
|
5695
5703
|
pp$2.startNodeAt = function(pos, loc) {
|
|
5696
|
-
return new Node
|
|
5704
|
+
return new Node(this, pos, loc);
|
|
5697
5705
|
};
|
|
5698
5706
|
pp$2.finishNode = function(node, type) {
|
|
5699
5707
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
@@ -5702,7 +5710,7 @@ var init_acorn = __esm({ "../../node_modules/acorn/dist/acorn.mjs": (() => {
|
|
|
5702
5710
|
return finishNodeAt.call(this, node, type, pos, loc);
|
|
5703
5711
|
};
|
|
5704
5712
|
pp$2.copyNode = function(node) {
|
|
5705
|
-
var newNode = new Node
|
|
5713
|
+
var newNode = new Node(this, node.start, this.startLoc);
|
|
5706
5714
|
for (var prop in node) newNode[prop] = node[prop];
|
|
5707
5715
|
return newNode;
|
|
5708
5716
|
};
|
|
@@ -7193,7 +7201,7 @@ var init_acorn = __esm({ "../../node_modules/acorn/dist/acorn.mjs": (() => {
|
|
|
7193
7201
|
Position,
|
|
7194
7202
|
SourceLocation,
|
|
7195
7203
|
getLineInfo,
|
|
7196
|
-
Node
|
|
7204
|
+
Node,
|
|
7197
7205
|
TokenType,
|
|
7198
7206
|
tokTypes: types$1,
|
|
7199
7207
|
keywordTypes: keywords$3,
|
|
@@ -79562,6 +79570,15 @@ var require_warning_service = /* @__PURE__ */ __commonJS({ "../../node_modules/e
|
|
|
79562
79570
|
emitPoorConcurrencyWarning(notice) {
|
|
79563
79571
|
this.emitWarning(`You may ${notice} to improve performance.`, "ESLintPoorConcurrencyWarning");
|
|
79564
79572
|
}
|
|
79573
|
+
/**
|
|
79574
|
+
* Emits a warning when eslint-env configuration comments are found.
|
|
79575
|
+
* @param {string} filename The name of the file being linted.
|
|
79576
|
+
* @param {number} line The line number of the comment.
|
|
79577
|
+
* @returns {void}
|
|
79578
|
+
*/
|
|
79579
|
+
emitESLintEnvWarning(filename, line) {
|
|
79580
|
+
this.emitWarning(`/* eslint-env */ comments are no longer recognized when linting with flat config and will be reported as errors as of v10.0.0. Replace them with /* global */ comments or define globals in your config file. See https://eslint.org/docs/latest/use/configure/migration-guide#eslint-env-configuration-comments for details. Found in ${filename} at line ${line}.`, "ESLintEnvWarning");
|
|
79581
|
+
}
|
|
79565
79582
|
};
|
|
79566
79583
|
module.exports = { WarningService: WarningService$3 };
|
|
79567
79584
|
}) });
|
|
@@ -82869,6 +82886,10 @@ var require_linter$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/eslint/l
|
|
|
82869
82886
|
});
|
|
82870
82887
|
});
|
|
82871
82888
|
} else {
|
|
82889
|
+
if (config.language === jslang$1) for (const comment of sourceCode.getInlineConfigNodes()) {
|
|
82890
|
+
const { label } = commentParser.parseDirective(comment.value);
|
|
82891
|
+
if (label === "eslint-env") slots.warningService.emitESLintEnvWarning(options.filename, comment.loc.start.line);
|
|
82892
|
+
}
|
|
82872
82893
|
const inlineConfigResult = sourceCode.applyInlineConfig?.();
|
|
82873
82894
|
if (inlineConfigResult) {
|
|
82874
82895
|
inlineConfigResult.problems.forEach((problem) => {
|
|
@@ -84165,103 +84186,10 @@ var require_lint_result_cache = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
|
84165
84186
|
module.exports = LintResultCache$2;
|
|
84166
84187
|
}) });
|
|
84167
84188
|
|
|
84168
|
-
//#endregion
|
|
84169
|
-
//#region ../../node_modules/yocto-queue/index.js
|
|
84170
|
-
var require_yocto_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/yocto-queue/index.js": ((exports, module) => {
|
|
84171
|
-
var Node = class {
|
|
84172
|
-
constructor(value$1) {
|
|
84173
|
-
this.value = value$1;
|
|
84174
|
-
this.next = void 0;
|
|
84175
|
-
}
|
|
84176
|
-
};
|
|
84177
|
-
var Queue$1 = class {
|
|
84178
|
-
constructor() {
|
|
84179
|
-
this.clear();
|
|
84180
|
-
}
|
|
84181
|
-
enqueue(value$1) {
|
|
84182
|
-
const node = new Node(value$1);
|
|
84183
|
-
if (this._head) {
|
|
84184
|
-
this._tail.next = node;
|
|
84185
|
-
this._tail = node;
|
|
84186
|
-
} else {
|
|
84187
|
-
this._head = node;
|
|
84188
|
-
this._tail = node;
|
|
84189
|
-
}
|
|
84190
|
-
this._size++;
|
|
84191
|
-
}
|
|
84192
|
-
dequeue() {
|
|
84193
|
-
const current = this._head;
|
|
84194
|
-
if (!current) return;
|
|
84195
|
-
this._head = this._head.next;
|
|
84196
|
-
this._size--;
|
|
84197
|
-
return current.value;
|
|
84198
|
-
}
|
|
84199
|
-
clear() {
|
|
84200
|
-
this._head = void 0;
|
|
84201
|
-
this._tail = void 0;
|
|
84202
|
-
this._size = 0;
|
|
84203
|
-
}
|
|
84204
|
-
get size() {
|
|
84205
|
-
return this._size;
|
|
84206
|
-
}
|
|
84207
|
-
*[Symbol.iterator]() {
|
|
84208
|
-
let current = this._head;
|
|
84209
|
-
while (current) {
|
|
84210
|
-
yield current.value;
|
|
84211
|
-
current = current.next;
|
|
84212
|
-
}
|
|
84213
|
-
}
|
|
84214
|
-
};
|
|
84215
|
-
module.exports = Queue$1;
|
|
84216
|
-
}) });
|
|
84217
|
-
|
|
84218
|
-
//#endregion
|
|
84219
|
-
//#region ../../node_modules/eslint/node_modules/p-limit/index.js
|
|
84220
|
-
var require_p_limit = /* @__PURE__ */ __commonJS({ "../../node_modules/eslint/node_modules/p-limit/index.js": ((exports, module) => {
|
|
84221
|
-
const Queue = require_yocto_queue();
|
|
84222
|
-
const pLimit$1 = (concurrency) => {
|
|
84223
|
-
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
84224
|
-
const queue = new Queue();
|
|
84225
|
-
let activeCount = 0;
|
|
84226
|
-
const next = () => {
|
|
84227
|
-
activeCount--;
|
|
84228
|
-
if (queue.size > 0) queue.dequeue()();
|
|
84229
|
-
};
|
|
84230
|
-
const run = async (fn, resolve$9, ...args) => {
|
|
84231
|
-
activeCount++;
|
|
84232
|
-
const result = (async () => fn(...args))();
|
|
84233
|
-
resolve$9(result);
|
|
84234
|
-
try {
|
|
84235
|
-
await result;
|
|
84236
|
-
} catch {}
|
|
84237
|
-
next();
|
|
84238
|
-
};
|
|
84239
|
-
const enqueue = (fn, resolve$9, ...args) => {
|
|
84240
|
-
queue.enqueue(run.bind(null, fn, resolve$9, ...args));
|
|
84241
|
-
(async () => {
|
|
84242
|
-
await Promise.resolve();
|
|
84243
|
-
if (activeCount < concurrency && queue.size > 0) queue.dequeue()();
|
|
84244
|
-
})();
|
|
84245
|
-
};
|
|
84246
|
-
const generator = (fn, ...args) => new Promise((resolve$9) => {
|
|
84247
|
-
enqueue(fn, resolve$9, ...args);
|
|
84248
|
-
});
|
|
84249
|
-
Object.defineProperties(generator, {
|
|
84250
|
-
activeCount: { get: () => activeCount },
|
|
84251
|
-
pendingCount: { get: () => queue.size },
|
|
84252
|
-
clearQueue: { value: () => {
|
|
84253
|
-
queue.clear();
|
|
84254
|
-
} }
|
|
84255
|
-
});
|
|
84256
|
-
return generator;
|
|
84257
|
-
};
|
|
84258
|
-
module.exports = pLimit$1;
|
|
84259
|
-
}) });
|
|
84260
|
-
|
|
84261
84189
|
//#endregion
|
|
84262
84190
|
//#region ../../node_modules/eslint/node_modules/p-locate/index.js
|
|
84263
84191
|
var require_p_locate = /* @__PURE__ */ __commonJS({ "../../node_modules/eslint/node_modules/p-locate/index.js": ((exports, module) => {
|
|
84264
|
-
const pLimit =
|
|
84192
|
+
const pLimit = __require("p-limit");
|
|
84265
84193
|
var EndError = class extends Error {
|
|
84266
84194
|
constructor(value$1) {
|
|
84267
84195
|
super();
|
|
@@ -86715,22 +86643,22 @@ var require_jiti = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/ji
|
|
|
86715
86643
|
if (771 & scope.flags && !(16 & scope.flags)) return scope;
|
|
86716
86644
|
}
|
|
86717
86645
|
};
|
|
86718
|
-
var Node$
|
|
86646
|
+
var Node$1 = function(parser$3, pos, loc) {
|
|
86719
86647
|
this.type = "", this.start = pos, this.end = 0, parser$3.options.locations && (this.loc = new SourceLocation$1(parser$3, loc)), parser$3.options.directSourceFile && (this.sourceFile = parser$3.options.directSourceFile), parser$3.options.ranges && (this.range = [pos, 0]);
|
|
86720
86648
|
}, pp$2$1 = Parser$1.prototype;
|
|
86721
86649
|
function finishNodeAt$1(node, type, pos, loc) {
|
|
86722
86650
|
return node.type = type, node.end = pos, this.options.locations && (node.loc.end = loc), this.options.ranges && (node.range[1] = pos), node;
|
|
86723
86651
|
}
|
|
86724
86652
|
pp$2$1.startNode = function() {
|
|
86725
|
-
return new Node$
|
|
86653
|
+
return new Node$1(this, this.start, this.startLoc);
|
|
86726
86654
|
}, pp$2$1.startNodeAt = function(pos, loc) {
|
|
86727
|
-
return new Node$
|
|
86655
|
+
return new Node$1(this, pos, loc);
|
|
86728
86656
|
}, pp$2$1.finishNode = function(node, type) {
|
|
86729
86657
|
return finishNodeAt$1.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
86730
86658
|
}, pp$2$1.finishNodeAt = function(node, type, pos, loc) {
|
|
86731
86659
|
return finishNodeAt$1.call(this, node, type, pos, loc);
|
|
86732
86660
|
}, pp$2$1.copyNode = function(node) {
|
|
86733
|
-
var newNode = new Node$
|
|
86661
|
+
var newNode = new Node$1(this, node.start, this.startLoc);
|
|
86734
86662
|
for (var prop in node) newNode[prop] = node[prop];
|
|
86735
86663
|
return newNode;
|
|
86736
86664
|
};
|
|
@@ -87590,7 +87518,7 @@ var require_jiti = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/ji
|
|
|
87590
87518
|
Position: Position$1,
|
|
87591
87519
|
SourceLocation: SourceLocation$1,
|
|
87592
87520
|
getLineInfo: getLineInfo$1,
|
|
87593
|
-
Node: Node$
|
|
87521
|
+
Node: Node$1,
|
|
87594
87522
|
TokenType: TokenType$1,
|
|
87595
87523
|
tokTypes: types$1$1,
|
|
87596
87524
|
keywordTypes: keywords$4,
|
|
@@ -104638,14 +104566,14 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
104638
104566
|
this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null, this.voidPatternLoc = null;
|
|
104639
104567
|
}
|
|
104640
104568
|
}
|
|
104641
|
-
class Node$
|
|
104569
|
+
class Node$1 {
|
|
104642
104570
|
constructor(parser$3, pos, loc) {
|
|
104643
104571
|
this.type = "", this.start = pos, this.end = 0, this.loc = new SourceLocation$1(loc), 128 & (null == parser$3 ? void 0 : parser$3.optionFlags) && (this.range = [pos, 0]), null != parser$3 && parser$3.filename && (this.loc.filename = parser$3.filename);
|
|
104644
104572
|
}
|
|
104645
104573
|
}
|
|
104646
|
-
const NodePrototype = Node$
|
|
104574
|
+
const NodePrototype = Node$1.prototype;
|
|
104647
104575
|
NodePrototype.__clone = function() {
|
|
104648
|
-
const newNode = new Node$
|
|
104576
|
+
const newNode = new Node$1(void 0, this.start, this.loc.start), keys$2 = Object.keys(this);
|
|
104649
104577
|
for (let i$1 = 0, length = keys$2.length; i$1 < length; i$1++) {
|
|
104650
104578
|
const key = keys$2[i$1];
|
|
104651
104579
|
"leadingComments" !== key && "trailingComments" !== key && "innerComments" !== key && (newNode[key] = this[key]);
|
|
@@ -104655,10 +104583,10 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
104655
104583
|
class NodeUtils extends UtilParser {
|
|
104656
104584
|
startNode() {
|
|
104657
104585
|
const loc = this.state.startLoc;
|
|
104658
|
-
return new Node$
|
|
104586
|
+
return new Node$1(this, loc.index, loc);
|
|
104659
104587
|
}
|
|
104660
104588
|
startNodeAt(loc) {
|
|
104661
|
-
return new Node$
|
|
104589
|
+
return new Node$1(this, loc.index, loc);
|
|
104662
104590
|
}
|
|
104663
104591
|
startNodeAtNode(type) {
|
|
104664
104592
|
return this.startNodeAt(type.loc.start);
|
|
@@ -128499,22 +128427,22 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
128499
128427
|
if (771 & scope.flags && !(16 & scope.flags)) return scope;
|
|
128500
128428
|
}
|
|
128501
128429
|
};
|
|
128502
|
-
var Node$
|
|
128430
|
+
var Node$1 = function(parser$3, pos, loc) {
|
|
128503
128431
|
this.type = "", this.start = pos, this.end = 0, parser$3.options.locations && (this.loc = new SourceLocation$1(parser$3, loc)), parser$3.options.directSourceFile && (this.sourceFile = parser$3.options.directSourceFile), parser$3.options.ranges && (this.range = [pos, 0]);
|
|
128504
128432
|
}, pp$2$1 = Parser$1.prototype;
|
|
128505
128433
|
function finishNodeAt$1(node, type, pos, loc) {
|
|
128506
128434
|
return node.type = type, node.end = pos, this.options.locations && (node.loc.end = loc), this.options.ranges && (node.range[1] = pos), node;
|
|
128507
128435
|
}
|
|
128508
128436
|
pp$2$1.startNode = function() {
|
|
128509
|
-
return new Node$
|
|
128437
|
+
return new Node$1(this, this.start, this.startLoc);
|
|
128510
128438
|
}, pp$2$1.startNodeAt = function(pos, loc) {
|
|
128511
|
-
return new Node$
|
|
128439
|
+
return new Node$1(this, pos, loc);
|
|
128512
128440
|
}, pp$2$1.finishNode = function(node, type) {
|
|
128513
128441
|
return finishNodeAt$1.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
128514
128442
|
}, pp$2$1.finishNodeAt = function(node, type, pos, loc) {
|
|
128515
128443
|
return finishNodeAt$1.call(this, node, type, pos, loc);
|
|
128516
128444
|
}, pp$2$1.copyNode = function(node) {
|
|
128517
|
-
var newNode = new Node$
|
|
128445
|
+
var newNode = new Node$1(this, node.start, this.startLoc);
|
|
128518
128446
|
for (var prop in node) newNode[prop] = node[prop];
|
|
128519
128447
|
return newNode;
|
|
128520
128448
|
};
|
|
@@ -129374,7 +129302,7 @@ var require_babel = /* @__PURE__ */ __commonJS({ "../../node_modules/jiti/dist/b
|
|
|
129374
129302
|
Position: Position$1,
|
|
129375
129303
|
SourceLocation: SourceLocation$1,
|
|
129376
129304
|
getLineInfo: getLineInfo$1,
|
|
129377
|
-
Node: Node$
|
|
129305
|
+
Node: Node$1,
|
|
129378
129306
|
TokenType: TokenType$1,
|
|
129379
129307
|
tokTypes: types$1$1,
|
|
129380
129308
|
keywordTypes: keywords$4,
|
|
@@ -135530,7 +135458,7 @@ var init_lib = __esm({ "../../node_modules/@eslint/eslintrc/lib/index.js": (() =
|
|
|
135530
135458
|
var require_package = /* @__PURE__ */ __commonJS({ "../../node_modules/@eslint/js/package.json": ((exports, module) => {
|
|
135531
135459
|
module.exports = {
|
|
135532
135460
|
"name": "@eslint/js",
|
|
135533
|
-
"version": "9.39.
|
|
135461
|
+
"version": "9.39.2",
|
|
135534
135462
|
"description": "ESLint JavaScript language implementation",
|
|
135535
135463
|
"funding": "https://eslint.org/donate",
|
|
135536
135464
|
"main": "./src/index.js",
|
|
@@ -143182,9 +143110,10 @@ const file_tailor_v1_secret_manager_resource = /* @__PURE__ */ fileDesc("Cid0YWl
|
|
|
143182
143110
|
/**
|
|
143183
143111
|
* Describes the file tailor/v1/auth_resource.proto.
|
|
143184
143112
|
*/
|
|
143185
|
-
const file_tailor_v1_auth_resource = /* @__PURE__ */ fileDesc("
|
|
143113
|
+
const file_tailor_v1_auth_resource = /* @__PURE__ */ fileDesc("Ch10YWlsb3IvdjEvYXV0aF9yZXNvdXJjZS5wcm90bxIJdGFpbG9yLnYxIjYKC0F1dGhTZXJ2aWNlEicKCW5hbWVzcGFjZRgBIAEoCzIULnRhaWxvci52MS5OYW1lc3BhY2UitAYKDUF1dGhJRFBDb25maWcSNgoEbmFtZRgBIAEoCUIoukglciMyIV5bYS16MC05XVthLXowLTktXXsxLDYxfVthLXowLTldJBI0CglhdXRoX3R5cGUYAiABKA4yIS50YWlsb3IudjEuQXV0aElEUENvbm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SABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25CELpIDaoBCiIECICjBTICCDwSSwoWcmVmcmVzaF90b2tlbl9saWZldGltZRgKIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbkIQukgNqgEKIgQIgPUkMgIIPCJoCglHcmFudFR5cGUSGgoWR1JBTlRfVFlQRV9VTlNQRUNJRklFRBAAEiEKHUdSQU5UX1RZUEVfQVVUSE9SSVpBVElPTl9DT0RFEAESHAoYR1JBTlRfVFlQRV9SRUZSRVNIX1RPS0VOEAIieAoKQ2xpZW50VHlwZRIbChdDTElFTlRfVFlQRV9VTlNQRUNJRklFRBAAEhwKGENMSUVOVF9UWVBFX0NPTkZJREVOVElBTBABEhYKEkNMSUVOVF9UWVBFX1BVQkxJQxACEhcKE0NMSUVOVF9UWVBFX0JST1dTRVIQAypOCghQQVRTY29wZRIZChVQQVRfU0NPUEVfVU5TUEVDSUZJRUQQABISCg5QQVRfU0NPUEVfUkVBRBABEhMKD1BBVF9TQ09QRV9XUklURRACYgZwcm90bzM", [
|
|
143186
143114
|
file_buf_validate_validate,
|
|
143187
143115
|
file_google_api_field_behavior,
|
|
143116
|
+
file_google_protobuf_duration,
|
|
143188
143117
|
file_google_protobuf_struct,
|
|
143189
143118
|
file_google_protobuf_timestamp,
|
|
143190
143119
|
file_tailor_v1_resource,
|
|
@@ -143692,7 +143621,6 @@ async function initOperatorClient(accessToken) {
|
|
|
143692
143621
|
async function userAgentInterceptor() {
|
|
143693
143622
|
const ua = await userAgent();
|
|
143694
143623
|
return (next) => async (req) => {
|
|
143695
|
-
if (req.stream) return await next(req);
|
|
143696
143624
|
req.header.set("User-Agent", ua);
|
|
143697
143625
|
return await next(req);
|
|
143698
143626
|
};
|
|
@@ -143702,7 +143630,6 @@ async function userAgent() {
|
|
|
143702
143630
|
}
|
|
143703
143631
|
async function bearerTokenInterceptor(accessToken) {
|
|
143704
143632
|
return (next) => async (req) => {
|
|
143705
|
-
if (req.stream) return await next(req);
|
|
143706
143633
|
req.header.set("Authorization", `Bearer ${accessToken}`);
|
|
143707
143634
|
return await next(req);
|
|
143708
143635
|
};
|
|
@@ -144266,7 +144193,7 @@ var TypeProcessor = class {
|
|
|
144266
144193
|
const isArray$4 = fieldConfig.array === true;
|
|
144267
144194
|
const isNullable = fieldConfig.required !== true;
|
|
144268
144195
|
let finalType = baseTypeResult.type;
|
|
144269
|
-
if (isArray$4) finalType = `${baseTypeResult.type}[]`;
|
|
144196
|
+
if (isArray$4) finalType = fieldConfig.type === "enum" ? `(${baseTypeResult.type})[]` : `${baseTypeResult.type}[]`;
|
|
144270
144197
|
if (isNullable) finalType = `${finalType} | null`;
|
|
144271
144198
|
if (fieldConfig.serial) {
|
|
144272
144199
|
usedUtilityTypes.Serial = true;
|
|
@@ -144653,7 +144580,7 @@ function generateExecScript(machineUserName, relativeConfigPath) {
|
|
|
144653
144580
|
return ml`
|
|
144654
144581
|
import { execSync } from "node:child_process";
|
|
144655
144582
|
import { join } from "node:path";
|
|
144656
|
-
import { show,
|
|
144583
|
+
import { show, getMachineUserToken } from "@tailor-platform/sdk/cli";
|
|
144657
144584
|
|
|
144658
144585
|
const configDir = import.meta.dirname;
|
|
144659
144586
|
const configPath = join(configDir, "${relativeConfigPath}");
|
|
@@ -144663,7 +144590,7 @@ function generateExecScript(machineUserName, relativeConfigPath) {
|
|
|
144663
144590
|
const appInfo = await show({ configPath });
|
|
144664
144591
|
const endpoint = \`\${appInfo.url}/query\`;
|
|
144665
144592
|
|
|
144666
|
-
const tokenInfo = await
|
|
144593
|
+
const tokenInfo = await getMachineUserToken({ name: "${machineUserName}", configPath });
|
|
144667
144594
|
const headers = JSON.stringify({ Authorization: \`Bearer \${tokenInfo.accessToken}\` });
|
|
144668
144595
|
|
|
144669
144596
|
const headersArg = process.platform === "win32"
|
|
@@ -145986,22 +145913,25 @@ async function planOAuth2Clients(client, workspaceId, auths, deletedServices) {
|
|
|
145986
145913
|
return changeSet;
|
|
145987
145914
|
}
|
|
145988
145915
|
function protoOAuth2Client(oauth2ClientName, oauth2Client) {
|
|
145916
|
+
const parsed = OAuth2ClientSchema.parse(oauth2Client);
|
|
145989
145917
|
return {
|
|
145990
145918
|
name: oauth2ClientName,
|
|
145991
|
-
description:
|
|
145992
|
-
grantTypes:
|
|
145919
|
+
description: parsed.description,
|
|
145920
|
+
grantTypes: parsed.grantTypes?.map((grantType) => {
|
|
145993
145921
|
switch (grantType) {
|
|
145994
145922
|
case "authorization_code": return AuthOAuth2Client_GrantType.AUTHORIZATION_CODE;
|
|
145995
145923
|
case "refresh_token": return AuthOAuth2Client_GrantType.REFRESH_TOKEN;
|
|
145996
145924
|
default: throw new Error(`Unknown OAuth2 client grant type: ${grantType}`);
|
|
145997
145925
|
}
|
|
145998
145926
|
}),
|
|
145999
|
-
redirectUris:
|
|
145927
|
+
redirectUris: parsed.redirectURIs,
|
|
146000
145928
|
clientType: {
|
|
146001
145929
|
confidential: AuthOAuth2Client_ClientType.CONFIDENTIAL,
|
|
146002
145930
|
public: AuthOAuth2Client_ClientType.PUBLIC,
|
|
146003
145931
|
browser: AuthOAuth2Client_ClientType.BROWSER
|
|
146004
|
-
}[
|
|
145932
|
+
}[parsed.clientType ?? "confidential"],
|
|
145933
|
+
accessTokenLifetime: parsed.accessTokenLifetimeSeconds,
|
|
145934
|
+
refreshTokenLifetime: parsed.refreshTokenLifetimeSeconds
|
|
146005
145935
|
};
|
|
146006
145936
|
}
|
|
146007
145937
|
async function planSCIMConfigs(client, workspaceId, auths, deletedServices) {
|
|
@@ -148752,7 +148682,7 @@ const validateRegion = async (region, client) => {
|
|
|
148752
148682
|
const availableRegions = await client.listAvailableWorkspaceRegions({});
|
|
148753
148683
|
if (!availableRegions.regions.includes(region)) throw new Error(`Region must be one of: ${availableRegions.regions.join(", ")}.`);
|
|
148754
148684
|
};
|
|
148755
|
-
async function
|
|
148685
|
+
async function createWorkspace(options) {
|
|
148756
148686
|
const accessToken = await loadAccessToken();
|
|
148757
148687
|
const client = await initOperatorClient(accessToken);
|
|
148758
148688
|
validateName(options.name);
|
|
@@ -148807,7 +148737,7 @@ const createCommand = defineCommand({
|
|
|
148807
148737
|
}
|
|
148808
148738
|
},
|
|
148809
148739
|
run: withCommonArgs(async (args) => {
|
|
148810
|
-
const workspace = await
|
|
148740
|
+
const workspace = await createWorkspace({
|
|
148811
148741
|
name: args.name,
|
|
148812
148742
|
region: args.region,
|
|
148813
148743
|
deleteProtection: args["delete-protection"],
|
|
@@ -148822,7 +148752,7 @@ const createCommand = defineCommand({
|
|
|
148822
148752
|
//#endregion
|
|
148823
148753
|
//#region src/cli/workspace/list.ts
|
|
148824
148754
|
const limitSchema = z.coerce.number().int().positive().optional();
|
|
148825
|
-
async function
|
|
148755
|
+
async function listWorkspaces(options) {
|
|
148826
148756
|
const limit = options?.limit;
|
|
148827
148757
|
const hasLimit = limit !== void 0;
|
|
148828
148758
|
const accessToken = await loadAccessToken();
|
|
@@ -148865,7 +148795,7 @@ const listCommand$3 = defineCommand({
|
|
|
148865
148795
|
} catch {
|
|
148866
148796
|
throw new Error(`--limit must be a positive integer, got '${args.limit}'`);
|
|
148867
148797
|
}
|
|
148868
|
-
const workspaces = await
|
|
148798
|
+
const workspaces = await listWorkspaces({ limit });
|
|
148869
148799
|
const formattedWorkspaces = args.json ? workspaces : workspaces.map(({ updatedAt: _, createdAt,...rest }) => ({
|
|
148870
148800
|
...rest,
|
|
148871
148801
|
createdAt: humanizeRelativeTime(createdAt)
|
|
@@ -148885,7 +148815,7 @@ async function loadOptions(options) {
|
|
|
148885
148815
|
workspaceId: options.workspaceId
|
|
148886
148816
|
};
|
|
148887
148817
|
}
|
|
148888
|
-
async function
|
|
148818
|
+
async function deleteWorkspace(options) {
|
|
148889
148819
|
const { client, workspaceId } = await loadOptions(options);
|
|
148890
148820
|
await client.deleteWorkspace({ workspaceId });
|
|
148891
148821
|
}
|
|
@@ -148939,7 +148869,7 @@ function machineUserInfo(user) {
|
|
|
148939
148869
|
updatedAt: user.updatedAt ? timestampDate(user.updatedAt).toISOString() : "N/A"
|
|
148940
148870
|
};
|
|
148941
148871
|
}
|
|
148942
|
-
async function
|
|
148872
|
+
async function listMachineUsers(options) {
|
|
148943
148873
|
const accessToken = await loadAccessToken({
|
|
148944
148874
|
useProfile: true,
|
|
148945
148875
|
profile: options?.profile
|
|
@@ -148990,7 +148920,7 @@ const listCommand$2 = defineCommand({
|
|
|
148990
148920
|
}
|
|
148991
148921
|
},
|
|
148992
148922
|
run: withCommonArgs(async (args) => {
|
|
148993
|
-
const machineUsers = await
|
|
148923
|
+
const machineUsers = await listMachineUsers({
|
|
148994
148924
|
workspaceId: args["workspace-id"],
|
|
148995
148925
|
profile: args.profile,
|
|
148996
148926
|
configPath: args.config
|
|
@@ -149001,7 +148931,7 @@ const listCommand$2 = defineCommand({
|
|
|
149001
148931
|
|
|
149002
148932
|
//#endregion
|
|
149003
148933
|
//#region src/cli/machineuser/token.ts
|
|
149004
|
-
async function
|
|
148934
|
+
async function getMachineUserToken(options) {
|
|
149005
148935
|
const accessToken = await loadAccessToken({
|
|
149006
148936
|
useProfile: true,
|
|
149007
148937
|
profile: options.profile
|
|
@@ -149063,7 +148993,7 @@ const tokenCommand = defineCommand({
|
|
|
149063
148993
|
}
|
|
149064
148994
|
},
|
|
149065
148995
|
run: withCommonArgs(async (args) => {
|
|
149066
|
-
const token = await
|
|
148996
|
+
const token = await getMachineUserToken({
|
|
149067
148997
|
name: args.name,
|
|
149068
148998
|
workspaceId: args["workspace-id"],
|
|
149069
148999
|
profile: args.profile,
|
|
@@ -149111,7 +149041,7 @@ function toOAuth2ClientCredentials(client) {
|
|
|
149111
149041
|
|
|
149112
149042
|
//#endregion
|
|
149113
149043
|
//#region src/cli/oauth2client/get.ts
|
|
149114
|
-
async function
|
|
149044
|
+
async function getOAuth2Client(options) {
|
|
149115
149045
|
const accessToken = await loadAccessToken({
|
|
149116
149046
|
useProfile: true,
|
|
149117
149047
|
profile: options.profile
|
|
@@ -149170,7 +149100,7 @@ const getCommand$1 = defineCommand({
|
|
|
149170
149100
|
}
|
|
149171
149101
|
},
|
|
149172
149102
|
run: withCommonArgs(async (args) => {
|
|
149173
|
-
const credentials = await
|
|
149103
|
+
const credentials = await getOAuth2Client({
|
|
149174
149104
|
name: args.name,
|
|
149175
149105
|
workspaceId: args["workspace-id"],
|
|
149176
149106
|
profile: args.profile,
|
|
@@ -149182,7 +149112,7 @@ const getCommand$1 = defineCommand({
|
|
|
149182
149112
|
|
|
149183
149113
|
//#endregion
|
|
149184
149114
|
//#region src/cli/oauth2client/list.ts
|
|
149185
|
-
async function
|
|
149115
|
+
async function listOAuth2Clients(options) {
|
|
149186
149116
|
const accessToken = await loadAccessToken({
|
|
149187
149117
|
useProfile: true,
|
|
149188
149118
|
profile: options?.profile
|
|
@@ -149233,7 +149163,7 @@ const listCommand$1 = defineCommand({
|
|
|
149233
149163
|
}
|
|
149234
149164
|
},
|
|
149235
149165
|
run: withCommonArgs(async (args) => {
|
|
149236
|
-
const oauth2Clients = await
|
|
149166
|
+
const oauth2Clients = await listOAuth2Clients({
|
|
149237
149167
|
workspaceId: args["workspace-id"],
|
|
149238
149168
|
profile: args.profile,
|
|
149239
149169
|
configPath: args.config
|
|
@@ -149306,7 +149236,7 @@ function toWorkflowExecutionInfo(execution) {
|
|
|
149306
149236
|
|
|
149307
149237
|
//#endregion
|
|
149308
149238
|
//#region src/cli/workflow/list.ts
|
|
149309
|
-
async function
|
|
149239
|
+
async function listWorkflows(options) {
|
|
149310
149240
|
const accessToken = await loadAccessToken({
|
|
149311
149241
|
useProfile: true,
|
|
149312
149242
|
profile: options?.profile
|
|
@@ -149344,7 +149274,7 @@ const listCommand = defineCommand({
|
|
|
149344
149274
|
}
|
|
149345
149275
|
},
|
|
149346
149276
|
run: withCommonArgs(async (args) => {
|
|
149347
|
-
const workflows = await
|
|
149277
|
+
const workflows = await listWorkflows({
|
|
149348
149278
|
workspaceId: args["workspace-id"],
|
|
149349
149279
|
profile: args.profile
|
|
149350
149280
|
});
|
|
@@ -149377,7 +149307,7 @@ const UUID_REGEX$1 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{
|
|
|
149377
149307
|
function isUUID$1(value$1) {
|
|
149378
149308
|
return UUID_REGEX$1.test(value$1);
|
|
149379
149309
|
}
|
|
149380
|
-
async function
|
|
149310
|
+
async function getWorkflow(options) {
|
|
149381
149311
|
const accessToken = await loadAccessToken({
|
|
149382
149312
|
useProfile: true,
|
|
149383
149313
|
profile: options.profile
|
|
@@ -149432,7 +149362,7 @@ const getCommand = defineCommand({
|
|
|
149432
149362
|
}
|
|
149433
149363
|
},
|
|
149434
149364
|
run: withCommonArgs(async (args) => {
|
|
149435
|
-
const workflow = await
|
|
149365
|
+
const workflow = await getWorkflow({
|
|
149436
149366
|
nameOrId: args.nameOrId,
|
|
149437
149367
|
workspaceId: args["workspace-id"],
|
|
149438
149368
|
profile: args.profile
|
|
@@ -149542,7 +149472,7 @@ async function resolveWorkflowId(client, workspaceId, nameOrId) {
|
|
|
149542
149472
|
if (!workflow) throw new Error(`Workflow '${nameOrId}' not found.`);
|
|
149543
149473
|
return workflow.id;
|
|
149544
149474
|
}
|
|
149545
|
-
async function
|
|
149475
|
+
async function startWorkflow(options) {
|
|
149546
149476
|
const accessToken = await loadAccessToken({
|
|
149547
149477
|
useProfile: true,
|
|
149548
149478
|
profile: options.profile
|
|
@@ -149640,7 +149570,7 @@ const startCommand = defineCommand({
|
|
|
149640
149570
|
},
|
|
149641
149571
|
run: withCommonArgs(async (args) => {
|
|
149642
149572
|
const interval = parseDuration(args.interval);
|
|
149643
|
-
const { executionId, wait } = await
|
|
149573
|
+
const { executionId, wait } = await startWorkflow({
|
|
149644
149574
|
nameOrId: args.nameOrId,
|
|
149645
149575
|
machineUser: args.machineuser,
|
|
149646
149576
|
arg: args.arg,
|
|
@@ -149686,7 +149616,7 @@ function parseStatus(status) {
|
|
|
149686
149616
|
default: throw new Error(`Invalid status: ${status}. Valid values: PENDING, PENDING_RESUME, RUNNING, SUCCESS, FAILED`);
|
|
149687
149617
|
}
|
|
149688
149618
|
}
|
|
149689
|
-
async function
|
|
149619
|
+
async function listWorkflowExecutions(options) {
|
|
149690
149620
|
const accessToken = await loadAccessToken({
|
|
149691
149621
|
useProfile: true,
|
|
149692
149622
|
profile: options?.profile
|
|
@@ -149727,7 +149657,7 @@ async function workflowExecutionsList(options) {
|
|
|
149727
149657
|
return [executions, nextPageToken];
|
|
149728
149658
|
})).map(toWorkflowExecutionInfo);
|
|
149729
149659
|
}
|
|
149730
|
-
async function
|
|
149660
|
+
async function getWorkflowExecution(options) {
|
|
149731
149661
|
const accessToken = await loadAccessToken({
|
|
149732
149662
|
useProfile: true,
|
|
149733
149663
|
profile: options.profile
|
|
@@ -149908,7 +149838,7 @@ const executionsCommand = defineCommand({
|
|
|
149908
149838
|
run: withCommonArgs(async (args) => {
|
|
149909
149839
|
if (args.executionId) {
|
|
149910
149840
|
const interval = parseDuration$1(args.interval);
|
|
149911
|
-
const { execution, wait } = await
|
|
149841
|
+
const { execution, wait } = await getWorkflowExecution({
|
|
149912
149842
|
executionId: args.executionId,
|
|
149913
149843
|
workspaceId: args["workspace-id"],
|
|
149914
149844
|
profile: args.profile,
|
|
@@ -149920,7 +149850,7 @@ const executionsCommand = defineCommand({
|
|
|
149920
149850
|
if (args.logs && !args.json) printExecutionWithLogs(result);
|
|
149921
149851
|
else printData(result, args.json);
|
|
149922
149852
|
} else {
|
|
149923
|
-
const executions = await
|
|
149853
|
+
const executions = await listWorkflowExecutions({
|
|
149924
149854
|
workspaceId: args["workspace-id"],
|
|
149925
149855
|
profile: args.profile,
|
|
149926
149856
|
workflowName: args["workflow-name"],
|
|
@@ -149933,7 +149863,7 @@ const executionsCommand = defineCommand({
|
|
|
149933
149863
|
|
|
149934
149864
|
//#endregion
|
|
149935
149865
|
//#region src/cli/workflow/resume.ts
|
|
149936
|
-
async function
|
|
149866
|
+
async function resumeWorkflow(options) {
|
|
149937
149867
|
const accessToken = await loadAccessToken({
|
|
149938
149868
|
useProfile: true,
|
|
149939
149869
|
profile: options.profile
|
|
@@ -150002,7 +149932,7 @@ const resumeCommand = defineCommand({
|
|
|
150002
149932
|
},
|
|
150003
149933
|
run: withCommonArgs(async (args) => {
|
|
150004
149934
|
const interval = parseDuration(args.interval);
|
|
150005
|
-
const { executionId, wait } = await
|
|
149935
|
+
const { executionId, wait } = await resumeWorkflow({
|
|
150006
149936
|
executionId: args.executionId,
|
|
150007
149937
|
workspaceId: args["workspace-id"],
|
|
150008
149938
|
profile: args.profile,
|
|
@@ -150020,5 +149950,5 @@ const resumeCommand = defineCommand({
|
|
|
150020
149950
|
});
|
|
150021
149951
|
|
|
150022
149952
|
//#endregion
|
|
150023
|
-
export { PATScope, apply, applyCommand, commonArgs, createCommand, deleteCommand, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, generate, generateCommand, generateUserTypes, getCommand, getCommand$1, initOAuth2Client, initOperatorClient, jsonArgs, listCommand, listCommand$1, listCommand$2, listCommand$3,
|
|
150024
|
-
//# sourceMappingURL=resume-
|
|
149953
|
+
export { PATScope, apply, applyCommand, commonArgs, createCommand, createWorkspace, deleteCommand, deleteWorkspace, executionsCommand, fetchAll, fetchLatestToken, fetchUserInfo, generate, generateCommand, generateUserTypes, getCommand, getCommand$1, getMachineUserToken, getOAuth2Client, getWorkflow, getWorkflowExecution, initOAuth2Client, initOperatorClient, jsonArgs, listCommand, listCommand$1, listCommand$2, listCommand$3, listMachineUsers, listOAuth2Clients, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadWorkspaceId, printData, readPackageJson, readPlatformConfig, remove, removeCommand, resumeCommand, resumeWorkflow, show, showCommand, startCommand, startWorkflow, tokenCommand, withCommonArgs, writePlatformConfig };
|
|
149954
|
+
//# sourceMappingURL=resume-8Y9mmXHa.mjs.map
|