@pagelines/sdk 1.0.790 → 1.0.792

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
- ]), Nr = _enum([
4032
+ ]), I = _enum([
4033
4033
  "xxs",
4034
4034
  "xs",
4035
4035
  "sm",
4036
4036
  "md",
4037
4037
  "lg",
4038
4038
  "xl"
4039
- ]), Pr = _enum([
4039
+ ]), Nr = _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
- ]), Fr = _enum([
4047
+ ]), Pr = _enum([
4048
4048
  "ghost",
4049
4049
  "link",
4050
4050
  "outline",
4051
4051
  "solid"
4052
- ]), I = object({
4052
+ ]), L = object({
4053
4053
  key: string().optional(),
4054
4054
  label: string().optional(),
4055
4055
  href: string().optional(),
4056
- size: Nr.optional(),
4057
- theme: Pr.optional(),
4058
- design: Fr.optional(),
4056
+ size: I.optional(),
4057
+ theme: Nr.optional(),
4058
+ design: Pr.optional(),
4059
4059
  icon: union([string(), F]).optional(),
4060
4060
  iconAfter: union([string(), F]).optional(),
4061
4061
  rounding: _enum([
@@ -4074,12 +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()
4077
4082
  }), Ir = object({
4078
- buttons: array(I).optional(),
4079
- size: Nr.optional(),
4080
- theme: Pr.optional(),
4081
- design: Fr.optional()
4082
- }), Lr = object({
4083
4083
  key: string().optional(),
4084
4084
  id: string().optional(),
4085
4085
  label: string().optional(),
@@ -4106,14 +4106,14 @@ var AuthApiError = class extends Error {
4106
4106
  priority: number().optional(),
4107
4107
  testId: string().optional(),
4108
4108
  items: array(any()).optional(),
4109
- badges: array(I).optional(),
4110
- meta: array(I).optional(),
4109
+ badges: array(L).optional(),
4110
+ meta: array(L).optional(),
4111
4111
  menuItems: array(any()).optional()
4112
- }), Rr = object({
4112
+ }), Lr = object({
4113
4113
  title: string().optional(),
4114
4114
  description: string().optional(),
4115
- items: array(Lr).optional()
4116
- }), zr = {
4115
+ items: array(Ir).optional()
4116
+ }), Rr = {
4117
4117
  colors: {
4118
4118
  primary: "#3b82f6",
4119
4119
  secondary: "#93c5fd",
@@ -4132,7 +4132,7 @@ var AuthApiError = class extends Error {
4132
4132
  compact: 4,
4133
4133
  comfortable: 6
4134
4134
  }
4135
- }, Br = [
4135
+ }, zr = [
4136
4136
  ["#6366f1", "#8b5cf6"],
4137
4137
  ["#3b82f6", "#06b6d4"],
4138
4138
  ["#10b981", "#34d399"],
@@ -4148,7 +4148,7 @@ function hashName(e) {
4148
4148
  return Math.abs(t);
4149
4149
  }
4150
4150
  function getGradientPair(e) {
4151
- return Br[(e ? hashName(e) : 0) % Br.length];
4151
+ return zr[(e ? hashName(e) : 0) % zr.length];
4152
4152
  }
4153
4153
  function getDefaultAvatarUrl(e) {
4154
4154
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4178,12 +4178,13 @@ function getWorkspaceMarkUrl(e) {
4178
4178
  }
4179
4179
  //#endregion
4180
4180
  //#region ../core/dist/pricing.js
4181
- var Vr = 3900, L = `$${Vr / 100}/month`, Hr = _enum(["account", "error"]), Ur = [
4181
+ var Br = 3900, R = `$${Br / 100}/month`, Vr = _enum(["account", "error"]), Hr = [
4182
4182
  "billing_no_plan",
4183
4183
  "billing_seat_limit",
4184
4184
  "billing_past_due",
4185
4185
  "billing_runaway_cap",
4186
4186
  "billing_budget_reached",
4187
+ "billing_demo_spent",
4187
4188
  "agent_deleted",
4188
4189
  "agent_not_deployed",
4189
4190
  "agent_boot_failed",
@@ -4194,20 +4195,20 @@ var Vr = 3900, L = `$${Vr / 100}/month`, Hr = _enum(["account", "error"]), Ur =
4194
4195
  "empty_stream",
4195
4196
  "tool_protocol",
4196
4197
  "rate_limit"
4197
- ], R = object({
4198
- bucket: Hr,
4199
- code: _enum(Ur),
4198
+ ], z = object({
4199
+ bucket: Vr,
4200
+ code: _enum(Hr),
4200
4201
  title: string(),
4201
4202
  help: string().optional(),
4202
4203
  actionLabel: string(),
4203
4204
  actionUrl: string()
4204
- }), z = {
4205
+ }), B = {
4205
4206
  billing_no_plan: {
4206
4207
  bucket: "account",
4207
- title: "Trial needed",
4208
- help: `Start your free trial to turn live replies on. After the trial it's ${L} per active assistant, cancel anytime.`,
4209
- actionLabel: "Start free trial",
4210
- oneLine: `The workspace needs its free trial started before this assistant can reply; after the trial it costs ${L} per active assistant.`
4208
+ title: "Billing needed",
4209
+ help: `Add a payment method to turn live replies back on. Plans start at ${R} per active assistant, cancel anytime.`,
4210
+ actionLabel: "Open billing",
4211
+ oneLine: `The workspace needs a payment method before this assistant can reply; plans start at ${R} per active assistant.`
4211
4212
  },
4212
4213
  billing_seat_limit: {
4213
4214
  bucket: "account",
@@ -4237,6 +4238,13 @@ var Vr = 3900, L = `$${Vr / 100}/month`, Hr = _enum(["account", "error"]), Ur =
4237
4238
  actionLabel: "Review billing",
4238
4239
  oneLine: "The workspace needs more included credits; its owner can upgrade an assistant or wait for the next billing period."
4239
4240
  },
4241
+ billing_demo_spent: {
4242
+ bucket: "account",
4243
+ title: "Demo used up",
4244
+ help: "Your assistant has used the free demo. Starting a trial keeps it running around the clock, and is free for ten days.",
4245
+ actionLabel: "Start free trial",
4246
+ oneLine: "This workspace has used its free demo; starting a trial keeps the assistant running and is free for ten days."
4247
+ },
4240
4248
  agent_deleted: {
4241
4249
  bucket: "error",
4242
4250
  title: "Assistant deleted",
@@ -4309,10 +4317,10 @@ var Vr = 3900, L = `$${Vr / 100}/month`, Hr = _enum(["account", "error"]), Ur =
4309
4317
  }
4310
4318
  };
4311
4319
  function chatIssueCatalogLines() {
4312
- return Ur.map((e) => `- ${e}: ${z[e].oneLine}`).join("\n");
4320
+ return Hr.map((e) => `- ${e}: ${B[e].oneLine}`).join("\n");
4313
4321
  }
4314
4322
  function buildChatIssue(e) {
4315
- let t = z[e.code];
4323
+ let t = B[e.code];
4316
4324
  return {
4317
4325
  bucket: t.bucket,
4318
4326
  code: e.code,
@@ -4333,12 +4341,12 @@ function chatIssueToErrorData(e) {
4333
4341
  };
4334
4342
  }
4335
4343
  function renderIssueAsMarkdown(e) {
4336
- let t = z[e.code];
4344
+ let t = B[e.code];
4337
4345
  return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
4338
4346
  }
4339
4347
  //#endregion
4340
4348
  //#region ../core/dist/wire/agent-state.js
4341
- var B = _enum(["active", "stopped"]), V = _enum([
4349
+ var V = _enum(["active", "stopped"]), H = _enum([
4342
4350
  "unknown",
4343
4351
  "stopped",
4344
4352
  "starting",
@@ -4347,28 +4355,28 @@ var B = _enum(["active", "stopped"]), V = _enum([
4347
4355
  "unreachable",
4348
4356
  "stopping",
4349
4357
  "error"
4350
- ]), Wr = _enum([
4358
+ ]), Ur = _enum([
4351
4359
  "wake",
4352
4360
  "sleep",
4353
4361
  "restart",
4354
4362
  "rebuild",
4355
4363
  "config_apply"
4356
- ]), Gr = _enum([
4364
+ ]), Wr = _enum([
4357
4365
  "running",
4358
4366
  "coalesced",
4359
4367
  "failed"
4360
- ]), Kr = object({
4361
- kind: Wr,
4362
- status: Gr,
4368
+ ]), Gr = object({
4369
+ kind: Ur,
4370
+ status: Wr,
4363
4371
  startedAt: string().datetime(),
4364
4372
  detail: string().optional()
4365
- }).strict(), qr = object({
4366
- lifecycle: V,
4373
+ }).strict(), Kr = object({
4374
+ lifecycle: H,
4367
4375
  changedAt: string().datetime().optional(),
4368
4376
  detail: string().optional(),
4369
- blocker: R.optional(),
4370
- operation: Kr.optional()
4371
- }).strict(), Jr = Object.freeze({ lifecycle: "unknown" }), Yr = {
4377
+ blocker: z.optional(),
4378
+ operation: Gr.optional()
4379
+ }).strict(), qr = Object.freeze({ lifecycle: "unknown" }), Jr = {
4372
4380
  running: "green",
4373
4381
  starting: "amber",
4374
4382
  stopping: "amber",
@@ -4377,7 +4385,28 @@ var B = _enum(["active", "stopped"]), V = _enum([
4377
4385
  error: "red",
4378
4386
  stopped: "grey",
4379
4387
  unknown: "grey"
4380
- }, Xr = {
4388
+ }, Yr = {
4389
+ awake: "Awake",
4390
+ asleep: "Asleep",
4391
+ changing: "Changing",
4392
+ stuck: "Stuck"
4393
+ };
4394
+ function customerAgentState(e) {
4395
+ if (isOperationActive(e.operation)) return "changing";
4396
+ if (e.blocker?.bucket === "account" && e.lifecycle !== "running") return "asleep";
4397
+ if (e.operation?.status === "failed") return "stuck";
4398
+ switch (e.lifecycle) {
4399
+ case "running": return "awake";
4400
+ case "stopped": return "asleep";
4401
+ case "starting":
4402
+ case "stopping": return "changing";
4403
+ case "degraded":
4404
+ case "unreachable":
4405
+ case "error": return "stuck";
4406
+ case "unknown": return;
4407
+ }
4408
+ }
4409
+ var Xr = {
4381
4410
  running: "Online",
4382
4411
  starting: "Waking up",
4383
4412
  stopping: "Stopping",
@@ -4394,7 +4423,7 @@ var B = _enum(["active", "stopped"]), V = _enum([
4394
4423
  config_apply: "Applying config"
4395
4424
  };
4396
4425
  function toAgentState(e, t) {
4397
- let n = e.operation, r = Xr[e.lifecycle] ?? "Unknown", i = Yr[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 = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
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}`;
4398
4427
  return {
4399
4428
  ...e,
4400
4429
  color: s,
@@ -4426,7 +4455,7 @@ function isAgentReady(e) {
4426
4455
  }
4427
4456
  //#endregion
4428
4457
  //#region ../core/dist/wire/voice-session.js
4429
- var H = _enum(["woman", "man"]), U = [
4458
+ var U = _enum(["woman", "man"]), W = [
4430
4459
  {
4431
4460
  key: "lauren",
4432
4461
  gender: "woman",
@@ -4507,18 +4536,18 @@ var H = _enum(["woman", "man"]), U = [
4507
4536
  accent: "American",
4508
4537
  character: "Easygoing and plain-spoken"
4509
4538
  }
4510
- ], W = _enum(U.map((e) => e.key)), $r = { gender: "man" };
4539
+ ], G = _enum(W.map((e) => e.key)), $r = { gender: "man" };
4511
4540
  function resolveVoice(e) {
4512
- let t = U.find((t) => t.key === e.voiceKey);
4513
- return t?.gender === e.gender ? t : U.find((t) => t.gender === e.gender && "isDefault" in t);
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);
4514
4543
  }
4515
4544
  var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4516
4545
  conversationId: string().min(1),
4517
4546
  agentId: string().min(1),
4518
4547
  personaName: string().min(1),
4519
4548
  personaTitle: string().max(255).nullable().optional(),
4520
- gender: H,
4521
- voiceKey: W.nullable(),
4549
+ gender: U,
4550
+ voiceKey: G.nullable(),
4522
4551
  sessionScope: _enum([
4523
4552
  "private",
4524
4553
  "org",
@@ -4558,7 +4587,7 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4558
4587
  "website"
4559
4588
  ]),
4560
4589
  handle: string()
4561
- }))), G = _enum([
4590
+ }))), K = _enum([
4562
4591
  "essential",
4563
4592
  "professional",
4564
4593
  "business"
@@ -4580,14 +4609,14 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4580
4609
  website: string().url().nullable().optional(),
4581
4610
  accounts: ii.nullable().optional(),
4582
4611
  model: string().nullable().optional(),
4583
- gender: H.optional(),
4584
- voiceKey: W.nullable().optional(),
4585
- billingTier: G.optional(),
4612
+ gender: U.optional(),
4613
+ voiceKey: G.nullable().optional(),
4614
+ billingTier: K.optional(),
4586
4615
  lastActiveAt: string().nullable().optional(),
4587
4616
  lastMessageAt: string().nullable().optional(),
4588
4617
  runtime: string().default("hermes").optional(),
4589
4618
  timezone: string().optional(),
4590
- desiredStatus: B.nullable().optional(),
4619
+ desiredStatus: V.nullable().optional(),
4591
4620
  automationPrimaryChannel: string().optional(),
4592
4621
  heartbeatEnabled: boolean().optional(),
4593
4622
  heartbeatBriefingTime: T.nullable().optional(),
@@ -4617,11 +4646,11 @@ var ei = object({ conversationId: string().min(1) }).strict(), ti = object({
4617
4646
  updatedAt: string().optional()
4618
4647
  }), oi = ai.extend({
4619
4648
  isPrimary: boolean().optional(),
4620
- lifecycle: V.optional(),
4649
+ lifecycle: H.optional(),
4621
4650
  changedAt: string().datetime().optional(),
4622
4651
  detail: string().optional(),
4623
- blocker: R.optional(),
4624
- operation: Kr.optional()
4652
+ blocker: z.optional(),
4653
+ operation: Gr.optional()
4625
4654
  }), si = Object.keys(oi.shape), ci = class Agent extends SettingsObject {
4626
4655
  constructor(e) {
4627
4656
  let t = "config" in e ? {
@@ -4669,12 +4698,12 @@ function createAgents(e) {
4669
4698
  }
4670
4699
  //#endregion
4671
4700
  //#region ../core/dist/types/user.js
4672
- var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), ui = string().trim().toLowerCase().pipe(email()), di = object({
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({
4673
4702
  userId: string(),
4674
4703
  email: string().optional(),
4675
4704
  handle: string().optional(),
4676
4705
  fullName: string().optional(),
4677
- linkedinUsername: K.optional(),
4706
+ linkedinUsername: q.optional(),
4678
4707
  avatarId: string().optional(),
4679
4708
  avatar: F.optional(),
4680
4709
  isEmailVerified: boolean().optional(),
@@ -4691,9 +4720,9 @@ var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4691
4720
  createdAt: string().optional(),
4692
4721
  updatedAt: string().optional(),
4693
4722
  onboarded: boolean().optional()
4694
- }), fi = object({
4723
+ }), di = object({
4695
4724
  name: string().min(1).max(100).optional(),
4696
- linkedinUsername: K.nullable().optional(),
4725
+ linkedinUsername: q.nullable().optional(),
4697
4726
  avatar: object({
4698
4727
  src: string(),
4699
4728
  mediaId: string()
@@ -4702,20 +4731,20 @@ var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4702
4731
  primaryOrgId: string().optional(),
4703
4732
  lastActiveOrgId: string().optional(),
4704
4733
  onboarding: any().optional()
4705
- }).partial(), pi = object({ email: ui }), mi = object({
4706
- email: ui,
4734
+ }).partial(), fi = object({ email: li }), pi = object({
4735
+ email: li,
4707
4736
  code: string().min(6, "Verification code is required"),
4708
4737
  timezone: string().max(64).optional()
4709
- }), hi = object({ newEmail: ui }), gi = object({
4738
+ }), mi = object({ newEmail: li }), hi = object({
4710
4739
  credential: string().optional(),
4711
4740
  code: string().optional(),
4712
4741
  timezone: string().max(64).optional(),
4713
4742
  source: _enum(["web", "ios"]).optional()
4714
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), _i = object({
4743
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), gi = object({
4715
4744
  identityToken: string().min(1),
4716
4745
  fullName: string().optional(),
4717
4746
  timezone: string().max(64).optional()
4718
- }), q = object({
4747
+ }), J = object({
4719
4748
  orgId: string().optional(),
4720
4749
  handle: string().optional(),
4721
4750
  name: string().optional(),
@@ -4736,15 +4765,16 @@ var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4736
4765
  apiKey: string().nullable().optional(),
4737
4766
  syncedPlan: string().nullable().optional(),
4738
4767
  syncedBillingStatus: string().nullable().optional(),
4768
+ firstPaidAt: string().nullable().optional(),
4769
+ entitlementDeleteAt: string().nullable().optional(),
4739
4770
  billingLastSyncedAt: string().nullable().optional(),
4740
4771
  syncedPeriodStart: string().nullable().optional(),
4741
4772
  syncedPeriodEnd: string().nullable().optional(),
4742
- trialEligibility: li.optional(),
4743
4773
  onboarding: any().optional(),
4744
4774
  status: string().optional(),
4745
4775
  createdAt: string().optional(),
4746
4776
  updatedAt: string().optional()
4747
- }), vi = q.extend({
4777
+ }), _i = J.extend({
4748
4778
  defaultAgent: object({
4749
4779
  agentId: string(),
4750
4780
  handle: string(),
@@ -4752,14 +4782,14 @@ var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4752
4782
  orgId: string()
4753
4783
  }),
4754
4784
  onboardingCompleted: boolean().optional()
4755
- }), yi = object({
4785
+ }), vi = object({
4756
4786
  completedAt: string().datetime().optional(),
4757
4787
  setupBy: string().optional(),
4758
4788
  billingSetup: boolean().optional(),
4759
4789
  teamInvitesSetup: boolean().optional(),
4760
4790
  brandingSetup: boolean().optional(),
4761
4791
  domainsSetup: boolean().optional()
4762
- }), bi = object({
4792
+ }), yi = object({
4763
4793
  membershipId: string(),
4764
4794
  orgId: string(),
4765
4795
  name: string(),
@@ -4777,10 +4807,9 @@ var li = _enum(["noCard", "cardRequired"]), K = string().trim().min(3).max(100).
4777
4807
  memberCount: number().optional(),
4778
4808
  agentCount: number().optional(),
4779
4809
  joinedAt: string().datetime(),
4780
- trialEligibility: li.optional(),
4781
- onboarding: yi.optional()
4782
- }), xi = di.extend({
4783
- orgs: array(bi).optional(),
4810
+ onboarding: vi.optional()
4811
+ }), bi = ui.extend({
4812
+ orgs: array(yi).optional(),
4784
4813
  agents: array(ai).optional()
4785
4814
  });
4786
4815
  //#endregion
@@ -4804,7 +4833,7 @@ function derive(e) {
4804
4833
  }
4805
4834
  //#endregion
4806
4835
  //#region ../core/dist/bot-ua.js
4807
- var Si = "pagelines-agent/1.0", Ci = [
4836
+ var xi = "pagelines-agent/1.0", Si = [
4808
4837
  "[SILENT]",
4809
4838
  "SILENT",
4810
4839
  "NO_REPLY",
@@ -4818,21 +4847,21 @@ var Si = "pagelines-agent/1.0", Ci = [
4818
4847
  "[NO_OP]",
4819
4848
  "[NO OP]",
4820
4849
  "HEARTBEAT_OK"
4821
- ], wi = new Set(Ci);
4850
+ ], Ci = new Set(Si);
4822
4851
  function normalizeAssistantControl(e) {
4823
4852
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4824
4853
  }
4825
4854
  function isAssistantSilenceControl(e) {
4826
4855
  let t = normalizeAssistantControl(e);
4827
- return t.length <= 64 && wi.has(t);
4856
+ return t.length <= 64 && Ci.has(t);
4828
4857
  }
4829
4858
  function isAssistantSilenceControlPrefix(e) {
4830
4859
  let t = normalizeAssistantControl(e);
4831
- return t.length <= 64 && Ci.some((e) => e.startsWith(t));
4860
+ return t.length <= 64 && Si.some((e) => e.startsWith(t));
4832
4861
  }
4833
4862
  //#endregion
4834
4863
  //#region ../core/dist/timingBudgets.js
4835
- var Ti = {
4864
+ var wi = {
4836
4865
  wake: 300 * 1e3,
4837
4866
  bootGrace: 420 * 1e3,
4838
4867
  stop: 30 * 1e3
@@ -4850,16 +4879,16 @@ function formatBudgetDuration(e) {
4850
4879
  }
4851
4880
  //#endregion
4852
4881
  //#region ../core/dist/paths.js
4853
- var Ei = "/api/bot-api", Di = "/api/bot-api/v1";
4882
+ var Ti = "/api/bot-api", Ei = "/api/bot-api/v1";
4854
4883
  function botApiLlmUrl(e) {
4855
- return `${e}${Di}`;
4884
+ return `${e}${Ei}`;
4856
4885
  }
4857
4886
  function botApiUrl(e) {
4858
- return `${e}${Ei}`;
4887
+ return `${e}${Ti}`;
4859
4888
  }
4860
4889
  //#endregion
4861
4890
  //#region ../core/dist/errorCopy.js
4862
- var J = {
4891
+ var Y = {
4863
4892
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4864
4893
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4865
4894
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4890,7 +4919,7 @@ var J = {
4890
4919
  TIMEOUT: "The request took too long. Try again in a moment.",
4891
4920
  FORBIDDEN: "You don't have access to this.",
4892
4921
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4893
- }, Oi = {
4922
+ }, Di = {
4894
4923
  notFound: "Not found. Try refreshing.",
4895
4924
  busy: "Busy — try again in a moment.",
4896
4925
  rateLimited: "Too many requests. Wait a moment.",
@@ -4900,14 +4929,14 @@ var J = {
4900
4929
  fatal: "Something's broken and won't resolve on retry. Contact support."
4901
4930
  };
4902
4931
  function errorCopy(e, t) {
4903
- return e && e in J ? J[e] : t;
4932
+ return e && e in Y ? Y[e] : t;
4904
4933
  }
4905
4934
  function errorFromApiResponse(e, t) {
4906
- return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Oi[e.providerErrorKind] ? Oi[e.providerErrorKind] : e.error || t;
4935
+ return e.code && e.code in Y ? Y[e.code] : e.providerErrorKind && Di[e.providerErrorKind] ? Di[e.providerErrorKind] : e.error || t;
4907
4936
  }
4908
4937
  //#endregion
4909
4938
  //#region ../core/dist/retryPolicy.js
4910
- var ki = {
4939
+ var Oi = {
4911
4940
  shouldRetry: !1,
4912
4941
  maxAttempts: 1,
4913
4942
  strategy: "none",
@@ -4925,7 +4954,7 @@ function retryPolicyFor(e) {
4925
4954
  "FORBIDDEN",
4926
4955
  "AGENT_NOT_FOUND"
4927
4956
  ]);
4928
- if (e.code && t.has(e.code)) return ki;
4957
+ if (e.code && t.has(e.code)) return Oi;
4929
4958
  switch (e.providerErrorKind) {
4930
4959
  case "busy": return {
4931
4960
  shouldRetry: !0,
@@ -4960,33 +4989,33 @@ function retryPolicyFor(e) {
4960
4989
  };
4961
4990
  case "notFound":
4962
4991
  case "invalidConfig":
4963
- case "fatal": return ki;
4964
- default: return ki;
4992
+ case "fatal": return Oi;
4993
+ default: return Oi;
4965
4994
  }
4966
4995
  }
4967
4996
  //#endregion
4968
4997
  //#region ../core/dist/wire/timezone.js
4969
- var Y = string().min(1).max(64).refine((e) => {
4998
+ var X = string().min(1).max(64).refine((e) => {
4970
4999
  try {
4971
5000
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
4972
5001
  } catch {
4973
5002
  return !1;
4974
5003
  }
4975
- }, "Invalid IANA timezone"), Ai = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), ji = object({
5004
+ }, "Invalid IANA timezone"), ki = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Ai = object({
4976
5005
  orgId: string(),
4977
5006
  name: string().min(1).max(100),
4978
5007
  emoji: string().max(8).nullable().optional(),
4979
5008
  title: string().max(120).nullable().optional(),
4980
5009
  summary: string().max(500).nullable().optional(),
4981
5010
  handle: string().min(2).max(50).optional(),
4982
- timezone: Y.optional(),
5011
+ timezone: X.optional(),
4983
5012
  runtime: _enum(["hermes"]).optional(),
4984
5013
  visibility: _enum([
4985
5014
  "private",
4986
5015
  "org",
4987
5016
  "public"
4988
5017
  ]).optional()
4989
- }).strict(), Mi = object({
5018
+ }).strict(), ji = object({
4990
5019
  name: string().min(1).max(100).optional(),
4991
5020
  handle: string().min(2).max(50).optional(),
4992
5021
  emoji: string().max(8).nullable().optional(),
@@ -4996,26 +5025,26 @@ var Y = string().min(1).max(64).refine((e) => {
4996
5025
  website: string().url().nullable().optional(),
4997
5026
  avatarMediaId: string().nullable().optional(),
4998
5027
  coverMediaId: string().nullable().optional(),
4999
- timezone: Y.optional(),
5028
+ timezone: X.optional(),
5000
5029
  model: string().nullable().optional(),
5001
- gender: H.optional(),
5002
- voiceKey: W.nullable().optional(),
5003
- billingTier: G.optional(),
5030
+ gender: U.optional(),
5031
+ voiceKey: G.nullable().optional(),
5032
+ billingTier: K.optional(),
5004
5033
  visibility: _enum([
5005
5034
  "private",
5006
5035
  "org",
5007
5036
  "public"
5008
5037
  ]).optional(),
5009
- automationPrimaryChannel: Ai.optional(),
5038
+ automationPrimaryChannel: ki.optional(),
5010
5039
  heartbeatEnabled: boolean().optional(),
5011
5040
  heartbeatBriefingTime: T.nullable().optional(),
5012
5041
  heartbeatCheckinTime: T.nullable().optional(),
5013
5042
  heartbeatCloseoutTime: T.nullable().optional()
5014
- }).strict(), Ni = oi, Pi = object({
5043
+ }).strict(), Mi = oi, Ni = object({
5015
5044
  id: string(),
5016
5045
  label: string(),
5017
5046
  prompt: string()
5018
- }), Fi = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.AUTOMATION_PURPOSE_REQUIRED.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.VOICE_UNAVAILABLE.WAKE_FAILED".split("."), Ii = _enum(Fi), Li = _enum([
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([
5019
5048
  "notFound",
5020
5049
  "busy",
5021
5050
  "rateLimited",
@@ -5026,21 +5055,21 @@ var Y = string().min(1).max(64).refine((e) => {
5026
5055
  ]), zApiOk = (e) => object({
5027
5056
  ok: literal(!0),
5028
5057
  data: e
5029
- }), Ri = object({
5058
+ }), Li = object({
5030
5059
  ok: literal(!1),
5031
5060
  error: string(),
5032
- code: Ii.optional(),
5033
- issue: R.optional(),
5034
- providerErrorKind: Li.optional()
5035
- }), zApiResponse = (e) => union([zApiOk(e), Ri]), zi = {
5061
+ code: Fi.optional(),
5062
+ issue: z.optional(),
5063
+ providerErrorKind: Ii.optional()
5064
+ }), zApiResponse = (e) => union([zApiOk(e), Li]), Ri = {
5036
5065
  400: "Invalid body.",
5037
5066
  401: "Not authenticated.",
5038
5067
  500: "Server error."
5039
5068
  };
5040
5069
  function zErrorResponses(e) {
5041
5070
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
5042
- description: t === !0 ? zi[Number(e)] ?? "Request failed." : t,
5043
- content: { "application/json": { schema: Ri } }
5071
+ description: t === !0 ? Ri[Number(e)] ?? "Request failed." : t,
5072
+ content: { "application/json": { schema: Li } }
5044
5073
  }]));
5045
5074
  }
5046
5075
  function apiError(e, t, n) {
@@ -5063,7 +5092,7 @@ function apiOk(e) {
5063
5092
  }
5064
5093
  //#endregion
5065
5094
  //#region ../core/dist/wire/chat-tool-activity.js
5066
- var Bi = object({
5095
+ var zi = object({
5067
5096
  kind: _enum([
5068
5097
  "icon",
5069
5098
  "favicon",
@@ -5072,7 +5101,7 @@ var Bi = object({
5072
5101
  icon: string().min(1).optional(),
5073
5102
  domain: string().min(1).optional(),
5074
5103
  serviceKey: string().min(1).optional()
5075
- }).strict(), Vi = object({
5104
+ }).strict(), Bi = object({
5076
5105
  activityId: string().min(1),
5077
5106
  turnId: string().min(1),
5078
5107
  status: _enum([
@@ -5096,12 +5125,12 @@ var Bi = object({
5096
5125
  endedAt: string().datetime().optional(),
5097
5126
  durationMs: number().int().nonnegative().optional(),
5098
5127
  note: string().trim().min(1).optional(),
5099
- visual: Bi.optional()
5100
- }).strict(), Hi = Vi.extend({ status: _enum(["completed", "failed"]) }), Ui = P, Wi = object({
5128
+ visual: zi.optional()
5129
+ }).strict(), Vi = Bi.extend({ status: _enum(["completed", "failed"]) }), Hi = P, Ui = object({
5101
5130
  kind: literal("inline"),
5102
5131
  offset: number().int().nonnegative()
5103
- }), Gi = object({
5104
- type: Ui,
5132
+ }), Wi = object({
5133
+ type: Hi,
5105
5134
  src: url(),
5106
5135
  filename: string().min(1),
5107
5136
  mimeType: string().min(1),
@@ -5111,12 +5140,12 @@ var Bi = object({
5111
5140
  height: number().int().positive().optional(),
5112
5141
  duration: number().nonnegative().optional(),
5113
5142
  text: string().optional(),
5114
- placement: Wi.optional()
5115
- }), Ki = object({ ref: string().min(1).max(256) }).strict(), qi = _enum([
5143
+ placement: Ui.optional()
5144
+ }), Gi = object({ ref: string().min(1).max(256) }).strict(), Ki = _enum([
5116
5145
  "handled",
5117
5146
  "dismissed",
5118
5147
  "deferred"
5119
- ]), Ji = datetime();
5148
+ ]), qi = datetime();
5120
5149
  function validateAttentionRevisit(e, t) {
5121
5150
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
5122
5151
  code: "custom",
@@ -5124,17 +5153,17 @@ function validateAttentionRevisit(e, t) {
5124
5153
  message: "revisitAt requires deferred disposition"
5125
5154
  });
5126
5155
  }
5127
- var Yi = Ki.extend({
5128
- disposition: qi.optional(),
5129
- revisitAt: Ji.optional()
5130
- }).superRefine(validateAttentionRevisit), Xi = Ki.extend({
5131
- disposition: qi,
5132
- revisitAt: Ji.optional()
5133
- }).superRefine(validateAttentionRevisit), Zi = object({
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({
5134
5163
  turnId: string().min(1).optional(),
5135
5164
  turnOutcome: _enum(["failed", "stopped"]).optional(),
5136
- attachments: array(Gi).optional(),
5137
- toolActivities: array(Hi).optional(),
5165
+ attachments: array(Wi).optional(),
5166
+ toolActivities: array(Vi).optional(),
5138
5167
  issue: object({
5139
5168
  code: string(),
5140
5169
  bucket: _enum(["account", "error"]),
@@ -5162,8 +5191,8 @@ var Yi = Ki.extend({
5162
5191
  ])
5163
5192
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5164
5193
  ownerHandoff: literal(!0).optional(),
5165
- attention: array(Yi).max(20).optional()
5166
- }).catchall(unknown()), Qi = object({
5194
+ attention: array(Ji).max(20).optional()
5195
+ }).catchall(unknown()), Zi = object({
5167
5196
  messageId: string().min(1),
5168
5197
  conversationId: string().min(1),
5169
5198
  role: _enum([
@@ -5176,12 +5205,12 @@ var Yi = Ki.extend({
5176
5205
  content: string(),
5177
5206
  sequence: string().min(1),
5178
5207
  clientNonce: string().nullable().optional(),
5179
- metadata: Zi.nullable().optional(),
5208
+ metadata: Xi.nullable().optional(),
5180
5209
  status: string().nullable().optional(),
5181
5210
  createdAt: string(),
5182
5211
  updatedAt: string()
5183
- }), $i = object({
5184
- type: Ui,
5212
+ }), Qi = object({
5213
+ type: Hi,
5185
5214
  mediaId: string().min(1).optional(),
5186
5215
  url: url().optional(),
5187
5216
  name: string().min(1).optional(),
@@ -5197,21 +5226,21 @@ var Yi = Ki.extend({
5197
5226
  path: [n],
5198
5227
  message: `${n} is required when mediaId is absent`
5199
5228
  });
5200
- }), ea = object({
5229
+ }), $i = object({
5201
5230
  conversationId: string().min(1),
5202
5231
  content: string().max(1e4).default(""),
5203
5232
  clientNonce: string().max(64).optional(),
5204
- attachments: array($i).max(10).optional(),
5233
+ attachments: array(Qi).max(10).optional(),
5205
5234
  channel: _enum(["ios", "dashboard"]).optional(),
5206
5235
  actionUrls: object({
5207
5236
  billing: string().max(500),
5208
5237
  agent: string().max(500)
5209
5238
  }).optional(),
5210
- viewerTimezone: Y.optional()
5239
+ viewerTimezone: X.optional()
5211
5240
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5212
5241
  path: ["content"],
5213
5242
  message: "Message or attachment required"
5214
- }), ta = object({
5243
+ }), ea = object({
5215
5244
  type: _enum(["user", "agent"]),
5216
5245
  id: string().min(1)
5217
5246
  }).strict();
@@ -5226,44 +5255,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5226
5255
  }), n.add(e);
5227
5256
  }
5228
5257
  }
5229
- var na = object({
5258
+ var ta = object({
5230
5259
  orgId: string().min(1),
5231
- participants: array(ta).min(1).max(20)
5232
- }).strict().superRefine(addDuplicateConversationTargetIssues), ra = object({
5260
+ participants: array(ea).min(1).max(20)
5261
+ }).strict().superRefine(addDuplicateConversationTargetIssues), na = object({
5233
5262
  orgId: string().min(1),
5234
- participants: array(ta).min(1).max(20)
5263
+ participants: array(ea).min(1).max(20)
5235
5264
  }).strict().superRefine((e, t) => {
5236
5265
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5237
5266
  code: "custom",
5238
5267
  path: ["participants"],
5239
5268
  message: "New sessions require at least one agent participant."
5240
5269
  });
5241
- }), ia = object({
5270
+ }), ra = object({
5242
5271
  category: string().min(1).max(30).optional(),
5243
5272
  reason: string().max(2e3).optional()
5244
- }).strict(), aa = _enum([
5273
+ }).strict(), ia = _enum([
5245
5274
  "1:1",
5246
5275
  "4:3",
5247
5276
  "3:4",
5248
5277
  "16:9",
5249
5278
  "9:16"
5250
- ]), oa = _enum([
5279
+ ]), aa = _enum([
5251
5280
  "1K",
5252
5281
  "2K",
5253
5282
  "4K"
5254
- ]), sa = object({
5283
+ ]), oa = object({
5255
5284
  prompt: string().trim().min(1).max(4e3),
5256
- aspectRatio: aa.default("1:1"),
5285
+ aspectRatio: ia.default("1:1"),
5257
5286
  outputFormat: _enum([
5258
5287
  "png",
5259
5288
  "jpeg",
5260
5289
  "webp"
5261
5290
  ]).default("webp"),
5262
- resolution: oa.default("2K"),
5291
+ resolution: aa.default("2K"),
5263
5292
  style: string().trim().max(200).optional(),
5264
5293
  altText: string().trim().max(500).optional(),
5265
5294
  referenceMediaIds: array(string().min(1)).max(4).optional()
5266
- }).strict(), ca = object({
5295
+ }).strict(), sa = object({
5267
5296
  mediaId: string().min(1),
5268
5297
  src: url(),
5269
5298
  filename: string().min(1),
@@ -5273,54 +5302,54 @@ var na = object({
5273
5302
  provider: string().min(1).optional(),
5274
5303
  providerRequestId: string().min(1).optional(),
5275
5304
  media: string().startsWith("MEDIA:"),
5276
- attachment: Gi.extend({ type: literal("image") })
5277
- }), la = object({
5305
+ attachment: Wi.extend({ type: literal("image") })
5306
+ }), ca = object({
5278
5307
  identityToken: string().min(1),
5279
5308
  fullName: string().optional()
5280
- }), ua = object({
5309
+ }), la = object({
5281
5310
  redirect: string(),
5282
5311
  redirectReason: string(),
5283
5312
  isNew: boolean(),
5284
5313
  deviceId: string()
5285
- }), da = object({
5314
+ }), ua = object({
5286
5315
  ok: literal(!0),
5287
- data: ua,
5316
+ data: la,
5288
5317
  token: string()
5289
- }), fa = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), pa = object({ url: string() }), ma = object({
5318
+ }), 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({
5290
5319
  ok: literal(!0),
5291
- data: pa
5292
- }), ha = object({ token: string().min(1) }), ga = object({
5320
+ data: fa
5321
+ }), ma = object({ token: string().min(1) }), ha = object({
5293
5322
  redirect: string(),
5294
5323
  redirectReason: string(),
5295
5324
  deviceId: string()
5296
- }), _a = object({
5325
+ }), ga = object({
5297
5326
  ok: literal(!0),
5298
- data: ga,
5327
+ data: ha,
5299
5328
  token: string()
5300
- }), va = _enum(["none", "active_assistant"]), ya = _enum([
5329
+ }), _a = _enum(["none", "active_assistant"]), va = _enum([
5301
5330
  "none",
5302
5331
  "active",
5303
5332
  "trial",
5304
5333
  "canceling",
5305
5334
  "past_due",
5306
5335
  "paused"
5307
- ]), ba = object({
5336
+ ]), ya = object({
5308
5337
  brand: string(),
5309
5338
  last4: string(),
5310
5339
  expMonth: number(),
5311
5340
  expYear: number()
5312
- }), xa = object({
5341
+ }), ba = object({
5313
5342
  date: string(),
5314
5343
  amount: number(),
5315
5344
  status: string(),
5316
5345
  invoicePdf: string().optional()
5317
- }), Sa = object({
5346
+ }), xa = object({
5318
5347
  graceEndsAt: string().optional(),
5319
5348
  suspended: boolean(),
5320
5349
  url: string().optional()
5321
- }), Ca = object({
5322
- plan: va,
5323
- status: ya,
5350
+ }), Sa = object({
5351
+ plan: _a,
5352
+ status: va,
5324
5353
  price: number(),
5325
5354
  tierRates: record(string(), number()).optional(),
5326
5355
  maxAgents: number(),
@@ -5330,23 +5359,34 @@ var na = object({
5330
5359
  cancelAt: string().optional(),
5331
5360
  trialEnd: string().optional(),
5332
5361
  trialDaysRemaining: number().optional(),
5333
- paymentMethod: ba.optional(),
5334
- paymentRecovery: Sa.optional(),
5335
- invoices: array(xa),
5362
+ paymentMethod: ya.optional(),
5363
+ paymentRecovery: xa.optional(),
5364
+ invoices: array(ba),
5336
5365
  stripeError: string().optional()
5337
- }), wa = object({
5366
+ }), Ca = _enum([
5367
+ "demo_agent_exists",
5368
+ "demo_usage_exhausted",
5369
+ "subscription_required",
5370
+ "plan_limit"
5371
+ ]), wa = object({
5372
+ canCreate: boolean(),
5373
+ activeAgents: number().int().nonnegative(),
5374
+ agentLimit: number().int().nonnegative(),
5375
+ isDemo: boolean(),
5376
+ reason: Ca.optional()
5377
+ }), Ta = object({
5338
5378
  orgId: string(),
5339
5379
  agentName: string().optional(),
5340
5380
  runtime: string().optional()
5341
- }), Ta = object({
5381
+ }), Ea = object({
5342
5382
  created: number(),
5343
5383
  skipped: number(),
5344
5384
  errors: array(string())
5345
- }), Ea = object({
5385
+ }), Da = object({
5346
5386
  updated: number(),
5347
5387
  errors: array(string())
5348
- }), Da = qr, Oa = object({
5349
- code: Ii,
5388
+ }), Oa = Kr, ka = object({
5389
+ code: Fi,
5350
5390
  message: string(),
5351
5391
  bucket: _enum(["account", "error"]).optional(),
5352
5392
  actionLabel: string().optional(),
@@ -5363,14 +5403,14 @@ function toChatStreamError(e) {
5363
5403
  ...e.help ? { help: e.help } : {}
5364
5404
  };
5365
5405
  }
5366
- var ka = discriminatedUnion("event", [
5406
+ var Aa = discriminatedUnion("event", [
5367
5407
  object({
5368
5408
  event: literal("status"),
5369
- data: Da
5409
+ data: Oa
5370
5410
  }),
5371
5411
  object({
5372
5412
  event: literal("message"),
5373
- data: object({ message: Qi })
5413
+ data: object({ message: Zi })
5374
5414
  }),
5375
5415
  object({
5376
5416
  event: literal("message_delta"),
@@ -5390,7 +5430,7 @@ var ka = discriminatedUnion("event", [
5390
5430
  }),
5391
5431
  object({
5392
5432
  event: literal("tool_activity"),
5393
- data: Vi
5433
+ data: Bi
5394
5434
  }),
5395
5435
  object({
5396
5436
  event: literal("working_end"),
@@ -5402,7 +5442,7 @@ var ka = discriminatedUnion("event", [
5402
5442
  }),
5403
5443
  object({
5404
5444
  event: literal("error"),
5405
- data: Oa
5445
+ data: ka
5406
5446
  })
5407
5447
  ]);
5408
5448
  function chatEventUserTurnId(e) {
@@ -5554,7 +5594,7 @@ function parseChatEvent(e) {
5554
5594
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5555
5595
  if (!n || r === void 0) return null;
5556
5596
  try {
5557
- let e = ka.safeParse({
5597
+ let e = Aa.safeParse({
5558
5598
  event: n,
5559
5599
  data: JSON.parse(r)
5560
5600
  });
@@ -5565,7 +5605,7 @@ function parseChatEvent(e) {
5565
5605
  }
5566
5606
  //#endregion
5567
5607
  //#region ../core/dist/wire/chat-card.js
5568
- var Aa = object({
5608
+ var ja = object({
5569
5609
  label: string().trim().min(1).max(40),
5570
5610
  reply: string().trim().min(1).max(500),
5571
5611
  style: _enum([
@@ -5573,11 +5613,11 @@ var Aa = object({
5573
5613
  "default",
5574
5614
  "destructive"
5575
5615
  ]).optional()
5576
- }).strip(), ja = object({
5616
+ }).strip(), Ma = object({
5577
5617
  version: literal(1),
5578
5618
  title: string().trim().min(1).max(200),
5579
5619
  body: string().trim().min(1).max(8e3).optional(),
5580
- actions: array(Aa).min(1).max(3).optional()
5620
+ actions: array(ja).min(1).max(3).optional()
5581
5621
  }).strip();
5582
5622
  function parseChatCardFencePayload(e) {
5583
5623
  let t;
@@ -5590,7 +5630,7 @@ function parseChatCardFencePayload(e) {
5590
5630
  message: e instanceof Error ? e.message : "Invalid JSON"
5591
5631
  };
5592
5632
  }
5593
- let n = ja.safeParse(t);
5633
+ let n = Ma.safeParse(t);
5594
5634
  return n.success ? {
5595
5635
  ok: !0,
5596
5636
  spec: n.data
@@ -5602,36 +5642,36 @@ function parseChatCardFencePayload(e) {
5602
5642
  }
5603
5643
  //#endregion
5604
5644
  //#region ../core/dist/wire/chat-visual.js
5605
- var Ma = string().trim().min(1).max(240), Na = 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), Pa = record(X, union([
5645
+ 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([
5606
5646
  string().max(500),
5607
5647
  number().finite(),
5608
5648
  boolean(),
5609
5649
  _null()
5610
- ])), Fa = _enum([
5650
+ ])), Ia = _enum([
5611
5651
  "compact",
5612
5652
  "currency",
5613
5653
  "duration",
5614
5654
  "integer",
5615
5655
  "percent",
5616
5656
  "raw"
5617
- ]), Ia = object({
5618
- title: Ma,
5619
- description: Na.optional(),
5620
- footer: Na.optional()
5621
- }).strip(), La = object({
5622
- dataKey: X,
5623
- label: Z.optional(),
5624
- axisLabel: Z.optional(),
5625
- valueFormat: Fa.optional(),
5657
+ ]), La = object({
5658
+ title: Na,
5659
+ description: Pa.optional(),
5660
+ footer: Pa.optional()
5661
+ }).strip(), Ra = object({
5662
+ dataKey: Z,
5663
+ label: Q.optional(),
5664
+ axisLabel: Q.optional(),
5665
+ valueFormat: Ia.optional(),
5626
5666
  valuePrefix: string().trim().max(12).optional(),
5627
5667
  valueSuffix: string().trim().max(12).optional()
5628
- }).strip(), Ra = object({
5629
- kind: literal("linear"),
5630
- dataKey: X,
5631
- label: Z.optional()
5632
5668
  }).strip(), za = object({
5669
+ kind: literal("linear"),
5670
+ dataKey: Z,
5671
+ label: Q.optional()
5672
+ }).strip(), Ba = object({
5633
5673
  version: literal(1),
5634
- meta: Ia,
5674
+ meta: La,
5635
5675
  fallbackMarkdown: string().trim().min(1).max(4e3)
5636
5676
  }).strip();
5637
5677
  function dataKeys(e) {
@@ -5673,20 +5713,20 @@ function requireNumericDataKeys(e, t, n) {
5673
5713
  });
5674
5714
  }
5675
5715
  }
5676
- var Ba = discriminatedUnion("chartType", [za.extend({
5716
+ var Va = discriminatedUnion("chartType", [Ba.extend({
5677
5717
  visualType: literal("chart"),
5678
5718
  chartType: _enum([
5679
5719
  "bar",
5680
5720
  "line",
5681
5721
  "scatter"
5682
5722
  ]),
5683
- xKey: X,
5684
- xAxisLabel: Z.optional(),
5685
- series: array(La).min(1).max(6),
5686
- data: array(Pa).min(1).max(120),
5723
+ xKey: Z,
5724
+ xAxisLabel: Q.optional(),
5725
+ series: array(Ra).min(1).max(6),
5726
+ data: array(Fa).min(1).max(120),
5687
5727
  layout: _enum(["horizontal", "vertical"]).optional(),
5688
5728
  stacking: _enum(["grouped", "stacked"]).optional(),
5689
- trendLine: Ra.optional()
5729
+ trendLine: za.optional()
5690
5730
  }).strip().superRefine((e, t) => {
5691
5731
  e.stacking && e.chartType !== "bar" && t.addIssue({
5692
5732
  code: "custom",
@@ -5724,13 +5764,13 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5724
5764
  path: ["trendLine", "dataKey"],
5725
5765
  value: e.trendLine.dataKey
5726
5766
  }] : []], t);
5727
- }), za.extend({
5767
+ }), Ba.extend({
5728
5768
  visualType: literal("chart"),
5729
5769
  chartType: literal("pie"),
5730
- nameKey: X,
5731
- valueKey: X,
5732
- series: array(La).max(1).optional(),
5733
- data: array(Pa).min(1).max(16)
5770
+ nameKey: Z,
5771
+ valueKey: Z,
5772
+ series: array(Ra).max(1).optional(),
5773
+ data: array(Fa).min(1).max(16)
5734
5774
  }).strip().superRefine((e, t) => {
5735
5775
  requireDataKeys(e.data, [
5736
5776
  {
@@ -5754,10 +5794,10 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5754
5794
  value: e.valueKey,
5755
5795
  nonnegative: !0
5756
5796
  }], t);
5757
- })]), Va = object({
5758
- id: X,
5759
- label: Z,
5760
- detail: Na.optional(),
5797
+ })]), Ha = object({
5798
+ id: Z,
5799
+ label: Q,
5800
+ detail: Pa.optional(),
5761
5801
  kind: _enum([
5762
5802
  "actor",
5763
5803
  "agent",
@@ -5768,11 +5808,11 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5768
5808
  "system",
5769
5809
  "task"
5770
5810
  ]).optional()
5771
- }).strip(), Ha = object({
5772
- from: X,
5773
- to: X,
5774
- label: Z.optional()
5775
- }).strip(), Q = union([Ba, za.extend({
5811
+ }).strip(), Ua = object({
5812
+ from: Z,
5813
+ to: Z,
5814
+ label: Q.optional()
5815
+ }).strip(), Wa = union([Va, Ba.extend({
5776
5816
  visualType: literal("diagram"),
5777
5817
  diagramType: _enum([
5778
5818
  "flow",
@@ -5786,8 +5826,8 @@ var Ba = discriminatedUnion("chartType", [za.extend({
5786
5826
  "radial",
5787
5827
  "top-to-bottom"
5788
5828
  ]).default("auto"),
5789
- nodes: array(Va).min(1).max(24),
5790
- edges: array(Ha).max(48)
5829
+ nodes: array(Ha).min(1).max(24),
5830
+ edges: array(Ua).max(48)
5791
5831
  }).strip().superRefine((e, t) => {
5792
5832
  let n = new Set(e.nodes.map((e) => e.id));
5793
5833
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5946,11 +5986,11 @@ function parseChatVisualFencePayload(e) {
5946
5986
  fallbackMarkdown: r
5947
5987
  };
5948
5988
  }
5949
- let n = Q.safeParse(t);
5989
+ let n = Wa.safeParse(t);
5950
5990
  if (!n.success) {
5951
5991
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5952
5992
  if (e) {
5953
- let t = Q.safeParse(e);
5993
+ let t = Wa.safeParse(e);
5954
5994
  if (t.success) return {
5955
5995
  ok: !0,
5956
5996
  spec: t.data
@@ -5975,7 +6015,7 @@ function extractChatVisualFencePayloads(e) {
5975
6015
  }
5976
6016
  //#endregion
5977
6017
  //#region ../core/dist/wire/conversation.js
5978
- var Ua = object({
6018
+ var Ga = object({
5979
6019
  type: _enum([
5980
6020
  "user",
5981
6021
  "agent",
@@ -5995,7 +6035,7 @@ var Ua = object({
5995
6035
  displayName: string().optional(),
5996
6036
  handle: string().optional(),
5997
6037
  avatarUrl: string().optional()
5998
- }).strict(), Wa = object({
6038
+ }).strict(), Ka = object({
5999
6039
  messageId: string(),
6000
6040
  role: _enum([
6001
6041
  "user",
@@ -6005,7 +6045,7 @@ var Ua = object({
6005
6045
  content: string(),
6006
6046
  sequence: string(),
6007
6047
  createdAt: string()
6008
- }), Ga = object({
6048
+ }), qa = object({
6009
6049
  conversationId: string(),
6010
6050
  orgId: string(),
6011
6051
  kind: _enum(["direct", "group"]),
@@ -6015,30 +6055,30 @@ var Ua = object({
6015
6055
  "requester",
6016
6056
  "member"
6017
6057
  ]),
6018
- participants: array(Ua),
6019
- lastMessage: Wa.nullable(),
6058
+ participants: array(Ga),
6059
+ lastMessage: Ka.nullable(),
6020
6060
  unreadCount: number().int().nonnegative(),
6021
6061
  latestSequence: string().nullable()
6022
- }), Ka = object({ sequence: string().min(1) }), qa = object({ turnId: string().min(1).optional() }).strict(), Ja = object({
6062
+ }), Ja = object({ sequence: string().min(1) }), Ya = object({ turnId: string().min(1).optional() }).strict(), Xa = object({
6023
6063
  cancelled: boolean(),
6024
6064
  cancelledTurnIds: array(string())
6025
- }).strict(), Ya = object({
6065
+ }).strict(), Za = object({
6026
6066
  conversationId: string(),
6027
6067
  messageId: string(),
6028
6068
  sequence: string(),
6029
6069
  snippet: string(),
6030
6070
  createdAt: string(),
6031
- participants: array(Ua)
6032
- }), Xa = object({
6071
+ participants: array(Ga)
6072
+ }), Qa = object({
6033
6073
  conversationId: string(),
6034
- lastMessage: Wa.nullable(),
6074
+ lastMessage: Ka.nullable(),
6035
6075
  unreadCount: number().int().nonnegative(),
6036
6076
  latestSequence: string().nullable()
6037
- }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Za = preprocess((e) => e === void 0 ? null : e, V.nullable()), Qa = preprocess((e) => e === void 0 ? null : e, B.nullable()), $a = preprocess((e) => e === void 0 ? null : e, _enum([
6077
+ }), $ = 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([
6038
6078
  "user",
6039
6079
  "assistant",
6040
6080
  "system"
6041
- ]).nullable()), eo = preprocess((e) => e === void 0 ? 0 : e, number()), to = object({
6081
+ ]).nullable()), no = preprocess((e) => e === void 0 ? 0 : e, number()), ro = object({
6042
6082
  agentId: string(),
6043
6083
  handle: string(),
6044
6084
  name: string(),
@@ -6047,19 +6087,19 @@ var Ua = object({
6047
6087
  orgHandle: $,
6048
6088
  ownerEmail: $,
6049
6089
  ownerName: $,
6050
- state: Za,
6051
- desiredStatus: Qa,
6090
+ state: $a,
6091
+ desiredStatus: eo,
6052
6092
  runtime: string(),
6053
6093
  imageVersion: $,
6054
6094
  lastHealthyAt: $,
6055
6095
  lastActiveAt: $,
6056
6096
  lastUserMessageAt: $,
6057
6097
  lastMessageAt: $,
6058
- lastMessageRole: $a,
6098
+ lastMessageRole: to,
6059
6099
  lastMessageChannel: $,
6060
6100
  primaryChannel: $,
6061
- totalMessages: eo,
6062
- totalSessions: eo,
6101
+ totalMessages: no,
6102
+ totalSessions: no,
6063
6103
  error: $,
6064
6104
  appHandle: string(),
6065
6105
  flyAppExists: boolean(),
@@ -6068,7 +6108,7 @@ var Ua = object({
6068
6108
  billingActive: boolean(),
6069
6109
  createdAt: string(),
6070
6110
  updatedAt: string()
6071
- }), no = object({
6111
+ }), io = object({
6072
6112
  running: number(),
6073
6113
  stopped: number(),
6074
6114
  error: number(),
@@ -6076,28 +6116,119 @@ var Ua = object({
6076
6116
  stopping: number(),
6077
6117
  unknown: number(),
6078
6118
  total: number()
6079
- }), ro = object({
6080
- agents: array(to),
6081
- summary: no,
6119
+ }), ao = object({
6120
+ agents: array(ro),
6121
+ summary: io,
6082
6122
  orphanedApps: array(string()),
6083
6123
  dailyMessages30d: array(number().int()).optional(),
6084
6124
  flyAppCount: number().optional(),
6085
6125
  latestVersion: string().optional(),
6086
6126
  latestVersions: record(string(), string()).optional()
6087
- }), io = br, ao = P, oo = object({
6127
+ });
6128
+ //#endregion
6129
+ //#region ../core/dist/wire/hero-states.js
6130
+ function resolveHeroStateKey(e) {
6131
+ if (isTransitioning(e.lifecycle)) return null;
6132
+ if (e.blocker?.bucket === "account" && (e.lifecycle === "stopped" || e.lifecycle === "error")) return "blocked";
6133
+ switch (e.lifecycle) {
6134
+ case "running": return "awake";
6135
+ case "stopped": return "asleep";
6136
+ case "error": return "error";
6137
+ case "degraded": return "degraded";
6138
+ case "unreachable": return "unreachable";
6139
+ case "unknown": return "unknown";
6140
+ case "starting":
6141
+ case "stopping": return null;
6142
+ }
6143
+ }
6144
+ var oo = {
6145
+ billing_no_plan: { title: (e) => `${e} needs a plan to wake` },
6146
+ billing_seat_limit: {
6147
+ title: (e) => `No room to wake ${e}`,
6148
+ subtitle: "Turn another assistant off, or raise the limit."
6149
+ },
6150
+ billing_past_due: {
6151
+ title: (e) => `${e} can't wake — payment failed`,
6152
+ subtitle: "Update the card on file."
6153
+ }
6154
+ };
6155
+ function verb(e, t, n = {}) {
6156
+ return {
6157
+ key: e,
6158
+ label: t,
6159
+ theme: "primary",
6160
+ design: "solid",
6161
+ rounding: "full",
6162
+ ...n
6163
+ };
6164
+ }
6165
+ function buildHeroState(e) {
6166
+ let t = resolveHeroStateKey(e);
6167
+ if (!t) return null;
6168
+ switch (t) {
6169
+ case "blocked": {
6170
+ let n = e.blocker, r = oo[n.code];
6171
+ return {
6172
+ kind: t,
6173
+ title: r ? r.title(e.name) : n.title,
6174
+ subtitle: r ? r.subtitle : n.help,
6175
+ actions: [verb("open_billing", n.actionLabel, { href: n.actionUrl })]
6176
+ };
6177
+ }
6178
+ case "awake": return {
6179
+ kind: t,
6180
+ title: e.name,
6181
+ subtitle: "Awake",
6182
+ actions: []
6183
+ };
6184
+ case "asleep": return {
6185
+ kind: t,
6186
+ title: `${e.name} is asleep`,
6187
+ actions: [verb("wake", `Wake ${e.name}`)]
6188
+ };
6189
+ case "error": return {
6190
+ kind: t,
6191
+ title: `${e.name} couldn't start`,
6192
+ subtitle: "A retry usually clears this.",
6193
+ errorDetail: e.errorDetail ?? void 0,
6194
+ actions: [verb("retry_after_error", "Try again")]
6195
+ };
6196
+ case "degraded": return {
6197
+ kind: t,
6198
+ title: `${e.name} is responding slowly`,
6199
+ subtitle: "Recent heartbeats are late. The bot is up; the connection between us isn't healthy.",
6200
+ actions: [verb("retry", "Refresh")]
6201
+ };
6202
+ case "unreachable": return {
6203
+ kind: t,
6204
+ title: `${e.name} is online but we can't reach it`,
6205
+ subtitle: "No recent heartbeats. Rebuild to recreate the server and reconnect it.",
6206
+ actions: [verb("recover", "Rebuild")]
6207
+ };
6208
+ case "unknown": return {
6209
+ kind: t,
6210
+ title: `Can't reach ${e.name} right now`,
6211
+ subtitle: "We couldn't determine the assistant's state. Rebuild to recreate the server.",
6212
+ actions: [verb("recover", "Rebuild")]
6213
+ };
6214
+ }
6215
+ }
6216
+ //#endregion
6217
+ //#region ../core/dist/wire/media.js
6218
+ var so = br, co = P, lo = object({
6088
6219
  mediaId: string(),
6089
6220
  src: string(),
6090
6221
  alt: string().nullable().optional(),
6091
6222
  filename: string().optional(),
6092
6223
  displayName: string().nullable().optional(),
6093
6224
  mimeType: string().optional(),
6094
- mediaType: ao.optional(),
6095
- type: ao.optional(),
6225
+ mediaType: co.optional(),
6226
+ type: co.optional(),
6096
6227
  size: number().optional(),
6097
6228
  width: number().nullable().optional(),
6098
6229
  height: number().nullable().optional(),
6099
6230
  duration: number().nullable().optional(),
6100
- context: io.nullable().optional(),
6231
+ context: so.nullable().optional(),
6101
6232
  blurhash: string().nullable().optional(),
6102
6233
  quality: string().optional(),
6103
6234
  status: string().optional(),
@@ -6106,13 +6237,13 @@ var Ua = object({
6106
6237
  agentId: string().nullable().optional(),
6107
6238
  createdAt: string().optional(),
6108
6239
  updatedAt: string().optional()
6109
- }), so = object({
6240
+ }), uo = object({
6110
6241
  file: string().describe("Binary file. multipart/form-data field — the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),
6111
- context: io.optional().default("general"),
6242
+ context: so.optional().default("general"),
6112
6243
  agentId: string().optional(),
6113
6244
  orgId: string().optional(),
6114
6245
  duration: number().optional()
6115
- }), co = object({
6246
+ }), fo = object({
6116
6247
  mediaId: string().optional(),
6117
6248
  src: string().optional(),
6118
6249
  alt: string().optional(),
@@ -6121,7 +6252,7 @@ var Ua = object({
6121
6252
  mimeType: string().optional(),
6122
6253
  mediaType: string().optional(),
6123
6254
  blurhash: string().optional()
6124
- }), lo = object({
6255
+ }), po = object({
6125
6256
  membershipId: string(),
6126
6257
  userId: string(),
6127
6258
  orgId: string(),
@@ -6136,15 +6267,15 @@ var Ua = object({
6136
6267
  status: _enum(["active", "suspended"]),
6137
6268
  joinedAt: string(),
6138
6269
  lastSeenAt: string().optional(),
6139
- avatar: co.optional()
6140
- }), uo = object({
6270
+ avatar: fo.optional()
6271
+ }), mo = object({
6141
6272
  invitationId: string(),
6142
6273
  email: string(),
6143
6274
  role: _enum(["admin", "member"]),
6144
6275
  status: string(),
6145
6276
  expiresAt: string(),
6146
6277
  createdAt: string()
6147
- }), fo = object({
6278
+ }), ho = object({
6148
6279
  token: string(),
6149
6280
  email: string(),
6150
6281
  orgId: string(),
@@ -6166,20 +6297,20 @@ var Ua = object({
6166
6297
  ]),
6167
6298
  expiresAt: string(),
6168
6299
  memberCount: number().optional()
6169
- }), po = object({
6300
+ }), go = object({
6170
6301
  email: string().email(),
6171
6302
  role: _enum(["admin", "member"]).optional(),
6172
6303
  message: string().max(500).optional()
6173
- }).strict(), mo = object({ role: _enum(["admin", "member"]) }).strict(), ho = object({ token: string().min(1) }).strict(), go = _enum([
6304
+ }).strict(), _o = object({ role: _enum(["admin", "member"]) }).strict(), vo = object({ token: string().min(1) }).strict(), yo = _enum([
6174
6305
  "planLimit",
6175
6306
  "billingOverdue",
6176
6307
  "rebuilding",
6177
6308
  "agentNotFound"
6178
- ]), _o = _enum([
6309
+ ]), bo = _enum([
6179
6310
  "rebuilding",
6180
6311
  "provisioning",
6181
6312
  "billingOverdue"
6182
- ]), vo = object({
6313
+ ]), xo = object({
6183
6314
  agentId: string(),
6184
6315
  name: string(),
6185
6316
  avatar: F.optional(),
@@ -6193,27 +6324,27 @@ var Ua = object({
6193
6324
  lastMessageAt: string().datetime().nullable(),
6194
6325
  lastMessagePreview: string().nullable(),
6195
6326
  onboardedAt: string().datetime().nullable(),
6196
- desiredStatus: B.nullable(),
6197
- lifecycle: V,
6327
+ desiredStatus: V.nullable(),
6328
+ lifecycle: H,
6198
6329
  changedAt: string().datetime().optional(),
6199
6330
  detail: string().optional(),
6200
- blocker: R.optional(),
6331
+ blocker: z.optional(),
6201
6332
  canWake: boolean(),
6202
- cantWakeReason: go.optional(),
6333
+ cantWakeReason: yo.optional(),
6203
6334
  canRebuild: boolean(),
6204
- cantRebuildReason: _o.optional()
6205
- }), yo = /* @__PURE__ */ t({
6206
- zNotificationTelemetryAck: () => Co,
6207
- zNotificationTelemetryEvent: () => So,
6208
- zRegisterDeviceRequest: () => bo,
6209
- zRegisterDeviceResponse: () => xo
6210
- }), bo = object({
6335
+ cantRebuildReason: bo.optional()
6336
+ }), So = /* @__PURE__ */ t({
6337
+ zNotificationTelemetryAck: () => Eo,
6338
+ zNotificationTelemetryEvent: () => To,
6339
+ zRegisterDeviceRequest: () => Co,
6340
+ zRegisterDeviceResponse: () => wo
6341
+ }), Co = object({
6211
6342
  deviceId: string().min(1).max(64),
6212
6343
  pushToken: string().min(1).max(200),
6213
6344
  appVersion: string().max(40).optional(),
6214
6345
  osVersion: string().max(40).optional(),
6215
6346
  model: string().max(80).optional()
6216
- }), xo = object({ deviceId: string().min(1).max(64) }), So = object({
6347
+ }), wo = object({ deviceId: string().min(1).max(64) }), To = object({
6217
6348
  deviceId: string().min(1).max(64),
6218
6349
  kind: string().min(1).max(30),
6219
6350
  action: _enum([
@@ -6222,7 +6353,7 @@ var Ua = object({
6222
6353
  "dismissed"
6223
6354
  ]),
6224
6355
  messageId: string().max(32).optional()
6225
- }), Co = object({ updated: boolean() }), wo = q.pick({
6356
+ }), Eo = object({ updated: boolean() }), Do = J.pick({
6226
6357
  orgId: !0,
6227
6358
  handle: !0,
6228
6359
  name: !0,
@@ -6236,13 +6367,13 @@ var Ua = object({
6236
6367
  status: !0,
6237
6368
  updatedAt: !0
6238
6369
  }).extend({
6239
- avatar: oo.nullable().optional(),
6240
- cover: oo.nullable().optional()
6241
- }), To = object({
6370
+ avatar: lo.nullable().optional(),
6371
+ cover: lo.nullable().optional()
6372
+ }), Oo = object({
6242
6373
  name: string().min(1).max(255),
6243
6374
  handle: string().min(2).max(50).optional(),
6244
- timezone: Y.optional()
6245
- }).strict(), Eo = q.pick({
6375
+ timezone: X.optional()
6376
+ }).strict(), ko = J.pick({
6246
6377
  name: !0,
6247
6378
  email: !0,
6248
6379
  website: !0,
@@ -6251,43 +6382,31 @@ var Ua = object({
6251
6382
  }).extend({
6252
6383
  name: string().min(1).max(255).optional(),
6253
6384
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6254
- timezone: Y.optional(),
6385
+ timezone: X.optional(),
6255
6386
  avatarMediaId: string().nullable().optional(),
6256
6387
  coverMediaId: string().nullable().optional()
6257
- }).strict(), Do = object({
6388
+ }).strict(), Ao = object({
6258
6389
  messagesHandled: number().int().nonnegative(),
6259
6390
  proactiveRuns: number().int().nonnegative(),
6260
6391
  approvalsWaiting: number().int().nonnegative(),
6261
6392
  approvalConversationId: string().optional(),
6262
6393
  approvalAgentId: string().optional(),
6263
6394
  dailyHandled: array(number().int().nonnegative()).length(30),
6264
- dailyFromYou: array(number().int().nonnegative()).length(30),
6265
6395
  messagesByAssistant: array(object({
6266
6396
  agentId: string(),
6267
6397
  count: number().int().nonnegative()
6268
6398
  })),
6269
- servicesConnected: number().int().nonnegative(),
6270
- servicesConnectedThisWeek: number().int().nonnegative(),
6271
- toolCalls: number().int().nonnegative(),
6272
- toolCallsDaily: array(number().int().nonnegative()).length(30),
6273
- creditsUsed: number().nonnegative(),
6274
- tokensUsed: number().int().nonnegative(),
6275
- runsDaily: array(number().int().nonnegative()).length(30),
6276
- runsByKind: array(object({
6277
- kind: string(),
6278
- count: number().int().nonnegative()
6279
- })),
6280
- prevWeekMessagesHandled: number().int().nonnegative(),
6281
- prevWeekProactiveRuns: number().int().nonnegative(),
6282
- prevWeekToolCalls: number().int().nonnegative(),
6283
- prevWeekCreditsUsed: number().nonnegative(),
6284
- approvalsAnswered: number().int().nonnegative(),
6399
+ briefingsDelivered: number().int().nonnegative(),
6400
+ scheduledRuns: number().int().nonnegative(),
6401
+ prev30MessagesHandled: number().int().nonnegative(),
6402
+ prev30BriefingsDelivered: number().int().nonnegative(),
6403
+ prev30ScheduledRuns: number().int().nonnegative(),
6285
6404
  since: string()
6286
- }), Oo = _enum([
6405
+ }), jo = _enum([
6287
6406
  "success",
6288
6407
  "info",
6289
6408
  "warning"
6290
- ]), ko = object({
6409
+ ]), Mo = object({
6291
6410
  org: object({
6292
6411
  orgId: string(),
6293
6412
  name: string(),
@@ -6296,7 +6415,7 @@ var Ua = object({
6296
6415
  plan: object({
6297
6416
  key: string(),
6298
6417
  label: string(),
6299
- tone: Oo,
6418
+ tone: jo,
6300
6419
  status: string(),
6301
6420
  trialDaysRemaining: number().optional()
6302
6421
  }),
@@ -6317,15 +6436,15 @@ function zPaginatedResponse(e) {
6317
6436
  }
6318
6437
  //#endregion
6319
6438
  //#region ../core/dist/wire/public-services.js
6320
- var Ao = object({
6439
+ var No = object({
6321
6440
  sender: _enum(["user", "agent"]),
6322
6441
  text: string()
6323
- }), jo = _enum([
6442
+ }), Po = _enum([
6324
6443
  "works-now",
6325
6444
  "guided-setup",
6326
6445
  "coming-soon",
6327
6446
  "custom-workflow"
6328
- ]), Mo = object({
6447
+ ]), Fo = object({
6329
6448
  docsUrl: string(),
6330
6449
  verifiedAt: string(),
6331
6450
  version: string().optional(),
@@ -6337,11 +6456,11 @@ var Ao = object({
6337
6456
  "unversioned"
6338
6457
  ]),
6339
6458
  note: string().optional()
6340
- }), No = object({
6459
+ }), Io = object({
6341
6460
  key: string(),
6342
6461
  label: string(),
6343
6462
  rank: number()
6344
- }), Po = object({
6463
+ }), Lo = object({
6345
6464
  text: string(),
6346
6465
  tone: _enum([
6347
6466
  "info",
@@ -6349,7 +6468,7 @@ var Ao = object({
6349
6468
  "success",
6350
6469
  "danger"
6351
6470
  ])
6352
- }), Fo = object({
6471
+ }), Ro = object({
6353
6472
  serviceKey: string(),
6354
6473
  name: string(),
6355
6474
  description: string(),
@@ -6359,16 +6478,16 @@ var Ao = object({
6359
6478
  category: string(),
6360
6479
  categoryLabel: string(),
6361
6480
  categoryRank: number(),
6362
- secondaryCategories: array(No),
6363
- badges: array(Po),
6481
+ secondaryCategories: array(Io),
6482
+ badges: array(Lo),
6364
6483
  tags: array(string()),
6365
6484
  searchAliases: array(string()),
6366
6485
  jtbd: string(),
6367
6486
  useCase: string(),
6368
6487
  demoScenario: string(),
6369
- sampleConversation: array(Ao),
6370
- publicStatus: jo,
6371
- apiVerification: Mo.optional(),
6488
+ sampleConversation: array(No),
6489
+ publicStatus: Po,
6490
+ apiVerification: Fo.optional(),
6372
6491
  setupDifficulty: string(),
6373
6492
  risk: string(),
6374
6493
  price: string(),
@@ -6381,39 +6500,40 @@ var Ao = object({
6381
6500
  ]),
6382
6501
  setupSummary: string().optional(),
6383
6502
  pagePath: string()
6384
- }), Io = object({
6503
+ }), zo = object({
6385
6504
  fullName: string().min(1).max(100).optional(),
6386
- linkedinUsername: K.nullable().optional(),
6505
+ linkedinUsername: q.nullable().optional(),
6387
6506
  avatarMediaId: string().nullable().optional(),
6388
6507
  primaryAgentId: string().nullable().optional(),
6389
6508
  lastActiveOrgId: string().nullable().optional()
6390
- }).strict(), Lo = /* @__PURE__ */ t({
6391
- ASSISTANT_SILENCE_CONTROLS: () => Ci,
6392
- ActionAreaSchema: () => Ir,
6393
- ActionButtonSchema: () => I,
6509
+ }).strict(), Bo = /* @__PURE__ */ t({
6510
+ ASSISTANT_SILENCE_CONTROLS: () => Si,
6511
+ ActionAreaSchema: () => Fr,
6512
+ ActionButtonSchema: () => L,
6394
6513
  Agent: () => ci,
6395
6514
  AudioFormatSchema: () => Tr,
6396
6515
  AudioMediaSchema: () => Ar,
6397
6516
  AudioPropertiesSchema: () => Dr,
6398
6517
  AuthApiError: () => AuthApiError,
6399
- BOT_API_LLM_PATH: () => Di,
6400
- BOT_API_PATH: () => Ei,
6401
- BOT_USER_AGENT: () => Si,
6402
- ButtonDesignSchema: () => Fr,
6403
- ButtonThemeSchema: () => Pr,
6404
- CHART_THEME: () => zr,
6405
- CHAT_ISSUE_CODES: () => Ur,
6406
- CHAT_ISSUE_COPY: () => z,
6518
+ BOT_API_LLM_PATH: () => Ei,
6519
+ BOT_API_PATH: () => Ti,
6520
+ BOT_USER_AGENT: () => xi,
6521
+ ButtonDesignSchema: () => Pr,
6522
+ ButtonThemeSchema: () => Nr,
6523
+ CHART_THEME: () => Rr,
6524
+ CHAT_ISSUE_CODES: () => Hr,
6525
+ CHAT_ISSUE_COPY: () => B,
6526
+ CUSTOMER_AGENT_STATE_LABEL: () => Yr,
6407
6527
  CookieUtil: () => CookieUtil,
6408
6528
  DEFAULT_HEARTBEAT_TIMES: () => ar,
6409
6529
  DocumentMediaSchema: () => jr,
6410
- ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Vr,
6411
- ENTRY_TIER_MONTHLY_PRICE_LABEL: () => L,
6412
- ERROR_CODES: () => Fi,
6530
+ ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Br,
6531
+ ENTRY_TIER_MONTHLY_PRICE_LABEL: () => R,
6532
+ ERROR_CODES: () => Pi,
6413
6533
  EnrichedAgentSchema: () => oi,
6414
6534
  ImageFormatSchema: () => Cr,
6415
6535
  ImageMediaSchema: () => Or,
6416
- LIFECYCLE_COLOR: () => Yr,
6536
+ LIFECYCLE_COLOR: () => Jr,
6417
6537
  Logger: () => j,
6418
6538
  MEDIA_CONTEXTS: () => yr,
6419
6539
  MEDIA_TYPES: () => vr,
@@ -6422,29 +6542,30 @@ var Ao = object({
6422
6542
  MediaStatusSchema: () => xr,
6423
6543
  MediaTypeSchema: () => P,
6424
6544
  MediaUnionSchema: () => Mr,
6425
- NavItemSchema: () => Lr,
6426
- NavListSchema: () => Rr,
6545
+ NavItemSchema: () => Ir,
6546
+ NavListSchema: () => Lr,
6427
6547
  PAGELINES_APP_CONFIG: () => i,
6428
6548
  PERSONA_DEFAULTS: () => $r,
6429
6549
  SettingsObject: () => SettingsObject,
6430
- SizeSchema: () => Nr,
6550
+ SizeSchema: () => I,
6431
6551
  SocialAccountSchema: () => gr,
6432
6552
  SocialAccountsSchema: () => _r,
6433
- UNKNOWN_STATUS: () => Jr,
6434
- VOICE_CATALOG: () => U,
6553
+ UNKNOWN_STATUS: () => qr,
6554
+ VOICE_CATALOG: () => W,
6435
6555
  VideoFormatSchema: () => wr,
6436
6556
  VideoMediaSchema: () => kr,
6437
6557
  VideoPropertiesSchema: () => Er,
6438
6558
  agentSchema: () => ai,
6439
6559
  apiError: () => apiError,
6440
6560
  apiOk: () => apiOk,
6441
- appleAuthSchema: () => _i,
6561
+ appleAuthSchema: () => gi,
6442
6562
  authErrorMessage: () => authErrorMessage,
6443
6563
  botApiLlmUrl: () => botApiLlmUrl,
6444
6564
  botApiUrl: () => botApiUrl,
6445
6565
  budgetMinutes: () => budgetMinutes,
6446
6566
  buildChatIssue: () => buildChatIssue,
6447
- changeEmailSchema: () => hi,
6567
+ buildHeroState: () => buildHeroState,
6568
+ changeEmailSchema: () => mi,
6448
6569
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6449
6570
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6450
6571
  chatEventTurnId: () => chatEventTurnId,
@@ -6455,10 +6576,11 @@ var Ao = object({
6455
6576
  createAgent: () => createAgent,
6456
6577
  createAgents: () => createAgents,
6457
6578
  createLogger: () => createLogger,
6579
+ customerAgentState: () => customerAgentState,
6458
6580
  debug: () => fr,
6459
6581
  derive: () => derive,
6460
- emailSchema: () => pi,
6461
- enrichedUserSchema: () => xi,
6582
+ emailSchema: () => fi,
6583
+ enrichedUserSchema: () => bi,
6462
6584
  error: () => lr,
6463
6585
  errorCopy: () => errorCopy,
6464
6586
  errorFromApiResponse: () => errorFromApiResponse,
@@ -6468,151 +6590,153 @@ var Ao = object({
6468
6590
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6469
6591
  getDefaultGradientCss: () => getDefaultGradientCss,
6470
6592
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6471
- googleAuthSchema: () => gi,
6593
+ googleAuthSchema: () => hi,
6472
6594
  info: () => dr,
6473
6595
  isAgentReady: () => isAgentReady,
6474
6596
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6475
6597
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6476
6598
  isOperationActive: () => isOperationActive,
6477
6599
  isTransitioning: () => isTransitioning,
6478
- linkedinUsernameSchema: () => K,
6600
+ linkedinUsernameSchema: () => q,
6479
6601
  logger: () => M,
6480
6602
  mapAuthErrorCode: () => mapAuthErrorCode,
6481
6603
  nanoid: () => nanoid,
6482
- notificationWire: () => yo,
6604
+ notificationWire: () => So,
6483
6605
  objectId: () => objectId,
6484
- orgInfoSchema: () => bi,
6485
- orgSchema: () => q,
6486
- orgWithDefaultAgentSchema: () => vi,
6606
+ orgInfoSchema: () => yi,
6607
+ orgSchema: () => J,
6608
+ orgWithDefaultAgentSchema: () => _i,
6487
6609
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6488
6610
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6489
6611
  readChatEventStream: () => readChatEventStream,
6490
6612
  renderIssueAsMarkdown: () => renderIssueAsMarkdown,
6613
+ resolveHeroStateKey: () => resolveHeroStateKey,
6491
6614
  resolveVoice: () => resolveVoice,
6492
6615
  retryPolicyFor: () => retryPolicyFor,
6493
6616
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6494
- serverTransitionBudgets: () => Ti,
6617
+ serverTransitionBudgets: () => wi,
6495
6618
  shortId: () => shortId,
6496
6619
  toAgentState: () => toAgentState,
6497
6620
  toChatStreamError: () => toChatStreamError,
6498
6621
  trace: () => pr,
6499
- trialEligibilitySchema: () => li,
6500
- updateUserSchema: () => fi,
6501
- userSchema: () => di,
6622
+ updateUserSchema: () => di,
6623
+ userSchema: () => ui,
6502
6624
  uuid: () => uuid,
6503
- verifyCodeSchema: () => mi,
6625
+ verifyCodeSchema: () => pi,
6504
6626
  warn: () => ur,
6505
6627
  withChatEventTurnId: () => withChatEventTurnId,
6506
- zAcceptInvitationBody: () => ho,
6507
- zAccessibleAgentRow: () => vo,
6508
- zAgentGender: () => H,
6509
- zAgentRow: () => Ni,
6510
- zApiError: () => Ri,
6628
+ zAcceptInvitationBody: () => vo,
6629
+ zAccessibleAgentRow: () => xo,
6630
+ zAgentCreateAllowance: () => wa,
6631
+ zAgentCreateAllowanceReason: () => Ca,
6632
+ zAgentGender: () => U,
6633
+ zAgentRow: () => Mi,
6634
+ zApiError: () => Li,
6511
6635
  zApiOk: () => zApiOk,
6512
6636
  zApiResponse: () => zApiResponse,
6513
- zAppleAuthBody: () => la,
6514
- zAuthSessionData: () => ua,
6515
- zAuthSessionResponse: () => da,
6516
- zAutomationPrimaryChannel: () => Ai,
6517
- zBackfillBillingData: () => Ea,
6518
- zBackfillCustomersData: () => Ta,
6519
- zBillingDetails: () => Ca,
6520
- zBillingInvoice: () => xa,
6521
- zBillingPaymentMethod: () => ba,
6522
- zBillingPlanKey: () => va,
6523
- zBillingStatus: () => ya,
6524
- zBillingTier: () => G,
6525
- zBotGenerateImageBody: () => sa,
6526
- zBotGenerateImageResponse: () => ca,
6527
- zCancelConversationTurnBody: () => qa,
6528
- zCancelConversationTurnResponse: () => Ja,
6529
- zCantRebuildReason: () => _o,
6530
- zCantWakeReason: () => go,
6531
- zChatAttachment: () => Gi,
6532
- zChatAttachmentInput: () => $i,
6533
- zChatAttachmentPlacement: () => Wi,
6534
- zChatCardSpec: () => ja,
6535
- zChatErrorData: () => Oa,
6536
- zChatEvent: () => ka,
6537
- zChatIssue: () => R,
6538
- zChatMessage: () => Qi,
6539
- zChatMessageAttentionItem: () => Yi,
6540
- zChatMessageAttentionRef: () => Ki,
6541
- zChatMessageAttentionUpdate: () => Xi,
6542
- zChatMessageMetadata: () => Zi,
6543
- zChatStatusData: () => Da,
6544
- zChatToolActivityData: () => Vi,
6545
- zChatToolActivityVisual: () => Bi,
6546
- zChatVisualSpec: () => Q,
6547
- zCompleteCheckoutData: () => wa,
6548
- zConversationLastMessage: () => Wa,
6549
- zConversationParticipant: () => Ua,
6550
- zConversationSummary: () => Ga,
6551
- zConversationTarget: () => ta,
6552
- zConversationUpdatedEvent: () => Xa,
6553
- zCreateAgentBody: () => ji,
6554
- zCreateConversationBody: () => na,
6555
- zCreateConversationSessionBody: () => ra,
6556
- zCreateOrgBody: () => To,
6557
- zDesiredStatus: () => B,
6558
- zErrorCode: () => Ii,
6637
+ zAppleAuthBody: () => ca,
6638
+ zAuthSessionData: () => la,
6639
+ zAuthSessionResponse: () => ua,
6640
+ zAutomationPrimaryChannel: () => ki,
6641
+ zBackfillBillingData: () => Da,
6642
+ zBackfillCustomersData: () => Ea,
6643
+ zBillingDetails: () => Sa,
6644
+ zBillingInvoice: () => ba,
6645
+ zBillingPaymentMethod: () => ya,
6646
+ zBillingPlanKey: () => _a,
6647
+ zBillingStatus: () => va,
6648
+ zBillingTier: () => K,
6649
+ zBotGenerateImageBody: () => oa,
6650
+ zBotGenerateImageResponse: () => sa,
6651
+ zCancelConversationTurnBody: () => Ya,
6652
+ zCancelConversationTurnResponse: () => Xa,
6653
+ zCantRebuildReason: () => bo,
6654
+ zCantWakeReason: () => yo,
6655
+ zChatAttachment: () => Wi,
6656
+ zChatAttachmentInput: () => Qi,
6657
+ zChatAttachmentPlacement: () => Ui,
6658
+ zChatCardSpec: () => Ma,
6659
+ zChatErrorData: () => ka,
6660
+ zChatEvent: () => Aa,
6661
+ zChatIssue: () => z,
6662
+ zChatMessage: () => Zi,
6663
+ zChatMessageAttentionItem: () => Ji,
6664
+ zChatMessageAttentionRef: () => Gi,
6665
+ zChatMessageAttentionUpdate: () => Yi,
6666
+ zChatMessageMetadata: () => Xi,
6667
+ zChatStatusData: () => Oa,
6668
+ zChatToolActivityData: () => Bi,
6669
+ zChatToolActivityVisual: () => zi,
6670
+ zChatVisualSpec: () => Wa,
6671
+ zCompleteCheckoutData: () => Ta,
6672
+ zConversationLastMessage: () => Ka,
6673
+ zConversationParticipant: () => Ga,
6674
+ zConversationSummary: () => qa,
6675
+ zConversationTarget: () => ea,
6676
+ zConversationUpdatedEvent: () => Qa,
6677
+ zCreateAgentBody: () => Ai,
6678
+ zCreateConversationBody: () => ta,
6679
+ zCreateConversationSessionBody: () => na,
6680
+ zCreateOrgBody: () => Oo,
6681
+ zDesiredStatus: () => V,
6682
+ zErrorCode: () => Fi,
6559
6683
  zErrorResponses: () => zErrorResponses,
6560
- zFleetAgent: () => to,
6561
- zFleetSummary: () => no,
6562
- zFleetSyncResponse: () => ro,
6563
- zHandoffConsumeBody: () => ha,
6564
- zHandoffConsumeData: () => ga,
6565
- zHandoffConsumeResponse: () => _a,
6566
- zHandoffMintBody: () => fa,
6567
- zHandoffMintData: () => pa,
6568
- zHandoffMintResponse: () => ma,
6684
+ zFleetAgent: () => ro,
6685
+ zFleetSummary: () => io,
6686
+ zFleetSyncResponse: () => ao,
6687
+ zHandoffConsumeBody: () => ma,
6688
+ zHandoffConsumeData: () => ha,
6689
+ zHandoffConsumeResponse: () => ga,
6690
+ zHandoffMintBody: () => da,
6691
+ zHandoffMintData: () => fa,
6692
+ zHandoffMintResponse: () => pa,
6569
6693
  zHeartbeatLocalTime: () => T,
6570
6694
  zHeartbeatMoment: () => ir,
6571
- zHomeStats: () => Do,
6572
- zIanaTimezone: () => Y,
6573
- zImageAspectRatio: () => aa,
6574
- zImageResolution: () => oa,
6575
- zInvitationPreview: () => fo,
6576
- zInvitationRow: () => uo,
6577
- zInviteBody: () => po,
6578
- zLifecycle: () => V,
6695
+ zHomeStats: () => Ao,
6696
+ zIanaTimezone: () => X,
6697
+ zImageAspectRatio: () => ia,
6698
+ zImageResolution: () => aa,
6699
+ zInvitationPreview: () => ho,
6700
+ zInvitationRow: () => mo,
6701
+ zInviteBody: () => go,
6702
+ zLifecycle: () => H,
6579
6703
  zLifecycleVerb: () => Qr,
6580
- zLiveStatus: () => qr,
6581
- zMarkReadBody: () => Ka,
6582
- zMediaContext: () => io,
6583
- zMediaObject: () => oo,
6584
- zMediaType: () => ao,
6585
- zMemberRow: () => lo,
6586
- zMessageSearchResult: () => Ya,
6587
- zOrgRow: () => wo,
6588
- zOrgSummary: () => ko,
6704
+ zLiveStatus: () => Kr,
6705
+ zMarkReadBody: () => Ja,
6706
+ zMediaContext: () => so,
6707
+ zMediaObject: () => lo,
6708
+ zMediaType: () => co,
6709
+ zMemberRow: () => po,
6710
+ zMessageSearchResult: () => Za,
6711
+ zOrgRow: () => Do,
6712
+ zOrgSummary: () => Mo,
6589
6713
  zPaginatedResponse: () => zPaginatedResponse,
6590
- zPlanTone: () => Oo,
6591
- zProviderErrorKind: () => Li,
6592
- zPublicServiceOverview: () => Fo,
6593
- zReportMessageBody: () => ia,
6594
- zRuntimeOperation: () => Kr,
6595
- zRuntimeOperationKind: () => Wr,
6596
- zRuntimeOperationStatus: () => Gr,
6597
- zSendMessageBody: () => ea,
6598
- zSuggestedPrompt: () => Pi,
6599
- zUpdateAgentBody: () => Mi,
6600
- zUpdateOrgBody: () => Eo,
6601
- zUpdateRoleBody: () => mo,
6602
- zUpdateUserBody: () => Io,
6603
- zUploadMediaBody: () => so,
6604
- zVoiceKey: () => W,
6714
+ zPlanTone: () => jo,
6715
+ zProviderErrorKind: () => Ii,
6716
+ zPublicServiceOverview: () => Ro,
6717
+ zReportMessageBody: () => ra,
6718
+ zRuntimeOperation: () => Gr,
6719
+ zRuntimeOperationKind: () => Ur,
6720
+ zRuntimeOperationStatus: () => Wr,
6721
+ zSendMessageBody: () => $i,
6722
+ zSuggestedPrompt: () => Ni,
6723
+ zUpdateAgentBody: () => ji,
6724
+ zUpdateOrgBody: () => ko,
6725
+ zUpdateRoleBody: () => _o,
6726
+ zUpdateUserBody: () => zo,
6727
+ zUploadMediaBody: () => uo,
6728
+ zVoiceKey: () => G,
6605
6729
  zVoiceProviderName: () => ni,
6606
6730
  zVoiceProviderSession: () => ti,
6607
6731
  zVoiceSessionMint: () => ri,
6608
6732
  zVoiceSessionMintBody: () => ei
6609
- }), Ro = "1.0.0";
6733
+ }), Vo = "1.0.0";
6610
6734
  function buildContract(e = {}) {
6611
6735
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6612
6736
  let r = contractNameFor(e);
6613
6737
  r && (n[r] = toSchema(t));
6614
6738
  };
6615
- for (let [e, t] of Object.entries(Lo)) {
6739
+ for (let [e, t] of Object.entries(Bo)) {
6616
6740
  if (t instanceof S) {
6617
6741
  addSchema(e, t);
6618
6742
  continue;
@@ -6620,7 +6744,7 @@ function buildContract(e = {}) {
6620
6744
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
6621
6745
  }
6622
6746
  return {
6623
- version: Ro,
6747
+ version: Vo,
6624
6748
  generatedAt: t.toISOString(),
6625
6749
  schemas: n
6626
6750
  };
@@ -6640,6 +6764,6 @@ function sortedReplacer(e, t) {
6640
6764
  return t;
6641
6765
  }
6642
6766
  //#endregion
6643
- export { Ro as CONTRACT_VERSION, buildContract, serializeContract };
6767
+ export { Vo as CONTRACT_VERSION, buildContract, serializeContract };
6644
6768
 
6645
6769
  //# sourceMappingURL=contract.js.map