@uru-intelligence/cli 0.6.1 → 0.6.2
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 +10 -1
- package/README.md +28 -6
- package/dist/library.mjs +1557 -1002
- package/dist/uru.mjs +4231 -2962
- package/package.json +2 -2
package/dist/library.mjs
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __returnValue = (v) => v;
|
|
3
|
-
function __exportSetter(name, newValue) {
|
|
4
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
5
|
-
}
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
set: __exportSetter.bind(all, name)
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
|
|
16
1
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
17
2
|
var _a;
|
|
18
3
|
function $constructor(name, initializer, params) {
|
|
@@ -47,10 +32,10 @@ function $constructor(name, initializer, params) {
|
|
|
47
32
|
}
|
|
48
33
|
Object.defineProperty(Definition, "name", { value: name });
|
|
49
34
|
function _(def) {
|
|
50
|
-
var
|
|
35
|
+
var _a;
|
|
51
36
|
const inst = params?.Parent ? new Definition : this;
|
|
52
37
|
init(inst, def);
|
|
53
|
-
(
|
|
38
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
54
39
|
for (const fn of inst._zod.deferred) {
|
|
55
40
|
fn();
|
|
56
41
|
}
|
|
@@ -89,83 +74,6 @@ function config(newConfig) {
|
|
|
89
74
|
return globalConfig;
|
|
90
75
|
}
|
|
91
76
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
92
|
-
var exports_util = {};
|
|
93
|
-
__export(exports_util, {
|
|
94
|
-
unwrapMessage: () => unwrapMessage,
|
|
95
|
-
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
96
|
-
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
97
|
-
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
98
|
-
stringifyPrimitive: () => stringifyPrimitive,
|
|
99
|
-
slugify: () => slugify,
|
|
100
|
-
shallowClone: () => shallowClone,
|
|
101
|
-
safeExtend: () => safeExtend,
|
|
102
|
-
required: () => required,
|
|
103
|
-
randomString: () => randomString,
|
|
104
|
-
propertyKeyTypes: () => propertyKeyTypes,
|
|
105
|
-
promiseAllObject: () => promiseAllObject,
|
|
106
|
-
primitiveTypes: () => primitiveTypes,
|
|
107
|
-
prefixIssues: () => prefixIssues,
|
|
108
|
-
pick: () => pick,
|
|
109
|
-
partial: () => partial,
|
|
110
|
-
parsedType: () => parsedType,
|
|
111
|
-
optionalKeys: () => optionalKeys,
|
|
112
|
-
omit: () => omit,
|
|
113
|
-
objectClone: () => objectClone,
|
|
114
|
-
numKeys: () => numKeys,
|
|
115
|
-
nullish: () => nullish,
|
|
116
|
-
normalizeParams: () => normalizeParams,
|
|
117
|
-
mergeDefs: () => mergeDefs,
|
|
118
|
-
merge: () => merge,
|
|
119
|
-
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
120
|
-
joinValues: () => joinValues,
|
|
121
|
-
issue: () => issue,
|
|
122
|
-
isPlainObject: () => isPlainObject,
|
|
123
|
-
isObject: () => isObject,
|
|
124
|
-
hexToUint8Array: () => hexToUint8Array,
|
|
125
|
-
getSizableOrigin: () => getSizableOrigin,
|
|
126
|
-
getParsedType: () => getParsedType,
|
|
127
|
-
getLengthableOrigin: () => getLengthableOrigin,
|
|
128
|
-
getEnumValues: () => getEnumValues,
|
|
129
|
-
getElementAtPath: () => getElementAtPath,
|
|
130
|
-
floatSafeRemainder: () => floatSafeRemainder,
|
|
131
|
-
finalizeIssue: () => finalizeIssue,
|
|
132
|
-
extend: () => extend,
|
|
133
|
-
explicitlyAborted: () => explicitlyAborted,
|
|
134
|
-
escapeRegex: () => escapeRegex,
|
|
135
|
-
esc: () => esc,
|
|
136
|
-
defineLazy: () => defineLazy,
|
|
137
|
-
createTransparentProxy: () => createTransparentProxy,
|
|
138
|
-
cloneDef: () => cloneDef,
|
|
139
|
-
clone: () => clone,
|
|
140
|
-
cleanRegex: () => cleanRegex,
|
|
141
|
-
cleanEnum: () => cleanEnum,
|
|
142
|
-
captureStackTrace: () => captureStackTrace,
|
|
143
|
-
cached: () => cached,
|
|
144
|
-
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
145
|
-
base64ToUint8Array: () => base64ToUint8Array,
|
|
146
|
-
assignProp: () => assignProp,
|
|
147
|
-
assertNotEqual: () => assertNotEqual,
|
|
148
|
-
assertNever: () => assertNever,
|
|
149
|
-
assertIs: () => assertIs,
|
|
150
|
-
assertEqual: () => assertEqual,
|
|
151
|
-
assert: () => assert,
|
|
152
|
-
allowsEval: () => allowsEval,
|
|
153
|
-
aborted: () => aborted,
|
|
154
|
-
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
155
|
-
Class: () => Class,
|
|
156
|
-
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES
|
|
157
|
-
});
|
|
158
|
-
function assertEqual(val) {
|
|
159
|
-
return val;
|
|
160
|
-
}
|
|
161
|
-
function assertNotEqual(val) {
|
|
162
|
-
return val;
|
|
163
|
-
}
|
|
164
|
-
function assertIs(_arg) {}
|
|
165
|
-
function assertNever(_x) {
|
|
166
|
-
throw new Error("Unexpected value in exhaustive check");
|
|
167
|
-
}
|
|
168
|
-
function assert(_) {}
|
|
169
77
|
function getEnumValues(entries) {
|
|
170
78
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
171
79
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -230,9 +138,6 @@ function defineLazy(object, key, getter) {
|
|
|
230
138
|
configurable: true
|
|
231
139
|
});
|
|
232
140
|
}
|
|
233
|
-
function objectClone(obj) {
|
|
234
|
-
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
235
|
-
}
|
|
236
141
|
function assignProp(target, prop, value) {
|
|
237
142
|
Object.defineProperty(target, prop, {
|
|
238
143
|
value,
|
|
@@ -249,33 +154,6 @@ function mergeDefs(...defs) {
|
|
|
249
154
|
}
|
|
250
155
|
return Object.defineProperties({}, mergedDescriptors);
|
|
251
156
|
}
|
|
252
|
-
function cloneDef(schema) {
|
|
253
|
-
return mergeDefs(schema._zod.def);
|
|
254
|
-
}
|
|
255
|
-
function getElementAtPath(obj, path) {
|
|
256
|
-
if (!path)
|
|
257
|
-
return obj;
|
|
258
|
-
return path.reduce((acc, key) => acc?.[key], obj);
|
|
259
|
-
}
|
|
260
|
-
function promiseAllObject(promisesObj) {
|
|
261
|
-
const keys = Object.keys(promisesObj);
|
|
262
|
-
const promises = keys.map((key) => promisesObj[key]);
|
|
263
|
-
return Promise.all(promises).then((results) => {
|
|
264
|
-
const resolvedObj = {};
|
|
265
|
-
for (let i = 0;i < keys.length; i++) {
|
|
266
|
-
resolvedObj[keys[i]] = results[i];
|
|
267
|
-
}
|
|
268
|
-
return resolvedObj;
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
function randomString(length = 10) {
|
|
272
|
-
const chars = "abcdefghijklmnopqrstuvwxyz";
|
|
273
|
-
let str = "";
|
|
274
|
-
for (let i = 0;i < length; i++) {
|
|
275
|
-
str += chars[Math.floor(Math.random() * chars.length)];
|
|
276
|
-
}
|
|
277
|
-
return str;
|
|
278
|
-
}
|
|
279
157
|
function esc(str) {
|
|
280
158
|
return JSON.stringify(str);
|
|
281
159
|
}
|
|
@@ -328,68 +206,7 @@ function shallowClone(o) {
|
|
|
328
206
|
return new Set(o);
|
|
329
207
|
return o;
|
|
330
208
|
}
|
|
331
|
-
function numKeys(data) {
|
|
332
|
-
let keyCount = 0;
|
|
333
|
-
for (const key in data) {
|
|
334
|
-
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
335
|
-
keyCount++;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
return keyCount;
|
|
339
|
-
}
|
|
340
|
-
var getParsedType = (data) => {
|
|
341
|
-
const t = typeof data;
|
|
342
|
-
switch (t) {
|
|
343
|
-
case "undefined":
|
|
344
|
-
return "undefined";
|
|
345
|
-
case "string":
|
|
346
|
-
return "string";
|
|
347
|
-
case "number":
|
|
348
|
-
return Number.isNaN(data) ? "nan" : "number";
|
|
349
|
-
case "boolean":
|
|
350
|
-
return "boolean";
|
|
351
|
-
case "function":
|
|
352
|
-
return "function";
|
|
353
|
-
case "bigint":
|
|
354
|
-
return "bigint";
|
|
355
|
-
case "symbol":
|
|
356
|
-
return "symbol";
|
|
357
|
-
case "object":
|
|
358
|
-
if (Array.isArray(data)) {
|
|
359
|
-
return "array";
|
|
360
|
-
}
|
|
361
|
-
if (data === null) {
|
|
362
|
-
return "null";
|
|
363
|
-
}
|
|
364
|
-
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
365
|
-
return "promise";
|
|
366
|
-
}
|
|
367
|
-
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
368
|
-
return "map";
|
|
369
|
-
}
|
|
370
|
-
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
371
|
-
return "set";
|
|
372
|
-
}
|
|
373
|
-
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
374
|
-
return "date";
|
|
375
|
-
}
|
|
376
|
-
if (typeof File !== "undefined" && data instanceof File) {
|
|
377
|
-
return "file";
|
|
378
|
-
}
|
|
379
|
-
return "object";
|
|
380
|
-
default:
|
|
381
|
-
throw new Error(`Unknown data type: ${t}`);
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
209
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
385
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
386
|
-
"string",
|
|
387
|
-
"number",
|
|
388
|
-
"bigint",
|
|
389
|
-
"boolean",
|
|
390
|
-
"symbol",
|
|
391
|
-
"undefined"
|
|
392
|
-
]);
|
|
393
210
|
function escapeRegex(str) {
|
|
394
211
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
395
212
|
}
|
|
@@ -415,39 +232,6 @@ function normalizeParams(_params) {
|
|
|
415
232
|
return { ...params, error: () => params.error };
|
|
416
233
|
return params;
|
|
417
234
|
}
|
|
418
|
-
function createTransparentProxy(getter) {
|
|
419
|
-
let target;
|
|
420
|
-
return new Proxy({}, {
|
|
421
|
-
get(_, prop, receiver) {
|
|
422
|
-
target ?? (target = getter());
|
|
423
|
-
return Reflect.get(target, prop, receiver);
|
|
424
|
-
},
|
|
425
|
-
set(_, prop, value, receiver) {
|
|
426
|
-
target ?? (target = getter());
|
|
427
|
-
return Reflect.set(target, prop, value, receiver);
|
|
428
|
-
},
|
|
429
|
-
has(_, prop) {
|
|
430
|
-
target ?? (target = getter());
|
|
431
|
-
return Reflect.has(target, prop);
|
|
432
|
-
},
|
|
433
|
-
deleteProperty(_, prop) {
|
|
434
|
-
target ?? (target = getter());
|
|
435
|
-
return Reflect.deleteProperty(target, prop);
|
|
436
|
-
},
|
|
437
|
-
ownKeys(_) {
|
|
438
|
-
target ?? (target = getter());
|
|
439
|
-
return Reflect.ownKeys(target);
|
|
440
|
-
},
|
|
441
|
-
getOwnPropertyDescriptor(_, prop) {
|
|
442
|
-
target ?? (target = getter());
|
|
443
|
-
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
444
|
-
},
|
|
445
|
-
defineProperty(_, prop, descriptor) {
|
|
446
|
-
target ?? (target = getter());
|
|
447
|
-
return Reflect.defineProperty(target, prop, descriptor);
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
235
|
function stringifyPrimitive(value) {
|
|
452
236
|
if (typeof value === "bigint")
|
|
453
237
|
return value.toString() + "n";
|
|
@@ -467,10 +251,6 @@ var NUMBER_FORMAT_RANGES = {
|
|
|
467
251
|
float32: [-340282346638528860000000000000000000000, 340282346638528860000000000000000000000],
|
|
468
252
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
469
253
|
};
|
|
470
|
-
var BIGINT_FORMAT_RANGES = {
|
|
471
|
-
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
472
|
-
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
473
|
-
};
|
|
474
254
|
function pick(schema, mask) {
|
|
475
255
|
const currDef = schema._zod.def;
|
|
476
256
|
const checks = currDef.checks;
|
|
@@ -665,8 +445,8 @@ function explicitlyAborted(x, startIndex = 0) {
|
|
|
665
445
|
}
|
|
666
446
|
function prefixIssues(path, issues) {
|
|
667
447
|
return issues.map((iss) => {
|
|
668
|
-
var
|
|
669
|
-
(
|
|
448
|
+
var _a;
|
|
449
|
+
(_a = iss).path ?? (_a.path = []);
|
|
670
450
|
iss.path.unshift(path);
|
|
671
451
|
return iss;
|
|
672
452
|
});
|
|
@@ -674,8 +454,8 @@ function prefixIssues(path, issues) {
|
|
|
674
454
|
function unwrapMessage(message) {
|
|
675
455
|
return typeof message === "string" ? message : message?.message;
|
|
676
456
|
}
|
|
677
|
-
function finalizeIssue(iss, ctx,
|
|
678
|
-
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
457
|
+
function finalizeIssue(iss, ctx, config) {
|
|
458
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
|
|
679
459
|
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
680
460
|
rest.path ?? (rest.path = []);
|
|
681
461
|
rest.message = message;
|
|
@@ -684,15 +464,6 @@ function finalizeIssue(iss, ctx, config2) {
|
|
|
684
464
|
}
|
|
685
465
|
return rest;
|
|
686
466
|
}
|
|
687
|
-
function getSizableOrigin(input) {
|
|
688
|
-
if (input instanceof Set)
|
|
689
|
-
return "set";
|
|
690
|
-
if (input instanceof Map)
|
|
691
|
-
return "map";
|
|
692
|
-
if (input instanceof File)
|
|
693
|
-
return "file";
|
|
694
|
-
return "unknown";
|
|
695
|
-
}
|
|
696
467
|
function getLengthableOrigin(input) {
|
|
697
468
|
if (Array.isArray(input))
|
|
698
469
|
return "array";
|
|
@@ -733,52 +504,6 @@ function issue(...args) {
|
|
|
733
504
|
}
|
|
734
505
|
return { ...iss };
|
|
735
506
|
}
|
|
736
|
-
function cleanEnum(obj) {
|
|
737
|
-
return Object.entries(obj).filter(([k, _]) => {
|
|
738
|
-
return Number.isNaN(Number.parseInt(k, 10));
|
|
739
|
-
}).map((el) => el[1]);
|
|
740
|
-
}
|
|
741
|
-
function base64ToUint8Array(base64) {
|
|
742
|
-
const binaryString = atob(base64);
|
|
743
|
-
const bytes = new Uint8Array(binaryString.length);
|
|
744
|
-
for (let i = 0;i < binaryString.length; i++) {
|
|
745
|
-
bytes[i] = binaryString.charCodeAt(i);
|
|
746
|
-
}
|
|
747
|
-
return bytes;
|
|
748
|
-
}
|
|
749
|
-
function uint8ArrayToBase64(bytes) {
|
|
750
|
-
let binaryString = "";
|
|
751
|
-
for (let i = 0;i < bytes.length; i++) {
|
|
752
|
-
binaryString += String.fromCharCode(bytes[i]);
|
|
753
|
-
}
|
|
754
|
-
return btoa(binaryString);
|
|
755
|
-
}
|
|
756
|
-
function base64urlToUint8Array(base64url) {
|
|
757
|
-
const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/");
|
|
758
|
-
const padding = "=".repeat((4 - base64.length % 4) % 4);
|
|
759
|
-
return base64ToUint8Array(base64 + padding);
|
|
760
|
-
}
|
|
761
|
-
function uint8ArrayToBase64url(bytes) {
|
|
762
|
-
return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
763
|
-
}
|
|
764
|
-
function hexToUint8Array(hex) {
|
|
765
|
-
const cleanHex = hex.replace(/^0x/, "");
|
|
766
|
-
if (cleanHex.length % 2 !== 0) {
|
|
767
|
-
throw new Error("Invalid hex string length");
|
|
768
|
-
}
|
|
769
|
-
const bytes = new Uint8Array(cleanHex.length / 2);
|
|
770
|
-
for (let i = 0;i < cleanHex.length; i += 2) {
|
|
771
|
-
bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
|
|
772
|
-
}
|
|
773
|
-
return bytes;
|
|
774
|
-
}
|
|
775
|
-
function uint8ArrayToHex(bytes) {
|
|
776
|
-
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
class Class {
|
|
780
|
-
constructor(..._args) {}
|
|
781
|
-
}
|
|
782
507
|
|
|
783
508
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
784
509
|
var initializer = (inst, def) => {
|
|
@@ -799,7 +524,7 @@ var initializer = (inst, def) => {
|
|
|
799
524
|
};
|
|
800
525
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
801
526
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
802
|
-
function flattenError(error, mapper = (
|
|
527
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
803
528
|
const fieldErrors = {};
|
|
804
529
|
const formErrors = [];
|
|
805
530
|
for (const sub of error.issues) {
|
|
@@ -812,20 +537,20 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
812
537
|
}
|
|
813
538
|
return { formErrors, fieldErrors };
|
|
814
539
|
}
|
|
815
|
-
function formatError(error, mapper = (
|
|
540
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
816
541
|
const fieldErrors = { _errors: [] };
|
|
817
|
-
const processError = (
|
|
818
|
-
for (const
|
|
819
|
-
if (
|
|
820
|
-
|
|
821
|
-
} else if (
|
|
822
|
-
processError({ issues:
|
|
823
|
-
} else if (
|
|
824
|
-
processError({ issues:
|
|
542
|
+
const processError = (error, path = []) => {
|
|
543
|
+
for (const issue of error.issues) {
|
|
544
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
545
|
+
issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
|
|
546
|
+
} else if (issue.code === "invalid_key") {
|
|
547
|
+
processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
548
|
+
} else if (issue.code === "invalid_element") {
|
|
549
|
+
processError({ issues: issue.issues }, [...path, ...issue.path]);
|
|
825
550
|
} else {
|
|
826
|
-
const fullpath = [...path, ...
|
|
551
|
+
const fullpath = [...path, ...issue.path];
|
|
827
552
|
if (fullpath.length === 0) {
|
|
828
|
-
fieldErrors._errors.push(mapper(
|
|
553
|
+
fieldErrors._errors.push(mapper(issue));
|
|
829
554
|
} else {
|
|
830
555
|
let curr = fieldErrors;
|
|
831
556
|
let i = 0;
|
|
@@ -836,7 +561,7 @@ function formatError(error, mapper = (issue2) => issue2.message) {
|
|
|
836
561
|
curr[el] = curr[el] || { _errors: [] };
|
|
837
562
|
} else {
|
|
838
563
|
curr[el] = curr[el] || { _errors: [] };
|
|
839
|
-
curr[el]._errors.push(mapper(
|
|
564
|
+
curr[el]._errors.push(mapper(issue));
|
|
840
565
|
}
|
|
841
566
|
curr = curr[el];
|
|
842
567
|
i++;
|
|
@@ -964,13 +689,13 @@ function time(args) {
|
|
|
964
689
|
return new RegExp(`^${timeSource(args)}$`);
|
|
965
690
|
}
|
|
966
691
|
function datetime(args) {
|
|
967
|
-
const
|
|
692
|
+
const time = timeSource({ precision: args.precision });
|
|
968
693
|
const opts = ["Z"];
|
|
969
694
|
if (args.local)
|
|
970
695
|
opts.push("");
|
|
971
696
|
if (args.offset)
|
|
972
697
|
opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
|
|
973
|
-
const timeRegex = `${
|
|
698
|
+
const timeRegex = `${time}(?:${opts.join("|")})`;
|
|
974
699
|
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
975
700
|
}
|
|
976
701
|
var string = (params) => {
|
|
@@ -986,10 +711,10 @@ var uppercase = /^[^a-z]*$/;
|
|
|
986
711
|
|
|
987
712
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
988
713
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
989
|
-
var
|
|
714
|
+
var _a;
|
|
990
715
|
inst._zod ?? (inst._zod = {});
|
|
991
716
|
inst._zod.def = def;
|
|
992
|
-
(
|
|
717
|
+
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
993
718
|
});
|
|
994
719
|
var numericOriginMap = {
|
|
995
720
|
number: "number",
|
|
@@ -999,8 +724,8 @@ var numericOriginMap = {
|
|
|
999
724
|
var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
1000
725
|
$ZodCheck.init(inst, def);
|
|
1001
726
|
const origin = numericOriginMap[typeof def.value];
|
|
1002
|
-
inst._zod.onattach.push((
|
|
1003
|
-
const bag =
|
|
727
|
+
inst._zod.onattach.push((inst) => {
|
|
728
|
+
const bag = inst._zod.bag;
|
|
1004
729
|
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
1005
730
|
if (def.value < curr) {
|
|
1006
731
|
if (def.inclusive)
|
|
@@ -1027,8 +752,8 @@ var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst,
|
|
|
1027
752
|
var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
1028
753
|
$ZodCheck.init(inst, def);
|
|
1029
754
|
const origin = numericOriginMap[typeof def.value];
|
|
1030
|
-
inst._zod.onattach.push((
|
|
1031
|
-
const bag =
|
|
755
|
+
inst._zod.onattach.push((inst) => {
|
|
756
|
+
const bag = inst._zod.bag;
|
|
1032
757
|
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
1033
758
|
if (def.value > curr) {
|
|
1034
759
|
if (def.inclusive)
|
|
@@ -1054,9 +779,9 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1054
779
|
});
|
|
1055
780
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1056
781
|
$ZodCheck.init(inst, def);
|
|
1057
|
-
inst._zod.onattach.push((
|
|
1058
|
-
var
|
|
1059
|
-
(
|
|
782
|
+
inst._zod.onattach.push((inst) => {
|
|
783
|
+
var _a;
|
|
784
|
+
(_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
|
|
1060
785
|
});
|
|
1061
786
|
inst._zod.check = (payload) => {
|
|
1062
787
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1080,8 +805,8 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
1080
805
|
const isInt = def.format?.includes("int");
|
|
1081
806
|
const origin = isInt ? "int" : "number";
|
|
1082
807
|
const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
|
|
1083
|
-
inst._zod.onattach.push((
|
|
1084
|
-
const bag =
|
|
808
|
+
inst._zod.onattach.push((inst) => {
|
|
809
|
+
const bag = inst._zod.bag;
|
|
1085
810
|
bag.format = def.format;
|
|
1086
811
|
bag.minimum = minimum;
|
|
1087
812
|
bag.maximum = maximum;
|
|
@@ -1154,16 +879,16 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
1154
879
|
};
|
|
1155
880
|
});
|
|
1156
881
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1157
|
-
var
|
|
882
|
+
var _a;
|
|
1158
883
|
$ZodCheck.init(inst, def);
|
|
1159
|
-
(
|
|
884
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1160
885
|
const val = payload.value;
|
|
1161
886
|
return !nullish(val) && val.length !== undefined;
|
|
1162
887
|
});
|
|
1163
|
-
inst._zod.onattach.push((
|
|
1164
|
-
const curr =
|
|
888
|
+
inst._zod.onattach.push((inst) => {
|
|
889
|
+
const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
1165
890
|
if (def.maximum < curr)
|
|
1166
|
-
|
|
891
|
+
inst._zod.bag.maximum = def.maximum;
|
|
1167
892
|
});
|
|
1168
893
|
inst._zod.check = (payload) => {
|
|
1169
894
|
const input = payload.value;
|
|
@@ -1183,16 +908,16 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
1183
908
|
};
|
|
1184
909
|
});
|
|
1185
910
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1186
|
-
var
|
|
911
|
+
var _a;
|
|
1187
912
|
$ZodCheck.init(inst, def);
|
|
1188
|
-
(
|
|
913
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1189
914
|
const val = payload.value;
|
|
1190
915
|
return !nullish(val) && val.length !== undefined;
|
|
1191
916
|
});
|
|
1192
|
-
inst._zod.onattach.push((
|
|
1193
|
-
const curr =
|
|
917
|
+
inst._zod.onattach.push((inst) => {
|
|
918
|
+
const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
1194
919
|
if (def.minimum > curr)
|
|
1195
|
-
|
|
920
|
+
inst._zod.bag.minimum = def.minimum;
|
|
1196
921
|
});
|
|
1197
922
|
inst._zod.check = (payload) => {
|
|
1198
923
|
const input = payload.value;
|
|
@@ -1212,14 +937,14 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
1212
937
|
};
|
|
1213
938
|
});
|
|
1214
939
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1215
|
-
var
|
|
940
|
+
var _a;
|
|
1216
941
|
$ZodCheck.init(inst, def);
|
|
1217
|
-
(
|
|
942
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
1218
943
|
const val = payload.value;
|
|
1219
944
|
return !nullish(val) && val.length !== undefined;
|
|
1220
945
|
});
|
|
1221
|
-
inst._zod.onattach.push((
|
|
1222
|
-
const bag =
|
|
946
|
+
inst._zod.onattach.push((inst) => {
|
|
947
|
+
const bag = inst._zod.bag;
|
|
1223
948
|
bag.minimum = def.length;
|
|
1224
949
|
bag.maximum = def.length;
|
|
1225
950
|
bag.length = def.length;
|
|
@@ -1243,10 +968,10 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
1243
968
|
};
|
|
1244
969
|
});
|
|
1245
970
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1246
|
-
var
|
|
971
|
+
var _a, _b;
|
|
1247
972
|
$ZodCheck.init(inst, def);
|
|
1248
|
-
inst._zod.onattach.push((
|
|
1249
|
-
const bag =
|
|
973
|
+
inst._zod.onattach.push((inst) => {
|
|
974
|
+
const bag = inst._zod.bag;
|
|
1250
975
|
bag.format = def.format;
|
|
1251
976
|
if (def.pattern) {
|
|
1252
977
|
bag.patterns ?? (bag.patterns = new Set);
|
|
@@ -1254,7 +979,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
1254
979
|
}
|
|
1255
980
|
});
|
|
1256
981
|
if (def.pattern)
|
|
1257
|
-
(
|
|
982
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
1258
983
|
def.pattern.lastIndex = 0;
|
|
1259
984
|
if (def.pattern.test(payload.value))
|
|
1260
985
|
return;
|
|
@@ -1301,8 +1026,8 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
|
|
|
1301
1026
|
const escapedRegex = escapeRegex(def.includes);
|
|
1302
1027
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
1303
1028
|
def.pattern = pattern;
|
|
1304
|
-
inst._zod.onattach.push((
|
|
1305
|
-
const bag =
|
|
1029
|
+
inst._zod.onattach.push((inst) => {
|
|
1030
|
+
const bag = inst._zod.bag;
|
|
1306
1031
|
bag.patterns ?? (bag.patterns = new Set);
|
|
1307
1032
|
bag.patterns.add(pattern);
|
|
1308
1033
|
});
|
|
@@ -1324,8 +1049,8 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
|
|
|
1324
1049
|
$ZodCheck.init(inst, def);
|
|
1325
1050
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
1326
1051
|
def.pattern ?? (def.pattern = pattern);
|
|
1327
|
-
inst._zod.onattach.push((
|
|
1328
|
-
const bag =
|
|
1052
|
+
inst._zod.onattach.push((inst) => {
|
|
1053
|
+
const bag = inst._zod.bag;
|
|
1329
1054
|
bag.patterns ?? (bag.patterns = new Set);
|
|
1330
1055
|
bag.patterns.add(pattern);
|
|
1331
1056
|
});
|
|
@@ -1347,8 +1072,8 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
|
|
|
1347
1072
|
$ZodCheck.init(inst, def);
|
|
1348
1073
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
1349
1074
|
def.pattern ?? (def.pattern = pattern);
|
|
1350
|
-
inst._zod.onattach.push((
|
|
1351
|
-
const bag =
|
|
1075
|
+
inst._zod.onattach.push((inst) => {
|
|
1076
|
+
const bag = inst._zod.bag;
|
|
1352
1077
|
bag.patterns ?? (bag.patterns = new Set);
|
|
1353
1078
|
bag.patterns.add(pattern);
|
|
1354
1079
|
});
|
|
@@ -1420,7 +1145,7 @@ var version = {
|
|
|
1420
1145
|
|
|
1421
1146
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1422
1147
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1423
|
-
var
|
|
1148
|
+
var _a;
|
|
1424
1149
|
inst ?? (inst = {});
|
|
1425
1150
|
inst._zod.def = def;
|
|
1426
1151
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -1435,15 +1160,15 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1435
1160
|
}
|
|
1436
1161
|
}
|
|
1437
1162
|
if (checks.length === 0) {
|
|
1438
|
-
(
|
|
1163
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
1439
1164
|
inst._zod.deferred?.push(() => {
|
|
1440
1165
|
inst._zod.run = inst._zod.parse;
|
|
1441
1166
|
});
|
|
1442
1167
|
} else {
|
|
1443
|
-
const runChecks = (payload,
|
|
1168
|
+
const runChecks = (payload, checks, ctx) => {
|
|
1444
1169
|
let isAborted = aborted(payload);
|
|
1445
1170
|
let asyncResult;
|
|
1446
|
-
for (const ch of
|
|
1171
|
+
for (const ch of checks) {
|
|
1447
1172
|
if (ch._zod.def.when) {
|
|
1448
1173
|
if (explicitlyAborted(payload))
|
|
1449
1174
|
continue;
|
|
@@ -1491,7 +1216,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1491
1216
|
if (checkResult instanceof Promise) {
|
|
1492
1217
|
if (ctx.async === false)
|
|
1493
1218
|
throw new $ZodAsyncError;
|
|
1494
|
-
return checkResult.then((
|
|
1219
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
1495
1220
|
}
|
|
1496
1221
|
return inst._zod.parse(checkResult, ctx);
|
|
1497
1222
|
};
|
|
@@ -1502,8 +1227,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1502
1227
|
if (ctx.direction === "backward") {
|
|
1503
1228
|
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
1504
1229
|
if (canary instanceof Promise) {
|
|
1505
|
-
return canary.then((
|
|
1506
|
-
return handleCanaryResult(
|
|
1230
|
+
return canary.then((canary) => {
|
|
1231
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
1507
1232
|
});
|
|
1508
1233
|
}
|
|
1509
1234
|
return handleCanaryResult(canary, payload, ctx);
|
|
@@ -1512,7 +1237,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1512
1237
|
if (result instanceof Promise) {
|
|
1513
1238
|
if (ctx.async === false)
|
|
1514
1239
|
throw new $ZodAsyncError;
|
|
1515
|
-
return result.then((
|
|
1240
|
+
return result.then((result) => runChecks(result, checks, ctx));
|
|
1516
1241
|
}
|
|
1517
1242
|
return runChecks(result, checks, ctx);
|
|
1518
1243
|
};
|
|
@@ -1537,7 +1262,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
1537
1262
|
if (def.coerce)
|
|
1538
1263
|
try {
|
|
1539
1264
|
payload.value = String(payload.value);
|
|
1540
|
-
} catch (
|
|
1265
|
+
} catch (_) {}
|
|
1541
1266
|
if (typeof payload.value === "string")
|
|
1542
1267
|
return payload;
|
|
1543
1268
|
payload.issues.push({
|
|
@@ -1777,8 +1502,8 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
1777
1502
|
function isValidBase64URL(data) {
|
|
1778
1503
|
if (!base64url.test(data))
|
|
1779
1504
|
return false;
|
|
1780
|
-
const
|
|
1781
|
-
const padded =
|
|
1505
|
+
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1506
|
+
const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
|
|
1782
1507
|
return isValidBase64(padded);
|
|
1783
1508
|
}
|
|
1784
1509
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
@@ -1958,7 +1683,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
1958
1683
|
issues: []
|
|
1959
1684
|
}, ctx);
|
|
1960
1685
|
if (result instanceof Promise) {
|
|
1961
|
-
proms.push(result.then((
|
|
1686
|
+
proms.push(result.then((result) => handleArrayResult(result, payload, i)));
|
|
1962
1687
|
} else {
|
|
1963
1688
|
handleArrayResult(result, payload, i);
|
|
1964
1689
|
}
|
|
@@ -2030,7 +1755,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2030
1755
|
}
|
|
2031
1756
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2032
1757
|
if (r instanceof Promise) {
|
|
2033
|
-
proms.push(r.then((
|
|
1758
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2034
1759
|
} else {
|
|
2035
1760
|
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2036
1761
|
}
|
|
@@ -2102,7 +1827,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
2102
1827
|
const isOptionalOut = el._zod.optout === "optional";
|
|
2103
1828
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
2104
1829
|
if (r instanceof Promise) {
|
|
2105
|
-
proms.push(r.then((
|
|
1830
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2106
1831
|
} else {
|
|
2107
1832
|
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2108
1833
|
}
|
|
@@ -2300,8 +2025,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
2300
2025
|
}
|
|
2301
2026
|
if (!async)
|
|
2302
2027
|
return handleUnionResults(results, payload, inst, ctx);
|
|
2303
|
-
return Promise.all(results).then((
|
|
2304
|
-
return handleUnionResults(
|
|
2028
|
+
return Promise.all(results).then((results) => {
|
|
2029
|
+
return handleUnionResults(results, payload, inst, ctx);
|
|
2305
2030
|
});
|
|
2306
2031
|
};
|
|
2307
2032
|
});
|
|
@@ -2380,8 +2105,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
2380
2105
|
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
2381
2106
|
const async = left instanceof Promise || right instanceof Promise;
|
|
2382
2107
|
if (async) {
|
|
2383
|
-
return Promise.all([left, right]).then(([
|
|
2384
|
-
return handleIntersectionResults(payload,
|
|
2108
|
+
return Promise.all([left, right]).then(([left, right]) => {
|
|
2109
|
+
return handleIntersectionResults(payload, left, right);
|
|
2385
2110
|
});
|
|
2386
2111
|
}
|
|
2387
2112
|
return handleIntersectionResults(payload, left, right);
|
|
@@ -2615,11 +2340,11 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
2615
2340
|
const outKey = keyResult.value;
|
|
2616
2341
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
2617
2342
|
if (result instanceof Promise) {
|
|
2618
|
-
proms.push(result.then((
|
|
2619
|
-
if (
|
|
2620
|
-
payload.issues.push(...prefixIssues(key,
|
|
2343
|
+
proms.push(result.then((result) => {
|
|
2344
|
+
if (result.issues.length) {
|
|
2345
|
+
payload.issues.push(...prefixIssues(key, result.issues));
|
|
2621
2346
|
}
|
|
2622
|
-
payload.value[outKey] =
|
|
2347
|
+
payload.value[outKey] = result.value;
|
|
2623
2348
|
}));
|
|
2624
2349
|
} else {
|
|
2625
2350
|
if (result.issues.length) {
|
|
@@ -2682,11 +2407,11 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
2682
2407
|
}
|
|
2683
2408
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
2684
2409
|
if (result instanceof Promise) {
|
|
2685
|
-
proms.push(result.then((
|
|
2686
|
-
if (
|
|
2687
|
-
payload.issues.push(...prefixIssues(key,
|
|
2410
|
+
proms.push(result.then((result) => {
|
|
2411
|
+
if (result.issues.length) {
|
|
2412
|
+
payload.issues.push(...prefixIssues(key, result.issues));
|
|
2688
2413
|
}
|
|
2689
|
-
payload.value[keyResult.value] =
|
|
2414
|
+
payload.value[keyResult.value] = result.value;
|
|
2690
2415
|
}));
|
|
2691
2416
|
} else {
|
|
2692
2417
|
if (result.issues.length) {
|
|
@@ -2754,8 +2479,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
2754
2479
|
const _out = def.transform(payload.value, payload);
|
|
2755
2480
|
if (ctx.async) {
|
|
2756
2481
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
2757
|
-
return output.then((
|
|
2758
|
-
payload.value =
|
|
2482
|
+
return output.then((output) => {
|
|
2483
|
+
payload.value = output;
|
|
2759
2484
|
payload.fallback = true;
|
|
2760
2485
|
return payload;
|
|
2761
2486
|
});
|
|
@@ -2838,7 +2563,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
|
2838
2563
|
}
|
|
2839
2564
|
const result = def.innerType._zod.run(payload, ctx);
|
|
2840
2565
|
if (result instanceof Promise) {
|
|
2841
|
-
return result.then((
|
|
2566
|
+
return result.then((result) => handleDefaultResult(result, def));
|
|
2842
2567
|
}
|
|
2843
2568
|
return handleDefaultResult(result, def);
|
|
2844
2569
|
};
|
|
@@ -2872,7 +2597,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
|
|
|
2872
2597
|
inst._zod.parse = (payload, ctx) => {
|
|
2873
2598
|
const result = def.innerType._zod.run(payload, ctx);
|
|
2874
2599
|
if (result instanceof Promise) {
|
|
2875
|
-
return result.then((
|
|
2600
|
+
return result.then((result) => handleNonOptionalResult(result, inst));
|
|
2876
2601
|
}
|
|
2877
2602
|
return handleNonOptionalResult(result, inst);
|
|
2878
2603
|
};
|
|
@@ -2899,13 +2624,13 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
2899
2624
|
}
|
|
2900
2625
|
const result = def.innerType._zod.run(payload, ctx);
|
|
2901
2626
|
if (result instanceof Promise) {
|
|
2902
|
-
return result.then((
|
|
2903
|
-
payload.value =
|
|
2904
|
-
if (
|
|
2627
|
+
return result.then((result) => {
|
|
2628
|
+
payload.value = result.value;
|
|
2629
|
+
if (result.issues.length) {
|
|
2905
2630
|
payload.value = def.catchValue({
|
|
2906
2631
|
...payload,
|
|
2907
2632
|
error: {
|
|
2908
|
-
issues:
|
|
2633
|
+
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
2909
2634
|
},
|
|
2910
2635
|
input: payload.value
|
|
2911
2636
|
});
|
|
@@ -2940,13 +2665,13 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
2940
2665
|
if (ctx.direction === "backward") {
|
|
2941
2666
|
const right = def.out._zod.run(payload, ctx);
|
|
2942
2667
|
if (right instanceof Promise) {
|
|
2943
|
-
return right.then((
|
|
2668
|
+
return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
2944
2669
|
}
|
|
2945
2670
|
return handlePipeResult(right, def.in, ctx);
|
|
2946
2671
|
}
|
|
2947
2672
|
const left = def.in._zod.run(payload, ctx);
|
|
2948
2673
|
if (left instanceof Promise) {
|
|
2949
|
-
return left.then((
|
|
2674
|
+
return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
2950
2675
|
}
|
|
2951
2676
|
return handlePipeResult(left, def.out, ctx);
|
|
2952
2677
|
};
|
|
@@ -2989,7 +2714,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
|
2989
2714
|
const input = payload.value;
|
|
2990
2715
|
const r = def.fn(input);
|
|
2991
2716
|
if (r instanceof Promise) {
|
|
2992
|
-
return r.then((
|
|
2717
|
+
return r.then((r) => handleRefineResult(r, payload, input, inst));
|
|
2993
2718
|
}
|
|
2994
2719
|
handleRefineResult(r, payload, input, inst);
|
|
2995
2720
|
return;
|
|
@@ -3055,35 +2780,35 @@ var error = () => {
|
|
|
3055
2780
|
const TypeDictionary = {
|
|
3056
2781
|
nan: "NaN"
|
|
3057
2782
|
};
|
|
3058
|
-
return (
|
|
3059
|
-
switch (
|
|
2783
|
+
return (issue) => {
|
|
2784
|
+
switch (issue.code) {
|
|
3060
2785
|
case "invalid_type": {
|
|
3061
|
-
const expected = TypeDictionary[
|
|
3062
|
-
const receivedType = parsedType(
|
|
2786
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
2787
|
+
const receivedType = parsedType(issue.input);
|
|
3063
2788
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
3064
2789
|
return `Invalid input: expected ${expected}, received ${received}`;
|
|
3065
2790
|
}
|
|
3066
2791
|
case "invalid_value":
|
|
3067
|
-
if (
|
|
3068
|
-
return `Invalid input: expected ${stringifyPrimitive(
|
|
3069
|
-
return `Invalid option: expected one of ${joinValues(
|
|
2792
|
+
if (issue.values.length === 1)
|
|
2793
|
+
return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`;
|
|
2794
|
+
return `Invalid option: expected one of ${joinValues(issue.values, "|")}`;
|
|
3070
2795
|
case "too_big": {
|
|
3071
|
-
const adj =
|
|
3072
|
-
const sizing = getSizing(
|
|
2796
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
2797
|
+
const sizing = getSizing(issue.origin);
|
|
3073
2798
|
if (sizing)
|
|
3074
|
-
return `Too big: expected ${
|
|
3075
|
-
return `Too big: expected ${
|
|
2799
|
+
return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`;
|
|
2800
|
+
return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`;
|
|
3076
2801
|
}
|
|
3077
2802
|
case "too_small": {
|
|
3078
|
-
const adj =
|
|
3079
|
-
const sizing = getSizing(
|
|
2803
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
2804
|
+
const sizing = getSizing(issue.origin);
|
|
3080
2805
|
if (sizing) {
|
|
3081
|
-
return `Too small: expected ${
|
|
2806
|
+
return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
3082
2807
|
}
|
|
3083
|
-
return `Too small: expected ${
|
|
2808
|
+
return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`;
|
|
3084
2809
|
}
|
|
3085
2810
|
case "invalid_format": {
|
|
3086
|
-
const _issue =
|
|
2811
|
+
const _issue = issue;
|
|
3087
2812
|
if (_issue.format === "starts_with") {
|
|
3088
2813
|
return `Invalid string: must start with "${_issue.prefix}"`;
|
|
3089
2814
|
}
|
|
@@ -3093,22 +2818,22 @@ var error = () => {
|
|
|
3093
2818
|
return `Invalid string: must include "${_issue.includes}"`;
|
|
3094
2819
|
if (_issue.format === "regex")
|
|
3095
2820
|
return `Invalid string: must match pattern ${_issue.pattern}`;
|
|
3096
|
-
return `Invalid ${FormatDictionary[_issue.format] ??
|
|
2821
|
+
return `Invalid ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
3097
2822
|
}
|
|
3098
2823
|
case "not_multiple_of":
|
|
3099
|
-
return `Invalid number: must be a multiple of ${
|
|
2824
|
+
return `Invalid number: must be a multiple of ${issue.divisor}`;
|
|
3100
2825
|
case "unrecognized_keys":
|
|
3101
|
-
return `Unrecognized key${
|
|
2826
|
+
return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`;
|
|
3102
2827
|
case "invalid_key":
|
|
3103
|
-
return `Invalid key in ${
|
|
2828
|
+
return `Invalid key in ${issue.origin}`;
|
|
3104
2829
|
case "invalid_union":
|
|
3105
|
-
if (
|
|
3106
|
-
const opts =
|
|
2830
|
+
if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
|
|
2831
|
+
const opts = issue.options.map((o) => `'${o}'`).join(" | ");
|
|
3107
2832
|
return `Invalid discriminator value. Expected ${opts}`;
|
|
3108
2833
|
}
|
|
3109
2834
|
return "Invalid input";
|
|
3110
2835
|
case "invalid_element":
|
|
3111
|
-
return `Invalid value in ${
|
|
2836
|
+
return `Invalid value in ${issue.origin}`;
|
|
3112
2837
|
default:
|
|
3113
2838
|
return `Invalid input`;
|
|
3114
2839
|
}
|
|
@@ -3170,14 +2895,14 @@ function registry() {
|
|
|
3170
2895
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
3171
2896
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3172
2897
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
3173
|
-
function _string(
|
|
3174
|
-
return new
|
|
2898
|
+
function _string(Class, params) {
|
|
2899
|
+
return new Class({
|
|
3175
2900
|
type: "string",
|
|
3176
2901
|
...normalizeParams(params)
|
|
3177
2902
|
});
|
|
3178
2903
|
}
|
|
3179
|
-
function _email(
|
|
3180
|
-
return new
|
|
2904
|
+
function _email(Class, params) {
|
|
2905
|
+
return new Class({
|
|
3181
2906
|
type: "string",
|
|
3182
2907
|
format: "email",
|
|
3183
2908
|
check: "string_format",
|
|
@@ -3185,8 +2910,8 @@ function _email(Class2, params) {
|
|
|
3185
2910
|
...normalizeParams(params)
|
|
3186
2911
|
});
|
|
3187
2912
|
}
|
|
3188
|
-
function _guid(
|
|
3189
|
-
return new
|
|
2913
|
+
function _guid(Class, params) {
|
|
2914
|
+
return new Class({
|
|
3190
2915
|
type: "string",
|
|
3191
2916
|
format: "guid",
|
|
3192
2917
|
check: "string_format",
|
|
@@ -3194,8 +2919,8 @@ function _guid(Class2, params) {
|
|
|
3194
2919
|
...normalizeParams(params)
|
|
3195
2920
|
});
|
|
3196
2921
|
}
|
|
3197
|
-
function _uuid(
|
|
3198
|
-
return new
|
|
2922
|
+
function _uuid(Class, params) {
|
|
2923
|
+
return new Class({
|
|
3199
2924
|
type: "string",
|
|
3200
2925
|
format: "uuid",
|
|
3201
2926
|
check: "string_format",
|
|
@@ -3203,8 +2928,8 @@ function _uuid(Class2, params) {
|
|
|
3203
2928
|
...normalizeParams(params)
|
|
3204
2929
|
});
|
|
3205
2930
|
}
|
|
3206
|
-
function _uuidv4(
|
|
3207
|
-
return new
|
|
2931
|
+
function _uuidv4(Class, params) {
|
|
2932
|
+
return new Class({
|
|
3208
2933
|
type: "string",
|
|
3209
2934
|
format: "uuid",
|
|
3210
2935
|
check: "string_format",
|
|
@@ -3213,8 +2938,8 @@ function _uuidv4(Class2, params) {
|
|
|
3213
2938
|
...normalizeParams(params)
|
|
3214
2939
|
});
|
|
3215
2940
|
}
|
|
3216
|
-
function _uuidv6(
|
|
3217
|
-
return new
|
|
2941
|
+
function _uuidv6(Class, params) {
|
|
2942
|
+
return new Class({
|
|
3218
2943
|
type: "string",
|
|
3219
2944
|
format: "uuid",
|
|
3220
2945
|
check: "string_format",
|
|
@@ -3223,8 +2948,8 @@ function _uuidv6(Class2, params) {
|
|
|
3223
2948
|
...normalizeParams(params)
|
|
3224
2949
|
});
|
|
3225
2950
|
}
|
|
3226
|
-
function _uuidv7(
|
|
3227
|
-
return new
|
|
2951
|
+
function _uuidv7(Class, params) {
|
|
2952
|
+
return new Class({
|
|
3228
2953
|
type: "string",
|
|
3229
2954
|
format: "uuid",
|
|
3230
2955
|
check: "string_format",
|
|
@@ -3233,8 +2958,8 @@ function _uuidv7(Class2, params) {
|
|
|
3233
2958
|
...normalizeParams(params)
|
|
3234
2959
|
});
|
|
3235
2960
|
}
|
|
3236
|
-
function _url(
|
|
3237
|
-
return new
|
|
2961
|
+
function _url(Class, params) {
|
|
2962
|
+
return new Class({
|
|
3238
2963
|
type: "string",
|
|
3239
2964
|
format: "url",
|
|
3240
2965
|
check: "string_format",
|
|
@@ -3242,8 +2967,8 @@ function _url(Class2, params) {
|
|
|
3242
2967
|
...normalizeParams(params)
|
|
3243
2968
|
});
|
|
3244
2969
|
}
|
|
3245
|
-
function _emoji2(
|
|
3246
|
-
return new
|
|
2970
|
+
function _emoji2(Class, params) {
|
|
2971
|
+
return new Class({
|
|
3247
2972
|
type: "string",
|
|
3248
2973
|
format: "emoji",
|
|
3249
2974
|
check: "string_format",
|
|
@@ -3251,8 +2976,8 @@ function _emoji2(Class2, params) {
|
|
|
3251
2976
|
...normalizeParams(params)
|
|
3252
2977
|
});
|
|
3253
2978
|
}
|
|
3254
|
-
function _nanoid(
|
|
3255
|
-
return new
|
|
2979
|
+
function _nanoid(Class, params) {
|
|
2980
|
+
return new Class({
|
|
3256
2981
|
type: "string",
|
|
3257
2982
|
format: "nanoid",
|
|
3258
2983
|
check: "string_format",
|
|
@@ -3260,8 +2985,8 @@ function _nanoid(Class2, params) {
|
|
|
3260
2985
|
...normalizeParams(params)
|
|
3261
2986
|
});
|
|
3262
2987
|
}
|
|
3263
|
-
function _cuid(
|
|
3264
|
-
return new
|
|
2988
|
+
function _cuid(Class, params) {
|
|
2989
|
+
return new Class({
|
|
3265
2990
|
type: "string",
|
|
3266
2991
|
format: "cuid",
|
|
3267
2992
|
check: "string_format",
|
|
@@ -3269,8 +2994,8 @@ function _cuid(Class2, params) {
|
|
|
3269
2994
|
...normalizeParams(params)
|
|
3270
2995
|
});
|
|
3271
2996
|
}
|
|
3272
|
-
function _cuid2(
|
|
3273
|
-
return new
|
|
2997
|
+
function _cuid2(Class, params) {
|
|
2998
|
+
return new Class({
|
|
3274
2999
|
type: "string",
|
|
3275
3000
|
format: "cuid2",
|
|
3276
3001
|
check: "string_format",
|
|
@@ -3278,8 +3003,8 @@ function _cuid2(Class2, params) {
|
|
|
3278
3003
|
...normalizeParams(params)
|
|
3279
3004
|
});
|
|
3280
3005
|
}
|
|
3281
|
-
function _ulid(
|
|
3282
|
-
return new
|
|
3006
|
+
function _ulid(Class, params) {
|
|
3007
|
+
return new Class({
|
|
3283
3008
|
type: "string",
|
|
3284
3009
|
format: "ulid",
|
|
3285
3010
|
check: "string_format",
|
|
@@ -3287,8 +3012,8 @@ function _ulid(Class2, params) {
|
|
|
3287
3012
|
...normalizeParams(params)
|
|
3288
3013
|
});
|
|
3289
3014
|
}
|
|
3290
|
-
function _xid(
|
|
3291
|
-
return new
|
|
3015
|
+
function _xid(Class, params) {
|
|
3016
|
+
return new Class({
|
|
3292
3017
|
type: "string",
|
|
3293
3018
|
format: "xid",
|
|
3294
3019
|
check: "string_format",
|
|
@@ -3296,8 +3021,8 @@ function _xid(Class2, params) {
|
|
|
3296
3021
|
...normalizeParams(params)
|
|
3297
3022
|
});
|
|
3298
3023
|
}
|
|
3299
|
-
function _ksuid(
|
|
3300
|
-
return new
|
|
3024
|
+
function _ksuid(Class, params) {
|
|
3025
|
+
return new Class({
|
|
3301
3026
|
type: "string",
|
|
3302
3027
|
format: "ksuid",
|
|
3303
3028
|
check: "string_format",
|
|
@@ -3305,8 +3030,8 @@ function _ksuid(Class2, params) {
|
|
|
3305
3030
|
...normalizeParams(params)
|
|
3306
3031
|
});
|
|
3307
3032
|
}
|
|
3308
|
-
function _ipv4(
|
|
3309
|
-
return new
|
|
3033
|
+
function _ipv4(Class, params) {
|
|
3034
|
+
return new Class({
|
|
3310
3035
|
type: "string",
|
|
3311
3036
|
format: "ipv4",
|
|
3312
3037
|
check: "string_format",
|
|
@@ -3314,8 +3039,8 @@ function _ipv4(Class2, params) {
|
|
|
3314
3039
|
...normalizeParams(params)
|
|
3315
3040
|
});
|
|
3316
3041
|
}
|
|
3317
|
-
function _ipv6(
|
|
3318
|
-
return new
|
|
3042
|
+
function _ipv6(Class, params) {
|
|
3043
|
+
return new Class({
|
|
3319
3044
|
type: "string",
|
|
3320
3045
|
format: "ipv6",
|
|
3321
3046
|
check: "string_format",
|
|
@@ -3323,8 +3048,8 @@ function _ipv6(Class2, params) {
|
|
|
3323
3048
|
...normalizeParams(params)
|
|
3324
3049
|
});
|
|
3325
3050
|
}
|
|
3326
|
-
function _cidrv4(
|
|
3327
|
-
return new
|
|
3051
|
+
function _cidrv4(Class, params) {
|
|
3052
|
+
return new Class({
|
|
3328
3053
|
type: "string",
|
|
3329
3054
|
format: "cidrv4",
|
|
3330
3055
|
check: "string_format",
|
|
@@ -3332,8 +3057,8 @@ function _cidrv4(Class2, params) {
|
|
|
3332
3057
|
...normalizeParams(params)
|
|
3333
3058
|
});
|
|
3334
3059
|
}
|
|
3335
|
-
function _cidrv6(
|
|
3336
|
-
return new
|
|
3060
|
+
function _cidrv6(Class, params) {
|
|
3061
|
+
return new Class({
|
|
3337
3062
|
type: "string",
|
|
3338
3063
|
format: "cidrv6",
|
|
3339
3064
|
check: "string_format",
|
|
@@ -3341,8 +3066,8 @@ function _cidrv6(Class2, params) {
|
|
|
3341
3066
|
...normalizeParams(params)
|
|
3342
3067
|
});
|
|
3343
3068
|
}
|
|
3344
|
-
function _base64(
|
|
3345
|
-
return new
|
|
3069
|
+
function _base64(Class, params) {
|
|
3070
|
+
return new Class({
|
|
3346
3071
|
type: "string",
|
|
3347
3072
|
format: "base64",
|
|
3348
3073
|
check: "string_format",
|
|
@@ -3350,8 +3075,8 @@ function _base64(Class2, params) {
|
|
|
3350
3075
|
...normalizeParams(params)
|
|
3351
3076
|
});
|
|
3352
3077
|
}
|
|
3353
|
-
function _base64url(
|
|
3354
|
-
return new
|
|
3078
|
+
function _base64url(Class, params) {
|
|
3079
|
+
return new Class({
|
|
3355
3080
|
type: "string",
|
|
3356
3081
|
format: "base64url",
|
|
3357
3082
|
check: "string_format",
|
|
@@ -3359,8 +3084,8 @@ function _base64url(Class2, params) {
|
|
|
3359
3084
|
...normalizeParams(params)
|
|
3360
3085
|
});
|
|
3361
3086
|
}
|
|
3362
|
-
function _e164(
|
|
3363
|
-
return new
|
|
3087
|
+
function _e164(Class, params) {
|
|
3088
|
+
return new Class({
|
|
3364
3089
|
type: "string",
|
|
3365
3090
|
format: "e164",
|
|
3366
3091
|
check: "string_format",
|
|
@@ -3368,8 +3093,8 @@ function _e164(Class2, params) {
|
|
|
3368
3093
|
...normalizeParams(params)
|
|
3369
3094
|
});
|
|
3370
3095
|
}
|
|
3371
|
-
function _jwt(
|
|
3372
|
-
return new
|
|
3096
|
+
function _jwt(Class, params) {
|
|
3097
|
+
return new Class({
|
|
3373
3098
|
type: "string",
|
|
3374
3099
|
format: "jwt",
|
|
3375
3100
|
check: "string_format",
|
|
@@ -3377,8 +3102,8 @@ function _jwt(Class2, params) {
|
|
|
3377
3102
|
...normalizeParams(params)
|
|
3378
3103
|
});
|
|
3379
3104
|
}
|
|
3380
|
-
function _isoDateTime(
|
|
3381
|
-
return new
|
|
3105
|
+
function _isoDateTime(Class, params) {
|
|
3106
|
+
return new Class({
|
|
3382
3107
|
type: "string",
|
|
3383
3108
|
format: "datetime",
|
|
3384
3109
|
check: "string_format",
|
|
@@ -3388,16 +3113,16 @@ function _isoDateTime(Class2, params) {
|
|
|
3388
3113
|
...normalizeParams(params)
|
|
3389
3114
|
});
|
|
3390
3115
|
}
|
|
3391
|
-
function _isoDate(
|
|
3392
|
-
return new
|
|
3116
|
+
function _isoDate(Class, params) {
|
|
3117
|
+
return new Class({
|
|
3393
3118
|
type: "string",
|
|
3394
3119
|
format: "date",
|
|
3395
3120
|
check: "string_format",
|
|
3396
3121
|
...normalizeParams(params)
|
|
3397
3122
|
});
|
|
3398
3123
|
}
|
|
3399
|
-
function _isoTime(
|
|
3400
|
-
return new
|
|
3124
|
+
function _isoTime(Class, params) {
|
|
3125
|
+
return new Class({
|
|
3401
3126
|
type: "string",
|
|
3402
3127
|
format: "time",
|
|
3403
3128
|
check: "string_format",
|
|
@@ -3405,23 +3130,23 @@ function _isoTime(Class2, params) {
|
|
|
3405
3130
|
...normalizeParams(params)
|
|
3406
3131
|
});
|
|
3407
3132
|
}
|
|
3408
|
-
function _isoDuration(
|
|
3409
|
-
return new
|
|
3133
|
+
function _isoDuration(Class, params) {
|
|
3134
|
+
return new Class({
|
|
3410
3135
|
type: "string",
|
|
3411
3136
|
format: "duration",
|
|
3412
3137
|
check: "string_format",
|
|
3413
3138
|
...normalizeParams(params)
|
|
3414
3139
|
});
|
|
3415
3140
|
}
|
|
3416
|
-
function _number(
|
|
3417
|
-
return new
|
|
3141
|
+
function _number(Class, params) {
|
|
3142
|
+
return new Class({
|
|
3418
3143
|
type: "number",
|
|
3419
3144
|
checks: [],
|
|
3420
3145
|
...normalizeParams(params)
|
|
3421
3146
|
});
|
|
3422
3147
|
}
|
|
3423
|
-
function _int(
|
|
3424
|
-
return new
|
|
3148
|
+
function _int(Class, params) {
|
|
3149
|
+
return new Class({
|
|
3425
3150
|
type: "number",
|
|
3426
3151
|
check: "number_format",
|
|
3427
3152
|
abort: false,
|
|
@@ -3429,31 +3154,31 @@ function _int(Class2, params) {
|
|
|
3429
3154
|
...normalizeParams(params)
|
|
3430
3155
|
});
|
|
3431
3156
|
}
|
|
3432
|
-
function _boolean(
|
|
3433
|
-
return new
|
|
3157
|
+
function _boolean(Class, params) {
|
|
3158
|
+
return new Class({
|
|
3434
3159
|
type: "boolean",
|
|
3435
3160
|
...normalizeParams(params)
|
|
3436
3161
|
});
|
|
3437
3162
|
}
|
|
3438
|
-
function _null2(
|
|
3439
|
-
return new
|
|
3163
|
+
function _null2(Class, params) {
|
|
3164
|
+
return new Class({
|
|
3440
3165
|
type: "null",
|
|
3441
3166
|
...normalizeParams(params)
|
|
3442
3167
|
});
|
|
3443
3168
|
}
|
|
3444
|
-
function _unknown(
|
|
3445
|
-
return new
|
|
3169
|
+
function _unknown(Class) {
|
|
3170
|
+
return new Class({
|
|
3446
3171
|
type: "unknown"
|
|
3447
3172
|
});
|
|
3448
3173
|
}
|
|
3449
|
-
function _never(
|
|
3450
|
-
return new
|
|
3174
|
+
function _never(Class, params) {
|
|
3175
|
+
return new Class({
|
|
3451
3176
|
type: "never",
|
|
3452
3177
|
...normalizeParams(params)
|
|
3453
3178
|
});
|
|
3454
3179
|
}
|
|
3455
|
-
function _void(
|
|
3456
|
-
return new
|
|
3180
|
+
function _void(Class, params) {
|
|
3181
|
+
return new Class({
|
|
3457
3182
|
type: "void",
|
|
3458
3183
|
...normalizeParams(params)
|
|
3459
3184
|
});
|
|
@@ -3586,15 +3311,15 @@ function _toUpperCase() {
|
|
|
3586
3311
|
function _slugify() {
|
|
3587
3312
|
return _overwrite((input) => slugify(input));
|
|
3588
3313
|
}
|
|
3589
|
-
function _array(
|
|
3590
|
-
return new
|
|
3314
|
+
function _array(Class, element, params) {
|
|
3315
|
+
return new Class({
|
|
3591
3316
|
type: "array",
|
|
3592
3317
|
element,
|
|
3593
3318
|
...normalizeParams(params)
|
|
3594
3319
|
});
|
|
3595
3320
|
}
|
|
3596
|
-
function _refine(
|
|
3597
|
-
const schema = new
|
|
3321
|
+
function _refine(Class, fn, _params) {
|
|
3322
|
+
const schema = new Class({
|
|
3598
3323
|
type: "custom",
|
|
3599
3324
|
check: "custom",
|
|
3600
3325
|
fn,
|
|
@@ -3652,7 +3377,7 @@ function initializeContext(params) {
|
|
|
3652
3377
|
};
|
|
3653
3378
|
}
|
|
3654
3379
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
3655
|
-
var
|
|
3380
|
+
var _a;
|
|
3656
3381
|
const def = schema._zod.def;
|
|
3657
3382
|
const seen = ctx.seen.get(schema);
|
|
3658
3383
|
if (seen) {
|
|
@@ -3700,7 +3425,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
3700
3425
|
delete result.schema.default;
|
|
3701
3426
|
}
|
|
3702
3427
|
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
3703
|
-
(
|
|
3428
|
+
(_a = result.schema).default ?? (_a.default = result.schema._prefault);
|
|
3704
3429
|
delete result.schema._prefault;
|
|
3705
3430
|
const _result = ctx.seen.get(schema);
|
|
3706
3431
|
return _result.schema;
|
|
@@ -3724,7 +3449,7 @@ function extractDefs(ctx, schema) {
|
|
|
3724
3449
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
3725
3450
|
if (ctx.external) {
|
|
3726
3451
|
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
3727
|
-
const uriGenerator = ctx.external.uri ?? ((
|
|
3452
|
+
const uriGenerator = ctx.external.uri ?? ((id) => id);
|
|
3728
3453
|
if (externalId) {
|
|
3729
3454
|
return { ref: uriGenerator(externalId) };
|
|
3730
3455
|
}
|
|
@@ -3749,11 +3474,11 @@ function extractDefs(ctx, schema) {
|
|
|
3749
3474
|
seen.def = { ...seen.schema };
|
|
3750
3475
|
if (defId)
|
|
3751
3476
|
seen.defId = defId;
|
|
3752
|
-
const
|
|
3753
|
-
for (const key in
|
|
3754
|
-
delete
|
|
3477
|
+
const schema = seen.schema;
|
|
3478
|
+
for (const key in schema) {
|
|
3479
|
+
delete schema[key];
|
|
3755
3480
|
}
|
|
3756
|
-
|
|
3481
|
+
schema.$ref = ref;
|
|
3757
3482
|
};
|
|
3758
3483
|
if (ctx.cycles === "throw") {
|
|
3759
3484
|
for (const entry of ctx.seen.entries()) {
|
|
@@ -3801,8 +3526,8 @@ function finalize(ctx, schema) {
|
|
|
3801
3526
|
const seen = ctx.seen.get(zodSchema);
|
|
3802
3527
|
if (seen.ref === null)
|
|
3803
3528
|
return;
|
|
3804
|
-
const
|
|
3805
|
-
const _cached = { ...
|
|
3529
|
+
const schema = seen.def ?? seen.schema;
|
|
3530
|
+
const _cached = { ...schema };
|
|
3806
3531
|
const ref = seen.ref;
|
|
3807
3532
|
seen.ref = null;
|
|
3808
3533
|
if (ref) {
|
|
@@ -3810,28 +3535,28 @@ function finalize(ctx, schema) {
|
|
|
3810
3535
|
const refSeen = ctx.seen.get(ref);
|
|
3811
3536
|
const refSchema = refSeen.schema;
|
|
3812
3537
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
3813
|
-
|
|
3814
|
-
|
|
3538
|
+
schema.allOf = schema.allOf ?? [];
|
|
3539
|
+
schema.allOf.push(refSchema);
|
|
3815
3540
|
} else {
|
|
3816
|
-
Object.assign(
|
|
3541
|
+
Object.assign(schema, refSchema);
|
|
3817
3542
|
}
|
|
3818
|
-
Object.assign(
|
|
3543
|
+
Object.assign(schema, _cached);
|
|
3819
3544
|
const isParentRef = zodSchema._zod.parent === ref;
|
|
3820
3545
|
if (isParentRef) {
|
|
3821
|
-
for (const key in
|
|
3546
|
+
for (const key in schema) {
|
|
3822
3547
|
if (key === "$ref" || key === "allOf")
|
|
3823
3548
|
continue;
|
|
3824
3549
|
if (!(key in _cached)) {
|
|
3825
|
-
delete
|
|
3550
|
+
delete schema[key];
|
|
3826
3551
|
}
|
|
3827
3552
|
}
|
|
3828
3553
|
}
|
|
3829
3554
|
if (refSchema.$ref && refSeen.def) {
|
|
3830
|
-
for (const key in
|
|
3555
|
+
for (const key in schema) {
|
|
3831
3556
|
if (key === "$ref" || key === "allOf")
|
|
3832
3557
|
continue;
|
|
3833
|
-
if (key in refSeen.def && JSON.stringify(
|
|
3834
|
-
delete
|
|
3558
|
+
if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {
|
|
3559
|
+
delete schema[key];
|
|
3835
3560
|
}
|
|
3836
3561
|
}
|
|
3837
3562
|
}
|
|
@@ -3841,13 +3566,13 @@ function finalize(ctx, schema) {
|
|
|
3841
3566
|
flattenRef(parent);
|
|
3842
3567
|
const parentSeen = ctx.seen.get(parent);
|
|
3843
3568
|
if (parentSeen?.schema.$ref) {
|
|
3844
|
-
|
|
3569
|
+
schema.$ref = parentSeen.schema.$ref;
|
|
3845
3570
|
if (parentSeen.def) {
|
|
3846
|
-
for (const key in
|
|
3571
|
+
for (const key in schema) {
|
|
3847
3572
|
if (key === "$ref" || key === "allOf")
|
|
3848
3573
|
continue;
|
|
3849
|
-
if (key in parentSeen.def && JSON.stringify(
|
|
3850
|
-
delete
|
|
3574
|
+
if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
3575
|
+
delete schema[key];
|
|
3851
3576
|
}
|
|
3852
3577
|
}
|
|
3853
3578
|
}
|
|
@@ -3855,7 +3580,7 @@ function finalize(ctx, schema) {
|
|
|
3855
3580
|
}
|
|
3856
3581
|
ctx.override({
|
|
3857
3582
|
zodSchema,
|
|
3858
|
-
jsonSchema:
|
|
3583
|
+
jsonSchema: schema,
|
|
3859
3584
|
path: seen.path ?? []
|
|
3860
3585
|
});
|
|
3861
3586
|
};
|
|
@@ -4358,17 +4083,6 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
4358
4083
|
seen.ref = def.innerType;
|
|
4359
4084
|
};
|
|
4360
4085
|
// ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
4361
|
-
var exports_iso = {};
|
|
4362
|
-
__export(exports_iso, {
|
|
4363
|
-
time: () => time2,
|
|
4364
|
-
duration: () => duration2,
|
|
4365
|
-
datetime: () => datetime2,
|
|
4366
|
-
date: () => date2,
|
|
4367
|
-
ZodISOTime: () => ZodISOTime,
|
|
4368
|
-
ZodISODuration: () => ZodISODuration,
|
|
4369
|
-
ZodISODateTime: () => ZodISODateTime,
|
|
4370
|
-
ZodISODate: () => ZodISODate
|
|
4371
|
-
});
|
|
4372
4086
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
4373
4087
|
$ZodISODateTime.init(inst, def);
|
|
4374
4088
|
ZodStringFormat.init(inst, def);
|
|
@@ -4410,14 +4124,14 @@ var initializer2 = (inst, issues) => {
|
|
|
4410
4124
|
value: (mapper) => flattenError(inst, mapper)
|
|
4411
4125
|
},
|
|
4412
4126
|
addIssue: {
|
|
4413
|
-
value: (
|
|
4414
|
-
inst.issues.push(
|
|
4127
|
+
value: (issue) => {
|
|
4128
|
+
inst.issues.push(issue);
|
|
4415
4129
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
4416
4130
|
}
|
|
4417
4131
|
},
|
|
4418
4132
|
addIssues: {
|
|
4419
|
-
value: (
|
|
4420
|
-
inst.issues.push(...
|
|
4133
|
+
value: (issues) => {
|
|
4134
|
+
inst.issues.push(...issues);
|
|
4421
4135
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
4422
4136
|
}
|
|
4423
4137
|
},
|
|
@@ -4511,10 +4225,10 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
4511
4225
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
4512
4226
|
_installLazyMethods(inst, "ZodType", {
|
|
4513
4227
|
check(...chks) {
|
|
4514
|
-
const
|
|
4515
|
-
return this.clone(
|
|
4228
|
+
const def = this.def;
|
|
4229
|
+
return this.clone(mergeDefs(def, {
|
|
4516
4230
|
checks: [
|
|
4517
|
-
...
|
|
4231
|
+
...def.checks ?? [],
|
|
4518
4232
|
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
4519
4233
|
]
|
|
4520
4234
|
}), { parent: true });
|
|
@@ -4522,14 +4236,14 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
4522
4236
|
with(...chks) {
|
|
4523
4237
|
return this.check(...chks);
|
|
4524
4238
|
},
|
|
4525
|
-
clone(
|
|
4526
|
-
return clone(this,
|
|
4239
|
+
clone(def, params) {
|
|
4240
|
+
return clone(this, def, params);
|
|
4527
4241
|
},
|
|
4528
4242
|
brand() {
|
|
4529
4243
|
return this;
|
|
4530
4244
|
},
|
|
4531
|
-
register(reg,
|
|
4532
|
-
reg.add(this,
|
|
4245
|
+
register(reg, meta) {
|
|
4246
|
+
reg.add(this, meta);
|
|
4533
4247
|
return this;
|
|
4534
4248
|
},
|
|
4535
4249
|
refine(check, params) {
|
|
@@ -4930,7 +4644,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
4930
4644
|
$ZodObjectJIT.init(inst, def);
|
|
4931
4645
|
ZodType.init(inst, def);
|
|
4932
4646
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
4933
|
-
|
|
4647
|
+
defineLazy(inst, "shape", () => {
|
|
4934
4648
|
return def.shape;
|
|
4935
4649
|
});
|
|
4936
4650
|
_installLazyMethods(inst, "ZodObject", {
|
|
@@ -4953,25 +4667,25 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
4953
4667
|
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
4954
4668
|
},
|
|
4955
4669
|
extend(incoming) {
|
|
4956
|
-
return
|
|
4670
|
+
return extend(this, incoming);
|
|
4957
4671
|
},
|
|
4958
4672
|
safeExtend(incoming) {
|
|
4959
|
-
return
|
|
4673
|
+
return safeExtend(this, incoming);
|
|
4960
4674
|
},
|
|
4961
4675
|
merge(other) {
|
|
4962
|
-
return
|
|
4676
|
+
return merge(this, other);
|
|
4963
4677
|
},
|
|
4964
4678
|
pick(mask) {
|
|
4965
|
-
return
|
|
4679
|
+
return pick(this, mask);
|
|
4966
4680
|
},
|
|
4967
4681
|
omit(mask) {
|
|
4968
|
-
return
|
|
4682
|
+
return omit(this, mask);
|
|
4969
4683
|
},
|
|
4970
4684
|
partial(...args) {
|
|
4971
|
-
return
|
|
4685
|
+
return partial(ZodOptional, this, args[0]);
|
|
4972
4686
|
},
|
|
4973
4687
|
required(...args) {
|
|
4974
|
-
return
|
|
4688
|
+
return required(ZodNonOptional, this, args[0]);
|
|
4975
4689
|
}
|
|
4976
4690
|
});
|
|
4977
4691
|
});
|
|
@@ -4979,7 +4693,7 @@ function object(shape, params) {
|
|
|
4979
4693
|
const def = {
|
|
4980
4694
|
type: "object",
|
|
4981
4695
|
shape: shape ?? {},
|
|
4982
|
-
...
|
|
4696
|
+
...normalizeParams(params)
|
|
4983
4697
|
};
|
|
4984
4698
|
return new ZodObject(def);
|
|
4985
4699
|
}
|
|
@@ -4988,7 +4702,7 @@ function strictObject(shape, params) {
|
|
|
4988
4702
|
type: "object",
|
|
4989
4703
|
shape,
|
|
4990
4704
|
catchall: never(),
|
|
4991
|
-
...
|
|
4705
|
+
...normalizeParams(params)
|
|
4992
4706
|
});
|
|
4993
4707
|
}
|
|
4994
4708
|
var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
|
|
@@ -5001,7 +4715,7 @@ function union(options, params) {
|
|
|
5001
4715
|
return new ZodUnion({
|
|
5002
4716
|
type: "union",
|
|
5003
4717
|
options,
|
|
5004
|
-
...
|
|
4718
|
+
...normalizeParams(params)
|
|
5005
4719
|
});
|
|
5006
4720
|
}
|
|
5007
4721
|
var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
|
|
@@ -5013,7 +4727,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
5013
4727
|
type: "union",
|
|
5014
4728
|
options,
|
|
5015
4729
|
discriminator,
|
|
5016
|
-
...
|
|
4730
|
+
...normalizeParams(params)
|
|
5017
4731
|
});
|
|
5018
4732
|
}
|
|
5019
4733
|
var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
|
|
@@ -5045,7 +4759,7 @@ function tuple(items, _paramsOrRest, _params) {
|
|
|
5045
4759
|
type: "tuple",
|
|
5046
4760
|
items,
|
|
5047
4761
|
rest,
|
|
5048
|
-
...
|
|
4762
|
+
...normalizeParams(params)
|
|
5049
4763
|
});
|
|
5050
4764
|
}
|
|
5051
4765
|
var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
@@ -5061,14 +4775,14 @@ function record(keyType, valueType, params) {
|
|
|
5061
4775
|
type: "record",
|
|
5062
4776
|
keyType: string2(),
|
|
5063
4777
|
valueType: keyType,
|
|
5064
|
-
...
|
|
4778
|
+
...normalizeParams(valueType)
|
|
5065
4779
|
});
|
|
5066
4780
|
}
|
|
5067
4781
|
return new ZodRecord({
|
|
5068
4782
|
type: "record",
|
|
5069
4783
|
keyType,
|
|
5070
4784
|
valueType,
|
|
5071
|
-
...
|
|
4785
|
+
...normalizeParams(params)
|
|
5072
4786
|
});
|
|
5073
4787
|
}
|
|
5074
4788
|
var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
@@ -5089,7 +4803,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
|
5089
4803
|
return new ZodEnum({
|
|
5090
4804
|
...def,
|
|
5091
4805
|
checks: [],
|
|
5092
|
-
...
|
|
4806
|
+
...normalizeParams(params),
|
|
5093
4807
|
entries: newEntries
|
|
5094
4808
|
});
|
|
5095
4809
|
};
|
|
@@ -5104,7 +4818,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
|
|
|
5104
4818
|
return new ZodEnum({
|
|
5105
4819
|
...def,
|
|
5106
4820
|
checks: [],
|
|
5107
|
-
...
|
|
4821
|
+
...normalizeParams(params),
|
|
5108
4822
|
entries: newEntries
|
|
5109
4823
|
});
|
|
5110
4824
|
};
|
|
@@ -5114,7 +4828,7 @@ function _enum(values, params) {
|
|
|
5114
4828
|
return new ZodEnum({
|
|
5115
4829
|
type: "enum",
|
|
5116
4830
|
entries,
|
|
5117
|
-
...
|
|
4831
|
+
...normalizeParams(params)
|
|
5118
4832
|
});
|
|
5119
4833
|
}
|
|
5120
4834
|
var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
|
|
@@ -5135,7 +4849,7 @@ function literal(value, params) {
|
|
|
5135
4849
|
return new ZodLiteral({
|
|
5136
4850
|
type: "literal",
|
|
5137
4851
|
values: Array.isArray(value) ? value : [value],
|
|
5138
|
-
...
|
|
4852
|
+
...normalizeParams(params)
|
|
5139
4853
|
});
|
|
5140
4854
|
}
|
|
5141
4855
|
var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
@@ -5148,7 +4862,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
5148
4862
|
}
|
|
5149
4863
|
payload.addIssue = (issue2) => {
|
|
5150
4864
|
if (typeof issue2 === "string") {
|
|
5151
|
-
payload.issues.push(
|
|
4865
|
+
payload.issues.push(issue(issue2, payload.value, def));
|
|
5152
4866
|
} else {
|
|
5153
4867
|
const _issue = issue2;
|
|
5154
4868
|
if (_issue.fatal)
|
|
@@ -5156,13 +4870,13 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
5156
4870
|
_issue.code ?? (_issue.code = "custom");
|
|
5157
4871
|
_issue.input ?? (_issue.input = payload.value);
|
|
5158
4872
|
_issue.inst ?? (_issue.inst = inst);
|
|
5159
|
-
payload.issues.push(
|
|
4873
|
+
payload.issues.push(issue(_issue));
|
|
5160
4874
|
}
|
|
5161
4875
|
};
|
|
5162
4876
|
const output = def.transform(payload.value, payload);
|
|
5163
4877
|
if (output instanceof Promise) {
|
|
5164
|
-
return output.then((
|
|
5165
|
-
payload.value =
|
|
4878
|
+
return output.then((output) => {
|
|
4879
|
+
payload.value = output;
|
|
5166
4880
|
payload.fallback = true;
|
|
5167
4881
|
return payload;
|
|
5168
4882
|
});
|
|
@@ -5226,7 +4940,7 @@ function _default(innerType, defaultValue) {
|
|
|
5226
4940
|
type: "default",
|
|
5227
4941
|
innerType,
|
|
5228
4942
|
get defaultValue() {
|
|
5229
|
-
return typeof defaultValue === "function" ? defaultValue() :
|
|
4943
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
5230
4944
|
}
|
|
5231
4945
|
});
|
|
5232
4946
|
}
|
|
@@ -5241,7 +4955,7 @@ function prefault(innerType, defaultValue) {
|
|
|
5241
4955
|
type: "prefault",
|
|
5242
4956
|
innerType,
|
|
5243
4957
|
get defaultValue() {
|
|
5244
|
-
return typeof defaultValue === "function" ? defaultValue() :
|
|
4958
|
+
return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
|
|
5245
4959
|
}
|
|
5246
4960
|
});
|
|
5247
4961
|
}
|
|
@@ -5255,7 +4969,7 @@ function nonoptional(innerType, params) {
|
|
|
5255
4969
|
return new ZodNonOptional({
|
|
5256
4970
|
type: "nonoptional",
|
|
5257
4971
|
innerType,
|
|
5258
|
-
...
|
|
4972
|
+
...normalizeParams(params)
|
|
5259
4973
|
});
|
|
5260
4974
|
}
|
|
5261
4975
|
var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
|
|
@@ -5345,7 +5059,7 @@ var zAccountDeletionRequestCreate = object({
|
|
|
5345
5059
|
identityVerified: literal(true),
|
|
5346
5060
|
previousRequestId: uuid2().optional(),
|
|
5347
5061
|
reason: string2().min(1).max(500),
|
|
5348
|
-
receivedOn:
|
|
5062
|
+
receivedOn: date2()
|
|
5349
5063
|
});
|
|
5350
5064
|
var zAccountDeletionRequestList = object({
|
|
5351
5065
|
eligible: boolean2(),
|
|
@@ -5757,7 +5471,7 @@ var zAgentDefinition = object({
|
|
|
5757
5471
|
avatar: string2().nullish(),
|
|
5758
5472
|
category: string2().nullish(),
|
|
5759
5473
|
conversationStarters: array(string2()).optional(),
|
|
5760
|
-
createdAt:
|
|
5474
|
+
createdAt: datetime2({ offset: true }).nullish(),
|
|
5761
5475
|
description: string2().nullish(),
|
|
5762
5476
|
edges: array(zAgentEdge).optional(),
|
|
5763
5477
|
endAfterTools: boolean2().nullish(),
|
|
@@ -5778,7 +5492,7 @@ var zAgentDefinition = object({
|
|
|
5778
5492
|
toolOptions: zAgentToolOptions.optional(),
|
|
5779
5493
|
toolResources: zAgentToolResources.optional(),
|
|
5780
5494
|
tools: array(string2()).optional(),
|
|
5781
|
-
updatedAt:
|
|
5495
|
+
updatedAt: datetime2({ offset: true }).nullish(),
|
|
5782
5496
|
versions: array(record(string2(), unknown())).optional()
|
|
5783
5497
|
});
|
|
5784
5498
|
var zAppBindingDiagnosticBinding = object({
|
|
@@ -6899,12 +6613,11 @@ var zArtifactToolPolicyReceiptTerminalResponse = union([
|
|
|
6899
6613
|
]);
|
|
6900
6614
|
var zAuthMode = _enum(["oauth2", "bearer", "none"]).default("none");
|
|
6901
6615
|
var zAuthPreflightResponse = object({
|
|
6902
|
-
expiresAt:
|
|
6616
|
+
expiresAt: datetime2({ offset: true })
|
|
6903
6617
|
});
|
|
6904
6618
|
var zAuthorizationDecision = strictObject({
|
|
6905
6619
|
action: _enum(["approve", "deny"]),
|
|
6906
|
-
request_id: string2().min(43).max(128)
|
|
6907
|
-
workspace_id: string2().min(1).max(128).nullable()
|
|
6620
|
+
request_id: string2().min(43).max(128)
|
|
6908
6621
|
});
|
|
6909
6622
|
var zAuthorizationServerMetadata = object({
|
|
6910
6623
|
authorization_endpoint: url(),
|
|
@@ -7057,14 +6770,14 @@ var zAutomationGraphResources = object({
|
|
|
7057
6770
|
});
|
|
7058
6771
|
var zAutomationLastSave = object({
|
|
7059
6772
|
name: string2().nullable(),
|
|
7060
|
-
savedAt:
|
|
6773
|
+
savedAt: datetime2({ offset: true }).nullable(),
|
|
7061
6774
|
userId: string2().nullable()
|
|
7062
6775
|
}).nullable();
|
|
7063
6776
|
var zAutomation = object({
|
|
7064
6777
|
access: zAutomationAccess.optional(),
|
|
7065
6778
|
billingRoute: zAutomationBillingRoute,
|
|
7066
6779
|
contextConfig: record(string2(), unknown()).optional(),
|
|
7067
|
-
createdAt:
|
|
6780
|
+
createdAt: datetime2({ offset: true }).nullish(),
|
|
7068
6781
|
description: string2().nullish(),
|
|
7069
6782
|
executionSuspensionReason: string2().nullish(),
|
|
7070
6783
|
folderId: string2().nullish(),
|
|
@@ -7080,7 +6793,7 @@ var zAutomation = object({
|
|
|
7080
6793
|
status: _enum(["draft", "active", "paused", "archived"]).optional().default("draft"),
|
|
7081
6794
|
toolPolicy: record(string2(), unknown()).optional(),
|
|
7082
6795
|
triggers: array(record(string2(), unknown())).optional(),
|
|
7083
|
-
updatedAt:
|
|
6796
|
+
updatedAt: datetime2({ offset: true }).nullish(),
|
|
7084
6797
|
viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
|
|
7085
6798
|
workspaceId: string2()
|
|
7086
6799
|
});
|
|
@@ -7124,10 +6837,16 @@ var zAutomationManualRunResponse = object({
|
|
|
7124
6837
|
streamUrl: string2(),
|
|
7125
6838
|
traceId: string2().nullish()
|
|
7126
6839
|
});
|
|
6840
|
+
var zAutomationNodeToolWarning = object({
|
|
6841
|
+
errorCode: string2().nullable(),
|
|
6842
|
+
status: _enum(["failed", "denied", "unknown_outcome"]),
|
|
6843
|
+
stepIndex: int(),
|
|
6844
|
+
toolName: string2()
|
|
6845
|
+
});
|
|
7127
6846
|
var zAutomationNodeThreadSession = object({
|
|
7128
6847
|
assistantMessageId: string2().nullable(),
|
|
7129
6848
|
attempt: int().gt(0),
|
|
7130
|
-
createdAt:
|
|
6849
|
+
createdAt: datetime2({ offset: true }).nullish(),
|
|
7131
6850
|
nodeId: string2(),
|
|
7132
6851
|
outputFields: record(string2(), unknown()).nullable(),
|
|
7133
6852
|
outputValid: boolean2().nullable(),
|
|
@@ -7135,8 +6854,9 @@ var zAutomationNodeThreadSession = object({
|
|
|
7135
6854
|
runIndex: int().gte(0),
|
|
7136
6855
|
threadId: string2(),
|
|
7137
6856
|
threadRunId: string2().nullable(),
|
|
6857
|
+
toolWarnings: array(zAutomationNodeToolWarning).nullish(),
|
|
7138
6858
|
turnId: string2(),
|
|
7139
|
-
updatedAt:
|
|
6859
|
+
updatedAt: datetime2({ offset: true }).nullish(),
|
|
7140
6860
|
workspaceId: string2()
|
|
7141
6861
|
});
|
|
7142
6862
|
var zAutomationActiveRunResponse = object({
|
|
@@ -7357,7 +7077,7 @@ var zAvailableIntegration = object({
|
|
|
7357
7077
|
})),
|
|
7358
7078
|
capabilityIds: array(uuid2()),
|
|
7359
7079
|
connectionId: string2(),
|
|
7360
|
-
createdAt:
|
|
7080
|
+
createdAt: datetime2({ offset: true }),
|
|
7361
7081
|
integrationName: string2(),
|
|
7362
7082
|
isAssigned: boolean2().optional().default(false),
|
|
7363
7083
|
providerType: string2(),
|
|
@@ -7367,7 +7087,7 @@ var zAvailableIntegrationsResponse = object({
|
|
|
7367
7087
|
data: array(zAvailableIntegration)
|
|
7368
7088
|
});
|
|
7369
7089
|
var zBacklinkInfo = object({
|
|
7370
|
-
createdAt:
|
|
7090
|
+
createdAt: datetime2({ offset: true }),
|
|
7371
7091
|
linkText: string2(),
|
|
7372
7092
|
sourceId: uuid2(),
|
|
7373
7093
|
sourceTitle: string2(),
|
|
@@ -7432,7 +7152,8 @@ var zBodyTokenApiOauthTokenPost = object({
|
|
|
7432
7152
|
grant_type: string2().nullish(),
|
|
7433
7153
|
redirect_uri: url().nullish(),
|
|
7434
7154
|
refresh_token: string2().nullish(),
|
|
7435
|
-
resource: url().nullish()
|
|
7155
|
+
resource: url().nullish(),
|
|
7156
|
+
scope: string2().nullish()
|
|
7436
7157
|
});
|
|
7437
7158
|
var zBodyTokenOauthTokenPost = object({
|
|
7438
7159
|
client_id: string2().nullish(),
|
|
@@ -7442,7 +7163,8 @@ var zBodyTokenOauthTokenPost = object({
|
|
|
7442
7163
|
grant_type: string2().nullish(),
|
|
7443
7164
|
redirect_uri: url().nullish(),
|
|
7444
7165
|
refresh_token: string2().nullish(),
|
|
7445
|
-
resource: url().nullish()
|
|
7166
|
+
resource: url().nullish(),
|
|
7167
|
+
scope: string2().nullish()
|
|
7446
7168
|
});
|
|
7447
7169
|
var zBodyUploadAvatarApiUploadsAvatarPost = object({
|
|
7448
7170
|
file: string2()
|
|
@@ -7472,7 +7194,7 @@ var zCanonicalToolCatalogEntry = object({
|
|
|
7472
7194
|
capabilityId: string2(),
|
|
7473
7195
|
category: string2().nullish(),
|
|
7474
7196
|
classification: string2().optional().default("unknown"),
|
|
7475
|
-
connectionCreatedAt:
|
|
7197
|
+
connectionCreatedAt: datetime2({ offset: true }).nullish(),
|
|
7476
7198
|
connectionId: string2(),
|
|
7477
7199
|
credentialOwnerUserId: uuid2().nullish(),
|
|
7478
7200
|
description: string2(),
|
|
@@ -7525,6 +7247,11 @@ var zCatalogActionRef = union([
|
|
|
7525
7247
|
strictObject({
|
|
7526
7248
|
kind: _enum(["proxy"]),
|
|
7527
7249
|
toolId: string2().min(1).max(256)
|
|
7250
|
+
}),
|
|
7251
|
+
strictObject({
|
|
7252
|
+
artifactId: uuid2(),
|
|
7253
|
+
kind: _enum(["gem"]),
|
|
7254
|
+
operationKey: string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/)
|
|
7528
7255
|
})
|
|
7529
7256
|
]);
|
|
7530
7257
|
var zActionCatalogSearchRequest = strictObject({
|
|
@@ -7663,8 +7390,7 @@ var zCliSessionResponse = object({
|
|
|
7663
7390
|
expires_in: int(),
|
|
7664
7391
|
oauth_resource: url(),
|
|
7665
7392
|
success: literal(true),
|
|
7666
|
-
token_type: _enum(["Bearer"])
|
|
7667
|
-
workspace_id: string2()
|
|
7393
|
+
token_type: _enum(["Bearer"])
|
|
7668
7394
|
});
|
|
7669
7395
|
var zCliSessionUnavailableResponse = object({
|
|
7670
7396
|
error: _enum(["cli_session_issuer_unavailable"]),
|
|
@@ -8142,7 +7868,7 @@ var zConnectResponse = object({
|
|
|
8142
7868
|
connectionId: string2().nullish(),
|
|
8143
7869
|
error: string2().nullish(),
|
|
8144
7870
|
errorType: string2().nullish(),
|
|
8145
|
-
expiresAt:
|
|
7871
|
+
expiresAt: datetime2({ offset: true }).nullable(),
|
|
8146
7872
|
message: string2(),
|
|
8147
7873
|
providerNativeId: string2().nullish(),
|
|
8148
7874
|
success: boolean2()
|
|
@@ -8425,7 +8151,7 @@ var zContactListFilters = strictObject({
|
|
|
8425
8151
|
no_company: boolean2().optional(),
|
|
8426
8152
|
opened: _enum(["last_7_days", "last_30_days", "not_opened", "never_shared"]).optional(),
|
|
8427
8153
|
q: string2().min(2).max(200).optional(),
|
|
8428
|
-
sort: _enum(["last_opened", "last_shared", "name", "newest"]).optional(),
|
|
8154
|
+
sort: _enum(["last_opened", "last_shared", "name", "company", "newest"]).optional(),
|
|
8429
8155
|
source: _enum([
|
|
8430
8156
|
"named_share",
|
|
8431
8157
|
"library_invite",
|
|
@@ -8459,7 +8185,7 @@ var zContactQueryRequest = strictObject({
|
|
|
8459
8185
|
offset: int().gte(0).lte(20000).optional(),
|
|
8460
8186
|
opened: _enum(["last_7_days", "last_30_days", "not_opened", "never_shared"]).optional(),
|
|
8461
8187
|
q: string2().min(2).max(200).optional(),
|
|
8462
|
-
sort: _enum(["last_opened", "last_shared", "name", "newest"]).optional(),
|
|
8188
|
+
sort: _enum(["last_opened", "last_shared", "name", "company", "newest"]).optional(),
|
|
8463
8189
|
source: _enum([
|
|
8464
8190
|
"named_share",
|
|
8465
8191
|
"library_invite",
|
|
@@ -8492,25 +8218,6 @@ var zContactSearchRequest = strictObject({
|
|
|
8492
8218
|
limit: int().gte(1).lte(20).optional(),
|
|
8493
8219
|
q: string2().min(2).max(200)
|
|
8494
8220
|
});
|
|
8495
|
-
var zContactSharesAnswer = object({
|
|
8496
|
-
rows: array(object({
|
|
8497
|
-
can_manage: boolean2(),
|
|
8498
|
-
email: string2(),
|
|
8499
|
-
ends_at: string2().nullable(),
|
|
8500
|
-
gate: _enum(["none", "email_otp", "passcode"]).nullable(),
|
|
8501
|
-
item: zContactItemRef,
|
|
8502
|
-
last_opened_at: string2().nullable(),
|
|
8503
|
-
open_count: int().nullable(),
|
|
8504
|
-
recipient_id: uuid2(),
|
|
8505
|
-
role: _enum(["editor", "commenter", "viewer"]),
|
|
8506
|
-
seconds: int().nullable(),
|
|
8507
|
-
share_id: uuid2(),
|
|
8508
|
-
shared_at: string2(),
|
|
8509
|
-
state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
|
|
8510
|
-
tracked_from_creation: boolean2(),
|
|
8511
|
-
tracked_since: string2()
|
|
8512
|
-
}))
|
|
8513
|
-
});
|
|
8514
8221
|
var zContactSplitRequest = strictObject({
|
|
8515
8222
|
email: string2().min(3).max(320),
|
|
8516
8223
|
idempotency_key: string2().min(1).max(128)
|
|
@@ -8550,6 +8257,7 @@ var zContactSummary = object({
|
|
|
8550
8257
|
created_via: _enum(["capture", "manual", "agent", "split"]),
|
|
8551
8258
|
email_count: int(),
|
|
8552
8259
|
items_shared: int(),
|
|
8260
|
+
job_title: string2().nullable(),
|
|
8553
8261
|
last_opened_at: string2().nullable(),
|
|
8554
8262
|
last_shared: zContactLastShared,
|
|
8555
8263
|
name: string2().nullable(),
|
|
@@ -8570,7 +8278,9 @@ var zCompanyPeoplePage = object({
|
|
|
8570
8278
|
});
|
|
8571
8279
|
var zContactUpdateRequest = strictObject({
|
|
8572
8280
|
company_id: uuid2().nullish(),
|
|
8573
|
-
|
|
8281
|
+
job_title: string2().max(200).nullish(),
|
|
8282
|
+
name: string2().max(400).nullish(),
|
|
8283
|
+
private_note: string2().max(1e4).nullish()
|
|
8574
8284
|
});
|
|
8575
8285
|
var zContactWorkspaceRef = object({
|
|
8576
8286
|
workspace_id: uuid2(),
|
|
@@ -8603,6 +8313,7 @@ var zContactDetail = zContactSummary.and(object({
|
|
|
8603
8313
|
kind: _enum(["guest", "external"]),
|
|
8604
8314
|
workspace_name: string2()
|
|
8605
8315
|
}).nullable(),
|
|
8316
|
+
private_note: string2().nullable(),
|
|
8606
8317
|
source_workspaces: array(zContactWorkspaceRef.and(object({
|
|
8607
8318
|
captures: int()
|
|
8608
8319
|
})))
|
|
@@ -8637,6 +8348,28 @@ var zContactSplitAnswer = object({
|
|
|
8637
8348
|
contact: zContactDetail,
|
|
8638
8349
|
from: zContactDetail
|
|
8639
8350
|
});
|
|
8351
|
+
var zContactsCsvAnswer = object({
|
|
8352
|
+
contacts: array(zContactSummary.and(object({
|
|
8353
|
+
emails: array(string2())
|
|
8354
|
+
})))
|
|
8355
|
+
});
|
|
8356
|
+
var zContactsCsvRequest = strictObject({
|
|
8357
|
+
archived: _enum(["hide", "only"]).optional(),
|
|
8358
|
+
captured_in_workspace_id: uuid2().optional(),
|
|
8359
|
+
company_id: uuid2().optional(),
|
|
8360
|
+
no_company: boolean2().optional(),
|
|
8361
|
+
opened: _enum(["last_7_days", "last_30_days", "not_opened", "never_shared"]).optional(),
|
|
8362
|
+
q: string2().min(2).max(200).optional(),
|
|
8363
|
+
sort: _enum(["last_opened", "last_shared", "name", "company", "newest"]).optional(),
|
|
8364
|
+
source: _enum([
|
|
8365
|
+
"named_share",
|
|
8366
|
+
"library_invite",
|
|
8367
|
+
"verified_code",
|
|
8368
|
+
"manual",
|
|
8369
|
+
"agent_import"
|
|
8370
|
+
]).optional(),
|
|
8371
|
+
team: _enum(["hide", "only", "include"]).optional()
|
|
8372
|
+
});
|
|
8640
8373
|
var zContactsExportAnswer = object({
|
|
8641
8374
|
dataset_id: uuid2(),
|
|
8642
8375
|
dataset_path: string2(),
|
|
@@ -8773,17 +8506,17 @@ var zCrossWorkspaceShareRequest = object({
|
|
|
8773
8506
|
});
|
|
8774
8507
|
var zCrossWorkspaceShareStatus = _enum(["pending", "active", "revoked"]);
|
|
8775
8508
|
var zCrossWorkspaceShareResponse = object({
|
|
8776
|
-
acceptedAt:
|
|
8509
|
+
acceptedAt: datetime2({ offset: true }).nullable(),
|
|
8777
8510
|
acceptedByUserId: uuid2().nullable(),
|
|
8778
8511
|
contentTitle: string2().nullish(),
|
|
8779
8512
|
contentType: zCrossWorkspaceContentType,
|
|
8780
|
-
createdAt:
|
|
8781
|
-
expiresAt:
|
|
8513
|
+
createdAt: datetime2({ offset: true }),
|
|
8514
|
+
expiresAt: datetime2({ offset: true }).nullable(),
|
|
8782
8515
|
id: uuid2(),
|
|
8783
8516
|
message: string2().nullable(),
|
|
8784
8517
|
metadata: record(string2(), unknown()),
|
|
8785
8518
|
permissions: zCrossWorkspaceSharePermissions,
|
|
8786
|
-
revokedAt:
|
|
8519
|
+
revokedAt: datetime2({ offset: true }).nullable(),
|
|
8787
8520
|
shareKind: zCrossWorkspaceShareKind,
|
|
8788
8521
|
shareMode: zCrossWorkspaceShareMode,
|
|
8789
8522
|
sharedByEmail: string2().nullish(),
|
|
@@ -8797,7 +8530,7 @@ var zCrossWorkspaceShareResponse = object({
|
|
|
8797
8530
|
targetWorkspaceId: uuid2(),
|
|
8798
8531
|
targetWorkspaceName: string2().nullish(),
|
|
8799
8532
|
terminalReason: string2().nullable(),
|
|
8800
|
-
updatedAt:
|
|
8533
|
+
updatedAt: datetime2({ offset: true })
|
|
8801
8534
|
});
|
|
8802
8535
|
var zCrossWorkspaceOutgoingShareResponse = zCrossWorkspaceShareResponse.and(object({
|
|
8803
8536
|
canManage: boolean2()
|
|
@@ -9067,7 +8800,7 @@ var zDirectServingPolicyRequest = union([
|
|
|
9067
8800
|
strictObject({
|
|
9068
8801
|
authorization: strictObject({
|
|
9069
8802
|
linkId: string2().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
9070
|
-
linkUpdatedAt:
|
|
8803
|
+
linkUpdatedAt: datetime2({ offset: true }),
|
|
9071
8804
|
shareId: string2().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).nullable(),
|
|
9072
8805
|
visitorSession: union([
|
|
9073
8806
|
strictObject({
|
|
@@ -9484,6 +9217,11 @@ var zDistributionCompanyRef = object({
|
|
|
9484
9217
|
id: uuid2(),
|
|
9485
9218
|
name: string2()
|
|
9486
9219
|
});
|
|
9220
|
+
var zDistributionCsvExport = object({
|
|
9221
|
+
csv: string2(),
|
|
9222
|
+
filename: string2(),
|
|
9223
|
+
total: int()
|
|
9224
|
+
});
|
|
9487
9225
|
var zDistributionItemGone = object({
|
|
9488
9226
|
access: _enum(["gone"]),
|
|
9489
9227
|
item_id: uuid2()
|
|
@@ -9509,6 +9247,11 @@ var zDistributionItemRef = object({
|
|
|
9509
9247
|
workspace_id: uuid2(),
|
|
9510
9248
|
workspace_name: string2()
|
|
9511
9249
|
});
|
|
9250
|
+
var zDistributionLabel = object({
|
|
9251
|
+
id: uuid2(),
|
|
9252
|
+
name: string2(),
|
|
9253
|
+
workspace_id: uuid2()
|
|
9254
|
+
});
|
|
9512
9255
|
var zDistributionMark = object({
|
|
9513
9256
|
date: string2(),
|
|
9514
9257
|
item_id: uuid2(),
|
|
@@ -9523,20 +9266,47 @@ var zDistributionPerson = object({
|
|
|
9523
9266
|
}).nullable(),
|
|
9524
9267
|
email: string2()
|
|
9525
9268
|
});
|
|
9269
|
+
var zDistributionActivity = object({
|
|
9270
|
+
count: int(),
|
|
9271
|
+
date: string2(),
|
|
9272
|
+
id: string2(),
|
|
9273
|
+
item: zDistributionItemRef,
|
|
9274
|
+
kind: _enum([
|
|
9275
|
+
"shared",
|
|
9276
|
+
"opened",
|
|
9277
|
+
"version",
|
|
9278
|
+
"access_changed",
|
|
9279
|
+
"version_changed",
|
|
9280
|
+
"access_ended",
|
|
9281
|
+
"left",
|
|
9282
|
+
"expired"
|
|
9283
|
+
]),
|
|
9284
|
+
occurred_at: string2(),
|
|
9285
|
+
people: array(zDistributionPerson),
|
|
9286
|
+
version_number: int().nullable()
|
|
9287
|
+
});
|
|
9526
9288
|
var zDistributionItemRow = object({
|
|
9527
9289
|
access: _enum(["ok", "trashed", "read_only"]),
|
|
9528
9290
|
can_manage_sharing: boolean2(),
|
|
9291
|
+
companies: array(zDistributionCompanyRef),
|
|
9529
9292
|
ends_soon: object({
|
|
9530
9293
|
ends_at: string2(),
|
|
9531
9294
|
person: zDistributionPerson.nullable()
|
|
9532
9295
|
}).nullable(),
|
|
9533
9296
|
item: zDistributionItemRef,
|
|
9297
|
+
labels: array(zDistributionLabel),
|
|
9298
|
+
last_activity_at: string2(),
|
|
9534
9299
|
last_opened_at: string2().nullable(),
|
|
9535
9300
|
last_shared_at: string2(),
|
|
9536
9301
|
opens: int(),
|
|
9537
9302
|
owner: zDistributionItemOwner.nullable(),
|
|
9538
9303
|
people_opened: int(),
|
|
9539
9304
|
people_reached: int(),
|
|
9305
|
+
pin_count: int(),
|
|
9306
|
+
preview: object({
|
|
9307
|
+
mime_type: string2().nullable(),
|
|
9308
|
+
resource_id: uuid2().nullable()
|
|
9309
|
+
}),
|
|
9540
9310
|
seconds: int(),
|
|
9541
9311
|
shared_with: object({
|
|
9542
9312
|
audiences: array(object({
|
|
@@ -9552,79 +9322,17 @@ var zDistributionItemRow = object({
|
|
|
9552
9322
|
unknown_opens_capped: boolean2()
|
|
9553
9323
|
});
|
|
9554
9324
|
var zDistributionItemsPage = object({
|
|
9325
|
+
available_companies: array(zDistributionCompanyRef),
|
|
9326
|
+
available_labels: array(zDistributionLabel),
|
|
9555
9327
|
items: array(zDistributionItemRow),
|
|
9556
|
-
total: int()
|
|
9328
|
+
total: int(),
|
|
9329
|
+
unfiltered_total: int()
|
|
9557
9330
|
});
|
|
9558
9331
|
var zDistributionSeriesDay = object({
|
|
9559
9332
|
date: string2(),
|
|
9560
9333
|
first: int(),
|
|
9561
9334
|
returns: int()
|
|
9562
9335
|
});
|
|
9563
|
-
var zDistributionItemResults = object({
|
|
9564
|
-
access: _enum(["ok", "trashed", "read_only"]),
|
|
9565
|
-
by_child: array(object({
|
|
9566
|
-
item: zDistributionItemRef,
|
|
9567
|
-
opens: int(),
|
|
9568
|
-
people: int()
|
|
9569
|
-
})),
|
|
9570
|
-
by_company: array(object({
|
|
9571
|
-
company: zDistributionCompanyRef.nullable(),
|
|
9572
|
-
not_opened: array(zDistributionPerson),
|
|
9573
|
-
opened: array(zDistributionPerson)
|
|
9574
|
-
})),
|
|
9575
|
-
by_member: array(object({
|
|
9576
|
-
added_at: string2(),
|
|
9577
|
-
item: zDistributionItemRef,
|
|
9578
|
-
opened_by: int(),
|
|
9579
|
-
reached: int()
|
|
9580
|
-
})),
|
|
9581
|
-
by_version: array(object({
|
|
9582
|
-
opens: int(),
|
|
9583
|
-
people: int(),
|
|
9584
|
-
released_at: string2(),
|
|
9585
|
-
version_id: uuid2(),
|
|
9586
|
-
version_number: int()
|
|
9587
|
-
})),
|
|
9588
|
-
can_manage_sharing: boolean2(),
|
|
9589
|
-
item: zDistributionItemRef,
|
|
9590
|
-
marks: array(zDistributionMark),
|
|
9591
|
-
owner: zDistributionItemOwner.nullable(),
|
|
9592
|
-
people: array(object({
|
|
9593
|
-
first_opened_at: string2().nullish(),
|
|
9594
|
-
gate: _enum(["none", "email_otp", "passcode"]).nullable(),
|
|
9595
|
-
last_opened_at: string2().nullish(),
|
|
9596
|
-
open_count: int().optional(),
|
|
9597
|
-
person: zDistributionPerson,
|
|
9598
|
-
recipient_id: uuid2(),
|
|
9599
|
-
role: _enum(["editor", "commenter", "viewer"]),
|
|
9600
|
-
seconds: int().optional(),
|
|
9601
|
-
share_id: uuid2(),
|
|
9602
|
-
shared_at: string2(),
|
|
9603
|
-
state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
|
|
9604
|
-
team: boolean2(),
|
|
9605
|
-
tracked_from_creation: boolean2(),
|
|
9606
|
-
tracked_since: string2()
|
|
9607
|
-
})),
|
|
9608
|
-
series: array(zDistributionSeriesDay),
|
|
9609
|
-
stats: object({
|
|
9610
|
-
average_seconds_per_open: int(),
|
|
9611
|
-
came_back: int(),
|
|
9612
|
-
opened: int(),
|
|
9613
|
-
reached: int()
|
|
9614
|
-
}),
|
|
9615
|
-
team_count: int(),
|
|
9616
|
-
through_packs: array(object({
|
|
9617
|
-
opens: int(),
|
|
9618
|
-
pack: zDistributionItemRef,
|
|
9619
|
-
people: int()
|
|
9620
|
-
})),
|
|
9621
|
-
unknown_opens: int(),
|
|
9622
|
-
unknown_opens_capped: boolean2()
|
|
9623
|
-
});
|
|
9624
|
-
var zDistributionItemResultsAnswer = union([
|
|
9625
|
-
zDistributionItemResults,
|
|
9626
|
-
zDistributionItemGone
|
|
9627
|
-
]);
|
|
9628
9336
|
var zDistributionTiles = object({
|
|
9629
9337
|
companies_engaged: int(),
|
|
9630
9338
|
people_opened: int(),
|
|
@@ -9715,7 +9423,7 @@ var zEmbeddedGemPreview = strictObject({
|
|
|
9715
9423
|
var zEmployeeResponse = object({
|
|
9716
9424
|
email: string2(),
|
|
9717
9425
|
id: string2(),
|
|
9718
|
-
lastLogin:
|
|
9426
|
+
lastLogin: datetime2({ offset: true }).nullish(),
|
|
9719
9427
|
name: string2(),
|
|
9720
9428
|
role: string2(),
|
|
9721
9429
|
status: string2(),
|
|
@@ -9749,6 +9457,26 @@ var zExecutorOutputRetentionResponse = strictObject({
|
|
|
9749
9457
|
resultSha256: string2().regex(/^[a-f0-9]{64}$/),
|
|
9750
9458
|
retained: literal(true)
|
|
9751
9459
|
});
|
|
9460
|
+
var zExecutorSkillMetadata = object({
|
|
9461
|
+
description: string2(),
|
|
9462
|
+
gemId: string2().nullable(),
|
|
9463
|
+
id: string2(),
|
|
9464
|
+
name: string2(),
|
|
9465
|
+
skillPath: string2(),
|
|
9466
|
+
source: _enum(["uru", "gem"]),
|
|
9467
|
+
version: string2()
|
|
9468
|
+
});
|
|
9469
|
+
var zExecutorSkillFile = zExecutorSkillMetadata.and(object({
|
|
9470
|
+
content: string2(),
|
|
9471
|
+
files: array(string2()),
|
|
9472
|
+
path: string2()
|
|
9473
|
+
}));
|
|
9474
|
+
var zExecutorSkillList = object({
|
|
9475
|
+
hasMore: boolean2(),
|
|
9476
|
+
nextOffset: int().nullable(),
|
|
9477
|
+
skills: array(zExecutorSkillMetadata),
|
|
9478
|
+
total: int()
|
|
9479
|
+
});
|
|
9752
9480
|
var zExternalPermissions = object({
|
|
9753
9481
|
canAccessIntegrations: boolean2().optional().default(false),
|
|
9754
9482
|
canChat: boolean2().optional().default(true),
|
|
@@ -9777,9 +9505,6 @@ var zFilePreviewImageResponse = object({
|
|
|
9777
9505
|
previewDataUrl: string2().nullish(),
|
|
9778
9506
|
width: int().nullish()
|
|
9779
9507
|
});
|
|
9780
|
-
var zFileReceivedGemShareRequest = strictObject({
|
|
9781
|
-
filedWorkspaceId: uuid2()
|
|
9782
|
-
});
|
|
9783
9508
|
var zFileStatusBatchRequest = object({
|
|
9784
9509
|
fileIds: array(string2())
|
|
9785
9510
|
});
|
|
@@ -9793,6 +9518,32 @@ var zFileStatusResponse = object({
|
|
|
9793
9518
|
var zFileStatusBatchResponse = object({
|
|
9794
9519
|
files: array(zFileStatusResponse)
|
|
9795
9520
|
});
|
|
9521
|
+
var zFollowUpEmailDraft = object({
|
|
9522
|
+
body: string2(),
|
|
9523
|
+
connection_id: string2().nullable(),
|
|
9524
|
+
created_at: string2(),
|
|
9525
|
+
follow_up_id: string2().nullable(),
|
|
9526
|
+
gmail_available: boolean2(),
|
|
9527
|
+
gmail_draft_id: string2().nullable(),
|
|
9528
|
+
gmail_draft_url: url().nullable(),
|
|
9529
|
+
gmail_synced_version: int().nullable(),
|
|
9530
|
+
id: uuid2(),
|
|
9531
|
+
item: object({
|
|
9532
|
+
item_id: uuid2(),
|
|
9533
|
+
name: string2()
|
|
9534
|
+
}),
|
|
9535
|
+
recipient_email: email2(),
|
|
9536
|
+
recipient_name: string2().nullable(),
|
|
9537
|
+
share_id: uuid2(),
|
|
9538
|
+
share_url: url(),
|
|
9539
|
+
source_workspace_id: uuid2(),
|
|
9540
|
+
subject: string2(),
|
|
9541
|
+
updated_at: string2(),
|
|
9542
|
+
version: int()
|
|
9543
|
+
});
|
|
9544
|
+
var zFollowUpEmailDraftsPage = object({
|
|
9545
|
+
drafts: array(zFollowUpEmailDraft)
|
|
9546
|
+
});
|
|
9796
9547
|
var zFollowUpEvidence = union([
|
|
9797
9548
|
object({
|
|
9798
9549
|
first_opened_at: string2(),
|
|
@@ -9810,6 +9561,7 @@ var zFollowUpEvidence = union([
|
|
|
9810
9561
|
object({
|
|
9811
9562
|
gate: _enum(["none", "email_otp", "passcode"]).nullable(),
|
|
9812
9563
|
kind: _enum(["not_opened"]),
|
|
9564
|
+
needed_by: string2().nullable(),
|
|
9813
9565
|
shared_at: string2(),
|
|
9814
9566
|
version_label: string2().nullable()
|
|
9815
9567
|
}),
|
|
@@ -9834,7 +9586,16 @@ var zFollowUpEvidence = union([
|
|
|
9834
9586
|
})
|
|
9835
9587
|
]);
|
|
9836
9588
|
var zFollowUp = object({
|
|
9837
|
-
actions: array(_enum([
|
|
9589
|
+
actions: array(_enum([
|
|
9590
|
+
"share_again",
|
|
9591
|
+
"manage_access",
|
|
9592
|
+
"open_contact",
|
|
9593
|
+
"open_company",
|
|
9594
|
+
"copy_link",
|
|
9595
|
+
"write_note",
|
|
9596
|
+
"extend_access",
|
|
9597
|
+
"move_version"
|
|
9598
|
+
])),
|
|
9838
9599
|
company: zDistributionCompanyRef.nullable(),
|
|
9839
9600
|
done_at: string2().nullable(),
|
|
9840
9601
|
due: boolean2(),
|
|
@@ -9850,6 +9611,7 @@ var zFollowUp = object({
|
|
|
9850
9611
|
state: _enum(["open", "snoozed", "done"])
|
|
9851
9612
|
});
|
|
9852
9613
|
var zDistributionOverview = object({
|
|
9614
|
+
activity: array(zDistributionActivity),
|
|
9853
9615
|
empty: boolean2(),
|
|
9854
9616
|
follow_ups: object({
|
|
9855
9617
|
due_count: int(),
|
|
@@ -9858,7 +9620,7 @@ var zDistributionOverview = object({
|
|
|
9858
9620
|
}),
|
|
9859
9621
|
from: string2(),
|
|
9860
9622
|
marks: array(zDistributionMark),
|
|
9861
|
-
period: _enum(["7d", "30d", "90d", "all"]),
|
|
9623
|
+
period: _enum(["1d", "7d", "30d", "90d", "all"]),
|
|
9862
9624
|
previous: zDistributionTiles.nullable(),
|
|
9863
9625
|
series: array(zDistributionSeriesDay),
|
|
9864
9626
|
team_opens_left_out: int(),
|
|
@@ -9883,6 +9645,41 @@ var zDistributionOverview = object({
|
|
|
9883
9645
|
})),
|
|
9884
9646
|
tz: string2()
|
|
9885
9647
|
});
|
|
9648
|
+
var zFollowUpNoteConnection = object({
|
|
9649
|
+
connection_id: string2(),
|
|
9650
|
+
draft_action: object({
|
|
9651
|
+
arguments: object({
|
|
9652
|
+
body: string2(),
|
|
9653
|
+
is_html: literal(false),
|
|
9654
|
+
recipient_email: email2(),
|
|
9655
|
+
subject: string2(),
|
|
9656
|
+
user_id: _enum(["me"])
|
|
9657
|
+
}),
|
|
9658
|
+
call_name: string2(),
|
|
9659
|
+
ref: object({
|
|
9660
|
+
capabilityId: string2(),
|
|
9661
|
+
connectionId: string2(),
|
|
9662
|
+
kind: _enum(["connector"])
|
|
9663
|
+
})
|
|
9664
|
+
}),
|
|
9665
|
+
label: string2()
|
|
9666
|
+
});
|
|
9667
|
+
var zFollowUpNote = object({
|
|
9668
|
+
body: string2(),
|
|
9669
|
+
follow_up_id: string2(),
|
|
9670
|
+
gmail_connections: array(zFollowUpNoteConnection),
|
|
9671
|
+
item: object({
|
|
9672
|
+
item_id: uuid2(),
|
|
9673
|
+
name: string2()
|
|
9674
|
+
}),
|
|
9675
|
+
recipient: object({
|
|
9676
|
+
email: email2(),
|
|
9677
|
+
name: string2().nullable()
|
|
9678
|
+
}),
|
|
9679
|
+
share_id: uuid2(),
|
|
9680
|
+
share_url: url(),
|
|
9681
|
+
subject: string2()
|
|
9682
|
+
});
|
|
9886
9683
|
var zFollowUpsPage = object({
|
|
9887
9684
|
counts: object({
|
|
9888
9685
|
done: int(),
|
|
@@ -9892,10 +9689,57 @@ var zFollowUpsPage = object({
|
|
|
9892
9689
|
}),
|
|
9893
9690
|
follow_ups: array(zFollowUp)
|
|
9894
9691
|
});
|
|
9895
|
-
var
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9692
|
+
var zGemActionInspection = strictObject({
|
|
9693
|
+
artifactId: uuid2(),
|
|
9694
|
+
deploymentId: uuid2(),
|
|
9695
|
+
gemVersionId: uuid2(),
|
|
9696
|
+
operations: array(object({
|
|
9697
|
+
definitionHash: string2().regex(/^[a-f0-9]{64}$/),
|
|
9698
|
+
description: string2(),
|
|
9699
|
+
inputSchema: union([record(string2(), unknown()), boolean2()]),
|
|
9700
|
+
inputSchemaDigest: string2().regex(/^[a-f0-9]{64}$/),
|
|
9701
|
+
operationKey: string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/),
|
|
9702
|
+
outputSchema: union([record(string2(), unknown()), boolean2()]).nullable(),
|
|
9703
|
+
outputSchemaDigest: string2().regex(/^[a-f0-9]{64}$/).nullable(),
|
|
9704
|
+
recipientUserIds: array(uuid2())
|
|
9705
|
+
})),
|
|
9706
|
+
publications: array(object({
|
|
9707
|
+
definitionHash: string2().regex(/^[a-f0-9]{64}$/),
|
|
9708
|
+
deploymentId: uuid2(),
|
|
9709
|
+
gemVersionId: uuid2(),
|
|
9710
|
+
inputSchemaDigest: string2().regex(/^[a-f0-9]{64}$/),
|
|
9711
|
+
operationKey: string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/),
|
|
9712
|
+
outputSchemaDigest: string2().regex(/^[a-f0-9]{64}$/).nullable(),
|
|
9713
|
+
recipientUserIds: array(uuid2()),
|
|
9714
|
+
revision: int().gt(0)
|
|
9715
|
+
})),
|
|
9716
|
+
runtimeContractHash: string2().regex(/^[a-f0-9]{64}$/)
|
|
9717
|
+
});
|
|
9718
|
+
var zGemActionPublication = strictObject({
|
|
9719
|
+
artifactId: uuid2(),
|
|
9720
|
+
deploymentId: uuid2(),
|
|
9721
|
+
gemVersionId: uuid2(),
|
|
9722
|
+
operationKeys: array(string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/)),
|
|
9723
|
+
runtimeContractHash: string2().regex(/^[a-f0-9]{64}$/)
|
|
9724
|
+
});
|
|
9725
|
+
var zGemActionPublicationRequest = strictObject({
|
|
9726
|
+
deploymentId: uuid2(),
|
|
9727
|
+
expectedRuntimeContractHash: string2().regex(/^[a-f0-9]{64}$/),
|
|
9728
|
+
selections: array(object({
|
|
9729
|
+
inputSchemaDigest: string2().regex(/^[a-f0-9]{64}$/),
|
|
9730
|
+
operationKey: string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/),
|
|
9731
|
+
outputSchemaDigest: string2().regex(/^[a-f0-9]{64}$/).nullable(),
|
|
9732
|
+
recipientUserIds: array(uuid2()).max(100)
|
|
9733
|
+
})).max(100)
|
|
9734
|
+
});
|
|
9735
|
+
var zGemActionRevocation = strictObject({
|
|
9736
|
+
artifactId: uuid2(),
|
|
9737
|
+
operationKeys: array(string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/)).max(0)
|
|
9738
|
+
});
|
|
9739
|
+
var zGemEdit = strictObject({
|
|
9740
|
+
actorSource: string2().nullable(),
|
|
9741
|
+
buildId: string2().nullish(),
|
|
9742
|
+
buildStatus: string2().nullish(),
|
|
9899
9743
|
changeType: string2(),
|
|
9900
9744
|
createdAt: string2().nullable(),
|
|
9901
9745
|
createdBy: string2().nullable(),
|
|
@@ -9914,7 +9758,7 @@ var zGemEditsPage = strictObject({
|
|
|
9914
9758
|
nextCursor: string2().nullable()
|
|
9915
9759
|
});
|
|
9916
9760
|
var zGemGitSourceBindingError = strictObject({
|
|
9917
|
-
at:
|
|
9761
|
+
at: datetime2({ offset: true }),
|
|
9918
9762
|
code: string2().min(1).max(128),
|
|
9919
9763
|
message: string2().min(1).max(512)
|
|
9920
9764
|
}).nullable();
|
|
@@ -10010,8 +9854,8 @@ var zGemGitSourceImport = strictObject({
|
|
|
10010
9854
|
buildId: uuid2().nullable(),
|
|
10011
9855
|
commitMessage: string2().max(16384),
|
|
10012
9856
|
commitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
|
|
10013
|
-
completedAt:
|
|
10014
|
-
createdAt:
|
|
9857
|
+
completedAt: datetime2({ offset: true }).nullable(),
|
|
9858
|
+
createdAt: datetime2({ offset: true }),
|
|
10015
9859
|
error: zGemGitSourceImportError,
|
|
10016
9860
|
generation: int().gte(0),
|
|
10017
9861
|
id: uuid2(),
|
|
@@ -10024,6 +9868,12 @@ var zGemGitSourceImport = strictObject({
|
|
|
10024
9868
|
]),
|
|
10025
9869
|
ref: string2().min(1).max(512),
|
|
10026
9870
|
releaseId: uuid2().nullable(),
|
|
9871
|
+
resourceReview: object({
|
|
9872
|
+
canApprove: boolean2(),
|
|
9873
|
+
changeNamed: boolean2(),
|
|
9874
|
+
changes: array(string2().min(1).max(2112)).max(8000),
|
|
9875
|
+
message: string2().min(1).max(512)
|
|
9876
|
+
}).nullable(),
|
|
10027
9877
|
resourceReviewRequired: boolean2(),
|
|
10028
9878
|
sourceRevisionId: uuid2().nullable(),
|
|
10029
9879
|
stage: _enum([
|
|
@@ -10067,8 +9917,8 @@ var zGemGitSourceInspection = strictObject({
|
|
|
10067
9917
|
repositoryId: string2().regex(/^[1-9][0-9]{0,19}$/),
|
|
10068
9918
|
resourceNeeds: array(object({
|
|
10069
9919
|
kind: string2().min(1).max(128),
|
|
10070
|
-
name: string2().min(1).max(
|
|
10071
|
-
})).max(
|
|
9920
|
+
name: string2().min(1).max(2048)
|
|
9921
|
+
})).max(2000),
|
|
10072
9922
|
state: _enum(["ready", "needs_configuration", "rejected"]),
|
|
10073
9923
|
totalBytes: int().gte(0).lte(25165824)
|
|
10074
9924
|
});
|
|
@@ -10076,7 +9926,7 @@ var zGemGitSourcePreview = strictObject({
|
|
|
10076
9926
|
approvedHeadSha: string2().regex(/^[0-9a-fA-F]{40}$/).nullable(),
|
|
10077
9927
|
canOpen: boolean2(),
|
|
10078
9928
|
error: zGemGitSourceImportError,
|
|
10079
|
-
expiresAt:
|
|
9929
|
+
expiresAt: datetime2({ offset: true }),
|
|
10080
9930
|
fork: boolean2(),
|
|
10081
9931
|
headSha: string2().regex(/^[0-9a-fA-F]{40}$/),
|
|
10082
9932
|
id: uuid2(),
|
|
@@ -10104,8 +9954,8 @@ var zGemGitSourcePreviewInspection = strictObject({
|
|
|
10104
9954
|
ref: string2().min(1).max(512),
|
|
10105
9955
|
resourceNeeds: array(object({
|
|
10106
9956
|
kind: string2().min(1).max(128),
|
|
10107
|
-
name: string2().min(1).max(
|
|
10108
|
-
})).max(
|
|
9957
|
+
name: string2().min(1).max(2048)
|
|
9958
|
+
})).max(2000),
|
|
10109
9959
|
resourcePolicyHash: string2().regex(/^[0-9a-fA-F]{64}$/).nullable(),
|
|
10110
9960
|
state: _enum(["ready", "needs_configuration", "rejected"])
|
|
10111
9961
|
});
|
|
@@ -10137,7 +9987,7 @@ var zGemGitSourceRepository = strictObject({
|
|
|
10137
9987
|
});
|
|
10138
9988
|
var zGemGitSourceConnection = strictObject({
|
|
10139
9989
|
authorizeUrl: url().max(2048).nullable(),
|
|
10140
|
-
expiresAt:
|
|
9990
|
+
expiresAt: datetime2({ offset: true }).nullable(),
|
|
10141
9991
|
id: uuid2().nullable(),
|
|
10142
9992
|
installUrl: url().max(2048).nullable(),
|
|
10143
9993
|
manageUrl: url().max(2048).nullable(),
|
|
@@ -10198,7 +10048,6 @@ var zGemGitSourceImportResponse = strictObject({
|
|
|
10198
10048
|
var zGemReceivedShare = strictObject({
|
|
10199
10049
|
createdAt: string2(),
|
|
10200
10050
|
dataMode: _enum(["live", "snapshot"]),
|
|
10201
|
-
filedWorkspaceId: string2().nullable(),
|
|
10202
10051
|
gateType: _enum(["none", "passcode", "email_otp", "passcode_email_otp"]).nullable(),
|
|
10203
10052
|
gemId: string2(),
|
|
10204
10053
|
gemTitle: string2().nullable(),
|
|
@@ -10214,9 +10063,6 @@ var zGemReceivedShare = strictObject({
|
|
|
10214
10063
|
url: string2().nullable(),
|
|
10215
10064
|
versionLabel: string2().nullable()
|
|
10216
10065
|
});
|
|
10217
|
-
var zGemReceivedShareResponse = strictObject({
|
|
10218
|
-
share: zGemReceivedShare
|
|
10219
|
-
});
|
|
10220
10066
|
var zGemReceivedSharesResponse = strictObject({
|
|
10221
10067
|
shares: array(zGemReceivedShare)
|
|
10222
10068
|
});
|
|
@@ -10431,6 +10277,7 @@ var zCatalogActionDescriptor = object({
|
|
|
10431
10277
|
providerVersion: string2().nullish(),
|
|
10432
10278
|
ref: zCatalogActionRef,
|
|
10433
10279
|
resourceTags: array(string2()).optional(),
|
|
10280
|
+
searchText: string2().optional(),
|
|
10434
10281
|
serviceAliases: array(string2()).optional(),
|
|
10435
10282
|
serviceName: string2().nullish(),
|
|
10436
10283
|
serviceSlug: string2(),
|
|
@@ -10449,9 +10296,28 @@ var zActionCatalogSearchResponse = object({
|
|
|
10449
10296
|
accountLabel: string2().min(1),
|
|
10450
10297
|
connectionId: string2().min(1),
|
|
10451
10298
|
serviceSlug: string2().min(1)
|
|
10452
|
-
}))
|
|
10299
|
+
})),
|
|
10453
10300
|
actions: array(zCatalogActionDescriptor),
|
|
10454
10301
|
catalogVersion: string2().nullable(),
|
|
10302
|
+
definitionGroups: array(object({
|
|
10303
|
+
choices: array(object({
|
|
10304
|
+
accountLabel: string2().nullable(),
|
|
10305
|
+
availability: object({
|
|
10306
|
+
available: boolean2(),
|
|
10307
|
+
reason: string2().optional()
|
|
10308
|
+
}),
|
|
10309
|
+
callName: string2(),
|
|
10310
|
+
gemDeclaration: zGemToolDeclaration.optional(),
|
|
10311
|
+
owner: _enum(["platform", "personal", "adopted", "company"]),
|
|
10312
|
+
path: string2(),
|
|
10313
|
+
ref: zCatalogActionRef
|
|
10314
|
+
})),
|
|
10315
|
+
description: string2(),
|
|
10316
|
+
inputSchemaDigest: string2().nullable(),
|
|
10317
|
+
integration: string2(),
|
|
10318
|
+
name: string2(),
|
|
10319
|
+
outputSchemaDigest: string2().nullable()
|
|
10320
|
+
})).optional(),
|
|
10455
10321
|
nextCursor: string2().nullable(),
|
|
10456
10322
|
overview: array(object({
|
|
10457
10323
|
accountLabel: string2().nullable(),
|
|
@@ -10493,9 +10359,28 @@ var zActionCatalogSkeletonFullResponse = object({
|
|
|
10493
10359
|
accountLabel: string2().min(1),
|
|
10494
10360
|
connectionId: string2().min(1),
|
|
10495
10361
|
serviceSlug: string2().min(1)
|
|
10496
|
-
}))
|
|
10362
|
+
})),
|
|
10497
10363
|
actions: array(zCatalogActionDescriptor),
|
|
10498
10364
|
catalogVersion: string2().nullable(),
|
|
10365
|
+
definitionGroups: array(object({
|
|
10366
|
+
choices: array(object({
|
|
10367
|
+
accountLabel: string2().nullable(),
|
|
10368
|
+
availability: object({
|
|
10369
|
+
available: boolean2(),
|
|
10370
|
+
reason: string2().optional()
|
|
10371
|
+
}),
|
|
10372
|
+
callName: string2(),
|
|
10373
|
+
gemDeclaration: zGemToolDeclaration.optional(),
|
|
10374
|
+
owner: _enum(["platform", "personal", "adopted", "company"]),
|
|
10375
|
+
path: string2(),
|
|
10376
|
+
ref: zCatalogActionRef
|
|
10377
|
+
})),
|
|
10378
|
+
description: string2(),
|
|
10379
|
+
inputSchemaDigest: string2().nullable(),
|
|
10380
|
+
integration: string2(),
|
|
10381
|
+
name: string2(),
|
|
10382
|
+
outputSchemaDigest: string2().nullable()
|
|
10383
|
+
})).optional(),
|
|
10499
10384
|
overview: array(object({
|
|
10500
10385
|
accountLabel: string2().nullable(),
|
|
10501
10386
|
actionCount: int().gt(0),
|
|
@@ -10572,9 +10457,28 @@ var zActionCatalogSkeletonListingResponse = object({
|
|
|
10572
10457
|
accountLabel: string2().min(1),
|
|
10573
10458
|
connectionId: string2().min(1),
|
|
10574
10459
|
serviceSlug: string2().min(1)
|
|
10575
|
-
}))
|
|
10460
|
+
})),
|
|
10576
10461
|
actions: array(zCatalogActionSkeletonAction),
|
|
10577
10462
|
catalogVersion: string2().nullable(),
|
|
10463
|
+
definitionGroups: array(object({
|
|
10464
|
+
choices: array(object({
|
|
10465
|
+
accountLabel: string2().nullable(),
|
|
10466
|
+
availability: object({
|
|
10467
|
+
available: boolean2(),
|
|
10468
|
+
reason: string2().optional()
|
|
10469
|
+
}),
|
|
10470
|
+
callName: string2(),
|
|
10471
|
+
gemDeclaration: zGemToolDeclaration.optional(),
|
|
10472
|
+
owner: _enum(["platform", "personal", "adopted", "company"]),
|
|
10473
|
+
path: string2(),
|
|
10474
|
+
ref: zCatalogActionRef
|
|
10475
|
+
})),
|
|
10476
|
+
description: string2(),
|
|
10477
|
+
inputSchemaDigest: string2().nullable(),
|
|
10478
|
+
integration: string2(),
|
|
10479
|
+
name: string2(),
|
|
10480
|
+
outputSchemaDigest: string2().nullable()
|
|
10481
|
+
})).optional(),
|
|
10578
10482
|
overview: array(object({
|
|
10579
10483
|
accountLabel: string2().nullable(),
|
|
10580
10484
|
actionCount: int().gt(0),
|
|
@@ -10959,7 +10863,7 @@ var zErrorResponse = strictObject({
|
|
|
10959
10863
|
var zIntegrationHealthDismissRequest = object({
|
|
10960
10864
|
incidentIds: array(string2())
|
|
10961
10865
|
});
|
|
10962
|
-
var zIntegrationHealthExternalProvider = _enum(["none", "
|
|
10866
|
+
var zIntegrationHealthExternalProvider = _enum(["none", "slack"]).default("none");
|
|
10963
10867
|
var zIntegrationHealthMarkReadRequest = object({
|
|
10964
10868
|
incidentIds: array(string2()).nullish()
|
|
10965
10869
|
});
|
|
@@ -10968,9 +10872,7 @@ var zIntegrationHealthPreferencesRecord = object({
|
|
|
10968
10872
|
externalAppName: string2().nullish(),
|
|
10969
10873
|
externalConnectionId: string2().nullish(),
|
|
10970
10874
|
externalProvider: zIntegrationHealthExternalProvider.optional(),
|
|
10971
|
-
|
|
10972
|
-
slackChannelId: string2().nullish(),
|
|
10973
|
-
targetEmail: string2().nullish()
|
|
10875
|
+
slackChannelId: string2().nullish()
|
|
10974
10876
|
});
|
|
10975
10877
|
var zIntegrationHealthPreferencesResponse = object({
|
|
10976
10878
|
message: string2(),
|
|
@@ -10982,7 +10884,6 @@ var zIntegrationHealthPreferencesUpdateRequest = object({
|
|
|
10982
10884
|
externalAppName: string2().nullish(),
|
|
10983
10885
|
externalConnectionId: string2().nullish(),
|
|
10984
10886
|
externalProvider: zIntegrationHealthExternalProvider.optional(),
|
|
10985
|
-
inAppEnabled: boolean2().optional().default(true),
|
|
10986
10887
|
slackChannelId: string2().nullish()
|
|
10987
10888
|
});
|
|
10988
10889
|
var zIntegrationHealthSource = _enum(["execute_failure", "daily_probe"]);
|
|
@@ -11030,7 +10931,7 @@ var zInvitationResendResponse = strictObject({
|
|
|
11030
10931
|
var zInvitationResponse = object({
|
|
11031
10932
|
emailDelivery: zInvitationEmailOutcome,
|
|
11032
10933
|
employeeId: string2(),
|
|
11033
|
-
expiresAt:
|
|
10934
|
+
expiresAt: datetime2({ offset: true }).nullish(),
|
|
11034
10935
|
inviteLink: string2(),
|
|
11035
10936
|
inviteToken: string2(),
|
|
11036
10937
|
message: string2()
|
|
@@ -11046,7 +10947,7 @@ var zInvitationValidationResponse = object({
|
|
|
11046
10947
|
authProviders: array(_enum(["email", "google", "azure"])).optional(),
|
|
11047
10948
|
email: string2(),
|
|
11048
10949
|
employeeId: string2(),
|
|
11049
|
-
expiresAt:
|
|
10950
|
+
expiresAt: datetime2({ offset: true }).nullish(),
|
|
11050
10951
|
kind: _enum(["workspace", "organization"]),
|
|
11051
10952
|
name: string2().nullish(),
|
|
11052
10953
|
organizationName: string2(),
|
|
@@ -11153,124 +11054,6 @@ var zAddItemSharePeopleRequest = strictObject({
|
|
|
11153
11054
|
notify: boolean2().optional(),
|
|
11154
11055
|
people: array(zItemSharePersonRequest).min(1)
|
|
11155
11056
|
});
|
|
11156
|
-
var zItemShareRecipient = object({
|
|
11157
|
-
added_by_you: boolean2(),
|
|
11158
|
-
contact: object({
|
|
11159
|
-
id: string2(),
|
|
11160
|
-
name: string2().nullable()
|
|
11161
|
-
}).nullish(),
|
|
11162
|
-
created_at: string2(),
|
|
11163
|
-
display_name: string2().nullable(),
|
|
11164
|
-
email: string2(),
|
|
11165
|
-
email_state: _enum(["queued", "sent", "not_sent", "none"]).optional(),
|
|
11166
|
-
first_opened_at: string2().nullish(),
|
|
11167
|
-
invited_by_recipient_id: string2().nullable(),
|
|
11168
|
-
is_team: boolean2().optional(),
|
|
11169
|
-
last_opened_at: string2().nullish(),
|
|
11170
|
-
link_url: string2().nullable(),
|
|
11171
|
-
not_sent_reason: _enum(["test_environment"]).optional(),
|
|
11172
|
-
open_count: int().optional(),
|
|
11173
|
-
origin: _enum(["invited", "general_access", "reshared", "migrated", "owner"]),
|
|
11174
|
-
recipient_id: string2(),
|
|
11175
|
-
revoked_at: string2().nullable(),
|
|
11176
|
-
role: _enum(["editor", "commenter", "viewer"]),
|
|
11177
|
-
share_id: string2(),
|
|
11178
|
-
state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
|
|
11179
|
-
tracked_from_creation: boolean2().optional(),
|
|
11180
|
-
tracked_since: string2().optional()
|
|
11181
|
-
});
|
|
11182
|
-
var zItemShare = object({
|
|
11183
|
-
audiences: array(zItemShareAudience),
|
|
11184
|
-
can_manage: boolean2(),
|
|
11185
|
-
created_at: string2(),
|
|
11186
|
-
created_by_you: boolean2(),
|
|
11187
|
-
expires_at: string2().nullable(),
|
|
11188
|
-
gem: zItemShareGemSettings.nullable(),
|
|
11189
|
-
general_access_count: int(),
|
|
11190
|
-
has_named_recipients: boolean2(),
|
|
11191
|
-
id: string2(),
|
|
11192
|
-
item_id: string2(),
|
|
11193
|
-
item_kind: _enum([
|
|
11194
|
-
"artifact",
|
|
11195
|
-
"file",
|
|
11196
|
-
"folder",
|
|
11197
|
-
"dataset",
|
|
11198
|
-
"prompt",
|
|
11199
|
-
"context",
|
|
11200
|
-
"automation",
|
|
11201
|
-
"persona",
|
|
11202
|
-
"collection"
|
|
11203
|
-
]),
|
|
11204
|
-
kind: _enum(["editor", "commenter", "viewer"]),
|
|
11205
|
-
link: zItemShareLink.nullable(),
|
|
11206
|
-
message: string2().nullable(),
|
|
11207
|
-
name: string2(),
|
|
11208
|
-
open_count: int().optional(),
|
|
11209
|
-
people: array(zItemShareRecipient),
|
|
11210
|
-
recipient_count: int(),
|
|
11211
|
-
revoked_at: string2().nullable(),
|
|
11212
|
-
status: _enum(["active", "revoked"]),
|
|
11213
|
-
tracked_from_creation: boolean2(),
|
|
11214
|
-
tracked_since: string2(),
|
|
11215
|
-
updated_at: string2()
|
|
11216
|
-
});
|
|
11217
|
-
var zItemShareAnswer = object({
|
|
11218
|
-
item_id: string2(),
|
|
11219
|
-
next_cursor: string2().nullable(),
|
|
11220
|
-
share: zItemShare
|
|
11221
|
-
});
|
|
11222
|
-
var zItemShareOwner = object({
|
|
11223
|
-
email: string2().nullable(),
|
|
11224
|
-
is_you: boolean2(),
|
|
11225
|
-
link: union([
|
|
11226
|
-
object({
|
|
11227
|
-
share: zItemShare,
|
|
11228
|
-
state: _enum(["ready"])
|
|
11229
|
-
}),
|
|
11230
|
-
object({
|
|
11231
|
-
state: _enum(["missing"])
|
|
11232
|
-
}),
|
|
11233
|
-
object({
|
|
11234
|
-
reason: _enum(["no_version", "serving_unavailable"]),
|
|
11235
|
-
state: _enum(["unavailable"])
|
|
11236
|
-
})
|
|
11237
|
-
]).nullable(),
|
|
11238
|
-
name: string2().nullable()
|
|
11239
|
-
});
|
|
11240
|
-
var zItemShareOwnerLink = union([
|
|
11241
|
-
object({
|
|
11242
|
-
share: zItemShare,
|
|
11243
|
-
state: _enum(["ready"])
|
|
11244
|
-
}),
|
|
11245
|
-
object({
|
|
11246
|
-
state: _enum(["missing"])
|
|
11247
|
-
}),
|
|
11248
|
-
object({
|
|
11249
|
-
reason: _enum(["no_version", "serving_unavailable"]),
|
|
11250
|
-
state: _enum(["unavailable"])
|
|
11251
|
-
})
|
|
11252
|
-
]);
|
|
11253
|
-
var zItemShareOwnerLinkAnswer = object({
|
|
11254
|
-
item_id: string2(),
|
|
11255
|
-
link: zItemShareOwnerLink
|
|
11256
|
-
});
|
|
11257
|
-
var zItemSharePeopleAnswer = object({
|
|
11258
|
-
emailed: int(),
|
|
11259
|
-
item_id: string2(),
|
|
11260
|
-
next_cursor: string2().nullable(),
|
|
11261
|
-
people: array(object({
|
|
11262
|
-
email: string2(),
|
|
11263
|
-
email_expected: _enum(["send", "test_environment", "none"]),
|
|
11264
|
-
link_url: string2().nullable(),
|
|
11265
|
-
recipient_id: string2(),
|
|
11266
|
-
role: _enum(["editor", "commenter", "viewer"]),
|
|
11267
|
-
status: _enum(["added", "already"]),
|
|
11268
|
-
user_id: string2().optional()
|
|
11269
|
-
})),
|
|
11270
|
-
send_allowance_remaining: int(),
|
|
11271
|
-
share: zItemShare,
|
|
11272
|
-
warning: _enum(["outside_sees_folder"]).nullable()
|
|
11273
|
-
});
|
|
11274
11057
|
var zItemShareRemovePersonAnswer = object({
|
|
11275
11058
|
closed_recipient_ids: array(string2()),
|
|
11276
11059
|
item_id: string2(),
|
|
@@ -11282,12 +11065,6 @@ var zItemShareResendEmailAnswer = object({
|
|
|
11282
11065
|
recipient_id: string2(),
|
|
11283
11066
|
send_allowance_remaining: int()
|
|
11284
11067
|
});
|
|
11285
|
-
var zItemShareUpdateAnswer = object({
|
|
11286
|
-
item_id: string2(),
|
|
11287
|
-
link_turned_off: boolean2(),
|
|
11288
|
-
next_cursor: string2().nullable(),
|
|
11289
|
-
share: zItemShare
|
|
11290
|
-
});
|
|
11291
11068
|
var zLegacyVisitorLinkAnswer = object({
|
|
11292
11069
|
key: string2()
|
|
11293
11070
|
});
|
|
@@ -11516,7 +11293,7 @@ var zLibraryCollectionSummary = strictObject({
|
|
|
11516
11293
|
folder_id: string2().nullable(),
|
|
11517
11294
|
holds_item: boolean2().optional(),
|
|
11518
11295
|
member_count: int(),
|
|
11519
|
-
modified_at:
|
|
11296
|
+
modified_at: datetime2({ offset: true }),
|
|
11520
11297
|
name: string2(),
|
|
11521
11298
|
role: _enum(["owner", "editor"]),
|
|
11522
11299
|
shared: boolean2(),
|
|
@@ -11548,16 +11325,16 @@ var zLibraryExternalSourceDeleteResponse = object({
|
|
|
11548
11325
|
ok: boolean2().optional().default(true)
|
|
11549
11326
|
});
|
|
11550
11327
|
var zLibraryExternalSourceItemResponse = object({
|
|
11551
|
-
createdAt:
|
|
11328
|
+
createdAt: datetime2({ offset: true }).nullish(),
|
|
11552
11329
|
externalFileId: string2(),
|
|
11553
11330
|
externalMimeType: string2().nullish(),
|
|
11554
|
-
externalModifiedAt:
|
|
11331
|
+
externalModifiedAt: datetime2({ offset: true }).nullish(),
|
|
11555
11332
|
externalName: string2(),
|
|
11556
11333
|
externalParentId: string2().nullish(),
|
|
11557
11334
|
id: string2(),
|
|
11558
11335
|
libraryItemId: string2(),
|
|
11559
11336
|
sourceId: string2(),
|
|
11560
|
-
updatedAt:
|
|
11337
|
+
updatedAt: datetime2({ offset: true }).nullish()
|
|
11561
11338
|
});
|
|
11562
11339
|
var zLibraryExternalSourceKind = _enum(["file", "folder"]);
|
|
11563
11340
|
var zLibraryExternalSourceProvider = _enum(["googledrive"]);
|
|
@@ -11573,7 +11350,7 @@ var zLibraryExternalSourceResponse = object({
|
|
|
11573
11350
|
connectionAccountIdentifier: string2().nullish(),
|
|
11574
11351
|
connectionId: string2(),
|
|
11575
11352
|
connectionLabel: string2().nullish(),
|
|
11576
|
-
createdAt:
|
|
11353
|
+
createdAt: datetime2({ offset: true }).nullish(),
|
|
11577
11354
|
driveId: string2().nullish(),
|
|
11578
11355
|
enabled: boolean2().optional().default(true),
|
|
11579
11356
|
externalId: string2(),
|
|
@@ -11581,7 +11358,7 @@ var zLibraryExternalSourceResponse = object({
|
|
|
11581
11358
|
id: string2(),
|
|
11582
11359
|
items: array(zLibraryExternalSourceItemResponse).optional().default([]),
|
|
11583
11360
|
lastError: string2().nullish(),
|
|
11584
|
-
lastSyncedAt:
|
|
11361
|
+
lastSyncedAt: datetime2({ offset: true }).nullish(),
|
|
11585
11362
|
ownerUserId: string2(),
|
|
11586
11363
|
provider: zLibraryExternalSourceProvider,
|
|
11587
11364
|
rootLibraryFolderId: string2().nullish(),
|
|
@@ -11590,7 +11367,7 @@ var zLibraryExternalSourceResponse = object({
|
|
|
11590
11367
|
syncIntervalMinutes: int(),
|
|
11591
11368
|
syncStatus: zLibraryExternalSourceStatus,
|
|
11592
11369
|
targetFolderId: string2().nullish(),
|
|
11593
|
-
updatedAt:
|
|
11370
|
+
updatedAt: datetime2({ offset: true }).nullish(),
|
|
11594
11371
|
workspaceId: string2()
|
|
11595
11372
|
});
|
|
11596
11373
|
var zLibraryExternalSourceCreateResponse = object({
|
|
@@ -11709,6 +11486,7 @@ var zLibraryItemCapabilities = object({
|
|
|
11709
11486
|
canManagePermissions: boolean2().optional().default(false),
|
|
11710
11487
|
canManageShareSettings: boolean2().optional().default(false),
|
|
11711
11488
|
canMove: boolean2().optional().default(false),
|
|
11489
|
+
canMoveToWorkspace: boolean2(),
|
|
11712
11490
|
canOpen: boolean2().optional().default(true),
|
|
11713
11491
|
canOrganizeWithinSharedFolder: boolean2().optional().default(false),
|
|
11714
11492
|
canPreview: boolean2().optional().default(false),
|
|
@@ -11824,7 +11602,7 @@ var zLibraryMovePreviewResponse = object({
|
|
|
11824
11602
|
newlyExposedItemCount: int().optional().default(0),
|
|
11825
11603
|
permissionExpanding: boolean2().optional().default(false),
|
|
11826
11604
|
sharedDestinationAncestors: array(zLibraryMoveSharedAncestor).optional(),
|
|
11827
|
-
tokenExpiresAt:
|
|
11605
|
+
tokenExpiresAt: datetime2({ offset: true }).nullish()
|
|
11828
11606
|
});
|
|
11829
11607
|
var zLibraryPreviewStatus = _enum(["processing", "available", "unavailable", "unsafe", "failed"]).default("unavailable");
|
|
11830
11608
|
var zLibraryResourceType = _enum([
|
|
@@ -11846,15 +11624,15 @@ var zLibraryCollectionCoverItem = object({
|
|
|
11846
11624
|
author: zLibraryItemAuthor.optional(),
|
|
11847
11625
|
capabilities: zLibraryItemCapabilities.optional(),
|
|
11848
11626
|
commentsCount: int().optional().default(0),
|
|
11849
|
-
createdAt:
|
|
11627
|
+
createdAt: datetime2({ offset: true }),
|
|
11850
11628
|
currentFileId: string2().nullish(),
|
|
11851
|
-
deletedAt:
|
|
11629
|
+
deletedAt: datetime2({ offset: true }).nullish(),
|
|
11852
11630
|
externalSourceId: string2().nullish(),
|
|
11853
11631
|
isFavorite: boolean2().optional().default(false),
|
|
11854
11632
|
itemId: string2(),
|
|
11855
11633
|
labels: array(record(string2(), unknown())).optional(),
|
|
11856
11634
|
mimeType: string2().nullish(),
|
|
11857
|
-
modifiedAt:
|
|
11635
|
+
modifiedAt: datetime2({ offset: true }),
|
|
11858
11636
|
modifiedBy: zLibraryItemModifiedBy,
|
|
11859
11637
|
name: string2(),
|
|
11860
11638
|
openMode: _enum(["gem_link", "verify", "pack_gem", "not_ready"]).nullish(),
|
|
@@ -11867,6 +11645,8 @@ var zLibraryCollectionCoverItem = object({
|
|
|
11867
11645
|
previewStatus: zLibraryPreviewStatus.optional(),
|
|
11868
11646
|
readonlyPolicy: string2().nullish(),
|
|
11869
11647
|
receivedShare: object({
|
|
11648
|
+
accessEndsAt: string2().nullable(),
|
|
11649
|
+
canPlace: boolean2(),
|
|
11870
11650
|
link: boolean2(),
|
|
11871
11651
|
openHref: string2().nullable(),
|
|
11872
11652
|
openWorkspaceId: string2(),
|
|
@@ -11876,9 +11656,13 @@ var zLibraryCollectionCoverItem = object({
|
|
|
11876
11656
|
workspaceId: string2().nullable(),
|
|
11877
11657
|
workspaceName: string2().nullable()
|
|
11878
11658
|
}),
|
|
11659
|
+
removeKeepsAccessIn: object({
|
|
11660
|
+
workspaceId: string2(),
|
|
11661
|
+
workspaceName: string2()
|
|
11662
|
+
}).nullable(),
|
|
11879
11663
|
role: _enum(["editor", "commenter", "viewer"]),
|
|
11880
11664
|
senderName: string2().nullable(),
|
|
11881
|
-
sharedAt:
|
|
11665
|
+
sharedAt: datetime2({ offset: true }),
|
|
11882
11666
|
state: _enum(["open", "verify_email", "other_login", "expired"]),
|
|
11883
11667
|
through: object({
|
|
11884
11668
|
audienceId: string2(),
|
|
@@ -11900,7 +11684,7 @@ var zLibraryCollectionCoverItem = object({
|
|
|
11900
11684
|
}).nullish(),
|
|
11901
11685
|
remoteFileId: string2().nullish(),
|
|
11902
11686
|
remoteMimeType: string2().nullish(),
|
|
11903
|
-
remoteModifiedAt:
|
|
11687
|
+
remoteModifiedAt: datetime2({ offset: true }).nullish(),
|
|
11904
11688
|
resourceId: string2(),
|
|
11905
11689
|
resourceSummary: record(string2(), unknown()).optional(),
|
|
11906
11690
|
resourceType: zLibraryResourceType,
|
|
@@ -11912,7 +11696,7 @@ var zLibraryCollectionCoverItem = object({
|
|
|
11912
11696
|
syncError: string2().nullish(),
|
|
11913
11697
|
syncStatus: string2().nullish(),
|
|
11914
11698
|
thumbnail: string2().nullish(),
|
|
11915
|
-
trashedAt:
|
|
11699
|
+
trashedAt: datetime2({ offset: true }).nullish(),
|
|
11916
11700
|
viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
|
|
11917
11701
|
workspaceId: string2().nullish()
|
|
11918
11702
|
});
|
|
@@ -11928,15 +11712,15 @@ var zLibraryItemDto = object({
|
|
|
11928
11712
|
capabilities: zLibraryItemCapabilities.optional(),
|
|
11929
11713
|
collection: zLibraryCollectionBlock.optional(),
|
|
11930
11714
|
commentsCount: int().optional().default(0),
|
|
11931
|
-
createdAt:
|
|
11715
|
+
createdAt: datetime2({ offset: true }),
|
|
11932
11716
|
currentFileId: string2().nullish(),
|
|
11933
|
-
deletedAt:
|
|
11717
|
+
deletedAt: datetime2({ offset: true }).nullish(),
|
|
11934
11718
|
externalSourceId: string2().nullish(),
|
|
11935
11719
|
isFavorite: boolean2().optional().default(false),
|
|
11936
11720
|
itemId: string2(),
|
|
11937
11721
|
labels: array(record(string2(), unknown())).optional(),
|
|
11938
11722
|
mimeType: string2().nullish(),
|
|
11939
|
-
modifiedAt:
|
|
11723
|
+
modifiedAt: datetime2({ offset: true }),
|
|
11940
11724
|
modifiedBy: zLibraryItemModifiedBy,
|
|
11941
11725
|
name: string2(),
|
|
11942
11726
|
openMode: _enum(["gem_link", "verify", "pack_gem", "not_ready"]).nullish(),
|
|
@@ -11949,6 +11733,8 @@ var zLibraryItemDto = object({
|
|
|
11949
11733
|
previewStatus: zLibraryPreviewStatus.optional(),
|
|
11950
11734
|
readonlyPolicy: string2().nullish(),
|
|
11951
11735
|
receivedShare: object({
|
|
11736
|
+
accessEndsAt: string2().nullable(),
|
|
11737
|
+
canPlace: boolean2(),
|
|
11952
11738
|
link: boolean2(),
|
|
11953
11739
|
openHref: string2().nullable(),
|
|
11954
11740
|
openWorkspaceId: string2(),
|
|
@@ -11958,9 +11744,13 @@ var zLibraryItemDto = object({
|
|
|
11958
11744
|
workspaceId: string2().nullable(),
|
|
11959
11745
|
workspaceName: string2().nullable()
|
|
11960
11746
|
}),
|
|
11747
|
+
removeKeepsAccessIn: object({
|
|
11748
|
+
workspaceId: string2(),
|
|
11749
|
+
workspaceName: string2()
|
|
11750
|
+
}).nullable(),
|
|
11961
11751
|
role: _enum(["editor", "commenter", "viewer"]),
|
|
11962
11752
|
senderName: string2().nullable(),
|
|
11963
|
-
sharedAt:
|
|
11753
|
+
sharedAt: datetime2({ offset: true }),
|
|
11964
11754
|
state: _enum(["open", "verify_email", "other_login", "expired"]),
|
|
11965
11755
|
through: object({
|
|
11966
11756
|
audienceId: string2(),
|
|
@@ -11982,7 +11772,7 @@ var zLibraryItemDto = object({
|
|
|
11982
11772
|
}).nullish(),
|
|
11983
11773
|
remoteFileId: string2().nullish(),
|
|
11984
11774
|
remoteMimeType: string2().nullish(),
|
|
11985
|
-
remoteModifiedAt:
|
|
11775
|
+
remoteModifiedAt: datetime2({ offset: true }).nullish(),
|
|
11986
11776
|
resourceId: string2(),
|
|
11987
11777
|
resourceSummary: record(string2(), unknown()).optional(),
|
|
11988
11778
|
resourceType: zLibraryResourceType,
|
|
@@ -11994,7 +11784,7 @@ var zLibraryItemDto = object({
|
|
|
11994
11784
|
syncError: string2().nullish(),
|
|
11995
11785
|
syncStatus: string2().nullish(),
|
|
11996
11786
|
thumbnail: string2().nullish(),
|
|
11997
|
-
trashedAt:
|
|
11787
|
+
trashedAt: datetime2({ offset: true }).nullish(),
|
|
11998
11788
|
viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
|
|
11999
11789
|
workspaceId: string2().nullish()
|
|
12000
11790
|
});
|
|
@@ -12008,7 +11798,7 @@ var zLibraryCollectionAddableItemsPage = strictObject({
|
|
|
12008
11798
|
});
|
|
12009
11799
|
var zLibraryCollectionMember = strictObject({
|
|
12010
11800
|
added_after_share: boolean2(),
|
|
12011
|
-
added_at:
|
|
11801
|
+
added_at: datetime2({ offset: true }),
|
|
12012
11802
|
added_by: zLibraryCollectionMemberAddedBy.nullable(),
|
|
12013
11803
|
item: zLibraryItemDto,
|
|
12014
11804
|
open_mode: _enum(["item", "pack_gem", "not_ready"]),
|
|
@@ -12022,7 +11812,7 @@ var zLibraryCollectionDetail = strictObject({
|
|
|
12022
11812
|
description: string2().nullable(),
|
|
12023
11813
|
folder_id: string2().nullable(),
|
|
12024
11814
|
members: array(zLibraryCollectionMember),
|
|
12025
|
-
modified_at:
|
|
11815
|
+
modified_at: datetime2({ offset: true }),
|
|
12026
11816
|
name: string2(),
|
|
12027
11817
|
role: _enum(["owner", "editor", "viewer"]),
|
|
12028
11818
|
shared_with_count: int().nullable(),
|
|
@@ -12051,10 +11841,10 @@ var zLibrarySearchSharedWithMe = strictObject({
|
|
|
12051
11841
|
"collection"
|
|
12052
11842
|
]),
|
|
12053
11843
|
link: boolean2(),
|
|
12054
|
-
modifiedAt:
|
|
11844
|
+
modifiedAt: datetime2({ offset: true }),
|
|
12055
11845
|
role: _enum(["editor", "commenter", "viewer"]),
|
|
12056
11846
|
senderName: string2().nullable(),
|
|
12057
|
-
sharedAt:
|
|
11847
|
+
sharedAt: datetime2({ offset: true }),
|
|
12058
11848
|
title: string2()
|
|
12059
11849
|
});
|
|
12060
11850
|
var zLibraryItemListResponse = object({
|
|
@@ -12123,6 +11913,29 @@ var zLibraryWorkspaceMoveLinkImpact = object({
|
|
|
12123
11913
|
var zLibraryWorkspaceMovePreviewRequest = object({
|
|
12124
11914
|
targetWorkspaceId: uuid2()
|
|
12125
11915
|
});
|
|
11916
|
+
var zLibraryWorkspaceMoveRefusal = object({
|
|
11917
|
+
code: _enum([
|
|
11918
|
+
"not_found",
|
|
11919
|
+
"not_destination_member",
|
|
11920
|
+
"item_not_owned",
|
|
11921
|
+
"item_trashed",
|
|
11922
|
+
"item_location_locked",
|
|
11923
|
+
"destination_folder_invalid",
|
|
11924
|
+
"library_item_name_conflict",
|
|
11925
|
+
"tree_not_owned",
|
|
11926
|
+
"trashed_descendant",
|
|
11927
|
+
"nested_shortcut",
|
|
11928
|
+
"gem_workspace_move_refused",
|
|
11929
|
+
"pending_share",
|
|
11930
|
+
"live_folder_root",
|
|
11931
|
+
"share_without_accepted_recipient",
|
|
11932
|
+
"share_audience_malformed",
|
|
11933
|
+
"share_recipient_not_destination_member",
|
|
11934
|
+
"share_ends_converge",
|
|
11935
|
+
"link_endpoint_unresolved"
|
|
11936
|
+
]),
|
|
11937
|
+
message: string2()
|
|
11938
|
+
});
|
|
12126
11939
|
var zLibraryWorkspaceMovePreviewResponse = object({
|
|
12127
11940
|
blockers: array(object({
|
|
12128
11941
|
blocker: string2(),
|
|
@@ -12133,6 +11946,7 @@ var zLibraryWorkspaceMovePreviewResponse = object({
|
|
|
12133
11946
|
}))),
|
|
12134
11947
|
itemId: string2(),
|
|
12135
11948
|
keptLinks: array(zLibraryWorkspaceMoveLinkImpact),
|
|
11949
|
+
refusal: zLibraryWorkspaceMoveRefusal.nullable(),
|
|
12136
11950
|
targetWorkspaceId: string2(),
|
|
12137
11951
|
visibilityChanges: array(object({
|
|
12138
11952
|
from: _enum(["private"]),
|
|
@@ -12155,9 +11969,14 @@ var zLinkSearchResponse = object({
|
|
|
12155
11969
|
results: array(zLinkSearchResult),
|
|
12156
11970
|
totalCount: int()
|
|
12157
11971
|
});
|
|
12158
|
-
var zLocalRuntimeHeartbeatRequest =
|
|
12159
|
-
capabilities: array(
|
|
12160
|
-
deviceId: string2().min(1).max(128)
|
|
11972
|
+
var zLocalRuntimeHeartbeatRequest = strictObject({
|
|
11973
|
+
capabilities: array(_enum(["commands", "files"])).max(2),
|
|
11974
|
+
deviceId: string2().min(1).max(128),
|
|
11975
|
+
workspaceId: uuid2()
|
|
11976
|
+
});
|
|
11977
|
+
var zLocalRuntimeHeartbeatResponse = strictObject({
|
|
11978
|
+
bindingKey: string2(),
|
|
11979
|
+
ok: literal(true)
|
|
12161
11980
|
});
|
|
12162
11981
|
var zLocalRuntimePolicyRequest = object({
|
|
12163
11982
|
approvedRoots: array(string2()).max(64).optional().default([]),
|
|
@@ -12178,6 +11997,12 @@ var zLocalRuntimePolicyResponse = object({
|
|
|
12178
11997
|
shell: string2().max(255).nullish(),
|
|
12179
11998
|
updatedAt: number2()
|
|
12180
11999
|
});
|
|
12000
|
+
var zLocalRuntimePrepareRequest = strictObject({
|
|
12001
|
+
workspaceId: uuid2()
|
|
12002
|
+
});
|
|
12003
|
+
var zLocalRuntimePrepareResponse = strictObject({
|
|
12004
|
+
localRuntimeTicket: string2()
|
|
12005
|
+
});
|
|
12181
12006
|
var zLogoutResponse = object({
|
|
12182
12007
|
message: string2()
|
|
12183
12008
|
});
|
|
@@ -12197,7 +12022,7 @@ var zMatchingInvitationResponse = object({
|
|
|
12197
12022
|
]),
|
|
12198
12023
|
authProviders: array(_enum(["email", "google", "azure"])).optional(),
|
|
12199
12024
|
email: string2(),
|
|
12200
|
-
expiresAt:
|
|
12025
|
+
expiresAt: datetime2({ offset: true }).nullish(),
|
|
12201
12026
|
inviteToken: string2(),
|
|
12202
12027
|
name: string2().nullish(),
|
|
12203
12028
|
role: string2(),
|
|
@@ -12247,7 +12072,7 @@ var zMcpConnectionOAuthStartRequest = object({
|
|
|
12247
12072
|
var zMcpConnectionOAuthStartResponse = object({
|
|
12248
12073
|
authorizationUrl: string2(),
|
|
12249
12074
|
connectionId: string2(),
|
|
12250
|
-
expiresAt:
|
|
12075
|
+
expiresAt: datetime2({ offset: true }),
|
|
12251
12076
|
message: string2(),
|
|
12252
12077
|
success: boolean2()
|
|
12253
12078
|
});
|
|
@@ -12272,14 +12097,14 @@ var zMemberCapabilityAccessRequest = object({
|
|
|
12272
12097
|
});
|
|
12273
12098
|
var zMemberType = _enum(["internal", "external"]);
|
|
12274
12099
|
var zExternalMemberResponse = object({
|
|
12275
|
-
createdAt:
|
|
12100
|
+
createdAt: datetime2({ offset: true }),
|
|
12276
12101
|
homeWorkspaceId: uuid2(),
|
|
12277
12102
|
homeWorkspaceName: string2().nullish(),
|
|
12278
12103
|
id: uuid2(),
|
|
12279
12104
|
memberType: zMemberType,
|
|
12280
12105
|
permissions: zExternalPermissions,
|
|
12281
12106
|
role: string2(),
|
|
12282
|
-
updatedAt:
|
|
12107
|
+
updatedAt: datetime2({ offset: true }),
|
|
12283
12108
|
userEmail: string2().nullish(),
|
|
12284
12109
|
userId: uuid2(),
|
|
12285
12110
|
userName: string2().nullish(),
|
|
@@ -12440,22 +12265,31 @@ var zNotificationMutationResponse = strictObject({
|
|
|
12440
12265
|
success: boolean2().optional().default(true),
|
|
12441
12266
|
updatedCount: int()
|
|
12442
12267
|
});
|
|
12443
|
-
var zNotificationPriority = _enum(["high", "default", "low", "min"]);
|
|
12444
12268
|
var zNotificationPreference = strictObject({
|
|
12445
12269
|
channel: string2(),
|
|
12446
|
-
createdAt:
|
|
12270
|
+
createdAt: datetime2({ offset: true }).nullish(),
|
|
12447
12271
|
enabled: boolean2().optional().default(true),
|
|
12448
12272
|
id: string2().nullish(),
|
|
12449
|
-
importance: zNotificationPriority.optional(),
|
|
12450
12273
|
toastEnabled: boolean2().optional().default(true),
|
|
12451
|
-
updatedAt:
|
|
12274
|
+
updatedAt: datetime2({ offset: true }).nullish(),
|
|
12452
12275
|
userId: string2(),
|
|
12453
12276
|
workspaceId: string2()
|
|
12454
12277
|
});
|
|
12455
12278
|
var zNotificationPreferenceUpdate = strictObject({
|
|
12456
|
-
channel:
|
|
12279
|
+
channel: _enum([
|
|
12280
|
+
"approvals",
|
|
12281
|
+
"sharing",
|
|
12282
|
+
"page_views",
|
|
12283
|
+
"connection_approvals",
|
|
12284
|
+
"connection_approval_results",
|
|
12285
|
+
"integration_health",
|
|
12286
|
+
"billing",
|
|
12287
|
+
"automation_runs",
|
|
12288
|
+
"workspace_access",
|
|
12289
|
+
"library_activity",
|
|
12290
|
+
"automation_oversight"
|
|
12291
|
+
]),
|
|
12457
12292
|
enabled: boolean2().optional().default(true),
|
|
12458
|
-
importance: zNotificationPriority.optional(),
|
|
12459
12293
|
toastEnabled: boolean2().optional().default(true)
|
|
12460
12294
|
});
|
|
12461
12295
|
var zNotificationPreferenceUpdateRequest = strictObject({
|
|
@@ -12465,10 +12299,11 @@ var zNotificationPreferencesResponse = strictObject({
|
|
|
12465
12299
|
preferences: array(zNotificationPreference),
|
|
12466
12300
|
success: boolean2().optional().default(true)
|
|
12467
12301
|
});
|
|
12302
|
+
var zNotificationPriority = _enum(["high", "default", "low", "min"]);
|
|
12468
12303
|
var zNotificationStatus = _enum(["unread", "read", "dismissed"]);
|
|
12469
12304
|
var zNotificationClearRequest = strictObject({
|
|
12470
12305
|
notificationIds: array(string2()).nullish(),
|
|
12471
|
-
olderThan:
|
|
12306
|
+
olderThan: datetime2({ offset: true }).nullish(),
|
|
12472
12307
|
status: zNotificationStatus.optional()
|
|
12473
12308
|
});
|
|
12474
12309
|
var zNotificationItem = strictObject({
|
|
@@ -12478,20 +12313,20 @@ var zNotificationItem = strictObject({
|
|
|
12478
12313
|
name: string2().nullable()
|
|
12479
12314
|
}).nullable(),
|
|
12480
12315
|
channel: string2(),
|
|
12481
|
-
createdAt:
|
|
12316
|
+
createdAt: datetime2({ offset: true }),
|
|
12482
12317
|
dedupeKey: string2(),
|
|
12483
|
-
dismissedAt:
|
|
12484
|
-
expiresAt:
|
|
12318
|
+
dismissedAt: datetime2({ offset: true }).nullish(),
|
|
12319
|
+
expiresAt: datetime2({ offset: true }).nullish(),
|
|
12485
12320
|
id: string2(),
|
|
12486
12321
|
payload: record(string2(), unknown()).optional(),
|
|
12487
12322
|
priority: zNotificationPriority,
|
|
12488
|
-
readAt:
|
|
12323
|
+
readAt: datetime2({ offset: true }).nullish(),
|
|
12489
12324
|
recipientUserId: string2(),
|
|
12490
12325
|
sourceId: string2(),
|
|
12491
12326
|
sourceType: string2(),
|
|
12492
12327
|
status: zNotificationStatus,
|
|
12493
12328
|
targetUrl: string2().nullish(),
|
|
12494
|
-
updatedAt:
|
|
12329
|
+
updatedAt: datetime2({ offset: true }),
|
|
12495
12330
|
workspaceId: string2().nullable()
|
|
12496
12331
|
});
|
|
12497
12332
|
var zNotificationItemResponse = strictObject({
|
|
@@ -12506,13 +12341,13 @@ var zNotificationType = _enum([
|
|
|
12506
12341
|
"content_updated"
|
|
12507
12342
|
]);
|
|
12508
12343
|
var zNotificationResponse = object({
|
|
12509
|
-
createdAt:
|
|
12344
|
+
createdAt: datetime2({ offset: true }),
|
|
12510
12345
|
id: uuid2(),
|
|
12511
12346
|
isRead: boolean2(),
|
|
12512
12347
|
message: string2(),
|
|
12513
12348
|
metadata: record(string2(), unknown()),
|
|
12514
12349
|
notificationType: zNotificationType,
|
|
12515
|
-
readAt:
|
|
12350
|
+
readAt: datetime2({ offset: true }).nullable(),
|
|
12516
12351
|
recipientUserId: uuid2(),
|
|
12517
12352
|
sharedByName: string2().nullish(),
|
|
12518
12353
|
sharedContentId: uuid2(),
|
|
@@ -12936,11 +12771,12 @@ var zCreateItemShareRequest = strictObject({
|
|
|
12936
12771
|
confirm_used_items: array(uuid2()).max(500).optional(),
|
|
12937
12772
|
consents: array(zItemShareConsentRequest).max(100).optional(),
|
|
12938
12773
|
download: boolean2().optional(),
|
|
12939
|
-
expires_at:
|
|
12774
|
+
expires_at: datetime2({ offset: true }).nullish(),
|
|
12940
12775
|
gate: zItemShareGateRequest.optional(),
|
|
12941
12776
|
kind: _enum(["editor", "commenter", "viewer"]).optional(),
|
|
12942
12777
|
message: string2().nullish(),
|
|
12943
12778
|
name: string2().min(1).max(200).optional(),
|
|
12779
|
+
needed_by: string2().nullish(),
|
|
12944
12780
|
notify: boolean2().optional(),
|
|
12945
12781
|
notify_on_open: _enum(["off", "first_view_only", "every_view"]).optional(),
|
|
12946
12782
|
pack_consents: array(zPackConsentChoice).max(200).optional(),
|
|
@@ -12950,6 +12786,9 @@ var zCreateItemShareRequest = strictObject({
|
|
|
12950
12786
|
version_id: uuid2().nullish()
|
|
12951
12787
|
}).optional()
|
|
12952
12788
|
});
|
|
12789
|
+
var zCreateItemSharesRequest = zCreateItemShareRequest.and(object({
|
|
12790
|
+
item_ids: array(uuid2()).min(1).max(100)
|
|
12791
|
+
}));
|
|
12953
12792
|
var zPackGemCapability = object({
|
|
12954
12793
|
caller_owns: boolean2(),
|
|
12955
12794
|
consented: boolean2(),
|
|
@@ -13096,13 +12935,13 @@ var zCreatePersonaRequest = object({
|
|
|
13096
12935
|
var zPersona = object({
|
|
13097
12936
|
access: zPersonaAccess,
|
|
13098
12937
|
behavior: zPersonaBehavior,
|
|
13099
|
-
createdAt:
|
|
12938
|
+
createdAt: datetime2({ offset: true }),
|
|
13100
12939
|
creatorId: uuid2(),
|
|
13101
12940
|
folderId: uuid2().nullish(),
|
|
13102
12941
|
id: union([uuid2(), _enum(["00000000-0000-0000-0000-000000000001"])]),
|
|
13103
12942
|
identity: zPersonaIdentity,
|
|
13104
12943
|
knowledge: zPersonaKnowledge,
|
|
13105
|
-
lastUsedAt:
|
|
12944
|
+
lastUsedAt: datetime2({ offset: true }).nullish(),
|
|
13106
12945
|
lockAccess: boolean2().optional().default(false),
|
|
13107
12946
|
lockBehavior: boolean2().optional().default(false),
|
|
13108
12947
|
lockIdentity: boolean2().optional().default(false),
|
|
@@ -13111,7 +12950,7 @@ var zPersona = object({
|
|
|
13111
12950
|
slug: string2().optional().default(""),
|
|
13112
12951
|
status: string2().regex(/^(draft|active|archived)$/),
|
|
13113
12952
|
tools: record(string2(), unknown()).optional().default({}),
|
|
13114
|
-
updatedAt:
|
|
12953
|
+
updatedAt: datetime2({ offset: true }),
|
|
13115
12954
|
version: int().optional().default(1),
|
|
13116
12955
|
workspaceId: uuid2().nullish()
|
|
13117
12956
|
});
|
|
@@ -13516,6 +13355,7 @@ var zPublishedArtifactSnapshot = object({
|
|
|
13516
13355
|
title: string2()
|
|
13517
13356
|
}).nullable();
|
|
13518
13357
|
var zPublishedPageGateRequiredResponse = object({
|
|
13358
|
+
accessEndsAt: string2().nullable(),
|
|
13519
13359
|
canonicalPath: string2().nullish(),
|
|
13520
13360
|
canonicalUrl: string2().nullish(),
|
|
13521
13361
|
emailGateEnabled: boolean2().optional().default(false),
|
|
@@ -13544,6 +13384,7 @@ var zPublishedPagePreviewResponse = object({
|
|
|
13544
13384
|
title: string2()
|
|
13545
13385
|
});
|
|
13546
13386
|
var zPublishedPagePublicResponse = object({
|
|
13387
|
+
accessEndsAt: string2().nullable(),
|
|
13547
13388
|
appTarget: object({
|
|
13548
13389
|
buildId: string2(),
|
|
13549
13390
|
capabilityManifestHash: string2().nullish(),
|
|
@@ -13562,6 +13403,7 @@ var zPublishedPagePublicResponse = object({
|
|
|
13562
13403
|
}).nullish(),
|
|
13563
13404
|
artifact: zPublishedArtifact,
|
|
13564
13405
|
buildState: record(string2(), unknown()).nullish(),
|
|
13406
|
+
canLeave: boolean2().optional(),
|
|
13565
13407
|
canonicalPath: string2().nullish(),
|
|
13566
13408
|
canonicalUrl: string2().nullish(),
|
|
13567
13409
|
homeScreenLaunchPath: string2().nullish(),
|
|
@@ -13570,6 +13412,10 @@ var zPublishedPagePublicResponse = object({
|
|
|
13570
13412
|
title: string2(),
|
|
13571
13413
|
viewEventId: string2().nullish()
|
|
13572
13414
|
});
|
|
13415
|
+
var zPublishedReaderLeaveCodeRequest = strictObject({});
|
|
13416
|
+
var zPublishedReaderLeaveRequest = strictObject({
|
|
13417
|
+
code: string2().regex(/^[0-9]{6}$\/u/).optional()
|
|
13418
|
+
});
|
|
13573
13419
|
var zQuickScheduleCreateRequest = strictObject({
|
|
13574
13420
|
description: string2().nullish(),
|
|
13575
13421
|
folderId: string2().nullish(),
|
|
@@ -13626,6 +13472,7 @@ var zReceivedCardThumbnail = union([
|
|
|
13626
13472
|
})
|
|
13627
13473
|
]);
|
|
13628
13474
|
var zReceivedCard = object({
|
|
13475
|
+
access_ends_at: string2().nullable(),
|
|
13629
13476
|
can_place: boolean2(),
|
|
13630
13477
|
copy: _enum(["allowed", "turned_off"]).nullable(),
|
|
13631
13478
|
data_mode: _enum(["live", "snapshot"]).nullable(),
|
|
@@ -13661,11 +13508,19 @@ var zReceivedCard = object({
|
|
|
13661
13508
|
workspace_id: string2()
|
|
13662
13509
|
}),
|
|
13663
13510
|
pinned_here: boolean2(),
|
|
13511
|
+
place_only_in: array(object({
|
|
13512
|
+
workspace_id: string2(),
|
|
13513
|
+
workspace_name: string2()
|
|
13514
|
+
})).nullable(),
|
|
13664
13515
|
placement: object({
|
|
13665
13516
|
mode: _enum(["item_home", "shortcut", "none"]),
|
|
13666
13517
|
workspace_id: string2().nullable(),
|
|
13667
13518
|
workspace_name: string2().nullable()
|
|
13668
13519
|
}),
|
|
13520
|
+
remove_keeps_access_in: object({
|
|
13521
|
+
workspace_id: string2(),
|
|
13522
|
+
workspace_name: string2()
|
|
13523
|
+
}).nullable(),
|
|
13669
13524
|
role: _enum(["editor", "commenter", "viewer"]),
|
|
13670
13525
|
sender: zReceivedCardPerson,
|
|
13671
13526
|
senders_count: int(),
|
|
@@ -13697,6 +13552,7 @@ var zReceivedCardWay = object({
|
|
|
13697
13552
|
state: _enum(["open", "verify_email", "other_login", "expired"])
|
|
13698
13553
|
});
|
|
13699
13554
|
var zReceivedCardDetail = object({
|
|
13555
|
+
access_ends_at: string2().nullable(),
|
|
13700
13556
|
can_place: boolean2(),
|
|
13701
13557
|
copy: _enum(["allowed", "turned_off"]).nullable(),
|
|
13702
13558
|
data_mode: _enum(["live", "snapshot"]).nullable(),
|
|
@@ -13732,11 +13588,19 @@ var zReceivedCardDetail = object({
|
|
|
13732
13588
|
workspace_id: string2()
|
|
13733
13589
|
}),
|
|
13734
13590
|
pinned_here: boolean2(),
|
|
13591
|
+
place_only_in: array(object({
|
|
13592
|
+
workspace_id: string2(),
|
|
13593
|
+
workspace_name: string2()
|
|
13594
|
+
})).nullable(),
|
|
13735
13595
|
placement: object({
|
|
13736
13596
|
mode: _enum(["item_home", "shortcut", "none"]),
|
|
13737
13597
|
workspace_id: string2().nullable(),
|
|
13738
13598
|
workspace_name: string2().nullable()
|
|
13739
13599
|
}),
|
|
13600
|
+
remove_keeps_access_in: object({
|
|
13601
|
+
workspace_id: string2(),
|
|
13602
|
+
workspace_name: string2()
|
|
13603
|
+
}).nullable(),
|
|
13740
13604
|
role: _enum(["editor", "commenter", "viewer"]),
|
|
13741
13605
|
rows: array(zReceivedCardWay),
|
|
13742
13606
|
sender: zReceivedCardPerson,
|
|
@@ -13796,19 +13660,19 @@ var zRecipientSpec = object({
|
|
|
13796
13660
|
});
|
|
13797
13661
|
var zRecipientStatus = _enum(["pending", "accepted", "declined", "revoked"]);
|
|
13798
13662
|
var zRecipientResponse = object({
|
|
13799
|
-
acceptedAt:
|
|
13663
|
+
acceptedAt: datetime2({ offset: true }).nullable(),
|
|
13800
13664
|
accessCount: int(),
|
|
13801
|
-
createdAt:
|
|
13802
|
-
declinedAt:
|
|
13665
|
+
createdAt: datetime2({ offset: true }),
|
|
13666
|
+
declinedAt: datetime2({ offset: true }).nullable(),
|
|
13803
13667
|
id: uuid2(),
|
|
13804
|
-
lastAccessedAt:
|
|
13668
|
+
lastAccessedAt: datetime2({ offset: true }).nullable(),
|
|
13805
13669
|
recipientEmail: string2().nullish(),
|
|
13806
13670
|
recipientName: string2().nullish(),
|
|
13807
13671
|
recipientRole: zRecipientRole.nullish(),
|
|
13808
13672
|
recipientUserId: uuid2(),
|
|
13809
13673
|
sharedContentId: uuid2(),
|
|
13810
13674
|
status: zRecipientStatus,
|
|
13811
|
-
updatedAt:
|
|
13675
|
+
updatedAt: datetime2({ offset: true }),
|
|
13812
13676
|
workspaceId: uuid2()
|
|
13813
13677
|
});
|
|
13814
13678
|
var zRecipientShareResult = object({
|
|
@@ -13981,34 +13845,357 @@ var zRunCancelResponse = object({
|
|
|
13981
13845
|
runId: string2(),
|
|
13982
13846
|
turnId: string2()
|
|
13983
13847
|
});
|
|
13848
|
+
var zRunLocalToolClaimRequest = strictObject({
|
|
13849
|
+
claimToken: string2().regex(/^[A-Za-z0-9_-]{32,256}$/),
|
|
13850
|
+
turnId: uuid2()
|
|
13851
|
+
});
|
|
13852
|
+
var zRunLocalToolClaimResponse = union([
|
|
13853
|
+
strictObject({
|
|
13854
|
+
retryAfterMs: int().gt(0),
|
|
13855
|
+
status: _enum(["pending"])
|
|
13856
|
+
}),
|
|
13857
|
+
strictObject({
|
|
13858
|
+
arguments: union([
|
|
13859
|
+
string2(),
|
|
13860
|
+
number2(),
|
|
13861
|
+
boolean2(),
|
|
13862
|
+
array(unknown()),
|
|
13863
|
+
record(string2(), unknown())
|
|
13864
|
+
]).nullable(),
|
|
13865
|
+
bindingKey: string2(),
|
|
13866
|
+
deviceId: string2(),
|
|
13867
|
+
resultMaxBytes: int().gt(0),
|
|
13868
|
+
runId: uuid2(),
|
|
13869
|
+
status: _enum(["claimed"]),
|
|
13870
|
+
threadId: uuid2(),
|
|
13871
|
+
toolCallId: string2(),
|
|
13872
|
+
toolName: _enum([
|
|
13873
|
+
"local_exec_command",
|
|
13874
|
+
"local_write_stdin",
|
|
13875
|
+
"local_read_terminal",
|
|
13876
|
+
"local_read_file",
|
|
13877
|
+
"local_list_dir",
|
|
13878
|
+
"local_search",
|
|
13879
|
+
"local_apply_patch",
|
|
13880
|
+
"local_view_image"
|
|
13881
|
+
]),
|
|
13882
|
+
turnId: uuid2(),
|
|
13883
|
+
verifiedUserId: uuid2(),
|
|
13884
|
+
workspaceId: uuid2()
|
|
13885
|
+
})
|
|
13886
|
+
]);
|
|
13887
|
+
var zRunLocalToolResultSubmitRequest = strictObject({
|
|
13888
|
+
claimToken: string2().regex(/^[A-Za-z0-9_-]{32,256}$/),
|
|
13889
|
+
durationMs: int().gte(0),
|
|
13890
|
+
isError: boolean2(),
|
|
13891
|
+
resultJson: union([
|
|
13892
|
+
string2(),
|
|
13893
|
+
number2(),
|
|
13894
|
+
boolean2(),
|
|
13895
|
+
array(unknown()),
|
|
13896
|
+
record(string2(), unknown())
|
|
13897
|
+
]).nullable(),
|
|
13898
|
+
turnId: uuid2()
|
|
13899
|
+
});
|
|
13900
|
+
var zRunLocalToolResultSubmitResponse = strictObject({
|
|
13901
|
+
acceptedAtMs: int().gte(0),
|
|
13902
|
+
alreadySubmitted: boolean2(),
|
|
13903
|
+
protocol: _enum(["uru.thread.v1"]),
|
|
13904
|
+
runId: uuid2(),
|
|
13905
|
+
toolCallId: string2()
|
|
13906
|
+
});
|
|
13984
13907
|
var zRunQuestionAnswerRequest = object({
|
|
13985
13908
|
answers: array(union([string2().max(16000), _null3()])).min(1).max(12),
|
|
13986
13909
|
turnId: uuid2()
|
|
13987
13910
|
});
|
|
13988
|
-
var zRunQuestionAnswerResponse = object({
|
|
13989
|
-
alreadyAnswered: boolean2(),
|
|
13990
|
-
answerSource: _enum(["user", "timeout", "declined", "run_cancelled"]),
|
|
13991
|
-
answerText: string2().nullish(),
|
|
13992
|
-
answeredAtMs: int(),
|
|
13993
|
-
answeredByUserId: uuid2().nullish(),
|
|
13994
|
-
questionId: uuid2()
|
|
13911
|
+
var zRunQuestionAnswerResponse = object({
|
|
13912
|
+
alreadyAnswered: boolean2(),
|
|
13913
|
+
answerSource: _enum(["user", "timeout", "declined", "run_cancelled"]),
|
|
13914
|
+
answerText: string2().nullish(),
|
|
13915
|
+
answeredAtMs: int(),
|
|
13916
|
+
answeredByUserId: uuid2().nullish(),
|
|
13917
|
+
questionId: uuid2()
|
|
13918
|
+
});
|
|
13919
|
+
var zSaveGemVersionRequest = strictObject({
|
|
13920
|
+
idempotencyKey: string2().min(1).max(200).optional(),
|
|
13921
|
+
message: string2().max(2000).nullish(),
|
|
13922
|
+
name: string2().min(1).max(200).nullish(),
|
|
13923
|
+
sourceRevisionId: uuid2().optional(),
|
|
13924
|
+
tags: array(string2()).optional().default([])
|
|
13925
|
+
});
|
|
13926
|
+
var zSaveGemVersionResponse = strictObject({
|
|
13927
|
+
build: zGemVersionBuildStatus,
|
|
13928
|
+
sharesChanged: literal(false),
|
|
13929
|
+
version: zGemVersion
|
|
13930
|
+
});
|
|
13931
|
+
var zSearchItemSharePeopleRequest = strictObject({
|
|
13932
|
+
q: string2().min(1).max(200)
|
|
13933
|
+
});
|
|
13934
|
+
var zSetEmailPreferenceRequest = strictObject({
|
|
13935
|
+
enabled: boolean2()
|
|
13936
|
+
});
|
|
13937
|
+
var zSetItemShareConsentsRequest = strictObject({
|
|
13938
|
+
artifact_id: uuid2().optional(),
|
|
13939
|
+
grant: array(zItemShareConsentRequest).max(100).optional().default([]),
|
|
13940
|
+
revoke: array(zItemShareConsentRequest).max(100).optional().default([])
|
|
13941
|
+
});
|
|
13942
|
+
var zShareAccessEnd = object({
|
|
13943
|
+
at: string2().nullable(),
|
|
13944
|
+
by_email: string2().nullable(),
|
|
13945
|
+
reason: _enum(["left", "revoked"])
|
|
13946
|
+
});
|
|
13947
|
+
var zContactSharesAnswer = object({
|
|
13948
|
+
rows: array(object({
|
|
13949
|
+
access_end: zShareAccessEnd.nullish(),
|
|
13950
|
+
can_manage: boolean2(),
|
|
13951
|
+
email: string2(),
|
|
13952
|
+
ends_at: string2().nullable(),
|
|
13953
|
+
gate: _enum(["none", "email_otp", "passcode"]).nullable(),
|
|
13954
|
+
item: zContactItemRef,
|
|
13955
|
+
last_opened_at: string2().nullable(),
|
|
13956
|
+
open_count: int().nullable(),
|
|
13957
|
+
recipient_id: uuid2(),
|
|
13958
|
+
role: _enum(["editor", "commenter", "viewer"]),
|
|
13959
|
+
seconds: int().nullable(),
|
|
13960
|
+
share_id: uuid2(),
|
|
13961
|
+
shared_at: string2(),
|
|
13962
|
+
state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
|
|
13963
|
+
tracked_from_creation: boolean2(),
|
|
13964
|
+
tracked_since: string2()
|
|
13965
|
+
}))
|
|
13966
|
+
});
|
|
13967
|
+
var zDistributionItemResults = object({
|
|
13968
|
+
access: _enum(["ok", "trashed", "read_only"]),
|
|
13969
|
+
activity: array(zDistributionActivity),
|
|
13970
|
+
by_child: array(object({
|
|
13971
|
+
item: zDistributionItemRef,
|
|
13972
|
+
opens: int(),
|
|
13973
|
+
people: int()
|
|
13974
|
+
})),
|
|
13975
|
+
by_company: array(object({
|
|
13976
|
+
company: zDistributionCompanyRef.nullable(),
|
|
13977
|
+
not_opened: array(zDistributionPerson),
|
|
13978
|
+
opened: array(zDistributionPerson)
|
|
13979
|
+
})),
|
|
13980
|
+
by_member: array(object({
|
|
13981
|
+
added_at: string2(),
|
|
13982
|
+
item: zDistributionItemRef,
|
|
13983
|
+
opened_by: int(),
|
|
13984
|
+
reached: int()
|
|
13985
|
+
})),
|
|
13986
|
+
by_version: array(object({
|
|
13987
|
+
opens: int(),
|
|
13988
|
+
people: int(),
|
|
13989
|
+
released_at: string2(),
|
|
13990
|
+
version_id: uuid2(),
|
|
13991
|
+
version_number: int()
|
|
13992
|
+
})),
|
|
13993
|
+
can_manage_sharing: boolean2(),
|
|
13994
|
+
end_date: string2().nullable(),
|
|
13995
|
+
item: zDistributionItemRef,
|
|
13996
|
+
latest_version: int().nullable(),
|
|
13997
|
+
marks: array(zDistributionMark),
|
|
13998
|
+
needed_by: string2().nullable(),
|
|
13999
|
+
owner: zDistributionItemOwner.nullable(),
|
|
14000
|
+
people: array(object({
|
|
14001
|
+
access_end: zShareAccessEnd.nullish(),
|
|
14002
|
+
end_date: string2().nullable(),
|
|
14003
|
+
first_opened_at: string2().nullish(),
|
|
14004
|
+
gate: _enum(["none", "email_otp", "passcode"]).nullable(),
|
|
14005
|
+
last_opened_at: string2().nullish(),
|
|
14006
|
+
needed_by: string2().nullable(),
|
|
14007
|
+
open_count: int().optional(),
|
|
14008
|
+
person: zDistributionPerson,
|
|
14009
|
+
recipient_id: uuid2(),
|
|
14010
|
+
role: _enum(["editor", "commenter", "viewer"]),
|
|
14011
|
+
row_version: string2().nullable(),
|
|
14012
|
+
seconds: int().optional(),
|
|
14013
|
+
share_id: uuid2(),
|
|
14014
|
+
shared_at: string2(),
|
|
14015
|
+
state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
|
|
14016
|
+
team: boolean2(),
|
|
14017
|
+
tracked_from_creation: boolean2(),
|
|
14018
|
+
tracked_since: string2()
|
|
14019
|
+
})),
|
|
14020
|
+
people_limit: int(),
|
|
14021
|
+
people_offset: int(),
|
|
14022
|
+
people_total: int(),
|
|
14023
|
+
pin_count: int(),
|
|
14024
|
+
preview: object({
|
|
14025
|
+
mime_type: string2().nullable(),
|
|
14026
|
+
resource_id: uuid2().nullable()
|
|
14027
|
+
}),
|
|
14028
|
+
series: array(zDistributionSeriesDay),
|
|
14029
|
+
stats: object({
|
|
14030
|
+
average_seconds_per_open: int(),
|
|
14031
|
+
came_back: int(),
|
|
14032
|
+
opened: int(),
|
|
14033
|
+
reached: int(),
|
|
14034
|
+
seconds: int()
|
|
14035
|
+
}),
|
|
14036
|
+
team_count: int(),
|
|
14037
|
+
through_packs: array(object({
|
|
14038
|
+
opens: int(),
|
|
14039
|
+
pack: zDistributionItemRef,
|
|
14040
|
+
people: int()
|
|
14041
|
+
})),
|
|
14042
|
+
unknown_opens: int(),
|
|
14043
|
+
unknown_opens_capped: boolean2()
|
|
14044
|
+
});
|
|
14045
|
+
var zDistributionItemResultsAnswer = union([
|
|
14046
|
+
zDistributionItemResults,
|
|
14047
|
+
zDistributionItemGone
|
|
14048
|
+
]);
|
|
14049
|
+
var zItemShareRecipient = object({
|
|
14050
|
+
access_end: zShareAccessEnd.nullish(),
|
|
14051
|
+
added_by_you: boolean2(),
|
|
14052
|
+
contact: object({
|
|
14053
|
+
id: string2(),
|
|
14054
|
+
name: string2().nullable()
|
|
14055
|
+
}).nullish(),
|
|
14056
|
+
created_at: string2(),
|
|
14057
|
+
display_name: string2().nullable(),
|
|
14058
|
+
email: string2(),
|
|
14059
|
+
email_state: _enum(["queued", "sent", "not_sent", "none"]).optional(),
|
|
14060
|
+
first_opened_at: string2().nullish(),
|
|
14061
|
+
invited_by_recipient_id: string2().nullable(),
|
|
14062
|
+
is_team: boolean2().optional(),
|
|
14063
|
+
last_opened_at: string2().nullish(),
|
|
14064
|
+
link_url: string2().nullable(),
|
|
14065
|
+
not_sent_reason: _enum(["test_environment"]).optional(),
|
|
14066
|
+
open_count: int().optional(),
|
|
14067
|
+
origin: _enum(["invited", "general_access", "reshared", "migrated", "owner"]),
|
|
14068
|
+
recipient_id: string2(),
|
|
14069
|
+
revoked_at: string2().nullable(),
|
|
14070
|
+
role: _enum(["editor", "commenter", "viewer"]),
|
|
14071
|
+
share_id: string2(),
|
|
14072
|
+
state: _enum(["active", "waiting_sign_up", "expired", "revoked"]),
|
|
14073
|
+
tracked_from_creation: boolean2().optional(),
|
|
14074
|
+
tracked_since: string2().optional()
|
|
14075
|
+
});
|
|
14076
|
+
var zItemShare = object({
|
|
14077
|
+
audiences: array(zItemShareAudience),
|
|
14078
|
+
can_manage: boolean2(),
|
|
14079
|
+
created_at: string2(),
|
|
14080
|
+
created_by_you: boolean2(),
|
|
14081
|
+
expires_at: string2().nullable(),
|
|
14082
|
+
gem: zItemShareGemSettings.nullable(),
|
|
14083
|
+
general_access_count: int(),
|
|
14084
|
+
has_named_recipients: boolean2(),
|
|
14085
|
+
id: string2(),
|
|
14086
|
+
item_id: string2(),
|
|
14087
|
+
item_kind: _enum([
|
|
14088
|
+
"artifact",
|
|
14089
|
+
"file",
|
|
14090
|
+
"folder",
|
|
14091
|
+
"dataset",
|
|
14092
|
+
"prompt",
|
|
14093
|
+
"context",
|
|
14094
|
+
"automation",
|
|
14095
|
+
"persona",
|
|
14096
|
+
"collection"
|
|
14097
|
+
]),
|
|
14098
|
+
kind: _enum(["editor", "commenter", "viewer"]),
|
|
14099
|
+
link: zItemShareLink.nullable(),
|
|
14100
|
+
message: string2().nullable(),
|
|
14101
|
+
name: string2(),
|
|
14102
|
+
needed_by: string2().nullable(),
|
|
14103
|
+
open_count: int().optional(),
|
|
14104
|
+
people: array(zItemShareRecipient),
|
|
14105
|
+
recipient_count: int(),
|
|
14106
|
+
revoked_at: string2().nullable(),
|
|
14107
|
+
status: _enum(["active", "revoked"]),
|
|
14108
|
+
tracked_from_creation: boolean2(),
|
|
14109
|
+
tracked_since: string2(),
|
|
14110
|
+
updated_at: string2()
|
|
14111
|
+
});
|
|
14112
|
+
var zItemShareAnswer = object({
|
|
14113
|
+
item_id: string2(),
|
|
14114
|
+
next_cursor: string2().nullable(),
|
|
14115
|
+
share: zItemShare
|
|
14116
|
+
});
|
|
14117
|
+
var zItemShareOwner = object({
|
|
14118
|
+
email: string2().nullable(),
|
|
14119
|
+
is_you: boolean2(),
|
|
14120
|
+
link: union([
|
|
14121
|
+
object({
|
|
14122
|
+
share: zItemShare,
|
|
14123
|
+
state: _enum(["ready"])
|
|
14124
|
+
}),
|
|
14125
|
+
object({
|
|
14126
|
+
state: _enum(["missing"])
|
|
14127
|
+
}),
|
|
14128
|
+
object({
|
|
14129
|
+
reason: _enum(["no_version", "serving_unavailable"]),
|
|
14130
|
+
state: _enum(["unavailable"])
|
|
14131
|
+
})
|
|
14132
|
+
]).nullable(),
|
|
14133
|
+
name: string2().nullable()
|
|
14134
|
+
});
|
|
14135
|
+
var zItemShareOwnerLink = union([
|
|
14136
|
+
object({
|
|
14137
|
+
share: zItemShare,
|
|
14138
|
+
state: _enum(["ready"])
|
|
14139
|
+
}),
|
|
14140
|
+
object({
|
|
14141
|
+
state: _enum(["missing"])
|
|
14142
|
+
}),
|
|
14143
|
+
object({
|
|
14144
|
+
reason: _enum(["no_version", "serving_unavailable"]),
|
|
14145
|
+
state: _enum(["unavailable"])
|
|
14146
|
+
})
|
|
14147
|
+
]);
|
|
14148
|
+
var zItemShareOwnerLinkAnswer = object({
|
|
14149
|
+
item_id: string2(),
|
|
14150
|
+
link: zItemShareOwnerLink
|
|
13995
14151
|
});
|
|
13996
|
-
var
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14152
|
+
var zItemSharePeopleAnswer = object({
|
|
14153
|
+
emailed: int(),
|
|
14154
|
+
item_id: string2(),
|
|
14155
|
+
next_cursor: string2().nullable(),
|
|
14156
|
+
people: array(object({
|
|
14157
|
+
email: string2(),
|
|
14158
|
+
email_expected: _enum(["send", "test_environment", "none"]),
|
|
14159
|
+
link_url: string2().nullable(),
|
|
14160
|
+
recipient_id: string2(),
|
|
14161
|
+
role: _enum(["editor", "commenter", "viewer"]),
|
|
14162
|
+
status: _enum(["added", "already"]),
|
|
14163
|
+
user_id: string2().optional()
|
|
14164
|
+
})),
|
|
14165
|
+
send_allowance_remaining: int(),
|
|
14166
|
+
share: zItemShare,
|
|
14167
|
+
warning: _enum(["outside_sees_folder"]).nullable()
|
|
14002
14168
|
});
|
|
14003
|
-
var
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14169
|
+
var zItemShareBatchAnswer = object({
|
|
14170
|
+
failed: int(),
|
|
14171
|
+
items: array(union([
|
|
14172
|
+
object({
|
|
14173
|
+
answer: zItemSharePeopleAnswer,
|
|
14174
|
+
item_id: uuid2(),
|
|
14175
|
+
status: _enum(["shared"])
|
|
14176
|
+
}),
|
|
14177
|
+
object({
|
|
14178
|
+
error: object({
|
|
14179
|
+
code: string2(),
|
|
14180
|
+
details: unknown().optional(),
|
|
14181
|
+
message: string2(),
|
|
14182
|
+
retryable: boolean2(),
|
|
14183
|
+
status: int()
|
|
14184
|
+
}),
|
|
14185
|
+
item_id: uuid2(),
|
|
14186
|
+
status: _enum(["failed"])
|
|
14187
|
+
})
|
|
14188
|
+
])),
|
|
14189
|
+
shared: int()
|
|
14007
14190
|
});
|
|
14008
|
-
var
|
|
14009
|
-
|
|
14191
|
+
var zItemShareUpdateAnswer = object({
|
|
14192
|
+
item_id: string2(),
|
|
14193
|
+
link_turned_off: boolean2(),
|
|
14194
|
+
next_cursor: string2().nullable(),
|
|
14195
|
+
share: zItemShare
|
|
14010
14196
|
});
|
|
14011
14197
|
var zSentShareRow = object({
|
|
14198
|
+
access_end: zShareAccessEnd.nullish(),
|
|
14012
14199
|
audience: union([
|
|
14013
14200
|
object({
|
|
14014
14201
|
contact: object({
|
|
@@ -14082,13 +14269,29 @@ var zSentSharesPage = object({
|
|
|
14082
14269
|
next_cursor: string2().nullable(),
|
|
14083
14270
|
rows: array(zSentShareRow)
|
|
14084
14271
|
});
|
|
14085
|
-
var
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
|
|
14272
|
+
var zShareAccessRequest = strictObject({
|
|
14273
|
+
answered_at: string2().nullable(),
|
|
14274
|
+
answered_by_user_id: uuid2().nullable(),
|
|
14275
|
+
item_id: uuid2(),
|
|
14276
|
+
item_kind: _enum([
|
|
14277
|
+
"artifact",
|
|
14278
|
+
"file",
|
|
14279
|
+
"folder",
|
|
14280
|
+
"dataset",
|
|
14281
|
+
"prompt",
|
|
14282
|
+
"context",
|
|
14283
|
+
"automation",
|
|
14284
|
+
"persona",
|
|
14285
|
+
"collection"
|
|
14286
|
+
]),
|
|
14287
|
+
item_title: string2(),
|
|
14288
|
+
request_id: uuid2(),
|
|
14289
|
+
requested_at: string2(),
|
|
14290
|
+
requester_email: string2(),
|
|
14291
|
+
retry_at: string2().nullable(),
|
|
14292
|
+
share_id: uuid2(),
|
|
14293
|
+
status: _enum(["pending", "approved", "not_now"]),
|
|
14294
|
+
workspace_id: uuid2()
|
|
14092
14295
|
});
|
|
14093
14296
|
var zShareCounts = object({
|
|
14094
14297
|
received_needs_you: int(),
|
|
@@ -14350,6 +14553,8 @@ var zSharePageOpenTouchRequest = strictObject({
|
|
|
14350
14553
|
event_id: uuid2()
|
|
14351
14554
|
});
|
|
14352
14555
|
var zSharePageResolveAnswer = object({
|
|
14556
|
+
access_end_reason: _enum(["left", "revoked"]).nullable(),
|
|
14557
|
+
access_ends_at: string2().nullable(),
|
|
14353
14558
|
can_create_account: boolean2(),
|
|
14354
14559
|
gate: _enum(["none", "email_otp", "passcode"]).nullable(),
|
|
14355
14560
|
kind: _enum([
|
|
@@ -14467,12 +14672,26 @@ var zShareAudiencePeoplePage = object({
|
|
|
14467
14672
|
next_cursor: string2().nullable(),
|
|
14468
14673
|
people: array(zSharePerson)
|
|
14469
14674
|
});
|
|
14675
|
+
var zShareReaderLeaveAnswer = strictObject({
|
|
14676
|
+
code_required: boolean2(),
|
|
14677
|
+
left: boolean2()
|
|
14678
|
+
});
|
|
14679
|
+
var zShareReaderLeaveCodeAnswer = strictObject({
|
|
14680
|
+
sent: literal(true)
|
|
14681
|
+
});
|
|
14682
|
+
var zShareReaderLeaveCodeRequest = strictObject({
|
|
14683
|
+
key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
|
|
14684
|
+
});
|
|
14685
|
+
var zShareReaderLeaveRequest = strictObject({
|
|
14686
|
+
code: string2().regex(/^[0-9]{6}$\/u/).optional(),
|
|
14687
|
+
key: string2().min(16).max(128).regex(/^[A-Za-z0-9_-]+$\/u/)
|
|
14688
|
+
});
|
|
14470
14689
|
var zShareScope = _enum(["workspace", "specific_users", "external"]);
|
|
14471
14690
|
var zShareContentRequest = object({
|
|
14472
14691
|
contentId: uuid2(),
|
|
14473
14692
|
contentType: zContentTypeInput,
|
|
14474
14693
|
description: string2().nullish(),
|
|
14475
|
-
expiresAt:
|
|
14694
|
+
expiresAt: datetime2({ offset: true }).nullish(),
|
|
14476
14695
|
notify: boolean2().optional().default(true),
|
|
14477
14696
|
recipientUserIds: array(uuid2()).nullish(),
|
|
14478
14697
|
recipients: array(zRecipientSpec).nullish(),
|
|
@@ -14591,7 +14810,7 @@ var zSkillListResponse = object({
|
|
|
14591
14810
|
});
|
|
14592
14811
|
var zSkillResourceResponse = object({
|
|
14593
14812
|
content: string2().nullable(),
|
|
14594
|
-
createdAt:
|
|
14813
|
+
createdAt: datetime2({ offset: true }),
|
|
14595
14814
|
fileSize: int().nullable(),
|
|
14596
14815
|
id: uuid2(),
|
|
14597
14816
|
mimeType: string2().nullable(),
|
|
@@ -14599,7 +14818,7 @@ var zSkillResourceResponse = object({
|
|
|
14599
14818
|
resourceType: _enum(["script", "template", "reference", "example"]),
|
|
14600
14819
|
s3Path: string2().nullable(),
|
|
14601
14820
|
skillId: uuid2(),
|
|
14602
|
-
updatedAt:
|
|
14821
|
+
updatedAt: datetime2({ offset: true })
|
|
14603
14822
|
});
|
|
14604
14823
|
var zSkillResourceWrite = object({
|
|
14605
14824
|
content: string2().min(1),
|
|
@@ -14610,7 +14829,7 @@ var zSkillResourceWrite = object({
|
|
|
14610
14829
|
var zSkillResponse = object({
|
|
14611
14830
|
category: string2().max(100).optional().default("general"),
|
|
14612
14831
|
content: string2(),
|
|
14613
|
-
createdAt:
|
|
14832
|
+
createdAt: datetime2({ offset: true }),
|
|
14614
14833
|
creatorId: uuid2().nullable(),
|
|
14615
14834
|
description: string2().min(1).max(1024),
|
|
14616
14835
|
displayName: string2().min(1).max(255),
|
|
@@ -14622,7 +14841,7 @@ var zSkillResponse = object({
|
|
|
14622
14841
|
s3Prefix: string2().nullable(),
|
|
14623
14842
|
sandboxPath: string2(),
|
|
14624
14843
|
tags: array(string2()).optional().default([]),
|
|
14625
|
-
updatedAt:
|
|
14844
|
+
updatedAt: datetime2({ offset: true }),
|
|
14626
14845
|
version: string2(),
|
|
14627
14846
|
workspaceId: uuid2().nullable()
|
|
14628
14847
|
});
|
|
@@ -14630,7 +14849,7 @@ var zSkillSecurityScanEvidence = object({
|
|
|
14630
14849
|
findingsSummary: string2().min(1).max(1024),
|
|
14631
14850
|
packageSha256: string2().regex(/^[a-f0-9]{64}$/),
|
|
14632
14851
|
passed: boolean2(),
|
|
14633
|
-
scannedAt:
|
|
14852
|
+
scannedAt: datetime2({ offset: true }),
|
|
14634
14853
|
scanner: _enum([
|
|
14635
14854
|
"cisco-skill-scanner",
|
|
14636
14855
|
"snyk-agent-scan",
|
|
@@ -14725,6 +14944,9 @@ var zAdminWorkspaceDetailResponse = zAdminWorkspaceSummary.and(object({
|
|
|
14725
14944
|
deletion: zStaffWorkspaceDeletionDetail.optional(),
|
|
14726
14945
|
members: array(zAdminWorkspaceMember)
|
|
14727
14946
|
}));
|
|
14947
|
+
var zStartFollowUpEmailDraftInput = object({
|
|
14948
|
+
idempotency_key: string2().min(1).max(256).regex(/^[^\s\r\n](?:[^\r\n]*[^\s\r\n])?$/)
|
|
14949
|
+
});
|
|
14728
14950
|
var zStatusResponse = object({
|
|
14729
14951
|
alreadyConnected: boolean2(),
|
|
14730
14952
|
message: string2(),
|
|
@@ -14795,16 +15017,16 @@ var zPersonaIntegration = object({
|
|
|
14795
15017
|
accountLabel: string2().nullish(),
|
|
14796
15018
|
capabilityIds: array(uuid2()),
|
|
14797
15019
|
connectionId: string2(),
|
|
14798
|
-
createdAt:
|
|
15020
|
+
createdAt: datetime2({ offset: true }),
|
|
14799
15021
|
enabled: boolean2().optional().default(true),
|
|
14800
15022
|
id: uuid2(),
|
|
14801
15023
|
integrationName: string2(),
|
|
14802
15024
|
isPrivate: boolean2().optional().default(true),
|
|
14803
|
-
lastUsedAt:
|
|
15025
|
+
lastUsedAt: datetime2({ offset: true }).nullish(),
|
|
14804
15026
|
permissions: record(string2(), boolean2()).optional().default({}),
|
|
14805
15027
|
personaId: uuid2(),
|
|
14806
15028
|
subtoolPolicy: zSubtoolPolicy.optional(),
|
|
14807
|
-
updatedAt:
|
|
15029
|
+
updatedAt: datetime2({ offset: true }),
|
|
14808
15030
|
workspaceId: uuid2()
|
|
14809
15031
|
});
|
|
14810
15032
|
var zPersonaIntegrationListResponse = object({
|
|
@@ -14885,6 +15107,22 @@ var zSurfaceFlags = object({
|
|
|
14885
15107
|
mcpExtension: boolean2().optional().default(true),
|
|
14886
15108
|
platform: boolean2().optional().default(true)
|
|
14887
15109
|
});
|
|
15110
|
+
var zSyncFollowUpEmailDraftInput = object({
|
|
15111
|
+
idempotency_key: string2().min(1).max(256).regex(/^[^\s\r\n](?:[^\r\n]*[^\s\r\n])?$/),
|
|
15112
|
+
version: int().gte(1)
|
|
15113
|
+
});
|
|
15114
|
+
var zSyncFollowUpEmailDraftResult = union([
|
|
15115
|
+
object({
|
|
15116
|
+
draft: zFollowUpEmailDraft,
|
|
15117
|
+
status: _enum(["saved"])
|
|
15118
|
+
}),
|
|
15119
|
+
object({
|
|
15120
|
+
approval_id: string2(),
|
|
15121
|
+
approval_url: string2(),
|
|
15122
|
+
draft: zFollowUpEmailDraft,
|
|
15123
|
+
status: _enum(["approval_required"])
|
|
15124
|
+
})
|
|
15125
|
+
]);
|
|
14888
15126
|
var zTeamCreateRequest = object({
|
|
14889
15127
|
description: string2().max(500).nullish(),
|
|
14890
15128
|
name: string2().min(1).max(80)
|
|
@@ -14915,7 +15153,7 @@ var zTeamResourcePolicyRequest = object({
|
|
|
14915
15153
|
personaRulesNever: array(string2()).optional().default([])
|
|
14916
15154
|
});
|
|
14917
15155
|
var zTeamResponse = object({
|
|
14918
|
-
createdAt:
|
|
15156
|
+
createdAt: datetime2({ offset: true }),
|
|
14919
15157
|
createdBy: string2().nullish(),
|
|
14920
15158
|
description: string2().nullish(),
|
|
14921
15159
|
id: string2(),
|
|
@@ -14923,7 +15161,7 @@ var zTeamResponse = object({
|
|
|
14923
15161
|
myRole: _enum(["member", "admin", "owner"]).nullish(),
|
|
14924
15162
|
name: string2(),
|
|
14925
15163
|
personaCount: int().optional().default(0),
|
|
14926
|
-
updatedAt:
|
|
15164
|
+
updatedAt: datetime2({ offset: true }),
|
|
14927
15165
|
workspaceId: string2()
|
|
14928
15166
|
});
|
|
14929
15167
|
var zTeamToolGuardrailRequest = object({
|
|
@@ -14964,15 +15202,13 @@ var zAppLogPage = object({
|
|
|
14964
15202
|
recovery: zTenantLogRecoveryReadStatus
|
|
14965
15203
|
});
|
|
14966
15204
|
var zTestTriggerRequest = object({
|
|
14967
|
-
connectionId: string2()
|
|
14968
|
-
triggerConfig: record(string2(), unknown()).nullish()
|
|
15205
|
+
connectionId: string2()
|
|
14969
15206
|
});
|
|
14970
15207
|
var zTestTriggerResponse = object({
|
|
14971
15208
|
appName: string2(),
|
|
14972
15209
|
description: string2(),
|
|
14973
15210
|
inputSchema: record(string2(), unknown()),
|
|
14974
15211
|
message: string2(),
|
|
14975
|
-
note: string2().nullish(),
|
|
14976
15212
|
outputSchema: record(string2(), unknown()),
|
|
14977
15213
|
samplePayload: record(string2(), unknown()),
|
|
14978
15214
|
success: boolean2(),
|
|
@@ -15053,6 +15289,7 @@ var zThreadAgentIdentitySnapshot = object({
|
|
|
15053
15289
|
});
|
|
15054
15290
|
var zThreadClientCapabilities = object({
|
|
15055
15291
|
localRuntime: boolean2(),
|
|
15292
|
+
localRuntimeTicket: string2().regex(/^[A-Za-z0-9_-]{43}$/).nullish().default(null),
|
|
15056
15293
|
surface: _enum(["web", "desktop", "api"]),
|
|
15057
15294
|
vision: boolean2()
|
|
15058
15295
|
});
|
|
@@ -16260,7 +16497,7 @@ var zToolRegistryResponse = object({
|
|
|
16260
16497
|
capabilityId: string2().nullish(),
|
|
16261
16498
|
classification: string2().nullish(),
|
|
16262
16499
|
connectionId: string2().nullish(),
|
|
16263
|
-
createdAt:
|
|
16500
|
+
createdAt: datetime2({ offset: true }),
|
|
16264
16501
|
credentialOwnerUserId: string2().nullish(),
|
|
16265
16502
|
description: string2(),
|
|
16266
16503
|
enabled: boolean2(),
|
|
@@ -16273,7 +16510,7 @@ var zToolRegistryResponse = object({
|
|
|
16273
16510
|
providerType: string2().nullish(),
|
|
16274
16511
|
requiredFields: record(string2(), unknown()),
|
|
16275
16512
|
subToolName: string2(),
|
|
16276
|
-
updatedAt:
|
|
16513
|
+
updatedAt: datetime2({ offset: true }),
|
|
16277
16514
|
userId: string2().nullable(),
|
|
16278
16515
|
version: int(),
|
|
16279
16516
|
visibilitySource: string2().nullish(),
|
|
@@ -16364,16 +16601,23 @@ var zUpdateConnectionLabelResponse = object({
|
|
|
16364
16601
|
var zUpdateExternalPermissionsRequest = object({
|
|
16365
16602
|
permissions: zExternalPermissions
|
|
16366
16603
|
});
|
|
16604
|
+
var zUpdateFollowUpEmailDraftInput = object({
|
|
16605
|
+
body: string2().max(50000),
|
|
16606
|
+
recipient_email: email2().max(320),
|
|
16607
|
+
subject: string2().max(998).regex(/^[^\r\n]*$/),
|
|
16608
|
+
version: int().gte(1)
|
|
16609
|
+
});
|
|
16367
16610
|
var zUpdateItemShareRequest = strictObject({
|
|
16368
16611
|
audience: zItemShareAudienceRequest.optional(),
|
|
16369
16612
|
audience_confirm_link_off: boolean2().optional(),
|
|
16370
16613
|
confirm_used_items: array(uuid2()).max(500).optional(),
|
|
16371
16614
|
download: boolean2().optional(),
|
|
16372
|
-
expires_at:
|
|
16615
|
+
expires_at: datetime2({ offset: true }).nullish(),
|
|
16373
16616
|
gate: zItemShareGateRequest.optional(),
|
|
16374
16617
|
link_preview_enabled: boolean2().optional(),
|
|
16375
16618
|
message: string2().nullish(),
|
|
16376
16619
|
name: string2().min(1).max(200).optional(),
|
|
16620
|
+
needed_by: string2().nullish(),
|
|
16377
16621
|
notify_on_open: _enum(["off", "first_view_only", "every_view"]).optional(),
|
|
16378
16622
|
search_indexing_disabled: boolean2().optional(),
|
|
16379
16623
|
version: object({
|
|
@@ -16551,7 +16795,6 @@ var zWaitlistResponse = object({
|
|
|
16551
16795
|
message: string2()
|
|
16552
16796
|
});
|
|
16553
16797
|
var zWebhookCredentialRevealResponse = strictObject({
|
|
16554
|
-
challenge: string2(),
|
|
16555
16798
|
credentialState: _enum([
|
|
16556
16799
|
"pending_reveal",
|
|
16557
16800
|
"pending_activation",
|
|
@@ -16568,8 +16811,7 @@ var zWebhookCredentialRevealResponse = strictObject({
|
|
|
16568
16811
|
setupState: string2().min(1),
|
|
16569
16812
|
signingSecret: string2(),
|
|
16570
16813
|
token: string2(),
|
|
16571
|
-
triggerVersion: int().gt(0)
|
|
16572
|
-
verificationStatus: _enum(["not_started", "pending", "verified", "expired"])
|
|
16814
|
+
triggerVersion: int().gt(0)
|
|
16573
16815
|
});
|
|
16574
16816
|
var zWebhookCredentialStatusResponse = strictObject({
|
|
16575
16817
|
credentialState: _enum([
|
|
@@ -16586,12 +16828,91 @@ var zWebhookCredentialStatusResponse = strictObject({
|
|
|
16586
16828
|
revealState: string2().min(1),
|
|
16587
16829
|
setupActionId: string2().min(1),
|
|
16588
16830
|
setupState: string2().min(1),
|
|
16589
|
-
triggerVersion: int().gt(0)
|
|
16590
|
-
|
|
16831
|
+
triggerVersion: int().gt(0)
|
|
16832
|
+
});
|
|
16833
|
+
var zWebhookTestDeliveryResult = strictObject({
|
|
16834
|
+
activated: boolean2(),
|
|
16835
|
+
credentialVersion: int().gt(0),
|
|
16836
|
+
graceExpiresAt: string2().min(1).nullable(),
|
|
16837
|
+
listening: boolean2(),
|
|
16838
|
+
outcome: union([
|
|
16839
|
+
object({
|
|
16840
|
+
kind: _enum(["run_started"]),
|
|
16841
|
+
runId: string2().min(1),
|
|
16842
|
+
runStatus: string2().min(1)
|
|
16843
|
+
}),
|
|
16844
|
+
object({
|
|
16845
|
+
kind: _enum(["run_start_failed"]),
|
|
16846
|
+
runId: string2().min(1)
|
|
16847
|
+
}),
|
|
16848
|
+
object({
|
|
16849
|
+
kind: _enum(["not_run"]),
|
|
16850
|
+
reason: _enum(["automation_off", "trigger_off"])
|
|
16851
|
+
}),
|
|
16852
|
+
object({
|
|
16853
|
+
kind: _enum(["duplicate"]),
|
|
16854
|
+
reason: _enum(["inbox_idempotency", "data_id_dedup"])
|
|
16855
|
+
}),
|
|
16856
|
+
object({
|
|
16857
|
+
kind: _enum(["throttled"]),
|
|
16858
|
+
reason: _enum([
|
|
16859
|
+
"trigger_ingress_rate_limited",
|
|
16860
|
+
"run_rate_limited",
|
|
16861
|
+
"usage_budget_exceeded"
|
|
16862
|
+
]),
|
|
16863
|
+
retryAfterSeconds: int().gte(0).nullable()
|
|
16864
|
+
}),
|
|
16865
|
+
object({
|
|
16866
|
+
kind: _enum(["ignored"]),
|
|
16867
|
+
reason: _enum(["automation_inactive", "workspace_archived"])
|
|
16868
|
+
}),
|
|
16869
|
+
object({
|
|
16870
|
+
kind: _enum(["unavailable"])
|
|
16871
|
+
})
|
|
16872
|
+
])
|
|
16873
|
+
});
|
|
16874
|
+
var zWebhookTriggerCredentialSummary = strictObject({
|
|
16875
|
+
access: _enum(["edit"]),
|
|
16876
|
+
active: object({
|
|
16877
|
+
canChangeSecret: boolean2(),
|
|
16878
|
+
credentialVersion: int().gt(0),
|
|
16879
|
+
signatureScheme: _enum(["hmac_sha256_hex", "standard_webhooks"]),
|
|
16880
|
+
signingSecretSetAt: string2().min(1).nullable(),
|
|
16881
|
+
signingSecretSource: _enum(["uru_generated", "sender"])
|
|
16882
|
+
}).nullable(),
|
|
16883
|
+
grace: object({
|
|
16884
|
+
credentialVersion: int().gt(0),
|
|
16885
|
+
graceExpiresAt: string2().min(1),
|
|
16886
|
+
ownSetup: object({
|
|
16887
|
+
credentialVersion: int().gt(0),
|
|
16888
|
+
setupActionId: string2().min(1)
|
|
16889
|
+
}).nullable()
|
|
16890
|
+
}).nullable(),
|
|
16891
|
+
listening: boolean2(),
|
|
16892
|
+
pending: object({
|
|
16893
|
+
credentialState: _enum(["pending_reveal", "pending_activation"]),
|
|
16894
|
+
credentialVersion: int().gt(0),
|
|
16895
|
+
expiresAt: string2().min(1),
|
|
16896
|
+
ownSetup: object({
|
|
16897
|
+
revealState: string2().min(1),
|
|
16898
|
+
setupActionId: string2().min(1),
|
|
16899
|
+
setupState: string2().min(1)
|
|
16900
|
+
}).nullable(),
|
|
16901
|
+
signatureScheme: _enum(["hmac_sha256_hex", "standard_webhooks"]),
|
|
16902
|
+
signingSecretSource: _enum(["uru_generated", "sender"])
|
|
16903
|
+
}).nullable(),
|
|
16904
|
+
triggerId: string2().min(1),
|
|
16905
|
+
triggerVersion: int().gt(0)
|
|
16591
16906
|
});
|
|
16592
|
-
var
|
|
16593
|
-
|
|
16907
|
+
var zWebhookTriggerListening = strictObject({
|
|
16908
|
+
access: _enum(["read"]),
|
|
16909
|
+
listening: boolean2(),
|
|
16910
|
+
triggerId: string2().min(1)
|
|
16594
16911
|
});
|
|
16912
|
+
var zWebhookTriggerCredentialRead = union([
|
|
16913
|
+
zWebhookTriggerCredentialSummary,
|
|
16914
|
+
zWebhookTriggerListening
|
|
16915
|
+
]);
|
|
16595
16916
|
var zWhoamiResponse = object({
|
|
16596
16917
|
apiKeyScopes: array(string2()).optional(),
|
|
16597
16918
|
authType: string2().nullable(),
|
|
@@ -16956,7 +17277,7 @@ var zAuthSessionState = union([
|
|
|
16956
17277
|
}),
|
|
16957
17278
|
object({
|
|
16958
17279
|
aal: union([literal(1), literal(2)]),
|
|
16959
|
-
authenticatedAt:
|
|
17280
|
+
authenticatedAt: datetime2({ offset: true }),
|
|
16960
17281
|
impersonation: object({
|
|
16961
17282
|
impersonatedUser: object({
|
|
16962
17283
|
email: string2(),
|
|
@@ -17177,7 +17498,7 @@ var zModulesContextModelsContextBlockResponse = object({
|
|
|
17177
17498
|
canManage: boolean2().nullish(),
|
|
17178
17499
|
category: string2().nullish(),
|
|
17179
17500
|
content: string2(),
|
|
17180
|
-
createdAt:
|
|
17501
|
+
createdAt: datetime2({ offset: true }),
|
|
17181
17502
|
createdBySource: string2().nullish(),
|
|
17182
17503
|
description: string2().nullish(),
|
|
17183
17504
|
folderId: uuid2().nullish(),
|
|
@@ -17188,7 +17509,7 @@ var zModulesContextModelsContextBlockResponse = object({
|
|
|
17188
17509
|
slug: string2().optional().default(""),
|
|
17189
17510
|
teamIds: array(uuid2()).optional().default([]),
|
|
17190
17511
|
title: string2(),
|
|
17191
|
-
updatedAt:
|
|
17512
|
+
updatedAt: datetime2({ offset: true }),
|
|
17192
17513
|
userId: uuid2().nullable(),
|
|
17193
17514
|
workspaceId: uuid2().nullish()
|
|
17194
17515
|
});
|
|
@@ -17217,7 +17538,7 @@ var zModulesPlatformModelsContextBlockResponse = object({
|
|
|
17217
17538
|
author: zLibraryItemAuthor.optional(),
|
|
17218
17539
|
category: string2().nullish(),
|
|
17219
17540
|
content: string2(),
|
|
17220
|
-
createdAt:
|
|
17541
|
+
createdAt: datetime2({ offset: true }),
|
|
17221
17542
|
createdBySource: string2().nullish(),
|
|
17222
17543
|
description: string2().nullable(),
|
|
17223
17544
|
folderId: string2().nullish(),
|
|
@@ -17228,7 +17549,7 @@ var zModulesPlatformModelsContextBlockResponse = object({
|
|
|
17228
17549
|
slug: string2().optional().default(""),
|
|
17229
17550
|
teamIds: array(string2()).optional().default([]),
|
|
17230
17551
|
title: string2(),
|
|
17231
|
-
updatedAt:
|
|
17552
|
+
updatedAt: datetime2({ offset: true })
|
|
17232
17553
|
});
|
|
17233
17554
|
var zModulesPlatformModelsContextBlockUpdateRequest = object({
|
|
17234
17555
|
category: string2().regex(/^[a-z0-9_-]+$/).nullish(),
|
|
@@ -17246,10 +17567,10 @@ var zSharedContentResponse = object({
|
|
|
17246
17567
|
canManage: boolean2().optional().default(false),
|
|
17247
17568
|
contentId: uuid2(),
|
|
17248
17569
|
contentType: zModulesSharingModelsContentType,
|
|
17249
|
-
createdAt:
|
|
17570
|
+
createdAt: datetime2({ offset: true }),
|
|
17250
17571
|
description: string2().nullable(),
|
|
17251
17572
|
emailedUserIds: array(uuid2()).optional(),
|
|
17252
|
-
expiresAt:
|
|
17573
|
+
expiresAt: datetime2({ offset: true }).nullable(),
|
|
17253
17574
|
id: uuid2(),
|
|
17254
17575
|
metadata: record(string2(), unknown()),
|
|
17255
17576
|
myRecipientRole: zRecipientRole.nullish(),
|
|
@@ -17265,7 +17586,7 @@ var zSharedContentResponse = object({
|
|
|
17265
17586
|
sharedByUserId: uuid2(),
|
|
17266
17587
|
status: zSharingStatus,
|
|
17267
17588
|
title: string2(),
|
|
17268
|
-
updatedAt:
|
|
17589
|
+
updatedAt: datetime2({ offset: true }),
|
|
17269
17590
|
workspaceId: uuid2()
|
|
17270
17591
|
});
|
|
17271
17592
|
var zSharedContentListResponse = object({
|
|
@@ -17335,8 +17656,8 @@ var zGetAdminAuditLogApiAdminAuditLogGetQuery = object({
|
|
|
17335
17656
|
action: string2().min(1).max(120).optional(),
|
|
17336
17657
|
targetType: string2().min(1).max(80).optional(),
|
|
17337
17658
|
targetId: string2().min(1).max(200).optional(),
|
|
17338
|
-
since:
|
|
17339
|
-
until:
|
|
17659
|
+
since: datetime2({ offset: true }).optional(),
|
|
17660
|
+
until: datetime2({ offset: true }).optional()
|
|
17340
17661
|
});
|
|
17341
17662
|
var zListAutomationProviderRepairsQuery = object({
|
|
17342
17663
|
limit: int().gt(0).optional()
|
|
@@ -17940,7 +18261,17 @@ var zGetRunTranscriptApiAutomationsRunsRunIdTranscriptGetQuery = object({
|
|
|
17940
18261
|
limit: int().gte(1).lte(200).optional().default(50)
|
|
17941
18262
|
});
|
|
17942
18263
|
var zGetAutomationWebhookCredentialByTriggerApiAutomationsWebhookCredentialsByTriggerGetPath = object({
|
|
17943
|
-
triggerId:
|
|
18264
|
+
triggerId: uuid2()
|
|
18265
|
+
});
|
|
18266
|
+
var zSetAutomationWebhookSigningSecretApiAutomationsWebhookCredentialsByTriggerSigningSecretPostBody = object({
|
|
18267
|
+
automationId: uuid2(),
|
|
18268
|
+
credentialVersion: int().gt(0),
|
|
18269
|
+
currentPassword: string2().min(1).optional(),
|
|
18270
|
+
scheme: _enum(["hmac_sha256_hex", "standard_webhooks"]),
|
|
18271
|
+
secret: string2().min(1).max(1024)
|
|
18272
|
+
});
|
|
18273
|
+
var zSetAutomationWebhookSigningSecretApiAutomationsWebhookCredentialsByTriggerSigningSecretPostPath = object({
|
|
18274
|
+
triggerId: uuid2()
|
|
17944
18275
|
});
|
|
17945
18276
|
var zRotateAutomationWebhookCredentialApiAutomationsWebhookCredentialsRotatePostBody = object({
|
|
17946
18277
|
automationId: string2().min(1),
|
|
@@ -17949,10 +18280,6 @@ var zRotateAutomationWebhookCredentialApiAutomationsWebhookCredentialsRotatePost
|
|
|
17949
18280
|
idempotencyKey: string2().min(1),
|
|
17950
18281
|
triggerId: string2().min(1)
|
|
17951
18282
|
});
|
|
17952
|
-
var zVerifyAutomationWebhookCredentialApiAutomationsWebhookCredentialsVerifyPostBody = object({
|
|
17953
|
-
challenge: string2().min(1),
|
|
17954
|
-
secret: string2().min(1)
|
|
17955
|
-
});
|
|
17956
18283
|
var zGetAutomationWebhookCredentialApiAutomationsWebhookCredentialsSetupActionIdGetPath = object({
|
|
17957
18284
|
setupActionId: string2().min(1)
|
|
17958
18285
|
});
|
|
@@ -17965,15 +18292,6 @@ var zAbandonAutomationWebhookCredentialApiAutomationsWebhookCredentialsSetupActi
|
|
|
17965
18292
|
var zAbandonAutomationWebhookCredentialApiAutomationsWebhookCredentialsSetupActionIdAbandonPostPath = object({
|
|
17966
18293
|
setupActionId: string2().min(1)
|
|
17967
18294
|
});
|
|
17968
|
-
var zActivateAutomationWebhookCredentialApiAutomationsWebhookCredentialsSetupActionIdActivatePostBody = object({
|
|
17969
|
-
currentPassword: string2().min(1).optional(),
|
|
17970
|
-
expectedCredentialVersion: int().gt(0),
|
|
17971
|
-
expectedTriggerVersion: int().gt(0),
|
|
17972
|
-
idempotencyKey: string2().min(1)
|
|
17973
|
-
});
|
|
17974
|
-
var zActivateAutomationWebhookCredentialApiAutomationsWebhookCredentialsSetupActionIdActivatePostPath = object({
|
|
17975
|
-
setupActionId: string2().min(1)
|
|
17976
|
-
});
|
|
17977
18295
|
var zEndGraceAutomationWebhookCredentialApiAutomationsWebhookCredentialsSetupActionIdEndGracePostBody = object({
|
|
17978
18296
|
currentPassword: string2().min(1).optional(),
|
|
17979
18297
|
expectedCredentialVersion: int().gt(0),
|
|
@@ -18099,6 +18417,17 @@ var zListTriggersApiAutomationsAutomationIdTriggersGetPath = object({
|
|
|
18099
18417
|
automationId: string2()
|
|
18100
18418
|
});
|
|
18101
18419
|
var zListTriggersApiAutomationsAutomationIdTriggersGetResponse = array(zAutomationTrigger);
|
|
18420
|
+
var zSendAutomationWebhookTestDeliveryApiAutomationsAutomationIdWebhookTriggersTriggerIdTestDeliveryPostBody = object({
|
|
18421
|
+
credentialVersion: int().gt(0),
|
|
18422
|
+
currentPassword: string2().min(1).optional(),
|
|
18423
|
+
expectedTriggerVersion: int().gt(0).optional(),
|
|
18424
|
+
idempotencyKey: string2().min(1).max(200),
|
|
18425
|
+
payload: record(string2(), unknown()).optional()
|
|
18426
|
+
});
|
|
18427
|
+
var zSendAutomationWebhookTestDeliveryApiAutomationsAutomationIdWebhookTriggersTriggerIdTestDeliveryPostPath = object({
|
|
18428
|
+
automationId: uuid2(),
|
|
18429
|
+
triggerId: uuid2()
|
|
18430
|
+
});
|
|
18102
18431
|
var zGetAutomationExecutionAuthorityPath = object({
|
|
18103
18432
|
id: string2()
|
|
18104
18433
|
});
|
|
@@ -18417,10 +18746,15 @@ var zGetGraphStatsApiKnowledgeGraphStatsGetResponse = object({
|
|
|
18417
18746
|
totalEdges: int(),
|
|
18418
18747
|
totalNodes: int()
|
|
18419
18748
|
});
|
|
18420
|
-
var
|
|
18749
|
+
var zSubmitLocalRuntimeHeartbeatApiLocalRuntimeHeartbeatPostHeaders = object({
|
|
18750
|
+
"x-uru-local-device-credential": string2().regex(/^[A-Za-z0-9_-]{32,256}$/)
|
|
18751
|
+
});
|
|
18421
18752
|
var zGetLocalRuntimePolicyApiLocalRuntimePolicyDeviceIdGetPath = object({
|
|
18422
18753
|
deviceId: string2()
|
|
18423
18754
|
});
|
|
18755
|
+
var zPrepareLocalRuntimeRunHeaders = object({
|
|
18756
|
+
"x-uru-local-device-credential": string2().regex(/^[A-Za-z0-9_-]{32,256}$/)
|
|
18757
|
+
});
|
|
18424
18758
|
var zEngageModelRelayKillSwitchApiModelRelayKillSwitchesProviderEngagePostPath = object({
|
|
18425
18759
|
provider: string2()
|
|
18426
18760
|
});
|
|
@@ -18734,17 +19068,14 @@ var zAuthorizeRequestApiOauthAuthorizeRequestGetQuery = object({
|
|
|
18734
19068
|
request_id: string2().min(43).max(128)
|
|
18735
19069
|
});
|
|
18736
19070
|
var zAuthorizeRequestApiOauthAuthorizeRequestGetResponse = object({
|
|
19071
|
+
authorityScope: _enum(["all_user_workspaces"]),
|
|
18737
19072
|
client_id: string2(),
|
|
18738
19073
|
client_name: string2(),
|
|
18739
19074
|
redirectUri: url(),
|
|
18740
19075
|
resource: url(),
|
|
18741
|
-
scope: string2()
|
|
18742
|
-
workspace_id: string2().nullable(),
|
|
18743
|
-
workspace_name: string2().nullable()
|
|
18744
|
-
});
|
|
18745
|
-
var zCliSessionApiOauthCliSessionPostBody = object({
|
|
18746
|
-
workspace_id: string2().nullish()
|
|
19076
|
+
scope: string2()
|
|
18747
19077
|
});
|
|
19078
|
+
var zCliSessionApiOauthCliSessionPostBody = record(string2(), never());
|
|
18748
19079
|
var zDeviceAuthorizationApiOauthDeviceCodePostBody = object({
|
|
18749
19080
|
client_id: string2().nullish(),
|
|
18750
19081
|
resource: url().nullish(),
|
|
@@ -18759,7 +19090,7 @@ var zOrganizationAuditListPath = object({
|
|
|
18759
19090
|
});
|
|
18760
19091
|
var zOrganizationAuditListQuery = object({
|
|
18761
19092
|
query: string2().max(100).optional(),
|
|
18762
|
-
since:
|
|
19093
|
+
since: datetime2({ offset: true }).optional(),
|
|
18763
19094
|
cursor: string2().max(512).optional(),
|
|
18764
19095
|
limit: int().gte(1).lte(200).optional().default(100)
|
|
18765
19096
|
});
|
|
@@ -19030,6 +19361,18 @@ var zUpdateArtifactFolderApiPlatformArtifactFoldersFolderIdPatchPath = object({
|
|
|
19030
19361
|
folderId: string2()
|
|
19031
19362
|
});
|
|
19032
19363
|
var zUpdateArtifactFolderApiPlatformArtifactFoldersFolderIdPatchResponse = record(string2(), unknown());
|
|
19364
|
+
var zRevokeGemActionPublicationPath = object({
|
|
19365
|
+
artifactId: uuid2()
|
|
19366
|
+
});
|
|
19367
|
+
var zInspectGemActionPublicationPath = object({
|
|
19368
|
+
artifactId: uuid2()
|
|
19369
|
+
});
|
|
19370
|
+
var zInspectGemActionPublicationQuery = object({
|
|
19371
|
+
deploymentId: uuid2()
|
|
19372
|
+
});
|
|
19373
|
+
var zReplaceGemActionPublicationPath = object({
|
|
19374
|
+
artifactId: uuid2()
|
|
19375
|
+
});
|
|
19033
19376
|
var zGetArtifactApiPlatformArtifactsArtifactSlugGetPath = object({
|
|
19034
19377
|
artifactSlug: string2()
|
|
19035
19378
|
});
|
|
@@ -19830,7 +20173,7 @@ var zDatasetExternalSourceGetResponse = object({
|
|
|
19830
20173
|
idColumn: string2(),
|
|
19831
20174
|
idStrategy: string2().nullable(),
|
|
19832
20175
|
lastError: string2().nullable(),
|
|
19833
|
-
lastOkAt:
|
|
20176
|
+
lastOkAt: datetime2({ offset: true }).nullable(),
|
|
19834
20177
|
optimisticConcurrencyColumn: string2().nullable(),
|
|
19835
20178
|
ownerUserId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/).nullable(),
|
|
19836
20179
|
pkColumns: array(string2()).nullable(),
|
|
@@ -19884,7 +20227,7 @@ var zDatasetExternalSourcePutResponse = object({
|
|
|
19884
20227
|
idColumn: string2(),
|
|
19885
20228
|
idStrategy: string2().nullable(),
|
|
19886
20229
|
lastError: string2().nullable(),
|
|
19887
|
-
lastOkAt:
|
|
20230
|
+
lastOkAt: datetime2({ offset: true }).nullable(),
|
|
19888
20231
|
optimisticConcurrencyColumn: string2().nullable(),
|
|
19889
20232
|
ownerUserId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/).nullable(),
|
|
19890
20233
|
pkColumns: array(string2()).nullable(),
|
|
@@ -20787,8 +21130,8 @@ var zListGemRunAnalyticsPath = object({
|
|
|
20787
21130
|
});
|
|
20788
21131
|
var zListGemRunAnalyticsQuery = object({
|
|
20789
21132
|
limit: int().gte(1).lte(1e4).optional().default(1000),
|
|
20790
|
-
from:
|
|
20791
|
-
to:
|
|
21133
|
+
from: datetime2({ offset: true }).optional(),
|
|
21134
|
+
to: datetime2({ offset: true }).optional(),
|
|
20792
21135
|
releaseId: uuid2().optional(),
|
|
20793
21136
|
deploymentId: uuid2().optional(),
|
|
20794
21137
|
source: _enum(["interactive", "public", "schedule", "run_now", "job", "agent"]).optional(),
|
|
@@ -20840,6 +21183,9 @@ var zRetryGemVersionPath = object({
|
|
|
20840
21183
|
gemRef: string2().min(1),
|
|
20841
21184
|
resourceId: string2().min(1)
|
|
20842
21185
|
});
|
|
21186
|
+
var zCreateItemSharesHeaders = object({
|
|
21187
|
+
"idempotency-key": string2().min(1).max(200)
|
|
21188
|
+
});
|
|
20843
21189
|
var zGetAvailableLibrariesApiPlatformLibrariesAvailableGetResponse = record(string2(), unknown());
|
|
20844
21190
|
var zGetAvailableIconsApiPlatformLibrariesIconsGetResponse = record(string2(), unknown());
|
|
20845
21191
|
var zGetLibrariesManifestApiPlatformLibrariesManifestGetResponse = record(string2(), unknown());
|
|
@@ -21235,6 +21581,7 @@ var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItem
|
|
|
21235
21581
|
var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItemIdPreviewImagePostResponse = zFilePreviewImageResponse.and(unknown());
|
|
21236
21582
|
var zVerifyLibraryVisitorSessionApiPlatformLibraryVisitorSessionsVerifyPostResponse = record(string2(), unknown());
|
|
21237
21583
|
var zListCompaniesQuery = object({
|
|
21584
|
+
sort: _enum(["name", "last_activity", "people"]).optional(),
|
|
21238
21585
|
q: string2().min(2).max(200).optional(),
|
|
21239
21586
|
cursor: string2().max(512).optional(),
|
|
21240
21587
|
limit: int().gte(1).lte(100).optional()
|
|
@@ -21340,6 +21687,12 @@ var zCompleteFollowUpPath = object({
|
|
|
21340
21687
|
var zCompleteFollowUpQuery = object({
|
|
21341
21688
|
tz: string2().min(1).max(64).optional()
|
|
21342
21689
|
});
|
|
21690
|
+
var zPrepareFollowUpNotePath = object({
|
|
21691
|
+
followUpId: string2().min(1).max(512)
|
|
21692
|
+
});
|
|
21693
|
+
var zStartFollowUpEmailDraftPath = object({
|
|
21694
|
+
followUpId: string2().min(1).max(512)
|
|
21695
|
+
});
|
|
21343
21696
|
var zRestoreFollowUpPath = object({
|
|
21344
21697
|
followUpId: string2().min(1).max(200)
|
|
21345
21698
|
});
|
|
@@ -21353,6 +21706,10 @@ var zSnoozeFollowUpQuery = object({
|
|
|
21353
21706
|
tz: string2().min(1).max(64).optional()
|
|
21354
21707
|
});
|
|
21355
21708
|
var zListDistributionItemsQuery = object({
|
|
21709
|
+
company_id: uuid2().optional(),
|
|
21710
|
+
sharing_state: _enum(["all", "not_opened", "some_opened", "all_opened", "expiring", "expired"]).optional(),
|
|
21711
|
+
pins: _enum(["all", "pinned", "none"]).optional(),
|
|
21712
|
+
label_id: uuid2().optional(),
|
|
21356
21713
|
q: string2().min(1).max(200).optional(),
|
|
21357
21714
|
kind: _enum([
|
|
21358
21715
|
"artifact",
|
|
@@ -21368,8 +21725,8 @@ var zListDistributionItemsQuery = object({
|
|
|
21368
21725
|
in_workspace_id: uuid2().optional(),
|
|
21369
21726
|
not_opened: boolean2().optional(),
|
|
21370
21727
|
expiring_soon: boolean2().optional(),
|
|
21371
|
-
sort: _enum(["last_open", "most_opened", "newest"]).optional(),
|
|
21372
|
-
period: _enum(["7d", "30d", "90d", "all"]).optional(),
|
|
21728
|
+
sort: _enum(["last_activity", "last_open", "most_opened", "newest", "name"]).optional(),
|
|
21729
|
+
period: _enum(["1d", "7d", "30d", "90d", "all"]).optional(),
|
|
21373
21730
|
tz: string2().min(1).max(64).optional(),
|
|
21374
21731
|
limit: int().gte(1).lte(100).optional(),
|
|
21375
21732
|
offset: int().gte(0).nullish()
|
|
@@ -21378,11 +21735,66 @@ var zGetDistributionItemResultsPath = object({
|
|
|
21378
21735
|
itemId: uuid2()
|
|
21379
21736
|
});
|
|
21380
21737
|
var zGetDistributionItemResultsQuery = object({
|
|
21738
|
+
q: string2().min(1).max(200).optional(),
|
|
21739
|
+
state: _enum([
|
|
21740
|
+
"all",
|
|
21741
|
+
"opened",
|
|
21742
|
+
"not_opened",
|
|
21743
|
+
"active",
|
|
21744
|
+
"expired",
|
|
21745
|
+
"revoked",
|
|
21746
|
+
"left",
|
|
21747
|
+
"access_ended",
|
|
21748
|
+
"waiting_sign_up"
|
|
21749
|
+
]).optional(),
|
|
21750
|
+
sort: _enum(["most_opened", "last_opened", "name", "company", "newest"]).optional(),
|
|
21751
|
+
limit: int().gte(1).lte(100).optional(),
|
|
21752
|
+
offset: int().gte(0).nullish(),
|
|
21753
|
+
team: _enum(["hide", "include"]).optional(),
|
|
21754
|
+
tz: string2().min(1).max(64).optional()
|
|
21755
|
+
});
|
|
21756
|
+
var zExportDistributionItemPeoplePath = object({
|
|
21757
|
+
itemId: uuid2()
|
|
21758
|
+
});
|
|
21759
|
+
var zExportDistributionItemPeopleQuery = object({
|
|
21760
|
+
q: string2().min(1).max(200).optional(),
|
|
21761
|
+
state: _enum([
|
|
21762
|
+
"all",
|
|
21763
|
+
"opened",
|
|
21764
|
+
"not_opened",
|
|
21765
|
+
"active",
|
|
21766
|
+
"expired",
|
|
21767
|
+
"revoked",
|
|
21768
|
+
"left",
|
|
21769
|
+
"access_ended",
|
|
21770
|
+
"waiting_sign_up"
|
|
21771
|
+
]).optional(),
|
|
21772
|
+
sort: _enum(["most_opened", "last_opened", "name", "company", "newest"]).optional(),
|
|
21381
21773
|
team: _enum(["hide", "include"]).optional(),
|
|
21382
21774
|
tz: string2().min(1).max(64).optional()
|
|
21383
21775
|
});
|
|
21776
|
+
var zStartItemRecipientEmailDraftPath = object({
|
|
21777
|
+
itemId: uuid2(),
|
|
21778
|
+
recipientId: uuid2()
|
|
21779
|
+
});
|
|
21780
|
+
var zListFollowUpEmailDraftsQuery = object({
|
|
21781
|
+
contact_id: uuid2().optional()
|
|
21782
|
+
});
|
|
21783
|
+
var zDeleteFollowUpEmailDraftPath = object({
|
|
21784
|
+
draftId: uuid2()
|
|
21785
|
+
});
|
|
21786
|
+
var zDeleteFollowUpEmailDraftResponse = _void2();
|
|
21787
|
+
var zGetFollowUpEmailDraftPath = object({
|
|
21788
|
+
draftId: uuid2()
|
|
21789
|
+
});
|
|
21790
|
+
var zUpdateFollowUpEmailDraftPath = object({
|
|
21791
|
+
draftId: uuid2()
|
|
21792
|
+
});
|
|
21793
|
+
var zSyncFollowUpEmailDraftPath = object({
|
|
21794
|
+
draftId: uuid2()
|
|
21795
|
+
});
|
|
21384
21796
|
var zGetDistributionOverviewQuery = object({
|
|
21385
|
-
period: _enum(["7d", "30d", "90d", "all"]).optional(),
|
|
21797
|
+
period: _enum(["1d", "7d", "30d", "90d", "all"]).optional(),
|
|
21386
21798
|
kind: _enum([
|
|
21387
21799
|
"artifact",
|
|
21388
21800
|
"file",
|
|
@@ -21457,9 +21869,6 @@ var zConfirmReceivedShareCodePath = object({
|
|
|
21457
21869
|
var zRemoveReceivedGemSharePath = object({
|
|
21458
21870
|
recipientId: uuid2()
|
|
21459
21871
|
});
|
|
21460
|
-
var zFileReceivedGemSharePath = object({
|
|
21461
|
-
recipientId: uuid2()
|
|
21462
|
-
});
|
|
21463
21872
|
var zRequestGemShareClaimCodePath = object({
|
|
21464
21873
|
recipientId: uuid2()
|
|
21465
21874
|
});
|
|
@@ -21519,6 +21928,18 @@ var zEndItemOpenPath = object({
|
|
|
21519
21928
|
var zHeartbeatItemOpenPath = object({
|
|
21520
21929
|
eventId: uuid2()
|
|
21521
21930
|
});
|
|
21931
|
+
var zListShareAccessRequestsQuery = object({
|
|
21932
|
+
state: _enum(["pending", "snoozed"]).optional()
|
|
21933
|
+
});
|
|
21934
|
+
var zListShareAccessRequestsResponse = object({
|
|
21935
|
+
requests: array(zShareAccessRequest)
|
|
21936
|
+
});
|
|
21937
|
+
var zAnswerShareAccessRequestBody = object({
|
|
21938
|
+
answer: _enum(["yes", "not_now", "restore"])
|
|
21939
|
+
});
|
|
21940
|
+
var zAnswerShareAccessRequestPath = object({
|
|
21941
|
+
requestId: uuid2()
|
|
21942
|
+
});
|
|
21522
21943
|
var zGetItemSharePath = object({
|
|
21523
21944
|
shareId: uuid2()
|
|
21524
21945
|
});
|
|
@@ -21636,6 +22057,34 @@ var zGetPublishedPageApiPublicPagesSlugGetResponse = union([
|
|
|
21636
22057
|
zPublishedPagePublicResponse,
|
|
21637
22058
|
zPublishedPageGateRequiredResponse
|
|
21638
22059
|
]);
|
|
22060
|
+
var zRequestPublishedShareAccessCodeBody = object({
|
|
22061
|
+
email: email2().max(320)
|
|
22062
|
+
});
|
|
22063
|
+
var zRequestPublishedShareAccessCodeHeaders = object({
|
|
22064
|
+
"x-uru-publish-csrf": string2().optional()
|
|
22065
|
+
});
|
|
22066
|
+
var zRequestPublishedShareAccessCodePath = object({
|
|
22067
|
+
slug: string2()
|
|
22068
|
+
});
|
|
22069
|
+
var zRequestPublishedShareAccessCodeResponse = object({
|
|
22070
|
+
sent: literal(true)
|
|
22071
|
+
});
|
|
22072
|
+
var zVerifyPublishedShareAccessRequestBody = object({
|
|
22073
|
+
code: string2().regex(/^\d{6}$\/u/),
|
|
22074
|
+
email: email2().max(320)
|
|
22075
|
+
});
|
|
22076
|
+
var zVerifyPublishedShareAccessRequestHeaders = object({
|
|
22077
|
+
"x-uru-publish-csrf": string2().optional()
|
|
22078
|
+
});
|
|
22079
|
+
var zVerifyPublishedShareAccessRequestPath = object({
|
|
22080
|
+
slug: string2()
|
|
22081
|
+
});
|
|
22082
|
+
var zVerifyPublishedShareAccessRequestResponse = object({
|
|
22083
|
+
request_id: uuid2(),
|
|
22084
|
+
requested_at: string2(),
|
|
22085
|
+
retry_at: string2().nullable(),
|
|
22086
|
+
status: _enum(["pending", "approved", "not_now"])
|
|
22087
|
+
});
|
|
21639
22088
|
var zPublicArtifactAiProxyApiPublicPagesSlugAiProxyPostBody = object({
|
|
21640
22089
|
artifactId: string2().regex(/^\s*(?:[uU][rR][nN]:[uU][uU][iI][dD]:)?(?:\{(?=(?:-*[0-9A-Fa-f]){32}-*\}\s*$)[0-9A-Fa-f-]+\}|(?=(?:-*[0-9A-Fa-f]){32}-*\s*$)[0-9A-Fa-f-]+)\s*$/).nullish(),
|
|
21641
22090
|
buildId: string2().regex(/^\s*(?:[uU][rR][nN]:[uU][uU][iI][dD]:)?(?:\{(?=(?:-*[0-9A-Fa-f]){32}-*\}\s*$)[0-9A-Fa-f-]+\}|(?=(?:-*[0-9A-Fa-f]){32}-*\s*$)[0-9A-Fa-f-]+)\s*$/).nullish(),
|
|
@@ -21838,6 +22287,18 @@ var zGatePasscodeApiPublicPagesSlugGatePasscodePostHeaders = object({
|
|
|
21838
22287
|
var zGatePasscodeApiPublicPagesSlugGatePasscodePostPath = object({
|
|
21839
22288
|
slug: string2()
|
|
21840
22289
|
});
|
|
22290
|
+
var zLeavePublishedReaderHeaders = object({
|
|
22291
|
+
"x-uru-publish-csrf": string2().optional()
|
|
22292
|
+
});
|
|
22293
|
+
var zLeavePublishedReaderPath = object({
|
|
22294
|
+
slug: string2()
|
|
22295
|
+
});
|
|
22296
|
+
var zRequestPublishedReaderLeaveCodeHeaders = object({
|
|
22297
|
+
"x-uru-publish-csrf": string2().optional()
|
|
22298
|
+
});
|
|
22299
|
+
var zRequestPublishedReaderLeaveCodePath = object({
|
|
22300
|
+
slug: string2()
|
|
22301
|
+
});
|
|
21841
22302
|
var zPublicArtifactPersonaProxyApiPublicPagesSlugPersonaProxyPostBody = object({
|
|
21842
22303
|
allowedTools: array(string2()).nullish(),
|
|
21843
22304
|
artifactId: string2().regex(/^\s*(?:[uU][rR][nN]:[uU][uU][iI][dD]:)?(?:\{(?=(?:-*[0-9A-Fa-f]){32}-*\}\s*$)[0-9A-Fa-f-]+\}|(?=(?:-*[0-9A-Fa-f]){32}-*\s*$)[0-9A-Fa-f-]+)\s*$/),
|
|
@@ -21952,6 +22413,24 @@ var zGetShareEmailImagePath = object({
|
|
|
21952
22413
|
token: string2().min(1).max(1024)
|
|
21953
22414
|
});
|
|
21954
22415
|
var zGetShareEmailImageResponse = string2();
|
|
22416
|
+
var zRequestShareAccessCodeBody = object({
|
|
22417
|
+
email: email2().max(320),
|
|
22418
|
+
key: string2().regex(/^[A-Za-z0-9_-]{16,128}$\/u/)
|
|
22419
|
+
});
|
|
22420
|
+
var zRequestShareAccessCodeResponse = object({
|
|
22421
|
+
sent: literal(true)
|
|
22422
|
+
});
|
|
22423
|
+
var zVerifyShareAccessRequestBody = object({
|
|
22424
|
+
code: string2().regex(/^\d{6}$\/u/),
|
|
22425
|
+
email: email2().max(320),
|
|
22426
|
+
key: string2().regex(/^[A-Za-z0-9_-]{16,128}$\/u/)
|
|
22427
|
+
});
|
|
22428
|
+
var zVerifyShareAccessRequestResponse = object({
|
|
22429
|
+
request_id: uuid2(),
|
|
22430
|
+
requested_at: string2(),
|
|
22431
|
+
retry_at: string2().nullable(),
|
|
22432
|
+
status: _enum(["pending", "approved", "not_now"])
|
|
22433
|
+
});
|
|
21955
22434
|
var zPutTeamResourcePolicyApiResourcePoliciesTeamsTeamIdPutPath = object({
|
|
21956
22435
|
teamId: string2()
|
|
21957
22436
|
});
|
|
@@ -21976,6 +22455,14 @@ var zRunEventsStreamResponse = string2();
|
|
|
21976
22455
|
var zRunInputSubmitPath = object({
|
|
21977
22456
|
runId: uuid2()
|
|
21978
22457
|
});
|
|
22458
|
+
var zRunLocalToolClaimPath = object({
|
|
22459
|
+
runId: uuid2(),
|
|
22460
|
+
toolCallId: string2().min(1).max(512)
|
|
22461
|
+
});
|
|
22462
|
+
var zRunLocalToolResultSubmitPath = object({
|
|
22463
|
+
runId: uuid2(),
|
|
22464
|
+
toolCallId: string2().min(1).max(512)
|
|
22465
|
+
});
|
|
21979
22466
|
var zRunQuestionAnswerPath = object({
|
|
21980
22467
|
runId: uuid2(),
|
|
21981
22468
|
questionId: uuid2()
|
|
@@ -22171,6 +22658,22 @@ var zListSkillsApiSkillsGetQuery = object({
|
|
|
22171
22658
|
includeSystem: union([_enum(["true"]), _enum(["false"])]).optional().default("true"),
|
|
22172
22659
|
enabledOnly: union([_enum(["true"]), _enum(["false"])]).optional().default("false")
|
|
22173
22660
|
});
|
|
22661
|
+
var zReadExecutorSkillsHeaders = object({
|
|
22662
|
+
"X-Uru-Workspace-Id": string2().min(1).optional()
|
|
22663
|
+
});
|
|
22664
|
+
var zReadExecutorSkillsQuery = object({
|
|
22665
|
+
source: _enum(["uru", "gem"]).optional(),
|
|
22666
|
+
name: string2().min(1).max(64).regex(/^[a-z0-9-]+$/).optional(),
|
|
22667
|
+
path: string2().min(1).max(255).optional(),
|
|
22668
|
+
version: string2().min(1).max(128).optional(),
|
|
22669
|
+
gemId: uuid2().optional(),
|
|
22670
|
+
offset: int().gte(0).lte(1e4).nullish(),
|
|
22671
|
+
limit: int().gte(1).lte(100).optional()
|
|
22672
|
+
});
|
|
22673
|
+
var zReadExecutorSkillsResponse = union([
|
|
22674
|
+
zExecutorSkillList,
|
|
22675
|
+
zExecutorSkillFile
|
|
22676
|
+
]);
|
|
22174
22677
|
var zListSystemSkillsApiSkillsSystemGetQuery = object({
|
|
22175
22678
|
enabledOnly: union([_enum(["true"]), _enum(["false"])]).optional().default("false")
|
|
22176
22679
|
});
|
|
@@ -22407,6 +22910,10 @@ var zClaimActionProxyProviderHopResponse = object({
|
|
|
22407
22910
|
});
|
|
22408
22911
|
var zExecuteActionApiToolControlPlaneActionsExecutePostBody = object({
|
|
22409
22912
|
arguments: record(string2(), unknown()),
|
|
22913
|
+
publicExecution: object({
|
|
22914
|
+
executionId: uuid2(),
|
|
22915
|
+
hostId: uuid2()
|
|
22916
|
+
}).optional(),
|
|
22410
22917
|
ref: union([
|
|
22411
22918
|
object({
|
|
22412
22919
|
capabilityId: string2().min(1).max(256),
|
|
@@ -22420,6 +22927,11 @@ var zExecuteActionApiToolControlPlaneActionsExecutePostBody = object({
|
|
|
22420
22927
|
object({
|
|
22421
22928
|
kind: _enum(["proxy"]),
|
|
22422
22929
|
toolId: string2().min(1).max(128)
|
|
22930
|
+
}),
|
|
22931
|
+
object({
|
|
22932
|
+
artifactId: uuid2(),
|
|
22933
|
+
kind: _enum(["gem"]),
|
|
22934
|
+
operationKey: string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/)
|
|
22423
22935
|
})
|
|
22424
22936
|
]),
|
|
22425
22937
|
toolCallId: string2().min(1).max(256).optional()
|
|
@@ -22439,6 +22951,11 @@ var zExecuteLegacyActionApiToolControlPlaneActionsExecuteLegacyPostBody = object
|
|
|
22439
22951
|
object({
|
|
22440
22952
|
kind: _enum(["proxy"]),
|
|
22441
22953
|
toolId: string2().min(1).max(128)
|
|
22954
|
+
}),
|
|
22955
|
+
object({
|
|
22956
|
+
artifactId: uuid2(),
|
|
22957
|
+
kind: _enum(["gem"]),
|
|
22958
|
+
operationKey: string2().regex(/^(query|action|job):[A-Za-z0-9_.-]+$/)
|
|
22442
22959
|
})
|
|
22443
22960
|
])).max(500).optional(),
|
|
22444
22961
|
arguments: record(string2(), unknown()),
|
|
@@ -22446,6 +22963,14 @@ var zExecuteLegacyActionApiToolControlPlaneActionsExecuteLegacyPostBody = object
|
|
|
22446
22963
|
wrapperName: string2().min(1).max(256)
|
|
22447
22964
|
});
|
|
22448
22965
|
var zExecuteLegacyActionApiToolControlPlaneActionsExecuteLegacyPostResponse = record(string2(), unknown());
|
|
22966
|
+
var zFinishPublicMcpExecutionBody = object({
|
|
22967
|
+
completed: boolean2(),
|
|
22968
|
+
executionId: uuid2(),
|
|
22969
|
+
hostId: uuid2()
|
|
22970
|
+
});
|
|
22971
|
+
var zFinishPublicMcpExecutionResponse = object({
|
|
22972
|
+
closed: literal(true)
|
|
22973
|
+
});
|
|
22449
22974
|
var zListCatalogApiToolControlPlaneCatalogGetHeaders = object({
|
|
22450
22975
|
"X-Uru-Workspace-Id": string2().min(1).optional()
|
|
22451
22976
|
});
|
|
@@ -22591,7 +23116,7 @@ var zGetUsageHistoryApiUsageHistoryGetQuery = object({
|
|
|
22591
23116
|
serviceType: string2().optional(),
|
|
22592
23117
|
limit: int().gte(1).lte(500).optional().default(50),
|
|
22593
23118
|
offset: int().gte(0).nullish().default(0),
|
|
22594
|
-
beforeCreatedAt:
|
|
23119
|
+
beforeCreatedAt: datetime2({ offset: true }).optional()
|
|
22595
23120
|
});
|
|
22596
23121
|
var zGetUsageHistoryApiUsageHistoryGetResponse = object({
|
|
22597
23122
|
hasMore: boolean2(),
|
|
@@ -22686,6 +23211,16 @@ var zRobotsTxtRobotsTxtGetResponse = string2();
|
|
|
22686
23211
|
|
|
22687
23212
|
// ../../packages/types/src/mcp/gemResult.ts
|
|
22688
23213
|
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
23214
|
+
// ../../packages/types/src/platform/workspaceCall.ts
|
|
23215
|
+
var WORKSPACE_CALL_REFUSAL_STATUS = {
|
|
23216
|
+
workspace_required: 400,
|
|
23217
|
+
workspace_id_invalid: 400,
|
|
23218
|
+
workspace_not_accessible: 403,
|
|
23219
|
+
workspace_not_allowed_for_credential: 403,
|
|
23220
|
+
tool_not_in_workspace: 404,
|
|
23221
|
+
upload_workspace_mismatch: 409
|
|
23222
|
+
};
|
|
23223
|
+
var WORKSPACE_CALL_REFUSAL_CODES = Object.keys(WORKSPACE_CALL_REFUSAL_STATUS);
|
|
22689
23224
|
// src/terminal-safety.ts
|
|
22690
23225
|
function stripTerminalControl(value) {
|
|
22691
23226
|
let out = "";
|
|
@@ -22719,9 +23254,9 @@ function isJsonValue(value) {
|
|
|
22719
23254
|
function isJsonObject(value) {
|
|
22720
23255
|
return isRecord(value) && Object.values(value).every(isJsonValue);
|
|
22721
23256
|
}
|
|
22722
|
-
function pickString(
|
|
23257
|
+
function pickString(record, keys) {
|
|
22723
23258
|
for (const key of keys) {
|
|
22724
|
-
const value =
|
|
23259
|
+
const value = record[key];
|
|
22725
23260
|
if (typeof value === "string" && value.trim() !== "") {
|
|
22726
23261
|
return value;
|
|
22727
23262
|
}
|
|
@@ -22731,7 +23266,7 @@ function pickString(record2, keys) {
|
|
|
22731
23266
|
// package.json
|
|
22732
23267
|
var package_default = {
|
|
22733
23268
|
name: "@uru-intelligence/cli",
|
|
22734
|
-
version: "0.6.
|
|
23269
|
+
version: "0.6.2",
|
|
22735
23270
|
private: false,
|
|
22736
23271
|
description: "Uru full-platform command line interface",
|
|
22737
23272
|
repository: {
|
|
@@ -22785,7 +23320,7 @@ var package_default = {
|
|
|
22785
23320
|
engines: {
|
|
22786
23321
|
node: ">=24"
|
|
22787
23322
|
},
|
|
22788
|
-
packageManager: "bun@1.
|
|
23323
|
+
packageManager: "bun@1.4.2"
|
|
22789
23324
|
};
|
|
22790
23325
|
|
|
22791
23326
|
// src/types.ts
|
|
@@ -22862,15 +23397,15 @@ function gemEnvelope(body, operation) {
|
|
|
22862
23397
|
throw new CliError(`Gem ${operation} returned an incomplete result envelope.`);
|
|
22863
23398
|
}
|
|
22864
23399
|
const result = body["result"];
|
|
22865
|
-
const
|
|
22866
|
-
if (!isJsonValue(result) || !isJsonValue(
|
|
23400
|
+
const error = body["error"];
|
|
23401
|
+
if (!isJsonValue(result) || !isJsonValue(error) && error !== null) {
|
|
22867
23402
|
throw new CliError(`Gem ${operation} returned an invalid result envelope.`);
|
|
22868
23403
|
}
|
|
22869
|
-
if (result === null === (
|
|
23404
|
+
if (result === null === (error === null)) {
|
|
22870
23405
|
throw new CliError(`Gem ${operation} returned an ambiguous result envelope.`);
|
|
22871
23406
|
}
|
|
22872
|
-
if (
|
|
22873
|
-
throw gemToolError(operation,
|
|
23407
|
+
if (error !== null) {
|
|
23408
|
+
throw gemToolError(operation, error);
|
|
22874
23409
|
}
|
|
22875
23410
|
return {
|
|
22876
23411
|
schema: GEM_RESULT_SCHEMA_V1,
|
|
@@ -22895,20 +23430,20 @@ function gemToolError(operation, value) {
|
|
|
22895
23430
|
if (value["details"] !== undefined && !isJsonObject(value["details"])) {
|
|
22896
23431
|
return new CliError(`Gem ${operation} returned invalid error details.`);
|
|
22897
23432
|
}
|
|
22898
|
-
const
|
|
23433
|
+
const error = {
|
|
22899
23434
|
code,
|
|
22900
23435
|
message,
|
|
22901
23436
|
error_id: errorId,
|
|
22902
23437
|
...value["details"] === undefined ? {} : { details: value["details"] }
|
|
22903
23438
|
};
|
|
22904
|
-
return new CliError(`Gem ${operation} failed: code=${
|
|
22905
|
-
errorCode:
|
|
22906
|
-
errorId:
|
|
22907
|
-
...
|
|
23439
|
+
return new CliError(`Gem ${operation} failed: code=${error.code}; message=${error.message}; error_id=${error.error_id}`, {
|
|
23440
|
+
errorCode: error.code,
|
|
23441
|
+
errorId: error.error_id,
|
|
23442
|
+
...error.code === "source_revision_conflict" ? { code: ExitCode.Conflict } : {}
|
|
22908
23443
|
});
|
|
22909
23444
|
}
|
|
22910
|
-
function requiredString(
|
|
22911
|
-
const value =
|
|
23445
|
+
function requiredString(record, key, label) {
|
|
23446
|
+
const value = record[key];
|
|
22912
23447
|
if (typeof value !== "string" || value.trim() === "") {
|
|
22913
23448
|
throw new CliError(`Gem ${label} returned invalid ${key}.`);
|
|
22914
23449
|
}
|
|
@@ -22957,6 +23492,15 @@ class UruApiClient {
|
|
|
22957
23492
|
}
|
|
22958
23493
|
return body.flatMap(normalizeTool);
|
|
22959
23494
|
}
|
|
23495
|
+
async readSkills(request) {
|
|
23496
|
+
const input = zReadExecutorSkillsQuery.parse(request);
|
|
23497
|
+
const query = new URLSearchParams;
|
|
23498
|
+
for (const [key, value] of Object.entries(input)) {
|
|
23499
|
+
if (value !== undefined && value !== null)
|
|
23500
|
+
query.set(key, String(value));
|
|
23501
|
+
}
|
|
23502
|
+
return zReadExecutorSkillsResponse.parse(await this.request(`/api/skills/reader?${query.toString()}`, { method: "GET" }));
|
|
23503
|
+
}
|
|
22960
23504
|
async getToolSchema(name) {
|
|
22961
23505
|
return this.request(`/api/platform/tools/${encodeURIComponent(name)}/schema`, {
|
|
22962
23506
|
method: "GET"
|
|
@@ -22985,10 +23529,15 @@ class UruApiClient {
|
|
|
22985
23529
|
async api(path, options) {
|
|
22986
23530
|
return this.request(path, options);
|
|
22987
23531
|
}
|
|
22988
|
-
async executeAction(ref, argumentsValue) {
|
|
23532
|
+
async executeAction(ref, argumentsValue, options = {}) {
|
|
23533
|
+
const idempotencyKey = options.idempotencyKey;
|
|
23534
|
+
if (idempotencyKey !== undefined && (idempotencyKey.trim() === "" || idempotencyKey.trim() !== idempotencyKey || idempotencyKey.length > 256 || /[\r\n]/.test(idempotencyKey))) {
|
|
23535
|
+
throw new CliError("Use a non-empty idempotency key under 257 characters on one line.");
|
|
23536
|
+
}
|
|
22989
23537
|
const body = settledActionResult(await this.request("/api/tool-control-plane/actions/execute", {
|
|
22990
23538
|
method: "POST",
|
|
22991
|
-
body: { ref, arguments: argumentsValue }
|
|
23539
|
+
body: { ref, arguments: argumentsValue },
|
|
23540
|
+
...idempotencyKey === undefined ? {} : { idempotencyKey }
|
|
22992
23541
|
}), argumentsValue);
|
|
22993
23542
|
return await this.readRetainedActionResult(body, argumentsValue) ?? body;
|
|
22994
23543
|
}
|
|
@@ -23020,9 +23569,9 @@ class UruApiClient {
|
|
|
23020
23569
|
let value;
|
|
23021
23570
|
try {
|
|
23022
23571
|
value = JSON.parse(new TextDecoder().decode(bytes));
|
|
23023
|
-
} catch (
|
|
23572
|
+
} catch (error) {
|
|
23024
23573
|
throw new CliError("The retained tool output is not valid JSON.", {
|
|
23025
|
-
cause:
|
|
23574
|
+
cause: error
|
|
23026
23575
|
});
|
|
23027
23576
|
}
|
|
23028
23577
|
if (!isJsonValue(value)) {
|
|
@@ -23049,6 +23598,7 @@ class UruApiClient {
|
|
|
23049
23598
|
const query = new URLSearchParams({ offset: String(offset), limit: String(limit) });
|
|
23050
23599
|
const response = await this.fetchImpl(`${this.apiUrl}/api/tool-control-plane/tool-output/${encodeURIComponent(resultRef)}?${query.toString()}`, {
|
|
23051
23600
|
method: "GET",
|
|
23601
|
+
redirect: "error",
|
|
23052
23602
|
...this.signal === undefined ? {} : { signal: this.signal },
|
|
23053
23603
|
headers: {
|
|
23054
23604
|
Authorization: `Bearer ${this.token}`,
|
|
@@ -23090,6 +23640,7 @@ class UruApiClient {
|
|
|
23090
23640
|
async request(path, options) {
|
|
23091
23641
|
const init = {
|
|
23092
23642
|
method: options.method,
|
|
23643
|
+
redirect: "error",
|
|
23093
23644
|
...this.signal === undefined ? {} : { signal: this.signal },
|
|
23094
23645
|
headers: {
|
|
23095
23646
|
Authorization: `Bearer ${this.token}`,
|
|
@@ -23097,6 +23648,7 @@ class UruApiClient {
|
|
|
23097
23648
|
"X-Uru-Client-Name": "uru-cli",
|
|
23098
23649
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
23099
23650
|
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
23651
|
+
...options.idempotencyKey === undefined ? {} : { "Idempotency-Key": options.idempotencyKey },
|
|
23100
23652
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
23101
23653
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
23102
23654
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -23117,6 +23669,7 @@ class UruApiClient {
|
|
|
23117
23669
|
async requestStream(path, options, onEvent) {
|
|
23118
23670
|
const init = {
|
|
23119
23671
|
method: options.method,
|
|
23672
|
+
redirect: "error",
|
|
23120
23673
|
...this.signal === undefined ? {} : { signal: this.signal },
|
|
23121
23674
|
headers: {
|
|
23122
23675
|
Authorization: `Bearer ${this.token}`,
|
|
@@ -23147,10 +23700,11 @@ class UruApiClient {
|
|
|
23147
23700
|
}
|
|
23148
23701
|
async requestSseStream(path, options = {}) {
|
|
23149
23702
|
const query = buildQueryString(options.query);
|
|
23150
|
-
const signals = [this.signal, options.signal].filter((
|
|
23703
|
+
const signals = [this.signal, options.signal].filter((signal) => signal !== undefined);
|
|
23151
23704
|
const signal = signals.length === 0 ? undefined : signals.length === 1 ? signals[0] : AbortSignal.any(signals);
|
|
23152
23705
|
const init = {
|
|
23153
23706
|
method: options.method ?? "GET",
|
|
23707
|
+
redirect: "error",
|
|
23154
23708
|
...signal === undefined ? {} : { signal },
|
|
23155
23709
|
headers: {
|
|
23156
23710
|
Authorization: `Bearer ${this.token}`,
|
|
@@ -23240,12 +23794,12 @@ function retainedActionResultRef(body) {
|
|
|
23240
23794
|
const handle = owned ? body["result"] : body;
|
|
23241
23795
|
if (!isJsonObject(handle))
|
|
23242
23796
|
return null;
|
|
23243
|
-
const
|
|
23797
|
+
const meta = handle["_meta"];
|
|
23244
23798
|
const structured = handle["structuredContent"];
|
|
23245
|
-
if (!isJsonObject(
|
|
23799
|
+
if (!isJsonObject(meta) || !isJsonObject(structured))
|
|
23246
23800
|
return null;
|
|
23247
|
-
const resultRef =
|
|
23248
|
-
if (
|
|
23801
|
+
const resultRef = meta[RESULT_REF_META_KEY];
|
|
23802
|
+
if (meta[RESULT_RETENTION_META_KEY] !== RESULT_RETENTION_META_VALUE || typeof resultRef !== "string" || !TOOL_OUTPUT_REF_PATTERN.test(resultRef)) {
|
|
23249
23803
|
return null;
|
|
23250
23804
|
}
|
|
23251
23805
|
return structured["retained"] === true && structured["resultRef"] === resultRef ? resultRef : null;
|
|
@@ -23267,39 +23821,42 @@ function nestedMcpToolError(result, requestBody) {
|
|
|
23267
23821
|
const structured = isJsonObject(result["structuredContent"]) ? result["structuredContent"] : result;
|
|
23268
23822
|
const httpStatus = typeof structured["httpStatus"] === "number" ? structured["httpStatus"] : typeof structured["http_status"] === "number" ? structured["http_status"] : typeof structured["status"] === "number" ? structured["status"] : undefined;
|
|
23269
23823
|
const errorPayload = httpStatus === undefined ? structured : { ...structured, httpStatus };
|
|
23270
|
-
const
|
|
23824
|
+
const error = toolTransportError(errorPayload, requestBody);
|
|
23271
23825
|
const redactions = collectSensitiveValues(requestBody);
|
|
23272
23826
|
const errorCode = pickString(structured, ["errorCode", "error_code", "code"]) ?? "tool_execution_failed";
|
|
23273
|
-
const details = isJsonObject(structured["details"]) ? structured["details"] : isJsonObject(structured["errorDetails"]) ? structured["errorDetails"] :
|
|
23827
|
+
const details = isJsonObject(structured["details"]) ? structured["details"] : isJsonObject(structured["errorDetails"]) ? structured["errorDetails"] : error.details;
|
|
23274
23828
|
const safeDetails = details === undefined ? undefined : redactJsonDetails(details, redactions);
|
|
23275
|
-
const errorId = pickString(structured, ["errorId", "error_id"]) ??
|
|
23276
|
-
const tip = pickString(structured, ["tip"]) ??
|
|
23829
|
+
const errorId = pickString(structured, ["errorId", "error_id"]) ?? error.errorId;
|
|
23830
|
+
const tip = pickString(structured, ["tip"]) ?? error.tip;
|
|
23277
23831
|
const safeTip = tip === undefined ? undefined : stripTerminalControl(redactValues(tip, redactions));
|
|
23278
|
-
return new CliError(
|
|
23279
|
-
code:
|
|
23832
|
+
return new CliError(error.message, {
|
|
23833
|
+
code: isWorkspaceCallRefusalCode(errorCode) ? ExitCode.Failure : error.exitCode,
|
|
23280
23834
|
errorCode,
|
|
23281
23835
|
...errorId === undefined ? {} : { errorId },
|
|
23282
23836
|
...httpStatus === undefined ? {} : { httpStatus },
|
|
23283
|
-
...
|
|
23837
|
+
...error.retryable === true ? { retryable: true } : {},
|
|
23284
23838
|
...safeTip === undefined ? {} : { tip: safeTip },
|
|
23285
23839
|
...safeDetails === undefined ? {} : { details: safeDetails }
|
|
23286
23840
|
});
|
|
23287
23841
|
}
|
|
23288
23842
|
function toolTransportError(body, requestBody) {
|
|
23289
|
-
const
|
|
23843
|
+
const error = apiError(200, body, requestBody);
|
|
23290
23844
|
if (!isRecord(body) || typeof body["httpStatus"] !== "number") {
|
|
23291
|
-
return
|
|
23845
|
+
return error;
|
|
23292
23846
|
}
|
|
23293
23847
|
const status = body["httpStatus"];
|
|
23294
|
-
const message = `${
|
|
23848
|
+
const message = `${error.message} (HTTP ${status})`;
|
|
23295
23849
|
const structured = {
|
|
23296
|
-
...
|
|
23297
|
-
...
|
|
23298
|
-
...
|
|
23299
|
-
...
|
|
23850
|
+
...error.errorCode === undefined ? {} : { errorCode: error.errorCode },
|
|
23851
|
+
...error.errorId === undefined ? {} : { errorId: error.errorId },
|
|
23852
|
+
...error.details === undefined ? {} : { details: error.details },
|
|
23853
|
+
...error.tip === undefined ? {} : { tip: error.tip },
|
|
23300
23854
|
...isTransientFailure(status, body) ? { retryable: true } : {},
|
|
23301
23855
|
httpStatus: status
|
|
23302
23856
|
};
|
|
23857
|
+
if (isWorkspaceCallRefusalCode(error.errorCode)) {
|
|
23858
|
+
return new CliError(message, { code: ExitCode.Failure, ...structured });
|
|
23859
|
+
}
|
|
23303
23860
|
if (status === 409) {
|
|
23304
23861
|
return new CliError(message, {
|
|
23305
23862
|
code: ExitCode.Conflict,
|
|
@@ -23313,7 +23870,7 @@ function toolTransportError(body, requestBody) {
|
|
|
23313
23870
|
});
|
|
23314
23871
|
}
|
|
23315
23872
|
return new CliError(message, {
|
|
23316
|
-
code:
|
|
23873
|
+
code: error.exitCode,
|
|
23317
23874
|
...structured
|
|
23318
23875
|
});
|
|
23319
23876
|
}
|
|
@@ -23419,6 +23976,9 @@ function errorEnvelope(payload) {
|
|
|
23419
23976
|
const nested = payload["error"];
|
|
23420
23977
|
return isRecord(nested) ? nested : payload;
|
|
23421
23978
|
}
|
|
23979
|
+
function isWorkspaceCallRefusalCode(code) {
|
|
23980
|
+
return code !== undefined && WORKSPACE_CALL_REFUSAL_CODES.some((candidate) => candidate === code);
|
|
23981
|
+
}
|
|
23422
23982
|
function apiError(status, payload, requestBody) {
|
|
23423
23983
|
const envelope = errorEnvelope(payload);
|
|
23424
23984
|
const redactions = collectSensitiveValues(requestBody);
|
|
@@ -23437,7 +23997,7 @@ function apiError(status, payload, requestBody) {
|
|
|
23437
23997
|
const safeServerDetails = isJsonObject(serverDetails) ? redactJsonDetails(serverDetails, redactions) : undefined;
|
|
23438
23998
|
return new CliError(message, {
|
|
23439
23999
|
...tip === undefined ? {} : { tip: stripTerminalControl(redactValues(tip, redactions)) },
|
|
23440
|
-
code: status === 401 ? ExitCode.AuthRequired : ExitCode.Failure,
|
|
24000
|
+
code: status === 401 && !isWorkspaceCallRefusalCode(backendCode) ? ExitCode.AuthRequired : ExitCode.Failure,
|
|
23441
24001
|
errorCode: backendCode ?? (status === 401 ? "auth_required" : status === 403 ? "permission_denied" : "api_request_failed"),
|
|
23442
24002
|
httpStatus: status,
|
|
23443
24003
|
...errorId === undefined ? {} : { errorId },
|
|
@@ -23559,9 +24119,9 @@ function redactJsonValue(value, values) {
|
|
|
23559
24119
|
}
|
|
23560
24120
|
return value;
|
|
23561
24121
|
}
|
|
23562
|
-
function stringArrayField(
|
|
24122
|
+
function stringArrayField(record, keys) {
|
|
23563
24123
|
for (const key of keys) {
|
|
23564
|
-
const value =
|
|
24124
|
+
const value = record[key];
|
|
23565
24125
|
if (!Array.isArray(value)) {
|
|
23566
24126
|
continue;
|
|
23567
24127
|
}
|
|
@@ -23605,18 +24165,13 @@ function normalizeTool(value) {
|
|
|
23605
24165
|
|
|
23606
24166
|
// src/core/whoami.ts
|
|
23607
24167
|
async function whoamiCore(dependencies) {
|
|
23608
|
-
|
|
24168
|
+
return new UruApiClient({
|
|
23609
24169
|
token: dependencies.token,
|
|
23610
24170
|
...dependencies.apiUrl === undefined ? {} : { apiUrl: dependencies.apiUrl },
|
|
23611
24171
|
...dependencies.workspaceId === undefined ? {} : { workspaceId: dependencies.workspaceId },
|
|
23612
24172
|
...dependencies.fetch === undefined ? {} : { fetch: dependencies.fetch },
|
|
23613
24173
|
...dependencies.signal === undefined ? {} : { signal: dependencies.signal }
|
|
23614
24174
|
}).validateToken();
|
|
23615
|
-
const workspaceIsAuthorized = dependencies.workspaceId === undefined || identity.workspaceId === dependencies.workspaceId || identity.workspaces.some((workspace) => workspace.id === dependencies.workspaceId);
|
|
23616
|
-
if (!workspaceIsAuthorized && dependencies.workspaceId !== undefined) {
|
|
23617
|
-
throw new UruSdkError("workspace_not_authorized", `Workspace ${dependencies.workspaceId} is not authorized for this token.`);
|
|
23618
|
-
}
|
|
23619
|
-
return identity;
|
|
23620
24175
|
}
|
|
23621
24176
|
|
|
23622
24177
|
class UruSdkError extends Error {
|
|
@@ -23686,6 +24241,6 @@ function optionalString(value, name) {
|
|
|
23686
24241
|
return value;
|
|
23687
24242
|
}
|
|
23688
24243
|
export {
|
|
23689
|
-
|
|
23690
|
-
|
|
24244
|
+
UruSdkError,
|
|
24245
|
+
createUruClient
|
|
23691
24246
|
};
|