@pagelines/sdk 1.0.741 → 1.0.743

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
@@ -4013,14 +4013,14 @@ var vr = object({
4013
4013
  Ar,
4014
4014
  jr,
4015
4015
  Mr
4016
- ]), Pr = _enum([
4016
+ ]), j = _enum([
4017
4017
  "xxs",
4018
4018
  "xs",
4019
4019
  "sm",
4020
4020
  "md",
4021
4021
  "lg",
4022
4022
  "xl"
4023
- ]), Fr = _enum([
4023
+ ]), Pr = _enum([
4024
4024
  "primary",
4025
4025
  "default",
4026
4026
  "overlay",
@@ -4028,18 +4028,18 @@ var vr = object({
4028
4028
  "green",
4029
4029
  "indigo",
4030
4030
  "orange"
4031
- ]), j = _enum([
4031
+ ]), M = _enum([
4032
4032
  "ghost",
4033
4033
  "link",
4034
4034
  "outline",
4035
4035
  "solid"
4036
- ]), M = object({
4036
+ ]), N = object({
4037
4037
  key: string().optional(),
4038
4038
  label: string().optional(),
4039
4039
  href: string().optional(),
4040
- size: Pr.optional(),
4041
- theme: Fr.optional(),
4042
- design: j.optional(),
4040
+ size: j.optional(),
4041
+ theme: Pr.optional(),
4042
+ design: M.optional(),
4043
4043
  icon: union([string(), A]).optional(),
4044
4044
  iconAfter: union([string(), A]).optional(),
4045
4045
  rounding: _enum([
@@ -4058,12 +4058,12 @@ var vr = object({
4058
4058
  "submit",
4059
4059
  "reset"
4060
4060
  ]).optional()
4061
+ }), Fr = object({
4062
+ buttons: array(N).optional(),
4063
+ size: j.optional(),
4064
+ theme: Pr.optional(),
4065
+ design: M.optional()
4061
4066
  }), Ir = object({
4062
- buttons: array(M).optional(),
4063
- size: Pr.optional(),
4064
- theme: Fr.optional(),
4065
- design: j.optional()
4066
- }), Lr = object({
4067
4067
  key: string().optional(),
4068
4068
  id: string().optional(),
4069
4069
  label: string().optional(),
@@ -4090,14 +4090,14 @@ var vr = object({
4090
4090
  priority: number().optional(),
4091
4091
  testId: string().optional(),
4092
4092
  items: array(any()).optional(),
4093
- badges: array(M).optional(),
4094
- meta: array(M).optional(),
4093
+ badges: array(N).optional(),
4094
+ meta: array(N).optional(),
4095
4095
  menuItems: array(any()).optional()
4096
- }), Rr = object({
4096
+ }), Lr = object({
4097
4097
  title: string().optional(),
4098
4098
  description: string().optional(),
4099
- items: array(Lr).optional()
4100
- }), zr = {
4099
+ items: array(Ir).optional()
4100
+ }), Rr = {
4101
4101
  colors: {
4102
4102
  primary: "#3b82f6",
4103
4103
  secondary: "#93c5fd",
@@ -4116,7 +4116,7 @@ var vr = object({
4116
4116
  compact: 4,
4117
4117
  comfortable: 6
4118
4118
  }
4119
- }, Br = [
4119
+ }, zr = [
4120
4120
  ["#6366f1", "#8b5cf6"],
4121
4121
  ["#3b82f6", "#06b6d4"],
4122
4122
  ["#10b981", "#34d399"],
@@ -4132,7 +4132,7 @@ function hashName(e) {
4132
4132
  return Math.abs(t);
4133
4133
  }
4134
4134
  function getGradientPair(e) {
4135
- return Br[(e ? hashName(e) : 0) % Br.length];
4135
+ return zr[(e ? hashName(e) : 0) % zr.length];
4136
4136
  }
4137
4137
  function getDefaultAvatarUrl(e) {
4138
4138
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4162,7 +4162,7 @@ function getWorkspaceMarkUrl(e) {
4162
4162
  }
4163
4163
  //#endregion
4164
4164
  //#region ../core/dist/chatIssue.js
4165
- var Vr = _enum(["account", "error"]), N = [
4165
+ var Br = _enum(["account", "error"]), P = [
4166
4166
  "billing_no_plan",
4167
4167
  "billing_seat_limit",
4168
4168
  "billing_past_due",
@@ -4178,14 +4178,14 @@ var Vr = _enum(["account", "error"]), N = [
4178
4178
  "empty_stream",
4179
4179
  "tool_protocol",
4180
4180
  "rate_limit"
4181
- ], P = object({
4182
- bucket: Vr,
4183
- code: _enum(N),
4181
+ ], F = object({
4182
+ bucket: Br,
4183
+ code: _enum(P),
4184
4184
  title: string(),
4185
4185
  help: string().optional(),
4186
4186
  actionLabel: string(),
4187
4187
  actionUrl: string()
4188
- }), F = {
4188
+ }), I = {
4189
4189
  billing_no_plan: {
4190
4190
  bucket: "account",
4191
4191
  title: "Payment method needed",
@@ -4293,10 +4293,10 @@ var Vr = _enum(["account", "error"]), N = [
4293
4293
  }
4294
4294
  };
4295
4295
  function chatIssueCatalogLines() {
4296
- return N.map((e) => `- ${e}: ${F[e].oneLine}`).join("\n");
4296
+ return P.map((e) => `- ${e}: ${I[e].oneLine}`).join("\n");
4297
4297
  }
4298
4298
  function buildChatIssue(e) {
4299
- let t = F[e.code];
4299
+ let t = I[e.code];
4300
4300
  return {
4301
4301
  bucket: t.bucket,
4302
4302
  code: e.code,
@@ -4307,12 +4307,12 @@ function buildChatIssue(e) {
4307
4307
  };
4308
4308
  }
4309
4309
  function renderIssueAsMarkdown(e) {
4310
- let t = F[e.code];
4310
+ let t = I[e.code];
4311
4311
  return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
4312
4312
  }
4313
4313
  //#endregion
4314
4314
  //#region ../core/dist/wire/agent-state.js
4315
- var I = _enum(["active", "stopped"]), L = _enum([
4315
+ var L = _enum(["active", "stopped"]), R = _enum([
4316
4316
  "unknown",
4317
4317
  "stopped",
4318
4318
  "starting",
@@ -4321,28 +4321,28 @@ var I = _enum(["active", "stopped"]), L = _enum([
4321
4321
  "unreachable",
4322
4322
  "stopping",
4323
4323
  "error"
4324
- ]), Hr = _enum([
4324
+ ]), Vr = _enum([
4325
4325
  "wake",
4326
4326
  "sleep",
4327
4327
  "restart",
4328
4328
  "rebuild",
4329
4329
  "config_apply"
4330
- ]), Ur = _enum([
4330
+ ]), Hr = _enum([
4331
4331
  "running",
4332
4332
  "coalesced",
4333
4333
  "failed"
4334
- ]), R = object({
4335
- kind: Hr,
4336
- status: Ur,
4334
+ ]), z = object({
4335
+ kind: Vr,
4336
+ status: Hr,
4337
4337
  startedAt: string().datetime(),
4338
4338
  detail: string().optional()
4339
- }).strict(), Wr = object({
4340
- lifecycle: L,
4339
+ }).strict(), Ur = object({
4340
+ lifecycle: R,
4341
4341
  changedAt: string().datetime().optional(),
4342
4342
  detail: string().optional(),
4343
- blocker: P.optional(),
4344
- operation: R.optional()
4345
- }).strict(), Gr = Object.freeze({ lifecycle: "unknown" }), Kr = {
4343
+ blocker: F.optional(),
4344
+ operation: z.optional()
4345
+ }).strict(), Wr = Object.freeze({ lifecycle: "unknown" }), Gr = {
4346
4346
  running: "green",
4347
4347
  starting: "amber",
4348
4348
  stopping: "amber",
@@ -4351,7 +4351,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
4351
4351
  error: "red",
4352
4352
  stopped: "grey",
4353
4353
  unknown: "grey"
4354
- }, qr = {
4354
+ }, Kr = {
4355
4355
  running: "Online",
4356
4356
  starting: "Waking up",
4357
4357
  stopping: "Stopping",
@@ -4360,7 +4360,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
4360
4360
  error: "Error",
4361
4361
  stopped: "Asleep",
4362
4362
  unknown: "Checking"
4363
- }, Jr = {
4363
+ }, qr = {
4364
4364
  wake: "Waking up",
4365
4365
  sleep: "Stopping",
4366
4366
  restart: "Restarting",
@@ -4368,7 +4368,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
4368
4368
  config_apply: "Applying config"
4369
4369
  };
4370
4370
  function toAgentState(e, t) {
4371
- let n = e.operation, r = qr[e.lifecycle] ?? "Unknown", i = Kr[e.lifecycle] ?? "grey", a = n ? Jr[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}`;
4371
+ let n = e.operation, r = Kr[e.lifecycle] ?? "Unknown", i = Gr[e.lifecycle] ?? "grey", a = n ? qr[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}`;
4372
4372
  return {
4373
4373
  ...e,
4374
4374
  color: s,
@@ -4376,7 +4376,7 @@ function toAgentState(e, t) {
4376
4376
  tooltip: c
4377
4377
  };
4378
4378
  }
4379
- var Yr = _enum([
4379
+ var Jr = _enum([
4380
4380
  "wake",
4381
4381
  "sleep",
4382
4382
  "restart",
@@ -4398,7 +4398,7 @@ function isAgentReady(e) {
4398
4398
  default: return !1;
4399
4399
  }
4400
4400
  }
4401
- var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4401
+ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4402
4402
  platform: _enum([
4403
4403
  "linkedin",
4404
4404
  "x",
@@ -4413,7 +4413,11 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4413
4413
  "website"
4414
4414
  ]),
4415
4415
  handle: string()
4416
- }))), z = object({
4416
+ }))), Xr = _enum([
4417
+ "essential",
4418
+ "professional",
4419
+ "business"
4420
+ ]), B = object({
4417
4421
  agentId: string().optional(),
4418
4422
  handle: string().optional(),
4419
4423
  ownerId: string().optional(),
@@ -4429,13 +4433,14 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4429
4433
  cover: A.optional(),
4430
4434
  email: string().nullable().optional(),
4431
4435
  website: string().url().nullable().optional(),
4432
- accounts: Xr.nullable().optional(),
4436
+ accounts: Yr.nullable().optional(),
4433
4437
  model: string().nullable().optional(),
4438
+ billingTier: Xr.optional(),
4434
4439
  lastActiveAt: string().nullable().optional(),
4435
4440
  lastMessageAt: string().nullable().optional(),
4436
4441
  runtime: string().default("hermes").optional(),
4437
4442
  timezone: string().optional(),
4438
- desiredStatus: I.nullable().optional(),
4443
+ desiredStatus: L.nullable().optional(),
4439
4444
  automationPrimaryChannel: string().optional(),
4440
4445
  heartbeatEnabled: boolean().optional(),
4441
4446
  onboardedAt: string().nullable().optional(),
@@ -4460,20 +4465,20 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4460
4465
  status: string().optional(),
4461
4466
  createdAt: string().optional(),
4462
4467
  updatedAt: string().optional()
4463
- }), B = z.extend({
4468
+ }), V = B.extend({
4464
4469
  isPrimary: boolean().optional(),
4465
- lifecycle: L.optional(),
4470
+ lifecycle: R.optional(),
4466
4471
  changedAt: string().datetime().optional(),
4467
4472
  detail: string().optional(),
4468
- blocker: P.optional(),
4469
- operation: R.optional()
4470
- }), Zr = Object.keys(B.shape), V = class Agent extends SettingsObject {
4473
+ blocker: F.optional(),
4474
+ operation: z.optional()
4475
+ }), Zr = Object.keys(V.shape), H = class Agent extends SettingsObject {
4471
4476
  constructor(e) {
4472
4477
  let t = "config" in e ? {
4473
4478
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
4474
4479
  context: e.context
4475
4480
  } : e;
4476
- super("Agent", t), this.agentId = r(this.settings.agentId), this.handle = r(this.settings.handle), this.ownerId = r(this.settings.ownerId), this.orgId = r(this.settings.orgId), this.name = r(this.settings.name), this.title = r(this.settings.title), this.summary = r(this.settings.summary), this.entityType = r(this.settings.entityType), this.avatarId = r(this.settings.avatarId), this.coverId = r(this.settings.coverId), this.avatar = r(this.settings.avatar), this.cover = r(this.settings.cover), this.email = r(this.settings.email), this.website = r(this.settings.website), this.accounts = r(this.settings.accounts), this.model = r(this.settings.model), this.lastActiveAt = r(this.settings.lastActiveAt), this.lastMessageAt = r(this.settings.lastMessageAt), this.timezone = r(this.settings.timezone), this.desiredStatus = r(this.settings.desiredStatus), this.automationPrimaryChannel = r(this.settings.automationPrimaryChannel), this.heartbeatEnabled = r(this.settings.heartbeatEnabled), this.onboardedAt = r(this.settings.onboardedAt), this.org = r(this.settings.org), this.owner = r(this.settings.owner), this.visibility = r(this.settings.visibility), this.status = r(this.settings.status), this.createdAt = r(this.settings.createdAt), this.updatedAt = r(this.settings.updatedAt), this.isPrimary = r(this.settings.isPrimary), this.lifecycle = r(this.settings.lifecycle), this.changedAt = r(this.settings.changedAt), this.detail = r(this.settings.detail), this.blocker = r(this.settings.blocker), this.operation = r(this.settings.operation), this.state = n(() => toAgentState({
4481
+ super("Agent", t), this.agentId = r(this.settings.agentId), this.handle = r(this.settings.handle), this.ownerId = r(this.settings.ownerId), this.orgId = r(this.settings.orgId), this.name = r(this.settings.name), this.title = r(this.settings.title), this.summary = r(this.settings.summary), this.entityType = r(this.settings.entityType), this.avatarId = r(this.settings.avatarId), this.coverId = r(this.settings.coverId), this.avatar = r(this.settings.avatar), this.cover = r(this.settings.cover), this.email = r(this.settings.email), this.website = r(this.settings.website), this.accounts = r(this.settings.accounts), this.model = r(this.settings.model), this.billingTier = r(this.settings.billingTier), this.lastActiveAt = r(this.settings.lastActiveAt), this.lastMessageAt = r(this.settings.lastMessageAt), this.timezone = r(this.settings.timezone), this.desiredStatus = r(this.settings.desiredStatus), this.automationPrimaryChannel = r(this.settings.automationPrimaryChannel), this.heartbeatEnabled = r(this.settings.heartbeatEnabled), this.onboardedAt = r(this.settings.onboardedAt), this.org = r(this.settings.org), this.owner = r(this.settings.owner), this.visibility = r(this.settings.visibility), this.status = r(this.settings.status), this.createdAt = r(this.settings.createdAt), this.updatedAt = r(this.settings.updatedAt), this.isPrimary = r(this.settings.isPrimary), this.lifecycle = r(this.settings.lifecycle), this.changedAt = r(this.settings.changedAt), this.detail = r(this.settings.detail), this.blocker = r(this.settings.blocker), this.operation = r(this.settings.operation), this.state = n(() => toAgentState({
4477
4482
  lifecycle: this.lifecycle.value ?? "unknown",
4478
4483
  detail: this.detail.value,
4479
4484
  changedAt: this.changedAt.value,
@@ -4504,10 +4509,10 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4504
4509
  }
4505
4510
  };
4506
4511
  function createAgent(e) {
4507
- return new V(e);
4512
+ return new H(e);
4508
4513
  }
4509
4514
  function createAgents(e) {
4510
- return e.configs.map((t) => new V({
4515
+ return e.configs.map((t) => new H({
4511
4516
  config: t,
4512
4517
  context: e.context
4513
4518
  }));
@@ -4569,7 +4574,7 @@ var Qr = object({
4569
4574
  identityToken: string().min(1),
4570
4575
  fullName: string().optional(),
4571
4576
  timezone: string().max(64).optional()
4572
- }), H = object({
4577
+ }), U = object({
4573
4578
  orgId: string().optional(),
4574
4579
  handle: string().optional(),
4575
4580
  name: string().optional(),
@@ -4586,8 +4591,6 @@ var Qr = object({
4586
4591
  stripeCustomerIdTest: string().nullable().optional(),
4587
4592
  stripeCustomerIdLive: string().nullable().optional(),
4588
4593
  maxUsers: number().optional(),
4589
- isOverageEnabled: boolean().optional(),
4590
- monthlyBudgetCents: number().nullable().optional(),
4591
4594
  timezone: string().nullable().optional(),
4592
4595
  apiKey: string().nullable().optional(),
4593
4596
  syncedPlan: string().nullable().optional(),
@@ -4599,7 +4602,7 @@ var Qr = object({
4599
4602
  status: string().optional(),
4600
4603
  createdAt: string().optional(),
4601
4604
  updatedAt: string().optional()
4602
- }), li = H.extend({
4605
+ }), li = U.extend({
4603
4606
  defaultAgent: object({
4604
4607
  agentId: string(),
4605
4608
  handle: string(),
@@ -4635,7 +4638,7 @@ var Qr = object({
4635
4638
  onboarding: ui.optional()
4636
4639
  }), fi = Qr.extend({
4637
4640
  orgs: array(di).optional(),
4638
- agents: array(z).optional()
4641
+ agents: array(B).optional()
4639
4642
  });
4640
4643
  //#endregion
4641
4644
  //#region ../core/dist/state.js
@@ -4658,7 +4661,7 @@ function derive(e) {
4658
4661
  }
4659
4662
  //#endregion
4660
4663
  //#region ../core/dist/bot-ua.js
4661
- var pi = "pagelines-agent/1.0", U = [
4664
+ var pi = "pagelines-agent/1.0", W = [
4662
4665
  "[SILENT]",
4663
4666
  "SILENT",
4664
4667
  "NO_REPLY",
@@ -4672,7 +4675,7 @@ var pi = "pagelines-agent/1.0", U = [
4672
4675
  "[NO_OP]",
4673
4676
  "[NO OP]",
4674
4677
  "HEARTBEAT_OK"
4675
- ], mi = new Set(U);
4678
+ ], mi = new Set(W);
4676
4679
  function normalizeAssistantControl(e) {
4677
4680
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4678
4681
  }
@@ -4682,7 +4685,7 @@ function isAssistantSilenceControl(e) {
4682
4685
  }
4683
4686
  function isAssistantSilenceControlPrefix(e) {
4684
4687
  let t = normalizeAssistantControl(e);
4685
- return t.length <= 64 && U.some((e) => e.startsWith(t));
4688
+ return t.length <= 64 && W.some((e) => e.startsWith(t));
4686
4689
  }
4687
4690
  //#endregion
4688
4691
  //#region ../core/dist/timingBudgets.js
@@ -4713,7 +4716,7 @@ function botApiUrl(e) {
4713
4716
  }
4714
4717
  //#endregion
4715
4718
  //#region ../core/dist/errorCopy.js
4716
- var W = {
4719
+ var G = {
4717
4720
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4718
4721
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4719
4722
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4752,14 +4755,14 @@ var W = {
4752
4755
  fatal: "Something's broken and won't resolve on retry. Contact support."
4753
4756
  };
4754
4757
  function errorCopy(e, t) {
4755
- return e && e in W ? W[e] : t;
4758
+ return e && e in G ? G[e] : t;
4756
4759
  }
4757
4760
  function errorFromApiResponse(e, t) {
4758
- return e.code && e.code in W ? W[e.code] : e.providerErrorKind && vi[e.providerErrorKind] ? vi[e.providerErrorKind] : e.error || t;
4761
+ return e.code && e.code in G ? G[e.code] : e.providerErrorKind && vi[e.providerErrorKind] ? vi[e.providerErrorKind] : e.error || t;
4759
4762
  }
4760
4763
  //#endregion
4761
4764
  //#region ../core/dist/retryPolicy.js
4762
- var G = {
4765
+ var K = {
4763
4766
  shouldRetry: !1,
4764
4767
  maxAttempts: 1,
4765
4768
  strategy: "none",
@@ -4777,7 +4780,7 @@ function retryPolicyFor(e) {
4777
4780
  "FORBIDDEN",
4778
4781
  "AGENT_NOT_FOUND"
4779
4782
  ]);
4780
- if (e.code && t.has(e.code)) return G;
4783
+ if (e.code && t.has(e.code)) return K;
4781
4784
  switch (e.providerErrorKind) {
4782
4785
  case "busy": return {
4783
4786
  shouldRetry: !0,
@@ -4812,13 +4815,13 @@ function retryPolicyFor(e) {
4812
4815
  };
4813
4816
  case "notFound":
4814
4817
  case "invalidConfig":
4815
- case "fatal": return G;
4816
- default: return G;
4818
+ case "fatal": return K;
4819
+ default: return K;
4817
4820
  }
4818
4821
  }
4819
4822
  //#endregion
4820
4823
  //#region ../core/dist/wire/timezone.js
4821
- var K = string().min(1).max(64).refine((e) => {
4824
+ var q = string().min(1).max(64).refine((e) => {
4822
4825
  try {
4823
4826
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
4824
4827
  } catch {
@@ -4831,7 +4834,7 @@ var K = string().min(1).max(64).refine((e) => {
4831
4834
  title: string().max(120).nullable().optional(),
4832
4835
  summary: string().max(500).nullable().optional(),
4833
4836
  handle: string().min(2).max(50).optional(),
4834
- timezone: K.optional(),
4837
+ timezone: q.optional(),
4835
4838
  runtime: _enum(["hermes"]).optional(),
4836
4839
  visibility: _enum([
4837
4840
  "private",
@@ -4848,8 +4851,9 @@ var K = string().min(1).max(64).refine((e) => {
4848
4851
  website: string().url().nullable().optional(),
4849
4852
  avatarMediaId: string().nullable().optional(),
4850
4853
  coverMediaId: string().nullable().optional(),
4851
- timezone: K.optional(),
4854
+ timezone: q.optional(),
4852
4855
  model: string().nullable().optional(),
4856
+ billingTier: Xr.optional(),
4853
4857
  visibility: _enum([
4854
4858
  "private",
4855
4859
  "org",
@@ -4857,11 +4861,11 @@ var K = string().min(1).max(64).refine((e) => {
4857
4861
  ]).optional(),
4858
4862
  automationPrimaryChannel: yi.optional(),
4859
4863
  heartbeatEnabled: boolean().optional()
4860
- }).strict(), Si = B, Ci = object({
4864
+ }).strict(), Si = V, Ci = object({
4861
4865
  id: string(),
4862
4866
  label: string(),
4863
4867
  prompt: string()
4864
- }), wi = /* @__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.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_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.WAKE_FAILED".split("."), q = _enum(wi), Ti = _enum([
4868
+ }), wi = /* @__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.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.WAKE_FAILED".split("."), J = _enum(wi), Ti = _enum([
4865
4869
  "notFound",
4866
4870
  "busy",
4867
4871
  "rateLimited",
@@ -4875,8 +4879,8 @@ var K = string().min(1).max(64).refine((e) => {
4875
4879
  }), Ei = object({
4876
4880
  ok: literal(!1),
4877
4881
  error: string(),
4878
- code: q.optional(),
4879
- issue: P.optional(),
4882
+ code: J.optional(),
4883
+ issue: F.optional(),
4880
4884
  providerErrorKind: Ti.optional()
4881
4885
  }), zApiResponse = (e) => union([zApiOk(e), Ei]);
4882
4886
  function apiError(e, t, n) {
@@ -4908,7 +4912,7 @@ var Di = object({
4908
4912
  icon: string().min(1).optional(),
4909
4913
  domain: string().min(1).optional(),
4910
4914
  serviceKey: string().min(1).optional()
4911
- }).strict(), J = object({
4915
+ }).strict(), Y = object({
4912
4916
  activityId: string().min(1),
4913
4917
  turnId: string().min(1),
4914
4918
  status: _enum([
@@ -4933,10 +4937,10 @@ var Di = object({
4933
4937
  durationMs: number().int().nonnegative().optional(),
4934
4938
  note: string().trim().min(1).optional(),
4935
4939
  visual: Di.optional()
4936
- }).strict(), Oi = J.extend({ status: _enum(["completed", "failed"]) }), ki = O, Ai = object({
4940
+ }).strict(), Oi = Y.extend({ status: _enum(["completed", "failed"]) }), ki = O, Ai = object({
4937
4941
  kind: literal("inline"),
4938
4942
  offset: number().int().nonnegative()
4939
- }), Y = object({
4943
+ }), X = object({
4940
4944
  type: ki,
4941
4945
  src: url(),
4942
4946
  filename: string().min(1),
@@ -4969,7 +4973,7 @@ var Pi = ji.extend({
4969
4973
  }).superRefine(validateAttentionRevisit), Ii = object({
4970
4974
  turnId: string().min(1).optional(),
4971
4975
  turnOutcome: _enum(["failed", "stopped"]).optional(),
4972
- attachments: array(Y).optional(),
4976
+ attachments: array(X).optional(),
4973
4977
  toolActivities: array(Oi).optional(),
4974
4978
  issue: object({
4975
4979
  code: string(),
@@ -5040,7 +5044,7 @@ var Pi = ji.extend({
5040
5044
  billing: string().max(500),
5041
5045
  agent: string().max(500)
5042
5046
  }).optional(),
5043
- viewerTimezone: K.optional()
5047
+ viewerTimezone: q.optional()
5044
5048
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5045
5049
  path: ["content"],
5046
5050
  message: "Message or attachment required"
@@ -5106,7 +5110,7 @@ var Vi = object({
5106
5110
  provider: string().min(1).optional(),
5107
5111
  providerRequestId: string().min(1).optional(),
5108
5112
  media: string().startsWith("MEDIA:"),
5109
- attachment: Y.extend({ type: literal("image") })
5113
+ attachment: X.extend({ type: literal("image") })
5110
5114
  }), Ji = object({
5111
5115
  identityToken: string().min(1),
5112
5116
  fullName: string().optional()
@@ -5135,7 +5139,8 @@ var Vi = object({
5135
5139
  "active",
5136
5140
  "trial",
5137
5141
  "canceling",
5138
- "past_due"
5142
+ "past_due",
5143
+ "paused"
5139
5144
  ]), aa = object({
5140
5145
  brand: string(),
5141
5146
  last4: string(),
@@ -5176,8 +5181,8 @@ var Vi = object({
5176
5181
  }), da = object({
5177
5182
  updated: number(),
5178
5183
  errors: array(string())
5179
- }), fa = Wr, pa = object({
5180
- code: q,
5184
+ }), fa = Ur, pa = object({
5185
+ code: J,
5181
5186
  message: string(),
5182
5187
  bucket: _enum(["account", "error"]).optional(),
5183
5188
  actionLabel: string().optional(),
@@ -5210,7 +5215,7 @@ var Vi = object({
5210
5215
  }),
5211
5216
  object({
5212
5217
  event: literal("tool_activity"),
5213
- data: J
5218
+ data: Y
5214
5219
  }),
5215
5220
  object({
5216
5221
  event: literal("working_end"),
@@ -5422,7 +5427,7 @@ function parseChatCardFencePayload(e) {
5422
5427
  }
5423
5428
  //#endregion
5424
5429
  //#region ../core/dist/wire/chat-visual.js
5425
- var _a = string().trim().min(1).max(240), va = 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), ya = record(X, union([
5430
+ var _a = string().trim().min(1).max(240), va = 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), ya = record(Z, union([
5426
5431
  string().max(500),
5427
5432
  number().finite(),
5428
5433
  boolean(),
@@ -5439,16 +5444,16 @@ var _a = string().trim().min(1).max(240), va = string().trim().min(1).max(800),
5439
5444
  description: va.optional(),
5440
5445
  footer: va.optional()
5441
5446
  }).strip(), Sa = object({
5442
- dataKey: X,
5443
- label: Z.optional(),
5444
- axisLabel: Z.optional(),
5447
+ dataKey: Z,
5448
+ label: Q.optional(),
5449
+ axisLabel: Q.optional(),
5445
5450
  valueFormat: ba.optional(),
5446
5451
  valuePrefix: string().trim().max(12).optional(),
5447
5452
  valueSuffix: string().trim().max(12).optional()
5448
5453
  }).strip(), Ca = object({
5449
5454
  kind: literal("linear"),
5450
- dataKey: X,
5451
- label: Z.optional()
5455
+ dataKey: Z,
5456
+ label: Q.optional()
5452
5457
  }).strip(), wa = object({
5453
5458
  version: literal(1),
5454
5459
  meta: xa,
@@ -5500,8 +5505,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5500
5505
  "line",
5501
5506
  "scatter"
5502
5507
  ]),
5503
- xKey: X,
5504
- xAxisLabel: Z.optional(),
5508
+ xKey: Z,
5509
+ xAxisLabel: Q.optional(),
5505
5510
  series: array(Sa).min(1).max(6),
5506
5511
  data: array(ya).min(1).max(120),
5507
5512
  layout: _enum(["horizontal", "vertical"]).optional(),
@@ -5547,8 +5552,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5547
5552
  }), wa.extend({
5548
5553
  visualType: literal("chart"),
5549
5554
  chartType: literal("pie"),
5550
- nameKey: X,
5551
- valueKey: X,
5555
+ nameKey: Z,
5556
+ valueKey: Z,
5552
5557
  series: array(Sa).max(1).optional(),
5553
5558
  data: array(ya).min(1).max(16)
5554
5559
  }).strip().superRefine((e, t) => {
@@ -5575,8 +5580,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5575
5580
  nonnegative: !0
5576
5581
  }], t);
5577
5582
  })]), Ea = object({
5578
- id: X,
5579
- label: Z,
5583
+ id: Z,
5584
+ label: Q,
5580
5585
  detail: va.optional(),
5581
5586
  kind: _enum([
5582
5587
  "actor",
@@ -5589,9 +5594,9 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5589
5594
  "task"
5590
5595
  ]).optional()
5591
5596
  }).strip(), Da = object({
5592
- from: X,
5593
- to: X,
5594
- label: Z.optional()
5597
+ from: Z,
5598
+ to: Z,
5599
+ label: Q.optional()
5595
5600
  }).strip(), Oa = union([Ta, wa.extend({
5596
5601
  visualType: literal("diagram"),
5597
5602
  diagramType: _enum([
@@ -5854,7 +5859,7 @@ var ka = object({
5854
5859
  lastMessage: Aa.nullable(),
5855
5860
  unreadCount: number().int().nonnegative(),
5856
5861
  latestSequence: string().nullable()
5857
- }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), La = preprocess((e) => e === void 0 ? null : e, L.nullable()), Ra = preprocess((e) => e === void 0 ? null : e, I.nullable()), za = preprocess((e) => e === void 0 ? null : e, _enum([
5862
+ }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), La = preprocess((e) => e === void 0 ? null : e, R.nullable()), Ra = preprocess((e) => e === void 0 ? null : e, L.nullable()), za = preprocess((e) => e === void 0 ? null : e, _enum([
5858
5863
  "user",
5859
5864
  "assistant",
5860
5865
  "system"
@@ -5863,24 +5868,24 @@ var ka = object({
5863
5868
  handle: string(),
5864
5869
  name: string(),
5865
5870
  orgId: string(),
5866
- orgName: Q,
5867
- orgHandle: Q,
5868
- ownerEmail: Q,
5869
- ownerName: Q,
5871
+ orgName: $,
5872
+ orgHandle: $,
5873
+ ownerEmail: $,
5874
+ ownerName: $,
5870
5875
  state: La,
5871
5876
  desiredStatus: Ra,
5872
5877
  runtime: string(),
5873
- imageVersion: Q,
5874
- lastHealthyAt: Q,
5875
- lastActiveAt: Q,
5876
- lastUserMessageAt: Q,
5877
- lastMessageAt: Q,
5878
+ imageVersion: $,
5879
+ lastHealthyAt: $,
5880
+ lastActiveAt: $,
5881
+ lastUserMessageAt: $,
5882
+ lastMessageAt: $,
5878
5883
  lastMessageRole: za,
5879
- lastMessageChannel: Q,
5880
- primaryChannel: Q,
5884
+ lastMessageChannel: $,
5885
+ primaryChannel: $,
5881
5886
  totalMessages: Ba,
5882
5887
  totalSessions: Ba,
5883
- error: Q,
5888
+ error: $,
5884
5889
  appHandle: string(),
5885
5890
  flyAppExists: boolean(),
5886
5891
  plan: string(),
@@ -5900,23 +5905,24 @@ var ka = object({
5900
5905
  agents: array(Va),
5901
5906
  summary: Ha,
5902
5907
  orphanedApps: array(string()),
5908
+ dailyMessages30d: array(number().int()).optional(),
5903
5909
  flyAppCount: number().optional(),
5904
5910
  latestVersion: string().optional(),
5905
5911
  latestVersions: record(string(), string()).optional()
5906
- }), $ = k, Wa = O, Ga = object({
5912
+ }), Wa = k, Ga = O, Ka = object({
5907
5913
  mediaId: string(),
5908
5914
  src: string(),
5909
5915
  alt: string().nullable().optional(),
5910
5916
  filename: string().optional(),
5911
5917
  displayName: string().nullable().optional(),
5912
5918
  mimeType: string().optional(),
5913
- mediaType: Wa.optional(),
5914
- type: Wa.optional(),
5919
+ mediaType: Ga.optional(),
5920
+ type: Ga.optional(),
5915
5921
  size: number().optional(),
5916
5922
  width: number().nullable().optional(),
5917
5923
  height: number().nullable().optional(),
5918
5924
  duration: number().nullable().optional(),
5919
- context: $.nullable().optional(),
5925
+ context: Wa.nullable().optional(),
5920
5926
  blurhash: string().nullable().optional(),
5921
5927
  quality: string().optional(),
5922
5928
  status: string().optional(),
@@ -5925,13 +5931,13 @@ var ka = object({
5925
5931
  agentId: string().nullable().optional(),
5926
5932
  createdAt: string().optional(),
5927
5933
  updatedAt: string().optional()
5928
- }), Ka = object({
5934
+ }), qa = object({
5929
5935
  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."),
5930
- context: $.optional().default("general"),
5936
+ context: Wa.optional().default("general"),
5931
5937
  agentId: string().optional(),
5932
5938
  orgId: string().optional(),
5933
5939
  duration: number().optional()
5934
- }), qa = object({
5940
+ }), Ja = object({
5935
5941
  mediaId: string().optional(),
5936
5942
  src: string().optional(),
5937
5943
  alt: string().optional(),
@@ -5940,7 +5946,7 @@ var ka = object({
5940
5946
  mimeType: string().optional(),
5941
5947
  mediaType: string().optional(),
5942
5948
  blurhash: string().optional()
5943
- }), Ja = object({
5949
+ }), Ya = object({
5944
5950
  membershipId: string(),
5945
5951
  userId: string(),
5946
5952
  orgId: string(),
@@ -5955,15 +5961,15 @@ var ka = object({
5955
5961
  status: _enum(["active", "suspended"]),
5956
5962
  joinedAt: string(),
5957
5963
  lastSeenAt: string().optional(),
5958
- avatar: qa.optional()
5959
- }), Ya = object({
5964
+ avatar: Ja.optional()
5965
+ }), Xa = object({
5960
5966
  invitationId: string(),
5961
5967
  email: string(),
5962
5968
  role: _enum(["admin", "member"]),
5963
5969
  status: string(),
5964
5970
  expiresAt: string(),
5965
5971
  createdAt: string()
5966
- }), Xa = object({
5972
+ }), Za = object({
5967
5973
  token: string(),
5968
5974
  email: string(),
5969
5975
  orgId: string(),
@@ -5985,20 +5991,20 @@ var ka = object({
5985
5991
  ]),
5986
5992
  expiresAt: string(),
5987
5993
  memberCount: number().optional()
5988
- }), Za = object({
5994
+ }), Qa = object({
5989
5995
  email: string().email(),
5990
5996
  role: _enum(["admin", "member"]).optional(),
5991
5997
  message: string().max(500).optional()
5992
- }).strict(), Qa = object({ role: _enum(["admin", "member"]) }).strict(), $a = object({ token: string().min(1) }).strict(), eo = _enum([
5998
+ }).strict(), $a = object({ role: _enum(["admin", "member"]) }).strict(), eo = object({ token: string().min(1) }).strict(), to = _enum([
5993
5999
  "planLimit",
5994
6000
  "billingOverdue",
5995
6001
  "rebuilding",
5996
6002
  "agentNotFound"
5997
- ]), to = _enum([
6003
+ ]), no = _enum([
5998
6004
  "rebuilding",
5999
6005
  "provisioning",
6000
6006
  "billingOverdue"
6001
- ]), no = object({
6007
+ ]), ro = object({
6002
6008
  agentId: string(),
6003
6009
  name: string(),
6004
6010
  avatar: A.optional(),
@@ -6012,27 +6018,27 @@ var ka = object({
6012
6018
  lastMessageAt: string().datetime().nullable(),
6013
6019
  lastMessagePreview: string().nullable(),
6014
6020
  onboardedAt: string().datetime().nullable(),
6015
- desiredStatus: I.nullable(),
6016
- lifecycle: L,
6021
+ desiredStatus: L.nullable(),
6022
+ lifecycle: R,
6017
6023
  changedAt: string().datetime().optional(),
6018
6024
  detail: string().optional(),
6019
- blocker: P.optional(),
6025
+ blocker: F.optional(),
6020
6026
  canWake: boolean(),
6021
- cantWakeReason: eo.optional(),
6027
+ cantWakeReason: to.optional(),
6022
6028
  canRebuild: boolean(),
6023
- cantRebuildReason: to.optional()
6024
- }), ro = /* @__PURE__ */ t({
6025
- zNotificationTelemetryAck: () => so,
6026
- zNotificationTelemetryEvent: () => oo,
6027
- zRegisterDeviceRequest: () => io,
6028
- zRegisterDeviceResponse: () => ao
6029
- }), io = object({
6029
+ cantRebuildReason: no.optional()
6030
+ }), io = /* @__PURE__ */ t({
6031
+ zNotificationTelemetryAck: () => co,
6032
+ zNotificationTelemetryEvent: () => so,
6033
+ zRegisterDeviceRequest: () => ao,
6034
+ zRegisterDeviceResponse: () => oo
6035
+ }), ao = object({
6030
6036
  deviceId: string().min(1).max(64),
6031
6037
  pushToken: string().min(1).max(200),
6032
6038
  appVersion: string().max(40).optional(),
6033
6039
  osVersion: string().max(40).optional(),
6034
6040
  model: string().max(80).optional()
6035
- }), ao = object({ deviceId: string().min(1).max(64) }), oo = object({
6041
+ }), oo = object({ deviceId: string().min(1).max(64) }), so = object({
6036
6042
  deviceId: string().min(1).max(64),
6037
6043
  kind: string().min(1).max(30),
6038
6044
  action: _enum([
@@ -6041,7 +6047,7 @@ var ka = object({
6041
6047
  "dismissed"
6042
6048
  ]),
6043
6049
  messageId: string().max(32).optional()
6044
- }), so = object({ updated: boolean() }), co = H.pick({
6050
+ }), co = object({ updated: boolean() }), lo = U.pick({
6045
6051
  orgId: !0,
6046
6052
  handle: !0,
6047
6053
  name: !0,
@@ -6055,13 +6061,13 @@ var ka = object({
6055
6061
  status: !0,
6056
6062
  updatedAt: !0
6057
6063
  }).extend({
6058
- avatar: Ga.nullable().optional(),
6059
- cover: Ga.nullable().optional()
6060
- }), lo = object({
6064
+ avatar: Ka.nullable().optional(),
6065
+ cover: Ka.nullable().optional()
6066
+ }), uo = object({
6061
6067
  name: string().min(1).max(255),
6062
6068
  handle: string().min(2).max(50).optional(),
6063
- timezone: K.optional()
6064
- }).strict(), uo = H.pick({
6069
+ timezone: q.optional()
6070
+ }).strict(), fo = U.pick({
6065
6071
  name: !0,
6066
6072
  email: !0,
6067
6073
  website: !0,
@@ -6070,14 +6076,14 @@ var ka = object({
6070
6076
  }).extend({
6071
6077
  name: string().min(1).max(255).optional(),
6072
6078
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6073
- timezone: K.optional(),
6079
+ timezone: q.optional(),
6074
6080
  avatarMediaId: string().nullable().optional(),
6075
6081
  coverMediaId: string().nullable().optional()
6076
- }).strict(), fo = _enum([
6082
+ }).strict(), po = _enum([
6077
6083
  "success",
6078
6084
  "info",
6079
6085
  "warning"
6080
- ]), po = object({
6086
+ ]), mo = object({
6081
6087
  org: object({
6082
6088
  orgId: string(),
6083
6089
  name: string(),
@@ -6086,7 +6092,7 @@ var ka = object({
6086
6092
  plan: object({
6087
6093
  key: string(),
6088
6094
  label: string(),
6089
- tone: fo,
6095
+ tone: po,
6090
6096
  status: string(),
6091
6097
  trialDaysRemaining: number().optional()
6092
6098
  }),
@@ -6107,15 +6113,15 @@ function zPaginatedResponse(e) {
6107
6113
  }
6108
6114
  //#endregion
6109
6115
  //#region ../core/dist/wire/public-services.js
6110
- var mo = object({
6116
+ var ho = object({
6111
6117
  sender: _enum(["user", "agent"]),
6112
6118
  text: string()
6113
- }), ho = _enum([
6119
+ }), go = _enum([
6114
6120
  "works-now",
6115
6121
  "guided-setup",
6116
6122
  "coming-soon",
6117
6123
  "custom-workflow"
6118
- ]), go = object({
6124
+ ]), _o = object({
6119
6125
  docsUrl: string(),
6120
6126
  verifiedAt: string(),
6121
6127
  version: string().optional(),
@@ -6127,11 +6133,11 @@ var mo = object({
6127
6133
  "unversioned"
6128
6134
  ]),
6129
6135
  note: string().optional()
6130
- }), _o = object({
6136
+ }), vo = object({
6131
6137
  key: string(),
6132
6138
  label: string(),
6133
6139
  rank: number()
6134
- }), vo = object({
6140
+ }), yo = object({
6135
6141
  text: string(),
6136
6142
  tone: _enum([
6137
6143
  "info",
@@ -6139,7 +6145,7 @@ var mo = object({
6139
6145
  "success",
6140
6146
  "danger"
6141
6147
  ])
6142
- }), yo = object({
6148
+ }), bo = object({
6143
6149
  serviceKey: string(),
6144
6150
  name: string(),
6145
6151
  description: string(),
@@ -6149,16 +6155,16 @@ var mo = object({
6149
6155
  category: string(),
6150
6156
  categoryLabel: string(),
6151
6157
  categoryRank: number(),
6152
- secondaryCategories: array(_o),
6153
- badges: array(vo),
6158
+ secondaryCategories: array(vo),
6159
+ badges: array(yo),
6154
6160
  tags: array(string()),
6155
6161
  searchAliases: array(string()),
6156
6162
  jtbd: string(),
6157
6163
  useCase: string(),
6158
6164
  demoScenario: string(),
6159
- sampleConversation: array(mo),
6160
- publicStatus: ho,
6161
- apiVerification: go.optional(),
6165
+ sampleConversation: array(ho),
6166
+ publicStatus: go,
6167
+ apiVerification: _o.optional(),
6162
6168
  setupDifficulty: string(),
6163
6169
  risk: string(),
6164
6170
  price: string(),
@@ -6171,16 +6177,16 @@ var mo = object({
6171
6177
  ]),
6172
6178
  setupSummary: string().optional(),
6173
6179
  pagePath: string()
6174
- }), bo = object({
6180
+ }), xo = object({
6175
6181
  fullName: string().min(1).max(100).optional(),
6176
6182
  avatarMediaId: string().nullable().optional(),
6177
6183
  primaryAgentId: string().nullable().optional(),
6178
6184
  lastActiveOrgId: string().nullable().optional()
6179
- }).strict(), xo = /* @__PURE__ */ t({
6180
- ASSISTANT_SILENCE_CONTROLS: () => U,
6181
- ActionAreaSchema: () => Ir,
6182
- ActionButtonSchema: () => M,
6183
- Agent: () => V,
6185
+ }).strict(), So = /* @__PURE__ */ t({
6186
+ ASSISTANT_SILENCE_CONTROLS: () => W,
6187
+ ActionAreaSchema: () => Fr,
6188
+ ActionButtonSchema: () => N,
6189
+ Agent: () => H,
6184
6190
  AudioFormatSchema: () => Er,
6185
6191
  AudioMediaSchema: () => jr,
6186
6192
  AudioPropertiesSchema: () => Or,
@@ -6188,18 +6194,18 @@ var mo = object({
6188
6194
  BOT_API_LLM_PATH: () => _i,
6189
6195
  BOT_API_PATH: () => gi,
6190
6196
  BOT_USER_AGENT: () => pi,
6191
- ButtonDesignSchema: () => j,
6192
- ButtonThemeSchema: () => Fr,
6193
- CHART_THEME: () => zr,
6194
- CHAT_ISSUE_CODES: () => N,
6195
- CHAT_ISSUE_COPY: () => F,
6197
+ ButtonDesignSchema: () => M,
6198
+ ButtonThemeSchema: () => Pr,
6199
+ CHART_THEME: () => Rr,
6200
+ CHAT_ISSUE_CODES: () => P,
6201
+ CHAT_ISSUE_COPY: () => I,
6196
6202
  CookieUtil: () => CookieUtil,
6197
6203
  DocumentMediaSchema: () => Mr,
6198
6204
  ERROR_CODES: () => wi,
6199
- EnrichedAgentSchema: () => B,
6205
+ EnrichedAgentSchema: () => V,
6200
6206
  ImageFormatSchema: () => wr,
6201
6207
  ImageMediaSchema: () => kr,
6202
- LIFECYCLE_COLOR: () => Kr,
6208
+ LIFECYCLE_COLOR: () => Gr,
6203
6209
  Logger: () => p,
6204
6210
  MEDIA_CONTEXTS: () => xr,
6205
6211
  MEDIA_TYPES: () => br,
@@ -6208,18 +6214,18 @@ var mo = object({
6208
6214
  MediaStatusSchema: () => Sr,
6209
6215
  MediaTypeSchema: () => O,
6210
6216
  MediaUnionSchema: () => Nr,
6211
- NavItemSchema: () => Lr,
6212
- NavListSchema: () => Rr,
6217
+ NavItemSchema: () => Ir,
6218
+ NavListSchema: () => Lr,
6213
6219
  PAGELINES_APP_CONFIG: () => i,
6214
6220
  SettingsObject: () => SettingsObject,
6215
- SizeSchema: () => Pr,
6221
+ SizeSchema: () => j,
6216
6222
  SocialAccountSchema: () => vr,
6217
6223
  SocialAccountsSchema: () => yr,
6218
- UNKNOWN_STATUS: () => Gr,
6224
+ UNKNOWN_STATUS: () => Wr,
6219
6225
  VideoFormatSchema: () => Tr,
6220
6226
  VideoMediaSchema: () => Ar,
6221
6227
  VideoPropertiesSchema: () => Dr,
6222
- agentSchema: () => z,
6228
+ agentSchema: () => B,
6223
6229
  apiError: () => apiError,
6224
6230
  apiOk: () => apiOk,
6225
6231
  appleAuthSchema: () => ci,
@@ -6263,10 +6269,10 @@ var mo = object({
6263
6269
  loginSchema: () => ti,
6264
6270
  mapAuthErrorCode: () => mapAuthErrorCode,
6265
6271
  nanoid: () => nanoid$1,
6266
- notificationWire: () => ro,
6272
+ notificationWire: () => io,
6267
6273
  objectId: () => objectId,
6268
6274
  orgInfoSchema: () => di,
6269
- orgSchema: () => H,
6275
+ orgSchema: () => U,
6270
6276
  orgWithDefaultAgentSchema: () => li,
6271
6277
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6272
6278
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
@@ -6285,8 +6291,8 @@ var mo = object({
6285
6291
  verifyCodeSchema: () => ri,
6286
6292
  warn: () => ee,
6287
6293
  withChatEventTurnId: () => withChatEventTurnId,
6288
- zAcceptInvitationBody: () => $a,
6289
- zAccessibleAgentRow: () => no,
6294
+ zAcceptInvitationBody: () => eo,
6295
+ zAccessibleAgentRow: () => ro,
6290
6296
  zAgentRow: () => Si,
6291
6297
  zApiError: () => Ei,
6292
6298
  zApiOk: () => zApiOk,
@@ -6302,26 +6308,27 @@ var mo = object({
6302
6308
  zBillingPaymentMethod: () => aa,
6303
6309
  zBillingPlanKey: () => ra,
6304
6310
  zBillingStatus: () => ia,
6311
+ zBillingTier: () => Xr,
6305
6312
  zBotGenerateImageBody: () => Ki,
6306
6313
  zBotGenerateImageResponse: () => qi,
6307
6314
  zCancelConversationTurnBody: () => Na,
6308
6315
  zCancelConversationTurnResponse: () => Pa,
6309
- zCantRebuildReason: () => to,
6310
- zCantWakeReason: () => eo,
6311
- zChatAttachment: () => Y,
6316
+ zCantRebuildReason: () => no,
6317
+ zCantWakeReason: () => to,
6318
+ zChatAttachment: () => X,
6312
6319
  zChatAttachmentInput: () => Ri,
6313
6320
  zChatAttachmentPlacement: () => Ai,
6314
6321
  zChatCardSpec: () => ga,
6315
6322
  zChatErrorData: () => pa,
6316
6323
  zChatEvent: () => ma,
6317
- zChatIssue: () => P,
6324
+ zChatIssue: () => F,
6318
6325
  zChatMessage: () => Li,
6319
6326
  zChatMessageAttentionItem: () => Pi,
6320
6327
  zChatMessageAttentionRef: () => ji,
6321
6328
  zChatMessageAttentionUpdate: () => Fi,
6322
6329
  zChatMessageMetadata: () => Ii,
6323
6330
  zChatStatusData: () => fa,
6324
- zChatToolActivityData: () => J,
6331
+ zChatToolActivityData: () => Y,
6325
6332
  zChatToolActivityVisual: () => Di,
6326
6333
  zChatVisualSpec: () => Oa,
6327
6334
  zCompleteCheckoutData: () => la,
@@ -6333,9 +6340,9 @@ var mo = object({
6333
6340
  zCreateAgentBody: () => bi,
6334
6341
  zCreateConversationBody: () => Vi,
6335
6342
  zCreateConversationSessionBody: () => Hi,
6336
- zCreateOrgBody: () => lo,
6337
- zDesiredStatus: () => I,
6338
- zErrorCode: () => q,
6343
+ zCreateOrgBody: () => uo,
6344
+ zDesiredStatus: () => L,
6345
+ zErrorCode: () => J,
6339
6346
  zFleetAgent: () => Va,
6340
6347
  zFleetSummary: () => Ha,
6341
6348
  zFleetSyncResponse: () => Ua,
@@ -6345,45 +6352,45 @@ var mo = object({
6345
6352
  zHandoffMintBody: () => Zi,
6346
6353
  zHandoffMintData: () => Qi,
6347
6354
  zHandoffMintResponse: () => $i,
6348
- zIanaTimezone: () => K,
6355
+ zIanaTimezone: () => q,
6349
6356
  zImageAspectRatio: () => Wi,
6350
6357
  zImageResolution: () => Gi,
6351
- zInvitationPreview: () => Xa,
6352
- zInvitationRow: () => Ya,
6353
- zInviteBody: () => Za,
6354
- zLifecycle: () => L,
6355
- zLifecycleVerb: () => Yr,
6356
- zLiveStatus: () => Wr,
6358
+ zInvitationPreview: () => Za,
6359
+ zInvitationRow: () => Xa,
6360
+ zInviteBody: () => Qa,
6361
+ zLifecycle: () => R,
6362
+ zLifecycleVerb: () => Jr,
6363
+ zLiveStatus: () => Ur,
6357
6364
  zMarkReadBody: () => Ma,
6358
- zMediaContext: () => $,
6359
- zMediaObject: () => Ga,
6360
- zMediaType: () => Wa,
6361
- zMemberRow: () => Ja,
6365
+ zMediaContext: () => Wa,
6366
+ zMediaObject: () => Ka,
6367
+ zMediaType: () => Ga,
6368
+ zMemberRow: () => Ya,
6362
6369
  zMessageSearchResult: () => Fa,
6363
- zOrgRow: () => co,
6364
- zOrgSummary: () => po,
6370
+ zOrgRow: () => lo,
6371
+ zOrgSummary: () => mo,
6365
6372
  zPaginatedResponse: () => zPaginatedResponse,
6366
- zPlanTone: () => fo,
6373
+ zPlanTone: () => po,
6367
6374
  zProviderErrorKind: () => Ti,
6368
- zPublicServiceOverview: () => yo,
6375
+ zPublicServiceOverview: () => bo,
6369
6376
  zReportMessageBody: () => Ui,
6370
- zRuntimeOperation: () => R,
6371
- zRuntimeOperationKind: () => Hr,
6372
- zRuntimeOperationStatus: () => Ur,
6377
+ zRuntimeOperation: () => z,
6378
+ zRuntimeOperationKind: () => Vr,
6379
+ zRuntimeOperationStatus: () => Hr,
6373
6380
  zSendMessageBody: () => zi,
6374
6381
  zSuggestedPrompt: () => Ci,
6375
6382
  zUpdateAgentBody: () => xi,
6376
- zUpdateOrgBody: () => uo,
6377
- zUpdateRoleBody: () => Qa,
6378
- zUpdateUserBody: () => bo,
6379
- zUploadMediaBody: () => Ka
6380
- }), So = "1.0.0";
6383
+ zUpdateOrgBody: () => fo,
6384
+ zUpdateRoleBody: () => $a,
6385
+ zUpdateUserBody: () => xo,
6386
+ zUploadMediaBody: () => qa
6387
+ }), Co = "1.0.0";
6381
6388
  function buildContract(e = {}) {
6382
6389
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6383
6390
  let r = contractNameFor(e);
6384
6391
  r && (n[r] = toSchema(t));
6385
6392
  };
6386
- for (let [e, t] of Object.entries(xo)) {
6393
+ for (let [e, t] of Object.entries(So)) {
6387
6394
  if (t instanceof T) {
6388
6395
  addSchema(e, t);
6389
6396
  continue;
@@ -6391,7 +6398,7 @@ function buildContract(e = {}) {
6391
6398
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof T && addSchema(e, n);
6392
6399
  }
6393
6400
  return {
6394
- version: So,
6401
+ version: Co,
6395
6402
  generatedAt: t.toISOString(),
6396
6403
  schemas: n
6397
6404
  };
@@ -6411,6 +6418,6 @@ function sortedReplacer(e, t) {
6411
6418
  return t;
6412
6419
  }
6413
6420
  //#endregion
6414
- export { So as CONTRACT_VERSION, buildContract, serializeContract };
6421
+ export { Co as CONTRACT_VERSION, buildContract, serializeContract };
6415
6422
 
6416
6423
  //# sourceMappingURL=contract.js.map