@pagelines/sdk 1.0.800 → 1.0.801

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/contract.js CHANGED
@@ -4029,14 +4029,14 @@ var AuthApiError = class extends Error {
4029
4029
  kr,
4030
4030
  Ar,
4031
4031
  jr
4032
- ]), I = _enum([
4032
+ ]), Nr = _enum([
4033
4033
  "xxs",
4034
4034
  "xs",
4035
4035
  "sm",
4036
4036
  "md",
4037
4037
  "lg",
4038
4038
  "xl"
4039
- ]), Nr = _enum([
4039
+ ]), Pr = _enum([
4040
4040
  "primary",
4041
4041
  "default",
4042
4042
  "overlay",
@@ -4044,18 +4044,18 @@ var AuthApiError = class extends Error {
4044
4044
  "green",
4045
4045
  "indigo",
4046
4046
  "orange"
4047
- ]), Pr = _enum([
4047
+ ]), Fr = _enum([
4048
4048
  "ghost",
4049
4049
  "link",
4050
4050
  "outline",
4051
4051
  "solid"
4052
- ]), L = object({
4052
+ ]), I = object({
4053
4053
  key: string().optional(),
4054
4054
  label: string().optional(),
4055
4055
  href: string().optional(),
4056
- size: I.optional(),
4057
- theme: Nr.optional(),
4058
- design: Pr.optional(),
4056
+ size: Nr.optional(),
4057
+ theme: Pr.optional(),
4058
+ design: Fr.optional(),
4059
4059
  icon: union([string(), F]).optional(),
4060
4060
  iconAfter: union([string(), F]).optional(),
4061
4061
  rounding: _enum([
@@ -4074,111 +4074,12 @@ var AuthApiError = class extends Error {
4074
4074
  "submit",
4075
4075
  "reset"
4076
4076
  ]).optional()
4077
- }), Fr = object({
4078
- buttons: array(L).optional(),
4079
- size: I.optional(),
4080
- theme: Nr.optional(),
4081
- design: Pr.optional()
4082
4077
  }), Ir = object({
4083
- key: string().optional(),
4084
- id: string().optional(),
4085
- label: string().optional(),
4086
- srLabel: string().optional(),
4087
- subLabel: string().optional(),
4088
- value: union([string(), number()]).optional(),
4089
- description: string().optional(),
4090
- info: string().optional(),
4091
- count: number().optional(),
4092
- className: string().optional(),
4093
- media: F.optional(),
4094
- subMedia: F.optional(),
4095
- cover: F.optional(),
4096
- icon: F.optional(),
4097
- iconAfter: F.optional(),
4098
- subIcon: string().optional(),
4099
- href: string().optional(),
4100
- target: _enum(["_self", "_blank"]).optional(),
4101
- onClick: any().optional(),
4102
- theme: _enum(["primary", "default"]).optional(),
4103
- isActive: boolean().optional(),
4104
- isDisabled: boolean().optional(),
4105
- isHidden: boolean().optional(),
4106
- priority: number().optional(),
4107
- testId: string().optional(),
4108
- items: array(any()).optional(),
4109
- badges: array(L).optional(),
4110
- meta: array(L).optional(),
4111
- menuItems: array(any()).optional()
4112
- }), Lr = object({
4113
- title: string().optional(),
4114
- description: string().optional(),
4115
- items: array(Ir).optional()
4116
- }), Rr = {
4117
- colors: {
4118
- primary: "#3b82f6",
4119
- secondary: "#93c5fd",
4120
- accent: "#60a5fa",
4121
- muted: "#9ca3af",
4122
- background: "#f8fafc",
4123
- text: "#374151"
4124
- },
4125
- typography: {
4126
- primary: "text-theme-900",
4127
- secondary: "text-theme-600",
4128
- muted: "text-theme-400"
4129
- },
4130
- spacing: {
4131
- minimal: 2,
4132
- compact: 4,
4133
- comfortable: 6
4134
- }
4135
- }, zr = [
4136
- ["#6366f1", "#8b5cf6"],
4137
- ["#3b82f6", "#06b6d4"],
4138
- ["#10b981", "#34d399"],
4139
- ["#f59e0b", "#f97316"],
4140
- ["#ef4444", "#f97316"],
4141
- ["#ec4899", "#8b5cf6"],
4142
- ["#14b8a6", "#3b82f6"],
4143
- ["#8b5cf6", "#ec4899"]
4144
- ];
4145
- function hashName(e) {
4146
- let t = 0;
4147
- for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n), t |= 0;
4148
- return Math.abs(t);
4149
- }
4150
- function getGradientPair(e) {
4151
- return zr[(e ? hashName(e) : 0) % zr.length];
4152
- }
4153
- function getDefaultAvatarUrl(e) {
4154
- let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
4155
- "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" viewBox=\"0 0 80 80\">",
4156
- "<defs><linearGradient id=\"g\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">",
4157
- `<stop offset="0%" stop-color="${n}"/>`,
4158
- `<stop offset="100%" stop-color="${r}"/>`,
4159
- "</linearGradient></defs>",
4160
- "<rect width=\"80\" height=\"80\" fill=\"url(#g)\"/>",
4161
- `<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="white" font-family="system-ui,-apple-system,sans-serif" font-size="36" font-weight="600">${t}</text>`,
4162
- "</svg>"
4163
- ].join("");
4164
- return `data:image/svg+xml;base64,${btoa(i)}`;
4165
- }
4166
- function getDefaultGradientCss(e) {
4167
- let [t, n] = getGradientPair(e);
4168
- return `linear-gradient(135deg, ${t} 0%, ${n} 100%)`;
4169
- }
4170
- function getWorkspaceMarkUrl(e) {
4171
- let t = [
4172
- "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" viewBox=\"0 0 80 80\">",
4173
- "<rect x=\"1\" y=\"1\" width=\"78\" height=\"78\" rx=\"14\" fill=\"#ffffff\" stroke=\"#e5e5e5\" stroke-width=\"2\"/>",
4174
- `<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="#0a0a0a" font-family="system-ui,-apple-system,sans-serif" font-size="38" font-weight="700">${e ? e[0].toUpperCase() : "•"}</text>`,
4175
- "</svg>"
4176
- ].join("");
4177
- return `data:image/svg+xml;base64,${btoa(t)}`;
4178
- }
4179
- //#endregion
4180
- //#region ../core/dist/pricing.js
4181
- var Br = 3900, Vr = `$${Br / 100}/month`, Hr = _enum(["account", "error"]), R = [
4078
+ buttons: array(I).optional(),
4079
+ size: Nr.optional(),
4080
+ theme: Pr.optional(),
4081
+ design: Fr.optional()
4082
+ }), Lr = 3900, Rr = `$${Lr / 100}/month`, zr = _enum(["account", "error"]), L = [
4182
4083
  "billing_no_plan",
4183
4084
  "billing_seat_limit",
4184
4085
  "billing_past_due",
@@ -4195,20 +4096,20 @@ var Br = 3900, Vr = `$${Br / 100}/month`, Hr = _enum(["account", "error"]), R =
4195
4096
  "empty_stream",
4196
4097
  "tool_protocol",
4197
4098
  "rate_limit"
4198
- ], z = object({
4199
- bucket: Hr,
4200
- code: _enum(R),
4099
+ ], R = object({
4100
+ bucket: zr,
4101
+ code: _enum(L),
4201
4102
  title: string(),
4202
4103
  help: string().optional(),
4203
4104
  actionLabel: string(),
4204
4105
  actionUrl: string()
4205
- }), B = {
4106
+ }), z = {
4206
4107
  billing_no_plan: {
4207
4108
  bucket: "account",
4208
4109
  title: "Billing needed",
4209
- help: `Add a payment method to turn live replies back on. Plans start at ${Vr} per active assistant, cancel anytime.`,
4110
+ help: `Add a payment method to turn live replies back on. Plans start at ${Rr} per active assistant, cancel anytime.`,
4210
4111
  actionLabel: "Open billing",
4211
- oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${Vr} per active assistant.`
4112
+ oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${Rr} per active assistant.`
4212
4113
  },
4213
4114
  billing_seat_limit: {
4214
4115
  bucket: "account",
@@ -4317,10 +4218,10 @@ var Br = 3900, Vr = `$${Br / 100}/month`, Hr = _enum(["account", "error"]), R =
4317
4218
  }
4318
4219
  };
4319
4220
  function chatIssueCatalogLines() {
4320
- return R.map((e) => `- ${e}: ${B[e].oneLine}`).join("\n");
4221
+ return L.map((e) => `- ${e}: ${z[e].oneLine}`).join("\n");
4321
4222
  }
4322
4223
  function buildChatIssue(e) {
4323
- let t = B[e.code];
4224
+ let t = z[e.code];
4324
4225
  return {
4325
4226
  bucket: t.bucket,
4326
4227
  code: e.code,
@@ -4341,12 +4242,12 @@ function chatIssueToErrorData(e) {
4341
4242
  };
4342
4243
  }
4343
4244
  function renderIssueAsMarkdown(e) {
4344
- let t = B[e.code];
4245
+ let t = z[e.code];
4345
4246
  return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
4346
4247
  }
4347
4248
  //#endregion
4348
- //#region ../core/dist/wire/agent-state.js
4349
- var V = _enum(["active", "stopped"]), H = _enum([
4249
+ //#region ../core/dist/wire/live-status.js
4250
+ var B = _enum([
4350
4251
  "unknown",
4351
4252
  "stopped",
4352
4253
  "starting",
@@ -4355,28 +4256,28 @@ var V = _enum(["active", "stopped"]), H = _enum([
4355
4256
  "unreachable",
4356
4257
  "stopping",
4357
4258
  "error"
4358
- ]), Ur = _enum([
4259
+ ]), Br = _enum([
4359
4260
  "wake",
4360
4261
  "sleep",
4361
4262
  "restart",
4362
4263
  "rebuild",
4363
4264
  "config_apply"
4364
- ]), Wr = _enum([
4265
+ ]), Vr = _enum([
4365
4266
  "running",
4366
4267
  "coalesced",
4367
4268
  "failed"
4368
- ]), Gr = object({
4369
- kind: Ur,
4370
- status: Wr,
4269
+ ]), Hr = object({
4270
+ kind: Br,
4271
+ status: Vr,
4371
4272
  startedAt: string().datetime(),
4372
4273
  detail: string().optional()
4373
- }).strict(), Kr = object({
4374
- lifecycle: H,
4274
+ }).strict(), Ur = object({
4275
+ lifecycle: B,
4375
4276
  changedAt: string().datetime().optional(),
4376
4277
  detail: string().optional(),
4377
- blocker: z.optional(),
4378
- operation: Gr.optional()
4379
- }).strict(), qr = Object.freeze({ lifecycle: "unknown" }), Jr = {
4278
+ blocker: R.optional(),
4279
+ operation: Hr.optional()
4280
+ }).strict(), Wr = Object.freeze({ lifecycle: "unknown" }), Gr = {
4380
4281
  running: "green",
4381
4282
  starting: "amber",
4382
4283
  stopping: "amber",
@@ -4385,11 +4286,21 @@ var V = _enum(["active", "stopped"]), H = _enum([
4385
4286
  error: "red",
4386
4287
  stopped: "grey",
4387
4288
  unknown: "grey"
4388
- }, Yr = {
4289
+ }, Kr = _enum([
4290
+ "awake",
4291
+ "asleep",
4292
+ "changing",
4293
+ "stuck"
4294
+ ]), qr = {
4389
4295
  awake: "Awake",
4390
4296
  asleep: "Asleep",
4391
4297
  changing: "Changing",
4392
4298
  stuck: "Stuck"
4299
+ }, Jr = {
4300
+ awake: "green",
4301
+ asleep: "grey",
4302
+ changing: "amber",
4303
+ stuck: "red"
4393
4304
  };
4394
4305
  function customerAgentState(e) {
4395
4306
  if (isOperationActive(e.operation)) return "changing";
@@ -4406,7 +4317,7 @@ function customerAgentState(e) {
4406
4317
  case "unknown": return;
4407
4318
  }
4408
4319
  }
4409
- var Xr = {
4320
+ var Yr = {
4410
4321
  running: "Online",
4411
4322
  starting: "Waking up",
4412
4323
  stopping: "Stopping",
@@ -4415,7 +4326,7 @@ var Xr = {
4415
4326
  error: "Error",
4416
4327
  stopped: "Asleep",
4417
4328
  unknown: "Checking"
4418
- }, Zr = {
4329
+ }, Xr = {
4419
4330
  wake: "Waking up",
4420
4331
  sleep: "Stopping",
4421
4332
  restart: "Restarting",
@@ -4423,7 +4334,7 @@ var Xr = {
4423
4334
  config_apply: "Applying config"
4424
4335
  };
4425
4336
  function toAgentState(e, t) {
4426
- let n = e.operation, r = Xr[e.lifecycle] ?? "Unknown", i = Jr[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}`;
4337
+ let n = e.operation, r = Yr[e.lifecycle] ?? "Unknown", i = Gr[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 = `${t} · ${o}`;
4427
4338
  return {
4428
4339
  ...e,
4429
4340
  color: s,
@@ -4431,7 +4342,7 @@ function toAgentState(e, t) {
4431
4342
  tooltip: c
4432
4343
  };
4433
4344
  }
4434
- var Qr = _enum([
4345
+ var Zr = _enum([
4435
4346
  "wake",
4436
4347
  "sleep",
4437
4348
  "restart",
@@ -4454,8 +4365,107 @@ function isAgentReady(e) {
4454
4365
  }
4455
4366
  }
4456
4367
  //#endregion
4457
- //#region ../core/dist/wire/voice-session.js
4458
- var U = _enum(["woman", "man"]), W = [
4368
+ //#region ../core/dist/types/navItem.js
4369
+ var Qr = object({
4370
+ key: string().optional(),
4371
+ id: string().optional(),
4372
+ label: string().optional(),
4373
+ srLabel: string().optional(),
4374
+ subLabel: string().optional(),
4375
+ value: union([string(), number()]).optional(),
4376
+ description: string().optional(),
4377
+ state: Kr.optional(),
4378
+ count: number().optional(),
4379
+ className: string().optional(),
4380
+ media: F.optional(),
4381
+ subMedia: F.optional(),
4382
+ cover: F.optional(),
4383
+ icon: F.optional(),
4384
+ iconAfter: F.optional(),
4385
+ subIcon: string().optional(),
4386
+ href: string().optional(),
4387
+ target: _enum(["_self", "_blank"]).optional(),
4388
+ onClick: any().optional(),
4389
+ theme: _enum(["primary", "default"]).optional(),
4390
+ isActive: boolean().optional(),
4391
+ isDisabled: boolean().optional(),
4392
+ isHidden: boolean().optional(),
4393
+ priority: number().optional(),
4394
+ testId: string().optional(),
4395
+ items: array(any()).optional(),
4396
+ badges: array(I).optional(),
4397
+ meta: array(I).optional(),
4398
+ menuItems: array(any()).optional()
4399
+ }), $r = object({
4400
+ title: string().optional(),
4401
+ description: string().optional(),
4402
+ items: array(Qr).optional()
4403
+ }), ei = {
4404
+ colors: {
4405
+ primary: "#3b82f6",
4406
+ secondary: "#93c5fd",
4407
+ accent: "#60a5fa",
4408
+ muted: "#9ca3af",
4409
+ background: "#f8fafc",
4410
+ text: "#374151"
4411
+ },
4412
+ typography: {
4413
+ primary: "text-theme-900",
4414
+ secondary: "text-theme-600",
4415
+ muted: "text-theme-400"
4416
+ },
4417
+ spacing: {
4418
+ minimal: 2,
4419
+ compact: 4,
4420
+ comfortable: 6
4421
+ }
4422
+ }, ti = [
4423
+ ["#6366f1", "#8b5cf6"],
4424
+ ["#3b82f6", "#06b6d4"],
4425
+ ["#10b981", "#34d399"],
4426
+ ["#f59e0b", "#f97316"],
4427
+ ["#ef4444", "#f97316"],
4428
+ ["#ec4899", "#8b5cf6"],
4429
+ ["#14b8a6", "#3b82f6"],
4430
+ ["#8b5cf6", "#ec4899"]
4431
+ ];
4432
+ function hashName(e) {
4433
+ let t = 0;
4434
+ for (let n = 0; n < e.length; n++) t = (t << 5) - t + e.charCodeAt(n), t |= 0;
4435
+ return Math.abs(t);
4436
+ }
4437
+ function getGradientPair(e) {
4438
+ return ti[(e ? hashName(e) : 0) % ti.length];
4439
+ }
4440
+ function getDefaultAvatarUrl(e) {
4441
+ let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
4442
+ "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" viewBox=\"0 0 80 80\">",
4443
+ "<defs><linearGradient id=\"g\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">",
4444
+ `<stop offset="0%" stop-color="${n}"/>`,
4445
+ `<stop offset="100%" stop-color="${r}"/>`,
4446
+ "</linearGradient></defs>",
4447
+ "<rect width=\"80\" height=\"80\" fill=\"url(#g)\"/>",
4448
+ `<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="white" font-family="system-ui,-apple-system,sans-serif" font-size="36" font-weight="600">${t}</text>`,
4449
+ "</svg>"
4450
+ ].join("");
4451
+ return `data:image/svg+xml;base64,${btoa(i)}`;
4452
+ }
4453
+ function getDefaultGradientCss(e) {
4454
+ let [t, n] = getGradientPair(e);
4455
+ return `linear-gradient(135deg, ${t} 0%, ${n} 100%)`;
4456
+ }
4457
+ function getWorkspaceMarkUrl(e) {
4458
+ let t = [
4459
+ "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" viewBox=\"0 0 80 80\">",
4460
+ "<rect x=\"1\" y=\"1\" width=\"78\" height=\"78\" rx=\"14\" fill=\"#ffffff\" stroke=\"#e5e5e5\" stroke-width=\"2\"/>",
4461
+ `<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="#0a0a0a" font-family="system-ui,-apple-system,sans-serif" font-size="38" font-weight="700">${e ? e[0].toUpperCase() : "•"}</text>`,
4462
+ "</svg>"
4463
+ ].join("");
4464
+ return `data:image/svg+xml;base64,${btoa(t)}`;
4465
+ }
4466
+ //#endregion
4467
+ //#region ../core/dist/wire/agent-state.js
4468
+ var V = _enum(["active", "stopped"]), H = _enum(["woman", "man"]), U = [
4459
4469
  {
4460
4470
  key: "lauren",
4461
4471
  gender: "woman",
@@ -4536,18 +4546,18 @@ var U = _enum(["woman", "man"]), W = [
4536
4546
  accent: "American",
4537
4547
  character: "Easygoing and plain-spoken"
4538
4548
  }
4539
- ], G = _enum(W.map((e) => e.key)), $r = { gender: "man" };
4549
+ ], W = _enum(U.map((e) => e.key)), ni = { gender: "man" };
4540
4550
  function resolveVoice(e) {
4541
- let t = W.find((t) => t.key === e.voiceKey);
4542
- return t?.gender === e.gender ? t : W.find((t) => t.gender === e.gender && "isDefault" in t);
4551
+ let t = U.find((t) => t.key === e.voiceKey);
4552
+ return t?.gender === e.gender ? t : U.find((t) => t.gender === e.gender && "isDefault" in t);
4543
4553
  }
4544
- var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4554
+ var ri = object({ conversationId: string().min(1) }).strict(), ii = object({
4545
4555
  conversationId: string().min(1),
4546
4556
  agentId: string().min(1),
4547
4557
  personaName: string().min(1),
4548
4558
  personaTitle: string().max(255).nullable().optional(),
4549
- gender: U,
4550
- voiceKey: G.nullable(),
4559
+ gender: H,
4560
+ voiceKey: W.nullable(),
4551
4561
  sessionScope: _enum([
4552
4562
  "private",
4553
4563
  "org",
@@ -4563,7 +4573,7 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4563
4573
  surfaceGuidance: string().optional(),
4564
4574
  maxDurationSeconds: number().int().positive().max(3600).optional(),
4565
4575
  expiresAt: datetime()
4566
- }), ni = _enum(["elevenlabs", "livekit"]), ri = discriminatedUnion("provider", [object({
4576
+ }), ai = _enum(["elevenlabs", "livekit"]), oi = discriminatedUnion("provider", [object({
4567
4577
  provider: literal("elevenlabs"),
4568
4578
  conversationToken: string().min(1),
4569
4579
  voiceId: string().min(1)
@@ -4572,7 +4582,7 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4572
4582
  url: string().min(1),
4573
4583
  token: string().min(1),
4574
4584
  room: string().min(1)
4575
- }).strict()]), ii = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4585
+ }).strict()]), si = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4576
4586
  platform: _enum([
4577
4587
  "linkedin",
4578
4588
  "x",
@@ -4587,11 +4597,11 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4587
4597
  "website"
4588
4598
  ]),
4589
4599
  handle: string()
4590
- }))), K = _enum([
4600
+ }))), G = _enum([
4591
4601
  "essential",
4592
4602
  "professional",
4593
4603
  "business"
4594
- ]), ai = object({
4604
+ ]), ci = object({
4595
4605
  agentId: string().optional(),
4596
4606
  handle: string().optional(),
4597
4607
  ownerId: string().optional(),
@@ -4607,11 +4617,11 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4607
4617
  cover: F.optional(),
4608
4618
  email: string().nullable().optional(),
4609
4619
  website: string().url().nullable().optional(),
4610
- accounts: ii.nullable().optional(),
4620
+ accounts: si.nullable().optional(),
4611
4621
  model: string().nullable().optional(),
4612
- gender: U.optional(),
4613
- voiceKey: G.nullable().optional(),
4614
- billingTier: K.optional(),
4622
+ gender: H.optional(),
4623
+ voiceKey: W.nullable().optional(),
4624
+ billingTier: G.optional(),
4615
4625
  lastActiveAt: string().nullable().optional(),
4616
4626
  lastMessageAt: string().nullable().optional(),
4617
4627
  runtime: string().default("hermes").optional(),
@@ -4644,14 +4654,14 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4644
4654
  status: string().optional(),
4645
4655
  createdAt: string().optional(),
4646
4656
  updatedAt: string().optional()
4647
- }), oi = ai.extend({
4657
+ }), li = ci.extend({
4648
4658
  isPrimary: boolean().optional(),
4649
- lifecycle: H.optional(),
4659
+ lifecycle: B.optional(),
4650
4660
  changedAt: string().datetime().optional(),
4651
4661
  detail: string().optional(),
4652
- blocker: z.optional(),
4653
- operation: Gr.optional()
4654
- }), si = Object.keys(oi.shape), ci = class Agent extends SettingsObject {
4662
+ blocker: R.optional(),
4663
+ operation: Hr.optional()
4664
+ }), ui = Object.keys(li.shape), di = class Agent extends SettingsObject {
4655
4665
  constructor(e) {
4656
4666
  let t = "config" in e ? {
4657
4667
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4669,7 +4679,7 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4669
4679
  }), 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);
4670
4680
  }
4671
4681
  merge(e) {
4672
- for (let t of si) {
4682
+ for (let t of ui) {
4673
4683
  if (!(t in e)) continue;
4674
4684
  let n = this[t];
4675
4685
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4677,7 +4687,7 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4677
4687
  }
4678
4688
  toConfig() {
4679
4689
  let e = {};
4680
- for (let t of si) {
4690
+ for (let t of ui) {
4681
4691
  let n = this[t];
4682
4692
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4683
4693
  }
@@ -4688,22 +4698,22 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4688
4698
  }
4689
4699
  };
4690
4700
  function createAgent(e) {
4691
- return new ci(e);
4701
+ return new di(e);
4692
4702
  }
4693
4703
  function createAgents(e) {
4694
- return e.configs.map((t) => new ci({
4704
+ return e.configs.map((t) => new di({
4695
4705
  config: t,
4696
4706
  context: e.context
4697
4707
  }));
4698
4708
  }
4699
4709
  //#endregion
4700
4710
  //#region ../core/dist/types/user.js
4701
- var q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), li = string().trim().toLowerCase().pipe(email()), ui = object({
4711
+ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), fi = string().trim().toLowerCase().pipe(email()), pi = object({
4702
4712
  userId: string(),
4703
4713
  email: string().optional(),
4704
4714
  handle: string().optional(),
4705
4715
  fullName: string().optional(),
4706
- linkedinUsername: q.optional(),
4716
+ linkedinUsername: K.optional(),
4707
4717
  avatarId: string().optional(),
4708
4718
  avatar: F.optional(),
4709
4719
  isEmailVerified: boolean().optional(),
@@ -4720,9 +4730,9 @@ var q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4720
4730
  createdAt: string().optional(),
4721
4731
  updatedAt: string().optional(),
4722
4732
  onboarded: boolean().optional()
4723
- }), di = object({
4733
+ }), mi = object({
4724
4734
  name: string().min(1).max(100).optional(),
4725
- linkedinUsername: q.nullable().optional(),
4735
+ linkedinUsername: K.nullable().optional(),
4726
4736
  avatar: object({
4727
4737
  src: string(),
4728
4738
  mediaId: string()
@@ -4731,20 +4741,20 @@ var q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4731
4741
  primaryOrgId: string().optional(),
4732
4742
  lastActiveOrgId: string().optional(),
4733
4743
  onboarding: any().optional()
4734
- }).partial(), fi = object({ email: li }), pi = object({
4735
- email: li,
4744
+ }).partial(), hi = object({ email: fi }), gi = object({
4745
+ email: fi,
4736
4746
  code: string().min(6, "Verification code is required"),
4737
4747
  timezone: string().max(64).optional()
4738
- }), mi = object({ newEmail: li }), hi = object({
4748
+ }), _i = object({ newEmail: fi }), vi = object({
4739
4749
  credential: string().optional(),
4740
4750
  code: string().optional(),
4741
4751
  timezone: string().max(64).optional(),
4742
4752
  source: _enum(["web", "ios"]).optional()
4743
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), gi = object({
4753
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), yi = object({
4744
4754
  identityToken: string().min(1),
4745
4755
  fullName: string().optional(),
4746
4756
  timezone: string().max(64).optional()
4747
- }), J = object({
4757
+ }), q = object({
4748
4758
  orgId: string().optional(),
4749
4759
  handle: string().optional(),
4750
4760
  name: string().optional(),
@@ -4774,7 +4784,7 @@ var q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4774
4784
  status: string().optional(),
4775
4785
  createdAt: string().optional(),
4776
4786
  updatedAt: string().optional()
4777
- }), _i = J.extend({
4787
+ }), bi = q.extend({
4778
4788
  defaultAgent: object({
4779
4789
  agentId: string(),
4780
4790
  handle: string(),
@@ -4782,14 +4792,14 @@ var q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4782
4792
  orgId: string()
4783
4793
  }),
4784
4794
  onboardingCompleted: boolean().optional()
4785
- }), vi = object({
4795
+ }), xi = object({
4786
4796
  completedAt: string().datetime().optional(),
4787
4797
  setupBy: string().optional(),
4788
4798
  billingSetup: boolean().optional(),
4789
4799
  teamInvitesSetup: boolean().optional(),
4790
4800
  brandingSetup: boolean().optional(),
4791
4801
  domainsSetup: boolean().optional()
4792
- }), yi = object({
4802
+ }), Si = object({
4793
4803
  membershipId: string(),
4794
4804
  orgId: string(),
4795
4805
  name: string(),
@@ -4807,10 +4817,10 @@ var q = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
4807
4817
  memberCount: number().optional(),
4808
4818
  agentCount: number().optional(),
4809
4819
  joinedAt: string().datetime(),
4810
- onboarding: vi.optional()
4811
- }), bi = ui.extend({
4812
- orgs: array(yi).optional(),
4813
- agents: array(ai).optional()
4820
+ onboarding: xi.optional()
4821
+ }), Ci = pi.extend({
4822
+ orgs: array(Si).optional(),
4823
+ agents: array(ci).optional()
4814
4824
  });
4815
4825
  //#endregion
4816
4826
  //#region ../core/dist/state.js
@@ -4833,7 +4843,7 @@ function derive(e) {
4833
4843
  }
4834
4844
  //#endregion
4835
4845
  //#region ../core/dist/bot-ua.js
4836
- var xi = "pagelines-agent/1.0", Si = [
4846
+ var wi = "pagelines-agent/1.0", Ti = [
4837
4847
  "[SILENT]",
4838
4848
  "SILENT",
4839
4849
  "NO_REPLY",
@@ -4847,21 +4857,21 @@ var xi = "pagelines-agent/1.0", Si = [
4847
4857
  "[NO_OP]",
4848
4858
  "[NO OP]",
4849
4859
  "HEARTBEAT_OK"
4850
- ], Ci = new Set(Si);
4860
+ ], Ei = new Set(Ti);
4851
4861
  function normalizeAssistantControl(e) {
4852
4862
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4853
4863
  }
4854
4864
  function isAssistantSilenceControl(e) {
4855
4865
  let t = normalizeAssistantControl(e);
4856
- return t.length <= 64 && Ci.has(t);
4866
+ return t.length <= 64 && Ei.has(t);
4857
4867
  }
4858
4868
  function isAssistantSilenceControlPrefix(e) {
4859
4869
  let t = normalizeAssistantControl(e);
4860
- return t.length <= 64 && Si.some((e) => e.startsWith(t));
4870
+ return t.length <= 64 && Ti.some((e) => e.startsWith(t));
4861
4871
  }
4862
4872
  //#endregion
4863
4873
  //#region ../core/dist/timingBudgets.js
4864
- var wi = {
4874
+ var Di = {
4865
4875
  wake: 300 * 1e3,
4866
4876
  bootGrace: 420 * 1e3,
4867
4877
  stop: 30 * 1e3
@@ -4879,16 +4889,16 @@ function formatBudgetDuration(e) {
4879
4889
  }
4880
4890
  //#endregion
4881
4891
  //#region ../core/dist/paths.js
4882
- var Ti = "/api/bot-api", Ei = "/api/bot-api/v1";
4892
+ var Oi = "/api/bot-api", ki = "/api/bot-api/v1";
4883
4893
  function botApiLlmUrl(e) {
4884
- return `${e}${Ei}`;
4894
+ return `${e}${ki}`;
4885
4895
  }
4886
4896
  function botApiUrl(e) {
4887
- return `${e}${Ti}`;
4897
+ return `${e}${Oi}`;
4888
4898
  }
4889
4899
  //#endregion
4890
4900
  //#region ../core/dist/errorCopy.js
4891
- var Y = {
4901
+ var J = {
4892
4902
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4893
4903
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4894
4904
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4919,7 +4929,7 @@ var Y = {
4919
4929
  TIMEOUT: "The request took too long. Try again in a moment.",
4920
4930
  FORBIDDEN: "You don't have access to this.",
4921
4931
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4922
- }, Di = {
4932
+ }, Ai = {
4923
4933
  notFound: "Not found. Try refreshing.",
4924
4934
  busy: "Busy — try again in a moment.",
4925
4935
  rateLimited: "Too many requests. Wait a moment.",
@@ -4929,14 +4939,14 @@ var Y = {
4929
4939
  fatal: "Something's broken and won't resolve on retry. Contact support."
4930
4940
  };
4931
4941
  function errorCopy(e, t) {
4932
- return e && e in Y ? Y[e] : t;
4942
+ return e && e in J ? J[e] : t;
4933
4943
  }
4934
4944
  function errorFromApiResponse(e, t) {
4935
- return e.code && e.code in Y ? Y[e.code] : e.providerErrorKind && Di[e.providerErrorKind] ? Di[e.providerErrorKind] : e.error || t;
4945
+ return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Ai[e.providerErrorKind] ? Ai[e.providerErrorKind] : e.error || t;
4936
4946
  }
4937
4947
  //#endregion
4938
4948
  //#region ../core/dist/retryPolicy.js
4939
- var Oi = {
4949
+ var ji = {
4940
4950
  shouldRetry: !1,
4941
4951
  maxAttempts: 1,
4942
4952
  strategy: "none",
@@ -4954,7 +4964,7 @@ function retryPolicyFor(e) {
4954
4964
  "FORBIDDEN",
4955
4965
  "AGENT_NOT_FOUND"
4956
4966
  ]);
4957
- if (e.code && t.has(e.code)) return Oi;
4967
+ if (e.code && t.has(e.code)) return ji;
4958
4968
  switch (e.providerErrorKind) {
4959
4969
  case "busy": return {
4960
4970
  shouldRetry: !0,
@@ -4989,33 +4999,33 @@ function retryPolicyFor(e) {
4989
4999
  };
4990
5000
  case "notFound":
4991
5001
  case "invalidConfig":
4992
- case "fatal": return Oi;
4993
- default: return Oi;
5002
+ case "fatal": return ji;
5003
+ default: return ji;
4994
5004
  }
4995
5005
  }
4996
5006
  //#endregion
4997
5007
  //#region ../core/dist/wire/timezone.js
4998
- var X = string().min(1).max(64).refine((e) => {
5008
+ var Y = string().min(1).max(64).refine((e) => {
4999
5009
  try {
5000
5010
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
5001
5011
  } catch {
5002
5012
  return !1;
5003
5013
  }
5004
- }, "Invalid IANA timezone"), ki = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Ai = object({
5014
+ }, "Invalid IANA timezone"), Mi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Ni = object({
5005
5015
  orgId: string(),
5006
5016
  name: string().min(1).max(100),
5007
5017
  emoji: string().max(8).nullable().optional(),
5008
5018
  title: string().max(120).nullable().optional(),
5009
5019
  summary: string().max(500).nullable().optional(),
5010
5020
  handle: string().min(2).max(50).optional(),
5011
- timezone: X.optional(),
5021
+ timezone: Y.optional(),
5012
5022
  runtime: _enum(["hermes"]).optional(),
5013
5023
  visibility: _enum([
5014
5024
  "private",
5015
5025
  "org",
5016
5026
  "public"
5017
5027
  ]).optional()
5018
- }).strict(), ji = object({
5028
+ }).strict(), Pi = object({
5019
5029
  name: string().min(1).max(100).optional(),
5020
5030
  handle: string().min(2).max(50).optional(),
5021
5031
  emoji: string().max(8).nullable().optional(),
@@ -5025,26 +5035,26 @@ var X = string().min(1).max(64).refine((e) => {
5025
5035
  website: string().url().nullable().optional(),
5026
5036
  avatarMediaId: string().nullable().optional(),
5027
5037
  coverMediaId: string().nullable().optional(),
5028
- timezone: X.optional(),
5038
+ timezone: Y.optional(),
5029
5039
  model: string().nullable().optional(),
5030
- gender: U.optional(),
5031
- voiceKey: G.nullable().optional(),
5032
- billingTier: K.optional(),
5040
+ gender: H.optional(),
5041
+ voiceKey: W.nullable().optional(),
5042
+ billingTier: G.optional(),
5033
5043
  visibility: _enum([
5034
5044
  "private",
5035
5045
  "org",
5036
5046
  "public"
5037
5047
  ]).optional(),
5038
- automationPrimaryChannel: ki.optional(),
5048
+ automationPrimaryChannel: Mi.optional(),
5039
5049
  heartbeatEnabled: boolean().optional(),
5040
5050
  heartbeatBriefingTime: T.nullable().optional(),
5041
5051
  heartbeatCheckinTime: T.nullable().optional(),
5042
5052
  heartbeatCloseoutTime: T.nullable().optional()
5043
- }).strict(), Mi = oi, Ni = object({
5053
+ }).strict(), Fi = li, Ii = object({
5044
5054
  id: string(),
5045
5055
  label: string(),
5046
5056
  prompt: string()
5047
- }), Pi = /* @__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("."), Fi = _enum(Pi), Ii = _enum([
5057
+ }), Li = /* @__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("."), Ri = _enum(Li), zi = _enum([
5048
5058
  "notFound",
5049
5059
  "busy",
5050
5060
  "rateLimited",
@@ -5055,21 +5065,21 @@ var X = string().min(1).max(64).refine((e) => {
5055
5065
  ]), zApiOk = (e) => object({
5056
5066
  ok: literal(!0),
5057
5067
  data: e
5058
- }), Li = object({
5068
+ }), Bi = object({
5059
5069
  ok: literal(!1),
5060
5070
  error: string(),
5061
- code: Fi.optional(),
5062
- issue: z.optional(),
5063
- providerErrorKind: Ii.optional()
5064
- }), zApiResponse = (e) => union([zApiOk(e), Li]), Ri = {
5071
+ code: Ri.optional(),
5072
+ issue: R.optional(),
5073
+ providerErrorKind: zi.optional()
5074
+ }), zApiResponse = (e) => union([zApiOk(e), Bi]), Vi = {
5065
5075
  400: "Invalid body.",
5066
5076
  401: "Not authenticated.",
5067
5077
  500: "Server error."
5068
5078
  };
5069
5079
  function zErrorResponses(e) {
5070
5080
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5071
- description: t === !0 ? Ri[Number(e)] ?? "Request failed." : t,
5072
- content: { "application/json": { schema: Li } }
5081
+ description: t === !0 ? Vi[Number(e)] ?? "Request failed." : t,
5082
+ content: { "application/json": { schema: Bi } }
5073
5083
  }]));
5074
5084
  }
5075
5085
  function apiError(e, t, n) {
@@ -5092,7 +5102,7 @@ function apiOk(e) {
5092
5102
  }
5093
5103
  //#endregion
5094
5104
  //#region ../core/dist/wire/chat-tool-activity.js
5095
- var zi = object({
5105
+ var Hi = object({
5096
5106
  kind: _enum([
5097
5107
  "icon",
5098
5108
  "favicon",
@@ -5101,7 +5111,7 @@ var zi = object({
5101
5111
  icon: string().min(1).optional(),
5102
5112
  domain: string().min(1).optional(),
5103
5113
  serviceKey: string().min(1).optional()
5104
- }).strict(), Bi = object({
5114
+ }).strict(), Ui = object({
5105
5115
  activityId: string().min(1),
5106
5116
  turnId: string().min(1),
5107
5117
  status: _enum([
@@ -5125,12 +5135,12 @@ var zi = object({
5125
5135
  endedAt: string().datetime().optional(),
5126
5136
  durationMs: number().int().nonnegative().optional(),
5127
5137
  note: string().trim().min(1).optional(),
5128
- visual: zi.optional()
5129
- }).strict(), Vi = Bi.extend({ status: _enum(["completed", "failed"]) }), Hi = P, Ui = object({
5138
+ visual: Hi.optional()
5139
+ }).strict(), Wi = Ui.extend({ status: _enum(["completed", "failed"]) }), Gi = P, Ki = object({
5130
5140
  kind: literal("inline"),
5131
5141
  offset: number().int().nonnegative()
5132
- }), Wi = object({
5133
- type: Hi,
5142
+ }), qi = object({
5143
+ type: Gi,
5134
5144
  src: url(),
5135
5145
  filename: string().min(1),
5136
5146
  mimeType: string().min(1),
@@ -5140,12 +5150,12 @@ var zi = object({
5140
5150
  height: number().int().positive().optional(),
5141
5151
  duration: number().nonnegative().optional(),
5142
5152
  text: string().optional(),
5143
- placement: Ui.optional()
5144
- }), Gi = object({ ref: string().min(1).max(256) }).strict(), Ki = _enum([
5153
+ placement: Ki.optional()
5154
+ }), Ji = object({ ref: string().min(1).max(256) }).strict(), Yi = _enum([
5145
5155
  "handled",
5146
5156
  "dismissed",
5147
5157
  "deferred"
5148
- ]), qi = datetime();
5158
+ ]), Xi = datetime();
5149
5159
  function validateAttentionRevisit(e, t) {
5150
5160
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5151
5161
  code: "custom",
@@ -5153,17 +5163,17 @@ function validateAttentionRevisit(e, t) {
5153
5163
  message: "revisitAt requires deferred disposition"
5154
5164
  });
5155
5165
  }
5156
- var Ji = Gi.extend({
5157
- disposition: Ki.optional(),
5158
- revisitAt: qi.optional()
5159
- }).superRefine(validateAttentionRevisit), Yi = Gi.extend({
5160
- disposition: Ki,
5161
- revisitAt: qi.optional()
5162
- }).superRefine(validateAttentionRevisit), Xi = object({
5166
+ var Zi = Ji.extend({
5167
+ disposition: Yi.optional(),
5168
+ revisitAt: Xi.optional()
5169
+ }).superRefine(validateAttentionRevisit), Qi = Ji.extend({
5170
+ disposition: Yi,
5171
+ revisitAt: Xi.optional()
5172
+ }).superRefine(validateAttentionRevisit), $i = object({
5163
5173
  turnId: string().min(1).optional(),
5164
5174
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5165
- attachments: array(Wi).optional(),
5166
- toolActivities: array(Vi).optional(),
5175
+ attachments: array(qi).optional(),
5176
+ toolActivities: array(Wi).optional(),
5167
5177
  issue: object({
5168
5178
  code: string(),
5169
5179
  bucket: _enum(["account", "error"]),
@@ -5195,8 +5205,8 @@ var Ji = Gi.extend({
5195
5205
  ])
5196
5206
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5197
5207
  ownerHandoff: literal(!0).optional(),
5198
- attention: array(Ji).max(20).optional()
5199
- }).catchall(unknown()), Zi = object({
5208
+ attention: array(Zi).max(20).optional()
5209
+ }).catchall(unknown()), ea = object({
5200
5210
  messageId: string().min(1),
5201
5211
  conversationId: string().min(1),
5202
5212
  role: _enum([
@@ -5209,12 +5219,12 @@ var Ji = Gi.extend({
5209
5219
  content: string(),
5210
5220
  sequence: string().min(1),
5211
5221
  clientNonce: string().nullable().optional(),
5212
- metadata: Xi.nullable().optional(),
5222
+ metadata: $i.nullable().optional(),
5213
5223
  status: string().nullable().optional(),
5214
5224
  createdAt: string(),
5215
5225
  updatedAt: string()
5216
- }), Qi = object({
5217
- type: Hi,
5226
+ }), ta = object({
5227
+ type: Gi,
5218
5228
  mediaId: string().min(1).optional(),
5219
5229
  url: url().optional(),
5220
5230
  name: string().min(1).optional(),
@@ -5230,21 +5240,21 @@ var Ji = Gi.extend({
5230
5240
  path: [n],
5231
5241
  message: `${n} is required when mediaId is absent`
5232
5242
  });
5233
- }), $i = object({
5243
+ }), na = object({
5234
5244
  conversationId: string().min(1),
5235
5245
  content: string().max(1e4).default(""),
5236
5246
  clientNonce: string().max(64).optional(),
5237
- attachments: array(Qi).max(10).optional(),
5247
+ attachments: array(ta).max(10).optional(),
5238
5248
  channel: _enum(["ios", "dashboard"]).optional(),
5239
5249
  actionUrls: object({
5240
5250
  billing: string().max(500),
5241
5251
  agent: string().max(500)
5242
5252
  }).optional(),
5243
- viewerTimezone: X.optional()
5253
+ viewerTimezone: Y.optional()
5244
5254
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5245
5255
  path: ["content"],
5246
5256
  message: "Message or attachment required"
5247
- }), ea = object({
5257
+ }), ra = object({
5248
5258
  type: _enum(["user", "agent"]),
5249
5259
  id: string().min(1)
5250
5260
  }).strict();
@@ -5259,44 +5269,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5259
5269
  }), n.add(e);
5260
5270
  }
5261
5271
  }
5262
- var ta = object({
5272
+ var ia = object({
5263
5273
  orgId: string().min(1),
5264
- participants: array(ea).min(1).max(20)
5265
- }).strict().superRefine(addDuplicateConversationTargetIssues), na = object({
5274
+ participants: array(ra).min(1).max(20)
5275
+ }).strict().superRefine(addDuplicateConversationTargetIssues), aa = object({
5266
5276
  orgId: string().min(1),
5267
- participants: array(ea).min(1).max(20)
5277
+ participants: array(ra).min(1).max(20)
5268
5278
  }).strict().superRefine((e, t) => {
5269
5279
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5270
5280
  code: "custom",
5271
5281
  path: ["participants"],
5272
5282
  message: "New sessions require at least one agent participant."
5273
5283
  });
5274
- }), ra = object({
5284
+ }), oa = object({
5275
5285
  category: string().min(1).max(30).optional(),
5276
5286
  reason: string().max(2e3).optional()
5277
- }).strict(), ia = _enum([
5287
+ }).strict(), sa = _enum([
5278
5288
  "1:1",
5279
5289
  "4:3",
5280
5290
  "3:4",
5281
5291
  "16:9",
5282
5292
  "9:16"
5283
- ]), aa = _enum([
5293
+ ]), ca = _enum([
5284
5294
  "1K",
5285
5295
  "2K",
5286
5296
  "4K"
5287
- ]), oa = object({
5297
+ ]), la = object({
5288
5298
  prompt: string().trim().min(1).max(4e3),
5289
- aspectRatio: ia.default("1:1"),
5299
+ aspectRatio: sa.default("1:1"),
5290
5300
  outputFormat: _enum([
5291
5301
  "png",
5292
5302
  "jpeg",
5293
5303
  "webp"
5294
5304
  ]).default("webp"),
5295
- resolution: aa.default("2K"),
5305
+ resolution: ca.default("2K"),
5296
5306
  style: string().trim().max(200).optional(),
5297
5307
  altText: string().trim().max(500).optional(),
5298
5308
  referenceMediaIds: array(string().min(1)).max(4).optional()
5299
- }).strict(), sa = object({
5309
+ }).strict(), ua = object({
5300
5310
  mediaId: string().min(1),
5301
5311
  src: url(),
5302
5312
  filename: string().min(1),
@@ -5306,59 +5316,59 @@ var ta = object({
5306
5316
  provider: string().min(1).optional(),
5307
5317
  providerRequestId: string().min(1).optional(),
5308
5318
  media: string().startsWith("MEDIA:"),
5309
- attachment: Wi.extend({ type: literal("image") })
5310
- }), ca = object({
5319
+ attachment: qi.extend({ type: literal("image") })
5320
+ }), da = object({
5311
5321
  identityToken: string().min(1),
5312
5322
  fullName: string().optional()
5313
- }), la = object({
5323
+ }), fa = object({
5314
5324
  redirect: string(),
5315
5325
  redirectReason: string(),
5316
5326
  isNew: boolean(),
5317
5327
  deviceId: string()
5318
- }), ua = object({
5328
+ }), pa = object({
5319
5329
  ok: literal(!0),
5320
- data: la,
5330
+ data: fa,
5321
5331
  token: string()
5322
- }), da = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), fa = object({ url: string() }), pa = object({
5332
+ }), ma = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), ha = object({ url: string() }), ga = object({
5323
5333
  ok: literal(!0),
5324
- data: fa
5325
- }), ma = object({ token: string().min(1) }), ha = object({
5334
+ data: ha
5335
+ }), _a = object({ token: string().min(1) }), va = object({
5326
5336
  redirect: string(),
5327
5337
  redirectReason: string(),
5328
5338
  deviceId: string()
5329
- }), ga = object({
5339
+ }), ya = object({
5330
5340
  ok: literal(!0),
5331
- data: ha,
5341
+ data: va,
5332
5342
  token: string()
5333
- }), _a = _enum(["none", "active_assistant"]), va = _enum([
5343
+ }), ba = _enum(["none", "active_assistant"]), xa = _enum([
5334
5344
  "none",
5335
5345
  "active",
5336
5346
  "trial",
5337
5347
  "canceling",
5338
5348
  "past_due",
5339
5349
  "paused"
5340
- ]), ya = object({
5350
+ ]), Sa = object({
5341
5351
  brand: string(),
5342
5352
  last4: string(),
5343
5353
  expMonth: number(),
5344
5354
  expYear: number()
5345
- }), ba = object({
5355
+ }), Ca = object({
5346
5356
  date: string(),
5347
5357
  amount: number(),
5348
5358
  status: string(),
5349
5359
  invoicePdf: string().optional()
5350
- }), xa = object({
5360
+ }), wa = object({
5351
5361
  graceEndsAt: string().optional(),
5352
5362
  suspended: boolean(),
5353
5363
  url: string().optional()
5354
- }), Sa = object({
5355
- plan: _a,
5356
- status: va,
5364
+ }), Ta = object({
5365
+ plan: ba,
5366
+ status: xa,
5357
5367
  price: number(),
5358
5368
  tierRates: record(string(), number()).optional(),
5359
5369
  maxAgents: number(),
5360
5370
  activeAgents: number(),
5361
- workspaceTier: K.optional(),
5371
+ workspaceTier: G.optional(),
5362
5372
  upcomingAmountDue: number().optional(),
5363
5373
  upcomingDueDate: string().optional(),
5364
5374
  nextBillDate: string().optional(),
@@ -5366,34 +5376,34 @@ var ta = object({
5366
5376
  cancelAt: string().optional(),
5367
5377
  trialEnd: string().optional(),
5368
5378
  trialDaysRemaining: number().optional(),
5369
- paymentMethod: ya.optional(),
5370
- paymentRecovery: xa.optional(),
5371
- invoices: array(ba),
5379
+ paymentMethod: Sa.optional(),
5380
+ paymentRecovery: wa.optional(),
5381
+ invoices: array(Ca),
5372
5382
  stripeError: string().optional()
5373
- }), Ca = _enum([
5383
+ }), Ea = _enum([
5374
5384
  "demo_agent_exists",
5375
5385
  "demo_usage_exhausted",
5376
5386
  "subscription_required",
5377
5387
  "plan_limit"
5378
- ]), wa = object({
5388
+ ]), Da = object({
5379
5389
  canCreate: boolean(),
5380
5390
  activeAgents: number().int().nonnegative(),
5381
5391
  agentLimit: number().int().nonnegative(),
5382
5392
  isDemo: boolean(),
5383
- reason: Ca.optional()
5384
- }), Ta = object({
5393
+ reason: Ea.optional()
5394
+ }), Oa = object({
5385
5395
  orgId: string(),
5386
5396
  agentName: string().optional(),
5387
5397
  runtime: string().optional()
5388
- }), Ea = object({
5398
+ }), ka = object({
5389
5399
  created: number(),
5390
5400
  skipped: number(),
5391
5401
  errors: array(string())
5392
- }), Da = object({
5402
+ }), Aa = object({
5393
5403
  updated: number(),
5394
5404
  errors: array(string())
5395
- }), Oa = Kr, ka = object({
5396
- code: Fi,
5405
+ }), ja = Ur, Ma = object({
5406
+ code: Ri,
5397
5407
  message: string(),
5398
5408
  bucket: _enum(["account", "error"]).optional(),
5399
5409
  actionLabel: string().optional(),
@@ -5410,14 +5420,14 @@ function toChatStreamError(e) {
5410
5420
  ...e.help ? { help: e.help } : {}
5411
5421
  };
5412
5422
  }
5413
- var Aa = discriminatedUnion("event", [
5423
+ var Na = discriminatedUnion("event", [
5414
5424
  object({
5415
5425
  event: literal("status"),
5416
- data: Oa
5426
+ data: ja
5417
5427
  }),
5418
5428
  object({
5419
5429
  event: literal("message"),
5420
- data: object({ message: Zi })
5430
+ data: object({ message: ea })
5421
5431
  }),
5422
5432
  object({
5423
5433
  event: literal("message_delta"),
@@ -5437,7 +5447,7 @@ var Aa = discriminatedUnion("event", [
5437
5447
  }),
5438
5448
  object({
5439
5449
  event: literal("tool_activity"),
5440
- data: Bi
5450
+ data: Ui
5441
5451
  }),
5442
5452
  object({
5443
5453
  event: literal("working_end"),
@@ -5449,7 +5459,7 @@ var Aa = discriminatedUnion("event", [
5449
5459
  }),
5450
5460
  object({
5451
5461
  event: literal("error"),
5452
- data: ka
5462
+ data: Ma
5453
5463
  })
5454
5464
  ]);
5455
5465
  function chatEventUserTurnId(e) {
@@ -5601,7 +5611,7 @@ function parseChatEvent(e) {
5601
5611
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5602
5612
  if (!n || r === void 0) return null;
5603
5613
  try {
5604
- let e = Aa.safeParse({
5614
+ let e = Na.safeParse({
5605
5615
  event: n,
5606
5616
  data: JSON.parse(r)
5607
5617
  });
@@ -5612,7 +5622,7 @@ function parseChatEvent(e) {
5612
5622
  }
5613
5623
  //#endregion
5614
5624
  //#region ../core/dist/wire/chat-card.js
5615
- var ja = object({
5625
+ var Pa = object({
5616
5626
  label: string().trim().min(1).max(40),
5617
5627
  reply: string().trim().min(1).max(500),
5618
5628
  style: _enum([
@@ -5620,11 +5630,11 @@ var ja = object({
5620
5630
  "default",
5621
5631
  "destructive"
5622
5632
  ]).optional()
5623
- }).strip(), Ma = object({
5633
+ }).strip(), Fa = object({
5624
5634
  version: literal(1),
5625
5635
  title: string().trim().min(1).max(200),
5626
5636
  body: string().trim().min(1).max(8e3).optional(),
5627
- actions: array(ja).min(1).max(3).optional()
5637
+ actions: array(Pa).min(1).max(3).optional()
5628
5638
  }).strip();
5629
5639
  function parseChatCardFencePayload(e) {
5630
5640
  let t;
@@ -5637,7 +5647,7 @@ function parseChatCardFencePayload(e) {
5637
5647
  message: e instanceof Error ? e.message : "Invalid JSON"
5638
5648
  };
5639
5649
  }
5640
- let n = Ma.safeParse(t);
5650
+ let n = Fa.safeParse(t);
5641
5651
  return n.success ? {
5642
5652
  ok: !0,
5643
5653
  spec: n.data
@@ -5649,36 +5659,36 @@ function parseChatCardFencePayload(e) {
5649
5659
  }
5650
5660
  //#endregion
5651
5661
  //#region ../core/dist/wire/chat-visual.js
5652
- var Na = string().trim().min(1).max(240), Pa = string().trim().min(1).max(800), Z = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Q = string().trim().min(1).max(120), Fa = record(Z, union([
5662
+ var Ia = string().trim().min(1).max(240), La = 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), Ra = record(X, union([
5653
5663
  string().max(500),
5654
5664
  number().finite(),
5655
5665
  boolean(),
5656
5666
  _null()
5657
- ])), Ia = _enum([
5667
+ ])), za = _enum([
5658
5668
  "compact",
5659
5669
  "currency",
5660
5670
  "duration",
5661
5671
  "integer",
5662
5672
  "percent",
5663
5673
  "raw"
5664
- ]), La = object({
5665
- title: Na,
5666
- description: Pa.optional(),
5667
- footer: Pa.optional()
5668
- }).strip(), Ra = object({
5669
- dataKey: Z,
5670
- label: Q.optional(),
5671
- axisLabel: Q.optional(),
5672
- valueFormat: Ia.optional(),
5674
+ ]), Ba = object({
5675
+ title: Ia,
5676
+ description: La.optional(),
5677
+ footer: La.optional()
5678
+ }).strip(), Va = object({
5679
+ dataKey: X,
5680
+ label: Z.optional(),
5681
+ axisLabel: Z.optional(),
5682
+ valueFormat: za.optional(),
5673
5683
  valuePrefix: string().trim().max(12).optional(),
5674
5684
  valueSuffix: string().trim().max(12).optional()
5675
- }).strip(), za = object({
5685
+ }).strip(), Ha = object({
5676
5686
  kind: literal("linear"),
5677
- dataKey: Z,
5678
- label: Q.optional()
5679
- }).strip(), Ba = object({
5687
+ dataKey: X,
5688
+ label: Z.optional()
5689
+ }).strip(), Ua = object({
5680
5690
  version: literal(1),
5681
- meta: La,
5691
+ meta: Ba,
5682
5692
  fallbackMarkdown: string().trim().min(1).max(4e3)
5683
5693
  }).strip();
5684
5694
  function dataKeys(e) {
@@ -5720,20 +5730,20 @@ function requireNumericDataKeys(e, t, n) {
5720
5730
  });
5721
5731
  }
5722
5732
  }
5723
- var Va = discriminatedUnion("chartType", [Ba.extend({
5733
+ var Wa = discriminatedUnion("chartType", [Ua.extend({
5724
5734
  visualType: literal("chart"),
5725
5735
  chartType: _enum([
5726
5736
  "bar",
5727
5737
  "line",
5728
5738
  "scatter"
5729
5739
  ]),
5730
- xKey: Z,
5731
- xAxisLabel: Q.optional(),
5732
- series: array(Ra).min(1).max(6),
5733
- data: array(Fa).min(1).max(120),
5740
+ xKey: X,
5741
+ xAxisLabel: Z.optional(),
5742
+ series: array(Va).min(1).max(6),
5743
+ data: array(Ra).min(1).max(120),
5734
5744
  layout: _enum(["horizontal", "vertical"]).optional(),
5735
5745
  stacking: _enum(["grouped", "stacked"]).optional(),
5736
- trendLine: za.optional()
5746
+ trendLine: Ha.optional()
5737
5747
  }).strip().superRefine((e, t) => {
5738
5748
  e.stacking && e.chartType !== "bar" && t.addIssue({
5739
5749
  code: "custom",
@@ -5771,13 +5781,13 @@ var Va = discriminatedUnion("chartType", [Ba.extend({
5771
5781
  path: ["trendLine", "dataKey"],
5772
5782
  value: e.trendLine.dataKey
5773
5783
  }] : []], t);
5774
- }), Ba.extend({
5784
+ }), Ua.extend({
5775
5785
  visualType: literal("chart"),
5776
5786
  chartType: literal("pie"),
5777
- nameKey: Z,
5778
- valueKey: Z,
5779
- series: array(Ra).max(1).optional(),
5780
- data: array(Fa).min(1).max(16)
5787
+ nameKey: X,
5788
+ valueKey: X,
5789
+ series: array(Va).max(1).optional(),
5790
+ data: array(Ra).min(1).max(16)
5781
5791
  }).strip().superRefine((e, t) => {
5782
5792
  requireDataKeys(e.data, [
5783
5793
  {
@@ -5801,10 +5811,10 @@ var Va = discriminatedUnion("chartType", [Ba.extend({
5801
5811
  value: e.valueKey,
5802
5812
  nonnegative: !0
5803
5813
  }], t);
5804
- })]), Ha = object({
5805
- id: Z,
5806
- label: Q,
5807
- detail: Pa.optional(),
5814
+ })]), Ga = object({
5815
+ id: X,
5816
+ label: Z,
5817
+ detail: La.optional(),
5808
5818
  kind: _enum([
5809
5819
  "actor",
5810
5820
  "agent",
@@ -5815,11 +5825,11 @@ var Va = discriminatedUnion("chartType", [Ba.extend({
5815
5825
  "system",
5816
5826
  "task"
5817
5827
  ]).optional()
5818
- }).strip(), Ua = object({
5819
- from: Z,
5820
- to: Z,
5821
- label: Q.optional()
5822
- }).strip(), Wa = union([Va, Ba.extend({
5828
+ }).strip(), Ka = object({
5829
+ from: X,
5830
+ to: X,
5831
+ label: Z.optional()
5832
+ }).strip(), qa = union([Wa, Ua.extend({
5823
5833
  visualType: literal("diagram"),
5824
5834
  diagramType: _enum([
5825
5835
  "flow",
@@ -5833,8 +5843,8 @@ var Va = discriminatedUnion("chartType", [Ba.extend({
5833
5843
  "radial",
5834
5844
  "top-to-bottom"
5835
5845
  ]).default("auto"),
5836
- nodes: array(Ha).min(1).max(24),
5837
- edges: array(Ua).max(48)
5846
+ nodes: array(Ga).min(1).max(24),
5847
+ edges: array(Ka).max(48)
5838
5848
  }).strip().superRefine((e, t) => {
5839
5849
  let n = new Set(e.nodes.map((e) => e.id));
5840
5850
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5993,11 +6003,11 @@ function parseChatVisualFencePayload(e) {
5993
6003
  fallbackMarkdown: r
5994
6004
  };
5995
6005
  }
5996
- let n = Wa.safeParse(t);
6006
+ let n = qa.safeParse(t);
5997
6007
  if (!n.success) {
5998
6008
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5999
6009
  if (e) {
6000
- let t = Wa.safeParse(e);
6010
+ let t = qa.safeParse(e);
6001
6011
  if (t.success) return {
6002
6012
  ok: !0,
6003
6013
  spec: t.data
@@ -6022,7 +6032,7 @@ function extractChatVisualFencePayloads(e) {
6022
6032
  }
6023
6033
  //#endregion
6024
6034
  //#region ../core/dist/wire/conversation.js
6025
- var Ga = object({
6035
+ var Ja = object({
6026
6036
  type: _enum([
6027
6037
  "user",
6028
6038
  "agent",
@@ -6042,7 +6052,7 @@ var Ga = object({
6042
6052
  displayName: string().optional(),
6043
6053
  handle: string().optional(),
6044
6054
  avatarUrl: string().optional()
6045
- }).strict(), Ka = object({
6055
+ }).strict(), Ya = object({
6046
6056
  messageId: string(),
6047
6057
  role: _enum([
6048
6058
  "user",
@@ -6052,7 +6062,7 @@ var Ga = object({
6052
6062
  content: string(),
6053
6063
  sequence: string(),
6054
6064
  createdAt: string()
6055
- }), qa = object({
6065
+ }), Xa = object({
6056
6066
  conversationId: string(),
6057
6067
  orgId: string(),
6058
6068
  kind: _enum(["direct", "group"]),
@@ -6062,52 +6072,52 @@ var Ga = object({
6062
6072
  "requester",
6063
6073
  "member"
6064
6074
  ]),
6065
- participants: array(Ga),
6066
- lastMessage: Ka.nullable(),
6075
+ participants: array(Ja),
6076
+ lastMessage: Ya.nullable(),
6067
6077
  unreadCount: number().int().nonnegative(),
6068
6078
  latestSequence: string().nullable()
6069
- }), Ja = object({ sequence: string().min(1) }), Ya = object({ turnId: string().min(1).optional() }).strict(), Xa = object({
6079
+ }), Za = object({ sequence: string().min(1) }), Qa = object({ turnId: string().min(1).optional() }).strict(), $a = object({
6070
6080
  cancelled: boolean(),
6071
6081
  cancelledTurnIds: array(string())
6072
- }).strict(), Za = object({
6082
+ }).strict(), eo = object({
6073
6083
  conversationId: string(),
6074
6084
  messageId: string(),
6075
6085
  sequence: string(),
6076
6086
  snippet: string(),
6077
6087
  createdAt: string(),
6078
- participants: array(Ga)
6079
- }), Qa = object({
6088
+ participants: array(Ja)
6089
+ }), to = object({
6080
6090
  conversationId: string(),
6081
- lastMessage: Ka.nullable(),
6091
+ lastMessage: Ya.nullable(),
6082
6092
  unreadCount: number().int().nonnegative(),
6083
6093
  latestSequence: string().nullable()
6084
- }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), $a = preprocess((e) => e === void 0 ? null : e, H.nullable()), eo = preprocess((e) => e === void 0 ? null : e, V.nullable()), to = preprocess((e) => e === void 0 ? null : e, _enum([
6094
+ }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), no = preprocess((e) => e === void 0 ? null : e, B.nullable()), ro = preprocess((e) => e === void 0 ? null : e, V.nullable()), io = preprocess((e) => e === void 0 ? null : e, _enum([
6085
6095
  "user",
6086
6096
  "assistant",
6087
6097
  "system"
6088
- ]).nullable()), no = preprocess((e) => e === void 0 ? 0 : e, number()), ro = object({
6098
+ ]).nullable()), ao = preprocess((e) => e === void 0 ? 0 : e, number()), oo = object({
6089
6099
  agentId: string(),
6090
6100
  handle: string(),
6091
6101
  name: string(),
6092
6102
  orgId: string(),
6093
- orgName: $,
6094
- orgHandle: $,
6095
- ownerEmail: $,
6096
- ownerName: $,
6097
- state: $a,
6098
- desiredStatus: eo,
6103
+ orgName: Q,
6104
+ orgHandle: Q,
6105
+ ownerEmail: Q,
6106
+ ownerName: Q,
6107
+ state: no,
6108
+ desiredStatus: ro,
6099
6109
  runtime: string(),
6100
- imageVersion: $,
6101
- lastHealthyAt: $,
6102
- lastActiveAt: $,
6103
- lastUserMessageAt: $,
6104
- lastMessageAt: $,
6105
- lastMessageRole: to,
6106
- lastMessageChannel: $,
6107
- primaryChannel: $,
6108
- totalMessages: no,
6109
- totalSessions: no,
6110
- error: $,
6110
+ imageVersion: Q,
6111
+ lastHealthyAt: Q,
6112
+ lastActiveAt: Q,
6113
+ lastUserMessageAt: Q,
6114
+ lastMessageAt: Q,
6115
+ lastMessageRole: io,
6116
+ lastMessageChannel: Q,
6117
+ primaryChannel: Q,
6118
+ totalMessages: ao,
6119
+ totalSessions: ao,
6120
+ error: Q,
6111
6121
  appHandle: string(),
6112
6122
  flyAppExists: boolean(),
6113
6123
  plan: string(),
@@ -6115,7 +6125,7 @@ var Ga = object({
6115
6125
  billingActive: boolean(),
6116
6126
  createdAt: string(),
6117
6127
  updatedAt: string()
6118
- }), io = object({
6128
+ }), so = object({
6119
6129
  running: number(),
6120
6130
  stopped: number(),
6121
6131
  error: number(),
@@ -6123,9 +6133,9 @@ var Ga = object({
6123
6133
  stopping: number(),
6124
6134
  unknown: number(),
6125
6135
  total: number()
6126
- }), ao = object({
6127
- agents: array(ro),
6128
- summary: io,
6136
+ }), co = object({
6137
+ agents: array(oo),
6138
+ summary: so,
6129
6139
  orphanedApps: array(string()),
6130
6140
  dailyMessages30d: array(number().int()).optional(),
6131
6141
  flyAppCount: number().optional(),
@@ -6148,7 +6158,7 @@ function resolveHeroStateKey(e) {
6148
6158
  case "stopping": return null;
6149
6159
  }
6150
6160
  }
6151
- var oo = {
6161
+ var lo = {
6152
6162
  billing_no_plan: { title: (e) => `${e} needs a plan to wake` },
6153
6163
  billing_seat_limit: {
6154
6164
  title: (e) => `No room to wake ${e}`,
@@ -6174,7 +6184,7 @@ function buildHeroState(e) {
6174
6184
  if (!t) return null;
6175
6185
  switch (t) {
6176
6186
  case "blocked": {
6177
- let n = e.blocker, r = oo[n.code];
6187
+ let n = e.blocker, r = lo[n.code];
6178
6188
  return {
6179
6189
  kind: t,
6180
6190
  title: r ? r.title(e.name) : n.title,
@@ -6222,20 +6232,20 @@ function buildHeroState(e) {
6222
6232
  }
6223
6233
  //#endregion
6224
6234
  //#region ../core/dist/wire/media.js
6225
- var so = br, co = P, lo = object({
6235
+ var uo = br, fo = P, $ = object({
6226
6236
  mediaId: string(),
6227
6237
  src: string(),
6228
6238
  alt: string().nullable().optional(),
6229
6239
  filename: string().optional(),
6230
6240
  displayName: string().nullable().optional(),
6231
6241
  mimeType: string().optional(),
6232
- mediaType: co.optional(),
6233
- type: co.optional(),
6242
+ mediaType: fo.optional(),
6243
+ type: fo.optional(),
6234
6244
  size: number().optional(),
6235
6245
  width: number().nullable().optional(),
6236
6246
  height: number().nullable().optional(),
6237
6247
  duration: number().nullable().optional(),
6238
- context: so.nullable().optional(),
6248
+ context: uo.nullable().optional(),
6239
6249
  blurhash: string().nullable().optional(),
6240
6250
  quality: string().optional(),
6241
6251
  status: string().optional(),
@@ -6244,13 +6254,13 @@ var so = br, co = P, lo = object({
6244
6254
  agentId: string().nullable().optional(),
6245
6255
  createdAt: string().optional(),
6246
6256
  updatedAt: string().optional()
6247
- }), uo = object({
6257
+ }), po = object({
6248
6258
  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."),
6249
- context: so.optional().default("general"),
6259
+ context: uo.optional().default("general"),
6250
6260
  agentId: string().optional(),
6251
6261
  orgId: string().optional(),
6252
6262
  duration: number().optional()
6253
- }), fo = object({
6263
+ }), mo = object({
6254
6264
  mediaId: string().optional(),
6255
6265
  src: string().optional(),
6256
6266
  alt: string().optional(),
@@ -6259,7 +6269,7 @@ var so = br, co = P, lo = object({
6259
6269
  mimeType: string().optional(),
6260
6270
  mediaType: string().optional(),
6261
6271
  blurhash: string().optional()
6262
- }), po = object({
6272
+ }), ho = object({
6263
6273
  membershipId: string(),
6264
6274
  userId: string(),
6265
6275
  orgId: string(),
@@ -6274,15 +6284,15 @@ var so = br, co = P, lo = object({
6274
6284
  status: _enum(["active", "suspended"]),
6275
6285
  joinedAt: string(),
6276
6286
  lastSeenAt: string().optional(),
6277
- avatar: fo.optional()
6278
- }), mo = object({
6287
+ avatar: mo.optional()
6288
+ }), go = object({
6279
6289
  invitationId: string(),
6280
6290
  email: string(),
6281
6291
  role: _enum(["admin", "member"]),
6282
6292
  status: string(),
6283
6293
  expiresAt: string(),
6284
6294
  createdAt: string()
6285
- }), ho = object({
6295
+ }), _o = object({
6286
6296
  token: string(),
6287
6297
  email: string(),
6288
6298
  orgId: string(),
@@ -6304,20 +6314,20 @@ var so = br, co = P, lo = object({
6304
6314
  ]),
6305
6315
  expiresAt: string(),
6306
6316
  memberCount: number().optional()
6307
- }), go = object({
6317
+ }), vo = object({
6308
6318
  email: string().email(),
6309
6319
  role: _enum(["admin", "member"]).optional(),
6310
6320
  message: string().max(500).optional()
6311
- }).strict(), _o = object({ role: _enum(["admin", "member"]) }).strict(), vo = object({ token: string().min(1) }).strict(), yo = _enum([
6321
+ }).strict(), yo = object({ role: _enum(["admin", "member"]) }).strict(), bo = object({ token: string().min(1) }).strict(), xo = _enum([
6312
6322
  "planLimit",
6313
6323
  "billingOverdue",
6314
6324
  "rebuilding",
6315
6325
  "agentNotFound"
6316
- ]), bo = _enum([
6326
+ ]), So = _enum([
6317
6327
  "rebuilding",
6318
6328
  "provisioning",
6319
6329
  "billingOverdue"
6320
- ]), xo = object({
6330
+ ]), Co = object({
6321
6331
  agentId: string(),
6322
6332
  name: string(),
6323
6333
  avatar: F.optional(),
@@ -6332,26 +6342,26 @@ var so = br, co = P, lo = object({
6332
6342
  lastMessagePreview: string().nullable(),
6333
6343
  onboardedAt: string().datetime().nullable(),
6334
6344
  desiredStatus: V.nullable(),
6335
- lifecycle: H,
6345
+ lifecycle: B,
6336
6346
  changedAt: string().datetime().optional(),
6337
6347
  detail: string().optional(),
6338
- blocker: z.optional(),
6348
+ blocker: R.optional(),
6339
6349
  canWake: boolean(),
6340
- cantWakeReason: yo.optional(),
6350
+ cantWakeReason: xo.optional(),
6341
6351
  canRebuild: boolean(),
6342
- cantRebuildReason: bo.optional()
6343
- }), So = /* @__PURE__ */ t({
6344
- zNotificationTelemetryAck: () => Eo,
6345
- zNotificationTelemetryEvent: () => To,
6346
- zRegisterDeviceRequest: () => Co,
6347
- zRegisterDeviceResponse: () => wo
6348
- }), Co = object({
6352
+ cantRebuildReason: So.optional()
6353
+ }), wo = /* @__PURE__ */ t({
6354
+ zNotificationTelemetryAck: () => Oo,
6355
+ zNotificationTelemetryEvent: () => Do,
6356
+ zRegisterDeviceRequest: () => To,
6357
+ zRegisterDeviceResponse: () => Eo
6358
+ }), To = object({
6349
6359
  deviceId: string().min(1).max(64),
6350
6360
  pushToken: string().min(1).max(200),
6351
6361
  appVersion: string().max(40).optional(),
6352
6362
  osVersion: string().max(40).optional(),
6353
6363
  model: string().max(80).optional()
6354
- }), wo = object({ deviceId: string().min(1).max(64) }), To = object({
6364
+ }), Eo = object({ deviceId: string().min(1).max(64) }), Do = object({
6355
6365
  deviceId: string().min(1).max(64),
6356
6366
  kind: string().min(1).max(30),
6357
6367
  action: _enum([
@@ -6360,7 +6370,7 @@ var so = br, co = P, lo = object({
6360
6370
  "dismissed"
6361
6371
  ]),
6362
6372
  messageId: string().max(32).optional()
6363
- }), Eo = object({ updated: boolean() }), Do = J.pick({
6373
+ }), Oo = object({ updated: boolean() }), ko = q.pick({
6364
6374
  orgId: !0,
6365
6375
  handle: !0,
6366
6376
  name: !0,
@@ -6374,13 +6384,13 @@ var so = br, co = P, lo = object({
6374
6384
  status: !0,
6375
6385
  updatedAt: !0
6376
6386
  }).extend({
6377
- avatar: lo.nullable().optional(),
6378
- cover: lo.nullable().optional()
6379
- }), Oo = object({
6387
+ avatar: $.nullable().optional(),
6388
+ cover: $.nullable().optional()
6389
+ }), Ao = object({
6380
6390
  name: string().min(1).max(255),
6381
6391
  handle: string().min(2).max(50).optional(),
6382
- timezone: X.optional()
6383
- }).strict(), ko = J.pick({
6392
+ timezone: Y.optional()
6393
+ }).strict(), jo = q.pick({
6384
6394
  name: !0,
6385
6395
  email: !0,
6386
6396
  website: !0,
@@ -6389,10 +6399,10 @@ var so = br, co = P, lo = object({
6389
6399
  }).extend({
6390
6400
  name: string().min(1).max(255).optional(),
6391
6401
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6392
- timezone: X.optional(),
6402
+ timezone: Y.optional(),
6393
6403
  avatarMediaId: string().nullable().optional(),
6394
6404
  coverMediaId: string().nullable().optional()
6395
- }).strict(), Ao = object({
6405
+ }).strict(), Mo = object({
6396
6406
  messagesHandled: number().int().nonnegative(),
6397
6407
  proactiveRuns: number().int().nonnegative(),
6398
6408
  approvalsWaiting: number().int().nonnegative(),
@@ -6409,11 +6419,11 @@ var so = br, co = P, lo = object({
6409
6419
  prev30BriefingsDelivered: number().int().nonnegative(),
6410
6420
  prev30ScheduledRuns: number().int().nonnegative(),
6411
6421
  since: string()
6412
- }), jo = _enum([
6422
+ }), No = _enum([
6413
6423
  "success",
6414
6424
  "info",
6415
6425
  "warning"
6416
- ]), Mo = object({
6426
+ ]), Po = object({
6417
6427
  org: object({
6418
6428
  orgId: string(),
6419
6429
  name: string(),
@@ -6422,7 +6432,7 @@ var so = br, co = P, lo = object({
6422
6432
  plan: object({
6423
6433
  key: string(),
6424
6434
  label: string(),
6425
- tone: jo,
6435
+ tone: No,
6426
6436
  status: string(),
6427
6437
  trialDaysRemaining: number().optional()
6428
6438
  }),
@@ -6443,15 +6453,15 @@ function zPaginatedResponse(e) {
6443
6453
  }
6444
6454
  //#endregion
6445
6455
  //#region ../core/dist/wire/public-services.js
6446
- var No = object({
6456
+ var Fo = object({
6447
6457
  sender: _enum(["user", "agent"]),
6448
6458
  text: string()
6449
- }), Po = _enum([
6459
+ }), Io = _enum([
6450
6460
  "works-now",
6451
6461
  "guided-setup",
6452
6462
  "coming-soon",
6453
6463
  "custom-workflow"
6454
- ]), Fo = object({
6464
+ ]), Lo = object({
6455
6465
  docsUrl: string(),
6456
6466
  verifiedAt: string(),
6457
6467
  version: string().optional(),
@@ -6463,11 +6473,11 @@ var No = object({
6463
6473
  "unversioned"
6464
6474
  ]),
6465
6475
  note: string().optional()
6466
- }), Io = object({
6476
+ }), Ro = object({
6467
6477
  key: string(),
6468
6478
  label: string(),
6469
6479
  rank: number()
6470
- }), Lo = object({
6480
+ }), zo = object({
6471
6481
  text: string(),
6472
6482
  tone: _enum([
6473
6483
  "info",
@@ -6475,7 +6485,7 @@ var No = object({
6475
6485
  "success",
6476
6486
  "danger"
6477
6487
  ])
6478
- }), Ro = object({
6488
+ }), Bo = object({
6479
6489
  serviceKey: string(),
6480
6490
  name: string(),
6481
6491
  description: string(),
@@ -6485,16 +6495,16 @@ var No = object({
6485
6495
  category: string(),
6486
6496
  categoryLabel: string(),
6487
6497
  categoryRank: number(),
6488
- secondaryCategories: array(Io),
6489
- badges: array(Lo),
6498
+ secondaryCategories: array(Ro),
6499
+ badges: array(zo),
6490
6500
  tags: array(string()),
6491
6501
  searchAliases: array(string()),
6492
6502
  jtbd: string(),
6493
6503
  useCase: string(),
6494
6504
  demoScenario: string(),
6495
- sampleConversation: array(No),
6496
- publicStatus: Po,
6497
- apiVerification: Fo.optional(),
6505
+ sampleConversation: array(Fo),
6506
+ publicStatus: Io,
6507
+ apiVerification: Lo.optional(),
6498
6508
  setupDifficulty: string(),
6499
6509
  risk: string(),
6500
6510
  price: string(),
@@ -6507,40 +6517,41 @@ var No = object({
6507
6517
  ]),
6508
6518
  setupSummary: string().optional(),
6509
6519
  pagePath: string()
6510
- }), zo = object({
6520
+ }), Vo = object({
6511
6521
  fullName: string().min(1).max(100).optional(),
6512
- linkedinUsername: q.nullable().optional(),
6522
+ linkedinUsername: K.nullable().optional(),
6513
6523
  avatarMediaId: string().nullable().optional(),
6514
6524
  primaryAgentId: string().nullable().optional(),
6515
6525
  lastActiveOrgId: string().nullable().optional()
6516
- }).strict(), Bo = /* @__PURE__ */ t({
6517
- ASSISTANT_SILENCE_CONTROLS: () => Si,
6518
- ActionAreaSchema: () => Fr,
6519
- ActionButtonSchema: () => L,
6520
- Agent: () => ci,
6526
+ }).strict(), Ho = /* @__PURE__ */ t({
6527
+ ASSISTANT_SILENCE_CONTROLS: () => Ti,
6528
+ ActionAreaSchema: () => Ir,
6529
+ ActionButtonSchema: () => I,
6530
+ Agent: () => di,
6521
6531
  AudioFormatSchema: () => Tr,
6522
6532
  AudioMediaSchema: () => Ar,
6523
6533
  AudioPropertiesSchema: () => Dr,
6524
6534
  AuthApiError: () => AuthApiError,
6525
- BOT_API_LLM_PATH: () => Ei,
6526
- BOT_API_PATH: () => Ti,
6527
- BOT_USER_AGENT: () => xi,
6528
- ButtonDesignSchema: () => Pr,
6529
- ButtonThemeSchema: () => Nr,
6530
- CHART_THEME: () => Rr,
6531
- CHAT_ISSUE_CODES: () => R,
6532
- CHAT_ISSUE_COPY: () => B,
6533
- CUSTOMER_AGENT_STATE_LABEL: () => Yr,
6535
+ BOT_API_LLM_PATH: () => ki,
6536
+ BOT_API_PATH: () => Oi,
6537
+ BOT_USER_AGENT: () => wi,
6538
+ ButtonDesignSchema: () => Fr,
6539
+ ButtonThemeSchema: () => Pr,
6540
+ CHART_THEME: () => ei,
6541
+ CHAT_ISSUE_CODES: () => L,
6542
+ CHAT_ISSUE_COPY: () => z,
6543
+ CUSTOMER_AGENT_STATE_COLOR: () => Jr,
6544
+ CUSTOMER_AGENT_STATE_LABEL: () => qr,
6534
6545
  CookieUtil: () => CookieUtil,
6535
6546
  DEFAULT_HEARTBEAT_TIMES: () => ar,
6536
6547
  DocumentMediaSchema: () => jr,
6537
- ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Br,
6538
- ENTRY_TIER_MONTHLY_PRICE_LABEL: () => Vr,
6539
- ERROR_CODES: () => Pi,
6540
- EnrichedAgentSchema: () => oi,
6548
+ ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Lr,
6549
+ ENTRY_TIER_MONTHLY_PRICE_LABEL: () => Rr,
6550
+ ERROR_CODES: () => Li,
6551
+ EnrichedAgentSchema: () => li,
6541
6552
  ImageFormatSchema: () => Cr,
6542
6553
  ImageMediaSchema: () => Or,
6543
- LIFECYCLE_COLOR: () => Jr,
6554
+ LIFECYCLE_COLOR: () => Gr,
6544
6555
  Logger: () => j,
6545
6556
  MEDIA_CONTEXTS: () => yr,
6546
6557
  MEDIA_TYPES: () => vr,
@@ -6549,30 +6560,30 @@ var No = object({
6549
6560
  MediaStatusSchema: () => xr,
6550
6561
  MediaTypeSchema: () => P,
6551
6562
  MediaUnionSchema: () => Mr,
6552
- NavItemSchema: () => Ir,
6553
- NavListSchema: () => Lr,
6563
+ NavItemSchema: () => Qr,
6564
+ NavListSchema: () => $r,
6554
6565
  PAGELINES_APP_CONFIG: () => i,
6555
- PERSONA_DEFAULTS: () => $r,
6566
+ PERSONA_DEFAULTS: () => ni,
6556
6567
  SettingsObject: () => SettingsObject,
6557
- SizeSchema: () => I,
6568
+ SizeSchema: () => Nr,
6558
6569
  SocialAccountSchema: () => gr,
6559
6570
  SocialAccountsSchema: () => _r,
6560
- UNKNOWN_STATUS: () => qr,
6561
- VOICE_CATALOG: () => W,
6571
+ UNKNOWN_STATUS: () => Wr,
6572
+ VOICE_CATALOG: () => U,
6562
6573
  VideoFormatSchema: () => wr,
6563
6574
  VideoMediaSchema: () => kr,
6564
6575
  VideoPropertiesSchema: () => Er,
6565
- agentSchema: () => ai,
6576
+ agentSchema: () => ci,
6566
6577
  apiError: () => apiError,
6567
6578
  apiOk: () => apiOk,
6568
- appleAuthSchema: () => gi,
6579
+ appleAuthSchema: () => yi,
6569
6580
  authErrorMessage: () => authErrorMessage,
6570
6581
  botApiLlmUrl: () => botApiLlmUrl,
6571
6582
  botApiUrl: () => botApiUrl,
6572
6583
  budgetMinutes: () => budgetMinutes,
6573
6584
  buildChatIssue: () => buildChatIssue,
6574
6585
  buildHeroState: () => buildHeroState,
6575
- changeEmailSchema: () => mi,
6586
+ changeEmailSchema: () => _i,
6576
6587
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6577
6588
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6578
6589
  chatEventTurnId: () => chatEventTurnId,
@@ -6586,8 +6597,8 @@ var No = object({
6586
6597
  customerAgentState: () => customerAgentState,
6587
6598
  debug: () => fr,
6588
6599
  derive: () => derive,
6589
- emailSchema: () => fi,
6590
- enrichedUserSchema: () => bi,
6600
+ emailSchema: () => hi,
6601
+ enrichedUserSchema: () => Ci,
6591
6602
  error: () => lr,
6592
6603
  errorCopy: () => errorCopy,
6593
6604
  errorFromApiResponse: () => errorFromApiResponse,
@@ -6597,22 +6608,22 @@ var No = object({
6597
6608
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6598
6609
  getDefaultGradientCss: () => getDefaultGradientCss,
6599
6610
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6600
- googleAuthSchema: () => hi,
6611
+ googleAuthSchema: () => vi,
6601
6612
  info: () => dr,
6602
6613
  isAgentReady: () => isAgentReady,
6603
6614
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6604
6615
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6605
6616
  isOperationActive: () => isOperationActive,
6606
6617
  isTransitioning: () => isTransitioning,
6607
- linkedinUsernameSchema: () => q,
6618
+ linkedinUsernameSchema: () => K,
6608
6619
  logger: () => M,
6609
6620
  mapAuthErrorCode: () => mapAuthErrorCode,
6610
6621
  nanoid: () => nanoid,
6611
- notificationWire: () => So,
6622
+ notificationWire: () => wo,
6612
6623
  objectId: () => objectId,
6613
- orgInfoSchema: () => yi,
6614
- orgSchema: () => J,
6615
- orgWithDefaultAgentSchema: () => _i,
6624
+ orgInfoSchema: () => Si,
6625
+ orgSchema: () => q,
6626
+ orgWithDefaultAgentSchema: () => bi,
6616
6627
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6617
6628
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6618
6629
  readChatEventStream: () => readChatEventStream,
@@ -6621,129 +6632,129 @@ var No = object({
6621
6632
  resolveVoice: () => resolveVoice,
6622
6633
  retryPolicyFor: () => retryPolicyFor,
6623
6634
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6624
- serverTransitionBudgets: () => wi,
6635
+ serverTransitionBudgets: () => Di,
6625
6636
  shortId: () => shortId,
6626
6637
  toAgentState: () => toAgentState,
6627
6638
  toChatStreamError: () => toChatStreamError,
6628
6639
  trace: () => pr,
6629
- updateUserSchema: () => di,
6630
- userSchema: () => ui,
6640
+ updateUserSchema: () => mi,
6641
+ userSchema: () => pi,
6631
6642
  uuid: () => uuid,
6632
- verifyCodeSchema: () => pi,
6643
+ verifyCodeSchema: () => gi,
6633
6644
  warn: () => ur,
6634
6645
  withChatEventTurnId: () => withChatEventTurnId,
6635
- zAcceptInvitationBody: () => vo,
6636
- zAccessibleAgentRow: () => xo,
6637
- zAgentCreateAllowance: () => wa,
6638
- zAgentCreateAllowanceReason: () => Ca,
6639
- zAgentGender: () => U,
6640
- zAgentRow: () => Mi,
6641
- zApiError: () => Li,
6646
+ zAcceptInvitationBody: () => bo,
6647
+ zAccessibleAgentRow: () => Co,
6648
+ zAgentCreateAllowance: () => Da,
6649
+ zAgentCreateAllowanceReason: () => Ea,
6650
+ zAgentGender: () => H,
6651
+ zAgentRow: () => Fi,
6652
+ zApiError: () => Bi,
6642
6653
  zApiOk: () => zApiOk,
6643
6654
  zApiResponse: () => zApiResponse,
6644
- zAppleAuthBody: () => ca,
6645
- zAuthSessionData: () => la,
6646
- zAuthSessionResponse: () => ua,
6647
- zAutomationPrimaryChannel: () => ki,
6648
- zBackfillBillingData: () => Da,
6649
- zBackfillCustomersData: () => Ea,
6650
- zBillingDetails: () => Sa,
6651
- zBillingInvoice: () => ba,
6652
- zBillingPaymentMethod: () => ya,
6653
- zBillingPlanKey: () => _a,
6654
- zBillingStatus: () => va,
6655
- zBillingTier: () => K,
6656
- zBotGenerateImageBody: () => oa,
6657
- zBotGenerateImageResponse: () => sa,
6658
- zCancelConversationTurnBody: () => Ya,
6659
- zCancelConversationTurnResponse: () => Xa,
6660
- zCantRebuildReason: () => bo,
6661
- zCantWakeReason: () => yo,
6662
- zChatAttachment: () => Wi,
6663
- zChatAttachmentInput: () => Qi,
6664
- zChatAttachmentPlacement: () => Ui,
6665
- zChatCardSpec: () => Ma,
6666
- zChatErrorData: () => ka,
6667
- zChatEvent: () => Aa,
6668
- zChatIssue: () => z,
6669
- zChatMessage: () => Zi,
6670
- zChatMessageAttentionItem: () => Ji,
6671
- zChatMessageAttentionRef: () => Gi,
6672
- zChatMessageAttentionUpdate: () => Yi,
6673
- zChatMessageMetadata: () => Xi,
6674
- zChatStatusData: () => Oa,
6675
- zChatToolActivityData: () => Bi,
6676
- zChatToolActivityVisual: () => zi,
6677
- zChatVisualSpec: () => Wa,
6678
- zCompleteCheckoutData: () => Ta,
6679
- zConversationLastMessage: () => Ka,
6680
- zConversationParticipant: () => Ga,
6681
- zConversationSummary: () => qa,
6682
- zConversationTarget: () => ea,
6683
- zConversationUpdatedEvent: () => Qa,
6684
- zCreateAgentBody: () => Ai,
6685
- zCreateConversationBody: () => ta,
6686
- zCreateConversationSessionBody: () => na,
6687
- zCreateOrgBody: () => Oo,
6655
+ zAppleAuthBody: () => da,
6656
+ zAuthSessionData: () => fa,
6657
+ zAuthSessionResponse: () => pa,
6658
+ zAutomationPrimaryChannel: () => Mi,
6659
+ zBackfillBillingData: () => Aa,
6660
+ zBackfillCustomersData: () => ka,
6661
+ zBillingDetails: () => Ta,
6662
+ zBillingInvoice: () => Ca,
6663
+ zBillingPaymentMethod: () => Sa,
6664
+ zBillingPlanKey: () => ba,
6665
+ zBillingStatus: () => xa,
6666
+ zBillingTier: () => G,
6667
+ zBotGenerateImageBody: () => la,
6668
+ zBotGenerateImageResponse: () => ua,
6669
+ zCancelConversationTurnBody: () => Qa,
6670
+ zCancelConversationTurnResponse: () => $a,
6671
+ zCantRebuildReason: () => So,
6672
+ zCantWakeReason: () => xo,
6673
+ zChatAttachment: () => qi,
6674
+ zChatAttachmentInput: () => ta,
6675
+ zChatAttachmentPlacement: () => Ki,
6676
+ zChatCardSpec: () => Fa,
6677
+ zChatErrorData: () => Ma,
6678
+ zChatEvent: () => Na,
6679
+ zChatIssue: () => R,
6680
+ zChatMessage: () => ea,
6681
+ zChatMessageAttentionItem: () => Zi,
6682
+ zChatMessageAttentionRef: () => Ji,
6683
+ zChatMessageAttentionUpdate: () => Qi,
6684
+ zChatMessageMetadata: () => $i,
6685
+ zChatStatusData: () => ja,
6686
+ zChatToolActivityData: () => Ui,
6687
+ zChatToolActivityVisual: () => Hi,
6688
+ zChatVisualSpec: () => qa,
6689
+ zCompleteCheckoutData: () => Oa,
6690
+ zConversationLastMessage: () => Ya,
6691
+ zConversationParticipant: () => Ja,
6692
+ zConversationSummary: () => Xa,
6693
+ zConversationTarget: () => ra,
6694
+ zConversationUpdatedEvent: () => to,
6695
+ zCreateAgentBody: () => Ni,
6696
+ zCreateConversationBody: () => ia,
6697
+ zCreateConversationSessionBody: () => aa,
6698
+ zCreateOrgBody: () => Ao,
6688
6699
  zDesiredStatus: () => V,
6689
- zErrorCode: () => Fi,
6700
+ zErrorCode: () => Ri,
6690
6701
  zErrorResponses: () => zErrorResponses,
6691
- zFleetAgent: () => ro,
6692
- zFleetSummary: () => io,
6693
- zFleetSyncResponse: () => ao,
6694
- zHandoffConsumeBody: () => ma,
6695
- zHandoffConsumeData: () => ha,
6696
- zHandoffConsumeResponse: () => ga,
6697
- zHandoffMintBody: () => da,
6698
- zHandoffMintData: () => fa,
6699
- zHandoffMintResponse: () => pa,
6702
+ zFleetAgent: () => oo,
6703
+ zFleetSummary: () => so,
6704
+ zFleetSyncResponse: () => co,
6705
+ zHandoffConsumeBody: () => _a,
6706
+ zHandoffConsumeData: () => va,
6707
+ zHandoffConsumeResponse: () => ya,
6708
+ zHandoffMintBody: () => ma,
6709
+ zHandoffMintData: () => ha,
6710
+ zHandoffMintResponse: () => ga,
6700
6711
  zHeartbeatLocalTime: () => T,
6701
6712
  zHeartbeatMoment: () => ir,
6702
- zHomeStats: () => Ao,
6703
- zIanaTimezone: () => X,
6704
- zImageAspectRatio: () => ia,
6705
- zImageResolution: () => aa,
6706
- zInvitationPreview: () => ho,
6707
- zInvitationRow: () => mo,
6708
- zInviteBody: () => go,
6709
- zLifecycle: () => H,
6710
- zLifecycleVerb: () => Qr,
6711
- zLiveStatus: () => Kr,
6712
- zMarkReadBody: () => Ja,
6713
- zMediaContext: () => so,
6714
- zMediaObject: () => lo,
6715
- zMediaType: () => co,
6716
- zMemberRow: () => po,
6717
- zMessageSearchResult: () => Za,
6718
- zOrgRow: () => Do,
6719
- zOrgSummary: () => Mo,
6713
+ zHomeStats: () => Mo,
6714
+ zIanaTimezone: () => Y,
6715
+ zImageAspectRatio: () => sa,
6716
+ zImageResolution: () => ca,
6717
+ zInvitationPreview: () => _o,
6718
+ zInvitationRow: () => go,
6719
+ zInviteBody: () => vo,
6720
+ zLifecycle: () => B,
6721
+ zLifecycleVerb: () => Zr,
6722
+ zLiveStatus: () => Ur,
6723
+ zMarkReadBody: () => Za,
6724
+ zMediaContext: () => uo,
6725
+ zMediaObject: () => $,
6726
+ zMediaType: () => fo,
6727
+ zMemberRow: () => ho,
6728
+ zMessageSearchResult: () => eo,
6729
+ zOrgRow: () => ko,
6730
+ zOrgSummary: () => Po,
6720
6731
  zPaginatedResponse: () => zPaginatedResponse,
6721
- zPlanTone: () => jo,
6722
- zProviderErrorKind: () => Ii,
6723
- zPublicServiceOverview: () => Ro,
6724
- zReportMessageBody: () => ra,
6725
- zRuntimeOperation: () => Gr,
6726
- zRuntimeOperationKind: () => Ur,
6727
- zRuntimeOperationStatus: () => Wr,
6728
- zSendMessageBody: () => $i,
6729
- zSuggestedPrompt: () => Ni,
6730
- zUpdateAgentBody: () => ji,
6731
- zUpdateOrgBody: () => ko,
6732
- zUpdateRoleBody: () => _o,
6733
- zUpdateUserBody: () => zo,
6734
- zUploadMediaBody: () => uo,
6735
- zVoiceKey: () => G,
6736
- zVoiceProviderName: () => ni,
6737
- zVoiceProviderSession: () => ti,
6738
- zVoiceSessionMint: () => ri,
6739
- zVoiceSessionMintBody: () => ei
6740
- }), Vo = "1.0.0";
6732
+ zPlanTone: () => No,
6733
+ zProviderErrorKind: () => zi,
6734
+ zPublicServiceOverview: () => Bo,
6735
+ zReportMessageBody: () => oa,
6736
+ zRuntimeOperation: () => Hr,
6737
+ zRuntimeOperationKind: () => Br,
6738
+ zRuntimeOperationStatus: () => Vr,
6739
+ zSendMessageBody: () => na,
6740
+ zSuggestedPrompt: () => Ii,
6741
+ zUpdateAgentBody: () => Pi,
6742
+ zUpdateOrgBody: () => jo,
6743
+ zUpdateRoleBody: () => yo,
6744
+ zUpdateUserBody: () => Vo,
6745
+ zUploadMediaBody: () => po,
6746
+ zVoiceKey: () => W,
6747
+ zVoiceProviderName: () => ai,
6748
+ zVoiceProviderSession: () => ii,
6749
+ zVoiceSessionMint: () => oi,
6750
+ zVoiceSessionMintBody: () => ri
6751
+ }), Uo = "1.0.0";
6741
6752
  function buildContract(e = {}) {
6742
6753
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6743
6754
  let r = contractNameFor(e);
6744
6755
  r && (n[r] = toSchema(t));
6745
6756
  };
6746
- for (let [e, t] of Object.entries(Bo)) {
6757
+ for (let [e, t] of Object.entries(Ho)) {
6747
6758
  if (t instanceof S) {
6748
6759
  addSchema(e, t);
6749
6760
  continue;
@@ -6751,7 +6762,7 @@ function buildContract(e = {}) {
6751
6762
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6752
6763
  }
6753
6764
  return {
6754
- version: Vo,
6765
+ version: Uo,
6755
6766
  generatedAt: t.toISOString(),
6756
6767
  schemas: n
6757
6768
  };
@@ -6771,6 +6782,6 @@ function sortedReplacer(e, t) {
6771
6782
  return t;
6772
6783
  }
6773
6784
  //#endregion
6774
- export { Vo as CONTRACT_VERSION, buildContract, serializeContract };
6785
+ export { Uo as CONTRACT_VERSION, buildContract, serializeContract };
6775
6786
 
6776
6787
  //# sourceMappingURL=contract.js.map