@pagelines/sdk 1.0.736 → 1.0.738

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
@@ -4191,35 +4191,35 @@ var Vr = _enum(["account", "error"]), N = [
4191
4191
  title: "Payment method needed",
4192
4192
  help: "Add a payment method to turn live replies on.",
4193
4193
  actionLabel: "Add payment method",
4194
- oneLine: "Add a payment method to turn live replies on."
4194
+ oneLine: "The workspace needs a payment method before this assistant can reply."
4195
4195
  },
4196
4196
  billing_seat_limit: {
4197
4197
  bucket: "account",
4198
4198
  title: "Active assistant limit reached",
4199
4199
  help: "Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling.",
4200
4200
  actionLabel: "Open billing",
4201
- oneLine: "Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling."
4201
+ oneLine: "The workspace has no unused active-assistant slots; one assistant must sleep or the limit must be raised."
4202
4202
  },
4203
4203
  billing_past_due: {
4204
4204
  bucket: "account",
4205
- title: "Payment failed",
4206
- help: "Your last charge didn't go through. Update your payment method to keep your assistant running.",
4207
- actionLabel: "Update payment",
4208
- oneLine: "Your workspace payment failed; update it to keep your assistant running."
4205
+ title: "Assistants paused",
4206
+ help: "Payment is overdue. Fix it and we’ll bring your assistants back online.",
4207
+ actionLabel: "Fix payment",
4208
+ oneLine: "The workspace payment is overdue; its owner must fix it before assistants come back online."
4209
4209
  },
4210
4210
  billing_runaway_cap: {
4211
4211
  bucket: "account",
4212
4212
  title: "Usage limit reached",
4213
4213
  help: "Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",
4214
4214
  actionLabel: "Contact support",
4215
- oneLine: "Your workspace reached its usage limit. Review billing or contact support to keep your assistant running."
4215
+ oneLine: "The workspace reached its usage limit; its owner can review billing or contact support."
4216
4216
  },
4217
4217
  billing_budget_reached: {
4218
4218
  bucket: "account",
4219
4219
  title: "Budget reached",
4220
4220
  help: "Your assistant hit your monthly cap. Enable overage or raise the cap to keep replying.",
4221
4221
  actionLabel: "Adjust billing",
4222
- oneLine: "Your workspace reached its billing limit; adjust billing to keep replying."
4222
+ oneLine: "The workspace reached its billing limit; its owner must adjust billing before this assistant can reply."
4223
4223
  },
4224
4224
  agent_deleted: {
4225
4225
  bucket: "error",
@@ -4247,7 +4247,7 @@ var Vr = _enum(["account", "error"]), N = [
4247
4247
  title: "Not responding",
4248
4248
  help: "Open the assistant profile to check status or restart it.",
4249
4249
  actionLabel: "Open assistant",
4250
- oneLine: "This assistant is not responding right now. Open its profile to check status."
4250
+ oneLine: "This assistant is not responding right now; its owner can check its status."
4251
4251
  },
4252
4252
  agent_wake_timeout: {
4253
4253
  bucket: "error",
@@ -4261,28 +4261,28 @@ var Vr = _enum(["account", "error"]), N = [
4261
4261
  title: "Reply too slow",
4262
4262
  help: "Your assistant took too long to start replying. Try your message again.",
4263
4263
  actionLabel: "Try again",
4264
- oneLine: "Your assistant took too long to start replying; try your message again."
4264
+ oneLine: "This assistant took too long to start replying; try the message again."
4265
4265
  },
4266
4266
  stream_disconnect: {
4267
4267
  bucket: "error",
4268
4268
  title: "Connection lost",
4269
4269
  help: "The connection dropped while your assistant was replying. Send your message again to retry.",
4270
4270
  actionLabel: "Try again",
4271
- oneLine: "The connection dropped while your assistant was replying; try your message again."
4271
+ oneLine: "The connection dropped while this assistant was replying; try the message again."
4272
4272
  },
4273
4273
  empty_stream: {
4274
4274
  bucket: "error",
4275
4275
  title: "Empty reply",
4276
4276
  help: "Your assistant could not generate a reply. Try your message again.",
4277
4277
  actionLabel: "Try again",
4278
- oneLine: "Your assistant did not return a reply; try your message again."
4278
+ oneLine: "This assistant did not return a reply; try the message again."
4279
4279
  },
4280
4280
  tool_protocol: {
4281
4281
  bucket: "error",
4282
4282
  title: "Tool call failed",
4283
4283
  help: "Your assistant tried to use a tool in a format PageLines could not run. Try the message again.",
4284
4284
  actionLabel: "Try again",
4285
- oneLine: "Your assistant tried to use a tool in a format PageLines could not run; try your message again."
4285
+ oneLine: "This assistant tried to use a tool in a format PageLines could not run; try the message again."
4286
4286
  },
4287
4287
  rate_limit: {
4288
4288
  bucket: "error",
@@ -5147,6 +5147,10 @@ var Vi = object({
5147
5147
  status: string(),
5148
5148
  invoicePdf: string().optional()
5149
5149
  }), sa = object({
5150
+ graceEndsAt: string().optional(),
5151
+ suspended: boolean(),
5152
+ url: string().optional()
5153
+ }), ca = object({
5150
5154
  plan: ra,
5151
5155
  status: ia,
5152
5156
  price: number(),
@@ -5158,30 +5162,31 @@ var Vi = object({
5158
5162
  trialEnd: string().optional(),
5159
5163
  trialDaysRemaining: number().optional(),
5160
5164
  paymentMethod: aa.optional(),
5165
+ paymentRecovery: sa.optional(),
5161
5166
  invoices: array(oa),
5162
5167
  stripeError: string().optional()
5163
- }), ca = object({
5168
+ }), la = object({
5164
5169
  orgId: string(),
5165
5170
  agentName: string().optional(),
5166
5171
  runtime: string().optional()
5167
- }), la = object({
5172
+ }), ua = object({
5168
5173
  created: number(),
5169
5174
  skipped: number(),
5170
5175
  errors: array(string())
5171
- }), ua = object({
5176
+ }), da = object({
5172
5177
  updated: number(),
5173
5178
  errors: array(string())
5174
- }), da = Wr, fa = object({
5179
+ }), fa = Wr, pa = object({
5175
5180
  code: q,
5176
5181
  message: string(),
5177
5182
  bucket: _enum(["account", "error"]).optional(),
5178
5183
  actionLabel: string().optional(),
5179
5184
  actionUrl: string().optional(),
5180
5185
  help: string().optional()
5181
- }), pa = discriminatedUnion("event", [
5186
+ }), ma = discriminatedUnion("event", [
5182
5187
  object({
5183
5188
  event: literal("status"),
5184
- data: da
5189
+ data: fa
5185
5190
  }),
5186
5191
  object({
5187
5192
  event: literal("message"),
@@ -5217,7 +5222,7 @@ var Vi = object({
5217
5222
  }),
5218
5223
  object({
5219
5224
  event: literal("error"),
5220
- data: fa
5225
+ data: pa
5221
5226
  })
5222
5227
  ]);
5223
5228
  function chatEventUserTurnId(e) {
@@ -5369,7 +5374,7 @@ function parseChatEvent(e) {
5369
5374
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5370
5375
  if (!n || r === void 0) return null;
5371
5376
  try {
5372
- let e = pa.safeParse({
5377
+ let e = ma.safeParse({
5373
5378
  event: n,
5374
5379
  data: JSON.parse(r)
5375
5380
  });
@@ -5380,7 +5385,7 @@ function parseChatEvent(e) {
5380
5385
  }
5381
5386
  //#endregion
5382
5387
  //#region ../core/dist/wire/chat-card.js
5383
- var ma = object({
5388
+ var ha = object({
5384
5389
  label: string().trim().min(1).max(40),
5385
5390
  reply: string().trim().min(1).max(500),
5386
5391
  style: _enum([
@@ -5388,11 +5393,11 @@ var ma = object({
5388
5393
  "default",
5389
5394
  "destructive"
5390
5395
  ]).optional()
5391
- }).strip(), ha = object({
5396
+ }).strip(), ga = object({
5392
5397
  version: literal(1),
5393
5398
  title: string().trim().min(1).max(200),
5394
5399
  body: string().trim().min(1).max(4e3).optional(),
5395
- actions: array(ma).min(1).max(3).optional()
5400
+ actions: array(ha).min(1).max(3).optional()
5396
5401
  }).strip();
5397
5402
  function parseChatCardFencePayload(e) {
5398
5403
  let t;
@@ -5405,7 +5410,7 @@ function parseChatCardFencePayload(e) {
5405
5410
  message: e instanceof Error ? e.message : "Invalid JSON"
5406
5411
  };
5407
5412
  }
5408
- let n = ha.safeParse(t);
5413
+ let n = ga.safeParse(t);
5409
5414
  return n.success ? {
5410
5415
  ok: !0,
5411
5416
  spec: n.data
@@ -5417,36 +5422,36 @@ function parseChatCardFencePayload(e) {
5417
5422
  }
5418
5423
  //#endregion
5419
5424
  //#region ../core/dist/wire/chat-visual.js
5420
- var ga = string().trim().min(1).max(240), _a = 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), va = record(X, union([
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([
5421
5426
  string().max(500),
5422
5427
  number().finite(),
5423
5428
  boolean(),
5424
5429
  _null()
5425
- ])), ya = _enum([
5430
+ ])), ba = _enum([
5426
5431
  "compact",
5427
5432
  "currency",
5428
5433
  "duration",
5429
5434
  "integer",
5430
5435
  "percent",
5431
5436
  "raw"
5432
- ]), ba = object({
5433
- title: ga,
5434
- description: _a.optional(),
5435
- footer: _a.optional()
5436
- }).strip(), xa = object({
5437
+ ]), xa = object({
5438
+ title: _a,
5439
+ description: va.optional(),
5440
+ footer: va.optional()
5441
+ }).strip(), Sa = object({
5437
5442
  dataKey: X,
5438
5443
  label: Z.optional(),
5439
5444
  axisLabel: Z.optional(),
5440
- valueFormat: ya.optional(),
5445
+ valueFormat: ba.optional(),
5441
5446
  valuePrefix: string().trim().max(12).optional(),
5442
5447
  valueSuffix: string().trim().max(12).optional()
5443
- }).strip(), Sa = object({
5448
+ }).strip(), Ca = object({
5444
5449
  kind: literal("linear"),
5445
5450
  dataKey: X,
5446
5451
  label: Z.optional()
5447
- }).strip(), Ca = object({
5452
+ }).strip(), wa = object({
5448
5453
  version: literal(1),
5449
- meta: ba,
5454
+ meta: xa,
5450
5455
  fallbackMarkdown: string().trim().min(1).max(4e3)
5451
5456
  }).strip();
5452
5457
  function dataKeys(e) {
@@ -5488,7 +5493,7 @@ function requireNumericDataKeys(e, t, n) {
5488
5493
  });
5489
5494
  }
5490
5495
  }
5491
- var wa = discriminatedUnion("chartType", [Ca.extend({
5496
+ var Ta = discriminatedUnion("chartType", [wa.extend({
5492
5497
  visualType: literal("chart"),
5493
5498
  chartType: _enum([
5494
5499
  "bar",
@@ -5497,11 +5502,11 @@ var wa = discriminatedUnion("chartType", [Ca.extend({
5497
5502
  ]),
5498
5503
  xKey: X,
5499
5504
  xAxisLabel: Z.optional(),
5500
- series: array(xa).min(1).max(6),
5501
- data: array(va).min(1).max(120),
5505
+ series: array(Sa).min(1).max(6),
5506
+ data: array(ya).min(1).max(120),
5502
5507
  layout: _enum(["horizontal", "vertical"]).optional(),
5503
5508
  stacking: _enum(["grouped", "stacked"]).optional(),
5504
- trendLine: Sa.optional()
5509
+ trendLine: Ca.optional()
5505
5510
  }).strip().superRefine((e, t) => {
5506
5511
  e.stacking && e.chartType !== "bar" && t.addIssue({
5507
5512
  code: "custom",
@@ -5539,13 +5544,13 @@ var wa = discriminatedUnion("chartType", [Ca.extend({
5539
5544
  path: ["trendLine", "dataKey"],
5540
5545
  value: e.trendLine.dataKey
5541
5546
  }] : []], t);
5542
- }), Ca.extend({
5547
+ }), wa.extend({
5543
5548
  visualType: literal("chart"),
5544
5549
  chartType: literal("pie"),
5545
5550
  nameKey: X,
5546
5551
  valueKey: X,
5547
- series: array(xa).max(1).optional(),
5548
- data: array(va).min(1).max(16)
5552
+ series: array(Sa).max(1).optional(),
5553
+ data: array(ya).min(1).max(16)
5549
5554
  }).strip().superRefine((e, t) => {
5550
5555
  requireDataKeys(e.data, [
5551
5556
  {
@@ -5569,10 +5574,10 @@ var wa = discriminatedUnion("chartType", [Ca.extend({
5569
5574
  value: e.valueKey,
5570
5575
  nonnegative: !0
5571
5576
  }], t);
5572
- })]), Ta = object({
5577
+ })]), Ea = object({
5573
5578
  id: X,
5574
5579
  label: Z,
5575
- detail: _a.optional(),
5580
+ detail: va.optional(),
5576
5581
  kind: _enum([
5577
5582
  "actor",
5578
5583
  "agent",
@@ -5583,11 +5588,11 @@ var wa = discriminatedUnion("chartType", [Ca.extend({
5583
5588
  "system",
5584
5589
  "task"
5585
5590
  ]).optional()
5586
- }).strip(), Ea = object({
5591
+ }).strip(), Da = object({
5587
5592
  from: X,
5588
5593
  to: X,
5589
5594
  label: Z.optional()
5590
- }).strip(), Da = union([wa, Ca.extend({
5595
+ }).strip(), Oa = union([Ta, wa.extend({
5591
5596
  visualType: literal("diagram"),
5592
5597
  diagramType: _enum([
5593
5598
  "flow",
@@ -5601,8 +5606,8 @@ var wa = discriminatedUnion("chartType", [Ca.extend({
5601
5606
  "radial",
5602
5607
  "top-to-bottom"
5603
5608
  ]).default("auto"),
5604
- nodes: array(Ta).min(1).max(24),
5605
- edges: array(Ea).max(48)
5609
+ nodes: array(Ea).min(1).max(24),
5610
+ edges: array(Da).max(48)
5606
5611
  }).strip().superRefine((e, t) => {
5607
5612
  let n = new Set(e.nodes.map((e) => e.id));
5608
5613
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5761,11 +5766,11 @@ function parseChatVisualFencePayload(e) {
5761
5766
  fallbackMarkdown: r
5762
5767
  };
5763
5768
  }
5764
- let n = Da.safeParse(t);
5769
+ let n = Oa.safeParse(t);
5765
5770
  if (!n.success) {
5766
5771
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5767
5772
  if (e) {
5768
- let t = Da.safeParse(e);
5773
+ let t = Oa.safeParse(e);
5769
5774
  if (t.success) return {
5770
5775
  ok: !0,
5771
5776
  spec: t.data
@@ -5790,7 +5795,7 @@ function extractChatVisualFencePayloads(e) {
5790
5795
  }
5791
5796
  //#endregion
5792
5797
  //#region ../core/dist/wire/conversation.js
5793
- var Oa = object({
5798
+ var ka = object({
5794
5799
  type: _enum([
5795
5800
  "user",
5796
5801
  "agent",
@@ -5810,7 +5815,7 @@ var Oa = object({
5810
5815
  displayName: string().optional(),
5811
5816
  handle: string().optional(),
5812
5817
  avatarUrl: string().optional()
5813
- }).strict(), ka = object({
5818
+ }).strict(), Aa = object({
5814
5819
  messageId: string(),
5815
5820
  role: _enum([
5816
5821
  "user",
@@ -5820,7 +5825,7 @@ var Oa = object({
5820
5825
  content: string(),
5821
5826
  sequence: string(),
5822
5827
  createdAt: string()
5823
- }), Aa = object({
5828
+ }), ja = object({
5824
5829
  conversationId: string(),
5825
5830
  orgId: string(),
5826
5831
  kind: _enum(["direct", "group"]),
@@ -5830,30 +5835,30 @@ var Oa = object({
5830
5835
  "requester",
5831
5836
  "member"
5832
5837
  ]),
5833
- participants: array(Oa),
5834
- lastMessage: ka.nullable(),
5838
+ participants: array(ka),
5839
+ lastMessage: Aa.nullable(),
5835
5840
  unreadCount: number().int().nonnegative(),
5836
5841
  latestSequence: string().nullable()
5837
- }), ja = object({ sequence: string().min(1) }), Ma = object({ turnId: string().min(1).optional() }).strict(), Na = object({
5842
+ }), Ma = object({ sequence: string().min(1) }), Na = object({ turnId: string().min(1).optional() }).strict(), Pa = object({
5838
5843
  cancelled: boolean(),
5839
5844
  cancelledTurnIds: array(string())
5840
- }).strict(), Pa = object({
5845
+ }).strict(), Fa = object({
5841
5846
  conversationId: string(),
5842
5847
  messageId: string(),
5843
5848
  sequence: string(),
5844
5849
  snippet: string(),
5845
5850
  createdAt: string(),
5846
- participants: array(Oa)
5847
- }), Fa = object({
5851
+ participants: array(ka)
5852
+ }), Ia = object({
5848
5853
  conversationId: string(),
5849
- lastMessage: ka.nullable(),
5854
+ lastMessage: Aa.nullable(),
5850
5855
  unreadCount: number().int().nonnegative(),
5851
5856
  latestSequence: string().nullable()
5852
- }), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), Ia = preprocess((e) => e === void 0 ? null : e, L.nullable()), La = preprocess((e) => e === void 0 ? null : e, I.nullable()), Ra = preprocess((e) => e === void 0 ? null : e, _enum([
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([
5853
5858
  "user",
5854
5859
  "assistant",
5855
5860
  "system"
5856
- ]).nullable()), za = preprocess((e) => e === void 0 ? 0 : e, number()), Ba = object({
5861
+ ]).nullable()), Ba = preprocess((e) => e === void 0 ? 0 : e, number()), Va = object({
5857
5862
  agentId: string(),
5858
5863
  handle: string(),
5859
5864
  name: string(),
@@ -5862,19 +5867,19 @@ var Oa = object({
5862
5867
  orgHandle: Q,
5863
5868
  ownerEmail: Q,
5864
5869
  ownerName: Q,
5865
- state: Ia,
5866
- desiredStatus: La,
5870
+ state: La,
5871
+ desiredStatus: Ra,
5867
5872
  runtime: string(),
5868
5873
  imageVersion: Q,
5869
5874
  lastHealthyAt: Q,
5870
5875
  lastActiveAt: Q,
5871
5876
  lastUserMessageAt: Q,
5872
5877
  lastMessageAt: Q,
5873
- lastMessageRole: Ra,
5878
+ lastMessageRole: za,
5874
5879
  lastMessageChannel: Q,
5875
5880
  primaryChannel: Q,
5876
- totalMessages: za,
5877
- totalSessions: za,
5881
+ totalMessages: Ba,
5882
+ totalSessions: Ba,
5878
5883
  error: Q,
5879
5884
  appHandle: string(),
5880
5885
  flyAppExists: boolean(),
@@ -5883,7 +5888,7 @@ var Oa = object({
5883
5888
  billingActive: boolean(),
5884
5889
  createdAt: string(),
5885
5890
  updatedAt: string()
5886
- }), Va = object({
5891
+ }), Ha = object({
5887
5892
  running: number(),
5888
5893
  stopped: number(),
5889
5894
  error: number(),
@@ -5891,22 +5896,22 @@ var Oa = object({
5891
5896
  stopping: number(),
5892
5897
  unknown: number(),
5893
5898
  total: number()
5894
- }), Ha = object({
5895
- agents: array(Ba),
5896
- summary: Va,
5899
+ }), Ua = object({
5900
+ agents: array(Va),
5901
+ summary: Ha,
5897
5902
  orphanedApps: array(string()),
5898
5903
  flyAppCount: number().optional(),
5899
5904
  latestVersion: string().optional(),
5900
5905
  latestVersions: record(string(), string()).optional()
5901
- }), $ = k, Ua = O, Wa = object({
5906
+ }), $ = k, Wa = O, Ga = object({
5902
5907
  mediaId: string(),
5903
5908
  src: string(),
5904
5909
  alt: string().nullable().optional(),
5905
5910
  filename: string().optional(),
5906
5911
  displayName: string().nullable().optional(),
5907
5912
  mimeType: string().optional(),
5908
- mediaType: Ua.optional(),
5909
- type: Ua.optional(),
5913
+ mediaType: Wa.optional(),
5914
+ type: Wa.optional(),
5910
5915
  size: number().optional(),
5911
5916
  width: number().nullable().optional(),
5912
5917
  height: number().nullable().optional(),
@@ -5920,13 +5925,13 @@ var Oa = object({
5920
5925
  agentId: string().nullable().optional(),
5921
5926
  createdAt: string().optional(),
5922
5927
  updatedAt: string().optional()
5923
- }), Ga = object({
5928
+ }), Ka = object({
5924
5929
  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."),
5925
5930
  context: $.optional().default("general"),
5926
5931
  agentId: string().optional(),
5927
5932
  orgId: string().optional(),
5928
5933
  duration: number().optional()
5929
- }), Ka = object({
5934
+ }), qa = object({
5930
5935
  mediaId: string().optional(),
5931
5936
  src: string().optional(),
5932
5937
  alt: string().optional(),
@@ -5935,7 +5940,7 @@ var Oa = object({
5935
5940
  mimeType: string().optional(),
5936
5941
  mediaType: string().optional(),
5937
5942
  blurhash: string().optional()
5938
- }), qa = object({
5943
+ }), Ja = object({
5939
5944
  membershipId: string(),
5940
5945
  userId: string(),
5941
5946
  orgId: string(),
@@ -5950,15 +5955,15 @@ var Oa = object({
5950
5955
  status: _enum(["active", "suspended"]),
5951
5956
  joinedAt: string(),
5952
5957
  lastSeenAt: string().optional(),
5953
- avatar: Ka.optional()
5954
- }), Ja = object({
5958
+ avatar: qa.optional()
5959
+ }), Ya = object({
5955
5960
  invitationId: string(),
5956
5961
  email: string(),
5957
5962
  role: _enum(["admin", "member"]),
5958
5963
  status: string(),
5959
5964
  expiresAt: string(),
5960
5965
  createdAt: string()
5961
- }), Ya = object({
5966
+ }), Xa = object({
5962
5967
  token: string(),
5963
5968
  email: string(),
5964
5969
  orgId: string(),
@@ -5980,20 +5985,20 @@ var Oa = object({
5980
5985
  ]),
5981
5986
  expiresAt: string(),
5982
5987
  memberCount: number().optional()
5983
- }), Xa = object({
5988
+ }), Za = object({
5984
5989
  email: string().email(),
5985
5990
  role: _enum(["admin", "member"]).optional(),
5986
5991
  message: string().max(500).optional()
5987
- }).strict(), Za = object({ role: _enum(["admin", "member"]) }).strict(), Qa = object({ token: string().min(1) }).strict(), $a = _enum([
5992
+ }).strict(), Qa = object({ role: _enum(["admin", "member"]) }).strict(), $a = object({ token: string().min(1) }).strict(), eo = _enum([
5988
5993
  "planLimit",
5989
5994
  "billingOverdue",
5990
5995
  "rebuilding",
5991
5996
  "agentNotFound"
5992
- ]), eo = _enum([
5997
+ ]), to = _enum([
5993
5998
  "rebuilding",
5994
5999
  "provisioning",
5995
6000
  "billingOverdue"
5996
- ]), to = object({
6001
+ ]), no = object({
5997
6002
  agentId: string(),
5998
6003
  name: string(),
5999
6004
  avatar: A.optional(),
@@ -6013,21 +6018,21 @@ var Oa = object({
6013
6018
  detail: string().optional(),
6014
6019
  blocker: P.optional(),
6015
6020
  canWake: boolean(),
6016
- cantWakeReason: $a.optional(),
6021
+ cantWakeReason: eo.optional(),
6017
6022
  canRebuild: boolean(),
6018
- cantRebuildReason: eo.optional()
6019
- }), no = /* @__PURE__ */ t({
6020
- zNotificationTelemetryAck: () => oo,
6021
- zNotificationTelemetryEvent: () => ao,
6022
- zRegisterDeviceRequest: () => ro,
6023
- zRegisterDeviceResponse: () => io
6024
- }), ro = object({
6023
+ cantRebuildReason: to.optional()
6024
+ }), ro = /* @__PURE__ */ t({
6025
+ zNotificationTelemetryAck: () => so,
6026
+ zNotificationTelemetryEvent: () => oo,
6027
+ zRegisterDeviceRequest: () => io,
6028
+ zRegisterDeviceResponse: () => ao
6029
+ }), io = object({
6025
6030
  deviceId: string().min(1).max(64),
6026
6031
  pushToken: string().min(1).max(200),
6027
6032
  appVersion: string().max(40).optional(),
6028
6033
  osVersion: string().max(40).optional(),
6029
6034
  model: string().max(80).optional()
6030
- }), io = object({ deviceId: string().min(1).max(64) }), ao = object({
6035
+ }), ao = object({ deviceId: string().min(1).max(64) }), oo = object({
6031
6036
  deviceId: string().min(1).max(64),
6032
6037
  kind: string().min(1).max(30),
6033
6038
  action: _enum([
@@ -6036,7 +6041,7 @@ var Oa = object({
6036
6041
  "dismissed"
6037
6042
  ]),
6038
6043
  messageId: string().max(32).optional()
6039
- }), oo = object({ updated: boolean() }), so = H.pick({
6044
+ }), so = object({ updated: boolean() }), co = H.pick({
6040
6045
  orgId: !0,
6041
6046
  handle: !0,
6042
6047
  name: !0,
@@ -6050,13 +6055,13 @@ var Oa = object({
6050
6055
  status: !0,
6051
6056
  updatedAt: !0
6052
6057
  }).extend({
6053
- avatar: Wa.nullable().optional(),
6054
- cover: Wa.nullable().optional()
6055
- }), co = object({
6058
+ avatar: Ga.nullable().optional(),
6059
+ cover: Ga.nullable().optional()
6060
+ }), lo = object({
6056
6061
  name: string().min(1).max(255),
6057
6062
  handle: string().min(2).max(50).optional(),
6058
6063
  timezone: K.optional()
6059
- }).strict(), lo = H.pick({
6064
+ }).strict(), uo = H.pick({
6060
6065
  name: !0,
6061
6066
  email: !0,
6062
6067
  website: !0,
@@ -6068,11 +6073,11 @@ var Oa = object({
6068
6073
  timezone: K.optional(),
6069
6074
  avatarMediaId: string().nullable().optional(),
6070
6075
  coverMediaId: string().nullable().optional()
6071
- }).strict(), uo = _enum([
6076
+ }).strict(), fo = _enum([
6072
6077
  "success",
6073
6078
  "info",
6074
6079
  "warning"
6075
- ]), fo = object({
6080
+ ]), po = object({
6076
6081
  org: object({
6077
6082
  orgId: string(),
6078
6083
  name: string(),
@@ -6081,7 +6086,7 @@ var Oa = object({
6081
6086
  plan: object({
6082
6087
  key: string(),
6083
6088
  label: string(),
6084
- tone: uo,
6089
+ tone: fo,
6085
6090
  status: string(),
6086
6091
  trialDaysRemaining: number().optional()
6087
6092
  }),
@@ -6102,15 +6107,15 @@ function zPaginatedResponse(e) {
6102
6107
  }
6103
6108
  //#endregion
6104
6109
  //#region ../core/dist/wire/public-services.js
6105
- var po = object({
6110
+ var mo = object({
6106
6111
  sender: _enum(["user", "agent"]),
6107
6112
  text: string()
6108
- }), mo = _enum([
6113
+ }), ho = _enum([
6109
6114
  "works-now",
6110
6115
  "guided-setup",
6111
6116
  "coming-soon",
6112
6117
  "custom-workflow"
6113
- ]), ho = object({
6118
+ ]), go = object({
6114
6119
  docsUrl: string(),
6115
6120
  verifiedAt: string(),
6116
6121
  version: string().optional(),
@@ -6122,11 +6127,11 @@ var po = object({
6122
6127
  "unversioned"
6123
6128
  ]),
6124
6129
  note: string().optional()
6125
- }), go = object({
6130
+ }), _o = object({
6126
6131
  key: string(),
6127
6132
  label: string(),
6128
6133
  rank: number()
6129
- }), _o = object({
6134
+ }), vo = object({
6130
6135
  text: string(),
6131
6136
  tone: _enum([
6132
6137
  "info",
@@ -6134,7 +6139,7 @@ var po = object({
6134
6139
  "success",
6135
6140
  "danger"
6136
6141
  ])
6137
- }), vo = object({
6142
+ }), yo = object({
6138
6143
  serviceKey: string(),
6139
6144
  name: string(),
6140
6145
  description: string(),
@@ -6144,16 +6149,16 @@ var po = object({
6144
6149
  category: string(),
6145
6150
  categoryLabel: string(),
6146
6151
  categoryRank: number(),
6147
- secondaryCategories: array(go),
6148
- badges: array(_o),
6152
+ secondaryCategories: array(_o),
6153
+ badges: array(vo),
6149
6154
  tags: array(string()),
6150
6155
  searchAliases: array(string()),
6151
6156
  jtbd: string(),
6152
6157
  useCase: string(),
6153
6158
  demoScenario: string(),
6154
- sampleConversation: array(po),
6155
- publicStatus: mo,
6156
- apiVerification: ho.optional(),
6159
+ sampleConversation: array(mo),
6160
+ publicStatus: ho,
6161
+ apiVerification: go.optional(),
6157
6162
  setupDifficulty: string(),
6158
6163
  risk: string(),
6159
6164
  price: string(),
@@ -6166,12 +6171,12 @@ var po = object({
6166
6171
  ]),
6167
6172
  setupSummary: string().optional(),
6168
6173
  pagePath: string()
6169
- }), yo = object({
6174
+ }), bo = object({
6170
6175
  fullName: string().min(1).max(100).optional(),
6171
6176
  avatarMediaId: string().nullable().optional(),
6172
6177
  primaryAgentId: string().nullable().optional(),
6173
6178
  lastActiveOrgId: string().nullable().optional()
6174
- }).strict(), bo = /* @__PURE__ */ t({
6179
+ }).strict(), xo = /* @__PURE__ */ t({
6175
6180
  ASSISTANT_SILENCE_CONTROLS: () => U,
6176
6181
  ActionAreaSchema: () => Ir,
6177
6182
  ActionButtonSchema: () => M,
@@ -6258,7 +6263,7 @@ var po = object({
6258
6263
  loginSchema: () => ti,
6259
6264
  mapAuthErrorCode: () => mapAuthErrorCode,
6260
6265
  nanoid: () => nanoid$1,
6261
- notificationWire: () => no,
6266
+ notificationWire: () => ro,
6262
6267
  objectId: () => objectId,
6263
6268
  orgInfoSchema: () => di,
6264
6269
  orgSchema: () => H,
@@ -6280,8 +6285,8 @@ var po = object({
6280
6285
  verifyCodeSchema: () => ri,
6281
6286
  warn: () => ee,
6282
6287
  withChatEventTurnId: () => withChatEventTurnId,
6283
- zAcceptInvitationBody: () => Qa,
6284
- zAccessibleAgentRow: () => to,
6288
+ zAcceptInvitationBody: () => $a,
6289
+ zAccessibleAgentRow: () => no,
6285
6290
  zAgentRow: () => Si,
6286
6291
  zApiError: () => Ei,
6287
6292
  zApiOk: () => zApiOk,
@@ -6290,50 +6295,50 @@ var po = object({
6290
6295
  zAuthSessionData: () => Yi,
6291
6296
  zAuthSessionResponse: () => Xi,
6292
6297
  zAutomationPrimaryChannel: () => yi,
6293
- zBackfillBillingData: () => ua,
6294
- zBackfillCustomersData: () => la,
6295
- zBillingDetails: () => sa,
6298
+ zBackfillBillingData: () => da,
6299
+ zBackfillCustomersData: () => ua,
6300
+ zBillingDetails: () => ca,
6296
6301
  zBillingInvoice: () => oa,
6297
6302
  zBillingPaymentMethod: () => aa,
6298
6303
  zBillingPlanKey: () => ra,
6299
6304
  zBillingStatus: () => ia,
6300
6305
  zBotGenerateImageBody: () => Ki,
6301
6306
  zBotGenerateImageResponse: () => qi,
6302
- zCancelConversationTurnBody: () => Ma,
6303
- zCancelConversationTurnResponse: () => Na,
6304
- zCantRebuildReason: () => eo,
6305
- zCantWakeReason: () => $a,
6307
+ zCancelConversationTurnBody: () => Na,
6308
+ zCancelConversationTurnResponse: () => Pa,
6309
+ zCantRebuildReason: () => to,
6310
+ zCantWakeReason: () => eo,
6306
6311
  zChatAttachment: () => Y,
6307
6312
  zChatAttachmentInput: () => Ri,
6308
6313
  zChatAttachmentPlacement: () => Ai,
6309
- zChatCardSpec: () => ha,
6310
- zChatErrorData: () => fa,
6311
- zChatEvent: () => pa,
6314
+ zChatCardSpec: () => ga,
6315
+ zChatErrorData: () => pa,
6316
+ zChatEvent: () => ma,
6312
6317
  zChatIssue: () => P,
6313
6318
  zChatMessage: () => Li,
6314
6319
  zChatMessageAttentionItem: () => Pi,
6315
6320
  zChatMessageAttentionRef: () => ji,
6316
6321
  zChatMessageAttentionUpdate: () => Fi,
6317
6322
  zChatMessageMetadata: () => Ii,
6318
- zChatStatusData: () => da,
6323
+ zChatStatusData: () => fa,
6319
6324
  zChatToolActivityData: () => J,
6320
6325
  zChatToolActivityVisual: () => Di,
6321
- zChatVisualSpec: () => Da,
6322
- zCompleteCheckoutData: () => ca,
6323
- zConversationLastMessage: () => ka,
6324
- zConversationParticipant: () => Oa,
6325
- zConversationSummary: () => Aa,
6326
+ zChatVisualSpec: () => Oa,
6327
+ zCompleteCheckoutData: () => la,
6328
+ zConversationLastMessage: () => Aa,
6329
+ zConversationParticipant: () => ka,
6330
+ zConversationSummary: () => ja,
6326
6331
  zConversationTarget: () => Bi,
6327
- zConversationUpdatedEvent: () => Fa,
6332
+ zConversationUpdatedEvent: () => Ia,
6328
6333
  zCreateAgentBody: () => bi,
6329
6334
  zCreateConversationBody: () => Vi,
6330
6335
  zCreateConversationSessionBody: () => Hi,
6331
- zCreateOrgBody: () => co,
6336
+ zCreateOrgBody: () => lo,
6332
6337
  zDesiredStatus: () => I,
6333
6338
  zErrorCode: () => q,
6334
- zFleetAgent: () => Ba,
6335
- zFleetSummary: () => Va,
6336
- zFleetSyncResponse: () => Ha,
6339
+ zFleetAgent: () => Va,
6340
+ zFleetSummary: () => Ha,
6341
+ zFleetSyncResponse: () => Ua,
6337
6342
  zHandoffConsumeBody: () => ea,
6338
6343
  zHandoffConsumeData: () => ta,
6339
6344
  zHandoffConsumeResponse: () => na,
@@ -6343,24 +6348,24 @@ var po = object({
6343
6348
  zIanaTimezone: () => K,
6344
6349
  zImageAspectRatio: () => Wi,
6345
6350
  zImageResolution: () => Gi,
6346
- zInvitationPreview: () => Ya,
6347
- zInvitationRow: () => Ja,
6348
- zInviteBody: () => Xa,
6351
+ zInvitationPreview: () => Xa,
6352
+ zInvitationRow: () => Ya,
6353
+ zInviteBody: () => Za,
6349
6354
  zLifecycle: () => L,
6350
6355
  zLifecycleVerb: () => Yr,
6351
6356
  zLiveStatus: () => Wr,
6352
- zMarkReadBody: () => ja,
6357
+ zMarkReadBody: () => Ma,
6353
6358
  zMediaContext: () => $,
6354
- zMediaObject: () => Wa,
6355
- zMediaType: () => Ua,
6356
- zMemberRow: () => qa,
6357
- zMessageSearchResult: () => Pa,
6358
- zOrgRow: () => so,
6359
- zOrgSummary: () => fo,
6359
+ zMediaObject: () => Ga,
6360
+ zMediaType: () => Wa,
6361
+ zMemberRow: () => Ja,
6362
+ zMessageSearchResult: () => Fa,
6363
+ zOrgRow: () => co,
6364
+ zOrgSummary: () => po,
6360
6365
  zPaginatedResponse: () => zPaginatedResponse,
6361
- zPlanTone: () => uo,
6366
+ zPlanTone: () => fo,
6362
6367
  zProviderErrorKind: () => Ti,
6363
- zPublicServiceOverview: () => vo,
6368
+ zPublicServiceOverview: () => yo,
6364
6369
  zReportMessageBody: () => Ui,
6365
6370
  zRuntimeOperation: () => R,
6366
6371
  zRuntimeOperationKind: () => Hr,
@@ -6368,17 +6373,17 @@ var po = object({
6368
6373
  zSendMessageBody: () => zi,
6369
6374
  zSuggestedPrompt: () => Ci,
6370
6375
  zUpdateAgentBody: () => xi,
6371
- zUpdateOrgBody: () => lo,
6372
- zUpdateRoleBody: () => Za,
6373
- zUpdateUserBody: () => yo,
6374
- zUploadMediaBody: () => Ga
6375
- }), xo = "1.0.0";
6376
+ zUpdateOrgBody: () => uo,
6377
+ zUpdateRoleBody: () => Qa,
6378
+ zUpdateUserBody: () => bo,
6379
+ zUploadMediaBody: () => Ka
6380
+ }), So = "1.0.0";
6376
6381
  function buildContract(e = {}) {
6377
6382
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6378
6383
  let r = contractNameFor(e);
6379
6384
  r && (n[r] = toSchema(t));
6380
6385
  };
6381
- for (let [e, t] of Object.entries(bo)) {
6386
+ for (let [e, t] of Object.entries(xo)) {
6382
6387
  if (t instanceof T) {
6383
6388
  addSchema(e, t);
6384
6389
  continue;
@@ -6386,7 +6391,7 @@ function buildContract(e = {}) {
6386
6391
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof T && addSchema(e, n);
6387
6392
  }
6388
6393
  return {
6389
- version: xo,
6394
+ version: So,
6390
6395
  generatedAt: t.toISOString(),
6391
6396
  schemas: n
6392
6397
  };
@@ -6406,6 +6411,6 @@ function sortedReplacer(e, t) {
6406
6411
  return t;
6407
6412
  }
6408
6413
  //#endregion
6409
- export { xo as CONTRACT_VERSION, buildContract, serializeContract };
6414
+ export { So as CONTRACT_VERSION, buildContract, serializeContract };
6410
6415
 
6411
6416
  //# sourceMappingURL=contract.js.map