@pagelines/sdk 1.0.773 → 1.0.775
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 +66 -67
- package/dist/contract.js.map +1 -1
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -3941,29 +3941,29 @@ var AuthApiError = class extends Error {
|
|
|
3941
3941
|
"avatar",
|
|
3942
3942
|
"cover",
|
|
3943
3943
|
"general"
|
|
3944
|
-
],
|
|
3944
|
+
], I = _enum(vr), yr = _enum([
|
|
3945
3945
|
"processing",
|
|
3946
3946
|
"active",
|
|
3947
3947
|
"failed",
|
|
3948
3948
|
"deleted"
|
|
3949
|
-
]),
|
|
3949
|
+
]), br = _enum([
|
|
3950
3950
|
"low",
|
|
3951
3951
|
"standard",
|
|
3952
3952
|
"high"
|
|
3953
|
-
]),
|
|
3953
|
+
]), xr = _enum([
|
|
3954
3954
|
"jpg",
|
|
3955
3955
|
"jpeg",
|
|
3956
3956
|
"png",
|
|
3957
3957
|
"gif",
|
|
3958
3958
|
"webp",
|
|
3959
3959
|
"svg"
|
|
3960
|
-
]),
|
|
3960
|
+
]), Sr = _enum([
|
|
3961
3961
|
"mp4",
|
|
3962
3962
|
"webm",
|
|
3963
3963
|
"ogg",
|
|
3964
3964
|
"mov",
|
|
3965
3965
|
"avi"
|
|
3966
|
-
]),
|
|
3966
|
+
]), Cr = _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
|
-
]),
|
|
3976
|
+
]), L = 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:
|
|
3987
|
-
status:
|
|
3988
|
-
quality:
|
|
3986
|
+
context: I.default("general"),
|
|
3987
|
+
status: yr.default("processing"),
|
|
3988
|
+
quality: br.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(),
|
|
3999
|
+
}).partial(), wr = 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
|
-
}),
|
|
4006
|
+
}), Tr = 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
|
-
}),
|
|
4012
|
+
}), Er = L.extend({
|
|
4013
4013
|
mediaType: literal("image"),
|
|
4014
|
-
imageFormat:
|
|
4015
|
-
}),
|
|
4014
|
+
imageFormat: xr.optional()
|
|
4015
|
+
}), Dr = L.extend({
|
|
4016
4016
|
mediaType: literal("video"),
|
|
4017
|
-
videoFormat:
|
|
4018
|
-
video:
|
|
4019
|
-
}),
|
|
4017
|
+
videoFormat: Sr.optional(),
|
|
4018
|
+
video: wr.optional()
|
|
4019
|
+
}), Or = L.extend({
|
|
4020
4020
|
mediaType: literal("audio"),
|
|
4021
|
-
audioFormat:
|
|
4022
|
-
audio:
|
|
4023
|
-
}),
|
|
4021
|
+
audioFormat: Cr.optional(),
|
|
4022
|
+
audio: Tr.optional()
|
|
4023
|
+
}), kr = L.extend({ mediaType: literal("document") }), Ar = discriminatedUnion("mediaType", [
|
|
4024
|
+
Er,
|
|
4024
4025
|
Dr,
|
|
4025
4026
|
Or,
|
|
4026
|
-
kr
|
|
4027
|
-
|
|
4028
|
-
]), L = _enum([
|
|
4027
|
+
kr
|
|
4028
|
+
]), jr = _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:
|
|
4052
|
+
size: jr.optional(),
|
|
4053
4053
|
theme: Mr.optional(),
|
|
4054
4054
|
design: Nr.optional(),
|
|
4055
|
-
icon: union([string(),
|
|
4056
|
-
iconAfter: union([string(),
|
|
4055
|
+
icon: union([string(), L]).optional(),
|
|
4056
|
+
iconAfter: union([string(), L]).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:
|
|
4075
|
+
size: jr.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:
|
|
4090
|
-
subMedia:
|
|
4091
|
-
cover:
|
|
4092
|
-
icon:
|
|
4093
|
-
iconAfter:
|
|
4089
|
+
media: L.optional(),
|
|
4090
|
+
subMedia: L.optional(),
|
|
4091
|
+
cover: L.optional(),
|
|
4092
|
+
icon: L.optional(),
|
|
4093
|
+
iconAfter: L.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
|
-
}))),
|
|
4550
|
+
}))), K = _enum([
|
|
4551
4551
|
"essential",
|
|
4552
4552
|
"professional",
|
|
4553
4553
|
"business"
|
|
4554
|
-
]),
|
|
4554
|
+
]), ni = 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:
|
|
4567
|
-
cover:
|
|
4566
|
+
avatar: L.optional(),
|
|
4567
|
+
cover: L.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:
|
|
4574
|
+
billingTier: K.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:
|
|
4597
|
+
avatar: L.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 =
|
|
4607
|
+
}), ri = ni.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:
|
|
4668
|
+
avatar: L.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:
|
|
4726
|
+
avatar: L.optional(),
|
|
4727
4727
|
coverId: string().nullable().optional(),
|
|
4728
|
-
cover:
|
|
4728
|
+
cover: L.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:
|
|
4768
|
+
avatar: L.optional(),
|
|
4769
4769
|
coverId: string().optional(),
|
|
4770
|
-
cover:
|
|
4770
|
+
cover: L.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(
|
|
4784
|
+
agents: array(ni).optional()
|
|
4785
4785
|
});
|
|
4786
4786
|
//#endregion
|
|
4787
4787
|
//#region ../core/dist/state.js
|
|
@@ -4985,8 +4985,7 @@ var X = string().min(1).max(64).refine((e) => {
|
|
|
4985
4985
|
"private",
|
|
4986
4986
|
"org",
|
|
4987
4987
|
"public"
|
|
4988
|
-
]).optional()
|
|
4989
|
-
gender: U.optional()
|
|
4988
|
+
]).optional()
|
|
4990
4989
|
}).strict(), Mi = object({
|
|
4991
4990
|
name: string().min(1).max(100).optional(),
|
|
4992
4991
|
handle: string().min(2).max(50).optional(),
|
|
@@ -5001,7 +5000,7 @@ var X = string().min(1).max(64).refine((e) => {
|
|
|
5001
5000
|
model: string().nullable().optional(),
|
|
5002
5001
|
gender: U.optional(),
|
|
5003
5002
|
voiceKey: G.nullable().optional(),
|
|
5004
|
-
billingTier:
|
|
5003
|
+
billingTier: K.optional(),
|
|
5005
5004
|
visibility: _enum([
|
|
5006
5005
|
"private",
|
|
5007
5006
|
"org",
|
|
@@ -6085,7 +6084,7 @@ var Wa = object({
|
|
|
6085
6084
|
flyAppCount: number().optional(),
|
|
6086
6085
|
latestVersion: string().optional(),
|
|
6087
6086
|
latestVersions: record(string(), string()).optional()
|
|
6088
|
-
}), ao =
|
|
6087
|
+
}), ao = I, oo = F, so = object({
|
|
6089
6088
|
mediaId: string(),
|
|
6090
6089
|
src: string(),
|
|
6091
6090
|
alt: string().nullable().optional(),
|
|
@@ -6183,11 +6182,11 @@ var Wa = object({
|
|
|
6183
6182
|
]), yo = object({
|
|
6184
6183
|
agentId: string(),
|
|
6185
6184
|
name: string(),
|
|
6186
|
-
avatar:
|
|
6185
|
+
avatar: L.optional(),
|
|
6187
6186
|
summary: string().nullable().optional(),
|
|
6188
6187
|
ownerId: string(),
|
|
6189
6188
|
ownerFirstName: string(),
|
|
6190
|
-
ownerAvatar:
|
|
6189
|
+
ownerAvatar: L.optional(),
|
|
6191
6190
|
ownerLabel: string(),
|
|
6192
6191
|
avatarInitial: string(),
|
|
6193
6192
|
isYours: boolean(),
|
|
@@ -6364,9 +6363,9 @@ var Ao = object({
|
|
|
6364
6363
|
ActionAreaSchema: () => Pr,
|
|
6365
6364
|
ActionButtonSchema: () => R,
|
|
6366
6365
|
Agent: () => ai,
|
|
6367
|
-
AudioFormatSchema: () =>
|
|
6368
|
-
AudioMediaSchema: () =>
|
|
6369
|
-
AudioPropertiesSchema: () =>
|
|
6366
|
+
AudioFormatSchema: () => Cr,
|
|
6367
|
+
AudioMediaSchema: () => Or,
|
|
6368
|
+
AudioPropertiesSchema: () => Tr,
|
|
6370
6369
|
AuthApiError: () => AuthApiError,
|
|
6371
6370
|
BOT_API_LLM_PATH: () => Di,
|
|
6372
6371
|
BOT_API_PATH: () => Ei,
|
|
@@ -6378,34 +6377,34 @@ var Ao = object({
|
|
|
6378
6377
|
CHAT_ISSUE_COPY: () => B,
|
|
6379
6378
|
CookieUtil: () => CookieUtil,
|
|
6380
6379
|
DEFAULT_HEARTBEAT_TIMES: () => ir,
|
|
6381
|
-
DocumentMediaSchema: () =>
|
|
6380
|
+
DocumentMediaSchema: () => kr,
|
|
6382
6381
|
ERROR_CODES: () => Fi,
|
|
6383
6382
|
EnrichedAgentSchema: () => ri,
|
|
6384
|
-
ImageFormatSchema: () =>
|
|
6385
|
-
ImageMediaSchema: () =>
|
|
6383
|
+
ImageFormatSchema: () => xr,
|
|
6384
|
+
ImageMediaSchema: () => Er,
|
|
6386
6385
|
LIFECYCLE_COLOR: () => Kr,
|
|
6387
6386
|
Logger: () => M,
|
|
6388
6387
|
MEDIA_CONTEXTS: () => vr,
|
|
6389
6388
|
MEDIA_TYPES: () => _r,
|
|
6390
|
-
MediaContextSchema: () =>
|
|
6391
|
-
MediaSchema: () =>
|
|
6392
|
-
MediaStatusSchema: () =>
|
|
6389
|
+
MediaContextSchema: () => I,
|
|
6390
|
+
MediaSchema: () => L,
|
|
6391
|
+
MediaStatusSchema: () => yr,
|
|
6393
6392
|
MediaTypeSchema: () => F,
|
|
6394
|
-
MediaUnionSchema: () =>
|
|
6393
|
+
MediaUnionSchema: () => Ar,
|
|
6395
6394
|
NavItemSchema: () => Fr,
|
|
6396
6395
|
NavListSchema: () => Ir,
|
|
6397
6396
|
PAGELINES_APP_CONFIG: () => i,
|
|
6398
6397
|
PERSONA_DEFAULTS: () => Xr,
|
|
6399
6398
|
SettingsObject: () => SettingsObject,
|
|
6400
|
-
SizeSchema: () =>
|
|
6399
|
+
SizeSchema: () => jr,
|
|
6401
6400
|
SocialAccountSchema: () => hr,
|
|
6402
6401
|
SocialAccountsSchema: () => gr,
|
|
6403
6402
|
UNKNOWN_STATUS: () => Gr,
|
|
6404
6403
|
VOICE_CATALOG: () => W,
|
|
6405
|
-
VideoFormatSchema: () =>
|
|
6406
|
-
VideoMediaSchema: () =>
|
|
6407
|
-
VideoPropertiesSchema: () =>
|
|
6408
|
-
agentSchema: () =>
|
|
6404
|
+
VideoFormatSchema: () => Sr,
|
|
6405
|
+
VideoMediaSchema: () => Dr,
|
|
6406
|
+
VideoPropertiesSchema: () => wr,
|
|
6407
|
+
agentSchema: () => ni,
|
|
6409
6408
|
apiError: () => apiError,
|
|
6410
6409
|
apiOk: () => apiOk,
|
|
6411
6410
|
appleAuthSchema: () => _i,
|
|
@@ -6494,7 +6493,7 @@ var Ao = object({
|
|
|
6494
6493
|
zBillingPaymentMethod: () => ba,
|
|
6495
6494
|
zBillingPlanKey: () => va,
|
|
6496
6495
|
zBillingStatus: () => ya,
|
|
6497
|
-
zBillingTier: () =>
|
|
6496
|
+
zBillingTier: () => K,
|
|
6498
6497
|
zBotGenerateImageBody: () => sa,
|
|
6499
6498
|
zBotGenerateImageResponse: () => ca,
|
|
6500
6499
|
zCancelConversationTurnBody: () => Ja,
|