@pagelines/sdk 1.0.757 → 1.0.759

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.
Files changed (39) hide show
  1. package/dist/AgentProvider.js +234 -232
  2. package/dist/AgentProvider.js.map +1 -1
  3. package/dist/AgentWidgetModal.js +184 -29
  4. package/dist/AgentWidgetModal.js.map +1 -1
  5. package/dist/AgentWrap.js +819 -611
  6. package/dist/AgentWrap.js.map +1 -1
  7. package/dist/agent/AgentController.d.ts +80 -22
  8. package/dist/agent/index.d.ts +4 -2
  9. package/dist/agent/schema.d.ts +2 -17
  10. package/dist/agent/ui/AgentAvatar.vue.d.ts +2 -0
  11. package/dist/agent/ui/AgentChat.vue.d.ts +3 -0
  12. package/dist/agent/ui/ElCreateAgent.vue.d.ts +2 -0
  13. package/dist/agent/ui/{AgentModal.vue.d.ts → VoiceMode.vue.d.ts} +7 -10
  14. package/dist/agent/utils.d.ts +0 -4
  15. package/dist/agent/voice/provider.d.ts +28 -0
  16. package/dist/agent/voice/providers/elevenlabs/provider.d.ts +30 -0
  17. package/dist/agent/voice/providers/livekit/provider.d.ts +55 -0
  18. package/dist/agent/voice/voice-session-client.d.ts +44 -0
  19. package/dist/agent.js +173 -74
  20. package/dist/agent.js.map +1 -1
  21. package/dist/clients/ChatClient.d.ts +1 -9
  22. package/dist/contract.js +564 -490
  23. package/dist/contract.js.map +1 -1
  24. package/dist/demo/index.d.ts +1 -0
  25. package/dist/provider.js +40 -0
  26. package/dist/provider.js.map +1 -0
  27. package/dist/provider2.js +16451 -0
  28. package/dist/provider2.js.map +1 -0
  29. package/dist/provider3.js +18439 -0
  30. package/dist/provider3.js.map +1 -0
  31. package/dist/sdk.css +1 -1
  32. package/dist/sdkClient.d.ts +8 -0
  33. package/dist/sdkClient.js +37 -47
  34. package/dist/sdkClient.js.map +1 -1
  35. package/dist/widget/composables/useWidgetState.d.ts +3 -0
  36. package/dist/widget.js +23 -23
  37. package/package.json +3 -1
  38. package/dist/FModal.js +0 -165
  39. package/dist/FModal.js.map +0 -1
package/dist/contract.js CHANGED
@@ -3672,10 +3672,10 @@ var $n = /*@__PURE__*/ $constructor("ZodObject", (e, t) => {
3672
3672
  return omit(this, e);
3673
3673
  },
3674
3674
  partial(...e) {
3675
- return partial(sr, this, e[0]);
3675
+ return partial(or, this, e[0]);
3676
3676
  },
3677
3677
  required(...e) {
3678
- return required(fr, this, e[0]);
3678
+ return required(dr, this, e[0]);
3679
3679
  }
3680
3680
  });
3681
3681
  });
@@ -3733,14 +3733,14 @@ function record(e, t, n) {
3733
3733
  ...normalizeParams(n)
3734
3734
  });
3735
3735
  }
3736
- var ir = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3736
+ var O = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3737
3737
  Wt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => enumProcessor(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3738
3738
  let n = new Set(Object.keys(t.entries));
3739
3739
  e.extract = (e, r) => {
3740
3740
  let i = {};
3741
3741
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
3742
3742
  else throw Error(`Key ${r} not found in enum`);
3743
- return new ir({
3743
+ return new O({
3744
3744
  ...t,
3745
3745
  checks: [],
3746
3746
  ...normalizeParams(r),
@@ -3750,7 +3750,7 @@ var ir = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3750
3750
  let i = { ...t.entries };
3751
3751
  for (let t of e) if (n.has(t)) delete i[t];
3752
3752
  else throw Error(`Key ${t} not found in enum`);
3753
- return new ir({
3753
+ return new O({
3754
3754
  ...t,
3755
3755
  checks: [],
3756
3756
  ...normalizeParams(r),
@@ -3759,26 +3759,26 @@ var ir = /*@__PURE__*/ $constructor("ZodEnum", (e, t) => {
3759
3759
  };
3760
3760
  });
3761
3761
  function _enum(e, t) {
3762
- return new ir({
3762
+ return new O({
3763
3763
  type: "enum",
3764
3764
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
3765
3765
  ...normalizeParams(t)
3766
3766
  });
3767
3767
  }
3768
- var ar = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3768
+ var ir = /*@__PURE__*/ $constructor("ZodLiteral", (e, t) => {
3769
3769
  Gt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => literalProcessor(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
3770
3770
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
3771
3771
  return t.values[0];
3772
3772
  } });
3773
3773
  });
3774
3774
  function literal(e, t) {
3775
- return new ar({
3775
+ return new ir({
3776
3776
  type: "literal",
3777
3777
  values: Array.isArray(e) ? e : [e],
3778
3778
  ...normalizeParams(t)
3779
3779
  });
3780
3780
  }
3781
- var or = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3781
+ var ar = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3782
3782
  Kt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => transformProcessor(e, t, n, r), e._zod.parse = (n, r) => {
3783
3783
  if (r.direction === "backward") throw new $ZodEncodeError(e.constructor.name);
3784
3784
  n.addIssue = (r) => {
@@ -3793,43 +3793,43 @@ var or = /*@__PURE__*/ $constructor("ZodTransform", (e, t) => {
3793
3793
  };
3794
3794
  });
3795
3795
  function transform(e) {
3796
- return new or({
3796
+ return new ar({
3797
3797
  type: "transform",
3798
3798
  transform: e
3799
3799
  });
3800
3800
  }
3801
- var sr = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3801
+ var or = /*@__PURE__*/ $constructor("ZodOptional", (e, t) => {
3802
3802
  qt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3803
3803
  });
3804
3804
  function optional(e) {
3805
- return new sr({
3805
+ return new or({
3806
3806
  type: "optional",
3807
3807
  innerType: e
3808
3808
  });
3809
3809
  }
3810
- var cr = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3810
+ var sr = /*@__PURE__*/ $constructor("ZodExactOptional", (e, t) => {
3811
3811
  Jt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => optionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3812
3812
  });
3813
3813
  function exactOptional(e) {
3814
- return new cr({
3814
+ return new sr({
3815
3815
  type: "optional",
3816
3816
  innerType: e
3817
3817
  });
3818
3818
  }
3819
- var lr = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3819
+ var cr = /*@__PURE__*/ $constructor("ZodNullable", (e, t) => {
3820
3820
  Yt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => nullableProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3821
3821
  });
3822
3822
  function nullable(e) {
3823
- return new lr({
3823
+ return new cr({
3824
3824
  type: "nullable",
3825
3825
  innerType: e
3826
3826
  });
3827
3827
  }
3828
- var ur = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3828
+ var lr = /*@__PURE__*/ $constructor("ZodDefault", (e, t) => {
3829
3829
  Xt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => defaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3830
3830
  });
3831
3831
  function _default(e, t) {
3832
- return new ur({
3832
+ return new lr({
3833
3833
  type: "default",
3834
3834
  innerType: e,
3835
3835
  get defaultValue() {
@@ -3837,11 +3837,11 @@ function _default(e, t) {
3837
3837
  }
3838
3838
  });
3839
3839
  }
3840
- var dr = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3840
+ var ur = /*@__PURE__*/ $constructor("ZodPrefault", (e, t) => {
3841
3841
  Zt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => prefaultProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3842
3842
  });
3843
3843
  function prefault(e, t) {
3844
- return new dr({
3844
+ return new ur({
3845
3845
  type: "prefault",
3846
3846
  innerType: e,
3847
3847
  get defaultValue() {
@@ -3849,64 +3849,64 @@ function prefault(e, t) {
3849
3849
  }
3850
3850
  });
3851
3851
  }
3852
- var fr = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3852
+ var dr = /*@__PURE__*/ $constructor("ZodNonOptional", (e, t) => {
3853
3853
  Qt.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => nonoptionalProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3854
3854
  });
3855
3855
  function nonoptional(e, t) {
3856
- return new fr({
3856
+ return new dr({
3857
3857
  type: "nonoptional",
3858
3858
  innerType: e,
3859
3859
  ...normalizeParams(t)
3860
3860
  });
3861
3861
  }
3862
- var pr = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3862
+ var fr = /*@__PURE__*/ $constructor("ZodCatch", (e, t) => {
3863
3863
  $t.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => catchProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3864
3864
  });
3865
3865
  function _catch(e, t) {
3866
- return new pr({
3866
+ return new fr({
3867
3867
  type: "catch",
3868
3868
  innerType: e,
3869
3869
  catchValue: typeof t == "function" ? t : () => t
3870
3870
  });
3871
3871
  }
3872
- var mr = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3872
+ var pr = /*@__PURE__*/ $constructor("ZodPipe", (e, t) => {
3873
3873
  en.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => pipeProcessor(e, t, n, r), e.in = t.in, e.out = t.out;
3874
3874
  });
3875
3875
  function pipe(e, t) {
3876
- return new mr({
3876
+ return new pr({
3877
3877
  type: "pipe",
3878
3878
  in: e,
3879
3879
  out: t
3880
3880
  });
3881
3881
  }
3882
- var hr = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3883
- mr.init(e, t), tn.init(e, t);
3884
- }), gr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3882
+ var mr = /*@__PURE__*/ $constructor("ZodPreprocess", (e, t) => {
3883
+ pr.init(e, t), tn.init(e, t);
3884
+ }), hr = /*@__PURE__*/ $constructor("ZodReadonly", (e, t) => {
3885
3885
  nn.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => readonlyProcessor(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3886
3886
  });
3887
3887
  function readonly(e) {
3888
- return new gr({
3888
+ return new hr({
3889
3889
  type: "readonly",
3890
3890
  innerType: e
3891
3891
  });
3892
3892
  }
3893
- var _r = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3893
+ var gr = /*@__PURE__*/ $constructor("ZodCustom", (e, t) => {
3894
3894
  rn.init(e, t), T.init(e, t), e._zod.processJSONSchema = (t, n, r) => customProcessor(e, t, n, r);
3895
3895
  });
3896
3896
  function refine(e, t = {}) {
3897
- return /* @__PURE__ */ _refine(_r, e, t);
3897
+ return /* @__PURE__ */ _refine(gr, e, t);
3898
3898
  }
3899
3899
  function superRefine(e, t) {
3900
3900
  return /* @__PURE__ */ _superRefine(e, t);
3901
3901
  }
3902
3902
  function preprocess(e, t) {
3903
- return new hr({
3903
+ return new mr({
3904
3904
  type: "pipe",
3905
3905
  in: transform(e),
3906
3906
  out: t
3907
3907
  });
3908
3908
  }
3909
- var vr = object({
3909
+ var _r = object({
3910
3910
  platform: _enum([
3911
3911
  "linkedin",
3912
3912
  "x",
@@ -3923,38 +3923,38 @@ var vr = object({
3923
3923
  ]),
3924
3924
  handle: string(),
3925
3925
  url: string().optional()
3926
- }), yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(vr)), br = [
3926
+ }), vr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(_r)), yr = [
3927
3927
  "image",
3928
3928
  "audio",
3929
3929
  "video",
3930
3930
  "document"
3931
- ], O = _enum(br), xr = [
3931
+ ], k = _enum(yr), br = [
3932
3932
  "avatar",
3933
3933
  "cover",
3934
3934
  "general"
3935
- ], k = _enum(xr), Sr = _enum([
3935
+ ], A = _enum(br), xr = _enum([
3936
3936
  "processing",
3937
3937
  "active",
3938
3938
  "failed",
3939
3939
  "deleted"
3940
- ]), Cr = _enum([
3940
+ ]), Sr = _enum([
3941
3941
  "low",
3942
3942
  "standard",
3943
3943
  "high"
3944
- ]), wr = _enum([
3944
+ ]), Cr = _enum([
3945
3945
  "jpg",
3946
3946
  "jpeg",
3947
3947
  "png",
3948
3948
  "gif",
3949
3949
  "webp",
3950
3950
  "svg"
3951
- ]), Tr = _enum([
3951
+ ]), wr = _enum([
3952
3952
  "mp4",
3953
3953
  "webm",
3954
3954
  "ogg",
3955
3955
  "mov",
3956
3956
  "avi"
3957
- ]), Er = _enum([
3957
+ ]), Tr = _enum([
3958
3958
  "mp3",
3959
3959
  "wav",
3960
3960
  "ogg",
@@ -3964,7 +3964,7 @@ var vr = object({
3964
3964
  "webm",
3965
3965
  "m4a",
3966
3966
  "mp4"
3967
- ]), A = object({
3967
+ ]), j = object({
3968
3968
  mediaId: string(),
3969
3969
  userId: string(),
3970
3970
  orgId: string(),
@@ -3974,49 +3974,49 @@ var vr = object({
3974
3974
  size: number(),
3975
3975
  src: string(),
3976
3976
  alt: string().optional(),
3977
- context: k.default("general"),
3978
- status: Sr.default("processing"),
3979
- quality: Cr.default("standard"),
3977
+ context: A.default("general"),
3978
+ status: xr.default("processing"),
3979
+ quality: Sr.default("standard"),
3980
3980
  createdAt: string().optional(),
3981
3981
  updatedAt: string().optional()
3982
3982
  }).extend({
3983
- type: O.optional(),
3984
- mediaType: O.optional(),
3983
+ type: k.optional(),
3984
+ mediaType: k.optional(),
3985
3985
  className: string().optional(),
3986
3986
  width: number().optional(),
3987
3987
  height: number().optional(),
3988
3988
  duration: number().optional(),
3989
3989
  blurhash: string().optional()
3990
- }).partial(), Dr = object({
3990
+ }).partial(), Er = object({
3991
3991
  duration: number().optional(),
3992
3992
  thumbnail: string().optional(),
3993
3993
  autoplay: boolean().optional(),
3994
3994
  loop: boolean().optional(),
3995
3995
  muted: boolean().optional(),
3996
3996
  controls: boolean().optional()
3997
- }), Or = object({
3997
+ }), Dr = object({
3998
3998
  duration: number().optional(),
3999
3999
  autoplay: boolean().optional(),
4000
4000
  loop: boolean().optional(),
4001
4001
  muted: boolean().optional(),
4002
4002
  controls: boolean().optional()
4003
- }), kr = A.extend({
4003
+ }), Or = j.extend({
4004
4004
  mediaType: literal("image"),
4005
- imageFormat: wr.optional()
4006
- }), Ar = A.extend({
4005
+ imageFormat: Cr.optional()
4006
+ }), kr = j.extend({
4007
4007
  mediaType: literal("video"),
4008
- videoFormat: Tr.optional(),
4009
- video: Dr.optional()
4010
- }), jr = A.extend({
4008
+ videoFormat: wr.optional(),
4009
+ video: Er.optional()
4010
+ }), Ar = j.extend({
4011
4011
  mediaType: literal("audio"),
4012
- audioFormat: Er.optional(),
4013
- audio: Or.optional()
4014
- }), Mr = A.extend({ mediaType: literal("document") }), Nr = discriminatedUnion("mediaType", [
4012
+ audioFormat: Tr.optional(),
4013
+ audio: Dr.optional()
4014
+ }), jr = j.extend({ mediaType: literal("document") }), Mr = discriminatedUnion("mediaType", [
4015
+ Or,
4015
4016
  kr,
4016
4017
  Ar,
4017
- jr,
4018
- Mr
4019
- ]), j = _enum([
4018
+ jr
4019
+ ]), Nr = _enum([
4020
4020
  "xxs",
4021
4021
  "xs",
4022
4022
  "sm",
@@ -4031,20 +4031,20 @@ var vr = object({
4031
4031
  "green",
4032
4032
  "indigo",
4033
4033
  "orange"
4034
- ]), M = _enum([
4034
+ ]), Fr = _enum([
4035
4035
  "ghost",
4036
4036
  "link",
4037
4037
  "outline",
4038
4038
  "solid"
4039
- ]), N = object({
4039
+ ]), M = object({
4040
4040
  key: string().optional(),
4041
4041
  label: string().optional(),
4042
4042
  href: string().optional(),
4043
- size: j.optional(),
4043
+ size: Nr.optional(),
4044
4044
  theme: Pr.optional(),
4045
- design: M.optional(),
4046
- icon: union([string(), A]).optional(),
4047
- iconAfter: union([string(), A]).optional(),
4045
+ design: Fr.optional(),
4046
+ icon: union([string(), j]).optional(),
4047
+ iconAfter: union([string(), j]).optional(),
4048
4048
  rounding: _enum([
4049
4049
  "full",
4050
4050
  "md",
@@ -4061,12 +4061,12 @@ var vr = object({
4061
4061
  "submit",
4062
4062
  "reset"
4063
4063
  ]).optional()
4064
- }), Fr = object({
4065
- buttons: array(N).optional(),
4066
- size: j.optional(),
4067
- theme: Pr.optional(),
4068
- design: M.optional()
4069
4064
  }), Ir = object({
4065
+ buttons: array(M).optional(),
4066
+ size: Nr.optional(),
4067
+ theme: Pr.optional(),
4068
+ design: Fr.optional()
4069
+ }), Lr = object({
4070
4070
  key: string().optional(),
4071
4071
  id: string().optional(),
4072
4072
  label: string().optional(),
@@ -4077,11 +4077,11 @@ var vr = object({
4077
4077
  info: string().optional(),
4078
4078
  count: number().optional(),
4079
4079
  className: string().optional(),
4080
- media: A.optional(),
4081
- subMedia: A.optional(),
4082
- cover: A.optional(),
4083
- icon: A.optional(),
4084
- iconAfter: A.optional(),
4080
+ media: j.optional(),
4081
+ subMedia: j.optional(),
4082
+ cover: j.optional(),
4083
+ icon: j.optional(),
4084
+ iconAfter: j.optional(),
4085
4085
  subIcon: string().optional(),
4086
4086
  href: string().optional(),
4087
4087
  target: _enum(["_self", "_blank"]).optional(),
@@ -4093,14 +4093,14 @@ var vr = object({
4093
4093
  priority: number().optional(),
4094
4094
  testId: string().optional(),
4095
4095
  items: array(any()).optional(),
4096
- badges: array(N).optional(),
4097
- meta: array(N).optional(),
4096
+ badges: array(M).optional(),
4097
+ meta: array(M).optional(),
4098
4098
  menuItems: array(any()).optional()
4099
- }), Lr = object({
4099
+ }), Rr = object({
4100
4100
  title: string().optional(),
4101
4101
  description: string().optional(),
4102
- items: array(Ir).optional()
4103
- }), Rr = {
4102
+ items: array(Lr).optional()
4103
+ }), zr = {
4104
4104
  colors: {
4105
4105
  primary: "#3b82f6",
4106
4106
  secondary: "#93c5fd",
@@ -4119,7 +4119,7 @@ var vr = object({
4119
4119
  compact: 4,
4120
4120
  comfortable: 6
4121
4121
  }
4122
- }, zr = [
4122
+ }, Br = [
4123
4123
  ["#6366f1", "#8b5cf6"],
4124
4124
  ["#3b82f6", "#06b6d4"],
4125
4125
  ["#10b981", "#34d399"],
@@ -4135,7 +4135,7 @@ function hashName(e) {
4135
4135
  return Math.abs(t);
4136
4136
  }
4137
4137
  function getGradientPair(e) {
4138
- return zr[(e ? hashName(e) : 0) % zr.length];
4138
+ return Br[(e ? hashName(e) : 0) % Br.length];
4139
4139
  }
4140
4140
  function getDefaultAvatarUrl(e) {
4141
4141
  let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
@@ -4165,7 +4165,7 @@ function getWorkspaceMarkUrl(e) {
4165
4165
  }
4166
4166
  //#endregion
4167
4167
  //#region ../core/dist/chatIssue.js
4168
- var Br = _enum(["account", "error"]), P = [
4168
+ var Vr = _enum(["account", "error"]), N = [
4169
4169
  "billing_no_plan",
4170
4170
  "billing_seat_limit",
4171
4171
  "billing_past_due",
@@ -4181,14 +4181,14 @@ var Br = _enum(["account", "error"]), P = [
4181
4181
  "empty_stream",
4182
4182
  "tool_protocol",
4183
4183
  "rate_limit"
4184
- ], F = object({
4185
- bucket: Br,
4186
- code: _enum(P),
4184
+ ], P = object({
4185
+ bucket: Vr,
4186
+ code: _enum(N),
4187
4187
  title: string(),
4188
4188
  help: string().optional(),
4189
4189
  actionLabel: string(),
4190
4190
  actionUrl: string()
4191
- }), I = {
4191
+ }), F = {
4192
4192
  billing_no_plan: {
4193
4193
  bucket: "account",
4194
4194
  title: "Payment method needed",
@@ -4296,10 +4296,10 @@ var Br = _enum(["account", "error"]), P = [
4296
4296
  }
4297
4297
  };
4298
4298
  function chatIssueCatalogLines() {
4299
- return P.map((e) => `- ${e}: ${I[e].oneLine}`).join("\n");
4299
+ return N.map((e) => `- ${e}: ${F[e].oneLine}`).join("\n");
4300
4300
  }
4301
4301
  function buildChatIssue(e) {
4302
- let t = I[e.code];
4302
+ let t = F[e.code];
4303
4303
  return {
4304
4304
  bucket: t.bucket,
4305
4305
  code: e.code,
@@ -4309,13 +4309,23 @@ function buildChatIssue(e) {
4309
4309
  actionUrl: e.actionUrl
4310
4310
  };
4311
4311
  }
4312
+ function chatIssueToErrorData(e) {
4313
+ return {
4314
+ code: e.code.toUpperCase(),
4315
+ message: e.title,
4316
+ bucket: e.bucket,
4317
+ actionLabel: e.actionLabel,
4318
+ actionUrl: e.actionUrl,
4319
+ ...e.help ? { help: e.help } : {}
4320
+ };
4321
+ }
4312
4322
  function renderIssueAsMarkdown(e) {
4313
- let t = I[e.code];
4323
+ let t = F[e.code];
4314
4324
  return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
4315
4325
  }
4316
4326
  //#endregion
4317
4327
  //#region ../core/dist/wire/agent-state.js
4318
- var L = _enum(["active", "stopped"]), R = _enum([
4328
+ var I = _enum(["active", "stopped"]), L = _enum([
4319
4329
  "unknown",
4320
4330
  "stopped",
4321
4331
  "starting",
@@ -4324,28 +4334,28 @@ var L = _enum(["active", "stopped"]), R = _enum([
4324
4334
  "unreachable",
4325
4335
  "stopping",
4326
4336
  "error"
4327
- ]), Vr = _enum([
4337
+ ]), Hr = _enum([
4328
4338
  "wake",
4329
4339
  "sleep",
4330
4340
  "restart",
4331
4341
  "rebuild",
4332
4342
  "config_apply"
4333
- ]), Hr = _enum([
4343
+ ]), Ur = _enum([
4334
4344
  "running",
4335
4345
  "coalesced",
4336
4346
  "failed"
4337
- ]), z = object({
4338
- kind: Vr,
4339
- status: Hr,
4347
+ ]), Wr = object({
4348
+ kind: Hr,
4349
+ status: Ur,
4340
4350
  startedAt: string().datetime(),
4341
4351
  detail: string().optional()
4342
- }).strict(), Ur = object({
4343
- lifecycle: R,
4352
+ }).strict(), Gr = object({
4353
+ lifecycle: L,
4344
4354
  changedAt: string().datetime().optional(),
4345
4355
  detail: string().optional(),
4346
- blocker: F.optional(),
4347
- operation: z.optional()
4348
- }).strict(), Wr = Object.freeze({ lifecycle: "unknown" }), Gr = {
4356
+ blocker: P.optional(),
4357
+ operation: Wr.optional()
4358
+ }).strict(), Kr = Object.freeze({ lifecycle: "unknown" }), qr = {
4349
4359
  running: "green",
4350
4360
  starting: "amber",
4351
4361
  stopping: "amber",
@@ -4354,7 +4364,7 @@ var L = _enum(["active", "stopped"]), R = _enum([
4354
4364
  error: "red",
4355
4365
  stopped: "grey",
4356
4366
  unknown: "grey"
4357
- }, Kr = {
4367
+ }, Jr = {
4358
4368
  running: "Online",
4359
4369
  starting: "Waking up",
4360
4370
  stopping: "Stopping",
@@ -4363,7 +4373,7 @@ var L = _enum(["active", "stopped"]), R = _enum([
4363
4373
  error: "Error",
4364
4374
  stopped: "Asleep",
4365
4375
  unknown: "Checking"
4366
- }, qr = {
4376
+ }, Yr = {
4367
4377
  wake: "Waking up",
4368
4378
  sleep: "Stopping",
4369
4379
  restart: "Restarting",
@@ -4371,7 +4381,7 @@ var L = _enum(["active", "stopped"]), R = _enum([
4371
4381
  config_apply: "Applying config"
4372
4382
  };
4373
4383
  function toAgentState(e, t) {
4374
- 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}`;
4384
+ let n = e.operation, r = Jr[e.lifecycle] ?? "Unknown", i = qr[e.lifecycle] ?? "grey", a = n ? Yr[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}`;
4375
4385
  return {
4376
4386
  ...e,
4377
4387
  color: s,
@@ -4379,7 +4389,7 @@ function toAgentState(e, t) {
4379
4389
  tooltip: c
4380
4390
  };
4381
4391
  }
4382
- var Jr = _enum([
4392
+ var Xr = _enum([
4383
4393
  "wake",
4384
4394
  "sleep",
4385
4395
  "restart",
@@ -4401,7 +4411,29 @@ function isAgentReady(e) {
4401
4411
  default: return !1;
4402
4412
  }
4403
4413
  }
4404
- var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4414
+ //#endregion
4415
+ //#region ../core/dist/wire/voice-session.js
4416
+ var R = _enum(["woman", "man"]), Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4417
+ conversationId: string().min(1),
4418
+ agentId: string().min(1),
4419
+ personaName: string().min(1),
4420
+ voice: R.nullable(),
4421
+ sessionScope: _enum([
4422
+ "private",
4423
+ "org",
4424
+ "public"
4425
+ ]),
4426
+ threadSummary: string(),
4427
+ expiresAt: datetime()
4428
+ }), $r = _enum(["elevenlabs", "livekit"]), ei = discriminatedUnion("provider", [object({
4429
+ provider: literal("elevenlabs"),
4430
+ conversationToken: string().min(1)
4431
+ }).strict(), object({
4432
+ provider: literal("livekit"),
4433
+ url: string().min(1),
4434
+ token: string().min(1),
4435
+ room: string().min(1)
4436
+ }).strict()]), ti = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
4405
4437
  platform: _enum([
4406
4438
  "linkedin",
4407
4439
  "x",
@@ -4416,7 +4448,7 @@ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4416
4448
  "website"
4417
4449
  ]),
4418
4450
  handle: string()
4419
- }))), Xr = _enum([
4451
+ }))), z = _enum([
4420
4452
  "essential",
4421
4453
  "professional",
4422
4454
  "business"
@@ -4432,18 +4464,19 @@ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4432
4464
  entityType: string().optional(),
4433
4465
  avatarId: string().nullable().optional(),
4434
4466
  coverId: string().nullable().optional(),
4435
- avatar: A.optional(),
4436
- cover: A.optional(),
4467
+ avatar: j.optional(),
4468
+ cover: j.optional(),
4437
4469
  email: string().nullable().optional(),
4438
4470
  website: string().url().nullable().optional(),
4439
- accounts: Yr.nullable().optional(),
4471
+ accounts: ti.nullable().optional(),
4440
4472
  model: string().nullable().optional(),
4441
- billingTier: Xr.optional(),
4473
+ voice: R.nullable().optional(),
4474
+ billingTier: z.optional(),
4442
4475
  lastActiveAt: string().nullable().optional(),
4443
4476
  lastMessageAt: string().nullable().optional(),
4444
4477
  runtime: string().default("hermes").optional(),
4445
4478
  timezone: string().optional(),
4446
- desiredStatus: L.nullable().optional(),
4479
+ desiredStatus: I.nullable().optional(),
4447
4480
  automationPrimaryChannel: string().optional(),
4448
4481
  heartbeatEnabled: boolean().optional(),
4449
4482
  onboardedAt: string().nullable().optional(),
@@ -4458,7 +4491,7 @@ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4458
4491
  owner: object({
4459
4492
  userId: string(),
4460
4493
  fullName: string().optional(),
4461
- avatar: A.optional()
4494
+ avatar: j.optional()
4462
4495
  }).optional(),
4463
4496
  visibility: _enum([
4464
4497
  "private",
@@ -4470,12 +4503,12 @@ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4470
4503
  updatedAt: string().optional()
4471
4504
  }), V = B.extend({
4472
4505
  isPrimary: boolean().optional(),
4473
- lifecycle: R.optional(),
4506
+ lifecycle: L.optional(),
4474
4507
  changedAt: string().datetime().optional(),
4475
4508
  detail: string().optional(),
4476
- blocker: F.optional(),
4477
- operation: z.optional()
4478
- }), Zr = Object.keys(V.shape), H = class Agent extends SettingsObject {
4509
+ blocker: P.optional(),
4510
+ operation: Wr.optional()
4511
+ }), ni = Object.keys(V.shape), H = class Agent extends SettingsObject {
4479
4512
  constructor(e) {
4480
4513
  let t = "config" in e ? {
4481
4514
  ...e.config instanceof Agent ? e.config.toConfig() : e.config,
@@ -4493,7 +4526,7 @@ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4493
4526
  }), this.displayName = n(() => this.name.value || "Unnamed"), this.hasCustomHandle = n(() => !!this.handle.value && !/\d{13,}$/.test(this.handle.value)), this.displayHandle = n(() => this.hasCustomHandle.value ? `@${this.handle.value}` : void 0), this.isContextPrimary = n(() => !!this.agentId.value && this.agentId.value === this.settings.context?.primaryAgentId), this.wakeUpLabel = n(() => `Wake up ${this.displayName.value}`), this.manageLabel = n(() => `Manage ${this.displayName.value}`), this.hasReceivedMessage = n(() => !!this.lastMessageAt.value);
4494
4527
  }
4495
4528
  merge(e) {
4496
- for (let t of Zr) {
4529
+ for (let t of ni) {
4497
4530
  if (!(t in e)) continue;
4498
4531
  let n = this[t];
4499
4532
  n && typeof n == "object" && "value" in n && (n.value = e[t]);
@@ -4501,7 +4534,7 @@ var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
4501
4534
  }
4502
4535
  toConfig() {
4503
4536
  let e = {};
4504
- for (let t of Zr) {
4537
+ for (let t of ni) {
4505
4538
  let n = this[t];
4506
4539
  n && typeof n == "object" && "value" in n && (e[t] = n.value);
4507
4540
  }
@@ -4522,13 +4555,14 @@ function createAgents(e) {
4522
4555
  }
4523
4556
  //#endregion
4524
4557
  //#region ../core/dist/types/user.js
4525
- var Qr = object({
4558
+ var U = _enum(["noCard", "cardRequired"]), W = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), ri = object({
4526
4559
  userId: string(),
4527
4560
  email: string().optional(),
4528
4561
  handle: string().optional(),
4529
4562
  fullName: string().optional(),
4563
+ linkedinUsername: W.optional(),
4530
4564
  avatarId: string().optional(),
4531
- avatar: A.optional(),
4565
+ avatar: j.optional(),
4532
4566
  isEmailVerified: boolean().optional(),
4533
4567
  primaryAgentId: string().optional(),
4534
4568
  primaryOrgId: string().optional(),
@@ -4543,8 +4577,9 @@ var Qr = object({
4543
4577
  createdAt: string().optional(),
4544
4578
  updatedAt: string().optional(),
4545
4579
  onboarded: boolean().optional()
4546
- }), $r = object({
4580
+ }), ii = object({
4547
4581
  name: string().min(1).max(100).optional(),
4582
+ linkedinUsername: W.nullable().optional(),
4548
4583
  avatar: object({
4549
4584
  src: string(),
4550
4585
  mediaId: string()
@@ -4553,31 +4588,31 @@ var Qr = object({
4553
4588
  primaryOrgId: string().optional(),
4554
4589
  lastActiveOrgId: string().optional(),
4555
4590
  onboarding: any().optional()
4556
- }).partial(), ei = object({ email: string() }), ti = object({
4591
+ }).partial(), ai = object({ email: string() }), oi = object({
4557
4592
  email: string(),
4558
4593
  password: string().min(8, "Password must be at least 8 characters")
4559
- }), ni = object({
4594
+ }), si = object({
4560
4595
  email: string(),
4561
4596
  password: string().min(8, "Password must be at least 8 characters"),
4562
4597
  fullName: string().min(1, "Name is required")
4563
- }), ri = object({
4598
+ }), ci = object({
4564
4599
  email: string(),
4565
4600
  code: string().min(6, "Verification code is required"),
4566
4601
  timezone: string().max(64).optional()
4567
- }), ii = object({
4602
+ }), li = object({
4568
4603
  email: string(),
4569
4604
  code: string().min(6, "Verification code is required"),
4570
4605
  newPassword: string().min(8, "New password must be at least 8 characters")
4571
- }), ai = object({ newEmail: string() }), oi = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), si = object({
4606
+ }), ui = object({ newEmail: string() }), di = object({ newPassword: string().min(8, "New password must be at least 8 characters") }), fi = object({
4572
4607
  credential: string().optional(),
4573
4608
  code: string().optional(),
4574
4609
  timezone: string().max(64).optional(),
4575
4610
  source: _enum(["web", "ios"]).optional()
4576
- }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), ci = object({
4611
+ }).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), pi = object({
4577
4612
  identityToken: string().min(1),
4578
4613
  fullName: string().optional(),
4579
4614
  timezone: string().max(64).optional()
4580
- }), U = object({
4615
+ }), G = object({
4581
4616
  orgId: string().optional(),
4582
4617
  handle: string().optional(),
4583
4618
  name: string().optional(),
@@ -4585,10 +4620,10 @@ var Qr = object({
4585
4620
  website: string().url().nullable().optional(),
4586
4621
  summary: string().nullable().optional(),
4587
4622
  avatarId: string().nullable().optional(),
4588
- avatar: A.optional(),
4623
+ avatar: j.optional(),
4589
4624
  coverId: string().nullable().optional(),
4590
- cover: A.optional(),
4591
- accounts: yr.nullable().optional(),
4625
+ cover: j.optional(),
4626
+ accounts: vr.nullable().optional(),
4592
4627
  ownerId: string().optional(),
4593
4628
  isPersonal: boolean().optional(),
4594
4629
  stripeCustomerIdTest: string().nullable().optional(),
@@ -4601,11 +4636,12 @@ var Qr = object({
4601
4636
  billingLastSyncedAt: string().nullable().optional(),
4602
4637
  syncedPeriodStart: string().nullable().optional(),
4603
4638
  syncedPeriodEnd: string().nullable().optional(),
4639
+ trialEligibility: U.optional(),
4604
4640
  onboarding: any().optional(),
4605
4641
  status: string().optional(),
4606
4642
  createdAt: string().optional(),
4607
4643
  updatedAt: string().optional()
4608
- }), li = U.extend({
4644
+ }), mi = G.extend({
4609
4645
  defaultAgent: object({
4610
4646
  agentId: string(),
4611
4647
  handle: string(),
@@ -4613,22 +4649,22 @@ var Qr = object({
4613
4649
  orgId: string()
4614
4650
  }),
4615
4651
  onboardingCompleted: boolean().optional()
4616
- }), ui = object({
4652
+ }), hi = object({
4617
4653
  completedAt: string().datetime().optional(),
4618
4654
  setupBy: string().optional(),
4619
4655
  billingSetup: boolean().optional(),
4620
4656
  teamInvitesSetup: boolean().optional(),
4621
4657
  brandingSetup: boolean().optional(),
4622
4658
  domainsSetup: boolean().optional()
4623
- }), di = object({
4659
+ }), gi = object({
4624
4660
  membershipId: string(),
4625
4661
  orgId: string(),
4626
4662
  name: string(),
4627
4663
  handle: string(),
4628
4664
  avatarId: string().optional(),
4629
- avatar: A.optional(),
4665
+ avatar: j.optional(),
4630
4666
  coverId: string().optional(),
4631
- cover: A.optional(),
4667
+ cover: j.optional(),
4632
4668
  role: _enum([
4633
4669
  "owner",
4634
4670
  "admin",
@@ -4638,9 +4674,10 @@ var Qr = object({
4638
4674
  memberCount: number().optional(),
4639
4675
  agentCount: number().optional(),
4640
4676
  joinedAt: string().datetime(),
4641
- onboarding: ui.optional()
4642
- }), fi = Qr.extend({
4643
- orgs: array(di).optional(),
4677
+ trialEligibility: U.optional(),
4678
+ onboarding: hi.optional()
4679
+ }), _i = ri.extend({
4680
+ orgs: array(gi).optional(),
4644
4681
  agents: array(B).optional()
4645
4682
  });
4646
4683
  //#endregion
@@ -4664,7 +4701,7 @@ function derive(e) {
4664
4701
  }
4665
4702
  //#endregion
4666
4703
  //#region ../core/dist/bot-ua.js
4667
- var pi = "pagelines-agent/1.0", W = [
4704
+ var vi = "pagelines-agent/1.0", K = [
4668
4705
  "[SILENT]",
4669
4706
  "SILENT",
4670
4707
  "NO_REPLY",
@@ -4678,21 +4715,21 @@ var pi = "pagelines-agent/1.0", W = [
4678
4715
  "[NO_OP]",
4679
4716
  "[NO OP]",
4680
4717
  "HEARTBEAT_OK"
4681
- ], mi = new Set(W);
4718
+ ], yi = new Set(K);
4682
4719
  function normalizeAssistantControl(e) {
4683
4720
  return e.trim().toUpperCase().replace(/\s+/g, " ");
4684
4721
  }
4685
4722
  function isAssistantSilenceControl(e) {
4686
4723
  let t = normalizeAssistantControl(e);
4687
- return t.length <= 64 && mi.has(t);
4724
+ return t.length <= 64 && yi.has(t);
4688
4725
  }
4689
4726
  function isAssistantSilenceControlPrefix(e) {
4690
4727
  let t = normalizeAssistantControl(e);
4691
- return t.length <= 64 && W.some((e) => e.startsWith(t));
4728
+ return t.length <= 64 && K.some((e) => e.startsWith(t));
4692
4729
  }
4693
4730
  //#endregion
4694
4731
  //#region ../core/dist/timingBudgets.js
4695
- var hi = {
4732
+ var bi = {
4696
4733
  wake: 300 * 1e3,
4697
4734
  bootGrace: 420 * 1e3,
4698
4735
  stop: 30 * 1e3
@@ -4710,16 +4747,16 @@ function formatBudgetDuration(e) {
4710
4747
  }
4711
4748
  //#endregion
4712
4749
  //#region ../core/dist/paths.js
4713
- var gi = "/api/bot-api", _i = "/api/bot-api/v1";
4750
+ var xi = "/api/bot-api", Si = "/api/bot-api/v1";
4714
4751
  function botApiLlmUrl(e) {
4715
- return `${e}${_i}`;
4752
+ return `${e}${Si}`;
4716
4753
  }
4717
4754
  function botApiUrl(e) {
4718
- return `${e}${gi}`;
4755
+ return `${e}${xi}`;
4719
4756
  }
4720
4757
  //#endregion
4721
4758
  //#region ../core/dist/errorCopy.js
4722
- var G = {
4759
+ var q = {
4723
4760
  AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
4724
4761
  AUTH_INVALID: "Your session has expired. Sign in again to continue.",
4725
4762
  AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
@@ -4735,6 +4772,7 @@ var G = {
4735
4772
  CHECKOUT_FAILED: "Couldn't start checkout. Try again in a moment.",
4736
4773
  PAYMENT_FAILED: "Your payment couldn't go through. Update your card to continue.",
4737
4774
  WAKE_FAILED: "Your assistant didn't wake up. Try again in a moment.",
4775
+ VOICE_UNAVAILABLE: "Voice isn't available right now. Try again in a moment.",
4738
4776
  STOP_FAILED: "Couldn't put your assistant to sleep. Try again.",
4739
4777
  RESTART_FAILED: "Restart didn't finish. Try again — if it persists, rebuild.",
4740
4778
  REBUILD_FAILED: "Rebuild didn't finish. Try again or contact support.",
@@ -4749,7 +4787,7 @@ var G = {
4749
4787
  TIMEOUT: "The request took too long. Try again in a moment.",
4750
4788
  FORBIDDEN: "You don't have access to this.",
4751
4789
  RATE_LIMITED: "Too many requests. Wait a moment and try again."
4752
- }, vi = {
4790
+ }, Ci = {
4753
4791
  notFound: "Not found. Try refreshing.",
4754
4792
  busy: "Busy — try again in a moment.",
4755
4793
  rateLimited: "Too many requests. Wait a moment.",
@@ -4759,14 +4797,14 @@ var G = {
4759
4797
  fatal: "Something's broken and won't resolve on retry. Contact support."
4760
4798
  };
4761
4799
  function errorCopy(e, t) {
4762
- return e && e in G ? G[e] : t;
4800
+ return e && e in q ? q[e] : t;
4763
4801
  }
4764
4802
  function errorFromApiResponse(e, t) {
4765
- return e.code && e.code in G ? G[e.code] : e.providerErrorKind && vi[e.providerErrorKind] ? vi[e.providerErrorKind] : e.error || t;
4803
+ return e.code && e.code in q ? q[e.code] : e.providerErrorKind && Ci[e.providerErrorKind] ? Ci[e.providerErrorKind] : e.error || t;
4766
4804
  }
4767
4805
  //#endregion
4768
4806
  //#region ../core/dist/retryPolicy.js
4769
- var K = {
4807
+ var J = {
4770
4808
  shouldRetry: !1,
4771
4809
  maxAttempts: 1,
4772
4810
  strategy: "none",
@@ -4784,7 +4822,7 @@ function retryPolicyFor(e) {
4784
4822
  "FORBIDDEN",
4785
4823
  "AGENT_NOT_FOUND"
4786
4824
  ]);
4787
- if (e.code && t.has(e.code)) return K;
4825
+ if (e.code && t.has(e.code)) return J;
4788
4826
  switch (e.providerErrorKind) {
4789
4827
  case "busy": return {
4790
4828
  shouldRetry: !0,
@@ -4819,33 +4857,33 @@ function retryPolicyFor(e) {
4819
4857
  };
4820
4858
  case "notFound":
4821
4859
  case "invalidConfig":
4822
- case "fatal": return K;
4823
- default: return K;
4860
+ case "fatal": return J;
4861
+ default: return J;
4824
4862
  }
4825
4863
  }
4826
4864
  //#endregion
4827
4865
  //#region ../core/dist/wire/timezone.js
4828
- var q = string().min(1).max(64).refine((e) => {
4866
+ var Y = string().min(1).max(64).refine((e) => {
4829
4867
  try {
4830
4868
  return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
4831
4869
  } catch {
4832
4870
  return !1;
4833
4871
  }
4834
- }, "Invalid IANA timezone"), yi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), bi = object({
4872
+ }, "Invalid IANA timezone"), wi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Ti = object({
4835
4873
  orgId: string(),
4836
4874
  name: string().min(1).max(100),
4837
4875
  emoji: string().max(8).nullable().optional(),
4838
4876
  title: string().max(120).nullable().optional(),
4839
4877
  summary: string().max(500).nullable().optional(),
4840
4878
  handle: string().min(2).max(50).optional(),
4841
- timezone: q.optional(),
4879
+ timezone: Y.optional(),
4842
4880
  runtime: _enum(["hermes"]).optional(),
4843
4881
  visibility: _enum([
4844
4882
  "private",
4845
4883
  "org",
4846
4884
  "public"
4847
4885
  ]).optional()
4848
- }).strict(), xi = object({
4886
+ }).strict(), Ei = object({
4849
4887
  name: string().min(1).max(100).optional(),
4850
4888
  handle: string().min(2).max(50).optional(),
4851
4889
  emoji: string().max(8).nullable().optional(),
@@ -4855,21 +4893,22 @@ var q = string().min(1).max(64).refine((e) => {
4855
4893
  website: string().url().nullable().optional(),
4856
4894
  avatarMediaId: string().nullable().optional(),
4857
4895
  coverMediaId: string().nullable().optional(),
4858
- timezone: q.optional(),
4896
+ timezone: Y.optional(),
4859
4897
  model: string().nullable().optional(),
4860
- billingTier: Xr.optional(),
4898
+ voice: R.nullable().optional(),
4899
+ billingTier: z.optional(),
4861
4900
  visibility: _enum([
4862
4901
  "private",
4863
4902
  "org",
4864
4903
  "public"
4865
4904
  ]).optional(),
4866
- automationPrimaryChannel: yi.optional(),
4905
+ automationPrimaryChannel: wi.optional(),
4867
4906
  heartbeatEnabled: boolean().optional()
4868
- }).strict(), Si = V, Ci = object({
4907
+ }).strict(), Di = V, Oi = object({
4869
4908
  id: string(),
4870
4909
  label: string(),
4871
4910
  prompt: string()
4872
- }), 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.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.WAKE_FAILED".split("."), J = _enum(wi), Ti = _enum([
4911
+ }), ki = /* @__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("."), Ai = _enum(ki), ji = _enum([
4873
4912
  "notFound",
4874
4913
  "busy",
4875
4914
  "rateLimited",
@@ -4880,13 +4919,23 @@ var q = string().min(1).max(64).refine((e) => {
4880
4919
  ]), zApiOk = (e) => object({
4881
4920
  ok: literal(!0),
4882
4921
  data: e
4883
- }), Ei = object({
4922
+ }), Mi = object({
4884
4923
  ok: literal(!1),
4885
4924
  error: string(),
4886
- code: J.optional(),
4887
- issue: F.optional(),
4888
- providerErrorKind: Ti.optional()
4889
- }), zApiResponse = (e) => union([zApiOk(e), Ei]);
4925
+ code: Ai.optional(),
4926
+ issue: P.optional(),
4927
+ providerErrorKind: ji.optional()
4928
+ }), zApiResponse = (e) => union([zApiOk(e), Mi]), Ni = {
4929
+ 400: "Invalid body.",
4930
+ 401: "Not authenticated.",
4931
+ 500: "Server error."
4932
+ };
4933
+ function zErrorResponses(e) {
4934
+ return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
4935
+ description: t === !0 ? Ni[Number(e)] ?? "Request failed." : t,
4936
+ content: { "application/json": { schema: Mi } }
4937
+ }]));
4938
+ }
4890
4939
  function apiError(e, t, n) {
4891
4940
  return n ? {
4892
4941
  ok: !1,
@@ -4907,7 +4956,7 @@ function apiOk(e) {
4907
4956
  }
4908
4957
  //#endregion
4909
4958
  //#region ../core/dist/wire/chat-tool-activity.js
4910
- var Di = object({
4959
+ var Pi = object({
4911
4960
  kind: _enum([
4912
4961
  "icon",
4913
4962
  "favicon",
@@ -4916,7 +4965,7 @@ var Di = object({
4916
4965
  icon: string().min(1).optional(),
4917
4966
  domain: string().min(1).optional(),
4918
4967
  serviceKey: string().min(1).optional()
4919
- }).strict(), Y = object({
4968
+ }).strict(), Fi = object({
4920
4969
  activityId: string().min(1),
4921
4970
  turnId: string().min(1),
4922
4971
  status: _enum([
@@ -4940,12 +4989,12 @@ var Di = object({
4940
4989
  endedAt: string().datetime().optional(),
4941
4990
  durationMs: number().int().nonnegative().optional(),
4942
4991
  note: string().trim().min(1).optional(),
4943
- visual: Di.optional()
4944
- }).strict(), Oi = Y.extend({ status: _enum(["completed", "failed"]) }), ki = O, Ai = object({
4992
+ visual: Pi.optional()
4993
+ }).strict(), Ii = Fi.extend({ status: _enum(["completed", "failed"]) }), Li = k, Ri = object({
4945
4994
  kind: literal("inline"),
4946
4995
  offset: number().int().nonnegative()
4947
- }), X = object({
4948
- type: ki,
4996
+ }), zi = object({
4997
+ type: Li,
4949
4998
  src: url(),
4950
4999
  filename: string().min(1),
4951
5000
  mimeType: string().min(1),
@@ -4955,12 +5004,12 @@ var Di = object({
4955
5004
  height: number().int().positive().optional(),
4956
5005
  duration: number().nonnegative().optional(),
4957
5006
  text: string().optional(),
4958
- placement: Ai.optional()
4959
- }), ji = object({ ref: string().min(1).max(256) }).strict(), Mi = _enum([
5007
+ placement: Ri.optional()
5008
+ }), Bi = object({ ref: string().min(1).max(256) }).strict(), Vi = _enum([
4960
5009
  "handled",
4961
5010
  "dismissed",
4962
5011
  "deferred"
4963
- ]), Ni = datetime();
5012
+ ]), Hi = datetime();
4964
5013
  function validateAttentionRevisit(e, t) {
4965
5014
  e.revisitAt && e.disposition !== "deferred" && t.addIssue({
4966
5015
  code: "custom",
@@ -4968,17 +5017,17 @@ function validateAttentionRevisit(e, t) {
4968
5017
  message: "revisitAt requires deferred disposition"
4969
5018
  });
4970
5019
  }
4971
- var Pi = ji.extend({
4972
- disposition: Mi.optional(),
4973
- revisitAt: Ni.optional()
4974
- }).superRefine(validateAttentionRevisit), Fi = ji.extend({
4975
- disposition: Mi,
4976
- revisitAt: Ni.optional()
4977
- }).superRefine(validateAttentionRevisit), Ii = object({
5020
+ var Ui = Bi.extend({
5021
+ disposition: Vi.optional(),
5022
+ revisitAt: Hi.optional()
5023
+ }).superRefine(validateAttentionRevisit), Wi = Bi.extend({
5024
+ disposition: Vi,
5025
+ revisitAt: Hi.optional()
5026
+ }).superRefine(validateAttentionRevisit), Gi = object({
4978
5027
  turnId: string().min(1).optional(),
4979
5028
  turnOutcome: _enum(["failed", "stopped"]).optional(),
4980
- attachments: array(X).optional(),
4981
- toolActivities: array(Oi).optional(),
5029
+ attachments: array(zi).optional(),
5030
+ toolActivities: array(Ii).optional(),
4982
5031
  issue: object({
4983
5032
  code: string(),
4984
5033
  bucket: _enum(["account", "error"]),
@@ -4986,7 +5035,10 @@ var Pi = ji.extend({
4986
5035
  actionUrl: string(),
4987
5036
  help: string().optional()
4988
5037
  }).optional(),
4989
- notification: object({ push: boolean().optional() }).optional(),
5038
+ notification: object({
5039
+ push: boolean().optional(),
5040
+ excludeUserId: string().min(1).optional()
5041
+ }).optional(),
4990
5042
  automation: object({ run: object({
4991
5043
  automationRunId: string(),
4992
5044
  sourceKind: _enum(["webhook", "schedule"]),
@@ -5003,8 +5055,8 @@ var Pi = ji.extend({
5003
5055
  ])
5004
5056
  }).catchall(unknown()) }).catchall(unknown()).optional(),
5005
5057
  ownerHandoff: literal(!0).optional(),
5006
- attention: array(Pi).max(20).optional()
5007
- }).catchall(unknown()), Li = object({
5058
+ attention: array(Ui).max(20).optional()
5059
+ }).catchall(unknown()), Ki = object({
5008
5060
  messageId: string().min(1),
5009
5061
  conversationId: string().min(1),
5010
5062
  role: _enum([
@@ -5017,12 +5069,12 @@ var Pi = ji.extend({
5017
5069
  content: string(),
5018
5070
  sequence: string().min(1),
5019
5071
  clientNonce: string().nullable().optional(),
5020
- metadata: Ii.nullable().optional(),
5072
+ metadata: Gi.nullable().optional(),
5021
5073
  status: string().nullable().optional(),
5022
5074
  createdAt: string(),
5023
5075
  updatedAt: string()
5024
- }), Ri = object({
5025
- type: ki,
5076
+ }), qi = object({
5077
+ type: Li,
5026
5078
  mediaId: string().min(1).optional(),
5027
5079
  url: url().optional(),
5028
5080
  name: string().min(1).optional(),
@@ -5038,21 +5090,21 @@ var Pi = ji.extend({
5038
5090
  path: [n],
5039
5091
  message: `${n} is required when mediaId is absent`
5040
5092
  });
5041
- }), zi = object({
5093
+ }), Ji = object({
5042
5094
  conversationId: string().min(1),
5043
5095
  content: string().max(1e4).default(""),
5044
5096
  clientNonce: string().max(64).optional(),
5045
- attachments: array(Ri).max(10).optional(),
5097
+ attachments: array(qi).max(10).optional(),
5046
5098
  channel: _enum(["ios", "dashboard"]).optional(),
5047
5099
  actionUrls: object({
5048
5100
  billing: string().max(500),
5049
5101
  agent: string().max(500)
5050
5102
  }).optional(),
5051
- viewerTimezone: q.optional()
5103
+ viewerTimezone: Y.optional()
5052
5104
  }).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
5053
5105
  path: ["content"],
5054
5106
  message: "Message or attachment required"
5055
- }), Bi = object({
5107
+ }), Yi = object({
5056
5108
  type: _enum(["user", "agent"]),
5057
5109
  id: string().min(1)
5058
5110
  }).strict();
@@ -5067,44 +5119,44 @@ function addDuplicateConversationTargetIssues(e, t) {
5067
5119
  }), n.add(e);
5068
5120
  }
5069
5121
  }
5070
- var Vi = object({
5122
+ var Xi = object({
5071
5123
  orgId: string().min(1),
5072
- participants: array(Bi).min(1).max(20)
5073
- }).strict().superRefine(addDuplicateConversationTargetIssues), Hi = object({
5124
+ participants: array(Yi).min(1).max(20)
5125
+ }).strict().superRefine(addDuplicateConversationTargetIssues), Zi = object({
5074
5126
  orgId: string().min(1),
5075
- participants: array(Bi).min(1).max(20)
5127
+ participants: array(Yi).min(1).max(20)
5076
5128
  }).strict().superRefine((e, t) => {
5077
5129
  addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
5078
5130
  code: "custom",
5079
5131
  path: ["participants"],
5080
5132
  message: "New sessions require at least one agent participant."
5081
5133
  });
5082
- }), Ui = object({
5134
+ }), Qi = object({
5083
5135
  category: string().min(1).max(30).optional(),
5084
5136
  reason: string().max(2e3).optional()
5085
- }).strict(), Wi = _enum([
5137
+ }).strict(), $i = _enum([
5086
5138
  "1:1",
5087
5139
  "4:3",
5088
5140
  "3:4",
5089
5141
  "16:9",
5090
5142
  "9:16"
5091
- ]), Gi = _enum([
5143
+ ]), ea = _enum([
5092
5144
  "1K",
5093
5145
  "2K",
5094
5146
  "4K"
5095
- ]), Ki = object({
5147
+ ]), ta = object({
5096
5148
  prompt: string().trim().min(1).max(4e3),
5097
- aspectRatio: Wi.default("1:1"),
5149
+ aspectRatio: $i.default("1:1"),
5098
5150
  outputFormat: _enum([
5099
5151
  "png",
5100
5152
  "jpeg",
5101
5153
  "webp"
5102
5154
  ]).default("webp"),
5103
- resolution: Gi.default("2K"),
5155
+ resolution: ea.default("2K"),
5104
5156
  style: string().trim().max(200).optional(),
5105
5157
  altText: string().trim().max(500).optional(),
5106
5158
  referenceMediaIds: array(string().min(1)).max(4).optional()
5107
- }).strict(), qi = object({
5159
+ }).strict(), na = object({
5108
5160
  mediaId: string().min(1),
5109
5161
  src: url(),
5110
5162
  filename: string().min(1),
@@ -5114,54 +5166,54 @@ var Vi = object({
5114
5166
  provider: string().min(1).optional(),
5115
5167
  providerRequestId: string().min(1).optional(),
5116
5168
  media: string().startsWith("MEDIA:"),
5117
- attachment: X.extend({ type: literal("image") })
5118
- }), Ji = object({
5169
+ attachment: zi.extend({ type: literal("image") })
5170
+ }), ra = object({
5119
5171
  identityToken: string().min(1),
5120
5172
  fullName: string().optional()
5121
- }), Yi = object({
5173
+ }), ia = object({
5122
5174
  redirect: string(),
5123
5175
  redirectReason: string(),
5124
5176
  isNew: boolean(),
5125
5177
  deviceId: string()
5126
- }), Xi = object({
5178
+ }), aa = object({
5127
5179
  ok: literal(!0),
5128
- data: Yi,
5180
+ data: ia,
5129
5181
  token: string()
5130
- }), Zi = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), Qi = object({ url: string() }), $i = object({
5182
+ }), oa = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), sa = object({ url: string() }), ca = object({
5131
5183
  ok: literal(!0),
5132
- data: Qi
5133
- }), ea = object({ token: string().min(1) }), ta = object({
5184
+ data: sa
5185
+ }), la = object({ token: string().min(1) }), ua = object({
5134
5186
  redirect: string(),
5135
5187
  redirectReason: string(),
5136
5188
  deviceId: string()
5137
- }), na = object({
5189
+ }), da = object({
5138
5190
  ok: literal(!0),
5139
- data: ta,
5191
+ data: ua,
5140
5192
  token: string()
5141
- }), ra = _enum(["none", "active_assistant"]), ia = _enum([
5193
+ }), fa = _enum(["none", "active_assistant"]), pa = _enum([
5142
5194
  "none",
5143
5195
  "active",
5144
5196
  "trial",
5145
5197
  "canceling",
5146
5198
  "past_due",
5147
5199
  "paused"
5148
- ]), aa = object({
5200
+ ]), ma = object({
5149
5201
  brand: string(),
5150
5202
  last4: string(),
5151
5203
  expMonth: number(),
5152
5204
  expYear: number()
5153
- }), oa = object({
5205
+ }), ha = object({
5154
5206
  date: string(),
5155
5207
  amount: number(),
5156
5208
  status: string(),
5157
5209
  invoicePdf: string().optional()
5158
- }), sa = object({
5210
+ }), ga = object({
5159
5211
  graceEndsAt: string().optional(),
5160
5212
  suspended: boolean(),
5161
5213
  url: string().optional()
5162
- }), ca = object({
5163
- plan: ra,
5164
- status: ia,
5214
+ }), _a = object({
5215
+ plan: fa,
5216
+ status: pa,
5165
5217
  price: number(),
5166
5218
  tierRates: record(string(), number()).optional(),
5167
5219
  maxAgents: number(),
@@ -5171,36 +5223,47 @@ var Vi = object({
5171
5223
  cancelAt: string().optional(),
5172
5224
  trialEnd: string().optional(),
5173
5225
  trialDaysRemaining: number().optional(),
5174
- paymentMethod: aa.optional(),
5175
- paymentRecovery: sa.optional(),
5176
- invoices: array(oa),
5226
+ paymentMethod: ma.optional(),
5227
+ paymentRecovery: ga.optional(),
5228
+ invoices: array(ha),
5177
5229
  stripeError: string().optional()
5178
- }), la = object({
5230
+ }), va = object({
5179
5231
  orgId: string(),
5180
5232
  agentName: string().optional(),
5181
5233
  runtime: string().optional()
5182
- }), ua = object({
5234
+ }), ya = object({
5183
5235
  created: number(),
5184
5236
  skipped: number(),
5185
5237
  errors: array(string())
5186
- }), da = object({
5238
+ }), ba = object({
5187
5239
  updated: number(),
5188
5240
  errors: array(string())
5189
- }), fa = Ur, pa = object({
5190
- code: J,
5241
+ }), xa = Gr, Sa = object({
5242
+ code: Ai,
5191
5243
  message: string(),
5192
5244
  bucket: _enum(["account", "error"]).optional(),
5193
5245
  actionLabel: string().optional(),
5194
5246
  actionUrl: string().optional(),
5195
5247
  help: string().optional()
5196
- }), ma = discriminatedUnion("event", [
5248
+ });
5249
+ function toChatStreamError(e) {
5250
+ return {
5251
+ code: e.code,
5252
+ error: e.message,
5253
+ ...e.bucket ? { bucket: e.bucket } : {},
5254
+ ...e.actionLabel ? { actionLabel: e.actionLabel } : {},
5255
+ ...e.actionUrl ? { actionUrl: e.actionUrl } : {},
5256
+ ...e.help ? { help: e.help } : {}
5257
+ };
5258
+ }
5259
+ var Ca = discriminatedUnion("event", [
5197
5260
  object({
5198
5261
  event: literal("status"),
5199
- data: fa
5262
+ data: xa
5200
5263
  }),
5201
5264
  object({
5202
5265
  event: literal("message"),
5203
- data: object({ message: Li })
5266
+ data: object({ message: Ki })
5204
5267
  }),
5205
5268
  object({
5206
5269
  event: literal("message_delta"),
@@ -5220,7 +5283,7 @@ var Vi = object({
5220
5283
  }),
5221
5284
  object({
5222
5285
  event: literal("tool_activity"),
5223
- data: Y
5286
+ data: Fi
5224
5287
  }),
5225
5288
  object({
5226
5289
  event: literal("working_end"),
@@ -5232,7 +5295,7 @@ var Vi = object({
5232
5295
  }),
5233
5296
  object({
5234
5297
  event: literal("error"),
5235
- data: pa
5298
+ data: Sa
5236
5299
  })
5237
5300
  ]);
5238
5301
  function chatEventUserTurnId(e) {
@@ -5384,7 +5447,7 @@ function parseChatEvent(e) {
5384
5447
  for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
5385
5448
  if (!n || r === void 0) return null;
5386
5449
  try {
5387
- let e = ma.safeParse({
5450
+ let e = Ca.safeParse({
5388
5451
  event: n,
5389
5452
  data: JSON.parse(r)
5390
5453
  });
@@ -5395,7 +5458,7 @@ function parseChatEvent(e) {
5395
5458
  }
5396
5459
  //#endregion
5397
5460
  //#region ../core/dist/wire/chat-card.js
5398
- var ha = object({
5461
+ var wa = object({
5399
5462
  label: string().trim().min(1).max(40),
5400
5463
  reply: string().trim().min(1).max(500),
5401
5464
  style: _enum([
@@ -5403,11 +5466,11 @@ var ha = object({
5403
5466
  "default",
5404
5467
  "destructive"
5405
5468
  ]).optional()
5406
- }).strip(), ga = object({
5469
+ }).strip(), Ta = object({
5407
5470
  version: literal(1),
5408
5471
  title: string().trim().min(1).max(200),
5409
5472
  body: string().trim().min(1).max(4e3).optional(),
5410
- actions: array(ha).min(1).max(3).optional()
5473
+ actions: array(wa).min(1).max(3).optional()
5411
5474
  }).strip();
5412
5475
  function parseChatCardFencePayload(e) {
5413
5476
  let t;
@@ -5420,7 +5483,7 @@ function parseChatCardFencePayload(e) {
5420
5483
  message: e instanceof Error ? e.message : "Invalid JSON"
5421
5484
  };
5422
5485
  }
5423
- let n = ga.safeParse(t);
5486
+ let n = Ta.safeParse(t);
5424
5487
  return n.success ? {
5425
5488
  ok: !0,
5426
5489
  spec: n.data
@@ -5432,36 +5495,36 @@ function parseChatCardFencePayload(e) {
5432
5495
  }
5433
5496
  //#endregion
5434
5497
  //#region ../core/dist/wire/chat-visual.js
5435
- 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([
5498
+ var Ea = string().trim().min(1).max(240), X = 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), Da = record(Z, union([
5436
5499
  string().max(500),
5437
5500
  number().finite(),
5438
5501
  boolean(),
5439
5502
  _null()
5440
- ])), ba = _enum([
5503
+ ])), Oa = _enum([
5441
5504
  "compact",
5442
5505
  "currency",
5443
5506
  "duration",
5444
5507
  "integer",
5445
5508
  "percent",
5446
5509
  "raw"
5447
- ]), xa = object({
5448
- title: _a,
5449
- description: va.optional(),
5450
- footer: va.optional()
5451
- }).strip(), Sa = object({
5510
+ ]), ka = object({
5511
+ title: Ea,
5512
+ description: X.optional(),
5513
+ footer: X.optional()
5514
+ }).strip(), Aa = object({
5452
5515
  dataKey: Z,
5453
5516
  label: Q.optional(),
5454
5517
  axisLabel: Q.optional(),
5455
- valueFormat: ba.optional(),
5518
+ valueFormat: Oa.optional(),
5456
5519
  valuePrefix: string().trim().max(12).optional(),
5457
5520
  valueSuffix: string().trim().max(12).optional()
5458
- }).strip(), Ca = object({
5521
+ }).strip(), ja = object({
5459
5522
  kind: literal("linear"),
5460
5523
  dataKey: Z,
5461
5524
  label: Q.optional()
5462
- }).strip(), wa = object({
5525
+ }).strip(), Ma = object({
5463
5526
  version: literal(1),
5464
- meta: xa,
5527
+ meta: ka,
5465
5528
  fallbackMarkdown: string().trim().min(1).max(4e3)
5466
5529
  }).strip();
5467
5530
  function dataKeys(e) {
@@ -5503,7 +5566,7 @@ function requireNumericDataKeys(e, t, n) {
5503
5566
  });
5504
5567
  }
5505
5568
  }
5506
- var Ta = discriminatedUnion("chartType", [wa.extend({
5569
+ var Na = discriminatedUnion("chartType", [Ma.extend({
5507
5570
  visualType: literal("chart"),
5508
5571
  chartType: _enum([
5509
5572
  "bar",
@@ -5512,11 +5575,11 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5512
5575
  ]),
5513
5576
  xKey: Z,
5514
5577
  xAxisLabel: Q.optional(),
5515
- series: array(Sa).min(1).max(6),
5516
- data: array(ya).min(1).max(120),
5578
+ series: array(Aa).min(1).max(6),
5579
+ data: array(Da).min(1).max(120),
5517
5580
  layout: _enum(["horizontal", "vertical"]).optional(),
5518
5581
  stacking: _enum(["grouped", "stacked"]).optional(),
5519
- trendLine: Ca.optional()
5582
+ trendLine: ja.optional()
5520
5583
  }).strip().superRefine((e, t) => {
5521
5584
  e.stacking && e.chartType !== "bar" && t.addIssue({
5522
5585
  code: "custom",
@@ -5554,13 +5617,13 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5554
5617
  path: ["trendLine", "dataKey"],
5555
5618
  value: e.trendLine.dataKey
5556
5619
  }] : []], t);
5557
- }), wa.extend({
5620
+ }), Ma.extend({
5558
5621
  visualType: literal("chart"),
5559
5622
  chartType: literal("pie"),
5560
5623
  nameKey: Z,
5561
5624
  valueKey: Z,
5562
- series: array(Sa).max(1).optional(),
5563
- data: array(ya).min(1).max(16)
5625
+ series: array(Aa).max(1).optional(),
5626
+ data: array(Da).min(1).max(16)
5564
5627
  }).strip().superRefine((e, t) => {
5565
5628
  requireDataKeys(e.data, [
5566
5629
  {
@@ -5584,10 +5647,10 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5584
5647
  value: e.valueKey,
5585
5648
  nonnegative: !0
5586
5649
  }], t);
5587
- })]), Ea = object({
5650
+ })]), Pa = object({
5588
5651
  id: Z,
5589
5652
  label: Q,
5590
- detail: va.optional(),
5653
+ detail: X.optional(),
5591
5654
  kind: _enum([
5592
5655
  "actor",
5593
5656
  "agent",
@@ -5598,11 +5661,11 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5598
5661
  "system",
5599
5662
  "task"
5600
5663
  ]).optional()
5601
- }).strip(), Da = object({
5664
+ }).strip(), Fa = object({
5602
5665
  from: Z,
5603
5666
  to: Z,
5604
5667
  label: Q.optional()
5605
- }).strip(), Oa = union([Ta, wa.extend({
5668
+ }).strip(), Ia = union([Na, Ma.extend({
5606
5669
  visualType: literal("diagram"),
5607
5670
  diagramType: _enum([
5608
5671
  "flow",
@@ -5616,8 +5679,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
5616
5679
  "radial",
5617
5680
  "top-to-bottom"
5618
5681
  ]).default("auto"),
5619
- nodes: array(Ea).min(1).max(24),
5620
- edges: array(Da).max(48)
5682
+ nodes: array(Pa).min(1).max(24),
5683
+ edges: array(Fa).max(48)
5621
5684
  }).strip().superRefine((e, t) => {
5622
5685
  let n = new Set(e.nodes.map((e) => e.id));
5623
5686
  for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
@@ -5776,11 +5839,11 @@ function parseChatVisualFencePayload(e) {
5776
5839
  fallbackMarkdown: r
5777
5840
  };
5778
5841
  }
5779
- let n = Oa.safeParse(t);
5842
+ let n = Ia.safeParse(t);
5780
5843
  if (!n.success) {
5781
5844
  let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
5782
5845
  if (e) {
5783
- let t = Oa.safeParse(e);
5846
+ let t = Ia.safeParse(e);
5784
5847
  if (t.success) return {
5785
5848
  ok: !0,
5786
5849
  spec: t.data
@@ -5805,7 +5868,7 @@ function extractChatVisualFencePayloads(e) {
5805
5868
  }
5806
5869
  //#endregion
5807
5870
  //#region ../core/dist/wire/conversation.js
5808
- var ka = object({
5871
+ var La = object({
5809
5872
  type: _enum([
5810
5873
  "user",
5811
5874
  "agent",
@@ -5825,7 +5888,7 @@ var ka = object({
5825
5888
  displayName: string().optional(),
5826
5889
  handle: string().optional(),
5827
5890
  avatarUrl: string().optional()
5828
- }).strict(), Aa = object({
5891
+ }).strict(), Ra = object({
5829
5892
  messageId: string(),
5830
5893
  role: _enum([
5831
5894
  "user",
@@ -5835,7 +5898,7 @@ var ka = object({
5835
5898
  content: string(),
5836
5899
  sequence: string(),
5837
5900
  createdAt: string()
5838
- }), ja = object({
5901
+ }), za = object({
5839
5902
  conversationId: string(),
5840
5903
  orgId: string(),
5841
5904
  kind: _enum(["direct", "group"]),
@@ -5845,30 +5908,30 @@ var ka = object({
5845
5908
  "requester",
5846
5909
  "member"
5847
5910
  ]),
5848
- participants: array(ka),
5849
- lastMessage: Aa.nullable(),
5911
+ participants: array(La),
5912
+ lastMessage: Ra.nullable(),
5850
5913
  unreadCount: number().int().nonnegative(),
5851
5914
  latestSequence: string().nullable()
5852
- }), Ma = object({ sequence: string().min(1) }), Na = object({ turnId: string().min(1).optional() }).strict(), Pa = object({
5915
+ }), Ba = object({ sequence: string().min(1) }), Va = object({ turnId: string().min(1).optional() }).strict(), Ha = object({
5853
5916
  cancelled: boolean(),
5854
5917
  cancelledTurnIds: array(string())
5855
- }).strict(), Fa = object({
5918
+ }).strict(), Ua = object({
5856
5919
  conversationId: string(),
5857
5920
  messageId: string(),
5858
5921
  sequence: string(),
5859
5922
  snippet: string(),
5860
5923
  createdAt: string(),
5861
- participants: array(ka)
5862
- }), Ia = object({
5924
+ participants: array(La)
5925
+ }), Wa = object({
5863
5926
  conversationId: string(),
5864
- lastMessage: Aa.nullable(),
5927
+ lastMessage: Ra.nullable(),
5865
5928
  unreadCount: number().int().nonnegative(),
5866
5929
  latestSequence: string().nullable()
5867
- }), $ = 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([
5930
+ }), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), Ga = preprocess((e) => e === void 0 ? null : e, L.nullable()), Ka = preprocess((e) => e === void 0 ? null : e, I.nullable()), qa = preprocess((e) => e === void 0 ? null : e, _enum([
5868
5931
  "user",
5869
5932
  "assistant",
5870
5933
  "system"
5871
- ]).nullable()), Ba = preprocess((e) => e === void 0 ? 0 : e, number()), Va = object({
5934
+ ]).nullable()), Ja = preprocess((e) => e === void 0 ? 0 : e, number()), Ya = object({
5872
5935
  agentId: string(),
5873
5936
  handle: string(),
5874
5937
  name: string(),
@@ -5877,19 +5940,19 @@ var ka = object({
5877
5940
  orgHandle: $,
5878
5941
  ownerEmail: $,
5879
5942
  ownerName: $,
5880
- state: La,
5881
- desiredStatus: Ra,
5943
+ state: Ga,
5944
+ desiredStatus: Ka,
5882
5945
  runtime: string(),
5883
5946
  imageVersion: $,
5884
5947
  lastHealthyAt: $,
5885
5948
  lastActiveAt: $,
5886
5949
  lastUserMessageAt: $,
5887
5950
  lastMessageAt: $,
5888
- lastMessageRole: za,
5951
+ lastMessageRole: qa,
5889
5952
  lastMessageChannel: $,
5890
5953
  primaryChannel: $,
5891
- totalMessages: Ba,
5892
- totalSessions: Ba,
5954
+ totalMessages: Ja,
5955
+ totalSessions: Ja,
5893
5956
  error: $,
5894
5957
  appHandle: string(),
5895
5958
  flyAppExists: boolean(),
@@ -5898,7 +5961,7 @@ var ka = object({
5898
5961
  billingActive: boolean(),
5899
5962
  createdAt: string(),
5900
5963
  updatedAt: string()
5901
- }), Ha = object({
5964
+ }), Xa = object({
5902
5965
  running: number(),
5903
5966
  stopped: number(),
5904
5967
  error: number(),
@@ -5906,28 +5969,28 @@ var ka = object({
5906
5969
  stopping: number(),
5907
5970
  unknown: number(),
5908
5971
  total: number()
5909
- }), Ua = object({
5910
- agents: array(Va),
5911
- summary: Ha,
5972
+ }), Za = object({
5973
+ agents: array(Ya),
5974
+ summary: Xa,
5912
5975
  orphanedApps: array(string()),
5913
5976
  dailyMessages30d: array(number().int()).optional(),
5914
5977
  flyAppCount: number().optional(),
5915
5978
  latestVersion: string().optional(),
5916
5979
  latestVersions: record(string(), string()).optional()
5917
- }), Wa = k, Ga = O, Ka = object({
5980
+ }), Qa = A, $a = k, eo = object({
5918
5981
  mediaId: string(),
5919
5982
  src: string(),
5920
5983
  alt: string().nullable().optional(),
5921
5984
  filename: string().optional(),
5922
5985
  displayName: string().nullable().optional(),
5923
5986
  mimeType: string().optional(),
5924
- mediaType: Ga.optional(),
5925
- type: Ga.optional(),
5987
+ mediaType: $a.optional(),
5988
+ type: $a.optional(),
5926
5989
  size: number().optional(),
5927
5990
  width: number().nullable().optional(),
5928
5991
  height: number().nullable().optional(),
5929
5992
  duration: number().nullable().optional(),
5930
- context: Wa.nullable().optional(),
5993
+ context: Qa.nullable().optional(),
5931
5994
  blurhash: string().nullable().optional(),
5932
5995
  quality: string().optional(),
5933
5996
  status: string().optional(),
@@ -5936,13 +5999,13 @@ var ka = object({
5936
5999
  agentId: string().nullable().optional(),
5937
6000
  createdAt: string().optional(),
5938
6001
  updatedAt: string().optional()
5939
- }), qa = object({
6002
+ }), to = object({
5940
6003
  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."),
5941
- context: Wa.optional().default("general"),
6004
+ context: Qa.optional().default("general"),
5942
6005
  agentId: string().optional(),
5943
6006
  orgId: string().optional(),
5944
6007
  duration: number().optional()
5945
- }), Ja = object({
6008
+ }), no = object({
5946
6009
  mediaId: string().optional(),
5947
6010
  src: string().optional(),
5948
6011
  alt: string().optional(),
@@ -5951,7 +6014,7 @@ var ka = object({
5951
6014
  mimeType: string().optional(),
5952
6015
  mediaType: string().optional(),
5953
6016
  blurhash: string().optional()
5954
- }), Ya = object({
6017
+ }), ro = object({
5955
6018
  membershipId: string(),
5956
6019
  userId: string(),
5957
6020
  orgId: string(),
@@ -5966,15 +6029,15 @@ var ka = object({
5966
6029
  status: _enum(["active", "suspended"]),
5967
6030
  joinedAt: string(),
5968
6031
  lastSeenAt: string().optional(),
5969
- avatar: Ja.optional()
5970
- }), Xa = object({
6032
+ avatar: no.optional()
6033
+ }), io = object({
5971
6034
  invitationId: string(),
5972
6035
  email: string(),
5973
6036
  role: _enum(["admin", "member"]),
5974
6037
  status: string(),
5975
6038
  expiresAt: string(),
5976
6039
  createdAt: string()
5977
- }), Za = object({
6040
+ }), ao = object({
5978
6041
  token: string(),
5979
6042
  email: string(),
5980
6043
  orgId: string(),
@@ -5996,54 +6059,54 @@ var ka = object({
5996
6059
  ]),
5997
6060
  expiresAt: string(),
5998
6061
  memberCount: number().optional()
5999
- }), Qa = object({
6062
+ }), oo = object({
6000
6063
  email: string().email(),
6001
6064
  role: _enum(["admin", "member"]).optional(),
6002
6065
  message: string().max(500).optional()
6003
- }).strict(), $a = object({ role: _enum(["admin", "member"]) }).strict(), eo = object({ token: string().min(1) }).strict(), to = _enum([
6066
+ }).strict(), so = object({ role: _enum(["admin", "member"]) }).strict(), co = object({ token: string().min(1) }).strict(), lo = _enum([
6004
6067
  "planLimit",
6005
6068
  "billingOverdue",
6006
6069
  "rebuilding",
6007
6070
  "agentNotFound"
6008
- ]), no = _enum([
6071
+ ]), uo = _enum([
6009
6072
  "rebuilding",
6010
6073
  "provisioning",
6011
6074
  "billingOverdue"
6012
- ]), ro = object({
6075
+ ]), fo = object({
6013
6076
  agentId: string(),
6014
6077
  name: string(),
6015
- avatar: A.optional(),
6078
+ avatar: j.optional(),
6016
6079
  summary: string().nullable().optional(),
6017
6080
  ownerId: string(),
6018
6081
  ownerFirstName: string(),
6019
- ownerAvatar: A.optional(),
6082
+ ownerAvatar: j.optional(),
6020
6083
  ownerLabel: string(),
6021
6084
  avatarInitial: string(),
6022
6085
  isYours: boolean(),
6023
6086
  lastMessageAt: string().datetime().nullable(),
6024
6087
  lastMessagePreview: string().nullable(),
6025
6088
  onboardedAt: string().datetime().nullable(),
6026
- desiredStatus: L.nullable(),
6027
- lifecycle: R,
6089
+ desiredStatus: I.nullable(),
6090
+ lifecycle: L,
6028
6091
  changedAt: string().datetime().optional(),
6029
6092
  detail: string().optional(),
6030
- blocker: F.optional(),
6093
+ blocker: P.optional(),
6031
6094
  canWake: boolean(),
6032
- cantWakeReason: to.optional(),
6095
+ cantWakeReason: lo.optional(),
6033
6096
  canRebuild: boolean(),
6034
- cantRebuildReason: no.optional()
6035
- }), io = /* @__PURE__ */ t({
6036
- zNotificationTelemetryAck: () => co,
6037
- zNotificationTelemetryEvent: () => so,
6038
- zRegisterDeviceRequest: () => ao,
6039
- zRegisterDeviceResponse: () => oo
6040
- }), ao = object({
6097
+ cantRebuildReason: uo.optional()
6098
+ }), po = /* @__PURE__ */ t({
6099
+ zNotificationTelemetryAck: () => _o,
6100
+ zNotificationTelemetryEvent: () => go,
6101
+ zRegisterDeviceRequest: () => mo,
6102
+ zRegisterDeviceResponse: () => ho
6103
+ }), mo = object({
6041
6104
  deviceId: string().min(1).max(64),
6042
6105
  pushToken: string().min(1).max(200),
6043
6106
  appVersion: string().max(40).optional(),
6044
6107
  osVersion: string().max(40).optional(),
6045
6108
  model: string().max(80).optional()
6046
- }), oo = object({ deviceId: string().min(1).max(64) }), so = object({
6109
+ }), ho = object({ deviceId: string().min(1).max(64) }), go = object({
6047
6110
  deviceId: string().min(1).max(64),
6048
6111
  kind: string().min(1).max(30),
6049
6112
  action: _enum([
@@ -6052,7 +6115,7 @@ var ka = object({
6052
6115
  "dismissed"
6053
6116
  ]),
6054
6117
  messageId: string().max(32).optional()
6055
- }), co = object({ updated: boolean() }), lo = U.pick({
6118
+ }), _o = object({ updated: boolean() }), vo = G.pick({
6056
6119
  orgId: !0,
6057
6120
  handle: !0,
6058
6121
  name: !0,
@@ -6066,13 +6129,13 @@ var ka = object({
6066
6129
  status: !0,
6067
6130
  updatedAt: !0
6068
6131
  }).extend({
6069
- avatar: Ka.nullable().optional(),
6070
- cover: Ka.nullable().optional()
6071
- }), uo = object({
6132
+ avatar: eo.nullable().optional(),
6133
+ cover: eo.nullable().optional()
6134
+ }), yo = object({
6072
6135
  name: string().min(1).max(255),
6073
6136
  handle: string().min(2).max(50).optional(),
6074
- timezone: q.optional()
6075
- }).strict(), fo = U.pick({
6137
+ timezone: Y.optional()
6138
+ }).strict(), bo = G.pick({
6076
6139
  name: !0,
6077
6140
  email: !0,
6078
6141
  website: !0,
@@ -6081,14 +6144,14 @@ var ka = object({
6081
6144
  }).extend({
6082
6145
  name: string().min(1).max(255).optional(),
6083
6146
  email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
6084
- timezone: q.optional(),
6147
+ timezone: Y.optional(),
6085
6148
  avatarMediaId: string().nullable().optional(),
6086
6149
  coverMediaId: string().nullable().optional()
6087
- }).strict(), po = _enum([
6150
+ }).strict(), xo = _enum([
6088
6151
  "success",
6089
6152
  "info",
6090
6153
  "warning"
6091
- ]), mo = object({
6154
+ ]), So = object({
6092
6155
  org: object({
6093
6156
  orgId: string(),
6094
6157
  name: string(),
@@ -6097,7 +6160,7 @@ var ka = object({
6097
6160
  plan: object({
6098
6161
  key: string(),
6099
6162
  label: string(),
6100
- tone: po,
6163
+ tone: xo,
6101
6164
  status: string(),
6102
6165
  trialDaysRemaining: number().optional()
6103
6166
  }),
@@ -6118,15 +6181,15 @@ function zPaginatedResponse(e) {
6118
6181
  }
6119
6182
  //#endregion
6120
6183
  //#region ../core/dist/wire/public-services.js
6121
- var ho = object({
6184
+ var Co = object({
6122
6185
  sender: _enum(["user", "agent"]),
6123
6186
  text: string()
6124
- }), go = _enum([
6187
+ }), wo = _enum([
6125
6188
  "works-now",
6126
6189
  "guided-setup",
6127
6190
  "coming-soon",
6128
6191
  "custom-workflow"
6129
- ]), _o = object({
6192
+ ]), To = object({
6130
6193
  docsUrl: string(),
6131
6194
  verifiedAt: string(),
6132
6195
  version: string().optional(),
@@ -6138,11 +6201,11 @@ var ho = object({
6138
6201
  "unversioned"
6139
6202
  ]),
6140
6203
  note: string().optional()
6141
- }), vo = object({
6204
+ }), Eo = object({
6142
6205
  key: string(),
6143
6206
  label: string(),
6144
6207
  rank: number()
6145
- }), yo = object({
6208
+ }), Do = object({
6146
6209
  text: string(),
6147
6210
  tone: _enum([
6148
6211
  "info",
@@ -6150,7 +6213,7 @@ var ho = object({
6150
6213
  "success",
6151
6214
  "danger"
6152
6215
  ])
6153
- }), bo = object({
6216
+ }), Oo = object({
6154
6217
  serviceKey: string(),
6155
6218
  name: string(),
6156
6219
  description: string(),
@@ -6160,16 +6223,16 @@ var ho = object({
6160
6223
  category: string(),
6161
6224
  categoryLabel: string(),
6162
6225
  categoryRank: number(),
6163
- secondaryCategories: array(vo),
6164
- badges: array(yo),
6226
+ secondaryCategories: array(Eo),
6227
+ badges: array(Do),
6165
6228
  tags: array(string()),
6166
6229
  searchAliases: array(string()),
6167
6230
  jtbd: string(),
6168
6231
  useCase: string(),
6169
6232
  demoScenario: string(),
6170
- sampleConversation: array(ho),
6171
- publicStatus: go,
6172
- apiVerification: _o.optional(),
6233
+ sampleConversation: array(Co),
6234
+ publicStatus: wo,
6235
+ apiVerification: To.optional(),
6173
6236
  setupDifficulty: string(),
6174
6237
  risk: string(),
6175
6238
  price: string(),
@@ -6182,78 +6245,80 @@ var ho = object({
6182
6245
  ]),
6183
6246
  setupSummary: string().optional(),
6184
6247
  pagePath: string()
6185
- }), xo = object({
6248
+ }), ko = object({
6186
6249
  fullName: string().min(1).max(100).optional(),
6250
+ linkedinUsername: W.nullable().optional(),
6187
6251
  avatarMediaId: string().nullable().optional(),
6188
6252
  primaryAgentId: string().nullable().optional(),
6189
6253
  lastActiveOrgId: string().nullable().optional()
6190
- }).strict(), So = /* @__PURE__ */ t({
6191
- ASSISTANT_SILENCE_CONTROLS: () => W,
6192
- ActionAreaSchema: () => Fr,
6193
- ActionButtonSchema: () => N,
6254
+ }).strict(), Ao = /* @__PURE__ */ t({
6255
+ ASSISTANT_SILENCE_CONTROLS: () => K,
6256
+ ActionAreaSchema: () => Ir,
6257
+ ActionButtonSchema: () => M,
6194
6258
  Agent: () => H,
6195
- AudioFormatSchema: () => Er,
6196
- AudioMediaSchema: () => jr,
6197
- AudioPropertiesSchema: () => Or,
6259
+ AudioFormatSchema: () => Tr,
6260
+ AudioMediaSchema: () => Ar,
6261
+ AudioPropertiesSchema: () => Dr,
6198
6262
  AuthApiError: () => AuthApiError,
6199
- BOT_API_LLM_PATH: () => _i,
6200
- BOT_API_PATH: () => gi,
6201
- BOT_USER_AGENT: () => pi,
6202
- ButtonDesignSchema: () => M,
6263
+ BOT_API_LLM_PATH: () => Si,
6264
+ BOT_API_PATH: () => xi,
6265
+ BOT_USER_AGENT: () => vi,
6266
+ ButtonDesignSchema: () => Fr,
6203
6267
  ButtonThemeSchema: () => Pr,
6204
- CHART_THEME: () => Rr,
6205
- CHAT_ISSUE_CODES: () => P,
6206
- CHAT_ISSUE_COPY: () => I,
6268
+ CHART_THEME: () => zr,
6269
+ CHAT_ISSUE_CODES: () => N,
6270
+ CHAT_ISSUE_COPY: () => F,
6207
6271
  CookieUtil: () => CookieUtil,
6208
- DocumentMediaSchema: () => Mr,
6209
- ERROR_CODES: () => wi,
6272
+ DocumentMediaSchema: () => jr,
6273
+ ERROR_CODES: () => ki,
6210
6274
  EnrichedAgentSchema: () => V,
6211
- ImageFormatSchema: () => wr,
6212
- ImageMediaSchema: () => kr,
6213
- LIFECYCLE_COLOR: () => Gr,
6275
+ ImageFormatSchema: () => Cr,
6276
+ ImageMediaSchema: () => Or,
6277
+ LIFECYCLE_COLOR: () => qr,
6214
6278
  Logger: () => p,
6215
- MEDIA_CONTEXTS: () => xr,
6216
- MEDIA_TYPES: () => br,
6217
- MediaContextSchema: () => k,
6218
- MediaSchema: () => A,
6219
- MediaStatusSchema: () => Sr,
6220
- MediaTypeSchema: () => O,
6221
- MediaUnionSchema: () => Nr,
6222
- NavItemSchema: () => Ir,
6223
- NavListSchema: () => Lr,
6279
+ MEDIA_CONTEXTS: () => br,
6280
+ MEDIA_TYPES: () => yr,
6281
+ MediaContextSchema: () => A,
6282
+ MediaSchema: () => j,
6283
+ MediaStatusSchema: () => xr,
6284
+ MediaTypeSchema: () => k,
6285
+ MediaUnionSchema: () => Mr,
6286
+ NavItemSchema: () => Lr,
6287
+ NavListSchema: () => Rr,
6224
6288
  PAGELINES_APP_CONFIG: () => i,
6225
6289
  SettingsObject: () => SettingsObject,
6226
- SizeSchema: () => j,
6227
- SocialAccountSchema: () => vr,
6228
- SocialAccountsSchema: () => yr,
6229
- UNKNOWN_STATUS: () => Wr,
6230
- VideoFormatSchema: () => Tr,
6231
- VideoMediaSchema: () => Ar,
6232
- VideoPropertiesSchema: () => Dr,
6290
+ SizeSchema: () => Nr,
6291
+ SocialAccountSchema: () => _r,
6292
+ SocialAccountsSchema: () => vr,
6293
+ UNKNOWN_STATUS: () => Kr,
6294
+ VideoFormatSchema: () => wr,
6295
+ VideoMediaSchema: () => kr,
6296
+ VideoPropertiesSchema: () => Er,
6233
6297
  agentSchema: () => B,
6234
6298
  apiError: () => apiError,
6235
6299
  apiOk: () => apiOk,
6236
- appleAuthSchema: () => ci,
6300
+ appleAuthSchema: () => pi,
6237
6301
  authErrorMessage: () => authErrorMessage,
6238
6302
  botApiLlmUrl: () => botApiLlmUrl,
6239
6303
  botApiUrl: () => botApiUrl,
6240
6304
  budgetMinutes: () => budgetMinutes,
6241
6305
  buildChatIssue: () => buildChatIssue,
6242
- changeEmailSchema: () => ai,
6243
- changePasswordSchema: () => oi,
6306
+ changeEmailSchema: () => ui,
6307
+ changePasswordSchema: () => di,
6244
6308
  chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
6245
6309
  chatEventMatchesTurn: () => chatEventMatchesTurn,
6246
6310
  chatEventTurnId: () => chatEventTurnId,
6247
6311
  chatEventUserTurnId: () => chatEventUserTurnId,
6248
6312
  chatIssueCatalogLines: () => chatIssueCatalogLines,
6313
+ chatIssueToErrorData: () => chatIssueToErrorData,
6249
6314
  cookieUtil: () => ae,
6250
6315
  createAgent: () => createAgent,
6251
6316
  createAgents: () => createAgents,
6252
6317
  createLogger: () => createLogger,
6253
6318
  debug: () => ne,
6254
6319
  derive: () => derive,
6255
- emailSchema: () => ei,
6256
- enrichedUserSchema: () => fi,
6320
+ emailSchema: () => ai,
6321
+ enrichedUserSchema: () => _i,
6257
6322
  error: () => h,
6258
6323
  errorCopy: () => errorCopy,
6259
6324
  errorFromApiResponse: () => errorFromApiResponse,
@@ -6263,139 +6328,148 @@ var ho = object({
6263
6328
  getDefaultAvatarUrl: () => getDefaultAvatarUrl,
6264
6329
  getDefaultGradientCss: () => getDefaultGradientCss,
6265
6330
  getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
6266
- googleAuthSchema: () => si,
6331
+ googleAuthSchema: () => fi,
6267
6332
  info: () => te,
6268
6333
  isAgentReady: () => isAgentReady,
6269
6334
  isAssistantSilenceControl: () => isAssistantSilenceControl,
6270
6335
  isAssistantSilenceControlPrefix: () => isAssistantSilenceControlPrefix,
6271
6336
  isOperationActive: () => isOperationActive,
6272
6337
  isTransitioning: () => isTransitioning,
6338
+ linkedinUsernameSchema: () => W,
6273
6339
  logger: () => m,
6274
- loginSchema: () => ti,
6340
+ loginSchema: () => oi,
6275
6341
  mapAuthErrorCode: () => mapAuthErrorCode,
6276
6342
  nanoid: () => nanoid$1,
6277
- notificationWire: () => io,
6343
+ notificationWire: () => po,
6278
6344
  objectId: () => objectId,
6279
- orgInfoSchema: () => di,
6280
- orgSchema: () => U,
6281
- orgWithDefaultAgentSchema: () => li,
6345
+ orgInfoSchema: () => gi,
6346
+ orgSchema: () => G,
6347
+ orgWithDefaultAgentSchema: () => mi,
6282
6348
  parseChatCardFencePayload: () => parseChatCardFencePayload,
6283
6349
  parseChatVisualFencePayload: () => parseChatVisualFencePayload,
6284
- registerSchema: () => ni,
6350
+ registerSchema: () => si,
6285
6351
  renderIssueAsMarkdown: () => renderIssueAsMarkdown,
6286
- resetPasswordSchema: () => ii,
6352
+ resetPasswordSchema: () => li,
6287
6353
  retryPolicyFor: () => retryPolicyFor,
6288
6354
  runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
6289
- serverTransitionBudgets: () => hi,
6355
+ serverTransitionBudgets: () => bi,
6290
6356
  shortId: () => shortId,
6291
6357
  toAgentState: () => toAgentState,
6358
+ toChatStreamError: () => toChatStreamError,
6292
6359
  trace: () => re,
6293
- updateUserSchema: () => $r,
6294
- userSchema: () => Qr,
6360
+ trialEligibilitySchema: () => U,
6361
+ updateUserSchema: () => ii,
6362
+ userSchema: () => ri,
6295
6363
  uuid: () => uuid$1,
6296
- verifyCodeSchema: () => ri,
6364
+ verifyCodeSchema: () => ci,
6297
6365
  warn: () => ee,
6298
6366
  withChatEventTurnId: () => withChatEventTurnId,
6299
- zAcceptInvitationBody: () => eo,
6300
- zAccessibleAgentRow: () => ro,
6301
- zAgentRow: () => Si,
6302
- zApiError: () => Ei,
6367
+ zAcceptInvitationBody: () => co,
6368
+ zAccessibleAgentRow: () => fo,
6369
+ zAgentRow: () => Di,
6370
+ zApiError: () => Mi,
6303
6371
  zApiOk: () => zApiOk,
6304
6372
  zApiResponse: () => zApiResponse,
6305
- zAppleAuthBody: () => Ji,
6306
- zAuthSessionData: () => Yi,
6307
- zAuthSessionResponse: () => Xi,
6308
- zAutomationPrimaryChannel: () => yi,
6309
- zBackfillBillingData: () => da,
6310
- zBackfillCustomersData: () => ua,
6311
- zBillingDetails: () => ca,
6312
- zBillingInvoice: () => oa,
6313
- zBillingPaymentMethod: () => aa,
6314
- zBillingPlanKey: () => ra,
6315
- zBillingStatus: () => ia,
6316
- zBillingTier: () => Xr,
6317
- zBotGenerateImageBody: () => Ki,
6318
- zBotGenerateImageResponse: () => qi,
6319
- zCancelConversationTurnBody: () => Na,
6320
- zCancelConversationTurnResponse: () => Pa,
6321
- zCantRebuildReason: () => no,
6322
- zCantWakeReason: () => to,
6323
- zChatAttachment: () => X,
6324
- zChatAttachmentInput: () => Ri,
6325
- zChatAttachmentPlacement: () => Ai,
6326
- zChatCardSpec: () => ga,
6327
- zChatErrorData: () => pa,
6328
- zChatEvent: () => ma,
6329
- zChatIssue: () => F,
6330
- zChatMessage: () => Li,
6331
- zChatMessageAttentionItem: () => Pi,
6332
- zChatMessageAttentionRef: () => ji,
6333
- zChatMessageAttentionUpdate: () => Fi,
6334
- zChatMessageMetadata: () => Ii,
6335
- zChatStatusData: () => fa,
6336
- zChatToolActivityData: () => Y,
6337
- zChatToolActivityVisual: () => Di,
6338
- zChatVisualSpec: () => Oa,
6339
- zCompleteCheckoutData: () => la,
6340
- zConversationLastMessage: () => Aa,
6341
- zConversationParticipant: () => ka,
6342
- zConversationSummary: () => ja,
6343
- zConversationTarget: () => Bi,
6344
- zConversationUpdatedEvent: () => Ia,
6345
- zCreateAgentBody: () => bi,
6346
- zCreateConversationBody: () => Vi,
6347
- zCreateConversationSessionBody: () => Hi,
6348
- zCreateOrgBody: () => uo,
6349
- zDesiredStatus: () => L,
6350
- zErrorCode: () => J,
6351
- zFleetAgent: () => Va,
6352
- zFleetSummary: () => Ha,
6353
- zFleetSyncResponse: () => Ua,
6354
- zHandoffConsumeBody: () => ea,
6355
- zHandoffConsumeData: () => ta,
6356
- zHandoffConsumeResponse: () => na,
6357
- zHandoffMintBody: () => Zi,
6358
- zHandoffMintData: () => Qi,
6359
- zHandoffMintResponse: () => $i,
6360
- zIanaTimezone: () => q,
6361
- zImageAspectRatio: () => Wi,
6362
- zImageResolution: () => Gi,
6363
- zInvitationPreview: () => Za,
6364
- zInvitationRow: () => Xa,
6365
- zInviteBody: () => Qa,
6366
- zLifecycle: () => R,
6367
- zLifecycleVerb: () => Jr,
6368
- zLiveStatus: () => Ur,
6369
- zMarkReadBody: () => Ma,
6370
- zMediaContext: () => Wa,
6371
- zMediaObject: () => Ka,
6372
- zMediaType: () => Ga,
6373
- zMemberRow: () => Ya,
6374
- zMessageSearchResult: () => Fa,
6375
- zOrgRow: () => lo,
6376
- zOrgSummary: () => mo,
6373
+ zAppleAuthBody: () => ra,
6374
+ zAuthSessionData: () => ia,
6375
+ zAuthSessionResponse: () => aa,
6376
+ zAutomationPrimaryChannel: () => wi,
6377
+ zBackfillBillingData: () => ba,
6378
+ zBackfillCustomersData: () => ya,
6379
+ zBillingDetails: () => _a,
6380
+ zBillingInvoice: () => ha,
6381
+ zBillingPaymentMethod: () => ma,
6382
+ zBillingPlanKey: () => fa,
6383
+ zBillingStatus: () => pa,
6384
+ zBillingTier: () => z,
6385
+ zBotGenerateImageBody: () => ta,
6386
+ zBotGenerateImageResponse: () => na,
6387
+ zCancelConversationTurnBody: () => Va,
6388
+ zCancelConversationTurnResponse: () => Ha,
6389
+ zCantRebuildReason: () => uo,
6390
+ zCantWakeReason: () => lo,
6391
+ zChatAttachment: () => zi,
6392
+ zChatAttachmentInput: () => qi,
6393
+ zChatAttachmentPlacement: () => Ri,
6394
+ zChatCardSpec: () => Ta,
6395
+ zChatErrorData: () => Sa,
6396
+ zChatEvent: () => Ca,
6397
+ zChatIssue: () => P,
6398
+ zChatMessage: () => Ki,
6399
+ zChatMessageAttentionItem: () => Ui,
6400
+ zChatMessageAttentionRef: () => Bi,
6401
+ zChatMessageAttentionUpdate: () => Wi,
6402
+ zChatMessageMetadata: () => Gi,
6403
+ zChatStatusData: () => xa,
6404
+ zChatToolActivityData: () => Fi,
6405
+ zChatToolActivityVisual: () => Pi,
6406
+ zChatVisualSpec: () => Ia,
6407
+ zCompleteCheckoutData: () => va,
6408
+ zConversationLastMessage: () => Ra,
6409
+ zConversationParticipant: () => La,
6410
+ zConversationSummary: () => za,
6411
+ zConversationTarget: () => Yi,
6412
+ zConversationUpdatedEvent: () => Wa,
6413
+ zCreateAgentBody: () => Ti,
6414
+ zCreateConversationBody: () => Xi,
6415
+ zCreateConversationSessionBody: () => Zi,
6416
+ zCreateOrgBody: () => yo,
6417
+ zDesiredStatus: () => I,
6418
+ zErrorCode: () => Ai,
6419
+ zErrorResponses: () => zErrorResponses,
6420
+ zFleetAgent: () => Ya,
6421
+ zFleetSummary: () => Xa,
6422
+ zFleetSyncResponse: () => Za,
6423
+ zHandoffConsumeBody: () => la,
6424
+ zHandoffConsumeData: () => ua,
6425
+ zHandoffConsumeResponse: () => da,
6426
+ zHandoffMintBody: () => oa,
6427
+ zHandoffMintData: () => sa,
6428
+ zHandoffMintResponse: () => ca,
6429
+ zIanaTimezone: () => Y,
6430
+ zImageAspectRatio: () => $i,
6431
+ zImageResolution: () => ea,
6432
+ zInvitationPreview: () => ao,
6433
+ zInvitationRow: () => io,
6434
+ zInviteBody: () => oo,
6435
+ zLifecycle: () => L,
6436
+ zLifecycleVerb: () => Xr,
6437
+ zLiveStatus: () => Gr,
6438
+ zMarkReadBody: () => Ba,
6439
+ zMediaContext: () => Qa,
6440
+ zMediaObject: () => eo,
6441
+ zMediaType: () => $a,
6442
+ zMemberRow: () => ro,
6443
+ zMessageSearchResult: () => Ua,
6444
+ zOrgRow: () => vo,
6445
+ zOrgSummary: () => So,
6377
6446
  zPaginatedResponse: () => zPaginatedResponse,
6378
- zPlanTone: () => po,
6379
- zProviderErrorKind: () => Ti,
6380
- zPublicServiceOverview: () => bo,
6381
- zReportMessageBody: () => Ui,
6382
- zRuntimeOperation: () => z,
6383
- zRuntimeOperationKind: () => Vr,
6384
- zRuntimeOperationStatus: () => Hr,
6385
- zSendMessageBody: () => zi,
6386
- zSuggestedPrompt: () => Ci,
6387
- zUpdateAgentBody: () => xi,
6388
- zUpdateOrgBody: () => fo,
6389
- zUpdateRoleBody: () => $a,
6390
- zUpdateUserBody: () => xo,
6391
- zUploadMediaBody: () => qa
6392
- }), Co = "1.0.0";
6447
+ zPlanTone: () => xo,
6448
+ zProviderErrorKind: () => ji,
6449
+ zPublicServiceOverview: () => Oo,
6450
+ zReportMessageBody: () => Qi,
6451
+ zRuntimeOperation: () => Wr,
6452
+ zRuntimeOperationKind: () => Hr,
6453
+ zRuntimeOperationStatus: () => Ur,
6454
+ zSendMessageBody: () => Ji,
6455
+ zSuggestedPrompt: () => Oi,
6456
+ zUpdateAgentBody: () => Ei,
6457
+ zUpdateOrgBody: () => bo,
6458
+ zUpdateRoleBody: () => so,
6459
+ zUpdateUserBody: () => ko,
6460
+ zUploadMediaBody: () => to,
6461
+ zVoiceProviderName: () => $r,
6462
+ zVoiceProviderSession: () => Qr,
6463
+ zVoiceSessionMint: () => ei,
6464
+ zVoiceSessionMintBody: () => Zr,
6465
+ zVoiceSetting: () => R
6466
+ }), jo = "1.0.0";
6393
6467
  function buildContract(e = {}) {
6394
6468
  let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
6395
6469
  let r = contractNameFor(e);
6396
6470
  r && (n[r] = toSchema(t));
6397
6471
  };
6398
- for (let [e, t] of Object.entries(So)) {
6472
+ for (let [e, t] of Object.entries(Ao)) {
6399
6473
  if (t instanceof T) {
6400
6474
  addSchema(e, t);
6401
6475
  continue;
@@ -6403,7 +6477,7 @@ function buildContract(e = {}) {
6403
6477
  if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof T && addSchema(e, n);
6404
6478
  }
6405
6479
  return {
6406
- version: Co,
6480
+ version: jo,
6407
6481
  generatedAt: t.toISOString(),
6408
6482
  schemas: n
6409
6483
  };
@@ -6423,6 +6497,6 @@ function sortedReplacer(e, t) {
6423
6497
  return t;
6424
6498
  }
6425
6499
  //#endregion
6426
- export { Co as CONTRACT_VERSION, buildContract, serializeContract };
6500
+ export { jo as CONTRACT_VERSION, buildContract, serializeContract };
6427
6501
 
6428
6502
  //# sourceMappingURL=contract.js.map