@pagelines/sdk 1.0.775 → 1.0.776
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentProvider.js +2 -2
- package/dist/AgentProvider.js.map +1 -1
- package/dist/contract.js +617 -612
- package/dist/contract.js.map +1 -1
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -2988,7 +2988,11 @@ var C = /*@__PURE__*/ $constructor("ZodStringFormat", (e, t) => {
|
|
|
2988
2988
|
y.init(e, t), dn.init(e, t);
|
|
2989
2989
|
}), pn = /*@__PURE__*/ $constructor("ZodEmail", (e, t) => {
|
|
2990
2990
|
Ye.init(e, t), C.init(e, t);
|
|
2991
|
-
})
|
|
2991
|
+
});
|
|
2992
|
+
function email(e) {
|
|
2993
|
+
return /* @__PURE__ */ _email(pn, e);
|
|
2994
|
+
}
|
|
2995
|
+
var mn = /*@__PURE__*/ $constructor("ZodGUID", (e, t) => {
|
|
2992
2996
|
qe.init(e, t), C.init(e, t);
|
|
2993
2997
|
}), w = /*@__PURE__*/ $constructor("ZodUUID", (e, t) => {
|
|
2994
2998
|
Je.init(e, t), C.init(e, t);
|
|
@@ -3191,10 +3195,10 @@ var zn = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
|
|
|
3191
3195
|
return omit(this, e);
|
|
3192
3196
|
},
|
|
3193
3197
|
partial(...e) {
|
|
3194
|
-
return partial(
|
|
3198
|
+
return partial(qn, this, e[0]);
|
|
3195
3199
|
},
|
|
3196
3200
|
required(...e) {
|
|
3197
|
-
return required(
|
|
3201
|
+
return required(Qn, this, e[0]);
|
|
3198
3202
|
}
|
|
3199
3203
|
});
|
|
3200
3204
|
});
|
|
@@ -3252,14 +3256,14 @@ function record(e, t, n) {
|
|
|
3252
3256
|
...normalizeParams(n)
|
|
3253
3257
|
});
|
|
3254
3258
|
}
|
|
3255
|
-
var
|
|
3259
|
+
var Wn = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
3256
3260
|
At.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
3257
3261
|
let n = new Set(Object.keys(t.entries));
|
|
3258
3262
|
e.extract = (e, r) => {
|
|
3259
3263
|
let i = {};
|
|
3260
3264
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
3261
3265
|
else throw Error(`Key ${r} not found in enum`);
|
|
3262
|
-
return new
|
|
3266
|
+
return new Wn({
|
|
3263
3267
|
...t,
|
|
3264
3268
|
checks: [],
|
|
3265
3269
|
...normalizeParams(r),
|
|
@@ -3269,7 +3273,7 @@ var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3269
3273
|
let i = { ...t.entries };
|
|
3270
3274
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
3271
3275
|
else throw Error(`Key ${t} not found in enum`);
|
|
3272
|
-
return new
|
|
3276
|
+
return new Wn({
|
|
3273
3277
|
...t,
|
|
3274
3278
|
checks: [],
|
|
3275
3279
|
...normalizeParams(r),
|
|
@@ -3278,26 +3282,26 @@ var T = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
|
|
|
3278
3282
|
};
|
|
3279
3283
|
});
|
|
3280
3284
|
function _enum(e, t) {
|
|
3281
|
-
return new
|
|
3285
|
+
return new Wn({
|
|
3282
3286
|
type: "enum",
|
|
3283
3287
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
3284
3288
|
...normalizeParams(t)
|
|
3285
3289
|
});
|
|
3286
3290
|
}
|
|
3287
|
-
var
|
|
3291
|
+
var Gn = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
|
|
3288
3292
|
jt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
3289
3293
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
3290
3294
|
return t.values[0];
|
|
3291
3295
|
} });
|
|
3292
3296
|
});
|
|
3293
3297
|
function literal(e, t) {
|
|
3294
|
-
return new
|
|
3298
|
+
return new Gn({
|
|
3295
3299
|
type: "literal",
|
|
3296
3300
|
values: Array.isArray(e) ? e : [e],
|
|
3297
3301
|
...normalizeParams(t)
|
|
3298
3302
|
});
|
|
3299
3303
|
}
|
|
3300
|
-
var
|
|
3304
|
+
var Kn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
3301
3305
|
Mt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
|
|
3302
3306
|
if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
|
|
3303
3307
|
n.addIssue = (r) => {
|
|
@@ -3312,43 +3316,43 @@ var Gn = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
|
|
|
3312
3316
|
};
|
|
3313
3317
|
});
|
|
3314
3318
|
function transform(e) {
|
|
3315
|
-
return new
|
|
3319
|
+
return new Kn({
|
|
3316
3320
|
type: "transform",
|
|
3317
3321
|
transform: e
|
|
3318
3322
|
});
|
|
3319
3323
|
}
|
|
3320
|
-
var
|
|
3324
|
+
var qn = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
|
|
3321
3325
|
Nt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3322
3326
|
});
|
|
3323
3327
|
function optional(e) {
|
|
3324
|
-
return new
|
|
3328
|
+
return new qn({
|
|
3325
3329
|
type: "optional",
|
|
3326
3330
|
innerType: e
|
|
3327
3331
|
});
|
|
3328
3332
|
}
|
|
3329
|
-
var
|
|
3333
|
+
var Jn = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
|
|
3330
3334
|
Pt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3331
3335
|
});
|
|
3332
3336
|
function exactOptional(e) {
|
|
3333
|
-
return new
|
|
3337
|
+
return new Jn({
|
|
3334
3338
|
type: "optional",
|
|
3335
3339
|
innerType: e
|
|
3336
3340
|
});
|
|
3337
3341
|
}
|
|
3338
|
-
var
|
|
3342
|
+
var Yn = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
|
|
3339
3343
|
Ft.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3340
3344
|
});
|
|
3341
3345
|
function nullable(e) {
|
|
3342
|
-
return new
|
|
3346
|
+
return new Yn({
|
|
3343
3347
|
type: "nullable",
|
|
3344
3348
|
innerType: e
|
|
3345
3349
|
});
|
|
3346
3350
|
}
|
|
3347
|
-
var
|
|
3351
|
+
var Xn = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
|
|
3348
3352
|
It.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3349
3353
|
});
|
|
3350
3354
|
function _default(e, t) {
|
|
3351
|
-
return new
|
|
3355
|
+
return new Xn({
|
|
3352
3356
|
type: "default",
|
|
3353
3357
|
innerType: e,
|
|
3354
3358
|
get defaultValue() {
|
|
@@ -3356,11 +3360,11 @@ function _default(e, t) {
|
|
|
3356
3360
|
}
|
|
3357
3361
|
});
|
|
3358
3362
|
}
|
|
3359
|
-
var
|
|
3363
|
+
var Zn = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
|
|
3360
3364
|
Lt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3361
3365
|
});
|
|
3362
3366
|
function prefault(e, t) {
|
|
3363
|
-
return new
|
|
3367
|
+
return new Zn({
|
|
3364
3368
|
type: "prefault",
|
|
3365
3369
|
innerType: e,
|
|
3366
3370
|
get defaultValue() {
|
|
@@ -3368,58 +3372,58 @@ function prefault(e, t) {
|
|
|
3368
3372
|
}
|
|
3369
3373
|
});
|
|
3370
3374
|
}
|
|
3371
|
-
var
|
|
3375
|
+
var Qn = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
|
|
3372
3376
|
Rt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3373
3377
|
});
|
|
3374
3378
|
function nonoptional(e, t) {
|
|
3375
|
-
return new
|
|
3379
|
+
return new Qn({
|
|
3376
3380
|
type: "nonoptional",
|
|
3377
3381
|
innerType: e,
|
|
3378
3382
|
...normalizeParams(t)
|
|
3379
3383
|
});
|
|
3380
3384
|
}
|
|
3381
|
-
var
|
|
3385
|
+
var $n = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
|
|
3382
3386
|
zt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3383
3387
|
});
|
|
3384
3388
|
function _catch(e, t) {
|
|
3385
|
-
return new
|
|
3389
|
+
return new $n({
|
|
3386
3390
|
type: "catch",
|
|
3387
3391
|
innerType: e,
|
|
3388
3392
|
catchValue: typeof t == "function" ? t : () => t
|
|
3389
3393
|
});
|
|
3390
3394
|
}
|
|
3391
|
-
var
|
|
3395
|
+
var er = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
|
|
3392
3396
|
Bt.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3393
3397
|
});
|
|
3394
3398
|
function pipe(e, t) {
|
|
3395
|
-
return new
|
|
3399
|
+
return new er({
|
|
3396
3400
|
type: "pipe",
|
|
3397
3401
|
in: e,
|
|
3398
3402
|
out: t
|
|
3399
3403
|
});
|
|
3400
3404
|
}
|
|
3401
|
-
var
|
|
3402
|
-
|
|
3403
|
-
}),
|
|
3405
|
+
var tr = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
|
|
3406
|
+
er.init(e, t), Vt.init(e, t);
|
|
3407
|
+
}), nr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
|
|
3404
3408
|
Ht.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3405
3409
|
});
|
|
3406
3410
|
function readonly(e) {
|
|
3407
|
-
return new
|
|
3411
|
+
return new nr({
|
|
3408
3412
|
type: "readonly",
|
|
3409
3413
|
innerType: e
|
|
3410
3414
|
});
|
|
3411
3415
|
}
|
|
3412
|
-
var
|
|
3416
|
+
var rr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
|
|
3413
3417
|
Ut.init(e, t), S.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
|
|
3414
3418
|
});
|
|
3415
3419
|
function refine(e, t = {}) {
|
|
3416
|
-
return /* @__PURE__ */ _refine(
|
|
3420
|
+
return /* @__PURE__ */ _refine(rr, e, t);
|
|
3417
3421
|
}
|
|
3418
3422
|
function superRefine(e, t) {
|
|
3419
3423
|
return /* @__PURE__ */ _superRefine(e, t);
|
|
3420
3424
|
}
|
|
3421
3425
|
function preprocess(e, t) {
|
|
3422
|
-
return new
|
|
3426
|
+
return new tr({
|
|
3423
3427
|
type: "pipe",
|
|
3424
3428
|
in: transform(e),
|
|
3425
3429
|
out: t
|
|
@@ -3427,15 +3431,15 @@ function preprocess(e, t) {
|
|
|
3427
3431
|
}
|
|
3428
3432
|
//#endregion
|
|
3429
3433
|
//#region ../core/dist/heartbeat.js
|
|
3430
|
-
var
|
|
3434
|
+
var ir = _enum([
|
|
3431
3435
|
"briefing",
|
|
3432
3436
|
"checkin",
|
|
3433
3437
|
"closeout"
|
|
3434
|
-
]),
|
|
3438
|
+
]), T = string().regex(/^([01]\d|2[0-3]):[0-5]\d$/), ar = {
|
|
3435
3439
|
briefing: "07:30",
|
|
3436
3440
|
checkin: "12:30",
|
|
3437
3441
|
closeout: "17:30"
|
|
3438
|
-
},
|
|
3442
|
+
}, E = globalThis.process, D = typeof window < "u", O = E !== void 0 && !D, k = D ? typeof window < "u" && window.location && !window.location.hostname.includes("localhost") : O && E !== void 0 && E.env?.NODE_ENV === "production", or = !k, A = {
|
|
3439
3443
|
error: {
|
|
3440
3444
|
priority: 50,
|
|
3441
3445
|
color: "#FF0000",
|
|
@@ -3461,7 +3465,7 @@ var rr = _enum([
|
|
|
3461
3465
|
color: "#5233FF",
|
|
3462
3466
|
nodeColor: "\x1B[35m"
|
|
3463
3467
|
}
|
|
3464
|
-
},
|
|
3468
|
+
}, sr = [
|
|
3465
3469
|
"password",
|
|
3466
3470
|
"token",
|
|
3467
3471
|
"secret",
|
|
@@ -3471,11 +3475,11 @@ var rr = _enum([
|
|
|
3471
3475
|
];
|
|
3472
3476
|
function isSensitiveKey(e) {
|
|
3473
3477
|
let t = e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3474
|
-
if (
|
|
3478
|
+
if (sr.includes(t)) return !0;
|
|
3475
3479
|
let n = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
|
|
3476
|
-
return
|
|
3480
|
+
return sr.some((e) => n.includes(e));
|
|
3477
3481
|
}
|
|
3478
|
-
var
|
|
3482
|
+
var cr = /* @__PURE__ */ new Set([
|
|
3479
3483
|
"CONNECT_TIMEOUT",
|
|
3480
3484
|
"ECONNREFUSED",
|
|
3481
3485
|
"ECONNRESET",
|
|
@@ -3487,34 +3491,34 @@ var sr = /* @__PURE__ */ new Set([
|
|
|
3487
3491
|
function infraErrorCode(e, t = 0) {
|
|
3488
3492
|
if (t > 4 || !(e instanceof Error)) return;
|
|
3489
3493
|
let n = e.code;
|
|
3490
|
-
return typeof n == "string" &&
|
|
3494
|
+
return typeof n == "string" && cr.has(n) ? n : infraErrorCode(e.cause, t + 1);
|
|
3491
3495
|
}
|
|
3492
3496
|
function firstAppFrame(e) {
|
|
3493
3497
|
if (e) return e.split("\n").find((e) => (e.includes("/src/") || e.includes("/packages/")) && !e.includes("node_modules"))?.trim();
|
|
3494
3498
|
}
|
|
3495
|
-
var
|
|
3499
|
+
var j = class Logger {
|
|
3496
3500
|
constructor(e = {}, t) {
|
|
3497
3501
|
this.enabledInBrowser = !1, this.context = t, this.settings = {
|
|
3498
3502
|
enabled: e.enabled ?? !0,
|
|
3499
3503
|
minLevel: e.minLevel ?? this.getDefaultLevel(),
|
|
3500
3504
|
timestamps: e.timestamps ?? !0
|
|
3501
|
-
},
|
|
3505
|
+
}, D && this.initBrowserLogging();
|
|
3502
3506
|
}
|
|
3503
3507
|
getDefaultLevel() {
|
|
3504
|
-
if (
|
|
3505
|
-
if (
|
|
3508
|
+
if (O && E !== void 0 && E.env?.LOG_LEVEL) return E.env.LOG_LEVEL;
|
|
3509
|
+
if (D && typeof localStorage < "u" && typeof localStorage.getItem == "function") {
|
|
3506
3510
|
let e = localStorage.getItem("PAGELINES_LOG_LEVEL");
|
|
3507
3511
|
if (e) return e;
|
|
3508
3512
|
}
|
|
3509
3513
|
return "info";
|
|
3510
3514
|
}
|
|
3511
3515
|
initBrowserLogging() {
|
|
3512
|
-
if (!
|
|
3516
|
+
if (!D) return;
|
|
3513
3517
|
let e = typeof localStorage?.getItem == "function" && localStorage.getItem("PAGELINES_LOG") === "true", t = window.location?.hostname || "";
|
|
3514
|
-
this.enabledInBrowser =
|
|
3518
|
+
this.enabledInBrowser = or || e || t === "localhost" || t.includes("127.0.0.1"), k && !e && !Logger.hasShownHelp && (console.log("%cPageLines Logger (disabled in production)", "color: #888; font-size: 12px"), console.log("%cTo enable: localStorage.setItem(\"PAGELINES_LOG\", \"true\")", "color: #888; font-size: 11px"), Logger.hasShownHelp = !0);
|
|
3515
3519
|
}
|
|
3516
3520
|
shouldLog(e) {
|
|
3517
|
-
return !this.settings.enabled ||
|
|
3521
|
+
return !this.settings.enabled || D && !this.enabledInBrowser ? !1 : A[e].priority >= A[this.settings.minLevel].priority;
|
|
3518
3522
|
}
|
|
3519
3523
|
formatTimestamp() {
|
|
3520
3524
|
return (/* @__PURE__ */ new Date()).toLocaleTimeString("en-GB", {
|
|
@@ -3550,16 +3554,16 @@ var M = class Logger {
|
|
|
3550
3554
|
let i = {
|
|
3551
3555
|
name: e.name,
|
|
3552
3556
|
message: e.message,
|
|
3553
|
-
stack:
|
|
3557
|
+
stack: k ? e.stack?.split("\n").slice(0, 3).join("\n") : e.stack
|
|
3554
3558
|
};
|
|
3555
3559
|
for (let [r, a] of Object.entries(e)) i[r] = this.formatData(a, t, n + 1);
|
|
3556
3560
|
return "cause" in e && (i.cause = this.formatData(e.cause, t, n + 1)), this.redactSensitive(i);
|
|
3557
3561
|
}
|
|
3558
3562
|
if (e instanceof Date) return e.toISOString();
|
|
3559
3563
|
if (typeof e != "object") return e;
|
|
3560
|
-
if (Array.isArray(e)) return e.length > 20 &&
|
|
3564
|
+
if (Array.isArray(e)) return e.length > 20 && k ? `Array(${e.length}) [${e.slice(0, 3).map((e) => this.formatData(e, t, n + 1)).join(", ")}, ...]` : e.map((e) => this.formatData(e, t, n + 1));
|
|
3561
3565
|
try {
|
|
3562
|
-
let r = {}, i = Object.entries(e), a =
|
|
3566
|
+
let r = {}, i = Object.entries(e), a = k ? 50 : 200;
|
|
3563
3567
|
for (let [e, o] of i.slice(0, a)) r[e] = this.formatData(o, t, n + 1);
|
|
3564
3568
|
return i.length > a && (r["..."] = `${i.length - a} more properties`), this.redactSensitive(r);
|
|
3565
3569
|
} catch {
|
|
@@ -3567,14 +3571,14 @@ var M = class Logger {
|
|
|
3567
3571
|
}
|
|
3568
3572
|
}
|
|
3569
3573
|
logToBrowser(e) {
|
|
3570
|
-
if (!
|
|
3571
|
-
let { level: t, description: n, context: r, data: i, error: a } = e, o =
|
|
3574
|
+
if (!D || !this.shouldLog(e.level)) return;
|
|
3575
|
+
let { level: t, description: n, context: r, data: i, error: a } = e, o = A[t], s = `[${r || this.context || "www"}] ${t.toUpperCase()}:`, c = `color: ${o.color}; font-weight: bold;`;
|
|
3572
3576
|
i === void 0 ? console[t](`%c${s}`, c, n) : console[t](`%c${s}`, c, n, this.formatData(i)), a && (a instanceof Error ? console.error(a) : console.error("Error details:", a));
|
|
3573
3577
|
}
|
|
3574
3578
|
logToNode(e) {
|
|
3575
|
-
if (!
|
|
3579
|
+
if (!O || !this.shouldLog(e.level)) return;
|
|
3576
3580
|
let { level: t, description: n, context: r, data: i, error: a } = e, o = r || this.context || "www";
|
|
3577
|
-
if (
|
|
3581
|
+
if (k) {
|
|
3578
3582
|
let e = {
|
|
3579
3583
|
timestamp: this.formatISOTimestamp(),
|
|
3580
3584
|
level: t.toUpperCase(),
|
|
@@ -3586,12 +3590,12 @@ var M = class Logger {
|
|
|
3586
3590
|
let r = JSON.stringify(e);
|
|
3587
3591
|
t === "trace" ? console.log(r) : console[t](r);
|
|
3588
3592
|
} else {
|
|
3589
|
-
let e =
|
|
3593
|
+
let e = A[t], r = this.formatTimestamp(), s = "\x1B[0m", c = `[2m${r}${s} ${e.nodeColor || ""}${t.toUpperCase()} (${o}):${s} ${n}`;
|
|
3590
3594
|
console[t](c), i !== void 0 && console.log(JSON.stringify(this.formatData(i), null, 2)), a && (a instanceof Error ? (console.error(`\x1B[31mError:${s}`, a.message), a.stack && console.error(`\x1B[90m${a.stack}${s}`)) : console.error("Error:", a));
|
|
3591
3595
|
}
|
|
3592
3596
|
}
|
|
3593
3597
|
log(e) {
|
|
3594
|
-
|
|
3598
|
+
D ? this.logToBrowser(e) : O && this.logToNode(e);
|
|
3595
3599
|
}
|
|
3596
3600
|
error(e, t) {
|
|
3597
3601
|
this.log({
|
|
@@ -3634,7 +3638,7 @@ var M = class Logger {
|
|
|
3634
3638
|
});
|
|
3635
3639
|
}
|
|
3636
3640
|
isEnabled() {
|
|
3637
|
-
return !
|
|
3641
|
+
return !D || this.enabledInBrowser;
|
|
3638
3642
|
}
|
|
3639
3643
|
setLevel(e) {
|
|
3640
3644
|
this.settings.minLevel = e;
|
|
@@ -3652,11 +3656,11 @@ var M = class Logger {
|
|
|
3652
3656
|
};
|
|
3653
3657
|
}
|
|
3654
3658
|
};
|
|
3655
|
-
|
|
3659
|
+
j.hasShownHelp = !1;
|
|
3656
3660
|
function createLogger(e) {
|
|
3657
|
-
return new
|
|
3661
|
+
return new j({}, e);
|
|
3658
3662
|
}
|
|
3659
|
-
var
|
|
3663
|
+
var M = new j(), lr = M.error.bind(M), ur = M.warn.bind(M), dr = M.info.bind(M), fr = M.debug.bind(M), pr = M.trace.bind(M), SettingsObject = class {
|
|
3660
3664
|
constructor(e, t) {
|
|
3661
3665
|
this.objectName = e, this.settings = t, this.logger = createLogger(e);
|
|
3662
3666
|
}
|
|
@@ -3684,7 +3688,7 @@ function uuid() {
|
|
|
3684
3688
|
}
|
|
3685
3689
|
//#endregion
|
|
3686
3690
|
//#region ../core/dist/utils/color.js
|
|
3687
|
-
var
|
|
3691
|
+
var mr = {
|
|
3688
3692
|
green: {
|
|
3689
3693
|
50: "oklch(98.2% 0.018 155.826)",
|
|
3690
3694
|
100: "oklch(96.2% 0.044 156.743)",
|
|
@@ -3817,7 +3821,7 @@ var pr = {
|
|
|
3817
3821
|
}
|
|
3818
3822
|
};
|
|
3819
3823
|
function getColorSchemeOklch(e) {
|
|
3820
|
-
return
|
|
3824
|
+
return mr[e] || mr.blue;
|
|
3821
3825
|
}
|
|
3822
3826
|
//#endregion
|
|
3823
3827
|
//#region ../core/dist/utils/cookies.js
|
|
@@ -3890,7 +3894,7 @@ var CookieUtil = class {
|
|
|
3890
3894
|
getDeviceId() {
|
|
3891
3895
|
return this.getCookie(this.deviceIdName);
|
|
3892
3896
|
}
|
|
3893
|
-
},
|
|
3897
|
+
}, hr = new CookieUtil(), N = {
|
|
3894
3898
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
3895
3899
|
AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
|
|
3896
3900
|
AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
|
|
@@ -3906,16 +3910,16 @@ var CookieUtil = class {
|
|
|
3906
3910
|
AUTH_UNKNOWN: "Something went wrong. Try again."
|
|
3907
3911
|
};
|
|
3908
3912
|
function mapAuthErrorCode(e) {
|
|
3909
|
-
return e ?
|
|
3913
|
+
return e ? N[e] ?? N.AUTH_UNKNOWN : N.AUTH_UNKNOWN;
|
|
3910
3914
|
}
|
|
3911
3915
|
function authErrorMessage(e) {
|
|
3912
|
-
return e.code ? mapAuthErrorCode(e.code) : e.error ||
|
|
3916
|
+
return e.code ? mapAuthErrorCode(e.code) : e.error || N.AUTH_UNKNOWN;
|
|
3913
3917
|
}
|
|
3914
3918
|
var AuthApiError = class extends Error {
|
|
3915
3919
|
constructor(e, t) {
|
|
3916
3920
|
super(e), this.name = "AuthApiError", this.code = t;
|
|
3917
3921
|
}
|
|
3918
|
-
},
|
|
3922
|
+
}, gr = object({
|
|
3919
3923
|
platform: _enum([
|
|
3920
3924
|
"linkedin",
|
|
3921
3925
|
"x",
|
|
@@ -3932,38 +3936,38 @@ var AuthApiError = class extends Error {
|
|
|
3932
3936
|
]),
|
|
3933
3937
|
handle: string(),
|
|
3934
3938
|
url: string().optional()
|
|
3935
|
-
}),
|
|
3939
|
+
}), _r = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(gr)), vr = [
|
|
3936
3940
|
"image",
|
|
3937
3941
|
"audio",
|
|
3938
3942
|
"video",
|
|
3939
3943
|
"document"
|
|
3940
|
-
],
|
|
3944
|
+
], P = _enum(vr), yr = [
|
|
3941
3945
|
"avatar",
|
|
3942
3946
|
"cover",
|
|
3943
3947
|
"general"
|
|
3944
|
-
],
|
|
3948
|
+
], br = _enum(yr), xr = _enum([
|
|
3945
3949
|
"processing",
|
|
3946
3950
|
"active",
|
|
3947
3951
|
"failed",
|
|
3948
3952
|
"deleted"
|
|
3949
|
-
]),
|
|
3953
|
+
]), Sr = _enum([
|
|
3950
3954
|
"low",
|
|
3951
3955
|
"standard",
|
|
3952
3956
|
"high"
|
|
3953
|
-
]),
|
|
3957
|
+
]), Cr = _enum([
|
|
3954
3958
|
"jpg",
|
|
3955
3959
|
"jpeg",
|
|
3956
3960
|
"png",
|
|
3957
3961
|
"gif",
|
|
3958
3962
|
"webp",
|
|
3959
3963
|
"svg"
|
|
3960
|
-
]),
|
|
3964
|
+
]), wr = _enum([
|
|
3961
3965
|
"mp4",
|
|
3962
3966
|
"webm",
|
|
3963
3967
|
"ogg",
|
|
3964
3968
|
"mov",
|
|
3965
3969
|
"avi"
|
|
3966
|
-
]),
|
|
3970
|
+
]), Tr = _enum([
|
|
3967
3971
|
"mp3",
|
|
3968
3972
|
"wav",
|
|
3969
3973
|
"ogg",
|
|
@@ -3973,7 +3977,7 @@ var AuthApiError = class extends Error {
|
|
|
3973
3977
|
"webm",
|
|
3974
3978
|
"m4a",
|
|
3975
3979
|
"mp4"
|
|
3976
|
-
]),
|
|
3980
|
+
]), F = object({
|
|
3977
3981
|
mediaId: string(),
|
|
3978
3982
|
userId: string(),
|
|
3979
3983
|
orgId: string(),
|
|
@@ -3983,56 +3987,56 @@ var AuthApiError = class extends Error {
|
|
|
3983
3987
|
size: number(),
|
|
3984
3988
|
src: string(),
|
|
3985
3989
|
alt: string().optional(),
|
|
3986
|
-
context:
|
|
3987
|
-
status:
|
|
3988
|
-
quality:
|
|
3990
|
+
context: br.default("general"),
|
|
3991
|
+
status: xr.default("processing"),
|
|
3992
|
+
quality: Sr.default("standard"),
|
|
3989
3993
|
createdAt: string().optional(),
|
|
3990
3994
|
updatedAt: string().optional()
|
|
3991
3995
|
}).extend({
|
|
3992
|
-
type:
|
|
3993
|
-
mediaType:
|
|
3996
|
+
type: P.optional(),
|
|
3997
|
+
mediaType: P.optional(),
|
|
3994
3998
|
className: string().optional(),
|
|
3995
3999
|
width: number().optional(),
|
|
3996
4000
|
height: number().optional(),
|
|
3997
4001
|
duration: number().optional(),
|
|
3998
4002
|
blurhash: string().optional()
|
|
3999
|
-
}).partial(),
|
|
4003
|
+
}).partial(), Er = object({
|
|
4000
4004
|
duration: number().optional(),
|
|
4001
4005
|
thumbnail: string().optional(),
|
|
4002
4006
|
autoplay: boolean().optional(),
|
|
4003
4007
|
loop: boolean().optional(),
|
|
4004
4008
|
muted: boolean().optional(),
|
|
4005
4009
|
controls: boolean().optional()
|
|
4006
|
-
}),
|
|
4010
|
+
}), Dr = object({
|
|
4007
4011
|
duration: number().optional(),
|
|
4008
4012
|
autoplay: boolean().optional(),
|
|
4009
4013
|
loop: boolean().optional(),
|
|
4010
4014
|
muted: boolean().optional(),
|
|
4011
4015
|
controls: boolean().optional()
|
|
4012
|
-
}),
|
|
4016
|
+
}), Or = F.extend({
|
|
4013
4017
|
mediaType: literal("image"),
|
|
4014
|
-
imageFormat:
|
|
4015
|
-
}),
|
|
4018
|
+
imageFormat: Cr.optional()
|
|
4019
|
+
}), kr = F.extend({
|
|
4016
4020
|
mediaType: literal("video"),
|
|
4017
|
-
videoFormat:
|
|
4018
|
-
video:
|
|
4019
|
-
}),
|
|
4021
|
+
videoFormat: wr.optional(),
|
|
4022
|
+
video: Er.optional()
|
|
4023
|
+
}), Ar = F.extend({
|
|
4020
4024
|
mediaType: literal("audio"),
|
|
4021
|
-
audioFormat:
|
|
4022
|
-
audio:
|
|
4023
|
-
}),
|
|
4024
|
-
Er,
|
|
4025
|
-
Dr,
|
|
4025
|
+
audioFormat: Tr.optional(),
|
|
4026
|
+
audio: Dr.optional()
|
|
4027
|
+
}), jr = F.extend({ mediaType: literal("document") }), Mr = discriminatedUnion("mediaType", [
|
|
4026
4028
|
Or,
|
|
4027
|
-
kr
|
|
4028
|
-
|
|
4029
|
+
kr,
|
|
4030
|
+
Ar,
|
|
4031
|
+
jr
|
|
4032
|
+
]), Nr = _enum([
|
|
4029
4033
|
"xxs",
|
|
4030
4034
|
"xs",
|
|
4031
4035
|
"sm",
|
|
4032
4036
|
"md",
|
|
4033
4037
|
"lg",
|
|
4034
4038
|
"xl"
|
|
4035
|
-
]),
|
|
4039
|
+
]), Pr = _enum([
|
|
4036
4040
|
"primary",
|
|
4037
4041
|
"default",
|
|
4038
4042
|
"overlay",
|
|
@@ -4040,20 +4044,20 @@ var AuthApiError = class extends Error {
|
|
|
4040
4044
|
"green",
|
|
4041
4045
|
"indigo",
|
|
4042
4046
|
"orange"
|
|
4043
|
-
]),
|
|
4047
|
+
]), Fr = _enum([
|
|
4044
4048
|
"ghost",
|
|
4045
4049
|
"link",
|
|
4046
4050
|
"outline",
|
|
4047
4051
|
"solid"
|
|
4048
|
-
]),
|
|
4052
|
+
]), I = object({
|
|
4049
4053
|
key: string().optional(),
|
|
4050
4054
|
label: string().optional(),
|
|
4051
4055
|
href: string().optional(),
|
|
4052
|
-
size:
|
|
4053
|
-
theme:
|
|
4054
|
-
design:
|
|
4055
|
-
icon: union([string(),
|
|
4056
|
-
iconAfter: union([string(),
|
|
4056
|
+
size: Nr.optional(),
|
|
4057
|
+
theme: Pr.optional(),
|
|
4058
|
+
design: Fr.optional(),
|
|
4059
|
+
icon: union([string(), F]).optional(),
|
|
4060
|
+
iconAfter: union([string(), F]).optional(),
|
|
4057
4061
|
rounding: _enum([
|
|
4058
4062
|
"full",
|
|
4059
4063
|
"md",
|
|
@@ -4070,12 +4074,12 @@ var AuthApiError = class extends Error {
|
|
|
4070
4074
|
"submit",
|
|
4071
4075
|
"reset"
|
|
4072
4076
|
]).optional()
|
|
4073
|
-
}),
|
|
4074
|
-
buttons: array(
|
|
4075
|
-
size:
|
|
4076
|
-
theme:
|
|
4077
|
-
design:
|
|
4078
|
-
}),
|
|
4077
|
+
}), Ir = object({
|
|
4078
|
+
buttons: array(I).optional(),
|
|
4079
|
+
size: Nr.optional(),
|
|
4080
|
+
theme: Pr.optional(),
|
|
4081
|
+
design: Fr.optional()
|
|
4082
|
+
}), Lr = object({
|
|
4079
4083
|
key: string().optional(),
|
|
4080
4084
|
id: string().optional(),
|
|
4081
4085
|
label: string().optional(),
|
|
@@ -4086,11 +4090,11 @@ var AuthApiError = class extends Error {
|
|
|
4086
4090
|
info: string().optional(),
|
|
4087
4091
|
count: number().optional(),
|
|
4088
4092
|
className: string().optional(),
|
|
4089
|
-
media:
|
|
4090
|
-
subMedia:
|
|
4091
|
-
cover:
|
|
4092
|
-
icon:
|
|
4093
|
-
iconAfter:
|
|
4093
|
+
media: F.optional(),
|
|
4094
|
+
subMedia: F.optional(),
|
|
4095
|
+
cover: F.optional(),
|
|
4096
|
+
icon: F.optional(),
|
|
4097
|
+
iconAfter: F.optional(),
|
|
4094
4098
|
subIcon: string().optional(),
|
|
4095
4099
|
href: string().optional(),
|
|
4096
4100
|
target: _enum(["_self", "_blank"]).optional(),
|
|
@@ -4102,14 +4106,14 @@ var AuthApiError = class extends Error {
|
|
|
4102
4106
|
priority: number().optional(),
|
|
4103
4107
|
testId: string().optional(),
|
|
4104
4108
|
items: array(any()).optional(),
|
|
4105
|
-
badges: array(
|
|
4106
|
-
meta: array(
|
|
4109
|
+
badges: array(I).optional(),
|
|
4110
|
+
meta: array(I).optional(),
|
|
4107
4111
|
menuItems: array(any()).optional()
|
|
4108
|
-
}),
|
|
4112
|
+
}), Rr = object({
|
|
4109
4113
|
title: string().optional(),
|
|
4110
4114
|
description: string().optional(),
|
|
4111
|
-
items: array(
|
|
4112
|
-
}),
|
|
4115
|
+
items: array(Lr).optional()
|
|
4116
|
+
}), zr = {
|
|
4113
4117
|
colors: {
|
|
4114
4118
|
primary: "#3b82f6",
|
|
4115
4119
|
secondary: "#93c5fd",
|
|
@@ -4128,7 +4132,7 @@ var AuthApiError = class extends Error {
|
|
|
4128
4132
|
compact: 4,
|
|
4129
4133
|
comfortable: 6
|
|
4130
4134
|
}
|
|
4131
|
-
},
|
|
4135
|
+
}, Br = [
|
|
4132
4136
|
["#6366f1", "#8b5cf6"],
|
|
4133
4137
|
["#3b82f6", "#06b6d4"],
|
|
4134
4138
|
["#10b981", "#34d399"],
|
|
@@ -4144,7 +4148,7 @@ function hashName(e) {
|
|
|
4144
4148
|
return Math.abs(t);
|
|
4145
4149
|
}
|
|
4146
4150
|
function getGradientPair(e) {
|
|
4147
|
-
return
|
|
4151
|
+
return Br[(e ? hashName(e) : 0) % Br.length];
|
|
4148
4152
|
}
|
|
4149
4153
|
function getDefaultAvatarUrl(e) {
|
|
4150
4154
|
let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
|
|
@@ -4174,7 +4178,7 @@ function getWorkspaceMarkUrl(e) {
|
|
|
4174
4178
|
}
|
|
4175
4179
|
//#endregion
|
|
4176
4180
|
//#region ../core/dist/chatIssue.js
|
|
4177
|
-
var
|
|
4181
|
+
var Vr = _enum(["account", "error"]), Hr = [
|
|
4178
4182
|
"billing_no_plan",
|
|
4179
4183
|
"billing_seat_limit",
|
|
4180
4184
|
"billing_past_due",
|
|
@@ -4190,14 +4194,14 @@ var zr = _enum(["account", "error"]), Br = [
|
|
|
4190
4194
|
"empty_stream",
|
|
4191
4195
|
"tool_protocol",
|
|
4192
4196
|
"rate_limit"
|
|
4193
|
-
],
|
|
4194
|
-
bucket:
|
|
4195
|
-
code: _enum(
|
|
4197
|
+
], L = object({
|
|
4198
|
+
bucket: Vr,
|
|
4199
|
+
code: _enum(Hr),
|
|
4196
4200
|
title: string(),
|
|
4197
4201
|
help: string().optional(),
|
|
4198
4202
|
actionLabel: string(),
|
|
4199
4203
|
actionUrl: string()
|
|
4200
|
-
}),
|
|
4204
|
+
}), R = {
|
|
4201
4205
|
billing_no_plan: {
|
|
4202
4206
|
bucket: "account",
|
|
4203
4207
|
title: "Payment method needed",
|
|
@@ -4305,10 +4309,10 @@ var zr = _enum(["account", "error"]), Br = [
|
|
|
4305
4309
|
}
|
|
4306
4310
|
};
|
|
4307
4311
|
function chatIssueCatalogLines() {
|
|
4308
|
-
return
|
|
4312
|
+
return Hr.map((e) => `- ${e}: ${R[e].oneLine}`).join("\n");
|
|
4309
4313
|
}
|
|
4310
4314
|
function buildChatIssue(e) {
|
|
4311
|
-
let t =
|
|
4315
|
+
let t = R[e.code];
|
|
4312
4316
|
return {
|
|
4313
4317
|
bucket: t.bucket,
|
|
4314
4318
|
code: e.code,
|
|
@@ -4329,12 +4333,12 @@ function chatIssueToErrorData(e) {
|
|
|
4329
4333
|
};
|
|
4330
4334
|
}
|
|
4331
4335
|
function renderIssueAsMarkdown(e) {
|
|
4332
|
-
let t =
|
|
4336
|
+
let t = R[e.code];
|
|
4333
4337
|
return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
|
|
4334
4338
|
}
|
|
4335
4339
|
//#endregion
|
|
4336
4340
|
//#region ../core/dist/wire/agent-state.js
|
|
4337
|
-
var
|
|
4341
|
+
var z = _enum(["active", "stopped"]), B = _enum([
|
|
4338
4342
|
"unknown",
|
|
4339
4343
|
"stopped",
|
|
4340
4344
|
"starting",
|
|
@@ -4343,28 +4347,28 @@ var V = _enum(["active", "stopped"]), H = _enum([
|
|
|
4343
4347
|
"unreachable",
|
|
4344
4348
|
"stopping",
|
|
4345
4349
|
"error"
|
|
4346
|
-
]),
|
|
4350
|
+
]), Ur = _enum([
|
|
4347
4351
|
"wake",
|
|
4348
4352
|
"sleep",
|
|
4349
4353
|
"restart",
|
|
4350
4354
|
"rebuild",
|
|
4351
4355
|
"config_apply"
|
|
4352
|
-
]),
|
|
4356
|
+
]), Wr = _enum([
|
|
4353
4357
|
"running",
|
|
4354
4358
|
"coalesced",
|
|
4355
4359
|
"failed"
|
|
4356
|
-
]),
|
|
4357
|
-
kind:
|
|
4358
|
-
status:
|
|
4360
|
+
]), Gr = object({
|
|
4361
|
+
kind: Ur,
|
|
4362
|
+
status: Wr,
|
|
4359
4363
|
startedAt: string().datetime(),
|
|
4360
4364
|
detail: string().optional()
|
|
4361
|
-
}).strict(),
|
|
4362
|
-
lifecycle:
|
|
4365
|
+
}).strict(), Kr = object({
|
|
4366
|
+
lifecycle: B,
|
|
4363
4367
|
changedAt: string().datetime().optional(),
|
|
4364
4368
|
detail: string().optional(),
|
|
4365
|
-
blocker:
|
|
4366
|
-
operation:
|
|
4367
|
-
}).strict(),
|
|
4369
|
+
blocker: L.optional(),
|
|
4370
|
+
operation: Gr.optional()
|
|
4371
|
+
}).strict(), qr = Object.freeze({ lifecycle: "unknown" }), Jr = {
|
|
4368
4372
|
running: "green",
|
|
4369
4373
|
starting: "amber",
|
|
4370
4374
|
stopping: "amber",
|
|
@@ -4373,7 +4377,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
|
|
|
4373
4377
|
error: "red",
|
|
4374
4378
|
stopped: "grey",
|
|
4375
4379
|
unknown: "grey"
|
|
4376
|
-
},
|
|
4380
|
+
}, Yr = {
|
|
4377
4381
|
running: "Online",
|
|
4378
4382
|
starting: "Waking up",
|
|
4379
4383
|
stopping: "Stopping",
|
|
@@ -4382,7 +4386,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
|
|
|
4382
4386
|
error: "Error",
|
|
4383
4387
|
stopped: "Asleep",
|
|
4384
4388
|
unknown: "Checking"
|
|
4385
|
-
},
|
|
4389
|
+
}, Xr = {
|
|
4386
4390
|
wake: "Waking up",
|
|
4387
4391
|
sleep: "Stopping",
|
|
4388
4392
|
restart: "Restarting",
|
|
@@ -4390,7 +4394,7 @@ var V = _enum(["active", "stopped"]), H = _enum([
|
|
|
4390
4394
|
config_apply: "Applying config"
|
|
4391
4395
|
};
|
|
4392
4396
|
function toAgentState(e, t) {
|
|
4393
|
-
let n = e.operation, r =
|
|
4397
|
+
let n = e.operation, r = Yr[e.lifecycle] ?? "Unknown", i = Jr[e.lifecycle] ?? "grey", a = n ? Xr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
|
|
4394
4398
|
return {
|
|
4395
4399
|
...e,
|
|
4396
4400
|
color: s,
|
|
@@ -4398,7 +4402,7 @@ function toAgentState(e, t) {
|
|
|
4398
4402
|
tooltip: c
|
|
4399
4403
|
};
|
|
4400
4404
|
}
|
|
4401
|
-
var
|
|
4405
|
+
var Zr = _enum([
|
|
4402
4406
|
"wake",
|
|
4403
4407
|
"sleep",
|
|
4404
4408
|
"restart",
|
|
@@ -4422,7 +4426,7 @@ function isAgentReady(e) {
|
|
|
4422
4426
|
}
|
|
4423
4427
|
//#endregion
|
|
4424
4428
|
//#region ../core/dist/wire/voice-session.js
|
|
4425
|
-
var
|
|
4429
|
+
var V = _enum(["woman", "man"]), H = [
|
|
4426
4430
|
{
|
|
4427
4431
|
key: "lauren",
|
|
4428
4432
|
gender: "woman",
|
|
@@ -4503,27 +4507,28 @@ var U = _enum(["woman", "man"]), W = [
|
|
|
4503
4507
|
accent: "American",
|
|
4504
4508
|
character: "Easygoing and plain-spoken"
|
|
4505
4509
|
}
|
|
4506
|
-
],
|
|
4510
|
+
], U = _enum(H.map((e) => e.key)), Qr = { gender: "man" };
|
|
4507
4511
|
function resolveVoice(e) {
|
|
4508
|
-
let t =
|
|
4509
|
-
return t?.gender === e.gender ? t :
|
|
4512
|
+
let t = H.find((t) => t.key === e.voiceKey);
|
|
4513
|
+
return t?.gender === e.gender ? t : H.find((t) => t.gender === e.gender && "isDefault" in t);
|
|
4510
4514
|
}
|
|
4511
|
-
var
|
|
4515
|
+
var $r = object({ conversationId: string().min(1) }).strict(), ei = object({
|
|
4512
4516
|
conversationId: string().min(1),
|
|
4513
4517
|
agentId: string().min(1),
|
|
4514
4518
|
personaName: string().min(1),
|
|
4515
4519
|
personaTitle: string().max(255).nullable().optional(),
|
|
4516
|
-
gender:
|
|
4517
|
-
voiceKey:
|
|
4520
|
+
gender: V,
|
|
4521
|
+
voiceKey: U.nullable(),
|
|
4518
4522
|
sessionScope: _enum([
|
|
4519
4523
|
"private",
|
|
4520
4524
|
"org",
|
|
4521
4525
|
"public"
|
|
4522
4526
|
]),
|
|
4523
4527
|
threadSummary: string(),
|
|
4528
|
+
surfaceGuidance: string().optional(),
|
|
4524
4529
|
maxDurationSeconds: number().int().positive().max(3600).optional(),
|
|
4525
4530
|
expiresAt: datetime()
|
|
4526
|
-
}),
|
|
4531
|
+
}), ti = _enum(["elevenlabs", "livekit"]), ni = discriminatedUnion("provider", [object({
|
|
4527
4532
|
provider: literal("elevenlabs"),
|
|
4528
4533
|
conversationToken: string().min(1),
|
|
4529
4534
|
voiceId: string().min(1)
|
|
@@ -4532,7 +4537,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4532
4537
|
url: string().min(1),
|
|
4533
4538
|
token: string().min(1),
|
|
4534
4539
|
room: string().min(1)
|
|
4535
|
-
}).strict()]),
|
|
4540
|
+
}).strict()]), ri = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4536
4541
|
platform: _enum([
|
|
4537
4542
|
"linkedin",
|
|
4538
4543
|
"x",
|
|
@@ -4547,11 +4552,11 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4547
4552
|
"website"
|
|
4548
4553
|
]),
|
|
4549
4554
|
handle: string()
|
|
4550
|
-
}))),
|
|
4555
|
+
}))), ii = _enum([
|
|
4551
4556
|
"essential",
|
|
4552
4557
|
"professional",
|
|
4553
4558
|
"business"
|
|
4554
|
-
]),
|
|
4559
|
+
]), ai = object({
|
|
4555
4560
|
agentId: string().optional(),
|
|
4556
4561
|
handle: string().optional(),
|
|
4557
4562
|
ownerId: string().optional(),
|
|
@@ -4563,25 +4568,25 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4563
4568
|
entityType: string().optional(),
|
|
4564
4569
|
avatarId: string().nullable().optional(),
|
|
4565
4570
|
coverId: string().nullable().optional(),
|
|
4566
|
-
avatar:
|
|
4567
|
-
cover:
|
|
4571
|
+
avatar: F.optional(),
|
|
4572
|
+
cover: F.optional(),
|
|
4568
4573
|
email: string().nullable().optional(),
|
|
4569
4574
|
website: string().url().nullable().optional(),
|
|
4570
|
-
accounts:
|
|
4575
|
+
accounts: ri.nullable().optional(),
|
|
4571
4576
|
model: string().nullable().optional(),
|
|
4572
|
-
gender:
|
|
4573
|
-
voiceKey:
|
|
4574
|
-
billingTier:
|
|
4577
|
+
gender: V.optional(),
|
|
4578
|
+
voiceKey: U.nullable().optional(),
|
|
4579
|
+
billingTier: ii.optional(),
|
|
4575
4580
|
lastActiveAt: string().nullable().optional(),
|
|
4576
4581
|
lastMessageAt: string().nullable().optional(),
|
|
4577
4582
|
runtime: string().default("hermes").optional(),
|
|
4578
4583
|
timezone: string().optional(),
|
|
4579
|
-
desiredStatus:
|
|
4584
|
+
desiredStatus: z.nullable().optional(),
|
|
4580
4585
|
automationPrimaryChannel: string().optional(),
|
|
4581
4586
|
heartbeatEnabled: boolean().optional(),
|
|
4582
|
-
heartbeatBriefingTime:
|
|
4583
|
-
heartbeatCheckinTime:
|
|
4584
|
-
heartbeatCloseoutTime:
|
|
4587
|
+
heartbeatBriefingTime: T.nullable().optional(),
|
|
4588
|
+
heartbeatCheckinTime: T.nullable().optional(),
|
|
4589
|
+
heartbeatCloseoutTime: T.nullable().optional(),
|
|
4585
4590
|
onboardedAt: string().nullable().optional(),
|
|
4586
4591
|
org: object({
|
|
4587
4592
|
orgId: string(),
|
|
@@ -4594,7 +4599,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4594
4599
|
owner: object({
|
|
4595
4600
|
userId: string(),
|
|
4596
4601
|
fullName: string().optional(),
|
|
4597
|
-
avatar:
|
|
4602
|
+
avatar: F.optional()
|
|
4598
4603
|
}).optional(),
|
|
4599
4604
|
visibility: _enum([
|
|
4600
4605
|
"private",
|
|
@@ -4604,14 +4609,14 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4604
4609
|
status: string().optional(),
|
|
4605
4610
|
createdAt: string().optional(),
|
|
4606
4611
|
updatedAt: string().optional()
|
|
4607
|
-
}),
|
|
4612
|
+
}), oi = ai.extend({
|
|
4608
4613
|
isPrimary: boolean().optional(),
|
|
4609
|
-
lifecycle:
|
|
4614
|
+
lifecycle: B.optional(),
|
|
4610
4615
|
changedAt: string().datetime().optional(),
|
|
4611
4616
|
detail: string().optional(),
|
|
4612
|
-
blocker:
|
|
4613
|
-
operation:
|
|
4614
|
-
}),
|
|
4617
|
+
blocker: L.optional(),
|
|
4618
|
+
operation: Gr.optional()
|
|
4619
|
+
}), si = Object.keys(oi.shape), ci = class Agent extends SettingsObject {
|
|
4615
4620
|
constructor(e) {
|
|
4616
4621
|
let t = "config" in e ? {
|
|
4617
4622
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
@@ -4629,7 +4634,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4629
4634
|
}), this.displayName = n(() => this.name.value || "Unnamed"), this.hasCustomHandle = n(() => !!this.handle.value && !/\d{13,}$/.test(this.handle.value)), this.displayHandle = n(() => this.hasCustomHandle.value ? `@${this.handle.value}` : void 0), this.isContextPrimary = n(() => !!this.agentId.value && this.agentId.value === this.settings.context?.primaryAgentId), this.wakeUpLabel = n(() => `Wake up ${this.displayName.value}`), this.manageLabel = n(() => `Manage ${this.displayName.value}`), this.hasReceivedMessage = n(() => !!this.lastMessageAt.value);
|
|
4630
4635
|
}
|
|
4631
4636
|
merge(e) {
|
|
4632
|
-
for (let t of
|
|
4637
|
+
for (let t of si) {
|
|
4633
4638
|
if (!(t in e)) continue;
|
|
4634
4639
|
let n = this[t];
|
|
4635
4640
|
n && typeof n == "object" && "value" in n && (n.value = e[t]);
|
|
@@ -4637,7 +4642,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4637
4642
|
}
|
|
4638
4643
|
toConfig() {
|
|
4639
4644
|
let e = {};
|
|
4640
|
-
for (let t of
|
|
4645
|
+
for (let t of si) {
|
|
4641
4646
|
let n = this[t];
|
|
4642
4647
|
n && typeof n == "object" && "value" in n && (e[t] = n.value);
|
|
4643
4648
|
}
|
|
@@ -4648,24 +4653,24 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
|
|
|
4648
4653
|
}
|
|
4649
4654
|
};
|
|
4650
4655
|
function createAgent(e) {
|
|
4651
|
-
return new
|
|
4656
|
+
return new ci(e);
|
|
4652
4657
|
}
|
|
4653
4658
|
function createAgents(e) {
|
|
4654
|
-
return e.configs.map((t) => new
|
|
4659
|
+
return e.configs.map((t) => new ci({
|
|
4655
4660
|
config: t,
|
|
4656
4661
|
context: e.context
|
|
4657
4662
|
}));
|
|
4658
4663
|
}
|
|
4659
4664
|
//#endregion
|
|
4660
4665
|
//#region ../core/dist/types/user.js
|
|
4661
|
-
var
|
|
4666
|
+
var li = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), G = string().trim().toLowerCase().pipe(email()), ui = object({
|
|
4662
4667
|
userId: string(),
|
|
4663
4668
|
email: string().optional(),
|
|
4664
4669
|
handle: string().optional(),
|
|
4665
4670
|
fullName: string().optional(),
|
|
4666
|
-
linkedinUsername:
|
|
4671
|
+
linkedinUsername: W.optional(),
|
|
4667
4672
|
avatarId: string().optional(),
|
|
4668
|
-
avatar:
|
|
4673
|
+
avatar: F.optional(),
|
|
4669
4674
|
isEmailVerified: boolean().optional(),
|
|
4670
4675
|
primaryAgentId: string().optional(),
|
|
4671
4676
|
primaryOrgId: string().optional(),
|
|
@@ -4680,9 +4685,9 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
|
|
|
4680
4685
|
createdAt: string().optional(),
|
|
4681
4686
|
updatedAt: string().optional(),
|
|
4682
4687
|
onboarded: boolean().optional()
|
|
4683
|
-
}),
|
|
4688
|
+
}), di = object({
|
|
4684
4689
|
name: string().min(1).max(100).optional(),
|
|
4685
|
-
linkedinUsername:
|
|
4690
|
+
linkedinUsername: W.nullable().optional(),
|
|
4686
4691
|
avatar: object({
|
|
4687
4692
|
src: string(),
|
|
4688
4693
|
mediaId: string()
|
|
@@ -4691,31 +4696,31 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
|
|
|
4691
4696
|
primaryOrgId: string().optional(),
|
|
4692
4697
|
lastActiveOrgId: string().optional(),
|
|
4693
4698
|
onboarding: any().optional()
|
|
4694
|
-
}).partial(),
|
|
4695
|
-
email:
|
|
4699
|
+
}).partial(), fi = object({ email: G }), pi = object({
|
|
4700
|
+
email: G,
|
|
4696
4701
|
password: string().min(8, "Password must be at least 8 characters")
|
|
4697
|
-
}),
|
|
4698
|
-
email:
|
|
4702
|
+
}), mi = object({
|
|
4703
|
+
email: G,
|
|
4699
4704
|
password: string().min(8, "Password must be at least 8 characters"),
|
|
4700
4705
|
fullName: string().min(1, "Name is required")
|
|
4701
|
-
}),
|
|
4702
|
-
email:
|
|
4706
|
+
}), hi = object({
|
|
4707
|
+
email: G,
|
|
4703
4708
|
code: string().min(6, "Verification code is required"),
|
|
4704
4709
|
timezone: string().max(64).optional()
|
|
4705
|
-
}),
|
|
4706
|
-
email:
|
|
4710
|
+
}), gi = object({
|
|
4711
|
+
email: G,
|
|
4707
4712
|
code: string().min(6, "Verification code is required"),
|
|
4708
4713
|
newPassword: string().min(8, "New password must be at least 8 characters")
|
|
4709
|
-
}),
|
|
4714
|
+
}), _i = object({ newEmail: G }), vi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), yi = object({
|
|
4710
4715
|
credential: string().optional(),
|
|
4711
4716
|
code: string().optional(),
|
|
4712
4717
|
timezone: string().max(64).optional(),
|
|
4713
4718
|
source: _enum(["web", "ios"]).optional()
|
|
4714
|
-
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }),
|
|
4719
|
+
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), bi = object({
|
|
4715
4720
|
identityToken: string().min(1),
|
|
4716
4721
|
fullName: string().optional(),
|
|
4717
4722
|
timezone: string().max(64).optional()
|
|
4718
|
-
}),
|
|
4723
|
+
}), K = object({
|
|
4719
4724
|
orgId: string().optional(),
|
|
4720
4725
|
handle: string().optional(),
|
|
4721
4726
|
name: string().optional(),
|
|
@@ -4723,10 +4728,10 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
|
|
|
4723
4728
|
website: string().url().nullable().optional(),
|
|
4724
4729
|
summary: string().nullable().optional(),
|
|
4725
4730
|
avatarId: string().nullable().optional(),
|
|
4726
|
-
avatar:
|
|
4731
|
+
avatar: F.optional(),
|
|
4727
4732
|
coverId: string().nullable().optional(),
|
|
4728
|
-
cover:
|
|
4729
|
-
accounts:
|
|
4733
|
+
cover: F.optional(),
|
|
4734
|
+
accounts: _r.nullable().optional(),
|
|
4730
4735
|
ownerId: string().optional(),
|
|
4731
4736
|
isPersonal: boolean().optional(),
|
|
4732
4737
|
stripeCustomerIdTest: string().nullable().optional(),
|
|
@@ -4739,12 +4744,12 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
|
|
|
4739
4744
|
billingLastSyncedAt: string().nullable().optional(),
|
|
4740
4745
|
syncedPeriodStart: string().nullable().optional(),
|
|
4741
4746
|
syncedPeriodEnd: string().nullable().optional(),
|
|
4742
|
-
trialEligibility:
|
|
4747
|
+
trialEligibility: li.optional(),
|
|
4743
4748
|
onboarding: any().optional(),
|
|
4744
4749
|
status: string().optional(),
|
|
4745
4750
|
createdAt: string().optional(),
|
|
4746
4751
|
updatedAt: string().optional()
|
|
4747
|
-
}),
|
|
4752
|
+
}), xi = K.extend({
|
|
4748
4753
|
defaultAgent: object({
|
|
4749
4754
|
agentId: string(),
|
|
4750
4755
|
handle: string(),
|
|
@@ -4752,22 +4757,22 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
|
|
|
4752
4757
|
orgId: string()
|
|
4753
4758
|
}),
|
|
4754
4759
|
onboardingCompleted: boolean().optional()
|
|
4755
|
-
}),
|
|
4760
|
+
}), Si = object({
|
|
4756
4761
|
completedAt: string().datetime().optional(),
|
|
4757
4762
|
setupBy: string().optional(),
|
|
4758
4763
|
billingSetup: boolean().optional(),
|
|
4759
4764
|
teamInvitesSetup: boolean().optional(),
|
|
4760
4765
|
brandingSetup: boolean().optional(),
|
|
4761
4766
|
domainsSetup: boolean().optional()
|
|
4762
|
-
}),
|
|
4767
|
+
}), Ci = object({
|
|
4763
4768
|
membershipId: string(),
|
|
4764
4769
|
orgId: string(),
|
|
4765
4770
|
name: string(),
|
|
4766
4771
|
handle: string(),
|
|
4767
4772
|
avatarId: string().optional(),
|
|
4768
|
-
avatar:
|
|
4773
|
+
avatar: F.optional(),
|
|
4769
4774
|
coverId: string().optional(),
|
|
4770
|
-
cover:
|
|
4775
|
+
cover: F.optional(),
|
|
4771
4776
|
role: _enum([
|
|
4772
4777
|
"owner",
|
|
4773
4778
|
"admin",
|
|
@@ -4777,11 +4782,11 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
|
|
|
4777
4782
|
memberCount: number().optional(),
|
|
4778
4783
|
agentCount: number().optional(),
|
|
4779
4784
|
joinedAt: string().datetime(),
|
|
4780
|
-
trialEligibility:
|
|
4781
|
-
onboarding:
|
|
4782
|
-
}),
|
|
4783
|
-
orgs: array(
|
|
4784
|
-
agents: array(
|
|
4785
|
+
trialEligibility: li.optional(),
|
|
4786
|
+
onboarding: Si.optional()
|
|
4787
|
+
}), wi = ui.extend({
|
|
4788
|
+
orgs: array(Ci).optional(),
|
|
4789
|
+
agents: array(ai).optional()
|
|
4785
4790
|
});
|
|
4786
4791
|
//#endregion
|
|
4787
4792
|
//#region ../core/dist/state.js
|
|
@@ -4804,7 +4809,7 @@ function derive(e) {
|
|
|
4804
4809
|
}
|
|
4805
4810
|
//#endregion
|
|
4806
4811
|
//#region ../core/dist/bot-ua.js
|
|
4807
|
-
var
|
|
4812
|
+
var Ti = "pagelines-agent/1.0", Ei = [
|
|
4808
4813
|
"[SILENT]",
|
|
4809
4814
|
"SILENT",
|
|
4810
4815
|
"NO_REPLY",
|
|
@@ -4818,21 +4823,21 @@ var Si = "pagelines-agent/1.0", Ci = [
|
|
|
4818
4823
|
"[NO_OP]",
|
|
4819
4824
|
"[NO OP]",
|
|
4820
4825
|
"HEARTBEAT_OK"
|
|
4821
|
-
],
|
|
4826
|
+
], Di = new Set(Ei);
|
|
4822
4827
|
function normalizeAssistantControl(e) {
|
|
4823
4828
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4824
4829
|
}
|
|
4825
4830
|
function isAssistantSilenceControl(e) {
|
|
4826
4831
|
let t = normalizeAssistantControl(e);
|
|
4827
|
-
return t.length <= 64 &&
|
|
4832
|
+
return t.length <= 64 && Di.has(t);
|
|
4828
4833
|
}
|
|
4829
4834
|
function isAssistantSilenceControlPrefix(e) {
|
|
4830
4835
|
let t = normalizeAssistantControl(e);
|
|
4831
|
-
return t.length <= 64 &&
|
|
4836
|
+
return t.length <= 64 && Ei.some((e) => e.startsWith(t));
|
|
4832
4837
|
}
|
|
4833
4838
|
//#endregion
|
|
4834
4839
|
//#region ../core/dist/timingBudgets.js
|
|
4835
|
-
var
|
|
4840
|
+
var Oi = {
|
|
4836
4841
|
wake: 300 * 1e3,
|
|
4837
4842
|
bootGrace: 420 * 1e3,
|
|
4838
4843
|
stop: 30 * 1e3
|
|
@@ -4850,16 +4855,16 @@ function formatBudgetDuration(e) {
|
|
|
4850
4855
|
}
|
|
4851
4856
|
//#endregion
|
|
4852
4857
|
//#region ../core/dist/paths.js
|
|
4853
|
-
var
|
|
4858
|
+
var ki = "/api/bot-api", Ai = "/api/bot-api/v1";
|
|
4854
4859
|
function botApiLlmUrl(e) {
|
|
4855
|
-
return `${e}${
|
|
4860
|
+
return `${e}${Ai}`;
|
|
4856
4861
|
}
|
|
4857
4862
|
function botApiUrl(e) {
|
|
4858
|
-
return `${e}${
|
|
4863
|
+
return `${e}${ki}`;
|
|
4859
4864
|
}
|
|
4860
4865
|
//#endregion
|
|
4861
4866
|
//#region ../core/dist/errorCopy.js
|
|
4862
|
-
var
|
|
4867
|
+
var q = {
|
|
4863
4868
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
4864
4869
|
AUTH_INVALID: "Your session has expired. Sign in again to continue.",
|
|
4865
4870
|
AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
|
|
@@ -4890,7 +4895,7 @@ var Y = {
|
|
|
4890
4895
|
TIMEOUT: "The request took too long. Try again in a moment.",
|
|
4891
4896
|
FORBIDDEN: "You don't have access to this.",
|
|
4892
4897
|
RATE_LIMITED: "Too many requests. Wait a moment and try again."
|
|
4893
|
-
},
|
|
4898
|
+
}, ji = {
|
|
4894
4899
|
notFound: "Not found. Try refreshing.",
|
|
4895
4900
|
busy: "Busy — try again in a moment.",
|
|
4896
4901
|
rateLimited: "Too many requests. Wait a moment.",
|
|
@@ -4900,14 +4905,14 @@ var Y = {
|
|
|
4900
4905
|
fatal: "Something's broken and won't resolve on retry. Contact support."
|
|
4901
4906
|
};
|
|
4902
4907
|
function errorCopy(e, t) {
|
|
4903
|
-
return e && e in
|
|
4908
|
+
return e && e in q ? q[e] : t;
|
|
4904
4909
|
}
|
|
4905
4910
|
function errorFromApiResponse(e, t) {
|
|
4906
|
-
return e.code && e.code in
|
|
4911
|
+
return e.code && e.code in q ? q[e.code] : e.providerErrorKind && ji[e.providerErrorKind] ? ji[e.providerErrorKind] : e.error || t;
|
|
4907
4912
|
}
|
|
4908
4913
|
//#endregion
|
|
4909
4914
|
//#region ../core/dist/retryPolicy.js
|
|
4910
|
-
var
|
|
4915
|
+
var Mi = {
|
|
4911
4916
|
shouldRetry: !1,
|
|
4912
4917
|
maxAttempts: 1,
|
|
4913
4918
|
strategy: "none",
|
|
@@ -4925,7 +4930,7 @@ function retryPolicyFor(e) {
|
|
|
4925
4930
|
"FORBIDDEN",
|
|
4926
4931
|
"AGENT_NOT_FOUND"
|
|
4927
4932
|
]);
|
|
4928
|
-
if (e.code && t.has(e.code)) return
|
|
4933
|
+
if (e.code && t.has(e.code)) return Mi;
|
|
4929
4934
|
switch (e.providerErrorKind) {
|
|
4930
4935
|
case "busy": return {
|
|
4931
4936
|
shouldRetry: !0,
|
|
@@ -4960,33 +4965,33 @@ function retryPolicyFor(e) {
|
|
|
4960
4965
|
};
|
|
4961
4966
|
case "notFound":
|
|
4962
4967
|
case "invalidConfig":
|
|
4963
|
-
case "fatal": return
|
|
4964
|
-
default: return
|
|
4968
|
+
case "fatal": return Mi;
|
|
4969
|
+
default: return Mi;
|
|
4965
4970
|
}
|
|
4966
4971
|
}
|
|
4967
4972
|
//#endregion
|
|
4968
4973
|
//#region ../core/dist/wire/timezone.js
|
|
4969
|
-
var
|
|
4974
|
+
var J = string().min(1).max(64).refine((e) => {
|
|
4970
4975
|
try {
|
|
4971
4976
|
return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
|
|
4972
4977
|
} catch {
|
|
4973
4978
|
return !1;
|
|
4974
4979
|
}
|
|
4975
|
-
}, "Invalid IANA timezone"),
|
|
4980
|
+
}, "Invalid IANA timezone"), Ni = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Pi = object({
|
|
4976
4981
|
orgId: string(),
|
|
4977
4982
|
name: string().min(1).max(100),
|
|
4978
4983
|
emoji: string().max(8).nullable().optional(),
|
|
4979
4984
|
title: string().max(120).nullable().optional(),
|
|
4980
4985
|
summary: string().max(500).nullable().optional(),
|
|
4981
4986
|
handle: string().min(2).max(50).optional(),
|
|
4982
|
-
timezone:
|
|
4987
|
+
timezone: J.optional(),
|
|
4983
4988
|
runtime: _enum(["hermes"]).optional(),
|
|
4984
4989
|
visibility: _enum([
|
|
4985
4990
|
"private",
|
|
4986
4991
|
"org",
|
|
4987
4992
|
"public"
|
|
4988
4993
|
]).optional()
|
|
4989
|
-
}).strict(),
|
|
4994
|
+
}).strict(), Fi = object({
|
|
4990
4995
|
name: string().min(1).max(100).optional(),
|
|
4991
4996
|
handle: string().min(2).max(50).optional(),
|
|
4992
4997
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -4996,26 +5001,26 @@ var X = string().min(1).max(64).refine((e) => {
|
|
|
4996
5001
|
website: string().url().nullable().optional(),
|
|
4997
5002
|
avatarMediaId: string().nullable().optional(),
|
|
4998
5003
|
coverMediaId: string().nullable().optional(),
|
|
4999
|
-
timezone:
|
|
5004
|
+
timezone: J.optional(),
|
|
5000
5005
|
model: string().nullable().optional(),
|
|
5001
|
-
gender:
|
|
5002
|
-
voiceKey:
|
|
5003
|
-
billingTier:
|
|
5006
|
+
gender: V.optional(),
|
|
5007
|
+
voiceKey: U.nullable().optional(),
|
|
5008
|
+
billingTier: ii.optional(),
|
|
5004
5009
|
visibility: _enum([
|
|
5005
5010
|
"private",
|
|
5006
5011
|
"org",
|
|
5007
5012
|
"public"
|
|
5008
5013
|
]).optional(),
|
|
5009
|
-
automationPrimaryChannel:
|
|
5014
|
+
automationPrimaryChannel: Ni.optional(),
|
|
5010
5015
|
heartbeatEnabled: boolean().optional(),
|
|
5011
|
-
heartbeatBriefingTime:
|
|
5012
|
-
heartbeatCheckinTime:
|
|
5013
|
-
heartbeatCloseoutTime:
|
|
5014
|
-
}).strict(),
|
|
5016
|
+
heartbeatBriefingTime: T.nullable().optional(),
|
|
5017
|
+
heartbeatCheckinTime: T.nullable().optional(),
|
|
5018
|
+
heartbeatCloseoutTime: T.nullable().optional()
|
|
5019
|
+
}).strict(), Ii = oi, Li = object({
|
|
5015
5020
|
id: string(),
|
|
5016
5021
|
label: string(),
|
|
5017
5022
|
prompt: string()
|
|
5018
|
-
}),
|
|
5023
|
+
}), Ri = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.AUTOMATION_PURPOSE_REQUIRED.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.VOICE_UNAVAILABLE.WAKE_FAILED".split("."), zi = _enum(Ri), Bi = _enum([
|
|
5019
5024
|
"notFound",
|
|
5020
5025
|
"busy",
|
|
5021
5026
|
"rateLimited",
|
|
@@ -5026,21 +5031,21 @@ var X = string().min(1).max(64).refine((e) => {
|
|
|
5026
5031
|
]), zApiOk = (e) => object({
|
|
5027
5032
|
ok: literal(!0),
|
|
5028
5033
|
data: e
|
|
5029
|
-
}),
|
|
5034
|
+
}), Vi = object({
|
|
5030
5035
|
ok: literal(!1),
|
|
5031
5036
|
error: string(),
|
|
5032
|
-
code:
|
|
5033
|
-
issue:
|
|
5034
|
-
providerErrorKind:
|
|
5035
|
-
}), zApiResponse = (e) => union([zApiOk(e),
|
|
5037
|
+
code: zi.optional(),
|
|
5038
|
+
issue: L.optional(),
|
|
5039
|
+
providerErrorKind: Bi.optional()
|
|
5040
|
+
}), zApiResponse = (e) => union([zApiOk(e), Vi]), Hi = {
|
|
5036
5041
|
400: "Invalid body.",
|
|
5037
5042
|
401: "Not authenticated.",
|
|
5038
5043
|
500: "Server error."
|
|
5039
5044
|
};
|
|
5040
5045
|
function zErrorResponses(e) {
|
|
5041
5046
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
|
|
5042
|
-
description: t === !0 ?
|
|
5043
|
-
content: { "application/json": { schema:
|
|
5047
|
+
description: t === !0 ? Hi[Number(e)] ?? "Request failed." : t,
|
|
5048
|
+
content: { "application/json": { schema: Vi } }
|
|
5044
5049
|
}]));
|
|
5045
5050
|
}
|
|
5046
5051
|
function apiError(e, t, n) {
|
|
@@ -5063,7 +5068,7 @@ function apiOk(e) {
|
|
|
5063
5068
|
}
|
|
5064
5069
|
//#endregion
|
|
5065
5070
|
//#region ../core/dist/wire/chat-tool-activity.js
|
|
5066
|
-
var
|
|
5071
|
+
var Ui = object({
|
|
5067
5072
|
kind: _enum([
|
|
5068
5073
|
"icon",
|
|
5069
5074
|
"favicon",
|
|
@@ -5072,7 +5077,7 @@ var Bi = object({
|
|
|
5072
5077
|
icon: string().min(1).optional(),
|
|
5073
5078
|
domain: string().min(1).optional(),
|
|
5074
5079
|
serviceKey: string().min(1).optional()
|
|
5075
|
-
}).strict(),
|
|
5080
|
+
}).strict(), Wi = object({
|
|
5076
5081
|
activityId: string().min(1),
|
|
5077
5082
|
turnId: string().min(1),
|
|
5078
5083
|
status: _enum([
|
|
@@ -5096,12 +5101,12 @@ var Bi = object({
|
|
|
5096
5101
|
endedAt: string().datetime().optional(),
|
|
5097
5102
|
durationMs: number().int().nonnegative().optional(),
|
|
5098
5103
|
note: string().trim().min(1).optional(),
|
|
5099
|
-
visual:
|
|
5100
|
-
}).strict(),
|
|
5104
|
+
visual: Ui.optional()
|
|
5105
|
+
}).strict(), Gi = Wi.extend({ status: _enum(["completed", "failed"]) }), Ki = P, qi = object({
|
|
5101
5106
|
kind: literal("inline"),
|
|
5102
5107
|
offset: number().int().nonnegative()
|
|
5103
|
-
}),
|
|
5104
|
-
type:
|
|
5108
|
+
}), Ji = object({
|
|
5109
|
+
type: Ki,
|
|
5105
5110
|
src: url(),
|
|
5106
5111
|
filename: string().min(1),
|
|
5107
5112
|
mimeType: string().min(1),
|
|
@@ -5111,12 +5116,12 @@ var Bi = object({
|
|
|
5111
5116
|
height: number().int().positive().optional(),
|
|
5112
5117
|
duration: number().nonnegative().optional(),
|
|
5113
5118
|
text: string().optional(),
|
|
5114
|
-
placement:
|
|
5115
|
-
}),
|
|
5119
|
+
placement: qi.optional()
|
|
5120
|
+
}), Yi = object({ ref: string().min(1).max(256) }).strict(), Xi = _enum([
|
|
5116
5121
|
"handled",
|
|
5117
5122
|
"dismissed",
|
|
5118
5123
|
"deferred"
|
|
5119
|
-
]),
|
|
5124
|
+
]), Zi = datetime();
|
|
5120
5125
|
function validateAttentionRevisit(e, t) {
|
|
5121
5126
|
e.revisitAt && e.disposition !== "deferred" && t.addIssue({
|
|
5122
5127
|
code: "custom",
|
|
@@ -5124,17 +5129,17 @@ function validateAttentionRevisit(e, t) {
|
|
|
5124
5129
|
message: "revisitAt requires deferred disposition"
|
|
5125
5130
|
});
|
|
5126
5131
|
}
|
|
5127
|
-
var
|
|
5128
|
-
disposition:
|
|
5129
|
-
revisitAt:
|
|
5130
|
-
}).superRefine(validateAttentionRevisit),
|
|
5131
|
-
disposition:
|
|
5132
|
-
revisitAt:
|
|
5133
|
-
}).superRefine(validateAttentionRevisit),
|
|
5132
|
+
var Qi = Yi.extend({
|
|
5133
|
+
disposition: Xi.optional(),
|
|
5134
|
+
revisitAt: Zi.optional()
|
|
5135
|
+
}).superRefine(validateAttentionRevisit), $i = Yi.extend({
|
|
5136
|
+
disposition: Xi,
|
|
5137
|
+
revisitAt: Zi.optional()
|
|
5138
|
+
}).superRefine(validateAttentionRevisit), ea = object({
|
|
5134
5139
|
turnId: string().min(1).optional(),
|
|
5135
5140
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
5136
|
-
attachments: array(
|
|
5137
|
-
toolActivities: array(
|
|
5141
|
+
attachments: array(Ji).optional(),
|
|
5142
|
+
toolActivities: array(Gi).optional(),
|
|
5138
5143
|
issue: object({
|
|
5139
5144
|
code: string(),
|
|
5140
5145
|
bucket: _enum(["account", "error"]),
|
|
@@ -5162,8 +5167,8 @@ var Yi = Ki.extend({
|
|
|
5162
5167
|
])
|
|
5163
5168
|
}).catchall(unknown()) }).catchall(unknown()).optional(),
|
|
5164
5169
|
ownerHandoff: literal(!0).optional(),
|
|
5165
|
-
attention: array(
|
|
5166
|
-
}).catchall(unknown()),
|
|
5170
|
+
attention: array(Qi).max(20).optional()
|
|
5171
|
+
}).catchall(unknown()), ta = object({
|
|
5167
5172
|
messageId: string().min(1),
|
|
5168
5173
|
conversationId: string().min(1),
|
|
5169
5174
|
role: _enum([
|
|
@@ -5176,12 +5181,12 @@ var Yi = Ki.extend({
|
|
|
5176
5181
|
content: string(),
|
|
5177
5182
|
sequence: string().min(1),
|
|
5178
5183
|
clientNonce: string().nullable().optional(),
|
|
5179
|
-
metadata:
|
|
5184
|
+
metadata: ea.nullable().optional(),
|
|
5180
5185
|
status: string().nullable().optional(),
|
|
5181
5186
|
createdAt: string(),
|
|
5182
5187
|
updatedAt: string()
|
|
5183
|
-
}),
|
|
5184
|
-
type:
|
|
5188
|
+
}), na = object({
|
|
5189
|
+
type: Ki,
|
|
5185
5190
|
mediaId: string().min(1).optional(),
|
|
5186
5191
|
url: url().optional(),
|
|
5187
5192
|
name: string().min(1).optional(),
|
|
@@ -5197,21 +5202,21 @@ var Yi = Ki.extend({
|
|
|
5197
5202
|
path: [n],
|
|
5198
5203
|
message: `${n} is required when mediaId is absent`
|
|
5199
5204
|
});
|
|
5200
|
-
}),
|
|
5205
|
+
}), ra = object({
|
|
5201
5206
|
conversationId: string().min(1),
|
|
5202
5207
|
content: string().max(1e4).default(""),
|
|
5203
5208
|
clientNonce: string().max(64).optional(),
|
|
5204
|
-
attachments: array(
|
|
5209
|
+
attachments: array(na).max(10).optional(),
|
|
5205
5210
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
5206
5211
|
actionUrls: object({
|
|
5207
5212
|
billing: string().max(500),
|
|
5208
5213
|
agent: string().max(500)
|
|
5209
5214
|
}).optional(),
|
|
5210
|
-
viewerTimezone:
|
|
5215
|
+
viewerTimezone: J.optional()
|
|
5211
5216
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5212
5217
|
path: ["content"],
|
|
5213
5218
|
message: "Message or attachment required"
|
|
5214
|
-
}),
|
|
5219
|
+
}), ia = object({
|
|
5215
5220
|
type: _enum(["user", "agent"]),
|
|
5216
5221
|
id: string().min(1)
|
|
5217
5222
|
}).strict();
|
|
@@ -5226,44 +5231,44 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5226
5231
|
}), n.add(e);
|
|
5227
5232
|
}
|
|
5228
5233
|
}
|
|
5229
|
-
var
|
|
5234
|
+
var aa = object({
|
|
5230
5235
|
orgId: string().min(1),
|
|
5231
|
-
participants: array(
|
|
5232
|
-
}).strict().superRefine(addDuplicateConversationTargetIssues),
|
|
5236
|
+
participants: array(ia).min(1).max(20)
|
|
5237
|
+
}).strict().superRefine(addDuplicateConversationTargetIssues), oa = object({
|
|
5233
5238
|
orgId: string().min(1),
|
|
5234
|
-
participants: array(
|
|
5239
|
+
participants: array(ia).min(1).max(20)
|
|
5235
5240
|
}).strict().superRefine((e, t) => {
|
|
5236
5241
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5237
5242
|
code: "custom",
|
|
5238
5243
|
path: ["participants"],
|
|
5239
5244
|
message: "New sessions require at least one agent participant."
|
|
5240
5245
|
});
|
|
5241
|
-
}),
|
|
5246
|
+
}), sa = object({
|
|
5242
5247
|
category: string().min(1).max(30).optional(),
|
|
5243
5248
|
reason: string().max(2e3).optional()
|
|
5244
|
-
}).strict(),
|
|
5249
|
+
}).strict(), ca = _enum([
|
|
5245
5250
|
"1:1",
|
|
5246
5251
|
"4:3",
|
|
5247
5252
|
"3:4",
|
|
5248
5253
|
"16:9",
|
|
5249
5254
|
"9:16"
|
|
5250
|
-
]),
|
|
5255
|
+
]), la = _enum([
|
|
5251
5256
|
"1K",
|
|
5252
5257
|
"2K",
|
|
5253
5258
|
"4K"
|
|
5254
|
-
]),
|
|
5259
|
+
]), ua = object({
|
|
5255
5260
|
prompt: string().trim().min(1).max(4e3),
|
|
5256
|
-
aspectRatio:
|
|
5261
|
+
aspectRatio: ca.default("1:1"),
|
|
5257
5262
|
outputFormat: _enum([
|
|
5258
5263
|
"png",
|
|
5259
5264
|
"jpeg",
|
|
5260
5265
|
"webp"
|
|
5261
5266
|
]).default("webp"),
|
|
5262
|
-
resolution:
|
|
5267
|
+
resolution: la.default("2K"),
|
|
5263
5268
|
style: string().trim().max(200).optional(),
|
|
5264
5269
|
altText: string().trim().max(500).optional(),
|
|
5265
5270
|
referenceMediaIds: array(string().min(1)).max(4).optional()
|
|
5266
|
-
}).strict(),
|
|
5271
|
+
}).strict(), da = object({
|
|
5267
5272
|
mediaId: string().min(1),
|
|
5268
5273
|
src: url(),
|
|
5269
5274
|
filename: string().min(1),
|
|
@@ -5273,54 +5278,54 @@ var na = object({
|
|
|
5273
5278
|
provider: string().min(1).optional(),
|
|
5274
5279
|
providerRequestId: string().min(1).optional(),
|
|
5275
5280
|
media: string().startsWith("MEDIA:"),
|
|
5276
|
-
attachment:
|
|
5277
|
-
}),
|
|
5281
|
+
attachment: Ji.extend({ type: literal("image") })
|
|
5282
|
+
}), fa = object({
|
|
5278
5283
|
identityToken: string().min(1),
|
|
5279
5284
|
fullName: string().optional()
|
|
5280
|
-
}),
|
|
5285
|
+
}), pa = object({
|
|
5281
5286
|
redirect: string(),
|
|
5282
5287
|
redirectReason: string(),
|
|
5283
5288
|
isNew: boolean(),
|
|
5284
5289
|
deviceId: string()
|
|
5285
|
-
}),
|
|
5290
|
+
}), ma = object({
|
|
5286
5291
|
ok: literal(!0),
|
|
5287
|
-
data:
|
|
5292
|
+
data: pa,
|
|
5288
5293
|
token: string()
|
|
5289
|
-
}),
|
|
5294
|
+
}), ha = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), ga = object({ url: string() }), _a = object({
|
|
5290
5295
|
ok: literal(!0),
|
|
5291
|
-
data:
|
|
5292
|
-
}),
|
|
5296
|
+
data: ga
|
|
5297
|
+
}), va = object({ token: string().min(1) }), ya = object({
|
|
5293
5298
|
redirect: string(),
|
|
5294
5299
|
redirectReason: string(),
|
|
5295
5300
|
deviceId: string()
|
|
5296
|
-
}),
|
|
5301
|
+
}), ba = object({
|
|
5297
5302
|
ok: literal(!0),
|
|
5298
|
-
data:
|
|
5303
|
+
data: ya,
|
|
5299
5304
|
token: string()
|
|
5300
|
-
}),
|
|
5305
|
+
}), xa = _enum(["none", "active_assistant"]), Sa = _enum([
|
|
5301
5306
|
"none",
|
|
5302
5307
|
"active",
|
|
5303
5308
|
"trial",
|
|
5304
5309
|
"canceling",
|
|
5305
5310
|
"past_due",
|
|
5306
5311
|
"paused"
|
|
5307
|
-
]),
|
|
5312
|
+
]), Ca = object({
|
|
5308
5313
|
brand: string(),
|
|
5309
5314
|
last4: string(),
|
|
5310
5315
|
expMonth: number(),
|
|
5311
5316
|
expYear: number()
|
|
5312
|
-
}),
|
|
5317
|
+
}), wa = object({
|
|
5313
5318
|
date: string(),
|
|
5314
5319
|
amount: number(),
|
|
5315
5320
|
status: string(),
|
|
5316
5321
|
invoicePdf: string().optional()
|
|
5317
|
-
}),
|
|
5322
|
+
}), Ta = object({
|
|
5318
5323
|
graceEndsAt: string().optional(),
|
|
5319
5324
|
suspended: boolean(),
|
|
5320
5325
|
url: string().optional()
|
|
5321
|
-
}),
|
|
5322
|
-
plan:
|
|
5323
|
-
status:
|
|
5326
|
+
}), Ea = object({
|
|
5327
|
+
plan: xa,
|
|
5328
|
+
status: Sa,
|
|
5324
5329
|
price: number(),
|
|
5325
5330
|
tierRates: record(string(), number()).optional(),
|
|
5326
5331
|
maxAgents: number(),
|
|
@@ -5330,23 +5335,23 @@ var na = object({
|
|
|
5330
5335
|
cancelAt: string().optional(),
|
|
5331
5336
|
trialEnd: string().optional(),
|
|
5332
5337
|
trialDaysRemaining: number().optional(),
|
|
5333
|
-
paymentMethod:
|
|
5334
|
-
paymentRecovery:
|
|
5335
|
-
invoices: array(
|
|
5338
|
+
paymentMethod: Ca.optional(),
|
|
5339
|
+
paymentRecovery: Ta.optional(),
|
|
5340
|
+
invoices: array(wa),
|
|
5336
5341
|
stripeError: string().optional()
|
|
5337
|
-
}),
|
|
5342
|
+
}), Da = object({
|
|
5338
5343
|
orgId: string(),
|
|
5339
5344
|
agentName: string().optional(),
|
|
5340
5345
|
runtime: string().optional()
|
|
5341
|
-
}),
|
|
5346
|
+
}), Oa = object({
|
|
5342
5347
|
created: number(),
|
|
5343
5348
|
skipped: number(),
|
|
5344
5349
|
errors: array(string())
|
|
5345
|
-
}),
|
|
5350
|
+
}), ka = object({
|
|
5346
5351
|
updated: number(),
|
|
5347
5352
|
errors: array(string())
|
|
5348
|
-
}),
|
|
5349
|
-
code:
|
|
5353
|
+
}), Aa = Kr, ja = object({
|
|
5354
|
+
code: zi,
|
|
5350
5355
|
message: string(),
|
|
5351
5356
|
bucket: _enum(["account", "error"]).optional(),
|
|
5352
5357
|
actionLabel: string().optional(),
|
|
@@ -5363,14 +5368,14 @@ function toChatStreamError(e) {
|
|
|
5363
5368
|
...e.help ? { help: e.help } : {}
|
|
5364
5369
|
};
|
|
5365
5370
|
}
|
|
5366
|
-
var
|
|
5371
|
+
var Ma = discriminatedUnion("event", [
|
|
5367
5372
|
object({
|
|
5368
5373
|
event: literal("status"),
|
|
5369
|
-
data:
|
|
5374
|
+
data: Aa
|
|
5370
5375
|
}),
|
|
5371
5376
|
object({
|
|
5372
5377
|
event: literal("message"),
|
|
5373
|
-
data: object({ message:
|
|
5378
|
+
data: object({ message: ta })
|
|
5374
5379
|
}),
|
|
5375
5380
|
object({
|
|
5376
5381
|
event: literal("message_delta"),
|
|
@@ -5390,7 +5395,7 @@ var ka = discriminatedUnion("event", [
|
|
|
5390
5395
|
}),
|
|
5391
5396
|
object({
|
|
5392
5397
|
event: literal("tool_activity"),
|
|
5393
|
-
data:
|
|
5398
|
+
data: Wi
|
|
5394
5399
|
}),
|
|
5395
5400
|
object({
|
|
5396
5401
|
event: literal("working_end"),
|
|
@@ -5402,7 +5407,7 @@ var ka = discriminatedUnion("event", [
|
|
|
5402
5407
|
}),
|
|
5403
5408
|
object({
|
|
5404
5409
|
event: literal("error"),
|
|
5405
|
-
data:
|
|
5410
|
+
data: ja
|
|
5406
5411
|
})
|
|
5407
5412
|
]);
|
|
5408
5413
|
function chatEventUserTurnId(e) {
|
|
@@ -5554,7 +5559,7 @@ function parseChatEvent(e) {
|
|
|
5554
5559
|
for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
|
|
5555
5560
|
if (!n || r === void 0) return null;
|
|
5556
5561
|
try {
|
|
5557
|
-
let e =
|
|
5562
|
+
let e = Ma.safeParse({
|
|
5558
5563
|
event: n,
|
|
5559
5564
|
data: JSON.parse(r)
|
|
5560
5565
|
});
|
|
@@ -5565,7 +5570,7 @@ function parseChatEvent(e) {
|
|
|
5565
5570
|
}
|
|
5566
5571
|
//#endregion
|
|
5567
5572
|
//#region ../core/dist/wire/chat-card.js
|
|
5568
|
-
var
|
|
5573
|
+
var Na = object({
|
|
5569
5574
|
label: string().trim().min(1).max(40),
|
|
5570
5575
|
reply: string().trim().min(1).max(500),
|
|
5571
5576
|
style: _enum([
|
|
@@ -5573,11 +5578,11 @@ var Aa = object({
|
|
|
5573
5578
|
"default",
|
|
5574
5579
|
"destructive"
|
|
5575
5580
|
]).optional()
|
|
5576
|
-
}).strip(),
|
|
5581
|
+
}).strip(), Pa = object({
|
|
5577
5582
|
version: literal(1),
|
|
5578
5583
|
title: string().trim().min(1).max(200),
|
|
5579
5584
|
body: string().trim().min(1).max(4e3).optional(),
|
|
5580
|
-
actions: array(
|
|
5585
|
+
actions: array(Na).min(1).max(3).optional()
|
|
5581
5586
|
}).strip();
|
|
5582
5587
|
function parseChatCardFencePayload(e) {
|
|
5583
5588
|
let t;
|
|
@@ -5590,7 +5595,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5590
5595
|
message: e instanceof Error ? e.message : "Invalid JSON"
|
|
5591
5596
|
};
|
|
5592
5597
|
}
|
|
5593
|
-
let n =
|
|
5598
|
+
let n = Pa.safeParse(t);
|
|
5594
5599
|
return n.success ? {
|
|
5595
5600
|
ok: !0,
|
|
5596
5601
|
spec: n.data
|
|
@@ -5602,36 +5607,36 @@ function parseChatCardFencePayload(e) {
|
|
|
5602
5607
|
}
|
|
5603
5608
|
//#endregion
|
|
5604
5609
|
//#region ../core/dist/wire/chat-visual.js
|
|
5605
|
-
var
|
|
5610
|
+
var Fa = string().trim().min(1).max(240), Ia = string().trim().min(1).max(800), Y = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), X = string().trim().min(1).max(120), La = record(Y, union([
|
|
5606
5611
|
string().max(500),
|
|
5607
5612
|
number().finite(),
|
|
5608
5613
|
boolean(),
|
|
5609
5614
|
_null()
|
|
5610
|
-
])),
|
|
5615
|
+
])), Ra = _enum([
|
|
5611
5616
|
"compact",
|
|
5612
5617
|
"currency",
|
|
5613
5618
|
"duration",
|
|
5614
5619
|
"integer",
|
|
5615
5620
|
"percent",
|
|
5616
5621
|
"raw"
|
|
5617
|
-
]),
|
|
5618
|
-
title:
|
|
5619
|
-
description:
|
|
5620
|
-
footer:
|
|
5621
|
-
}).strip(),
|
|
5622
|
-
dataKey:
|
|
5623
|
-
label:
|
|
5624
|
-
axisLabel:
|
|
5625
|
-
valueFormat:
|
|
5622
|
+
]), za = object({
|
|
5623
|
+
title: Fa,
|
|
5624
|
+
description: Ia.optional(),
|
|
5625
|
+
footer: Ia.optional()
|
|
5626
|
+
}).strip(), Ba = object({
|
|
5627
|
+
dataKey: Y,
|
|
5628
|
+
label: X.optional(),
|
|
5629
|
+
axisLabel: X.optional(),
|
|
5630
|
+
valueFormat: Ra.optional(),
|
|
5626
5631
|
valuePrefix: string().trim().max(12).optional(),
|
|
5627
5632
|
valueSuffix: string().trim().max(12).optional()
|
|
5628
|
-
}).strip(),
|
|
5633
|
+
}).strip(), Va = object({
|
|
5629
5634
|
kind: literal("linear"),
|
|
5630
|
-
dataKey:
|
|
5631
|
-
label:
|
|
5632
|
-
}).strip(),
|
|
5635
|
+
dataKey: Y,
|
|
5636
|
+
label: X.optional()
|
|
5637
|
+
}).strip(), Ha = object({
|
|
5633
5638
|
version: literal(1),
|
|
5634
|
-
meta:
|
|
5639
|
+
meta: za,
|
|
5635
5640
|
fallbackMarkdown: string().trim().min(1).max(4e3)
|
|
5636
5641
|
}).strip();
|
|
5637
5642
|
function dataKeys(e) {
|
|
@@ -5673,20 +5678,20 @@ function requireNumericDataKeys(e, t, n) {
|
|
|
5673
5678
|
});
|
|
5674
5679
|
}
|
|
5675
5680
|
}
|
|
5676
|
-
var
|
|
5681
|
+
var Ua = discriminatedUnion("chartType", [Ha.extend({
|
|
5677
5682
|
visualType: literal("chart"),
|
|
5678
5683
|
chartType: _enum([
|
|
5679
5684
|
"bar",
|
|
5680
5685
|
"line",
|
|
5681
5686
|
"scatter"
|
|
5682
5687
|
]),
|
|
5683
|
-
xKey:
|
|
5684
|
-
xAxisLabel:
|
|
5685
|
-
series: array(
|
|
5686
|
-
data: array(
|
|
5688
|
+
xKey: Y,
|
|
5689
|
+
xAxisLabel: X.optional(),
|
|
5690
|
+
series: array(Ba).min(1).max(6),
|
|
5691
|
+
data: array(La).min(1).max(120),
|
|
5687
5692
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
5688
5693
|
stacking: _enum(["grouped", "stacked"]).optional(),
|
|
5689
|
-
trendLine:
|
|
5694
|
+
trendLine: Va.optional()
|
|
5690
5695
|
}).strip().superRefine((e, t) => {
|
|
5691
5696
|
e.stacking && e.chartType !== "bar" && t.addIssue({
|
|
5692
5697
|
code: "custom",
|
|
@@ -5724,13 +5729,13 @@ var Ba = discriminatedUnion("chartType", [za.extend({
|
|
|
5724
5729
|
path: ["trendLine", "dataKey"],
|
|
5725
5730
|
value: e.trendLine.dataKey
|
|
5726
5731
|
}] : []], t);
|
|
5727
|
-
}),
|
|
5732
|
+
}), Ha.extend({
|
|
5728
5733
|
visualType: literal("chart"),
|
|
5729
5734
|
chartType: literal("pie"),
|
|
5730
|
-
nameKey:
|
|
5731
|
-
valueKey:
|
|
5732
|
-
series: array(
|
|
5733
|
-
data: array(
|
|
5735
|
+
nameKey: Y,
|
|
5736
|
+
valueKey: Y,
|
|
5737
|
+
series: array(Ba).max(1).optional(),
|
|
5738
|
+
data: array(La).min(1).max(16)
|
|
5734
5739
|
}).strip().superRefine((e, t) => {
|
|
5735
5740
|
requireDataKeys(e.data, [
|
|
5736
5741
|
{
|
|
@@ -5754,10 +5759,10 @@ var Ba = discriminatedUnion("chartType", [za.extend({
|
|
|
5754
5759
|
value: e.valueKey,
|
|
5755
5760
|
nonnegative: !0
|
|
5756
5761
|
}], t);
|
|
5757
|
-
})]),
|
|
5758
|
-
id:
|
|
5759
|
-
label:
|
|
5760
|
-
detail:
|
|
5762
|
+
})]), Wa = object({
|
|
5763
|
+
id: Y,
|
|
5764
|
+
label: X,
|
|
5765
|
+
detail: Ia.optional(),
|
|
5761
5766
|
kind: _enum([
|
|
5762
5767
|
"actor",
|
|
5763
5768
|
"agent",
|
|
@@ -5768,11 +5773,11 @@ var Ba = discriminatedUnion("chartType", [za.extend({
|
|
|
5768
5773
|
"system",
|
|
5769
5774
|
"task"
|
|
5770
5775
|
]).optional()
|
|
5771
|
-
}).strip(),
|
|
5772
|
-
from:
|
|
5773
|
-
to:
|
|
5774
|
-
label:
|
|
5775
|
-
}).strip(),
|
|
5776
|
+
}).strip(), Ga = object({
|
|
5777
|
+
from: Y,
|
|
5778
|
+
to: Y,
|
|
5779
|
+
label: X.optional()
|
|
5780
|
+
}).strip(), Ka = union([Ua, Ha.extend({
|
|
5776
5781
|
visualType: literal("diagram"),
|
|
5777
5782
|
diagramType: _enum([
|
|
5778
5783
|
"flow",
|
|
@@ -5786,8 +5791,8 @@ var Ba = discriminatedUnion("chartType", [za.extend({
|
|
|
5786
5791
|
"radial",
|
|
5787
5792
|
"top-to-bottom"
|
|
5788
5793
|
]).default("auto"),
|
|
5789
|
-
nodes: array(
|
|
5790
|
-
edges: array(
|
|
5794
|
+
nodes: array(Wa).min(1).max(24),
|
|
5795
|
+
edges: array(Ga).max(48)
|
|
5791
5796
|
}).strip().superRefine((e, t) => {
|
|
5792
5797
|
let n = new Set(e.nodes.map((e) => e.id));
|
|
5793
5798
|
for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
|
|
@@ -5946,11 +5951,11 @@ function parseChatVisualFencePayload(e) {
|
|
|
5946
5951
|
fallbackMarkdown: r
|
|
5947
5952
|
};
|
|
5948
5953
|
}
|
|
5949
|
-
let n =
|
|
5954
|
+
let n = Ka.safeParse(t);
|
|
5950
5955
|
if (!n.success) {
|
|
5951
5956
|
let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
|
|
5952
5957
|
if (e) {
|
|
5953
|
-
let t =
|
|
5958
|
+
let t = Ka.safeParse(e);
|
|
5954
5959
|
if (t.success) return {
|
|
5955
5960
|
ok: !0,
|
|
5956
5961
|
spec: t.data
|
|
@@ -5975,7 +5980,7 @@ function extractChatVisualFencePayloads(e) {
|
|
|
5975
5980
|
}
|
|
5976
5981
|
//#endregion
|
|
5977
5982
|
//#region ../core/dist/wire/conversation.js
|
|
5978
|
-
var
|
|
5983
|
+
var Z = object({
|
|
5979
5984
|
type: _enum([
|
|
5980
5985
|
"user",
|
|
5981
5986
|
"agent",
|
|
@@ -5995,7 +6000,7 @@ var Wa = object({
|
|
|
5995
6000
|
displayName: string().optional(),
|
|
5996
6001
|
handle: string().optional(),
|
|
5997
6002
|
avatarUrl: string().optional()
|
|
5998
|
-
}).strict(),
|
|
6003
|
+
}).strict(), qa = object({
|
|
5999
6004
|
messageId: string(),
|
|
6000
6005
|
role: _enum([
|
|
6001
6006
|
"user",
|
|
@@ -6005,7 +6010,7 @@ var Wa = object({
|
|
|
6005
6010
|
content: string(),
|
|
6006
6011
|
sequence: string(),
|
|
6007
6012
|
createdAt: string()
|
|
6008
|
-
}),
|
|
6013
|
+
}), Ja = object({
|
|
6009
6014
|
conversationId: string(),
|
|
6010
6015
|
orgId: string(),
|
|
6011
6016
|
kind: _enum(["direct", "group"]),
|
|
@@ -6015,52 +6020,52 @@ var Wa = object({
|
|
|
6015
6020
|
"requester",
|
|
6016
6021
|
"member"
|
|
6017
6022
|
]),
|
|
6018
|
-
participants: array(
|
|
6019
|
-
lastMessage:
|
|
6023
|
+
participants: array(Z),
|
|
6024
|
+
lastMessage: qa.nullable(),
|
|
6020
6025
|
unreadCount: number().int().nonnegative(),
|
|
6021
6026
|
latestSequence: string().nullable()
|
|
6022
|
-
}),
|
|
6027
|
+
}), Ya = object({ sequence: string().min(1) }), Xa = object({ turnId: string().min(1).optional() }).strict(), Za = object({
|
|
6023
6028
|
cancelled: boolean(),
|
|
6024
6029
|
cancelledTurnIds: array(string())
|
|
6025
|
-
}).strict(),
|
|
6030
|
+
}).strict(), Qa = object({
|
|
6026
6031
|
conversationId: string(),
|
|
6027
6032
|
messageId: string(),
|
|
6028
6033
|
sequence: string(),
|
|
6029
6034
|
snippet: string(),
|
|
6030
6035
|
createdAt: string(),
|
|
6031
|
-
participants: array(
|
|
6032
|
-
}),
|
|
6036
|
+
participants: array(Z)
|
|
6037
|
+
}), $a = object({
|
|
6033
6038
|
conversationId: string(),
|
|
6034
|
-
lastMessage:
|
|
6039
|
+
lastMessage: qa.nullable(),
|
|
6035
6040
|
unreadCount: number().int().nonnegative(),
|
|
6036
6041
|
latestSequence: string().nullable()
|
|
6037
|
-
}),
|
|
6042
|
+
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), eo = preprocess((e) => e === void 0 ? null : e, B.nullable()), to = preprocess((e) => e === void 0 ? null : e, z.nullable()), no = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
6038
6043
|
"user",
|
|
6039
6044
|
"assistant",
|
|
6040
6045
|
"system"
|
|
6041
|
-
]).nullable()),
|
|
6046
|
+
]).nullable()), ro = preprocess((e) => e === void 0 ? 0 : e, number()), io = object({
|
|
6042
6047
|
agentId: string(),
|
|
6043
6048
|
handle: string(),
|
|
6044
6049
|
name: string(),
|
|
6045
6050
|
orgId: string(),
|
|
6046
|
-
orgName:
|
|
6047
|
-
orgHandle:
|
|
6048
|
-
ownerEmail:
|
|
6049
|
-
ownerName:
|
|
6050
|
-
state:
|
|
6051
|
-
desiredStatus:
|
|
6051
|
+
orgName: Q,
|
|
6052
|
+
orgHandle: Q,
|
|
6053
|
+
ownerEmail: Q,
|
|
6054
|
+
ownerName: Q,
|
|
6055
|
+
state: eo,
|
|
6056
|
+
desiredStatus: to,
|
|
6052
6057
|
runtime: string(),
|
|
6053
|
-
imageVersion:
|
|
6054
|
-
lastHealthyAt:
|
|
6055
|
-
lastActiveAt:
|
|
6056
|
-
lastUserMessageAt:
|
|
6057
|
-
lastMessageAt:
|
|
6058
|
-
lastMessageRole:
|
|
6059
|
-
lastMessageChannel:
|
|
6060
|
-
primaryChannel:
|
|
6061
|
-
totalMessages:
|
|
6062
|
-
totalSessions:
|
|
6063
|
-
error:
|
|
6058
|
+
imageVersion: Q,
|
|
6059
|
+
lastHealthyAt: Q,
|
|
6060
|
+
lastActiveAt: Q,
|
|
6061
|
+
lastUserMessageAt: Q,
|
|
6062
|
+
lastMessageAt: Q,
|
|
6063
|
+
lastMessageRole: no,
|
|
6064
|
+
lastMessageChannel: Q,
|
|
6065
|
+
primaryChannel: Q,
|
|
6066
|
+
totalMessages: ro,
|
|
6067
|
+
totalSessions: ro,
|
|
6068
|
+
error: Q,
|
|
6064
6069
|
appHandle: string(),
|
|
6065
6070
|
flyAppExists: boolean(),
|
|
6066
6071
|
plan: string(),
|
|
@@ -6068,7 +6073,7 @@ var Wa = object({
|
|
|
6068
6073
|
billingActive: boolean(),
|
|
6069
6074
|
createdAt: string(),
|
|
6070
6075
|
updatedAt: string()
|
|
6071
|
-
}),
|
|
6076
|
+
}), ao = object({
|
|
6072
6077
|
running: number(),
|
|
6073
6078
|
stopped: number(),
|
|
6074
6079
|
error: number(),
|
|
@@ -6076,28 +6081,28 @@ var Wa = object({
|
|
|
6076
6081
|
stopping: number(),
|
|
6077
6082
|
unknown: number(),
|
|
6078
6083
|
total: number()
|
|
6079
|
-
}),
|
|
6080
|
-
agents: array(
|
|
6081
|
-
summary:
|
|
6084
|
+
}), oo = object({
|
|
6085
|
+
agents: array(io),
|
|
6086
|
+
summary: ao,
|
|
6082
6087
|
orphanedApps: array(string()),
|
|
6083
6088
|
dailyMessages30d: array(number().int()).optional(),
|
|
6084
6089
|
flyAppCount: number().optional(),
|
|
6085
6090
|
latestVersion: string().optional(),
|
|
6086
6091
|
latestVersions: record(string(), string()).optional()
|
|
6087
|
-
}),
|
|
6092
|
+
}), so = br, co = P, $ = object({
|
|
6088
6093
|
mediaId: string(),
|
|
6089
6094
|
src: string(),
|
|
6090
6095
|
alt: string().nullable().optional(),
|
|
6091
6096
|
filename: string().optional(),
|
|
6092
6097
|
displayName: string().nullable().optional(),
|
|
6093
6098
|
mimeType: string().optional(),
|
|
6094
|
-
mediaType:
|
|
6095
|
-
type:
|
|
6099
|
+
mediaType: co.optional(),
|
|
6100
|
+
type: co.optional(),
|
|
6096
6101
|
size: number().optional(),
|
|
6097
6102
|
width: number().nullable().optional(),
|
|
6098
6103
|
height: number().nullable().optional(),
|
|
6099
6104
|
duration: number().nullable().optional(),
|
|
6100
|
-
context:
|
|
6105
|
+
context: so.nullable().optional(),
|
|
6101
6106
|
blurhash: string().nullable().optional(),
|
|
6102
6107
|
quality: string().optional(),
|
|
6103
6108
|
status: string().optional(),
|
|
@@ -6106,13 +6111,13 @@ var Wa = object({
|
|
|
6106
6111
|
agentId: string().nullable().optional(),
|
|
6107
6112
|
createdAt: string().optional(),
|
|
6108
6113
|
updatedAt: string().optional()
|
|
6109
|
-
}),
|
|
6114
|
+
}), lo = object({
|
|
6110
6115
|
file: string().describe("Binary file. multipart/form-data field — the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),
|
|
6111
|
-
context:
|
|
6116
|
+
context: so.optional().default("general"),
|
|
6112
6117
|
agentId: string().optional(),
|
|
6113
6118
|
orgId: string().optional(),
|
|
6114
6119
|
duration: number().optional()
|
|
6115
|
-
}),
|
|
6120
|
+
}), uo = object({
|
|
6116
6121
|
mediaId: string().optional(),
|
|
6117
6122
|
src: string().optional(),
|
|
6118
6123
|
alt: string().optional(),
|
|
@@ -6121,7 +6126,7 @@ var Wa = object({
|
|
|
6121
6126
|
mimeType: string().optional(),
|
|
6122
6127
|
mediaType: string().optional(),
|
|
6123
6128
|
blurhash: string().optional()
|
|
6124
|
-
}),
|
|
6129
|
+
}), fo = object({
|
|
6125
6130
|
membershipId: string(),
|
|
6126
6131
|
userId: string(),
|
|
6127
6132
|
orgId: string(),
|
|
@@ -6136,15 +6141,15 @@ var Wa = object({
|
|
|
6136
6141
|
status: _enum(["active", "suspended"]),
|
|
6137
6142
|
joinedAt: string(),
|
|
6138
6143
|
lastSeenAt: string().optional(),
|
|
6139
|
-
avatar:
|
|
6140
|
-
}),
|
|
6144
|
+
avatar: uo.optional()
|
|
6145
|
+
}), po = object({
|
|
6141
6146
|
invitationId: string(),
|
|
6142
6147
|
email: string(),
|
|
6143
6148
|
role: _enum(["admin", "member"]),
|
|
6144
6149
|
status: string(),
|
|
6145
6150
|
expiresAt: string(),
|
|
6146
6151
|
createdAt: string()
|
|
6147
|
-
}),
|
|
6152
|
+
}), mo = object({
|
|
6148
6153
|
token: string(),
|
|
6149
6154
|
email: string(),
|
|
6150
6155
|
orgId: string(),
|
|
@@ -6166,54 +6171,54 @@ var Wa = object({
|
|
|
6166
6171
|
]),
|
|
6167
6172
|
expiresAt: string(),
|
|
6168
6173
|
memberCount: number().optional()
|
|
6169
|
-
}),
|
|
6174
|
+
}), ho = object({
|
|
6170
6175
|
email: string().email(),
|
|
6171
6176
|
role: _enum(["admin", "member"]).optional(),
|
|
6172
6177
|
message: string().max(500).optional()
|
|
6173
|
-
}).strict(),
|
|
6178
|
+
}).strict(), go = object({ role: _enum(["admin", "member"]) }).strict(), _o = object({ token: string().min(1) }).strict(), vo = _enum([
|
|
6174
6179
|
"planLimit",
|
|
6175
6180
|
"billingOverdue",
|
|
6176
6181
|
"rebuilding",
|
|
6177
6182
|
"agentNotFound"
|
|
6178
|
-
]),
|
|
6183
|
+
]), yo = _enum([
|
|
6179
6184
|
"rebuilding",
|
|
6180
6185
|
"provisioning",
|
|
6181
6186
|
"billingOverdue"
|
|
6182
|
-
]),
|
|
6187
|
+
]), bo = object({
|
|
6183
6188
|
agentId: string(),
|
|
6184
6189
|
name: string(),
|
|
6185
|
-
avatar:
|
|
6190
|
+
avatar: F.optional(),
|
|
6186
6191
|
summary: string().nullable().optional(),
|
|
6187
6192
|
ownerId: string(),
|
|
6188
6193
|
ownerFirstName: string(),
|
|
6189
|
-
ownerAvatar:
|
|
6194
|
+
ownerAvatar: F.optional(),
|
|
6190
6195
|
ownerLabel: string(),
|
|
6191
6196
|
avatarInitial: string(),
|
|
6192
6197
|
isYours: boolean(),
|
|
6193
6198
|
lastMessageAt: string().datetime().nullable(),
|
|
6194
6199
|
lastMessagePreview: string().nullable(),
|
|
6195
6200
|
onboardedAt: string().datetime().nullable(),
|
|
6196
|
-
desiredStatus:
|
|
6197
|
-
lifecycle:
|
|
6201
|
+
desiredStatus: z.nullable(),
|
|
6202
|
+
lifecycle: B,
|
|
6198
6203
|
changedAt: string().datetime().optional(),
|
|
6199
6204
|
detail: string().optional(),
|
|
6200
|
-
blocker:
|
|
6205
|
+
blocker: L.optional(),
|
|
6201
6206
|
canWake: boolean(),
|
|
6202
|
-
cantWakeReason:
|
|
6207
|
+
cantWakeReason: vo.optional(),
|
|
6203
6208
|
canRebuild: boolean(),
|
|
6204
|
-
cantRebuildReason:
|
|
6205
|
-
}),
|
|
6206
|
-
zNotificationTelemetryAck: () =>
|
|
6207
|
-
zNotificationTelemetryEvent: () =>
|
|
6208
|
-
zRegisterDeviceRequest: () =>
|
|
6209
|
-
zRegisterDeviceResponse: () =>
|
|
6210
|
-
}),
|
|
6209
|
+
cantRebuildReason: yo.optional()
|
|
6210
|
+
}), xo = /* @__PURE__ */ t({
|
|
6211
|
+
zNotificationTelemetryAck: () => To,
|
|
6212
|
+
zNotificationTelemetryEvent: () => wo,
|
|
6213
|
+
zRegisterDeviceRequest: () => So,
|
|
6214
|
+
zRegisterDeviceResponse: () => Co
|
|
6215
|
+
}), So = object({
|
|
6211
6216
|
deviceId: string().min(1).max(64),
|
|
6212
6217
|
pushToken: string().min(1).max(200),
|
|
6213
6218
|
appVersion: string().max(40).optional(),
|
|
6214
6219
|
osVersion: string().max(40).optional(),
|
|
6215
6220
|
model: string().max(80).optional()
|
|
6216
|
-
}),
|
|
6221
|
+
}), Co = object({ deviceId: string().min(1).max(64) }), wo = object({
|
|
6217
6222
|
deviceId: string().min(1).max(64),
|
|
6218
6223
|
kind: string().min(1).max(30),
|
|
6219
6224
|
action: _enum([
|
|
@@ -6222,7 +6227,7 @@ var Wa = object({
|
|
|
6222
6227
|
"dismissed"
|
|
6223
6228
|
]),
|
|
6224
6229
|
messageId: string().max(32).optional()
|
|
6225
|
-
}),
|
|
6230
|
+
}), To = object({ updated: boolean() }), Eo = K.pick({
|
|
6226
6231
|
orgId: !0,
|
|
6227
6232
|
handle: !0,
|
|
6228
6233
|
name: !0,
|
|
@@ -6236,13 +6241,13 @@ var Wa = object({
|
|
|
6236
6241
|
status: !0,
|
|
6237
6242
|
updatedAt: !0
|
|
6238
6243
|
}).extend({
|
|
6239
|
-
avatar:
|
|
6240
|
-
cover:
|
|
6241
|
-
}),
|
|
6244
|
+
avatar: $.nullable().optional(),
|
|
6245
|
+
cover: $.nullable().optional()
|
|
6246
|
+
}), Do = object({
|
|
6242
6247
|
name: string().min(1).max(255),
|
|
6243
6248
|
handle: string().min(2).max(50).optional(),
|
|
6244
|
-
timezone:
|
|
6245
|
-
}).strict(),
|
|
6249
|
+
timezone: J.optional()
|
|
6250
|
+
}).strict(), Oo = K.pick({
|
|
6246
6251
|
name: !0,
|
|
6247
6252
|
email: !0,
|
|
6248
6253
|
website: !0,
|
|
@@ -6251,14 +6256,14 @@ var Wa = object({
|
|
|
6251
6256
|
}).extend({
|
|
6252
6257
|
name: string().min(1).max(255).optional(),
|
|
6253
6258
|
email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
|
|
6254
|
-
timezone:
|
|
6259
|
+
timezone: J.optional(),
|
|
6255
6260
|
avatarMediaId: string().nullable().optional(),
|
|
6256
6261
|
coverMediaId: string().nullable().optional()
|
|
6257
|
-
}).strict(),
|
|
6262
|
+
}).strict(), ko = _enum([
|
|
6258
6263
|
"success",
|
|
6259
6264
|
"info",
|
|
6260
6265
|
"warning"
|
|
6261
|
-
]),
|
|
6266
|
+
]), Ao = object({
|
|
6262
6267
|
org: object({
|
|
6263
6268
|
orgId: string(),
|
|
6264
6269
|
name: string(),
|
|
@@ -6267,7 +6272,7 @@ var Wa = object({
|
|
|
6267
6272
|
plan: object({
|
|
6268
6273
|
key: string(),
|
|
6269
6274
|
label: string(),
|
|
6270
|
-
tone:
|
|
6275
|
+
tone: ko,
|
|
6271
6276
|
status: string(),
|
|
6272
6277
|
trialDaysRemaining: number().optional()
|
|
6273
6278
|
}),
|
|
@@ -6288,15 +6293,15 @@ function zPaginatedResponse(e) {
|
|
|
6288
6293
|
}
|
|
6289
6294
|
//#endregion
|
|
6290
6295
|
//#region ../core/dist/wire/public-services.js
|
|
6291
|
-
var
|
|
6296
|
+
var jo = object({
|
|
6292
6297
|
sender: _enum(["user", "agent"]),
|
|
6293
6298
|
text: string()
|
|
6294
|
-
}),
|
|
6299
|
+
}), Mo = _enum([
|
|
6295
6300
|
"works-now",
|
|
6296
6301
|
"guided-setup",
|
|
6297
6302
|
"coming-soon",
|
|
6298
6303
|
"custom-workflow"
|
|
6299
|
-
]),
|
|
6304
|
+
]), No = object({
|
|
6300
6305
|
docsUrl: string(),
|
|
6301
6306
|
verifiedAt: string(),
|
|
6302
6307
|
version: string().optional(),
|
|
@@ -6308,11 +6313,11 @@ var Ao = object({
|
|
|
6308
6313
|
"unversioned"
|
|
6309
6314
|
]),
|
|
6310
6315
|
note: string().optional()
|
|
6311
|
-
}),
|
|
6316
|
+
}), Po = object({
|
|
6312
6317
|
key: string(),
|
|
6313
6318
|
label: string(),
|
|
6314
6319
|
rank: number()
|
|
6315
|
-
}),
|
|
6320
|
+
}), Fo = object({
|
|
6316
6321
|
text: string(),
|
|
6317
6322
|
tone: _enum([
|
|
6318
6323
|
"info",
|
|
@@ -6320,7 +6325,7 @@ var Ao = object({
|
|
|
6320
6325
|
"success",
|
|
6321
6326
|
"danger"
|
|
6322
6327
|
])
|
|
6323
|
-
}),
|
|
6328
|
+
}), Io = object({
|
|
6324
6329
|
serviceKey: string(),
|
|
6325
6330
|
name: string(),
|
|
6326
6331
|
description: string(),
|
|
@@ -6330,16 +6335,16 @@ var Ao = object({
|
|
|
6330
6335
|
category: string(),
|
|
6331
6336
|
categoryLabel: string(),
|
|
6332
6337
|
categoryRank: number(),
|
|
6333
|
-
secondaryCategories: array(
|
|
6334
|
-
badges: array(
|
|
6338
|
+
secondaryCategories: array(Po),
|
|
6339
|
+
badges: array(Fo),
|
|
6335
6340
|
tags: array(string()),
|
|
6336
6341
|
searchAliases: array(string()),
|
|
6337
6342
|
jtbd: string(),
|
|
6338
6343
|
useCase: string(),
|
|
6339
6344
|
demoScenario: string(),
|
|
6340
|
-
sampleConversation: array(
|
|
6341
|
-
publicStatus:
|
|
6342
|
-
apiVerification:
|
|
6345
|
+
sampleConversation: array(jo),
|
|
6346
|
+
publicStatus: Mo,
|
|
6347
|
+
apiVerification: No.optional(),
|
|
6343
6348
|
setupDifficulty: string(),
|
|
6344
6349
|
risk: string(),
|
|
6345
6350
|
price: string(),
|
|
@@ -6352,84 +6357,84 @@ var Ao = object({
|
|
|
6352
6357
|
]),
|
|
6353
6358
|
setupSummary: string().optional(),
|
|
6354
6359
|
pagePath: string()
|
|
6355
|
-
}),
|
|
6360
|
+
}), Lo = object({
|
|
6356
6361
|
fullName: string().min(1).max(100).optional(),
|
|
6357
|
-
linkedinUsername:
|
|
6362
|
+
linkedinUsername: W.nullable().optional(),
|
|
6358
6363
|
avatarMediaId: string().nullable().optional(),
|
|
6359
6364
|
primaryAgentId: string().nullable().optional(),
|
|
6360
6365
|
lastActiveOrgId: string().nullable().optional()
|
|
6361
|
-
}).strict(),
|
|
6362
|
-
ASSISTANT_SILENCE_CONTROLS: () =>
|
|
6363
|
-
ActionAreaSchema: () =>
|
|
6364
|
-
ActionButtonSchema: () =>
|
|
6365
|
-
Agent: () =>
|
|
6366
|
-
AudioFormatSchema: () =>
|
|
6367
|
-
AudioMediaSchema: () =>
|
|
6368
|
-
AudioPropertiesSchema: () =>
|
|
6366
|
+
}).strict(), Ro = /* @__PURE__ */ t({
|
|
6367
|
+
ASSISTANT_SILENCE_CONTROLS: () => Ei,
|
|
6368
|
+
ActionAreaSchema: () => Ir,
|
|
6369
|
+
ActionButtonSchema: () => I,
|
|
6370
|
+
Agent: () => ci,
|
|
6371
|
+
AudioFormatSchema: () => Tr,
|
|
6372
|
+
AudioMediaSchema: () => Ar,
|
|
6373
|
+
AudioPropertiesSchema: () => Dr,
|
|
6369
6374
|
AuthApiError: () => AuthApiError,
|
|
6370
|
-
BOT_API_LLM_PATH: () =>
|
|
6371
|
-
BOT_API_PATH: () =>
|
|
6372
|
-
BOT_USER_AGENT: () =>
|
|
6373
|
-
ButtonDesignSchema: () =>
|
|
6374
|
-
ButtonThemeSchema: () =>
|
|
6375
|
-
CHART_THEME: () =>
|
|
6376
|
-
CHAT_ISSUE_CODES: () =>
|
|
6377
|
-
CHAT_ISSUE_COPY: () =>
|
|
6375
|
+
BOT_API_LLM_PATH: () => Ai,
|
|
6376
|
+
BOT_API_PATH: () => ki,
|
|
6377
|
+
BOT_USER_AGENT: () => Ti,
|
|
6378
|
+
ButtonDesignSchema: () => Fr,
|
|
6379
|
+
ButtonThemeSchema: () => Pr,
|
|
6380
|
+
CHART_THEME: () => zr,
|
|
6381
|
+
CHAT_ISSUE_CODES: () => Hr,
|
|
6382
|
+
CHAT_ISSUE_COPY: () => R,
|
|
6378
6383
|
CookieUtil: () => CookieUtil,
|
|
6379
|
-
DEFAULT_HEARTBEAT_TIMES: () =>
|
|
6380
|
-
DocumentMediaSchema: () =>
|
|
6381
|
-
ERROR_CODES: () =>
|
|
6382
|
-
EnrichedAgentSchema: () =>
|
|
6383
|
-
ImageFormatSchema: () =>
|
|
6384
|
-
ImageMediaSchema: () =>
|
|
6385
|
-
LIFECYCLE_COLOR: () =>
|
|
6386
|
-
Logger: () =>
|
|
6387
|
-
MEDIA_CONTEXTS: () =>
|
|
6388
|
-
MEDIA_TYPES: () =>
|
|
6389
|
-
MediaContextSchema: () =>
|
|
6390
|
-
MediaSchema: () =>
|
|
6391
|
-
MediaStatusSchema: () =>
|
|
6392
|
-
MediaTypeSchema: () =>
|
|
6393
|
-
MediaUnionSchema: () =>
|
|
6394
|
-
NavItemSchema: () =>
|
|
6395
|
-
NavListSchema: () =>
|
|
6384
|
+
DEFAULT_HEARTBEAT_TIMES: () => ar,
|
|
6385
|
+
DocumentMediaSchema: () => jr,
|
|
6386
|
+
ERROR_CODES: () => Ri,
|
|
6387
|
+
EnrichedAgentSchema: () => oi,
|
|
6388
|
+
ImageFormatSchema: () => Cr,
|
|
6389
|
+
ImageMediaSchema: () => Or,
|
|
6390
|
+
LIFECYCLE_COLOR: () => Jr,
|
|
6391
|
+
Logger: () => j,
|
|
6392
|
+
MEDIA_CONTEXTS: () => yr,
|
|
6393
|
+
MEDIA_TYPES: () => vr,
|
|
6394
|
+
MediaContextSchema: () => br,
|
|
6395
|
+
MediaSchema: () => F,
|
|
6396
|
+
MediaStatusSchema: () => xr,
|
|
6397
|
+
MediaTypeSchema: () => P,
|
|
6398
|
+
MediaUnionSchema: () => Mr,
|
|
6399
|
+
NavItemSchema: () => Lr,
|
|
6400
|
+
NavListSchema: () => Rr,
|
|
6396
6401
|
PAGELINES_APP_CONFIG: () => i,
|
|
6397
|
-
PERSONA_DEFAULTS: () =>
|
|
6402
|
+
PERSONA_DEFAULTS: () => Qr,
|
|
6398
6403
|
SettingsObject: () => SettingsObject,
|
|
6399
|
-
SizeSchema: () =>
|
|
6400
|
-
SocialAccountSchema: () =>
|
|
6401
|
-
SocialAccountsSchema: () =>
|
|
6402
|
-
UNKNOWN_STATUS: () =>
|
|
6403
|
-
VOICE_CATALOG: () =>
|
|
6404
|
-
VideoFormatSchema: () =>
|
|
6405
|
-
VideoMediaSchema: () =>
|
|
6406
|
-
VideoPropertiesSchema: () =>
|
|
6407
|
-
agentSchema: () =>
|
|
6404
|
+
SizeSchema: () => Nr,
|
|
6405
|
+
SocialAccountSchema: () => gr,
|
|
6406
|
+
SocialAccountsSchema: () => _r,
|
|
6407
|
+
UNKNOWN_STATUS: () => qr,
|
|
6408
|
+
VOICE_CATALOG: () => H,
|
|
6409
|
+
VideoFormatSchema: () => wr,
|
|
6410
|
+
VideoMediaSchema: () => kr,
|
|
6411
|
+
VideoPropertiesSchema: () => Er,
|
|
6412
|
+
agentSchema: () => ai,
|
|
6408
6413
|
apiError: () => apiError,
|
|
6409
6414
|
apiOk: () => apiOk,
|
|
6410
|
-
appleAuthSchema: () =>
|
|
6415
|
+
appleAuthSchema: () => bi,
|
|
6411
6416
|
authErrorMessage: () => authErrorMessage,
|
|
6412
6417
|
botApiLlmUrl: () => botApiLlmUrl,
|
|
6413
6418
|
botApiUrl: () => botApiUrl,
|
|
6414
6419
|
budgetMinutes: () => budgetMinutes,
|
|
6415
6420
|
buildChatIssue: () => buildChatIssue,
|
|
6416
|
-
changeEmailSchema: () =>
|
|
6417
|
-
changePasswordSchema: () =>
|
|
6421
|
+
changeEmailSchema: () => _i,
|
|
6422
|
+
changePasswordSchema: () => vi,
|
|
6418
6423
|
chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
|
|
6419
6424
|
chatEventMatchesTurn: () => chatEventMatchesTurn,
|
|
6420
6425
|
chatEventTurnId: () => chatEventTurnId,
|
|
6421
6426
|
chatEventUserTurnId: () => chatEventUserTurnId,
|
|
6422
6427
|
chatIssueCatalogLines: () => chatIssueCatalogLines,
|
|
6423
6428
|
chatIssueToErrorData: () => chatIssueToErrorData,
|
|
6424
|
-
cookieUtil: () =>
|
|
6429
|
+
cookieUtil: () => hr,
|
|
6425
6430
|
createAgent: () => createAgent,
|
|
6426
6431
|
createAgents: () => createAgents,
|
|
6427
6432
|
createLogger: () => createLogger,
|
|
6428
|
-
debug: () =>
|
|
6433
|
+
debug: () => fr,
|
|
6429
6434
|
derive: () => derive,
|
|
6430
|
-
emailSchema: () =>
|
|
6431
|
-
enrichedUserSchema: () =>
|
|
6432
|
-
error: () =>
|
|
6435
|
+
emailSchema: () => fi,
|
|
6436
|
+
enrichedUserSchema: () => wi,
|
|
6437
|
+
error: () => lr,
|
|
6433
6438
|
errorCopy: () => errorCopy,
|
|
6434
6439
|
errorFromApiResponse: () => errorFromApiResponse,
|
|
6435
6440
|
extractChatVisualFencePayloads: () => extractChatVisualFencePayloads,
|
|
@@ -6438,152 +6443,152 @@ var Ao = object({
|
|
|
6438
6443
|
getDefaultAvatarUrl: () => getDefaultAvatarUrl,
|
|
6439
6444
|
getDefaultGradientCss: () => getDefaultGradientCss,
|
|
6440
6445
|
getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
|
|
6441
|
-
googleAuthSchema: () =>
|
|
6442
|
-
info: () =>
|
|
6446
|
+
googleAuthSchema: () => yi,
|
|
6447
|
+
info: () => dr,
|
|
6443
6448
|
isAgentReady: () => isAgentReady,
|
|
6444
6449
|
isAssistantSilenceControl: () => isAssistantSilenceControl,
|
|
6445
6450
|
isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
|
|
6446
6451
|
isOperationActive: () => isOperationActive,
|
|
6447
6452
|
isTransitioning: () => isTransitioning,
|
|
6448
|
-
linkedinUsernameSchema: () =>
|
|
6449
|
-
logger: () =>
|
|
6450
|
-
loginSchema: () =>
|
|
6453
|
+
linkedinUsernameSchema: () => W,
|
|
6454
|
+
logger: () => M,
|
|
6455
|
+
loginSchema: () => pi,
|
|
6451
6456
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6452
6457
|
nanoid: () => nanoid,
|
|
6453
|
-
notificationWire: () =>
|
|
6458
|
+
notificationWire: () => xo,
|
|
6454
6459
|
objectId: () => objectId,
|
|
6455
|
-
orgInfoSchema: () =>
|
|
6456
|
-
orgSchema: () =>
|
|
6457
|
-
orgWithDefaultAgentSchema: () =>
|
|
6460
|
+
orgInfoSchema: () => Ci,
|
|
6461
|
+
orgSchema: () => K,
|
|
6462
|
+
orgWithDefaultAgentSchema: () => xi,
|
|
6458
6463
|
parseChatCardFencePayload: () => parseChatCardFencePayload,
|
|
6459
6464
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
6460
|
-
registerSchema: () =>
|
|
6465
|
+
registerSchema: () => mi,
|
|
6461
6466
|
renderIssueAsMarkdown: () => renderIssueAsMarkdown,
|
|
6462
|
-
resetPasswordSchema: () =>
|
|
6467
|
+
resetPasswordSchema: () => gi,
|
|
6463
6468
|
resolveVoice: () => resolveVoice,
|
|
6464
6469
|
retryPolicyFor: () => retryPolicyFor,
|
|
6465
6470
|
runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
|
|
6466
|
-
serverTransitionBudgets: () =>
|
|
6471
|
+
serverTransitionBudgets: () => Oi,
|
|
6467
6472
|
shortId: () => shortId,
|
|
6468
6473
|
toAgentState: () => toAgentState,
|
|
6469
6474
|
toChatStreamError: () => toChatStreamError,
|
|
6470
|
-
trace: () =>
|
|
6471
|
-
trialEligibilitySchema: () =>
|
|
6472
|
-
updateUserSchema: () =>
|
|
6473
|
-
userSchema: () =>
|
|
6475
|
+
trace: () => pr,
|
|
6476
|
+
trialEligibilitySchema: () => li,
|
|
6477
|
+
updateUserSchema: () => di,
|
|
6478
|
+
userSchema: () => ui,
|
|
6474
6479
|
uuid: () => uuid,
|
|
6475
|
-
verifyCodeSchema: () =>
|
|
6476
|
-
warn: () =>
|
|
6480
|
+
verifyCodeSchema: () => hi,
|
|
6481
|
+
warn: () => ur,
|
|
6477
6482
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6478
|
-
zAcceptInvitationBody: () =>
|
|
6479
|
-
zAccessibleAgentRow: () =>
|
|
6480
|
-
zAgentGender: () =>
|
|
6481
|
-
zAgentRow: () =>
|
|
6482
|
-
zApiError: () =>
|
|
6483
|
+
zAcceptInvitationBody: () => _o,
|
|
6484
|
+
zAccessibleAgentRow: () => bo,
|
|
6485
|
+
zAgentGender: () => V,
|
|
6486
|
+
zAgentRow: () => Ii,
|
|
6487
|
+
zApiError: () => Vi,
|
|
6483
6488
|
zApiOk: () => zApiOk,
|
|
6484
6489
|
zApiResponse: () => zApiResponse,
|
|
6485
|
-
zAppleAuthBody: () =>
|
|
6486
|
-
zAuthSessionData: () =>
|
|
6487
|
-
zAuthSessionResponse: () =>
|
|
6488
|
-
zAutomationPrimaryChannel: () =>
|
|
6489
|
-
zBackfillBillingData: () =>
|
|
6490
|
-
zBackfillCustomersData: () =>
|
|
6491
|
-
zBillingDetails: () =>
|
|
6492
|
-
zBillingInvoice: () =>
|
|
6493
|
-
zBillingPaymentMethod: () =>
|
|
6494
|
-
zBillingPlanKey: () =>
|
|
6495
|
-
zBillingStatus: () =>
|
|
6496
|
-
zBillingTier: () =>
|
|
6497
|
-
zBotGenerateImageBody: () =>
|
|
6498
|
-
zBotGenerateImageResponse: () =>
|
|
6499
|
-
zCancelConversationTurnBody: () =>
|
|
6500
|
-
zCancelConversationTurnResponse: () =>
|
|
6501
|
-
zCantRebuildReason: () =>
|
|
6502
|
-
zCantWakeReason: () =>
|
|
6503
|
-
zChatAttachment: () =>
|
|
6504
|
-
zChatAttachmentInput: () =>
|
|
6505
|
-
zChatAttachmentPlacement: () =>
|
|
6506
|
-
zChatCardSpec: () =>
|
|
6507
|
-
zChatErrorData: () =>
|
|
6508
|
-
zChatEvent: () =>
|
|
6509
|
-
zChatIssue: () =>
|
|
6510
|
-
zChatMessage: () =>
|
|
6511
|
-
zChatMessageAttentionItem: () =>
|
|
6512
|
-
zChatMessageAttentionRef: () =>
|
|
6513
|
-
zChatMessageAttentionUpdate: () =>
|
|
6514
|
-
zChatMessageMetadata: () =>
|
|
6515
|
-
zChatStatusData: () =>
|
|
6516
|
-
zChatToolActivityData: () =>
|
|
6517
|
-
zChatToolActivityVisual: () =>
|
|
6518
|
-
zChatVisualSpec: () =>
|
|
6519
|
-
zCompleteCheckoutData: () =>
|
|
6520
|
-
zConversationLastMessage: () =>
|
|
6521
|
-
zConversationParticipant: () =>
|
|
6522
|
-
zConversationSummary: () =>
|
|
6523
|
-
zConversationTarget: () =>
|
|
6524
|
-
zConversationUpdatedEvent: () =>
|
|
6525
|
-
zCreateAgentBody: () =>
|
|
6526
|
-
zCreateConversationBody: () =>
|
|
6527
|
-
zCreateConversationSessionBody: () =>
|
|
6528
|
-
zCreateOrgBody: () =>
|
|
6529
|
-
zDesiredStatus: () =>
|
|
6530
|
-
zErrorCode: () =>
|
|
6490
|
+
zAppleAuthBody: () => fa,
|
|
6491
|
+
zAuthSessionData: () => pa,
|
|
6492
|
+
zAuthSessionResponse: () => ma,
|
|
6493
|
+
zAutomationPrimaryChannel: () => Ni,
|
|
6494
|
+
zBackfillBillingData: () => ka,
|
|
6495
|
+
zBackfillCustomersData: () => Oa,
|
|
6496
|
+
zBillingDetails: () => Ea,
|
|
6497
|
+
zBillingInvoice: () => wa,
|
|
6498
|
+
zBillingPaymentMethod: () => Ca,
|
|
6499
|
+
zBillingPlanKey: () => xa,
|
|
6500
|
+
zBillingStatus: () => Sa,
|
|
6501
|
+
zBillingTier: () => ii,
|
|
6502
|
+
zBotGenerateImageBody: () => ua,
|
|
6503
|
+
zBotGenerateImageResponse: () => da,
|
|
6504
|
+
zCancelConversationTurnBody: () => Xa,
|
|
6505
|
+
zCancelConversationTurnResponse: () => Za,
|
|
6506
|
+
zCantRebuildReason: () => yo,
|
|
6507
|
+
zCantWakeReason: () => vo,
|
|
6508
|
+
zChatAttachment: () => Ji,
|
|
6509
|
+
zChatAttachmentInput: () => na,
|
|
6510
|
+
zChatAttachmentPlacement: () => qi,
|
|
6511
|
+
zChatCardSpec: () => Pa,
|
|
6512
|
+
zChatErrorData: () => ja,
|
|
6513
|
+
zChatEvent: () => Ma,
|
|
6514
|
+
zChatIssue: () => L,
|
|
6515
|
+
zChatMessage: () => ta,
|
|
6516
|
+
zChatMessageAttentionItem: () => Qi,
|
|
6517
|
+
zChatMessageAttentionRef: () => Yi,
|
|
6518
|
+
zChatMessageAttentionUpdate: () => $i,
|
|
6519
|
+
zChatMessageMetadata: () => ea,
|
|
6520
|
+
zChatStatusData: () => Aa,
|
|
6521
|
+
zChatToolActivityData: () => Wi,
|
|
6522
|
+
zChatToolActivityVisual: () => Ui,
|
|
6523
|
+
zChatVisualSpec: () => Ka,
|
|
6524
|
+
zCompleteCheckoutData: () => Da,
|
|
6525
|
+
zConversationLastMessage: () => qa,
|
|
6526
|
+
zConversationParticipant: () => Z,
|
|
6527
|
+
zConversationSummary: () => Ja,
|
|
6528
|
+
zConversationTarget: () => ia,
|
|
6529
|
+
zConversationUpdatedEvent: () => $a,
|
|
6530
|
+
zCreateAgentBody: () => Pi,
|
|
6531
|
+
zCreateConversationBody: () => aa,
|
|
6532
|
+
zCreateConversationSessionBody: () => oa,
|
|
6533
|
+
zCreateOrgBody: () => Do,
|
|
6534
|
+
zDesiredStatus: () => z,
|
|
6535
|
+
zErrorCode: () => zi,
|
|
6531
6536
|
zErrorResponses: () => zErrorResponses,
|
|
6532
|
-
zFleetAgent: () =>
|
|
6533
|
-
zFleetSummary: () =>
|
|
6534
|
-
zFleetSyncResponse: () =>
|
|
6535
|
-
zHandoffConsumeBody: () =>
|
|
6536
|
-
zHandoffConsumeData: () =>
|
|
6537
|
-
zHandoffConsumeResponse: () =>
|
|
6538
|
-
zHandoffMintBody: () =>
|
|
6539
|
-
zHandoffMintData: () =>
|
|
6540
|
-
zHandoffMintResponse: () =>
|
|
6541
|
-
zHeartbeatLocalTime: () =>
|
|
6542
|
-
zHeartbeatMoment: () =>
|
|
6543
|
-
zIanaTimezone: () =>
|
|
6544
|
-
zImageAspectRatio: () =>
|
|
6545
|
-
zImageResolution: () =>
|
|
6546
|
-
zInvitationPreview: () =>
|
|
6547
|
-
zInvitationRow: () =>
|
|
6548
|
-
zInviteBody: () =>
|
|
6549
|
-
zLifecycle: () =>
|
|
6550
|
-
zLifecycleVerb: () =>
|
|
6551
|
-
zLiveStatus: () =>
|
|
6552
|
-
zMarkReadBody: () =>
|
|
6553
|
-
zMediaContext: () =>
|
|
6554
|
-
zMediaObject: () =>
|
|
6555
|
-
zMediaType: () =>
|
|
6556
|
-
zMemberRow: () =>
|
|
6557
|
-
zMessageSearchResult: () =>
|
|
6558
|
-
zOrgRow: () =>
|
|
6559
|
-
zOrgSummary: () =>
|
|
6537
|
+
zFleetAgent: () => io,
|
|
6538
|
+
zFleetSummary: () => ao,
|
|
6539
|
+
zFleetSyncResponse: () => oo,
|
|
6540
|
+
zHandoffConsumeBody: () => va,
|
|
6541
|
+
zHandoffConsumeData: () => ya,
|
|
6542
|
+
zHandoffConsumeResponse: () => ba,
|
|
6543
|
+
zHandoffMintBody: () => ha,
|
|
6544
|
+
zHandoffMintData: () => ga,
|
|
6545
|
+
zHandoffMintResponse: () => _a,
|
|
6546
|
+
zHeartbeatLocalTime: () => T,
|
|
6547
|
+
zHeartbeatMoment: () => ir,
|
|
6548
|
+
zIanaTimezone: () => J,
|
|
6549
|
+
zImageAspectRatio: () => ca,
|
|
6550
|
+
zImageResolution: () => la,
|
|
6551
|
+
zInvitationPreview: () => mo,
|
|
6552
|
+
zInvitationRow: () => po,
|
|
6553
|
+
zInviteBody: () => ho,
|
|
6554
|
+
zLifecycle: () => B,
|
|
6555
|
+
zLifecycleVerb: () => Zr,
|
|
6556
|
+
zLiveStatus: () => Kr,
|
|
6557
|
+
zMarkReadBody: () => Ya,
|
|
6558
|
+
zMediaContext: () => so,
|
|
6559
|
+
zMediaObject: () => $,
|
|
6560
|
+
zMediaType: () => co,
|
|
6561
|
+
zMemberRow: () => fo,
|
|
6562
|
+
zMessageSearchResult: () => Qa,
|
|
6563
|
+
zOrgRow: () => Eo,
|
|
6564
|
+
zOrgSummary: () => Ao,
|
|
6560
6565
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6561
|
-
zPlanTone: () =>
|
|
6562
|
-
zProviderErrorKind: () =>
|
|
6563
|
-
zPublicServiceOverview: () =>
|
|
6564
|
-
zReportMessageBody: () =>
|
|
6565
|
-
zRuntimeOperation: () =>
|
|
6566
|
-
zRuntimeOperationKind: () =>
|
|
6567
|
-
zRuntimeOperationStatus: () =>
|
|
6568
|
-
zSendMessageBody: () =>
|
|
6569
|
-
zSuggestedPrompt: () =>
|
|
6570
|
-
zUpdateAgentBody: () =>
|
|
6571
|
-
zUpdateOrgBody: () =>
|
|
6572
|
-
zUpdateRoleBody: () =>
|
|
6573
|
-
zUpdateUserBody: () =>
|
|
6574
|
-
zUploadMediaBody: () =>
|
|
6575
|
-
zVoiceKey: () =>
|
|
6576
|
-
zVoiceProviderName: () =>
|
|
6577
|
-
zVoiceProviderSession: () =>
|
|
6578
|
-
zVoiceSessionMint: () =>
|
|
6579
|
-
zVoiceSessionMintBody: () =>
|
|
6580
|
-
}),
|
|
6566
|
+
zPlanTone: () => ko,
|
|
6567
|
+
zProviderErrorKind: () => Bi,
|
|
6568
|
+
zPublicServiceOverview: () => Io,
|
|
6569
|
+
zReportMessageBody: () => sa,
|
|
6570
|
+
zRuntimeOperation: () => Gr,
|
|
6571
|
+
zRuntimeOperationKind: () => Ur,
|
|
6572
|
+
zRuntimeOperationStatus: () => Wr,
|
|
6573
|
+
zSendMessageBody: () => ra,
|
|
6574
|
+
zSuggestedPrompt: () => Li,
|
|
6575
|
+
zUpdateAgentBody: () => Fi,
|
|
6576
|
+
zUpdateOrgBody: () => Oo,
|
|
6577
|
+
zUpdateRoleBody: () => go,
|
|
6578
|
+
zUpdateUserBody: () => Lo,
|
|
6579
|
+
zUploadMediaBody: () => lo,
|
|
6580
|
+
zVoiceKey: () => U,
|
|
6581
|
+
zVoiceProviderName: () => ti,
|
|
6582
|
+
zVoiceProviderSession: () => ei,
|
|
6583
|
+
zVoiceSessionMint: () => ni,
|
|
6584
|
+
zVoiceSessionMintBody: () => $r
|
|
6585
|
+
}), zo = "1.0.0";
|
|
6581
6586
|
function buildContract(e = {}) {
|
|
6582
6587
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6583
6588
|
let r = contractNameFor(e);
|
|
6584
6589
|
r && (n[r] = toSchema(t));
|
|
6585
6590
|
};
|
|
6586
|
-
for (let [e, t] of Object.entries(
|
|
6591
|
+
for (let [e, t] of Object.entries(Ro)) {
|
|
6587
6592
|
if (t instanceof S) {
|
|
6588
6593
|
addSchema(e, t);
|
|
6589
6594
|
continue;
|
|
@@ -6591,7 +6596,7 @@ function buildContract(e = {}) {
|
|
|
6591
6596
|
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
|
|
6592
6597
|
}
|
|
6593
6598
|
return {
|
|
6594
|
-
version:
|
|
6599
|
+
version: zo,
|
|
6595
6600
|
generatedAt: t.toISOString(),
|
|
6596
6601
|
schemas: n
|
|
6597
6602
|
};
|
|
@@ -6611,6 +6616,6 @@ function sortedReplacer(e, t) {
|
|
|
6611
6616
|
return t;
|
|
6612
6617
|
}
|
|
6613
6618
|
//#endregion
|
|
6614
|
-
export {
|
|
6619
|
+
export { zo as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6615
6620
|
|
|
6616
6621
|
//# sourceMappingURL=contract.js.map
|