@pagelines/sdk 1.0.805 → 1.0.807
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/AgentWrap.js +931 -923
- package/dist/AgentWrap.js.map +1 -1
- package/dist/contract.js +445 -433
- package/dist/contract.js.map +1 -1
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -3894,7 +3894,18 @@ var CookieUtil = class {
|
|
|
3894
3894
|
getDeviceId() {
|
|
3895
3895
|
return this.getCookie(this.deviceIdName);
|
|
3896
3896
|
}
|
|
3897
|
-
}, hr = new CookieUtil(),
|
|
3897
|
+
}, hr = new CookieUtil(), gr = ["https://redirect-a.invalid", "https://redirect-b.invalid"];
|
|
3898
|
+
function isSafeRedirectPath(e) {
|
|
3899
|
+
if (typeof e != "string" || !e.startsWith("/")) return !1;
|
|
3900
|
+
try {
|
|
3901
|
+
return gr.every((t) => new URL(e, t).origin === t);
|
|
3902
|
+
} catch {
|
|
3903
|
+
return !1;
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3906
|
+
//#endregion
|
|
3907
|
+
//#region ../core/dist/utils/auth-errors.js
|
|
3908
|
+
var N = {
|
|
3898
3909
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
3899
3910
|
AUTH_INVALID_CODE: "That code didn't work. Request a new one or try again.",
|
|
3900
3911
|
AUTH_LOCKED_OUT: "Too many attempts. Request a new code.",
|
|
@@ -3919,7 +3930,7 @@ var AuthApiError = class extends Error {
|
|
|
3919
3930
|
constructor(e, t) {
|
|
3920
3931
|
super(e), this.name = "AuthApiError", this.code = t;
|
|
3921
3932
|
}
|
|
3922
|
-
},
|
|
3933
|
+
}, _r = object({
|
|
3923
3934
|
platform: _enum([
|
|
3924
3935
|
"linkedin",
|
|
3925
3936
|
"x",
|
|
@@ -3936,38 +3947,38 @@ var AuthApiError = class extends Error {
|
|
|
3936
3947
|
]),
|
|
3937
3948
|
handle: string(),
|
|
3938
3949
|
url: string().optional()
|
|
3939
|
-
}),
|
|
3950
|
+
}), vr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(_r)), yr = [
|
|
3940
3951
|
"image",
|
|
3941
3952
|
"audio",
|
|
3942
3953
|
"video",
|
|
3943
3954
|
"document"
|
|
3944
|
-
], P = _enum(
|
|
3955
|
+
], P = _enum(yr), br = [
|
|
3945
3956
|
"avatar",
|
|
3946
3957
|
"cover",
|
|
3947
3958
|
"general"
|
|
3948
|
-
],
|
|
3959
|
+
], xr = _enum(br), Sr = _enum([
|
|
3949
3960
|
"processing",
|
|
3950
3961
|
"active",
|
|
3951
3962
|
"failed",
|
|
3952
3963
|
"deleted"
|
|
3953
|
-
]),
|
|
3964
|
+
]), Cr = _enum([
|
|
3954
3965
|
"low",
|
|
3955
3966
|
"standard",
|
|
3956
3967
|
"high"
|
|
3957
|
-
]),
|
|
3968
|
+
]), wr = _enum([
|
|
3958
3969
|
"jpg",
|
|
3959
3970
|
"jpeg",
|
|
3960
3971
|
"png",
|
|
3961
3972
|
"gif",
|
|
3962
3973
|
"webp",
|
|
3963
3974
|
"svg"
|
|
3964
|
-
]),
|
|
3975
|
+
]), Tr = _enum([
|
|
3965
3976
|
"mp4",
|
|
3966
3977
|
"webm",
|
|
3967
3978
|
"ogg",
|
|
3968
3979
|
"mov",
|
|
3969
3980
|
"avi"
|
|
3970
|
-
]),
|
|
3981
|
+
]), Er = _enum([
|
|
3971
3982
|
"mp3",
|
|
3972
3983
|
"wav",
|
|
3973
3984
|
"ogg",
|
|
@@ -3987,9 +3998,9 @@ var AuthApiError = class extends Error {
|
|
|
3987
3998
|
size: number(),
|
|
3988
3999
|
src: string(),
|
|
3989
4000
|
alt: string().optional(),
|
|
3990
|
-
context:
|
|
3991
|
-
status:
|
|
3992
|
-
quality:
|
|
4001
|
+
context: xr.default("general"),
|
|
4002
|
+
status: Sr.default("processing"),
|
|
4003
|
+
quality: Cr.default("standard"),
|
|
3993
4004
|
createdAt: string().optional(),
|
|
3994
4005
|
updatedAt: string().optional()
|
|
3995
4006
|
}).extend({
|
|
@@ -4000,43 +4011,43 @@ var AuthApiError = class extends Error {
|
|
|
4000
4011
|
height: number().optional(),
|
|
4001
4012
|
duration: number().optional(),
|
|
4002
4013
|
blurhash: string().optional()
|
|
4003
|
-
}).partial(),
|
|
4014
|
+
}).partial(), Dr = object({
|
|
4004
4015
|
duration: number().optional(),
|
|
4005
4016
|
thumbnail: string().optional(),
|
|
4006
4017
|
autoplay: boolean().optional(),
|
|
4007
4018
|
loop: boolean().optional(),
|
|
4008
4019
|
muted: boolean().optional(),
|
|
4009
4020
|
controls: boolean().optional()
|
|
4010
|
-
}),
|
|
4021
|
+
}), Or = object({
|
|
4011
4022
|
duration: number().optional(),
|
|
4012
4023
|
autoplay: boolean().optional(),
|
|
4013
4024
|
loop: boolean().optional(),
|
|
4014
4025
|
muted: boolean().optional(),
|
|
4015
4026
|
controls: boolean().optional()
|
|
4016
|
-
}), Or = F.extend({
|
|
4017
|
-
mediaType: literal("image"),
|
|
4018
|
-
imageFormat: Cr.optional()
|
|
4019
4027
|
}), kr = F.extend({
|
|
4020
|
-
mediaType: literal("
|
|
4021
|
-
|
|
4022
|
-
video: Er.optional()
|
|
4028
|
+
mediaType: literal("image"),
|
|
4029
|
+
imageFormat: wr.optional()
|
|
4023
4030
|
}), Ar = F.extend({
|
|
4031
|
+
mediaType: literal("video"),
|
|
4032
|
+
videoFormat: Tr.optional(),
|
|
4033
|
+
video: Dr.optional()
|
|
4034
|
+
}), jr = F.extend({
|
|
4024
4035
|
mediaType: literal("audio"),
|
|
4025
|
-
audioFormat:
|
|
4026
|
-
audio:
|
|
4027
|
-
}),
|
|
4028
|
-
Or,
|
|
4036
|
+
audioFormat: Er.optional(),
|
|
4037
|
+
audio: Or.optional()
|
|
4038
|
+
}), Mr = F.extend({ mediaType: literal("document") }), Nr = discriminatedUnion("mediaType", [
|
|
4029
4039
|
kr,
|
|
4030
4040
|
Ar,
|
|
4031
|
-
jr
|
|
4032
|
-
|
|
4041
|
+
jr,
|
|
4042
|
+
Mr
|
|
4043
|
+
]), Pr = _enum([
|
|
4033
4044
|
"xxs",
|
|
4034
4045
|
"xs",
|
|
4035
4046
|
"sm",
|
|
4036
4047
|
"md",
|
|
4037
4048
|
"lg",
|
|
4038
4049
|
"xl"
|
|
4039
|
-
]),
|
|
4050
|
+
]), Fr = _enum([
|
|
4040
4051
|
"primary",
|
|
4041
4052
|
"default",
|
|
4042
4053
|
"overlay",
|
|
@@ -4044,7 +4055,7 @@ var AuthApiError = class extends Error {
|
|
|
4044
4055
|
"green",
|
|
4045
4056
|
"indigo",
|
|
4046
4057
|
"orange"
|
|
4047
|
-
]),
|
|
4058
|
+
]), Ir = _enum([
|
|
4048
4059
|
"ghost",
|
|
4049
4060
|
"link",
|
|
4050
4061
|
"outline",
|
|
@@ -4053,9 +4064,9 @@ var AuthApiError = class extends Error {
|
|
|
4053
4064
|
key: string().optional(),
|
|
4054
4065
|
label: string().optional(),
|
|
4055
4066
|
href: string().optional(),
|
|
4056
|
-
size:
|
|
4057
|
-
theme:
|
|
4058
|
-
design:
|
|
4067
|
+
size: Pr.optional(),
|
|
4068
|
+
theme: Fr.optional(),
|
|
4069
|
+
design: Ir.optional(),
|
|
4059
4070
|
icon: union([string(), F]).optional(),
|
|
4060
4071
|
iconAfter: union([string(), F]).optional(),
|
|
4061
4072
|
rounding: _enum([
|
|
@@ -4074,12 +4085,12 @@ var AuthApiError = class extends Error {
|
|
|
4074
4085
|
"submit",
|
|
4075
4086
|
"reset"
|
|
4076
4087
|
]).optional()
|
|
4077
|
-
}),
|
|
4088
|
+
}), Lr = object({
|
|
4078
4089
|
buttons: array(I).optional(),
|
|
4079
|
-
size:
|
|
4080
|
-
theme:
|
|
4081
|
-
design:
|
|
4082
|
-
}),
|
|
4090
|
+
size: Pr.optional(),
|
|
4091
|
+
theme: Fr.optional(),
|
|
4092
|
+
design: Ir.optional()
|
|
4093
|
+
}), Rr = 3900, zr = `$${Rr / 100}/month`, Br = _enum(["account", "error"]), L = [
|
|
4083
4094
|
"billing_no_plan",
|
|
4084
4095
|
"billing_seat_limit",
|
|
4085
4096
|
"billing_past_due",
|
|
@@ -4097,7 +4108,7 @@ var AuthApiError = class extends Error {
|
|
|
4097
4108
|
"tool_protocol",
|
|
4098
4109
|
"rate_limit"
|
|
4099
4110
|
], R = object({
|
|
4100
|
-
bucket:
|
|
4111
|
+
bucket: Br,
|
|
4101
4112
|
code: _enum(L),
|
|
4102
4113
|
title: string(),
|
|
4103
4114
|
help: string().optional(),
|
|
@@ -4107,9 +4118,9 @@ var AuthApiError = class extends Error {
|
|
|
4107
4118
|
billing_no_plan: {
|
|
4108
4119
|
bucket: "account",
|
|
4109
4120
|
title: "Billing needed",
|
|
4110
|
-
help: `Add a payment method to turn live replies back on. Plans start at ${
|
|
4121
|
+
help: `Add a payment method to turn live replies back on. Plans start at ${zr} per active assistant, cancel anytime.`,
|
|
4111
4122
|
actionLabel: "Open billing",
|
|
4112
|
-
oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${
|
|
4123
|
+
oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${zr} per active assistant.`
|
|
4113
4124
|
},
|
|
4114
4125
|
billing_seat_limit: {
|
|
4115
4126
|
bucket: "account",
|
|
@@ -4256,28 +4267,28 @@ var B = _enum([
|
|
|
4256
4267
|
"unreachable",
|
|
4257
4268
|
"stopping",
|
|
4258
4269
|
"error"
|
|
4259
|
-
]),
|
|
4270
|
+
]), Vr = _enum([
|
|
4260
4271
|
"wake",
|
|
4261
4272
|
"sleep",
|
|
4262
4273
|
"restart",
|
|
4263
4274
|
"rebuild",
|
|
4264
4275
|
"config_apply"
|
|
4265
|
-
]),
|
|
4276
|
+
]), Hr = _enum([
|
|
4266
4277
|
"running",
|
|
4267
4278
|
"coalesced",
|
|
4268
4279
|
"failed"
|
|
4269
|
-
]),
|
|
4270
|
-
kind:
|
|
4271
|
-
status:
|
|
4280
|
+
]), Ur = object({
|
|
4281
|
+
kind: Vr,
|
|
4282
|
+
status: Hr,
|
|
4272
4283
|
startedAt: string().datetime(),
|
|
4273
4284
|
detail: string().optional()
|
|
4274
|
-
}).strict(),
|
|
4285
|
+
}).strict(), Wr = object({
|
|
4275
4286
|
lifecycle: B,
|
|
4276
4287
|
changedAt: string().datetime().optional(),
|
|
4277
4288
|
detail: string().optional(),
|
|
4278
4289
|
blocker: R.optional(),
|
|
4279
|
-
operation:
|
|
4280
|
-
}).strict(),
|
|
4290
|
+
operation: Ur.optional()
|
|
4291
|
+
}).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
|
|
4281
4292
|
running: "green",
|
|
4282
4293
|
starting: "amber",
|
|
4283
4294
|
stopping: "amber",
|
|
@@ -4286,17 +4297,17 @@ var B = _enum([
|
|
|
4286
4297
|
error: "red",
|
|
4287
4298
|
stopped: "grey",
|
|
4288
4299
|
unknown: "grey"
|
|
4289
|
-
},
|
|
4300
|
+
}, qr = _enum([
|
|
4290
4301
|
"awake",
|
|
4291
4302
|
"asleep",
|
|
4292
4303
|
"changing",
|
|
4293
4304
|
"stuck"
|
|
4294
|
-
]),
|
|
4305
|
+
]), Jr = {
|
|
4295
4306
|
awake: "Awake",
|
|
4296
4307
|
asleep: "Asleep",
|
|
4297
4308
|
changing: "Changing",
|
|
4298
4309
|
stuck: "Stuck"
|
|
4299
|
-
},
|
|
4310
|
+
}, Yr = {
|
|
4300
4311
|
awake: "green",
|
|
4301
4312
|
asleep: "grey",
|
|
4302
4313
|
changing: "amber",
|
|
@@ -4317,7 +4328,7 @@ function customerAgentState(e) {
|
|
|
4317
4328
|
case "unknown": return;
|
|
4318
4329
|
}
|
|
4319
4330
|
}
|
|
4320
|
-
var
|
|
4331
|
+
var Xr = {
|
|
4321
4332
|
running: "Online",
|
|
4322
4333
|
starting: "Waking up",
|
|
4323
4334
|
stopping: "Stopping",
|
|
@@ -4326,7 +4337,7 @@ var Yr = {
|
|
|
4326
4337
|
error: "Error",
|
|
4327
4338
|
stopped: "Asleep",
|
|
4328
4339
|
unknown: "Checking"
|
|
4329
|
-
},
|
|
4340
|
+
}, Zr = {
|
|
4330
4341
|
wake: "Waking up",
|
|
4331
4342
|
sleep: "Stopping",
|
|
4332
4343
|
restart: "Restarting",
|
|
@@ -4334,7 +4345,7 @@ var Yr = {
|
|
|
4334
4345
|
config_apply: "Applying config"
|
|
4335
4346
|
};
|
|
4336
4347
|
function toAgentState(e, t) {
|
|
4337
|
-
let n = e.operation, r =
|
|
4348
|
+
let n = e.operation, r = Xr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Zr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = `${t} · ${o}`;
|
|
4338
4349
|
return {
|
|
4339
4350
|
...e,
|
|
4340
4351
|
color: s,
|
|
@@ -4342,7 +4353,7 @@ function toAgentState(e, t) {
|
|
|
4342
4353
|
tooltip: c
|
|
4343
4354
|
};
|
|
4344
4355
|
}
|
|
4345
|
-
var
|
|
4356
|
+
var Qr = _enum([
|
|
4346
4357
|
"wake",
|
|
4347
4358
|
"sleep",
|
|
4348
4359
|
"restart",
|
|
@@ -4366,7 +4377,7 @@ function isAgentReady(e) {
|
|
|
4366
4377
|
}
|
|
4367
4378
|
//#endregion
|
|
4368
4379
|
//#region ../core/dist/types/navItem.js
|
|
4369
|
-
var
|
|
4380
|
+
var $r = object({
|
|
4370
4381
|
key: string().optional(),
|
|
4371
4382
|
id: string().optional(),
|
|
4372
4383
|
label: string().optional(),
|
|
@@ -4374,7 +4385,7 @@ var Qr = object({
|
|
|
4374
4385
|
subLabel: string().optional(),
|
|
4375
4386
|
value: union([string(), number()]).optional(),
|
|
4376
4387
|
description: string().optional(),
|
|
4377
|
-
state:
|
|
4388
|
+
state: qr.optional(),
|
|
4378
4389
|
count: number().optional(),
|
|
4379
4390
|
className: string().optional(),
|
|
4380
4391
|
media: F.optional(),
|
|
@@ -4396,11 +4407,11 @@ var Qr = object({
|
|
|
4396
4407
|
badges: array(I).optional(),
|
|
4397
4408
|
meta: array(I).optional(),
|
|
4398
4409
|
menuItems: array(any()).optional()
|
|
4399
|
-
}),
|
|
4410
|
+
}), ei = object({
|
|
4400
4411
|
title: string().optional(),
|
|
4401
4412
|
description: string().optional(),
|
|
4402
|
-
items: array(
|
|
4403
|
-
}),
|
|
4413
|
+
items: array($r).optional()
|
|
4414
|
+
}), ti = {
|
|
4404
4415
|
colors: {
|
|
4405
4416
|
primary: "#3b82f6",
|
|
4406
4417
|
secondary: "#93c5fd",
|
|
@@ -4419,7 +4430,7 @@ var Qr = object({
|
|
|
4419
4430
|
compact: 4,
|
|
4420
4431
|
comfortable: 6
|
|
4421
4432
|
}
|
|
4422
|
-
},
|
|
4433
|
+
}, ni = [
|
|
4423
4434
|
["#6366f1", "#8b5cf6"],
|
|
4424
4435
|
["#3b82f6", "#06b6d4"],
|
|
4425
4436
|
["#10b981", "#34d399"],
|
|
@@ -4435,7 +4446,7 @@ function hashName(e) {
|
|
|
4435
4446
|
return Math.abs(t);
|
|
4436
4447
|
}
|
|
4437
4448
|
function getGradientPair(e) {
|
|
4438
|
-
return
|
|
4449
|
+
return ni[(e ? hashName(e) : 0) % ni.length];
|
|
4439
4450
|
}
|
|
4440
4451
|
function getDefaultAvatarUrl(e) {
|
|
4441
4452
|
let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
|
|
@@ -4470,7 +4481,8 @@ var V = _enum(["active", "stopped"]), H = _enum(["woman", "man"]), U = [
|
|
|
4470
4481
|
key: "lauren",
|
|
4471
4482
|
gender: "woman",
|
|
4472
4483
|
accent: "American",
|
|
4473
|
-
character: "Friendly, comforting and soft"
|
|
4484
|
+
character: "Friendly, comforting and soft",
|
|
4485
|
+
isDefault: !0
|
|
4474
4486
|
},
|
|
4475
4487
|
{
|
|
4476
4488
|
key: "amy",
|
|
@@ -4494,8 +4506,7 @@ var V = _enum(["active", "stopped"]), H = _enum(["woman", "man"]), U = [
|
|
|
4494
4506
|
key: "tamsin",
|
|
4495
4507
|
gender: "woman",
|
|
4496
4508
|
accent: "British",
|
|
4497
|
-
character: "Engaging and emotionally resonant"
|
|
4498
|
-
isDefault: !0
|
|
4509
|
+
character: "Engaging and emotionally resonant"
|
|
4499
4510
|
},
|
|
4500
4511
|
{
|
|
4501
4512
|
key: "jessica",
|
|
@@ -4507,14 +4518,14 @@ var V = _enum(["active", "stopped"]), H = _enum(["woman", "man"]), U = [
|
|
|
4507
4518
|
key: "jude",
|
|
4508
4519
|
gender: "man",
|
|
4509
4520
|
accent: "British",
|
|
4510
|
-
character: "Engaging and naturally conversational"
|
|
4511
|
-
isDefault: !0
|
|
4521
|
+
character: "Engaging and naturally conversational"
|
|
4512
4522
|
},
|
|
4513
4523
|
{
|
|
4514
4524
|
key: "adam",
|
|
4515
4525
|
gender: "man",
|
|
4516
|
-
accent: "
|
|
4517
|
-
character: "
|
|
4526
|
+
accent: "American",
|
|
4527
|
+
character: "Engaging, friendly and bright",
|
|
4528
|
+
isDefault: !0
|
|
4518
4529
|
},
|
|
4519
4530
|
{
|
|
4520
4531
|
key: "evan",
|
|
@@ -4546,12 +4557,12 @@ var V = _enum(["active", "stopped"]), H = _enum(["woman", "man"]), U = [
|
|
|
4546
4557
|
accent: "American",
|
|
4547
4558
|
character: "Easygoing and plain-spoken"
|
|
4548
4559
|
}
|
|
4549
|
-
], W = _enum(U.map((e) => e.key)),
|
|
4560
|
+
], W = _enum(U.map((e) => e.key)), ri = { gender: "man" };
|
|
4550
4561
|
function resolveVoice(e) {
|
|
4551
4562
|
let t = U.find((t) => t.key === e.voiceKey);
|
|
4552
4563
|
return t?.gender === e.gender ? t : U.find((t) => t.gender === e.gender && "isDefault" in t);
|
|
4553
4564
|
}
|
|
4554
|
-
var
|
|
4565
|
+
var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
4555
4566
|
conversationId: string().min(1),
|
|
4556
4567
|
agentId: string().min(1),
|
|
4557
4568
|
personaName: string().min(1),
|
|
@@ -4573,7 +4584,7 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4573
4584
|
surfaceGuidance: string().optional(),
|
|
4574
4585
|
maxDurationSeconds: number().int().positive().max(3600).optional(),
|
|
4575
4586
|
expiresAt: datetime()
|
|
4576
|
-
}),
|
|
4587
|
+
}), oi = _enum(["elevenlabs", "livekit"]), si = discriminatedUnion("provider", [object({
|
|
4577
4588
|
provider: literal("elevenlabs"),
|
|
4578
4589
|
conversationToken: string().min(1),
|
|
4579
4590
|
voiceId: string().min(1)
|
|
@@ -4582,7 +4593,7 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4582
4593
|
url: string().min(1),
|
|
4583
4594
|
token: string().min(1),
|
|
4584
4595
|
room: string().min(1)
|
|
4585
|
-
}).strict()]),
|
|
4596
|
+
}).strict()]), ci = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4586
4597
|
platform: _enum([
|
|
4587
4598
|
"linkedin",
|
|
4588
4599
|
"x",
|
|
@@ -4601,7 +4612,7 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4601
4612
|
"essential",
|
|
4602
4613
|
"professional",
|
|
4603
4614
|
"business"
|
|
4604
|
-
]),
|
|
4615
|
+
]), li = object({
|
|
4605
4616
|
agentId: string().optional(),
|
|
4606
4617
|
handle: string().optional(),
|
|
4607
4618
|
ownerId: string().optional(),
|
|
@@ -4617,7 +4628,7 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4617
4628
|
cover: F.optional(),
|
|
4618
4629
|
email: string().nullable().optional(),
|
|
4619
4630
|
website: string().url().nullable().optional(),
|
|
4620
|
-
accounts:
|
|
4631
|
+
accounts: ci.nullable().optional(),
|
|
4621
4632
|
model: string().nullable().optional(),
|
|
4622
4633
|
gender: H.optional(),
|
|
4623
4634
|
voiceKey: W.nullable().optional(),
|
|
@@ -4654,14 +4665,14 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4654
4665
|
status: string().optional(),
|
|
4655
4666
|
createdAt: string().optional(),
|
|
4656
4667
|
updatedAt: string().optional()
|
|
4657
|
-
}),
|
|
4668
|
+
}), ui = li.extend({
|
|
4658
4669
|
isPrimary: boolean().optional(),
|
|
4659
4670
|
lifecycle: B.optional(),
|
|
4660
4671
|
changedAt: string().datetime().optional(),
|
|
4661
4672
|
detail: string().optional(),
|
|
4662
4673
|
blocker: R.optional(),
|
|
4663
|
-
operation:
|
|
4664
|
-
}),
|
|
4674
|
+
operation: Ur.optional()
|
|
4675
|
+
}), di = Object.keys(ui.shape), fi = class Agent extends SettingsObject {
|
|
4665
4676
|
constructor(e) {
|
|
4666
4677
|
let t = "config" in e ? {
|
|
4667
4678
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
@@ -4679,7 +4690,7 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4679
4690
|
}), 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);
|
|
4680
4691
|
}
|
|
4681
4692
|
merge(e) {
|
|
4682
|
-
for (let t of
|
|
4693
|
+
for (let t of di) {
|
|
4683
4694
|
if (!(t in e)) continue;
|
|
4684
4695
|
let n = this[t];
|
|
4685
4696
|
n && typeof n == "object" && "value" in n && (n.value = e[t]);
|
|
@@ -4687,7 +4698,7 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4687
4698
|
}
|
|
4688
4699
|
toConfig() {
|
|
4689
4700
|
let e = {};
|
|
4690
|
-
for (let t of
|
|
4701
|
+
for (let t of di) {
|
|
4691
4702
|
let n = this[t];
|
|
4692
4703
|
n && typeof n == "object" && "value" in n && (e[t] = n.value);
|
|
4693
4704
|
}
|
|
@@ -4698,17 +4709,17 @@ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
|
|
|
4698
4709
|
}
|
|
4699
4710
|
};
|
|
4700
4711
|
function createAgent(e) {
|
|
4701
|
-
return new
|
|
4712
|
+
return new fi(e);
|
|
4702
4713
|
}
|
|
4703
4714
|
function createAgents(e) {
|
|
4704
|
-
return e.configs.map((t) => new
|
|
4715
|
+
return e.configs.map((t) => new fi({
|
|
4705
4716
|
config: t,
|
|
4706
4717
|
context: e.context
|
|
4707
4718
|
}));
|
|
4708
4719
|
}
|
|
4709
4720
|
//#endregion
|
|
4710
4721
|
//#region ../core/dist/types/user.js
|
|
4711
|
-
var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"),
|
|
4722
|
+
var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), pi = string().trim().toLowerCase().pipe(email()), mi = object({
|
|
4712
4723
|
userId: string(),
|
|
4713
4724
|
email: string().optional(),
|
|
4714
4725
|
handle: string().optional(),
|
|
@@ -4730,7 +4741,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4730
4741
|
createdAt: string().optional(),
|
|
4731
4742
|
updatedAt: string().optional(),
|
|
4732
4743
|
onboarded: boolean().optional()
|
|
4733
|
-
}),
|
|
4744
|
+
}), hi = object({
|
|
4734
4745
|
name: string().min(1).max(100).optional(),
|
|
4735
4746
|
linkedinUsername: K.nullable().optional(),
|
|
4736
4747
|
avatar: object({
|
|
@@ -4741,16 +4752,16 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4741
4752
|
primaryOrgId: string().optional(),
|
|
4742
4753
|
lastActiveOrgId: string().optional(),
|
|
4743
4754
|
onboarding: any().optional()
|
|
4744
|
-
}).partial(),
|
|
4745
|
-
email:
|
|
4755
|
+
}).partial(), gi = object({ email: pi }), _i = object({
|
|
4756
|
+
email: pi,
|
|
4746
4757
|
code: string().min(6, "Verification code is required"),
|
|
4747
4758
|
timezone: string().max(64).optional()
|
|
4748
|
-
}),
|
|
4759
|
+
}), vi = object({ newEmail: pi }), yi = object({
|
|
4749
4760
|
credential: string().optional(),
|
|
4750
4761
|
code: string().optional(),
|
|
4751
4762
|
timezone: string().max(64).optional(),
|
|
4752
4763
|
source: _enum(["web", "ios"]).optional()
|
|
4753
|
-
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }),
|
|
4764
|
+
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), bi = object({
|
|
4754
4765
|
identityToken: string().min(1),
|
|
4755
4766
|
fullName: string().optional(),
|
|
4756
4767
|
timezone: string().max(64).optional()
|
|
@@ -4765,7 +4776,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4765
4776
|
avatar: F.optional(),
|
|
4766
4777
|
coverId: string().nullable().optional(),
|
|
4767
4778
|
cover: F.optional(),
|
|
4768
|
-
accounts:
|
|
4779
|
+
accounts: vr.nullable().optional(),
|
|
4769
4780
|
ownerId: string().optional(),
|
|
4770
4781
|
isPersonal: boolean().optional(),
|
|
4771
4782
|
stripeCustomerIdTest: string().nullable().optional(),
|
|
@@ -4784,7 +4795,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4784
4795
|
status: string().optional(),
|
|
4785
4796
|
createdAt: string().optional(),
|
|
4786
4797
|
updatedAt: string().optional()
|
|
4787
|
-
}),
|
|
4798
|
+
}), xi = q.extend({
|
|
4788
4799
|
defaultAgent: object({
|
|
4789
4800
|
agentId: string(),
|
|
4790
4801
|
handle: string(),
|
|
@@ -4792,14 +4803,14 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4792
4803
|
orgId: string()
|
|
4793
4804
|
}),
|
|
4794
4805
|
onboardingCompleted: boolean().optional()
|
|
4795
|
-
}),
|
|
4806
|
+
}), Si = object({
|
|
4796
4807
|
completedAt: string().datetime().optional(),
|
|
4797
4808
|
setupBy: string().optional(),
|
|
4798
4809
|
billingSetup: boolean().optional(),
|
|
4799
4810
|
teamInvitesSetup: boolean().optional(),
|
|
4800
4811
|
brandingSetup: boolean().optional(),
|
|
4801
4812
|
domainsSetup: boolean().optional()
|
|
4802
|
-
}),
|
|
4813
|
+
}), Ci = object({
|
|
4803
4814
|
membershipId: string(),
|
|
4804
4815
|
orgId: string(),
|
|
4805
4816
|
name: string(),
|
|
@@ -4817,10 +4828,10 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4817
4828
|
memberCount: number().optional(),
|
|
4818
4829
|
agentCount: number().optional(),
|
|
4819
4830
|
joinedAt: string().datetime(),
|
|
4820
|
-
onboarding:
|
|
4821
|
-
}),
|
|
4822
|
-
orgs: array(
|
|
4823
|
-
agents: array(
|
|
4831
|
+
onboarding: Si.optional()
|
|
4832
|
+
}), wi = mi.extend({
|
|
4833
|
+
orgs: array(Ci).optional(),
|
|
4834
|
+
agents: array(li).optional()
|
|
4824
4835
|
});
|
|
4825
4836
|
//#endregion
|
|
4826
4837
|
//#region ../core/dist/state.js
|
|
@@ -4843,7 +4854,7 @@ function derive(e) {
|
|
|
4843
4854
|
}
|
|
4844
4855
|
//#endregion
|
|
4845
4856
|
//#region ../core/dist/bot-ua.js
|
|
4846
|
-
var
|
|
4857
|
+
var Ti = "pagelines-agent/1.0", Ei = [
|
|
4847
4858
|
"[SILENT]",
|
|
4848
4859
|
"SILENT",
|
|
4849
4860
|
"NO_REPLY",
|
|
@@ -4857,21 +4868,21 @@ var wi = "pagelines-agent/1.0", Ti = [
|
|
|
4857
4868
|
"[NO_OP]",
|
|
4858
4869
|
"[NO OP]",
|
|
4859
4870
|
"HEARTBEAT_OK"
|
|
4860
|
-
],
|
|
4871
|
+
], Di = new Set(Ei);
|
|
4861
4872
|
function normalizeAssistantControl(e) {
|
|
4862
4873
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4863
4874
|
}
|
|
4864
4875
|
function isAssistantSilenceControl(e) {
|
|
4865
4876
|
let t = normalizeAssistantControl(e);
|
|
4866
|
-
return t.length <= 64 &&
|
|
4877
|
+
return t.length <= 64 && Di.has(t);
|
|
4867
4878
|
}
|
|
4868
4879
|
function isAssistantSilenceControlPrefix(e) {
|
|
4869
4880
|
let t = normalizeAssistantControl(e);
|
|
4870
|
-
return t.length <= 64 &&
|
|
4881
|
+
return t.length <= 64 && Ei.some((e) => e.startsWith(t));
|
|
4871
4882
|
}
|
|
4872
4883
|
//#endregion
|
|
4873
4884
|
//#region ../core/dist/timingBudgets.js
|
|
4874
|
-
var
|
|
4885
|
+
var Oi = {
|
|
4875
4886
|
wake: 300 * 1e3,
|
|
4876
4887
|
bootGrace: 420 * 1e3,
|
|
4877
4888
|
stop: 30 * 1e3
|
|
@@ -4889,12 +4900,12 @@ function formatBudgetDuration(e) {
|
|
|
4889
4900
|
}
|
|
4890
4901
|
//#endregion
|
|
4891
4902
|
//#region ../core/dist/paths.js
|
|
4892
|
-
var
|
|
4903
|
+
var ki = "/api/bot-api", Ai = "/api/bot-api/v1";
|
|
4893
4904
|
function botApiLlmUrl(e) {
|
|
4894
|
-
return `${e}${
|
|
4905
|
+
return `${e}${Ai}`;
|
|
4895
4906
|
}
|
|
4896
4907
|
function botApiUrl(e) {
|
|
4897
|
-
return `${e}${
|
|
4908
|
+
return `${e}${ki}`;
|
|
4898
4909
|
}
|
|
4899
4910
|
//#endregion
|
|
4900
4911
|
//#region ../core/dist/errorCopy.js
|
|
@@ -4929,7 +4940,7 @@ var J = {
|
|
|
4929
4940
|
TIMEOUT: "The request took too long. Try again in a moment.",
|
|
4930
4941
|
FORBIDDEN: "You don't have access to this.",
|
|
4931
4942
|
RATE_LIMITED: "Too many requests. Wait a moment and try again."
|
|
4932
|
-
},
|
|
4943
|
+
}, ji = {
|
|
4933
4944
|
notFound: "Not found. Try refreshing.",
|
|
4934
4945
|
busy: "Busy — try again in a moment.",
|
|
4935
4946
|
rateLimited: "Too many requests. Wait a moment.",
|
|
@@ -4942,11 +4953,11 @@ function errorCopy(e, t) {
|
|
|
4942
4953
|
return e && e in J ? J[e] : t;
|
|
4943
4954
|
}
|
|
4944
4955
|
function errorFromApiResponse(e, t) {
|
|
4945
|
-
return e.code && e.code in J ? J[e.code] : e.providerErrorKind &&
|
|
4956
|
+
return e.code && e.code in J ? J[e.code] : e.providerErrorKind && ji[e.providerErrorKind] ? ji[e.providerErrorKind] : e.error || t;
|
|
4946
4957
|
}
|
|
4947
4958
|
//#endregion
|
|
4948
4959
|
//#region ../core/dist/retryPolicy.js
|
|
4949
|
-
var
|
|
4960
|
+
var Mi = {
|
|
4950
4961
|
shouldRetry: !1,
|
|
4951
4962
|
maxAttempts: 1,
|
|
4952
4963
|
strategy: "none",
|
|
@@ -4964,7 +4975,7 @@ function retryPolicyFor(e) {
|
|
|
4964
4975
|
"FORBIDDEN",
|
|
4965
4976
|
"AGENT_NOT_FOUND"
|
|
4966
4977
|
]);
|
|
4967
|
-
if (e.code && t.has(e.code)) return
|
|
4978
|
+
if (e.code && t.has(e.code)) return Mi;
|
|
4968
4979
|
switch (e.providerErrorKind) {
|
|
4969
4980
|
case "busy": return {
|
|
4970
4981
|
shouldRetry: !0,
|
|
@@ -4999,8 +5010,8 @@ function retryPolicyFor(e) {
|
|
|
4999
5010
|
};
|
|
5000
5011
|
case "notFound":
|
|
5001
5012
|
case "invalidConfig":
|
|
5002
|
-
case "fatal": return
|
|
5003
|
-
default: return
|
|
5013
|
+
case "fatal": return Mi;
|
|
5014
|
+
default: return Mi;
|
|
5004
5015
|
}
|
|
5005
5016
|
}
|
|
5006
5017
|
//#endregion
|
|
@@ -5011,7 +5022,7 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5011
5022
|
} catch {
|
|
5012
5023
|
return !1;
|
|
5013
5024
|
}
|
|
5014
|
-
}, "Invalid IANA timezone"),
|
|
5025
|
+
}, "Invalid IANA timezone"), Ni = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Pi = object({
|
|
5015
5026
|
orgId: string(),
|
|
5016
5027
|
name: string().min(1).max(100),
|
|
5017
5028
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -5025,7 +5036,7 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5025
5036
|
"org",
|
|
5026
5037
|
"public"
|
|
5027
5038
|
]).optional()
|
|
5028
|
-
}).strict(),
|
|
5039
|
+
}).strict(), Fi = object({
|
|
5029
5040
|
name: string().min(1).max(100).optional(),
|
|
5030
5041
|
handle: string().min(2).max(50).optional(),
|
|
5031
5042
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -5045,16 +5056,16 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5045
5056
|
"org",
|
|
5046
5057
|
"public"
|
|
5047
5058
|
]).optional(),
|
|
5048
|
-
automationPrimaryChannel:
|
|
5059
|
+
automationPrimaryChannel: Ni.optional(),
|
|
5049
5060
|
heartbeatEnabled: boolean().optional(),
|
|
5050
5061
|
heartbeatBriefingTime: T.nullable().optional(),
|
|
5051
5062
|
heartbeatCheckinTime: T.nullable().optional(),
|
|
5052
5063
|
heartbeatCloseoutTime: T.nullable().optional()
|
|
5053
|
-
}).strict(),
|
|
5064
|
+
}).strict(), Ii = ui, Li = object({
|
|
5054
5065
|
id: string(),
|
|
5055
5066
|
label: string(),
|
|
5056
5067
|
prompt: string()
|
|
5057
|
-
}),
|
|
5068
|
+
}), 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_DEMO_SPENT.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([
|
|
5058
5069
|
"notFound",
|
|
5059
5070
|
"busy",
|
|
5060
5071
|
"rateLimited",
|
|
@@ -5065,21 +5076,21 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5065
5076
|
]), zApiOk = (e) => object({
|
|
5066
5077
|
ok: literal(!0),
|
|
5067
5078
|
data: e
|
|
5068
|
-
}),
|
|
5079
|
+
}), Vi = object({
|
|
5069
5080
|
ok: literal(!1),
|
|
5070
5081
|
error: string(),
|
|
5071
|
-
code:
|
|
5082
|
+
code: zi.optional(),
|
|
5072
5083
|
issue: R.optional(),
|
|
5073
|
-
providerErrorKind:
|
|
5074
|
-
}), zApiResponse = (e) => union([zApiOk(e),
|
|
5084
|
+
providerErrorKind: Bi.optional()
|
|
5085
|
+
}), zApiResponse = (e) => union([zApiOk(e), Vi]), Hi = {
|
|
5075
5086
|
400: "Invalid body.",
|
|
5076
5087
|
401: "Not authenticated.",
|
|
5077
5088
|
500: "Server error."
|
|
5078
5089
|
};
|
|
5079
5090
|
function zErrorResponses(e) {
|
|
5080
5091
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
|
|
5081
|
-
description: t === !0 ?
|
|
5082
|
-
content: { "application/json": { schema:
|
|
5092
|
+
description: t === !0 ? Hi[Number(e)] ?? "Request failed." : t,
|
|
5093
|
+
content: { "application/json": { schema: Vi } }
|
|
5083
5094
|
}]));
|
|
5084
5095
|
}
|
|
5085
5096
|
function apiError(e, t, n) {
|
|
@@ -5102,7 +5113,7 @@ function apiOk(e) {
|
|
|
5102
5113
|
}
|
|
5103
5114
|
//#endregion
|
|
5104
5115
|
//#region ../core/dist/wire/chat-tool-activity.js
|
|
5105
|
-
var
|
|
5116
|
+
var Ui = object({
|
|
5106
5117
|
kind: _enum([
|
|
5107
5118
|
"icon",
|
|
5108
5119
|
"favicon",
|
|
@@ -5111,7 +5122,7 @@ var Hi = object({
|
|
|
5111
5122
|
icon: string().min(1).optional(),
|
|
5112
5123
|
domain: string().min(1).optional(),
|
|
5113
5124
|
serviceKey: string().min(1).optional()
|
|
5114
|
-
}).strict(),
|
|
5125
|
+
}).strict(), Wi = object({
|
|
5115
5126
|
activityId: string().min(1),
|
|
5116
5127
|
turnId: string().min(1),
|
|
5117
5128
|
status: _enum([
|
|
@@ -5135,12 +5146,12 @@ var Hi = object({
|
|
|
5135
5146
|
endedAt: string().datetime().optional(),
|
|
5136
5147
|
durationMs: number().int().nonnegative().optional(),
|
|
5137
5148
|
note: string().trim().min(1).optional(),
|
|
5138
|
-
visual:
|
|
5139
|
-
}).strict(),
|
|
5149
|
+
visual: Ui.optional()
|
|
5150
|
+
}).strict(), Gi = Wi.extend({ status: _enum(["completed", "failed"]) }), Ki = P, qi = object({
|
|
5140
5151
|
kind: literal("inline"),
|
|
5141
5152
|
offset: number().int().nonnegative()
|
|
5142
|
-
}),
|
|
5143
|
-
type:
|
|
5153
|
+
}), Ji = object({
|
|
5154
|
+
type: Ki,
|
|
5144
5155
|
src: url(),
|
|
5145
5156
|
filename: string().min(1),
|
|
5146
5157
|
mimeType: string().min(1),
|
|
@@ -5150,12 +5161,12 @@ var Hi = object({
|
|
|
5150
5161
|
height: number().int().positive().optional(),
|
|
5151
5162
|
duration: number().nonnegative().optional(),
|
|
5152
5163
|
text: string().optional(),
|
|
5153
|
-
placement:
|
|
5154
|
-
}),
|
|
5164
|
+
placement: qi.optional()
|
|
5165
|
+
}), Yi = object({ ref: string().min(1).max(256) }).strict(), Xi = _enum([
|
|
5155
5166
|
"handled",
|
|
5156
5167
|
"dismissed",
|
|
5157
5168
|
"deferred"
|
|
5158
|
-
]),
|
|
5169
|
+
]), Zi = datetime();
|
|
5159
5170
|
function validateAttentionRevisit(e, t) {
|
|
5160
5171
|
e.revisitAt && e.disposition !== "deferred" && t.addIssue({
|
|
5161
5172
|
code: "custom",
|
|
@@ -5163,17 +5174,17 @@ function validateAttentionRevisit(e, t) {
|
|
|
5163
5174
|
message: "revisitAt requires deferred disposition"
|
|
5164
5175
|
});
|
|
5165
5176
|
}
|
|
5166
|
-
var
|
|
5167
|
-
disposition:
|
|
5168
|
-
revisitAt:
|
|
5169
|
-
}).superRefine(validateAttentionRevisit),
|
|
5170
|
-
disposition:
|
|
5171
|
-
revisitAt:
|
|
5172
|
-
}).superRefine(validateAttentionRevisit),
|
|
5177
|
+
var Qi = Yi.extend({
|
|
5178
|
+
disposition: Xi.optional(),
|
|
5179
|
+
revisitAt: Zi.optional()
|
|
5180
|
+
}).superRefine(validateAttentionRevisit), $i = Yi.extend({
|
|
5181
|
+
disposition: Xi,
|
|
5182
|
+
revisitAt: Zi.optional()
|
|
5183
|
+
}).superRefine(validateAttentionRevisit), ea = object({
|
|
5173
5184
|
turnId: string().min(1).optional(),
|
|
5174
5185
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
5175
|
-
attachments: array(
|
|
5176
|
-
toolActivities: array(
|
|
5186
|
+
attachments: array(Ji).optional(),
|
|
5187
|
+
toolActivities: array(Gi).optional(),
|
|
5177
5188
|
issue: object({
|
|
5178
5189
|
code: string(),
|
|
5179
5190
|
bucket: _enum(["account", "error"]),
|
|
@@ -5205,8 +5216,8 @@ var Zi = Ji.extend({
|
|
|
5205
5216
|
])
|
|
5206
5217
|
}).catchall(unknown()) }).catchall(unknown()).optional(),
|
|
5207
5218
|
ownerHandoff: literal(!0).optional(),
|
|
5208
|
-
attention: array(
|
|
5209
|
-
}).catchall(unknown()),
|
|
5219
|
+
attention: array(Qi).max(20).optional()
|
|
5220
|
+
}).catchall(unknown()), ta = object({
|
|
5210
5221
|
messageId: string().min(1),
|
|
5211
5222
|
conversationId: string().min(1),
|
|
5212
5223
|
role: _enum([
|
|
@@ -5219,12 +5230,12 @@ var Zi = Ji.extend({
|
|
|
5219
5230
|
content: string(),
|
|
5220
5231
|
sequence: string().min(1),
|
|
5221
5232
|
clientNonce: string().nullable().optional(),
|
|
5222
|
-
metadata:
|
|
5233
|
+
metadata: ea.nullable().optional(),
|
|
5223
5234
|
status: string().nullable().optional(),
|
|
5224
5235
|
createdAt: string(),
|
|
5225
5236
|
updatedAt: string()
|
|
5226
|
-
}),
|
|
5227
|
-
type:
|
|
5237
|
+
}), na = object({
|
|
5238
|
+
type: Ki,
|
|
5228
5239
|
mediaId: string().min(1).optional(),
|
|
5229
5240
|
url: url().optional(),
|
|
5230
5241
|
name: string().min(1).optional(),
|
|
@@ -5240,11 +5251,11 @@ var Zi = Ji.extend({
|
|
|
5240
5251
|
path: [n],
|
|
5241
5252
|
message: `${n} is required when mediaId is absent`
|
|
5242
5253
|
});
|
|
5243
|
-
}),
|
|
5254
|
+
}), ra = object({
|
|
5244
5255
|
conversationId: string().min(1),
|
|
5245
5256
|
content: string().max(1e4).default(""),
|
|
5246
5257
|
clientNonce: string().max(64).optional(),
|
|
5247
|
-
attachments: array(
|
|
5258
|
+
attachments: array(na).max(10).optional(),
|
|
5248
5259
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
5249
5260
|
actionUrls: object({
|
|
5250
5261
|
billing: string().max(500),
|
|
@@ -5254,7 +5265,7 @@ var Zi = Ji.extend({
|
|
|
5254
5265
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5255
5266
|
path: ["content"],
|
|
5256
5267
|
message: "Message or attachment required"
|
|
5257
|
-
}),
|
|
5268
|
+
}), ia = object({
|
|
5258
5269
|
type: _enum(["user", "agent"]),
|
|
5259
5270
|
id: string().min(1)
|
|
5260
5271
|
}).strict();
|
|
@@ -5269,44 +5280,44 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5269
5280
|
}), n.add(e);
|
|
5270
5281
|
}
|
|
5271
5282
|
}
|
|
5272
|
-
var
|
|
5283
|
+
var aa = object({
|
|
5273
5284
|
orgId: string().min(1),
|
|
5274
|
-
participants: array(
|
|
5275
|
-
}).strict().superRefine(addDuplicateConversationTargetIssues),
|
|
5285
|
+
participants: array(ia).min(1).max(20)
|
|
5286
|
+
}).strict().superRefine(addDuplicateConversationTargetIssues), oa = object({
|
|
5276
5287
|
orgId: string().min(1),
|
|
5277
|
-
participants: array(
|
|
5288
|
+
participants: array(ia).min(1).max(20)
|
|
5278
5289
|
}).strict().superRefine((e, t) => {
|
|
5279
5290
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5280
5291
|
code: "custom",
|
|
5281
5292
|
path: ["participants"],
|
|
5282
5293
|
message: "New sessions require at least one agent participant."
|
|
5283
5294
|
});
|
|
5284
|
-
}),
|
|
5295
|
+
}), sa = object({
|
|
5285
5296
|
category: string().min(1).max(30).optional(),
|
|
5286
5297
|
reason: string().max(2e3).optional()
|
|
5287
|
-
}).strict(),
|
|
5298
|
+
}).strict(), ca = _enum([
|
|
5288
5299
|
"1:1",
|
|
5289
5300
|
"4:3",
|
|
5290
5301
|
"3:4",
|
|
5291
5302
|
"16:9",
|
|
5292
5303
|
"9:16"
|
|
5293
|
-
]),
|
|
5304
|
+
]), la = _enum([
|
|
5294
5305
|
"1K",
|
|
5295
5306
|
"2K",
|
|
5296
5307
|
"4K"
|
|
5297
|
-
]),
|
|
5308
|
+
]), ua = object({
|
|
5298
5309
|
prompt: string().trim().min(1).max(4e3),
|
|
5299
|
-
aspectRatio:
|
|
5310
|
+
aspectRatio: ca.default("1:1"),
|
|
5300
5311
|
outputFormat: _enum([
|
|
5301
5312
|
"png",
|
|
5302
5313
|
"jpeg",
|
|
5303
5314
|
"webp"
|
|
5304
5315
|
]).default("webp"),
|
|
5305
|
-
resolution:
|
|
5316
|
+
resolution: la.default("2K"),
|
|
5306
5317
|
style: string().trim().max(200).optional(),
|
|
5307
5318
|
altText: string().trim().max(500).optional(),
|
|
5308
5319
|
referenceMediaIds: array(string().min(1)).max(4).optional()
|
|
5309
|
-
}).strict(),
|
|
5320
|
+
}).strict(), da = object({
|
|
5310
5321
|
mediaId: string().min(1),
|
|
5311
5322
|
src: url(),
|
|
5312
5323
|
filename: string().min(1),
|
|
@@ -5316,54 +5327,54 @@ var ia = object({
|
|
|
5316
5327
|
provider: string().min(1).optional(),
|
|
5317
5328
|
providerRequestId: string().min(1).optional(),
|
|
5318
5329
|
media: string().startsWith("MEDIA:"),
|
|
5319
|
-
attachment:
|
|
5320
|
-
}),
|
|
5330
|
+
attachment: Ji.extend({ type: literal("image") })
|
|
5331
|
+
}), fa = object({
|
|
5321
5332
|
identityToken: string().min(1),
|
|
5322
5333
|
fullName: string().optional()
|
|
5323
|
-
}),
|
|
5334
|
+
}), pa = object({
|
|
5324
5335
|
redirect: string(),
|
|
5325
5336
|
redirectReason: string(),
|
|
5326
5337
|
isNew: boolean(),
|
|
5327
5338
|
deviceId: string()
|
|
5328
|
-
}),
|
|
5339
|
+
}), ma = object({
|
|
5329
5340
|
ok: literal(!0),
|
|
5330
|
-
data:
|
|
5341
|
+
data: pa,
|
|
5331
5342
|
token: string()
|
|
5332
|
-
}),
|
|
5343
|
+
}), ha = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine(isSafeRedirectPath, "path must be a relative dashboard path") }), ga = object({ url: string() }), _a = object({
|
|
5333
5344
|
ok: literal(!0),
|
|
5334
|
-
data:
|
|
5335
|
-
}),
|
|
5345
|
+
data: ga
|
|
5346
|
+
}), va = object({ token: string().min(1) }), ya = object({
|
|
5336
5347
|
redirect: string(),
|
|
5337
5348
|
redirectReason: string(),
|
|
5338
5349
|
deviceId: string()
|
|
5339
|
-
}),
|
|
5350
|
+
}), ba = object({
|
|
5340
5351
|
ok: literal(!0),
|
|
5341
|
-
data:
|
|
5352
|
+
data: ya,
|
|
5342
5353
|
token: string()
|
|
5343
|
-
}),
|
|
5354
|
+
}), xa = _enum(["none", "active_assistant"]), Sa = _enum([
|
|
5344
5355
|
"none",
|
|
5345
5356
|
"active",
|
|
5346
5357
|
"trial",
|
|
5347
5358
|
"canceling",
|
|
5348
5359
|
"past_due",
|
|
5349
5360
|
"paused"
|
|
5350
|
-
]),
|
|
5361
|
+
]), Ca = object({
|
|
5351
5362
|
brand: string(),
|
|
5352
5363
|
last4: string(),
|
|
5353
5364
|
expMonth: number(),
|
|
5354
5365
|
expYear: number()
|
|
5355
|
-
}),
|
|
5366
|
+
}), wa = object({
|
|
5356
5367
|
date: string(),
|
|
5357
5368
|
amount: number(),
|
|
5358
5369
|
status: string(),
|
|
5359
5370
|
invoicePdf: string().optional()
|
|
5360
|
-
}),
|
|
5371
|
+
}), Ta = object({
|
|
5361
5372
|
graceEndsAt: string().optional(),
|
|
5362
5373
|
suspended: boolean(),
|
|
5363
5374
|
url: string().optional()
|
|
5364
|
-
}),
|
|
5365
|
-
plan:
|
|
5366
|
-
status:
|
|
5375
|
+
}), Ea = object({
|
|
5376
|
+
plan: xa,
|
|
5377
|
+
status: Sa,
|
|
5367
5378
|
price: number(),
|
|
5368
5379
|
tierRates: record(string(), number()).optional(),
|
|
5369
5380
|
maxAgents: number(),
|
|
@@ -5376,34 +5387,34 @@ var ia = object({
|
|
|
5376
5387
|
cancelAt: string().optional(),
|
|
5377
5388
|
trialEnd: string().optional(),
|
|
5378
5389
|
trialDaysRemaining: number().optional(),
|
|
5379
|
-
paymentMethod:
|
|
5380
|
-
paymentRecovery:
|
|
5381
|
-
invoices: array(
|
|
5390
|
+
paymentMethod: Ca.optional(),
|
|
5391
|
+
paymentRecovery: Ta.optional(),
|
|
5392
|
+
invoices: array(wa),
|
|
5382
5393
|
stripeError: string().optional()
|
|
5383
|
-
}),
|
|
5394
|
+
}), Da = _enum([
|
|
5384
5395
|
"demo_agent_exists",
|
|
5385
5396
|
"demo_usage_exhausted",
|
|
5386
5397
|
"subscription_required",
|
|
5387
5398
|
"plan_limit"
|
|
5388
|
-
]),
|
|
5399
|
+
]), Oa = object({
|
|
5389
5400
|
canCreate: boolean(),
|
|
5390
5401
|
activeAgents: number().int().nonnegative(),
|
|
5391
5402
|
agentLimit: number().int().nonnegative(),
|
|
5392
5403
|
isDemo: boolean(),
|
|
5393
|
-
reason:
|
|
5394
|
-
}),
|
|
5404
|
+
reason: Da.optional()
|
|
5405
|
+
}), ka = object({
|
|
5395
5406
|
orgId: string(),
|
|
5396
5407
|
agentName: string().optional(),
|
|
5397
5408
|
runtime: string().optional()
|
|
5398
|
-
}),
|
|
5409
|
+
}), Aa = object({
|
|
5399
5410
|
created: number(),
|
|
5400
5411
|
skipped: number(),
|
|
5401
5412
|
errors: array(string())
|
|
5402
|
-
}),
|
|
5413
|
+
}), ja = object({
|
|
5403
5414
|
updated: number(),
|
|
5404
5415
|
errors: array(string())
|
|
5405
|
-
}),
|
|
5406
|
-
code:
|
|
5416
|
+
}), Ma = Wr, Na = object({
|
|
5417
|
+
code: zi,
|
|
5407
5418
|
message: string(),
|
|
5408
5419
|
bucket: _enum(["account", "error"]).optional(),
|
|
5409
5420
|
actionLabel: string().optional(),
|
|
@@ -5420,14 +5431,14 @@ function toChatStreamError(e) {
|
|
|
5420
5431
|
...e.help ? { help: e.help } : {}
|
|
5421
5432
|
};
|
|
5422
5433
|
}
|
|
5423
|
-
var
|
|
5434
|
+
var Pa = discriminatedUnion("event", [
|
|
5424
5435
|
object({
|
|
5425
5436
|
event: literal("status"),
|
|
5426
|
-
data:
|
|
5437
|
+
data: Ma
|
|
5427
5438
|
}),
|
|
5428
5439
|
object({
|
|
5429
5440
|
event: literal("message"),
|
|
5430
|
-
data: object({ message:
|
|
5441
|
+
data: object({ message: ta })
|
|
5431
5442
|
}),
|
|
5432
5443
|
object({
|
|
5433
5444
|
event: literal("message_delta"),
|
|
@@ -5447,7 +5458,7 @@ var Na = discriminatedUnion("event", [
|
|
|
5447
5458
|
}),
|
|
5448
5459
|
object({
|
|
5449
5460
|
event: literal("tool_activity"),
|
|
5450
|
-
data:
|
|
5461
|
+
data: Wi
|
|
5451
5462
|
}),
|
|
5452
5463
|
object({
|
|
5453
5464
|
event: literal("working_end"),
|
|
@@ -5459,7 +5470,7 @@ var Na = discriminatedUnion("event", [
|
|
|
5459
5470
|
}),
|
|
5460
5471
|
object({
|
|
5461
5472
|
event: literal("error"),
|
|
5462
|
-
data:
|
|
5473
|
+
data: Na
|
|
5463
5474
|
})
|
|
5464
5475
|
]);
|
|
5465
5476
|
function chatEventUserTurnId(e) {
|
|
@@ -5611,7 +5622,7 @@ function parseChatEvent(e) {
|
|
|
5611
5622
|
for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
|
|
5612
5623
|
if (!n || r === void 0) return null;
|
|
5613
5624
|
try {
|
|
5614
|
-
let e =
|
|
5625
|
+
let e = Pa.safeParse({
|
|
5615
5626
|
event: n,
|
|
5616
5627
|
data: JSON.parse(r)
|
|
5617
5628
|
});
|
|
@@ -5622,7 +5633,7 @@ function parseChatEvent(e) {
|
|
|
5622
5633
|
}
|
|
5623
5634
|
//#endregion
|
|
5624
5635
|
//#region ../core/dist/wire/chat-card.js
|
|
5625
|
-
var
|
|
5636
|
+
var Fa = object({
|
|
5626
5637
|
label: string().trim().min(1).max(40),
|
|
5627
5638
|
reply: string().trim().min(1).max(500),
|
|
5628
5639
|
style: _enum([
|
|
@@ -5630,11 +5641,11 @@ var Pa = object({
|
|
|
5630
5641
|
"default",
|
|
5631
5642
|
"destructive"
|
|
5632
5643
|
]).optional()
|
|
5633
|
-
}).strip(),
|
|
5644
|
+
}).strip(), Ia = object({
|
|
5634
5645
|
version: literal(1),
|
|
5635
5646
|
title: string().trim().min(1).max(200),
|
|
5636
5647
|
body: string().trim().min(1).max(8e3).optional(),
|
|
5637
|
-
actions: array(
|
|
5648
|
+
actions: array(Fa).min(1).max(3).optional()
|
|
5638
5649
|
}).strip();
|
|
5639
5650
|
function parseChatCardFencePayload(e) {
|
|
5640
5651
|
let t;
|
|
@@ -5647,7 +5658,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5647
5658
|
message: e instanceof Error ? e.message : "Invalid JSON"
|
|
5648
5659
|
};
|
|
5649
5660
|
}
|
|
5650
|
-
let n =
|
|
5661
|
+
let n = Ia.safeParse(t);
|
|
5651
5662
|
return n.success ? {
|
|
5652
5663
|
ok: !0,
|
|
5653
5664
|
spec: n.data
|
|
@@ -5659,36 +5670,36 @@ function parseChatCardFencePayload(e) {
|
|
|
5659
5670
|
}
|
|
5660
5671
|
//#endregion
|
|
5661
5672
|
//#region ../core/dist/wire/chat-visual.js
|
|
5662
|
-
var
|
|
5673
|
+
var La = string().trim().min(1).max(240), Ra = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), za = record(X, union([
|
|
5663
5674
|
string().max(500),
|
|
5664
5675
|
number().finite(),
|
|
5665
5676
|
boolean(),
|
|
5666
5677
|
_null()
|
|
5667
|
-
])),
|
|
5678
|
+
])), Ba = _enum([
|
|
5668
5679
|
"compact",
|
|
5669
5680
|
"currency",
|
|
5670
5681
|
"duration",
|
|
5671
5682
|
"integer",
|
|
5672
5683
|
"percent",
|
|
5673
5684
|
"raw"
|
|
5674
|
-
]),
|
|
5675
|
-
title:
|
|
5676
|
-
description:
|
|
5677
|
-
footer:
|
|
5678
|
-
}).strip(),
|
|
5685
|
+
]), Va = object({
|
|
5686
|
+
title: La,
|
|
5687
|
+
description: Ra.optional(),
|
|
5688
|
+
footer: Ra.optional()
|
|
5689
|
+
}).strip(), Ha = object({
|
|
5679
5690
|
dataKey: X,
|
|
5680
5691
|
label: Z.optional(),
|
|
5681
5692
|
axisLabel: Z.optional(),
|
|
5682
|
-
valueFormat:
|
|
5693
|
+
valueFormat: Ba.optional(),
|
|
5683
5694
|
valuePrefix: string().trim().max(12).optional(),
|
|
5684
5695
|
valueSuffix: string().trim().max(12).optional()
|
|
5685
|
-
}).strip(),
|
|
5696
|
+
}).strip(), Ua = object({
|
|
5686
5697
|
kind: literal("linear"),
|
|
5687
5698
|
dataKey: X,
|
|
5688
5699
|
label: Z.optional()
|
|
5689
|
-
}).strip(),
|
|
5700
|
+
}).strip(), Wa = object({
|
|
5690
5701
|
version: literal(1),
|
|
5691
|
-
meta:
|
|
5702
|
+
meta: Va,
|
|
5692
5703
|
fallbackMarkdown: string().trim().min(1).max(4e3)
|
|
5693
5704
|
}).strip();
|
|
5694
5705
|
function dataKeys(e) {
|
|
@@ -5730,7 +5741,7 @@ function requireNumericDataKeys(e, t, n) {
|
|
|
5730
5741
|
});
|
|
5731
5742
|
}
|
|
5732
5743
|
}
|
|
5733
|
-
var
|
|
5744
|
+
var Ga = discriminatedUnion("chartType", [Wa.extend({
|
|
5734
5745
|
visualType: literal("chart"),
|
|
5735
5746
|
chartType: _enum([
|
|
5736
5747
|
"bar",
|
|
@@ -5739,11 +5750,11 @@ var Wa = discriminatedUnion("chartType", [Ua.extend({
|
|
|
5739
5750
|
]),
|
|
5740
5751
|
xKey: X,
|
|
5741
5752
|
xAxisLabel: Z.optional(),
|
|
5742
|
-
series: array(
|
|
5743
|
-
data: array(
|
|
5753
|
+
series: array(Ha).min(1).max(6),
|
|
5754
|
+
data: array(za).min(1).max(120),
|
|
5744
5755
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
5745
5756
|
stacking: _enum(["grouped", "stacked"]).optional(),
|
|
5746
|
-
trendLine:
|
|
5757
|
+
trendLine: Ua.optional()
|
|
5747
5758
|
}).strip().superRefine((e, t) => {
|
|
5748
5759
|
e.stacking && e.chartType !== "bar" && t.addIssue({
|
|
5749
5760
|
code: "custom",
|
|
@@ -5781,13 +5792,13 @@ var Wa = discriminatedUnion("chartType", [Ua.extend({
|
|
|
5781
5792
|
path: ["trendLine", "dataKey"],
|
|
5782
5793
|
value: e.trendLine.dataKey
|
|
5783
5794
|
}] : []], t);
|
|
5784
|
-
}),
|
|
5795
|
+
}), Wa.extend({
|
|
5785
5796
|
visualType: literal("chart"),
|
|
5786
5797
|
chartType: literal("pie"),
|
|
5787
5798
|
nameKey: X,
|
|
5788
5799
|
valueKey: X,
|
|
5789
|
-
series: array(
|
|
5790
|
-
data: array(
|
|
5800
|
+
series: array(Ha).max(1).optional(),
|
|
5801
|
+
data: array(za).min(1).max(16)
|
|
5791
5802
|
}).strip().superRefine((e, t) => {
|
|
5792
5803
|
requireDataKeys(e.data, [
|
|
5793
5804
|
{
|
|
@@ -5811,10 +5822,10 @@ var Wa = discriminatedUnion("chartType", [Ua.extend({
|
|
|
5811
5822
|
value: e.valueKey,
|
|
5812
5823
|
nonnegative: !0
|
|
5813
5824
|
}], t);
|
|
5814
|
-
})]),
|
|
5825
|
+
})]), Ka = object({
|
|
5815
5826
|
id: X,
|
|
5816
5827
|
label: Z,
|
|
5817
|
-
detail:
|
|
5828
|
+
detail: Ra.optional(),
|
|
5818
5829
|
kind: _enum([
|
|
5819
5830
|
"actor",
|
|
5820
5831
|
"agent",
|
|
@@ -5825,11 +5836,11 @@ var Wa = discriminatedUnion("chartType", [Ua.extend({
|
|
|
5825
5836
|
"system",
|
|
5826
5837
|
"task"
|
|
5827
5838
|
]).optional()
|
|
5828
|
-
}).strip(),
|
|
5839
|
+
}).strip(), qa = object({
|
|
5829
5840
|
from: X,
|
|
5830
5841
|
to: X,
|
|
5831
5842
|
label: Z.optional()
|
|
5832
|
-
}).strip(),
|
|
5843
|
+
}).strip(), Ja = union([Ga, Wa.extend({
|
|
5833
5844
|
visualType: literal("diagram"),
|
|
5834
5845
|
diagramType: _enum([
|
|
5835
5846
|
"flow",
|
|
@@ -5843,8 +5854,8 @@ var Wa = discriminatedUnion("chartType", [Ua.extend({
|
|
|
5843
5854
|
"radial",
|
|
5844
5855
|
"top-to-bottom"
|
|
5845
5856
|
]).default("auto"),
|
|
5846
|
-
nodes: array(
|
|
5847
|
-
edges: array(
|
|
5857
|
+
nodes: array(Ka).min(1).max(24),
|
|
5858
|
+
edges: array(qa).max(48)
|
|
5848
5859
|
}).strip().superRefine((e, t) => {
|
|
5849
5860
|
let n = new Set(e.nodes.map((e) => e.id));
|
|
5850
5861
|
for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
|
|
@@ -6003,11 +6014,11 @@ function parseChatVisualFencePayload(e) {
|
|
|
6003
6014
|
fallbackMarkdown: r
|
|
6004
6015
|
};
|
|
6005
6016
|
}
|
|
6006
|
-
let n =
|
|
6017
|
+
let n = Ja.safeParse(t);
|
|
6007
6018
|
if (!n.success) {
|
|
6008
6019
|
let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
|
|
6009
6020
|
if (e) {
|
|
6010
|
-
let t =
|
|
6021
|
+
let t = Ja.safeParse(e);
|
|
6011
6022
|
if (t.success) return {
|
|
6012
6023
|
ok: !0,
|
|
6013
6024
|
spec: t.data
|
|
@@ -6032,7 +6043,7 @@ function extractChatVisualFencePayloads(e) {
|
|
|
6032
6043
|
}
|
|
6033
6044
|
//#endregion
|
|
6034
6045
|
//#region ../core/dist/wire/conversation.js
|
|
6035
|
-
var
|
|
6046
|
+
var Ya = object({
|
|
6036
6047
|
type: _enum([
|
|
6037
6048
|
"user",
|
|
6038
6049
|
"agent",
|
|
@@ -6052,7 +6063,7 @@ var Ja = object({
|
|
|
6052
6063
|
displayName: string().optional(),
|
|
6053
6064
|
handle: string().optional(),
|
|
6054
6065
|
avatarUrl: string().optional()
|
|
6055
|
-
}).strict(),
|
|
6066
|
+
}).strict(), Xa = object({
|
|
6056
6067
|
messageId: string(),
|
|
6057
6068
|
role: _enum([
|
|
6058
6069
|
"user",
|
|
@@ -6062,7 +6073,7 @@ var Ja = object({
|
|
|
6062
6073
|
content: string(),
|
|
6063
6074
|
sequence: string(),
|
|
6064
6075
|
createdAt: string()
|
|
6065
|
-
}),
|
|
6076
|
+
}), Za = object({
|
|
6066
6077
|
conversationId: string(),
|
|
6067
6078
|
orgId: string(),
|
|
6068
6079
|
kind: _enum(["direct", "group"]),
|
|
@@ -6072,30 +6083,30 @@ var Ja = object({
|
|
|
6072
6083
|
"requester",
|
|
6073
6084
|
"member"
|
|
6074
6085
|
]),
|
|
6075
|
-
participants: array(
|
|
6076
|
-
lastMessage:
|
|
6086
|
+
participants: array(Ya),
|
|
6087
|
+
lastMessage: Xa.nullable(),
|
|
6077
6088
|
unreadCount: number().int().nonnegative(),
|
|
6078
6089
|
latestSequence: string().nullable()
|
|
6079
|
-
}),
|
|
6090
|
+
}), Qa = object({ sequence: string().min(1) }), $a = object({ turnId: string().min(1).optional() }).strict(), eo = object({
|
|
6080
6091
|
cancelled: boolean(),
|
|
6081
6092
|
cancelledTurnIds: array(string())
|
|
6082
|
-
}).strict(),
|
|
6093
|
+
}).strict(), to = object({
|
|
6083
6094
|
conversationId: string(),
|
|
6084
6095
|
messageId: string(),
|
|
6085
6096
|
sequence: string(),
|
|
6086
6097
|
snippet: string(),
|
|
6087
6098
|
createdAt: string(),
|
|
6088
|
-
participants: array(
|
|
6089
|
-
}),
|
|
6099
|
+
participants: array(Ya)
|
|
6100
|
+
}), no = object({
|
|
6090
6101
|
conversationId: string(),
|
|
6091
|
-
lastMessage:
|
|
6102
|
+
lastMessage: Xa.nullable(),
|
|
6092
6103
|
unreadCount: number().int().nonnegative(),
|
|
6093
6104
|
latestSequence: string().nullable()
|
|
6094
|
-
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()),
|
|
6105
|
+
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), ro = preprocess((e) => e === void 0 ? null : e, B.nullable()), io = preprocess((e) => e === void 0 ? null : e, V.nullable()), ao = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
6095
6106
|
"user",
|
|
6096
6107
|
"assistant",
|
|
6097
6108
|
"system"
|
|
6098
|
-
]).nullable()),
|
|
6109
|
+
]).nullable()), oo = preprocess((e) => e === void 0 ? 0 : e, number()), so = object({
|
|
6099
6110
|
agentId: string(),
|
|
6100
6111
|
handle: string(),
|
|
6101
6112
|
name: string(),
|
|
@@ -6104,19 +6115,19 @@ var Ja = object({
|
|
|
6104
6115
|
orgHandle: Q,
|
|
6105
6116
|
ownerEmail: Q,
|
|
6106
6117
|
ownerName: Q,
|
|
6107
|
-
state:
|
|
6108
|
-
desiredStatus:
|
|
6118
|
+
state: ro,
|
|
6119
|
+
desiredStatus: io,
|
|
6109
6120
|
runtime: string(),
|
|
6110
6121
|
imageVersion: Q,
|
|
6111
6122
|
lastHealthyAt: Q,
|
|
6112
6123
|
lastActiveAt: Q,
|
|
6113
6124
|
lastUserMessageAt: Q,
|
|
6114
6125
|
lastMessageAt: Q,
|
|
6115
|
-
lastMessageRole:
|
|
6126
|
+
lastMessageRole: ao,
|
|
6116
6127
|
lastMessageChannel: Q,
|
|
6117
6128
|
primaryChannel: Q,
|
|
6118
|
-
totalMessages:
|
|
6119
|
-
totalSessions:
|
|
6129
|
+
totalMessages: oo,
|
|
6130
|
+
totalSessions: oo,
|
|
6120
6131
|
error: Q,
|
|
6121
6132
|
appHandle: string(),
|
|
6122
6133
|
flyAppExists: boolean(),
|
|
@@ -6125,7 +6136,7 @@ var Ja = object({
|
|
|
6125
6136
|
billingActive: boolean(),
|
|
6126
6137
|
createdAt: string(),
|
|
6127
6138
|
updatedAt: string()
|
|
6128
|
-
}),
|
|
6139
|
+
}), co = object({
|
|
6129
6140
|
running: number(),
|
|
6130
6141
|
stopped: number(),
|
|
6131
6142
|
error: number(),
|
|
@@ -6133,9 +6144,9 @@ var Ja = object({
|
|
|
6133
6144
|
stopping: number(),
|
|
6134
6145
|
unknown: number(),
|
|
6135
6146
|
total: number()
|
|
6136
|
-
}),
|
|
6137
|
-
agents: array(
|
|
6138
|
-
summary:
|
|
6147
|
+
}), lo = object({
|
|
6148
|
+
agents: array(so),
|
|
6149
|
+
summary: co,
|
|
6139
6150
|
orphanedApps: array(string()),
|
|
6140
6151
|
dailyMessages30d: array(number().int()).optional(),
|
|
6141
6152
|
flyAppCount: number().optional(),
|
|
@@ -6158,7 +6169,7 @@ function resolveHeroStateKey(e) {
|
|
|
6158
6169
|
case "stopping": return null;
|
|
6159
6170
|
}
|
|
6160
6171
|
}
|
|
6161
|
-
var
|
|
6172
|
+
var uo = {
|
|
6162
6173
|
billing_no_plan: { title: (e) => `${e} needs a plan to wake` },
|
|
6163
6174
|
billing_seat_limit: {
|
|
6164
6175
|
title: (e) => `No room to wake ${e}`,
|
|
@@ -6184,7 +6195,7 @@ function buildHeroState(e) {
|
|
|
6184
6195
|
if (!t) return null;
|
|
6185
6196
|
switch (t) {
|
|
6186
6197
|
case "blocked": {
|
|
6187
|
-
let n = e.blocker, r =
|
|
6198
|
+
let n = e.blocker, r = uo[n.code];
|
|
6188
6199
|
return {
|
|
6189
6200
|
kind: t,
|
|
6190
6201
|
title: r ? r.title(e.name) : n.title,
|
|
@@ -6232,20 +6243,20 @@ function buildHeroState(e) {
|
|
|
6232
6243
|
}
|
|
6233
6244
|
//#endregion
|
|
6234
6245
|
//#region ../core/dist/wire/media.js
|
|
6235
|
-
var
|
|
6246
|
+
var fo = xr, po = P, $ = object({
|
|
6236
6247
|
mediaId: string(),
|
|
6237
6248
|
src: string(),
|
|
6238
6249
|
alt: string().nullable().optional(),
|
|
6239
6250
|
filename: string().optional(),
|
|
6240
6251
|
displayName: string().nullable().optional(),
|
|
6241
6252
|
mimeType: string().optional(),
|
|
6242
|
-
mediaType:
|
|
6243
|
-
type:
|
|
6253
|
+
mediaType: po.optional(),
|
|
6254
|
+
type: po.optional(),
|
|
6244
6255
|
size: number().optional(),
|
|
6245
6256
|
width: number().nullable().optional(),
|
|
6246
6257
|
height: number().nullable().optional(),
|
|
6247
6258
|
duration: number().nullable().optional(),
|
|
6248
|
-
context:
|
|
6259
|
+
context: fo.nullable().optional(),
|
|
6249
6260
|
blurhash: string().nullable().optional(),
|
|
6250
6261
|
quality: string().optional(),
|
|
6251
6262
|
status: string().optional(),
|
|
@@ -6254,13 +6265,13 @@ var uo = br, fo = P, $ = object({
|
|
|
6254
6265
|
agentId: string().nullable().optional(),
|
|
6255
6266
|
createdAt: string().optional(),
|
|
6256
6267
|
updatedAt: string().optional()
|
|
6257
|
-
}),
|
|
6268
|
+
}), mo = object({
|
|
6258
6269
|
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."),
|
|
6259
|
-
context:
|
|
6270
|
+
context: fo.optional().default("general"),
|
|
6260
6271
|
agentId: string().optional(),
|
|
6261
6272
|
orgId: string().optional(),
|
|
6262
6273
|
duration: number().optional()
|
|
6263
|
-
}),
|
|
6274
|
+
}), ho = object({
|
|
6264
6275
|
mediaId: string().optional(),
|
|
6265
6276
|
src: string().optional(),
|
|
6266
6277
|
alt: string().optional(),
|
|
@@ -6269,7 +6280,7 @@ var uo = br, fo = P, $ = object({
|
|
|
6269
6280
|
mimeType: string().optional(),
|
|
6270
6281
|
mediaType: string().optional(),
|
|
6271
6282
|
blurhash: string().optional()
|
|
6272
|
-
}),
|
|
6283
|
+
}), go = object({
|
|
6273
6284
|
membershipId: string(),
|
|
6274
6285
|
userId: string(),
|
|
6275
6286
|
orgId: string(),
|
|
@@ -6284,15 +6295,15 @@ var uo = br, fo = P, $ = object({
|
|
|
6284
6295
|
status: _enum(["active", "suspended"]),
|
|
6285
6296
|
joinedAt: string(),
|
|
6286
6297
|
lastSeenAt: string().optional(),
|
|
6287
|
-
avatar:
|
|
6288
|
-
}),
|
|
6298
|
+
avatar: ho.optional()
|
|
6299
|
+
}), _o = object({
|
|
6289
6300
|
invitationId: string(),
|
|
6290
6301
|
email: string(),
|
|
6291
6302
|
role: _enum(["admin", "member"]),
|
|
6292
6303
|
status: string(),
|
|
6293
6304
|
expiresAt: string(),
|
|
6294
6305
|
createdAt: string()
|
|
6295
|
-
}),
|
|
6306
|
+
}), vo = object({
|
|
6296
6307
|
token: string(),
|
|
6297
6308
|
email: string(),
|
|
6298
6309
|
orgId: string(),
|
|
@@ -6314,20 +6325,20 @@ var uo = br, fo = P, $ = object({
|
|
|
6314
6325
|
]),
|
|
6315
6326
|
expiresAt: string(),
|
|
6316
6327
|
memberCount: number().optional()
|
|
6317
|
-
}),
|
|
6328
|
+
}), yo = object({
|
|
6318
6329
|
email: string().email(),
|
|
6319
6330
|
role: _enum(["admin", "member"]).optional(),
|
|
6320
6331
|
message: string().max(500).optional()
|
|
6321
|
-
}).strict(),
|
|
6332
|
+
}).strict(), bo = object({ role: _enum(["admin", "member"]) }).strict(), xo = object({ token: string().min(1) }).strict(), So = _enum([
|
|
6322
6333
|
"planLimit",
|
|
6323
6334
|
"billingOverdue",
|
|
6324
6335
|
"rebuilding",
|
|
6325
6336
|
"agentNotFound"
|
|
6326
|
-
]),
|
|
6337
|
+
]), Co = _enum([
|
|
6327
6338
|
"rebuilding",
|
|
6328
6339
|
"provisioning",
|
|
6329
6340
|
"billingOverdue"
|
|
6330
|
-
]),
|
|
6341
|
+
]), wo = object({
|
|
6331
6342
|
agentId: string(),
|
|
6332
6343
|
name: string(),
|
|
6333
6344
|
avatar: F.optional(),
|
|
@@ -6347,21 +6358,21 @@ var uo = br, fo = P, $ = object({
|
|
|
6347
6358
|
detail: string().optional(),
|
|
6348
6359
|
blocker: R.optional(),
|
|
6349
6360
|
canWake: boolean(),
|
|
6350
|
-
cantWakeReason:
|
|
6361
|
+
cantWakeReason: So.optional(),
|
|
6351
6362
|
canRebuild: boolean(),
|
|
6352
|
-
cantRebuildReason:
|
|
6353
|
-
}),
|
|
6354
|
-
zNotificationTelemetryAck: () =>
|
|
6355
|
-
zNotificationTelemetryEvent: () =>
|
|
6356
|
-
zRegisterDeviceRequest: () =>
|
|
6357
|
-
zRegisterDeviceResponse: () =>
|
|
6358
|
-
}),
|
|
6363
|
+
cantRebuildReason: Co.optional()
|
|
6364
|
+
}), To = /* @__PURE__ */ t({
|
|
6365
|
+
zNotificationTelemetryAck: () => ko,
|
|
6366
|
+
zNotificationTelemetryEvent: () => Oo,
|
|
6367
|
+
zRegisterDeviceRequest: () => Eo,
|
|
6368
|
+
zRegisterDeviceResponse: () => Do
|
|
6369
|
+
}), Eo = object({
|
|
6359
6370
|
deviceId: string().min(1).max(64),
|
|
6360
6371
|
pushToken: string().min(1).max(200),
|
|
6361
6372
|
appVersion: string().max(40).optional(),
|
|
6362
6373
|
osVersion: string().max(40).optional(),
|
|
6363
6374
|
model: string().max(80).optional()
|
|
6364
|
-
}),
|
|
6375
|
+
}), Do = object({ deviceId: string().min(1).max(64) }), Oo = object({
|
|
6365
6376
|
deviceId: string().min(1).max(64),
|
|
6366
6377
|
kind: string().min(1).max(30),
|
|
6367
6378
|
action: _enum([
|
|
@@ -6370,7 +6381,7 @@ var uo = br, fo = P, $ = object({
|
|
|
6370
6381
|
"dismissed"
|
|
6371
6382
|
]),
|
|
6372
6383
|
messageId: string().max(32).optional()
|
|
6373
|
-
}),
|
|
6384
|
+
}), ko = object({ updated: boolean() }), Ao = q.pick({
|
|
6374
6385
|
orgId: !0,
|
|
6375
6386
|
handle: !0,
|
|
6376
6387
|
name: !0,
|
|
@@ -6386,11 +6397,11 @@ var uo = br, fo = P, $ = object({
|
|
|
6386
6397
|
}).extend({
|
|
6387
6398
|
avatar: $.nullable().optional(),
|
|
6388
6399
|
cover: $.nullable().optional()
|
|
6389
|
-
}),
|
|
6400
|
+
}), jo = object({
|
|
6390
6401
|
name: string().min(1).max(255),
|
|
6391
6402
|
handle: string().min(2).max(50).optional(),
|
|
6392
6403
|
timezone: Y.optional()
|
|
6393
|
-
}).strict(),
|
|
6404
|
+
}).strict(), Mo = q.pick({
|
|
6394
6405
|
name: !0,
|
|
6395
6406
|
email: !0,
|
|
6396
6407
|
website: !0,
|
|
@@ -6402,7 +6413,7 @@ var uo = br, fo = P, $ = object({
|
|
|
6402
6413
|
timezone: Y.optional(),
|
|
6403
6414
|
avatarMediaId: string().nullable().optional(),
|
|
6404
6415
|
coverMediaId: string().nullable().optional()
|
|
6405
|
-
}).strict(),
|
|
6416
|
+
}).strict(), No = object({
|
|
6406
6417
|
messagesHandled: number().int().nonnegative(),
|
|
6407
6418
|
proactiveRuns: number().int().nonnegative(),
|
|
6408
6419
|
approvalsWaiting: number().int().nonnegative(),
|
|
@@ -6419,11 +6430,11 @@ var uo = br, fo = P, $ = object({
|
|
|
6419
6430
|
prev30BriefingsDelivered: number().int().nonnegative(),
|
|
6420
6431
|
prev30ScheduledRuns: number().int().nonnegative(),
|
|
6421
6432
|
since: string()
|
|
6422
|
-
}),
|
|
6433
|
+
}), Po = _enum([
|
|
6423
6434
|
"success",
|
|
6424
6435
|
"info",
|
|
6425
6436
|
"warning"
|
|
6426
|
-
]),
|
|
6437
|
+
]), Fo = object({
|
|
6427
6438
|
org: object({
|
|
6428
6439
|
orgId: string(),
|
|
6429
6440
|
name: string(),
|
|
@@ -6432,7 +6443,7 @@ var uo = br, fo = P, $ = object({
|
|
|
6432
6443
|
plan: object({
|
|
6433
6444
|
key: string(),
|
|
6434
6445
|
label: string(),
|
|
6435
|
-
tone:
|
|
6446
|
+
tone: Po,
|
|
6436
6447
|
status: string(),
|
|
6437
6448
|
trialDaysRemaining: number().optional()
|
|
6438
6449
|
}),
|
|
@@ -6453,15 +6464,15 @@ function zPaginatedResponse(e) {
|
|
|
6453
6464
|
}
|
|
6454
6465
|
//#endregion
|
|
6455
6466
|
//#region ../core/dist/wire/public-services.js
|
|
6456
|
-
var
|
|
6467
|
+
var Io = object({
|
|
6457
6468
|
sender: _enum(["user", "agent"]),
|
|
6458
6469
|
text: string()
|
|
6459
|
-
}),
|
|
6470
|
+
}), Lo = _enum([
|
|
6460
6471
|
"works-now",
|
|
6461
6472
|
"guided-setup",
|
|
6462
6473
|
"coming-soon",
|
|
6463
6474
|
"custom-workflow"
|
|
6464
|
-
]),
|
|
6475
|
+
]), Ro = object({
|
|
6465
6476
|
docsUrl: string(),
|
|
6466
6477
|
verifiedAt: string(),
|
|
6467
6478
|
version: string().optional(),
|
|
@@ -6473,11 +6484,11 @@ var Fo = object({
|
|
|
6473
6484
|
"unversioned"
|
|
6474
6485
|
]),
|
|
6475
6486
|
note: string().optional()
|
|
6476
|
-
}),
|
|
6487
|
+
}), zo = object({
|
|
6477
6488
|
key: string(),
|
|
6478
6489
|
label: string(),
|
|
6479
6490
|
rank: number()
|
|
6480
|
-
}),
|
|
6491
|
+
}), Bo = object({
|
|
6481
6492
|
text: string(),
|
|
6482
6493
|
tone: _enum([
|
|
6483
6494
|
"info",
|
|
@@ -6485,7 +6496,7 @@ var Fo = object({
|
|
|
6485
6496
|
"success",
|
|
6486
6497
|
"danger"
|
|
6487
6498
|
])
|
|
6488
|
-
}),
|
|
6499
|
+
}), Vo = object({
|
|
6489
6500
|
serviceKey: string(),
|
|
6490
6501
|
name: string(),
|
|
6491
6502
|
description: string(),
|
|
@@ -6495,16 +6506,16 @@ var Fo = object({
|
|
|
6495
6506
|
category: string(),
|
|
6496
6507
|
categoryLabel: string(),
|
|
6497
6508
|
categoryRank: number(),
|
|
6498
|
-
secondaryCategories: array(
|
|
6499
|
-
badges: array(
|
|
6509
|
+
secondaryCategories: array(zo),
|
|
6510
|
+
badges: array(Bo),
|
|
6500
6511
|
tags: array(string()),
|
|
6501
6512
|
searchAliases: array(string()),
|
|
6502
6513
|
jtbd: string(),
|
|
6503
6514
|
useCase: string(),
|
|
6504
6515
|
demoScenario: string(),
|
|
6505
|
-
sampleConversation: array(
|
|
6506
|
-
publicStatus:
|
|
6507
|
-
apiVerification:
|
|
6516
|
+
sampleConversation: array(Io),
|
|
6517
|
+
publicStatus: Lo,
|
|
6518
|
+
apiVerification: Ro.optional(),
|
|
6508
6519
|
setupDifficulty: string(),
|
|
6509
6520
|
risk: string(),
|
|
6510
6521
|
price: string(),
|
|
@@ -6517,73 +6528,73 @@ var Fo = object({
|
|
|
6517
6528
|
]),
|
|
6518
6529
|
setupSummary: string().optional(),
|
|
6519
6530
|
pagePath: string()
|
|
6520
|
-
}),
|
|
6531
|
+
}), Ho = object({
|
|
6521
6532
|
fullName: string().min(1).max(100).optional(),
|
|
6522
6533
|
linkedinUsername: K.nullable().optional(),
|
|
6523
6534
|
avatarMediaId: string().nullable().optional(),
|
|
6524
6535
|
primaryAgentId: string().nullable().optional(),
|
|
6525
6536
|
lastActiveOrgId: string().nullable().optional()
|
|
6526
|
-
}).strict(),
|
|
6527
|
-
ASSISTANT_SILENCE_CONTROLS: () =>
|
|
6528
|
-
ActionAreaSchema: () =>
|
|
6537
|
+
}).strict(), Uo = /* @__PURE__ */ t({
|
|
6538
|
+
ASSISTANT_SILENCE_CONTROLS: () => Ei,
|
|
6539
|
+
ActionAreaSchema: () => Lr,
|
|
6529
6540
|
ActionButtonSchema: () => I,
|
|
6530
|
-
Agent: () =>
|
|
6531
|
-
AudioFormatSchema: () =>
|
|
6532
|
-
AudioMediaSchema: () =>
|
|
6533
|
-
AudioPropertiesSchema: () =>
|
|
6541
|
+
Agent: () => fi,
|
|
6542
|
+
AudioFormatSchema: () => Er,
|
|
6543
|
+
AudioMediaSchema: () => jr,
|
|
6544
|
+
AudioPropertiesSchema: () => Or,
|
|
6534
6545
|
AuthApiError: () => AuthApiError,
|
|
6535
|
-
BOT_API_LLM_PATH: () =>
|
|
6536
|
-
BOT_API_PATH: () =>
|
|
6537
|
-
BOT_USER_AGENT: () =>
|
|
6538
|
-
ButtonDesignSchema: () =>
|
|
6539
|
-
ButtonThemeSchema: () =>
|
|
6540
|
-
CHART_THEME: () =>
|
|
6546
|
+
BOT_API_LLM_PATH: () => Ai,
|
|
6547
|
+
BOT_API_PATH: () => ki,
|
|
6548
|
+
BOT_USER_AGENT: () => Ti,
|
|
6549
|
+
ButtonDesignSchema: () => Ir,
|
|
6550
|
+
ButtonThemeSchema: () => Fr,
|
|
6551
|
+
CHART_THEME: () => ti,
|
|
6541
6552
|
CHAT_ISSUE_CODES: () => L,
|
|
6542
6553
|
CHAT_ISSUE_COPY: () => z,
|
|
6543
|
-
CUSTOMER_AGENT_STATE_COLOR: () =>
|
|
6544
|
-
CUSTOMER_AGENT_STATE_LABEL: () =>
|
|
6554
|
+
CUSTOMER_AGENT_STATE_COLOR: () => Yr,
|
|
6555
|
+
CUSTOMER_AGENT_STATE_LABEL: () => Jr,
|
|
6545
6556
|
CookieUtil: () => CookieUtil,
|
|
6546
6557
|
DEFAULT_HEARTBEAT_TIMES: () => ar,
|
|
6547
|
-
DocumentMediaSchema: () =>
|
|
6548
|
-
ENTRY_TIER_MONTHLY_PRICE_CENTS: () =>
|
|
6549
|
-
ENTRY_TIER_MONTHLY_PRICE_LABEL: () =>
|
|
6550
|
-
ERROR_CODES: () =>
|
|
6551
|
-
EnrichedAgentSchema: () =>
|
|
6552
|
-
ImageFormatSchema: () =>
|
|
6553
|
-
ImageMediaSchema: () =>
|
|
6554
|
-
LIFECYCLE_COLOR: () =>
|
|
6558
|
+
DocumentMediaSchema: () => Mr,
|
|
6559
|
+
ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Rr,
|
|
6560
|
+
ENTRY_TIER_MONTHLY_PRICE_LABEL: () => zr,
|
|
6561
|
+
ERROR_CODES: () => Ri,
|
|
6562
|
+
EnrichedAgentSchema: () => ui,
|
|
6563
|
+
ImageFormatSchema: () => wr,
|
|
6564
|
+
ImageMediaSchema: () => kr,
|
|
6565
|
+
LIFECYCLE_COLOR: () => Kr,
|
|
6555
6566
|
Logger: () => j,
|
|
6556
|
-
MEDIA_CONTEXTS: () =>
|
|
6557
|
-
MEDIA_TYPES: () =>
|
|
6558
|
-
MediaContextSchema: () =>
|
|
6567
|
+
MEDIA_CONTEXTS: () => br,
|
|
6568
|
+
MEDIA_TYPES: () => yr,
|
|
6569
|
+
MediaContextSchema: () => xr,
|
|
6559
6570
|
MediaSchema: () => F,
|
|
6560
|
-
MediaStatusSchema: () =>
|
|
6571
|
+
MediaStatusSchema: () => Sr,
|
|
6561
6572
|
MediaTypeSchema: () => P,
|
|
6562
|
-
MediaUnionSchema: () =>
|
|
6563
|
-
NavItemSchema: () =>
|
|
6564
|
-
NavListSchema: () =>
|
|
6573
|
+
MediaUnionSchema: () => Nr,
|
|
6574
|
+
NavItemSchema: () => $r,
|
|
6575
|
+
NavListSchema: () => ei,
|
|
6565
6576
|
PAGELINES_APP_CONFIG: () => i,
|
|
6566
|
-
PERSONA_DEFAULTS: () =>
|
|
6577
|
+
PERSONA_DEFAULTS: () => ri,
|
|
6567
6578
|
SettingsObject: () => SettingsObject,
|
|
6568
|
-
SizeSchema: () =>
|
|
6569
|
-
SocialAccountSchema: () =>
|
|
6570
|
-
SocialAccountsSchema: () =>
|
|
6571
|
-
UNKNOWN_STATUS: () =>
|
|
6579
|
+
SizeSchema: () => Pr,
|
|
6580
|
+
SocialAccountSchema: () => _r,
|
|
6581
|
+
SocialAccountsSchema: () => vr,
|
|
6582
|
+
UNKNOWN_STATUS: () => Gr,
|
|
6572
6583
|
VOICE_CATALOG: () => U,
|
|
6573
|
-
VideoFormatSchema: () =>
|
|
6574
|
-
VideoMediaSchema: () =>
|
|
6575
|
-
VideoPropertiesSchema: () =>
|
|
6576
|
-
agentSchema: () =>
|
|
6584
|
+
VideoFormatSchema: () => Tr,
|
|
6585
|
+
VideoMediaSchema: () => Ar,
|
|
6586
|
+
VideoPropertiesSchema: () => Dr,
|
|
6587
|
+
agentSchema: () => li,
|
|
6577
6588
|
apiError: () => apiError,
|
|
6578
6589
|
apiOk: () => apiOk,
|
|
6579
|
-
appleAuthSchema: () =>
|
|
6590
|
+
appleAuthSchema: () => bi,
|
|
6580
6591
|
authErrorMessage: () => authErrorMessage,
|
|
6581
6592
|
botApiLlmUrl: () => botApiLlmUrl,
|
|
6582
6593
|
botApiUrl: () => botApiUrl,
|
|
6583
6594
|
budgetMinutes: () => budgetMinutes,
|
|
6584
6595
|
buildChatIssue: () => buildChatIssue,
|
|
6585
6596
|
buildHeroState: () => buildHeroState,
|
|
6586
|
-
changeEmailSchema: () =>
|
|
6597
|
+
changeEmailSchema: () => vi,
|
|
6587
6598
|
chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
|
|
6588
6599
|
chatEventMatchesTurn: () => chatEventMatchesTurn,
|
|
6589
6600
|
chatEventTurnId: () => chatEventTurnId,
|
|
@@ -6597,8 +6608,8 @@ var Fo = object({
|
|
|
6597
6608
|
customerAgentState: () => customerAgentState,
|
|
6598
6609
|
debug: () => fr,
|
|
6599
6610
|
derive: () => derive,
|
|
6600
|
-
emailSchema: () =>
|
|
6601
|
-
enrichedUserSchema: () =>
|
|
6611
|
+
emailSchema: () => gi,
|
|
6612
|
+
enrichedUserSchema: () => wi,
|
|
6602
6613
|
error: () => lr,
|
|
6603
6614
|
errorCopy: () => errorCopy,
|
|
6604
6615
|
errorFromApiResponse: () => errorFromApiResponse,
|
|
@@ -6608,22 +6619,23 @@ var Fo = object({
|
|
|
6608
6619
|
getDefaultAvatarUrl: () => getDefaultAvatarUrl,
|
|
6609
6620
|
getDefaultGradientCss: () => getDefaultGradientCss,
|
|
6610
6621
|
getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
|
|
6611
|
-
googleAuthSchema: () =>
|
|
6622
|
+
googleAuthSchema: () => yi,
|
|
6612
6623
|
info: () => dr,
|
|
6613
6624
|
isAgentReady: () => isAgentReady,
|
|
6614
6625
|
isAssistantSilenceControl: () => isAssistantSilenceControl,
|
|
6615
6626
|
isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
|
|
6616
6627
|
isOperationActive: () => isOperationActive,
|
|
6628
|
+
isSafeRedirectPath: () => isSafeRedirectPath,
|
|
6617
6629
|
isTransitioning: () => isTransitioning,
|
|
6618
6630
|
linkedinUsernameSchema: () => K,
|
|
6619
6631
|
logger: () => M,
|
|
6620
6632
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6621
6633
|
nanoid: () => nanoid,
|
|
6622
|
-
notificationWire: () =>
|
|
6634
|
+
notificationWire: () => To,
|
|
6623
6635
|
objectId: () => objectId,
|
|
6624
|
-
orgInfoSchema: () =>
|
|
6636
|
+
orgInfoSchema: () => Ci,
|
|
6625
6637
|
orgSchema: () => q,
|
|
6626
|
-
orgWithDefaultAgentSchema: () =>
|
|
6638
|
+
orgWithDefaultAgentSchema: () => xi,
|
|
6627
6639
|
parseChatCardFencePayload: () => parseChatCardFencePayload,
|
|
6628
6640
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
6629
6641
|
readChatEventStream: () => readChatEventStream,
|
|
@@ -6632,129 +6644,129 @@ var Fo = object({
|
|
|
6632
6644
|
resolveVoice: () => resolveVoice,
|
|
6633
6645
|
retryPolicyFor: () => retryPolicyFor,
|
|
6634
6646
|
runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
|
|
6635
|
-
serverTransitionBudgets: () =>
|
|
6647
|
+
serverTransitionBudgets: () => Oi,
|
|
6636
6648
|
shortId: () => shortId,
|
|
6637
6649
|
toAgentState: () => toAgentState,
|
|
6638
6650
|
toChatStreamError: () => toChatStreamError,
|
|
6639
6651
|
trace: () => pr,
|
|
6640
|
-
updateUserSchema: () =>
|
|
6641
|
-
userSchema: () =>
|
|
6652
|
+
updateUserSchema: () => hi,
|
|
6653
|
+
userSchema: () => mi,
|
|
6642
6654
|
uuid: () => uuid,
|
|
6643
|
-
verifyCodeSchema: () =>
|
|
6655
|
+
verifyCodeSchema: () => _i,
|
|
6644
6656
|
warn: () => ur,
|
|
6645
6657
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6646
|
-
zAcceptInvitationBody: () =>
|
|
6647
|
-
zAccessibleAgentRow: () =>
|
|
6648
|
-
zAgentCreateAllowance: () =>
|
|
6649
|
-
zAgentCreateAllowanceReason: () =>
|
|
6658
|
+
zAcceptInvitationBody: () => xo,
|
|
6659
|
+
zAccessibleAgentRow: () => wo,
|
|
6660
|
+
zAgentCreateAllowance: () => Oa,
|
|
6661
|
+
zAgentCreateAllowanceReason: () => Da,
|
|
6650
6662
|
zAgentGender: () => H,
|
|
6651
|
-
zAgentRow: () =>
|
|
6652
|
-
zApiError: () =>
|
|
6663
|
+
zAgentRow: () => Ii,
|
|
6664
|
+
zApiError: () => Vi,
|
|
6653
6665
|
zApiOk: () => zApiOk,
|
|
6654
6666
|
zApiResponse: () => zApiResponse,
|
|
6655
|
-
zAppleAuthBody: () =>
|
|
6656
|
-
zAuthSessionData: () =>
|
|
6657
|
-
zAuthSessionResponse: () =>
|
|
6658
|
-
zAutomationPrimaryChannel: () =>
|
|
6659
|
-
zBackfillBillingData: () =>
|
|
6660
|
-
zBackfillCustomersData: () =>
|
|
6661
|
-
zBillingDetails: () =>
|
|
6662
|
-
zBillingInvoice: () =>
|
|
6663
|
-
zBillingPaymentMethod: () =>
|
|
6664
|
-
zBillingPlanKey: () =>
|
|
6665
|
-
zBillingStatus: () =>
|
|
6667
|
+
zAppleAuthBody: () => fa,
|
|
6668
|
+
zAuthSessionData: () => pa,
|
|
6669
|
+
zAuthSessionResponse: () => ma,
|
|
6670
|
+
zAutomationPrimaryChannel: () => Ni,
|
|
6671
|
+
zBackfillBillingData: () => ja,
|
|
6672
|
+
zBackfillCustomersData: () => Aa,
|
|
6673
|
+
zBillingDetails: () => Ea,
|
|
6674
|
+
zBillingInvoice: () => wa,
|
|
6675
|
+
zBillingPaymentMethod: () => Ca,
|
|
6676
|
+
zBillingPlanKey: () => xa,
|
|
6677
|
+
zBillingStatus: () => Sa,
|
|
6666
6678
|
zBillingTier: () => G,
|
|
6667
|
-
zBotGenerateImageBody: () =>
|
|
6668
|
-
zBotGenerateImageResponse: () =>
|
|
6669
|
-
zCancelConversationTurnBody: () =>
|
|
6670
|
-
zCancelConversationTurnResponse: () =>
|
|
6671
|
-
zCantRebuildReason: () =>
|
|
6672
|
-
zCantWakeReason: () =>
|
|
6673
|
-
zChatAttachment: () =>
|
|
6674
|
-
zChatAttachmentInput: () =>
|
|
6675
|
-
zChatAttachmentPlacement: () =>
|
|
6676
|
-
zChatCardSpec: () =>
|
|
6677
|
-
zChatErrorData: () =>
|
|
6678
|
-
zChatEvent: () =>
|
|
6679
|
+
zBotGenerateImageBody: () => ua,
|
|
6680
|
+
zBotGenerateImageResponse: () => da,
|
|
6681
|
+
zCancelConversationTurnBody: () => $a,
|
|
6682
|
+
zCancelConversationTurnResponse: () => eo,
|
|
6683
|
+
zCantRebuildReason: () => Co,
|
|
6684
|
+
zCantWakeReason: () => So,
|
|
6685
|
+
zChatAttachment: () => Ji,
|
|
6686
|
+
zChatAttachmentInput: () => na,
|
|
6687
|
+
zChatAttachmentPlacement: () => qi,
|
|
6688
|
+
zChatCardSpec: () => Ia,
|
|
6689
|
+
zChatErrorData: () => Na,
|
|
6690
|
+
zChatEvent: () => Pa,
|
|
6679
6691
|
zChatIssue: () => R,
|
|
6680
|
-
zChatMessage: () =>
|
|
6681
|
-
zChatMessageAttentionItem: () =>
|
|
6682
|
-
zChatMessageAttentionRef: () =>
|
|
6683
|
-
zChatMessageAttentionUpdate: () =>
|
|
6684
|
-
zChatMessageMetadata: () =>
|
|
6685
|
-
zChatStatusData: () =>
|
|
6686
|
-
zChatToolActivityData: () =>
|
|
6687
|
-
zChatToolActivityVisual: () =>
|
|
6688
|
-
zChatVisualSpec: () =>
|
|
6689
|
-
zCompleteCheckoutData: () =>
|
|
6690
|
-
zConversationLastMessage: () =>
|
|
6691
|
-
zConversationParticipant: () =>
|
|
6692
|
-
zConversationSummary: () =>
|
|
6693
|
-
zConversationTarget: () =>
|
|
6694
|
-
zConversationUpdatedEvent: () =>
|
|
6695
|
-
zCreateAgentBody: () =>
|
|
6696
|
-
zCreateConversationBody: () =>
|
|
6697
|
-
zCreateConversationSessionBody: () =>
|
|
6698
|
-
zCreateOrgBody: () =>
|
|
6692
|
+
zChatMessage: () => ta,
|
|
6693
|
+
zChatMessageAttentionItem: () => Qi,
|
|
6694
|
+
zChatMessageAttentionRef: () => Yi,
|
|
6695
|
+
zChatMessageAttentionUpdate: () => $i,
|
|
6696
|
+
zChatMessageMetadata: () => ea,
|
|
6697
|
+
zChatStatusData: () => Ma,
|
|
6698
|
+
zChatToolActivityData: () => Wi,
|
|
6699
|
+
zChatToolActivityVisual: () => Ui,
|
|
6700
|
+
zChatVisualSpec: () => Ja,
|
|
6701
|
+
zCompleteCheckoutData: () => ka,
|
|
6702
|
+
zConversationLastMessage: () => Xa,
|
|
6703
|
+
zConversationParticipant: () => Ya,
|
|
6704
|
+
zConversationSummary: () => Za,
|
|
6705
|
+
zConversationTarget: () => ia,
|
|
6706
|
+
zConversationUpdatedEvent: () => no,
|
|
6707
|
+
zCreateAgentBody: () => Pi,
|
|
6708
|
+
zCreateConversationBody: () => aa,
|
|
6709
|
+
zCreateConversationSessionBody: () => oa,
|
|
6710
|
+
zCreateOrgBody: () => jo,
|
|
6699
6711
|
zDesiredStatus: () => V,
|
|
6700
|
-
zErrorCode: () =>
|
|
6712
|
+
zErrorCode: () => zi,
|
|
6701
6713
|
zErrorResponses: () => zErrorResponses,
|
|
6702
|
-
zFleetAgent: () =>
|
|
6703
|
-
zFleetSummary: () =>
|
|
6704
|
-
zFleetSyncResponse: () =>
|
|
6705
|
-
zHandoffConsumeBody: () =>
|
|
6706
|
-
zHandoffConsumeData: () =>
|
|
6707
|
-
zHandoffConsumeResponse: () =>
|
|
6708
|
-
zHandoffMintBody: () =>
|
|
6709
|
-
zHandoffMintData: () =>
|
|
6710
|
-
zHandoffMintResponse: () =>
|
|
6714
|
+
zFleetAgent: () => so,
|
|
6715
|
+
zFleetSummary: () => co,
|
|
6716
|
+
zFleetSyncResponse: () => lo,
|
|
6717
|
+
zHandoffConsumeBody: () => va,
|
|
6718
|
+
zHandoffConsumeData: () => ya,
|
|
6719
|
+
zHandoffConsumeResponse: () => ba,
|
|
6720
|
+
zHandoffMintBody: () => ha,
|
|
6721
|
+
zHandoffMintData: () => ga,
|
|
6722
|
+
zHandoffMintResponse: () => _a,
|
|
6711
6723
|
zHeartbeatLocalTime: () => T,
|
|
6712
6724
|
zHeartbeatMoment: () => ir,
|
|
6713
|
-
zHomeStats: () =>
|
|
6725
|
+
zHomeStats: () => No,
|
|
6714
6726
|
zIanaTimezone: () => Y,
|
|
6715
|
-
zImageAspectRatio: () =>
|
|
6716
|
-
zImageResolution: () =>
|
|
6717
|
-
zInvitationPreview: () =>
|
|
6718
|
-
zInvitationRow: () =>
|
|
6719
|
-
zInviteBody: () =>
|
|
6727
|
+
zImageAspectRatio: () => ca,
|
|
6728
|
+
zImageResolution: () => la,
|
|
6729
|
+
zInvitationPreview: () => vo,
|
|
6730
|
+
zInvitationRow: () => _o,
|
|
6731
|
+
zInviteBody: () => yo,
|
|
6720
6732
|
zLifecycle: () => B,
|
|
6721
|
-
zLifecycleVerb: () =>
|
|
6722
|
-
zLiveStatus: () =>
|
|
6723
|
-
zMarkReadBody: () =>
|
|
6724
|
-
zMediaContext: () =>
|
|
6733
|
+
zLifecycleVerb: () => Qr,
|
|
6734
|
+
zLiveStatus: () => Wr,
|
|
6735
|
+
zMarkReadBody: () => Qa,
|
|
6736
|
+
zMediaContext: () => fo,
|
|
6725
6737
|
zMediaObject: () => $,
|
|
6726
|
-
zMediaType: () =>
|
|
6727
|
-
zMemberRow: () =>
|
|
6728
|
-
zMessageSearchResult: () =>
|
|
6729
|
-
zOrgRow: () =>
|
|
6730
|
-
zOrgSummary: () =>
|
|
6738
|
+
zMediaType: () => po,
|
|
6739
|
+
zMemberRow: () => go,
|
|
6740
|
+
zMessageSearchResult: () => to,
|
|
6741
|
+
zOrgRow: () => Ao,
|
|
6742
|
+
zOrgSummary: () => Fo,
|
|
6731
6743
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6732
|
-
zPlanTone: () =>
|
|
6733
|
-
zProviderErrorKind: () =>
|
|
6734
|
-
zPublicServiceOverview: () =>
|
|
6735
|
-
zReportMessageBody: () =>
|
|
6736
|
-
zRuntimeOperation: () =>
|
|
6737
|
-
zRuntimeOperationKind: () =>
|
|
6738
|
-
zRuntimeOperationStatus: () =>
|
|
6739
|
-
zSendMessageBody: () =>
|
|
6740
|
-
zSuggestedPrompt: () =>
|
|
6741
|
-
zUpdateAgentBody: () =>
|
|
6742
|
-
zUpdateOrgBody: () =>
|
|
6743
|
-
zUpdateRoleBody: () =>
|
|
6744
|
-
zUpdateUserBody: () =>
|
|
6745
|
-
zUploadMediaBody: () =>
|
|
6744
|
+
zPlanTone: () => Po,
|
|
6745
|
+
zProviderErrorKind: () => Bi,
|
|
6746
|
+
zPublicServiceOverview: () => Vo,
|
|
6747
|
+
zReportMessageBody: () => sa,
|
|
6748
|
+
zRuntimeOperation: () => Ur,
|
|
6749
|
+
zRuntimeOperationKind: () => Vr,
|
|
6750
|
+
zRuntimeOperationStatus: () => Hr,
|
|
6751
|
+
zSendMessageBody: () => ra,
|
|
6752
|
+
zSuggestedPrompt: () => Li,
|
|
6753
|
+
zUpdateAgentBody: () => Fi,
|
|
6754
|
+
zUpdateOrgBody: () => Mo,
|
|
6755
|
+
zUpdateRoleBody: () => bo,
|
|
6756
|
+
zUpdateUserBody: () => Ho,
|
|
6757
|
+
zUploadMediaBody: () => mo,
|
|
6746
6758
|
zVoiceKey: () => W,
|
|
6747
|
-
zVoiceProviderName: () =>
|
|
6748
|
-
zVoiceProviderSession: () =>
|
|
6749
|
-
zVoiceSessionMint: () =>
|
|
6750
|
-
zVoiceSessionMintBody: () =>
|
|
6751
|
-
}),
|
|
6759
|
+
zVoiceProviderName: () => oi,
|
|
6760
|
+
zVoiceProviderSession: () => ai,
|
|
6761
|
+
zVoiceSessionMint: () => si,
|
|
6762
|
+
zVoiceSessionMintBody: () => ii
|
|
6763
|
+
}), Wo = "1.0.0";
|
|
6752
6764
|
function buildContract(e = {}) {
|
|
6753
6765
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6754
6766
|
let r = contractNameFor(e);
|
|
6755
6767
|
r && (n[r] = toSchema(t));
|
|
6756
6768
|
};
|
|
6757
|
-
for (let [e, t] of Object.entries(
|
|
6769
|
+
for (let [e, t] of Object.entries(Uo)) {
|
|
6758
6770
|
if (t instanceof S) {
|
|
6759
6771
|
addSchema(e, t);
|
|
6760
6772
|
continue;
|
|
@@ -6762,7 +6774,7 @@ function buildContract(e = {}) {
|
|
|
6762
6774
|
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
|
|
6763
6775
|
}
|
|
6764
6776
|
return {
|
|
6765
|
-
version:
|
|
6777
|
+
version: Wo,
|
|
6766
6778
|
generatedAt: t.toISOString(),
|
|
6767
6779
|
schemas: n
|
|
6768
6780
|
};
|
|
@@ -6782,6 +6794,6 @@ function sortedReplacer(e, t) {
|
|
|
6782
6794
|
return t;
|
|
6783
6795
|
}
|
|
6784
6796
|
//#endregion
|
|
6785
|
-
export {
|
|
6797
|
+
export { Wo as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6786
6798
|
|
|
6787
6799
|
//# sourceMappingURL=contract.js.map
|