@pagelines/sdk 1.0.771 → 1.0.773

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/contract.js CHANGED
@@ -3941,29 +3941,29 @@ var AuthApiError = class extends Error {
3941
3941
  "avatar",
3942
3942
  "cover",
3943
3943
  "general"
3944
- ], I = _enum(vr), yr = _enum([
3944
+ ], yr = _enum(vr), br = _enum([
3945
3945
  "processing",
3946
3946
  "active",
3947
3947
  "failed",
3948
3948
  "deleted"
3949
- ]), br = _enum([
3949
+ ]), xr = _enum([
3950
3950
  "low",
3951
3951
  "standard",
3952
3952
  "high"
3953
- ]), xr = _enum([
3953
+ ]), Sr = _enum([
3954
3954
  "jpg",
3955
3955
  "jpeg",
3956
3956
  "png",
3957
3957
  "gif",
3958
3958
  "webp",
3959
3959
  "svg"
3960
- ]), Sr = _enum([
3960
+ ]), Cr = _enum([
3961
3961
  "mp4",
3962
3962
  "webm",
3963
3963
  "ogg",
3964
3964
  "mov",
3965
3965
  "avi"
3966
- ]), Cr = _enum([
3966
+ ]), wr = _enum([
3967
3967
  "mp3",
3968
3968
  "wav",
3969
3969
  "ogg",
@@ -3973,7 +3973,7 @@ var AuthApiError = class extends Error {
3973
3973
  "webm",
3974
3974
  "m4a",
3975
3975
  "mp4"
3976
- ]), L = object({
3976
+ ]), I = object({
3977
3977
  mediaId: string(),
3978
3978
  userId: string(),
3979
3979
  orgId: string(),
@@ -3983,9 +3983,9 @@ var AuthApiError = class extends Error {
3983
3983
  size: number(),
3984
3984
  src: string(),
3985
3985
  alt: string().optional(),
3986
- context: I.default("general"),
3987
- status: yr.default("processing"),
3988
- quality: br.default("standard"),
3986
+ context: yr.default("general"),
3987
+ status: br.default("processing"),
3988
+ quality: xr.default("standard"),
3989
3989
  createdAt: string().optional(),
3990
3990
  updatedAt: string().optional()
3991
3991
  }).extend({
@@ -3996,36 +3996,36 @@ var AuthApiError = class extends Error {
3996
3996
  height: number().optional(),
3997
3997
  duration: number().optional(),
3998
3998
  blurhash: string().optional()
3999
- }).partial(), wr = object({
3999
+ }).partial(), Tr = object({
4000
4000
  duration: number().optional(),
4001
4001
  thumbnail: string().optional(),
4002
4002
  autoplay: boolean().optional(),
4003
4003
  loop: boolean().optional(),
4004
4004
  muted: boolean().optional(),
4005
4005
  controls: boolean().optional()
4006
- }), Tr = object({
4006
+ }), Er = object({
4007
4007
  duration: number().optional(),
4008
4008
  autoplay: boolean().optional(),
4009
4009
  loop: boolean().optional(),
4010
4010
  muted: boolean().optional(),
4011
4011
  controls: boolean().optional()
4012
- }), Er = L.extend({
4012
+ }), Dr = I.extend({
4013
4013
  mediaType: literal("image"),
4014
- imageFormat: xr.optional()
4015
- }), Dr = L.extend({
4014
+ imageFormat: Sr.optional()
4015
+ }), Or = I.extend({
4016
4016
  mediaType: literal("video"),
4017
- videoFormat: Sr.optional(),
4018
- video: wr.optional()
4019
- }), Or = L.extend({
4017
+ videoFormat: Cr.optional(),
4018
+ video: Tr.optional()
4019
+ }), kr = I.extend({
4020
4020
  mediaType: literal("audio"),
4021
- audioFormat: Cr.optional(),
4022
- audio: Tr.optional()
4023
- }), kr = L.extend({ mediaType: literal("document") }), Ar = discriminatedUnion("mediaType", [
4024
- Er,
4021
+ audioFormat: wr.optional(),
4022
+ audio: Er.optional()
4023
+ }), Ar = I.extend({ mediaType: literal("document") }), jr = discriminatedUnion("mediaType", [
4025
4024
  Dr,
4026
4025
  Or,
4027
- kr
4028
- ]), jr = _enum([
4026
+ kr,
4027
+ Ar
4028
+ ]), L = _enum([
4029
4029
  "xxs",
4030
4030
  "xs",
4031
4031
  "sm",
@@ -4049,11 +4049,11 @@ var AuthApiError = class extends Error {
4049
4049
  key: string().optional(),
4050
4050
  label: string().optional(),
4051
4051
  href: string().optional(),
4052
- size: jr.optional(),
4052
+ size: L.optional(),
4053
4053
  theme: Mr.optional(),
4054
4054
  design: Nr.optional(),
4055
- icon: union([string(), L]).optional(),
4056
- iconAfter: union([string(), L]).optional(),
4055
+ icon: union([string(), I]).optional(),
4056
+ iconAfter: union([string(), I]).optional(),
4057
4057
  rounding: _enum([
4058
4058
  "full",
4059
4059
  "md",
@@ -4072,7 +4072,7 @@ var AuthApiError = class extends Error {
4072
4072
  ]).optional()
4073
4073
  }), Pr = object({
4074
4074
  buttons: array(R).optional(),
4075
- size: jr.optional(),
4075
+ size: L.optional(),
4076
4076
  theme: Mr.optional(),
4077
4077
  design: Nr.optional()
4078
4078
  }), Fr = object({
@@ -4086,11 +4086,11 @@ var AuthApiError = class extends Error {
4086
4086
  info: string().optional(),
4087
4087
  count: number().optional(),
4088
4088
  className: string().optional(),
4089
- media: L.optional(),
4090
- subMedia: L.optional(),
4091
- cover: L.optional(),
4092
- icon: L.optional(),
4093
- iconAfter: L.optional(),
4089
+ media: I.optional(),
4090
+ subMedia: I.optional(),
4091
+ cover: I.optional(),
4092
+ icon: I.optional(),
4093
+ iconAfter: I.optional(),
4094
4094
  subIcon: string().optional(),
4095
4095
  href: string().optional(),
4096
4096
  target: _enum(["_self", "_blank"]).optional(),
@@ -4547,11 +4547,11 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4547
4547
  "website"
4548
4548
  ]),
4549
4549
  handle: string()
4550
- }))), K = _enum([
4550
+ }))), ni = _enum([
4551
4551
  "essential",
4552
4552
  "professional",
4553
4553
  "business"
4554
- ]), ni = object({
4554
+ ]), K = object({
4555
4555
  agentId: string().optional(),
4556
4556
  handle: string().optional(),
4557
4557
  ownerId: string().optional(),
@@ -4563,15 +4563,15 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4563
4563
  entityType: string().optional(),
4564
4564
  avatarId: string().nullable().optional(),
4565
4565
  coverId: string().nullable().optional(),
4566
- avatar: L.optional(),
4567
- cover: L.optional(),
4566
+ avatar: I.optional(),
4567
+ cover: I.optional(),
4568
4568
  email: string().nullable().optional(),
4569
4569
  website: string().url().nullable().optional(),
4570
4570
  accounts: ti.nullable().optional(),
4571
4571
  model: string().nullable().optional(),
4572
4572
  gender: U.optional(),
4573
4573
  voiceKey: G.nullable().optional(),
4574
- billingTier: K.optional(),
4574
+ billingTier: ni.optional(),
4575
4575
  lastActiveAt: string().nullable().optional(),
4576
4576
  lastMessageAt: string().nullable().optional(),
4577
4577
  runtime: string().default("hermes").optional(),
@@ -4594,7 +4594,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4594
4594
  owner: object({
4595
4595
  userId: string(),
4596
4596
  fullName: string().optional(),
4597
- avatar: L.optional()
4597
+ avatar: I.optional()
4598
4598
  }).optional(),
4599
4599
  visibility: _enum([
4600
4600
  "private",
@@ -4604,7 +4604,7 @@ var Zr = object({ conversationId: string().min(1) }).strict(), Qr = object({
4604
4604
  status: string().optional(),
4605
4605
  createdAt: string().optional(),
4606
4606
  updatedAt: string().optional()
4607
- }), ri = ni.extend({
4607
+ }), ri = K.extend({
4608
4608
  isPrimary: boolean().optional(),
4609
4609
  lifecycle: H.optional(),
4610
4610
  changedAt: string().datetime().optional(),
@@ -4665,7 +4665,7 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4665
4665
  fullName: string().optional(),
4666
4666
  linkedinUsername: q.optional(),
4667
4667
  avatarId: string().optional(),
4668
- avatar: L.optional(),
4668
+ avatar: I.optional(),
4669
4669
  isEmailVerified: boolean().optional(),
4670
4670
  primaryAgentId: string().optional(),
4671
4671
  primaryOrgId: string().optional(),
@@ -4723,9 +4723,9 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4723
4723
  website: string().url().nullable().optional(),
4724
4724
  summary: string().nullable().optional(),
4725
4725
  avatarId: string().nullable().optional(),
4726
- avatar: L.optional(),
4726
+ avatar: I.optional(),
4727
4727
  coverId: string().nullable().optional(),
4728
- cover: L.optional(),
4728
+ cover: I.optional(),
4729
4729
  accounts: gr.nullable().optional(),
4730
4730
  ownerId: string().optional(),
4731
4731
  isPersonal: boolean().optional(),
@@ -4765,9 +4765,9 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4765
4765
  name: string(),
4766
4766
  handle: string(),
4767
4767
  avatarId: string().optional(),
4768
- avatar: L.optional(),
4768
+ avatar: I.optional(),
4769
4769
  coverId: string().optional(),
4770
- cover: L.optional(),
4770
+ cover: I.optional(),
4771
4771
  role: _enum([
4772
4772
  "owner",
4773
4773
  "admin",
@@ -4781,7 +4781,7 @@ var oi = _enum(["noCard", "cardRequired"]), q = string().trim().min(3).max(100).
4781
4781
  onboarding: yi.optional()
4782
4782
  }), xi = si.extend({
4783
4783
  orgs: array(bi).optional(),
4784
- agents: array(ni).optional()
4784
+ agents: array(K).optional()
4785
4785
  });
4786
4786
  //#endregion
4787
4787
  //#region ../core/dist/state.js
@@ -4985,7 +4985,8 @@ var X = string().min(1).max(64).refine((e) => {
4985
4985
  "private",
4986
4986
  "org",
4987
4987
  "public"
4988
- ]).optional()
4988
+ ]).optional(),
4989
+ gender: U.optional()
4989
4990
  }).strict(), Mi = object({
4990
4991
  name: string().min(1).max(100).optional(),
4991
4992
  handle: string().min(2).max(50).optional(),
@@ -5000,7 +5001,7 @@ var X = string().min(1).max(64).refine((e) => {
5000
5001
  model: string().nullable().optional(),
5001
5002
  gender: U.optional(),
5002
5003
  voiceKey: G.nullable().optional(),
5003
- billingTier: K.optional(),
5004
+ billingTier: ni.optional(),
5004
5005
  visibility: _enum([
5005
5006
  "private",
5006
5007
  "org",
@@ -6084,7 +6085,7 @@ var Wa = object({
6084
6085
  flyAppCount: number().optional(),
6085
6086
  latestVersion: string().optional(),
6086
6087
  latestVersions: record(string(), string()).optional()
6087
- }), ao = I, oo = F, so = object({
6088
+ }), ao = yr, oo = F, so = object({
6088
6089
  mediaId: string(),
6089
6090
  src: string(),
6090
6091
  alt: string().nullable().optional(),
@@ -6182,11 +6183,11 @@ var Wa = object({
6182
6183
  ]), yo = object({
6183
6184
  agentId: string(),
6184
6185
  name: string(),
6185
- avatar: L.optional(),
6186
+ avatar: I.optional(),
6186
6187
  summary: string().nullable().optional(),
6187
6188
  ownerId: string(),
6188
6189
  ownerFirstName: string(),
6189
- ownerAvatar: L.optional(),
6190
+ ownerAvatar: I.optional(),
6190
6191
  ownerLabel: string(),
6191
6192
  avatarInitial: string(),
6192
6193
  isYours: boolean(),
@@ -6363,9 +6364,9 @@ var Ao = object({
6363
6364
  ActionAreaSchema: () => Pr,
6364
6365
  ActionButtonSchema: () => R,
6365
6366
  Agent: () => ai,
6366
- AudioFormatSchema: () => Cr,
6367
- AudioMediaSchema: () => Or,
6368
- AudioPropertiesSchema: () => Tr,
6367
+ AudioFormatSchema: () => wr,
6368
+ AudioMediaSchema: () => kr,
6369
+ AudioPropertiesSchema: () => Er,
6369
6370
  AuthApiError: () => AuthApiError,
6370
6371
  BOT_API_LLM_PATH: () => Di,
6371
6372
  BOT_API_PATH: () => Ei,
@@ -6377,34 +6378,34 @@ var Ao = object({
6377
6378
  CHAT_ISSUE_COPY: () => B,
6378
6379
  CookieUtil: () => CookieUtil,
6379
6380
  DEFAULT_HEARTBEAT_TIMES: () => ir,
6380
- DocumentMediaSchema: () => kr,
6381
+ DocumentMediaSchema: () => Ar,
6381
6382
  ERROR_CODES: () => Fi,
6382
6383
  EnrichedAgentSchema: () => ri,
6383
- ImageFormatSchema: () => xr,
6384
- ImageMediaSchema: () => Er,
6384
+ ImageFormatSchema: () => Sr,
6385
+ ImageMediaSchema: () => Dr,
6385
6386
  LIFECYCLE_COLOR: () => Kr,
6386
6387
  Logger: () => M,
6387
6388
  MEDIA_CONTEXTS: () => vr,
6388
6389
  MEDIA_TYPES: () => _r,
6389
- MediaContextSchema: () => I,
6390
- MediaSchema: () => L,
6391
- MediaStatusSchema: () => yr,
6390
+ MediaContextSchema: () => yr,
6391
+ MediaSchema: () => I,
6392
+ MediaStatusSchema: () => br,
6392
6393
  MediaTypeSchema: () => F,
6393
- MediaUnionSchema: () => Ar,
6394
+ MediaUnionSchema: () => jr,
6394
6395
  NavItemSchema: () => Fr,
6395
6396
  NavListSchema: () => Ir,
6396
6397
  PAGELINES_APP_CONFIG: () => i,
6397
6398
  PERSONA_DEFAULTS: () => Xr,
6398
6399
  SettingsObject: () => SettingsObject,
6399
- SizeSchema: () => jr,
6400
+ SizeSchema: () => L,
6400
6401
  SocialAccountSchema: () => hr,
6401
6402
  SocialAccountsSchema: () => gr,
6402
6403
  UNKNOWN_STATUS: () => Gr,
6403
6404
  VOICE_CATALOG: () => W,
6404
- VideoFormatSchema: () => Sr,
6405
- VideoMediaSchema: () => Dr,
6406
- VideoPropertiesSchema: () => wr,
6407
- agentSchema: () => ni,
6405
+ VideoFormatSchema: () => Cr,
6406
+ VideoMediaSchema: () => Or,
6407
+ VideoPropertiesSchema: () => Tr,
6408
+ agentSchema: () => K,
6408
6409
  apiError: () => apiError,
6409
6410
  apiOk: () => apiOk,
6410
6411
  appleAuthSchema: () => _i,
@@ -6493,7 +6494,7 @@ var Ao = object({
6493
6494
  zBillingPaymentMethod: () => ba,
6494
6495
  zBillingPlanKey: () => va,
6495
6496
  zBillingStatus: () => ya,
6496
- zBillingTier: () => K,
6497
+ zBillingTier: () => ni,
6497
6498
  zBotGenerateImageBody: () => sa,
6498
6499
  zBotGenerateImageResponse: () => ca,
6499
6500
  zCancelConversationTurnBody: () => Ja,