@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/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(), N = {
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
- }, gr = object({
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
- }), _r = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(gr)), vr = [
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(vr), yr = [
3955
+ ], P = _enum(yr), br = [
3945
3956
  "avatar",
3946
3957
  "cover",
3947
3958
  "general"
3948
- ], br = _enum(yr), xr = _enum([
3959
+ ], xr = _enum(br), Sr = _enum([
3949
3960
  "processing",
3950
3961
  "active",
3951
3962
  "failed",
3952
3963
  "deleted"
3953
- ]), Sr = _enum([
3964
+ ]), Cr = _enum([
3954
3965
  "low",
3955
3966
  "standard",
3956
3967
  "high"
3957
- ]), Cr = _enum([
3968
+ ]), wr = _enum([
3958
3969
  "jpg",
3959
3970
  "jpeg",
3960
3971
  "png",
3961
3972
  "gif",
3962
3973
  "webp",
3963
3974
  "svg"
3964
- ]), wr = _enum([
3975
+ ]), Tr = _enum([
3965
3976
  "mp4",
3966
3977
  "webm",
3967
3978
  "ogg",
3968
3979
  "mov",
3969
3980
  "avi"
3970
- ]), Tr = _enum([
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: br.default("general"),
3991
- status: xr.default("processing"),
3992
- quality: Sr.default("standard"),
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(), Er = object({
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
- }), Dr = object({
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("video"),
4021
- videoFormat: wr.optional(),
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: Tr.optional(),
4026
- audio: Dr.optional()
4027
- }), jr = F.extend({ mediaType: literal("document") }), Mr = discriminatedUnion("mediaType", [
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
- ]), Nr = _enum([
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
- ]), Pr = _enum([
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
- ]), Fr = _enum([
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: Nr.optional(),
4057
- theme: Pr.optional(),
4058
- design: Fr.optional(),
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
- }), Ir = object({
4088
+ }), Lr = object({
4078
4089
  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 = [
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: zr,
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 ${Rr} per active assistant, cancel anytime.`,
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 ${Rr} per active assistant.`
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
- ]), Br = _enum([
4270
+ ]), Vr = _enum([
4260
4271
  "wake",
4261
4272
  "sleep",
4262
4273
  "restart",
4263
4274
  "rebuild",
4264
4275
  "config_apply"
4265
- ]), Vr = _enum([
4276
+ ]), Hr = _enum([
4266
4277
  "running",
4267
4278
  "coalesced",
4268
4279
  "failed"
4269
- ]), Hr = object({
4270
- kind: Br,
4271
- status: Vr,
4280
+ ]), Ur = object({
4281
+ kind: Vr,
4282
+ status: Hr,
4272
4283
  startedAt: string().datetime(),
4273
4284
  detail: string().optional()
4274
- }).strict(), Ur = object({
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: Hr.optional()
4280
- }).strict(), Wr = Object.freeze({ lifecycle: "unknown" }), Gr = {
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
- }, Kr = _enum([
4300
+ }, qr = _enum([
4290
4301
  "awake",
4291
4302
  "asleep",
4292
4303
  "changing",
4293
4304
  "stuck"
4294
- ]), qr = {
4305
+ ]), Jr = {
4295
4306
  awake: "Awake",
4296
4307
  asleep: "Asleep",
4297
4308
  changing: "Changing",
4298
4309
  stuck: "Stuck"
4299
- }, Jr = {
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 Yr = {
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
- }, Xr = {
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 = 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}`;
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 Zr = _enum([
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 Qr = object({
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: Kr.optional(),
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
- }), $r = object({
4410
+ }), ei = object({
4400
4411
  title: string().optional(),
4401
4412
  description: string().optional(),
4402
- items: array(Qr).optional()
4403
- }), ei = {
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
- }, ti = [
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 ti[(e ? hashName(e) : 0) % ti.length];
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: "British",
4517
- character: "Steady, rich and low"
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)), ni = { gender: "man" };
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 ri = object({ conversationId: string().min(1) }).strict(), ii = object({
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
- }), ai = _enum(["elevenlabs", "livekit"]), oi = discriminatedUnion("provider", [object({
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()]), si = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
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
- ]), ci = object({
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: si.nullable().optional(),
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
- }), li = ci.extend({
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: Hr.optional()
4664
- }), ui = Object.keys(li.shape), di = class Agent extends SettingsObject {
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 ui) {
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 ui) {
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 di(e);
4712
+ return new fi(e);
4702
4713
  }
4703
4714
  function createAgents(e) {
4704
- return e.configs.map((t) => new di({
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"), fi = string().trim().toLowerCase().pipe(email()), pi = object({
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
- }), mi = object({
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(), hi = object({ email: fi }), gi = object({
4745
- email: fi,
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
- }), _i = object({ newEmail: fi }), vi = object({
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" }), yi = object({
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: _r.nullable().optional(),
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
- }), bi = q.extend({
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
- }), xi = object({
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
- }), Si = object({
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: xi.optional()
4821
- }), Ci = pi.extend({
4822
- orgs: array(Si).optional(),
4823
- agents: array(ci).optional()
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 wi = "pagelines-agent/1.0", Ti = [
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
- ], Ei = new Set(Ti);
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 && Ei.has(t);
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 && Ti.some((e) => e.startsWith(t));
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 Di = {
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 Oi = "/api/bot-api", ki = "/api/bot-api/v1";
4903
+ var ki = "/api/bot-api", Ai = "/api/bot-api/v1";
4893
4904
  function botApiLlmUrl(e) {
4894
- return `${e}${ki}`;
4905
+ return `${e}${Ai}`;
4895
4906
  }
4896
4907
  function botApiUrl(e) {
4897
- return `${e}${Oi}`;
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
- }, Ai = {
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 && Ai[e.providerErrorKind] ? Ai[e.providerErrorKind] : e.error || t;
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 ji = {
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 ji;
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 ji;
5003
- default: return ji;
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"), Mi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Ni = object({
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(), Pi = object({
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: Mi.optional(),
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(), Fi = li, Ii = object({
5064
+ }).strict(), Ii = ui, Li = object({
5054
5065
  id: string(),
5055
5066
  label: string(),
5056
5067
  prompt: string()
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([
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
- }), Bi = object({
5079
+ }), Vi = object({
5069
5080
  ok: literal(!1),
5070
5081
  error: string(),
5071
- code: Ri.optional(),
5082
+ code: zi.optional(),
5072
5083
  issue: R.optional(),
5073
- providerErrorKind: zi.optional()
5074
- }), zApiResponse = (e) => union([zApiOk(e), Bi]), Vi = {
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 ? Vi[Number(e)] ?? "Request failed." : t,
5082
- content: { "application/json": { schema: Bi } }
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 Hi = object({
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(), Ui = object({
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: Hi.optional()
5139
- }).strict(), Wi = Ui.extend({ status: _enum(["completed", "failed"]) }), Gi = P, Ki = object({
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
- }), qi = object({
5143
- type: Gi,
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: Ki.optional()
5154
- }), Ji = object({ ref: string().min(1).max(256) }).strict(), Yi = _enum([
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
- ]), Xi = datetime();
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 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({
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(qi).optional(),
5176
- toolActivities: array(Wi).optional(),
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(Zi).max(20).optional()
5209
- }).catchall(unknown()), ea = object({
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: $i.nullable().optional(),
5233
+ metadata: ea.nullable().optional(),
5223
5234
  status: string().nullable().optional(),
5224
5235
  createdAt: string(),
5225
5236
  updatedAt: string()
5226
- }), ta = object({
5227
- type: Gi,
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
- }), na = object({
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(ta).max(10).optional(),
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
- }), ra = object({
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 ia = object({
5283
+ var aa = object({
5273
5284
  orgId: string().min(1),
5274
- participants: array(ra).min(1).max(20)
5275
- }).strict().superRefine(addDuplicateConversationTargetIssues), aa = object({
5285
+ participants: array(ia).min(1).max(20)
5286
+ }).strict().superRefine(addDuplicateConversationTargetIssues), oa = object({
5276
5287
  orgId: string().min(1),
5277
- participants: array(ra).min(1).max(20)
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
- }), oa = object({
5295
+ }), sa = object({
5285
5296
  category: string().min(1).max(30).optional(),
5286
5297
  reason: string().max(2e3).optional()
5287
- }).strict(), sa = _enum([
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
- ]), ca = _enum([
5304
+ ]), la = _enum([
5294
5305
  "1K",
5295
5306
  "2K",
5296
5307
  "4K"
5297
- ]), la = object({
5308
+ ]), ua = object({
5298
5309
  prompt: string().trim().min(1).max(4e3),
5299
- aspectRatio: sa.default("1:1"),
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: ca.default("2K"),
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(), ua = object({
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: qi.extend({ type: literal("image") })
5320
- }), da = object({
5330
+ attachment: Ji.extend({ type: literal("image") })
5331
+ }), fa = object({
5321
5332
  identityToken: string().min(1),
5322
5333
  fullName: string().optional()
5323
- }), fa = object({
5334
+ }), pa = object({
5324
5335
  redirect: string(),
5325
5336
  redirectReason: string(),
5326
5337
  isNew: boolean(),
5327
5338
  deviceId: string()
5328
- }), pa = object({
5339
+ }), ma = object({
5329
5340
  ok: literal(!0),
5330
- data: fa,
5341
+ data: pa,
5331
5342
  token: string()
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({
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: ha
5335
- }), _a = object({ token: string().min(1) }), va = object({
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
- }), ya = object({
5350
+ }), ba = object({
5340
5351
  ok: literal(!0),
5341
- data: va,
5352
+ data: ya,
5342
5353
  token: string()
5343
- }), ba = _enum(["none", "active_assistant"]), xa = _enum([
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
- ]), Sa = object({
5361
+ ]), Ca = object({
5351
5362
  brand: string(),
5352
5363
  last4: string(),
5353
5364
  expMonth: number(),
5354
5365
  expYear: number()
5355
- }), Ca = object({
5366
+ }), wa = object({
5356
5367
  date: string(),
5357
5368
  amount: number(),
5358
5369
  status: string(),
5359
5370
  invoicePdf: string().optional()
5360
- }), wa = object({
5371
+ }), Ta = object({
5361
5372
  graceEndsAt: string().optional(),
5362
5373
  suspended: boolean(),
5363
5374
  url: string().optional()
5364
- }), Ta = object({
5365
- plan: ba,
5366
- status: xa,
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: Sa.optional(),
5380
- paymentRecovery: wa.optional(),
5381
- invoices: array(Ca),
5390
+ paymentMethod: Ca.optional(),
5391
+ paymentRecovery: Ta.optional(),
5392
+ invoices: array(wa),
5382
5393
  stripeError: string().optional()
5383
- }), Ea = _enum([
5394
+ }), Da = _enum([
5384
5395
  "demo_agent_exists",
5385
5396
  "demo_usage_exhausted",
5386
5397
  "subscription_required",
5387
5398
  "plan_limit"
5388
- ]), Da = object({
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: Ea.optional()
5394
- }), Oa = object({
5404
+ reason: Da.optional()
5405
+ }), ka = object({
5395
5406
  orgId: string(),
5396
5407
  agentName: string().optional(),
5397
5408
  runtime: string().optional()
5398
- }), ka = object({
5409
+ }), Aa = object({
5399
5410
  created: number(),
5400
5411
  skipped: number(),
5401
5412
  errors: array(string())
5402
- }), Aa = object({
5413
+ }), ja = object({
5403
5414
  updated: number(),
5404
5415
  errors: array(string())
5405
- }), ja = Ur, Ma = object({
5406
- code: Ri,
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 Na = discriminatedUnion("event", [
5434
+ var Pa = discriminatedUnion("event", [
5424
5435
  object({
5425
5436
  event: literal("status"),
5426
- data: ja
5437
+ data: Ma
5427
5438
  }),
5428
5439
  object({
5429
5440
  event: literal("message"),
5430
- data: object({ message: ea })
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: Ui
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: Ma
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 = Na.safeParse({
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 Pa = object({
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(), Fa = object({
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(Pa).min(1).max(3).optional()
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 = Fa.safeParse(t);
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 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([
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
- ])), za = _enum([
5678
+ ])), Ba = _enum([
5668
5679
  "compact",
5669
5680
  "currency",
5670
5681
  "duration",
5671
5682
  "integer",
5672
5683
  "percent",
5673
5684
  "raw"
5674
- ]), Ba = object({
5675
- title: Ia,
5676
- description: La.optional(),
5677
- footer: La.optional()
5678
- }).strip(), Va = object({
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: za.optional(),
5693
+ valueFormat: Ba.optional(),
5683
5694
  valuePrefix: string().trim().max(12).optional(),
5684
5695
  valueSuffix: string().trim().max(12).optional()
5685
- }).strip(), Ha = object({
5696
+ }).strip(), Ua = object({
5686
5697
  kind: literal("linear"),
5687
5698
  dataKey: X,
5688
5699
  label: Z.optional()
5689
- }).strip(), Ua = object({
5700
+ }).strip(), Wa = object({
5690
5701
  version: literal(1),
5691
- meta: Ba,
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 Wa = discriminatedUnion("chartType", [Ua.extend({
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(Va).min(1).max(6),
5743
- data: array(Ra).min(1).max(120),
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: Ha.optional()
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
- }), Ua.extend({
5795
+ }), Wa.extend({
5785
5796
  visualType: literal("chart"),
5786
5797
  chartType: literal("pie"),
5787
5798
  nameKey: X,
5788
5799
  valueKey: X,
5789
- series: array(Va).max(1).optional(),
5790
- data: array(Ra).min(1).max(16)
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
- })]), Ga = object({
5825
+ })]), Ka = object({
5815
5826
  id: X,
5816
5827
  label: Z,
5817
- detail: La.optional(),
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(), Ka = object({
5839
+ }).strip(), qa = object({
5829
5840
  from: X,
5830
5841
  to: X,
5831
5842
  label: Z.optional()
5832
- }).strip(), qa = union([Wa, Ua.extend({
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(Ga).min(1).max(24),
5847
- edges: array(Ka).max(48)
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 = qa.safeParse(t);
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 = qa.safeParse(e);
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 Ja = object({
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(), Ya = object({
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
- }), Xa = object({
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(Ja),
6076
- lastMessage: Ya.nullable(),
6086
+ participants: array(Ya),
6087
+ lastMessage: Xa.nullable(),
6077
6088
  unreadCount: number().int().nonnegative(),
6078
6089
  latestSequence: string().nullable()
6079
- }), Za = object({ sequence: string().min(1) }), Qa = object({ turnId: string().min(1).optional() }).strict(), $a = object({
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(), eo = object({
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(Ja)
6089
- }), to = object({
6099
+ participants: array(Ya)
6100
+ }), no = object({
6090
6101
  conversationId: string(),
6091
- lastMessage: Ya.nullable(),
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()), 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([
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()), ao = preprocess((e) => e === void 0 ? 0 : e, number()), oo = object({
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: no,
6108
- desiredStatus: ro,
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: io,
6126
+ lastMessageRole: ao,
6116
6127
  lastMessageChannel: Q,
6117
6128
  primaryChannel: Q,
6118
- totalMessages: ao,
6119
- totalSessions: ao,
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
- }), so = object({
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
- }), co = object({
6137
- agents: array(oo),
6138
- summary: so,
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 lo = {
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 = lo[n.code];
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 uo = br, fo = P, $ = object({
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: fo.optional(),
6243
- type: fo.optional(),
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: uo.nullable().optional(),
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
- }), po = object({
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: uo.optional().default("general"),
6270
+ context: fo.optional().default("general"),
6260
6271
  agentId: string().optional(),
6261
6272
  orgId: string().optional(),
6262
6273
  duration: number().optional()
6263
- }), mo = object({
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
- }), ho = object({
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: mo.optional()
6288
- }), go = object({
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
- }), _o = object({
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
- }), vo = object({
6328
+ }), yo = object({
6318
6329
  email: string().email(),
6319
6330
  role: _enum(["admin", "member"]).optional(),
6320
6331
  message: string().max(500).optional()
6321
- }).strict(), yo = object({ role: _enum(["admin", "member"]) }).strict(), bo = object({ token: string().min(1) }).strict(), xo = _enum([
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
- ]), So = _enum([
6337
+ ]), Co = _enum([
6327
6338
  "rebuilding",
6328
6339
  "provisioning",
6329
6340
  "billingOverdue"
6330
- ]), Co = object({
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: xo.optional(),
6361
+ cantWakeReason: So.optional(),
6351
6362
  canRebuild: boolean(),
6352
- cantRebuildReason: So.optional()
6353
- }), wo = /* @__PURE__ */ t({
6354
- zNotificationTelemetryAck: () => Oo,
6355
- zNotificationTelemetryEvent: () => Do,
6356
- zRegisterDeviceRequest: () => To,
6357
- zRegisterDeviceResponse: () => Eo
6358
- }), To = object({
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
- }), Eo = object({ deviceId: string().min(1).max(64) }), Do = object({
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
- }), Oo = object({ updated: boolean() }), ko = q.pick({
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
- }), Ao = object({
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(), jo = q.pick({
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(), Mo = object({
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
- }), No = _enum([
6433
+ }), Po = _enum([
6423
6434
  "success",
6424
6435
  "info",
6425
6436
  "warning"
6426
- ]), Po = object({
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: No,
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 Fo = object({
6467
+ var Io = object({
6457
6468
  sender: _enum(["user", "agent"]),
6458
6469
  text: string()
6459
- }), Io = _enum([
6470
+ }), Lo = _enum([
6460
6471
  "works-now",
6461
6472
  "guided-setup",
6462
6473
  "coming-soon",
6463
6474
  "custom-workflow"
6464
- ]), Lo = object({
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
- }), Ro = object({
6487
+ }), zo = object({
6477
6488
  key: string(),
6478
6489
  label: string(),
6479
6490
  rank: number()
6480
- }), zo = object({
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
- }), Bo = object({
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(Ro),
6499
- badges: array(zo),
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(Fo),
6506
- publicStatus: Io,
6507
- apiVerification: Lo.optional(),
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
- }), Vo = object({
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(), Ho = /* @__PURE__ */ t({
6527
- ASSISTANT_SILENCE_CONTROLS: () => Ti,
6528
- ActionAreaSchema: () => Ir,
6537
+ }).strict(), Uo = /* @__PURE__ */ t({
6538
+ ASSISTANT_SILENCE_CONTROLS: () => Ei,
6539
+ ActionAreaSchema: () => Lr,
6529
6540
  ActionButtonSchema: () => I,
6530
- Agent: () => di,
6531
- AudioFormatSchema: () => Tr,
6532
- AudioMediaSchema: () => Ar,
6533
- AudioPropertiesSchema: () => Dr,
6541
+ Agent: () => fi,
6542
+ AudioFormatSchema: () => Er,
6543
+ AudioMediaSchema: () => jr,
6544
+ AudioPropertiesSchema: () => Or,
6534
6545
  AuthApiError: () => AuthApiError,
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,
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: () => Jr,
6544
- CUSTOMER_AGENT_STATE_LABEL: () => qr,
6554
+ CUSTOMER_AGENT_STATE_COLOR: () => Yr,
6555
+ CUSTOMER_AGENT_STATE_LABEL: () => Jr,
6545
6556
  CookieUtil: () => CookieUtil,
6546
6557
  DEFAULT_HEARTBEAT_TIMES: () => ar,
6547
- DocumentMediaSchema: () => jr,
6548
- ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Lr,
6549
- ENTRY_TIER_MONTHLY_PRICE_LABEL: () => Rr,
6550
- ERROR_CODES: () => Li,
6551
- EnrichedAgentSchema: () => li,
6552
- ImageFormatSchema: () => Cr,
6553
- ImageMediaSchema: () => Or,
6554
- LIFECYCLE_COLOR: () => Gr,
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: () => yr,
6557
- MEDIA_TYPES: () => vr,
6558
- MediaContextSchema: () => br,
6567
+ MEDIA_CONTEXTS: () => br,
6568
+ MEDIA_TYPES: () => yr,
6569
+ MediaContextSchema: () => xr,
6559
6570
  MediaSchema: () => F,
6560
- MediaStatusSchema: () => xr,
6571
+ MediaStatusSchema: () => Sr,
6561
6572
  MediaTypeSchema: () => P,
6562
- MediaUnionSchema: () => Mr,
6563
- NavItemSchema: () => Qr,
6564
- NavListSchema: () => $r,
6573
+ MediaUnionSchema: () => Nr,
6574
+ NavItemSchema: () => $r,
6575
+ NavListSchema: () => ei,
6565
6576
  PAGELINES_APP_CONFIG: () => i,
6566
- PERSONA_DEFAULTS: () => ni,
6577
+ PERSONA_DEFAULTS: () => ri,
6567
6578
  SettingsObject: () => SettingsObject,
6568
- SizeSchema: () => Nr,
6569
- SocialAccountSchema: () => gr,
6570
- SocialAccountsSchema: () => _r,
6571
- UNKNOWN_STATUS: () => Wr,
6579
+ SizeSchema: () => Pr,
6580
+ SocialAccountSchema: () => _r,
6581
+ SocialAccountsSchema: () => vr,
6582
+ UNKNOWN_STATUS: () => Gr,
6572
6583
  VOICE_CATALOG: () => U,
6573
- VideoFormatSchema: () => wr,
6574
- VideoMediaSchema: () => kr,
6575
- VideoPropertiesSchema: () => Er,
6576
- agentSchema: () => ci,
6584
+ VideoFormatSchema: () => Tr,
6585
+ VideoMediaSchema: () => Ar,
6586
+ VideoPropertiesSchema: () => Dr,
6587
+ agentSchema: () => li,
6577
6588
  apiError: () => apiError,
6578
6589
  apiOk: () => apiOk,
6579
- appleAuthSchema: () => yi,
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: () => _i,
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: () => hi,
6601
- enrichedUserSchema: () => Ci,
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: () => vi,
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: () => wo,
6634
+ notificationWire: () => To,
6623
6635
  objectId: () => objectId,
6624
- orgInfoSchema: () => Si,
6636
+ orgInfoSchema: () => Ci,
6625
6637
  orgSchema: () => q,
6626
- orgWithDefaultAgentSchema: () => bi,
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: () => Di,
6647
+ serverTransitionBudgets: () => Oi,
6636
6648
  shortId: () => shortId,
6637
6649
  toAgentState: () => toAgentState,
6638
6650
  toChatStreamError: () => toChatStreamError,
6639
6651
  trace: () => pr,
6640
- updateUserSchema: () => mi,
6641
- userSchema: () => pi,
6652
+ updateUserSchema: () => hi,
6653
+ userSchema: () => mi,
6642
6654
  uuid: () => uuid,
6643
- verifyCodeSchema: () => gi,
6655
+ verifyCodeSchema: () => _i,
6644
6656
  warn: () => ur,
6645
6657
  withChatEventTurnId: () => withChatEventTurnId,
6646
- zAcceptInvitationBody: () => bo,
6647
- zAccessibleAgentRow: () => Co,
6648
- zAgentCreateAllowance: () => Da,
6649
- zAgentCreateAllowanceReason: () => Ea,
6658
+ zAcceptInvitationBody: () => xo,
6659
+ zAccessibleAgentRow: () => wo,
6660
+ zAgentCreateAllowance: () => Oa,
6661
+ zAgentCreateAllowanceReason: () => Da,
6650
6662
  zAgentGender: () => H,
6651
- zAgentRow: () => Fi,
6652
- zApiError: () => Bi,
6663
+ zAgentRow: () => Ii,
6664
+ zApiError: () => Vi,
6653
6665
  zApiOk: () => zApiOk,
6654
6666
  zApiResponse: () => zApiResponse,
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,
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: () => 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
+ 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: () => 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,
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: () => Ri,
6712
+ zErrorCode: () => zi,
6701
6713
  zErrorResponses: () => zErrorResponses,
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,
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: () => Mo,
6725
+ zHomeStats: () => No,
6714
6726
  zIanaTimezone: () => Y,
6715
- zImageAspectRatio: () => sa,
6716
- zImageResolution: () => ca,
6717
- zInvitationPreview: () => _o,
6718
- zInvitationRow: () => go,
6719
- zInviteBody: () => vo,
6727
+ zImageAspectRatio: () => ca,
6728
+ zImageResolution: () => la,
6729
+ zInvitationPreview: () => vo,
6730
+ zInvitationRow: () => _o,
6731
+ zInviteBody: () => yo,
6720
6732
  zLifecycle: () => B,
6721
- zLifecycleVerb: () => Zr,
6722
- zLiveStatus: () => Ur,
6723
- zMarkReadBody: () => Za,
6724
- zMediaContext: () => uo,
6733
+ zLifecycleVerb: () => Qr,
6734
+ zLiveStatus: () => Wr,
6735
+ zMarkReadBody: () => Qa,
6736
+ zMediaContext: () => fo,
6725
6737
  zMediaObject: () => $,
6726
- zMediaType: () => fo,
6727
- zMemberRow: () => ho,
6728
- zMessageSearchResult: () => eo,
6729
- zOrgRow: () => ko,
6730
- zOrgSummary: () => Po,
6738
+ zMediaType: () => po,
6739
+ zMemberRow: () => go,
6740
+ zMessageSearchResult: () => to,
6741
+ zOrgRow: () => Ao,
6742
+ zOrgSummary: () => Fo,
6731
6743
  zPaginatedResponse: () => zPaginatedResponse,
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,
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: () => ai,
6748
- zVoiceProviderSession: () => ii,
6749
- zVoiceSessionMint: () => oi,
6750
- zVoiceSessionMintBody: () => ri
6751
- }), Uo = "1.0.0";
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(Ho)) {
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: Uo,
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 { Uo as CONTRACT_VERSION, buildContract, serializeContract };
6797
+ export { Wo as CONTRACT_VERSION, buildContract, serializeContract };
6786
6798
 
6787
6799
  //# sourceMappingURL=contract.js.map