@pagelines/sdk 1.0.819 → 1.0.820
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 +328 -327
- package/dist/contract.js.map +1 -1
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -4564,7 +4564,7 @@ function resolveVoice(e) {
|
|
|
4564
4564
|
let t = U.find((t) => t.key === e.voiceKey);
|
|
4565
4565
|
return t?.gender === e.gender ? t : U.find((t) => t.gender === e.gender && "isDefault" in t);
|
|
4566
4566
|
}
|
|
4567
|
-
var ii = object({ conversationId: string().min(1) }).strict(),
|
|
4567
|
+
var ii = "[PageLines: chat reply landed]", ai = object({ conversationId: string().min(1) }).strict(), oi = object({
|
|
4568
4568
|
conversationId: string().min(1),
|
|
4569
4569
|
agentId: string().min(1),
|
|
4570
4570
|
personaName: string().min(1),
|
|
@@ -4586,7 +4586,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4586
4586
|
surfaceGuidance: string().optional(),
|
|
4587
4587
|
maxDurationSeconds: number().int().positive().max(3600).optional(),
|
|
4588
4588
|
expiresAt: datetime()
|
|
4589
|
-
}),
|
|
4589
|
+
}), si = _enum(["elevenlabs", "livekit"]), ci = discriminatedUnion("provider", [object({
|
|
4590
4590
|
provider: literal("elevenlabs"),
|
|
4591
4591
|
conversationToken: string().min(1),
|
|
4592
4592
|
voiceId: string().min(1)
|
|
@@ -4595,7 +4595,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4595
4595
|
url: string().min(1),
|
|
4596
4596
|
token: string().min(1),
|
|
4597
4597
|
room: string().min(1)
|
|
4598
|
-
}).strict()]),
|
|
4598
|
+
}).strict()]), li = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4599
4599
|
platform: _enum([
|
|
4600
4600
|
"linkedin",
|
|
4601
4601
|
"x",
|
|
@@ -4614,7 +4614,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4614
4614
|
"essential",
|
|
4615
4615
|
"professional",
|
|
4616
4616
|
"business"
|
|
4617
|
-
]),
|
|
4617
|
+
]), ui = object({
|
|
4618
4618
|
agentId: string().optional(),
|
|
4619
4619
|
handle: string().optional(),
|
|
4620
4620
|
ownerId: string().optional(),
|
|
@@ -4630,7 +4630,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4630
4630
|
cover: F.optional(),
|
|
4631
4631
|
email: string().nullable().optional(),
|
|
4632
4632
|
website: string().url().nullable().optional(),
|
|
4633
|
-
accounts:
|
|
4633
|
+
accounts: li.nullable().optional(),
|
|
4634
4634
|
model: string().nullable().optional(),
|
|
4635
4635
|
gender: H.optional(),
|
|
4636
4636
|
voiceKey: W.nullable().optional(),
|
|
@@ -4667,14 +4667,14 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4667
4667
|
status: string().optional(),
|
|
4668
4668
|
createdAt: string().optional(),
|
|
4669
4669
|
updatedAt: string().optional()
|
|
4670
|
-
}),
|
|
4670
|
+
}), di = ui.extend({
|
|
4671
4671
|
isPrimary: boolean().optional(),
|
|
4672
4672
|
lifecycle: B.optional(),
|
|
4673
4673
|
changedAt: string().datetime().optional(),
|
|
4674
4674
|
detail: string().optional(),
|
|
4675
4675
|
blocker: R.optional(),
|
|
4676
4676
|
operation: Ur.optional()
|
|
4677
|
-
}),
|
|
4677
|
+
}), fi = Object.keys(di.shape), pi = class Agent extends SettingsObject {
|
|
4678
4678
|
constructor(e) {
|
|
4679
4679
|
let t = "config" in e ? {
|
|
4680
4680
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
@@ -4692,7 +4692,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4692
4692
|
}), 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);
|
|
4693
4693
|
}
|
|
4694
4694
|
merge(e) {
|
|
4695
|
-
for (let t of
|
|
4695
|
+
for (let t of fi) {
|
|
4696
4696
|
if (!(t in e)) continue;
|
|
4697
4697
|
let n = this[t];
|
|
4698
4698
|
n && typeof n == "object" && "value" in n && (n.value = e[t]);
|
|
@@ -4700,7 +4700,7 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4700
4700
|
}
|
|
4701
4701
|
toConfig() {
|
|
4702
4702
|
let e = {};
|
|
4703
|
-
for (let t of
|
|
4703
|
+
for (let t of fi) {
|
|
4704
4704
|
let n = this[t];
|
|
4705
4705
|
n && typeof n == "object" && "value" in n && (e[t] = n.value);
|
|
4706
4706
|
}
|
|
@@ -4711,17 +4711,17 @@ var ii = object({ conversationId: string().min(1) }).strict(), ai = object({
|
|
|
4711
4711
|
}
|
|
4712
4712
|
};
|
|
4713
4713
|
function createAgent(e) {
|
|
4714
|
-
return new
|
|
4714
|
+
return new pi(e);
|
|
4715
4715
|
}
|
|
4716
4716
|
function createAgents(e) {
|
|
4717
|
-
return e.configs.map((t) => new
|
|
4717
|
+
return e.configs.map((t) => new pi({
|
|
4718
4718
|
config: t,
|
|
4719
4719
|
context: e.context
|
|
4720
4720
|
}));
|
|
4721
4721
|
}
|
|
4722
4722
|
//#endregion
|
|
4723
4723
|
//#region ../core/dist/types/user.js
|
|
4724
|
-
var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"),
|
|
4724
|
+
var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the username from your LinkedIn profile URL"), mi = string().trim().toLowerCase().pipe(email()), hi = object({
|
|
4725
4725
|
userId: string(),
|
|
4726
4726
|
email: string().optional(),
|
|
4727
4727
|
handle: string().optional(),
|
|
@@ -4743,7 +4743,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4743
4743
|
createdAt: string().optional(),
|
|
4744
4744
|
updatedAt: string().optional(),
|
|
4745
4745
|
onboarded: boolean().optional()
|
|
4746
|
-
}),
|
|
4746
|
+
}), gi = object({
|
|
4747
4747
|
name: string().min(1).max(100).optional(),
|
|
4748
4748
|
linkedinUsername: K.nullable().optional(),
|
|
4749
4749
|
avatar: object({
|
|
@@ -4754,16 +4754,16 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4754
4754
|
primaryOrgId: string().optional(),
|
|
4755
4755
|
lastActiveOrgId: string().optional(),
|
|
4756
4756
|
onboarding: any().optional()
|
|
4757
|
-
}).partial(),
|
|
4758
|
-
email:
|
|
4757
|
+
}).partial(), _i = object({ email: mi }), vi = object({
|
|
4758
|
+
email: mi,
|
|
4759
4759
|
code: string().min(6, "Verification code is required"),
|
|
4760
4760
|
timezone: string().max(64).optional()
|
|
4761
|
-
}),
|
|
4761
|
+
}), yi = object({ newEmail: mi }), bi = object({
|
|
4762
4762
|
credential: string().optional(),
|
|
4763
4763
|
code: string().optional(),
|
|
4764
4764
|
timezone: string().max(64).optional(),
|
|
4765
4765
|
source: _enum(["web", "ios"]).optional()
|
|
4766
|
-
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }),
|
|
4766
|
+
}).refine((e) => e.credential || e.code, { message: "Either credential or code must be provided" }), xi = object({
|
|
4767
4767
|
identityToken: string().min(1),
|
|
4768
4768
|
fullName: string().optional(),
|
|
4769
4769
|
timezone: string().max(64).optional()
|
|
@@ -4797,7 +4797,7 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4797
4797
|
status: string().optional(),
|
|
4798
4798
|
createdAt: string().optional(),
|
|
4799
4799
|
updatedAt: string().optional()
|
|
4800
|
-
}),
|
|
4800
|
+
}), Si = q.extend({
|
|
4801
4801
|
defaultAgent: object({
|
|
4802
4802
|
agentId: string(),
|
|
4803
4803
|
handle: string(),
|
|
@@ -4805,14 +4805,14 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4805
4805
|
orgId: string()
|
|
4806
4806
|
}),
|
|
4807
4807
|
onboardingCompleted: boolean().optional()
|
|
4808
|
-
}),
|
|
4808
|
+
}), Ci = object({
|
|
4809
4809
|
completedAt: string().datetime().optional(),
|
|
4810
4810
|
setupBy: string().optional(),
|
|
4811
4811
|
billingSetup: boolean().optional(),
|
|
4812
4812
|
teamInvitesSetup: boolean().optional(),
|
|
4813
4813
|
brandingSetup: boolean().optional(),
|
|
4814
4814
|
domainsSetup: boolean().optional()
|
|
4815
|
-
}),
|
|
4815
|
+
}), wi = object({
|
|
4816
4816
|
membershipId: string(),
|
|
4817
4817
|
orgId: string(),
|
|
4818
4818
|
name: string(),
|
|
@@ -4830,10 +4830,10 @@ var K = string().trim().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/, "Use the userna
|
|
|
4830
4830
|
memberCount: number().optional(),
|
|
4831
4831
|
agentCount: number().optional(),
|
|
4832
4832
|
joinedAt: string().datetime(),
|
|
4833
|
-
onboarding:
|
|
4834
|
-
}),
|
|
4835
|
-
orgs: array(
|
|
4836
|
-
agents: array(
|
|
4833
|
+
onboarding: Ci.optional()
|
|
4834
|
+
}), Ti = hi.extend({
|
|
4835
|
+
orgs: array(wi).optional(),
|
|
4836
|
+
agents: array(ui).optional()
|
|
4837
4837
|
});
|
|
4838
4838
|
//#endregion
|
|
4839
4839
|
//#region ../core/dist/state.js
|
|
@@ -4856,7 +4856,7 @@ function derive(e) {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
//#endregion
|
|
4858
4858
|
//#region ../core/dist/bot-ua.js
|
|
4859
|
-
var
|
|
4859
|
+
var Ei = "pagelines-agent/1.0", Di = [
|
|
4860
4860
|
"[SILENT]",
|
|
4861
4861
|
"SILENT",
|
|
4862
4862
|
"NO_REPLY",
|
|
@@ -4870,21 +4870,21 @@ var Ti = "pagelines-agent/1.0", Ei = [
|
|
|
4870
4870
|
"[NO_OP]",
|
|
4871
4871
|
"[NO OP]",
|
|
4872
4872
|
"HEARTBEAT_OK"
|
|
4873
|
-
],
|
|
4873
|
+
], Oi = new Set(Di);
|
|
4874
4874
|
function normalizeAssistantControl(e) {
|
|
4875
4875
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4876
4876
|
}
|
|
4877
4877
|
function isAssistantSilenceControl(e) {
|
|
4878
4878
|
let t = normalizeAssistantControl(e);
|
|
4879
|
-
return t.length <= 64 &&
|
|
4879
|
+
return t.length <= 64 && Oi.has(t);
|
|
4880
4880
|
}
|
|
4881
4881
|
function isAssistantSilenceControlPrefix(e) {
|
|
4882
4882
|
let t = normalizeAssistantControl(e);
|
|
4883
|
-
return t.length <= 64 &&
|
|
4883
|
+
return t.length <= 64 && Di.some((e) => e.startsWith(t));
|
|
4884
4884
|
}
|
|
4885
4885
|
//#endregion
|
|
4886
4886
|
//#region ../core/dist/timingBudgets.js
|
|
4887
|
-
var
|
|
4887
|
+
var ki = {
|
|
4888
4888
|
wake: 300 * 1e3,
|
|
4889
4889
|
bootGrace: 420 * 1e3,
|
|
4890
4890
|
stop: 30 * 1e3
|
|
@@ -4902,12 +4902,12 @@ function formatBudgetDuration(e) {
|
|
|
4902
4902
|
}
|
|
4903
4903
|
//#endregion
|
|
4904
4904
|
//#region ../core/dist/paths.js
|
|
4905
|
-
var
|
|
4905
|
+
var Ai = "/api/bot-api", ji = "/api/bot-api/v1";
|
|
4906
4906
|
function botApiLlmUrl(e) {
|
|
4907
|
-
return `${e}${
|
|
4907
|
+
return `${e}${ji}`;
|
|
4908
4908
|
}
|
|
4909
4909
|
function botApiUrl(e) {
|
|
4910
|
-
return `${e}${
|
|
4910
|
+
return `${e}${Ai}`;
|
|
4911
4911
|
}
|
|
4912
4912
|
//#endregion
|
|
4913
4913
|
//#region ../core/dist/errorCopy.js
|
|
@@ -4942,7 +4942,7 @@ var J = {
|
|
|
4942
4942
|
TIMEOUT: "The request took too long. Try again in a moment.",
|
|
4943
4943
|
FORBIDDEN: "You don't have access to this.",
|
|
4944
4944
|
RATE_LIMITED: "Too many requests. Wait a moment and try again."
|
|
4945
|
-
},
|
|
4945
|
+
}, Mi = {
|
|
4946
4946
|
notFound: "Not found. Try refreshing.",
|
|
4947
4947
|
busy: "Busy — try again in a moment.",
|
|
4948
4948
|
rateLimited: "Too many requests. Wait a moment.",
|
|
@@ -4955,11 +4955,11 @@ function errorCopy(e, t) {
|
|
|
4955
4955
|
return e && e in J ? J[e] : t;
|
|
4956
4956
|
}
|
|
4957
4957
|
function errorFromApiResponse(e, t) {
|
|
4958
|
-
return e.code && e.code in J ? J[e.code] : e.providerErrorKind &&
|
|
4958
|
+
return e.code && e.code in J ? J[e.code] : e.providerErrorKind && Mi[e.providerErrorKind] ? Mi[e.providerErrorKind] : e.error || t;
|
|
4959
4959
|
}
|
|
4960
4960
|
//#endregion
|
|
4961
4961
|
//#region ../core/dist/retryPolicy.js
|
|
4962
|
-
var
|
|
4962
|
+
var Ni = {
|
|
4963
4963
|
shouldRetry: !1,
|
|
4964
4964
|
maxAttempts: 1,
|
|
4965
4965
|
strategy: "none",
|
|
@@ -4977,7 +4977,7 @@ function retryPolicyFor(e) {
|
|
|
4977
4977
|
"FORBIDDEN",
|
|
4978
4978
|
"AGENT_NOT_FOUND"
|
|
4979
4979
|
]);
|
|
4980
|
-
if (e.code && t.has(e.code)) return
|
|
4980
|
+
if (e.code && t.has(e.code)) return Ni;
|
|
4981
4981
|
switch (e.providerErrorKind) {
|
|
4982
4982
|
case "busy": return {
|
|
4983
4983
|
shouldRetry: !0,
|
|
@@ -5012,8 +5012,8 @@ function retryPolicyFor(e) {
|
|
|
5012
5012
|
};
|
|
5013
5013
|
case "notFound":
|
|
5014
5014
|
case "invalidConfig":
|
|
5015
|
-
case "fatal": return
|
|
5016
|
-
default: return
|
|
5015
|
+
case "fatal": return Ni;
|
|
5016
|
+
default: return Ni;
|
|
5017
5017
|
}
|
|
5018
5018
|
}
|
|
5019
5019
|
//#endregion
|
|
@@ -5024,7 +5024,7 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5024
5024
|
} catch {
|
|
5025
5025
|
return !1;
|
|
5026
5026
|
}
|
|
5027
|
-
}, "Invalid IANA timezone"),
|
|
5027
|
+
}, "Invalid IANA timezone"), Pi = string().min(1).max(50).regex(/^(pagelines|channel-[a-z0-9-]+)$/), Fi = object({
|
|
5028
5028
|
orgId: string(),
|
|
5029
5029
|
name: string().min(1).max(100),
|
|
5030
5030
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -5038,7 +5038,7 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5038
5038
|
"org",
|
|
5039
5039
|
"public"
|
|
5040
5040
|
]).optional()
|
|
5041
|
-
}).strict(),
|
|
5041
|
+
}).strict(), Ii = object({
|
|
5042
5042
|
name: string().min(1).max(100).optional(),
|
|
5043
5043
|
handle: string().min(2).max(50).optional(),
|
|
5044
5044
|
emoji: string().max(8).nullable().optional(),
|
|
@@ -5058,16 +5058,16 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5058
5058
|
"org",
|
|
5059
5059
|
"public"
|
|
5060
5060
|
]).optional(),
|
|
5061
|
-
automationPrimaryChannel:
|
|
5061
|
+
automationPrimaryChannel: Pi.optional(),
|
|
5062
5062
|
heartbeatEnabled: boolean().optional(),
|
|
5063
5063
|
heartbeatBriefingTime: T.nullable().optional(),
|
|
5064
5064
|
heartbeatCheckinTime: T.nullable().optional(),
|
|
5065
5065
|
heartbeatCloseoutTime: T.nullable().optional()
|
|
5066
|
-
}).strict(),
|
|
5066
|
+
}).strict(), Li = di, Ri = object({
|
|
5067
5067
|
id: string(),
|
|
5068
5068
|
label: string(),
|
|
5069
5069
|
prompt: string()
|
|
5070
|
-
}),
|
|
5070
|
+
}), zi = /* @__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_DEMO_SPENT.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("."), Bi = _enum(zi), Vi = _enum([
|
|
5071
5071
|
"notFound",
|
|
5072
5072
|
"busy",
|
|
5073
5073
|
"rateLimited",
|
|
@@ -5078,21 +5078,21 @@ var Y = string().min(1).max(64).refine((e) => {
|
|
|
5078
5078
|
]), zApiOk = (e) => object({
|
|
5079
5079
|
ok: literal(!0),
|
|
5080
5080
|
data: e
|
|
5081
|
-
}),
|
|
5081
|
+
}), Hi = object({
|
|
5082
5082
|
ok: literal(!1),
|
|
5083
5083
|
error: string(),
|
|
5084
|
-
code:
|
|
5084
|
+
code: Bi.optional(),
|
|
5085
5085
|
issue: R.optional(),
|
|
5086
|
-
providerErrorKind:
|
|
5087
|
-
}), zApiResponse = (e) => union([zApiOk(e),
|
|
5086
|
+
providerErrorKind: Vi.optional()
|
|
5087
|
+
}), zApiResponse = (e) => union([zApiOk(e), Hi]), Ui = {
|
|
5088
5088
|
400: "Invalid body.",
|
|
5089
5089
|
401: "Not authenticated.",
|
|
5090
5090
|
500: "Server error."
|
|
5091
5091
|
};
|
|
5092
5092
|
function zErrorResponses(e) {
|
|
5093
5093
|
return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, {
|
|
5094
|
-
description: t === !0 ?
|
|
5095
|
-
content: { "application/json": { schema:
|
|
5094
|
+
description: t === !0 ? Ui[Number(e)] ?? "Request failed." : t,
|
|
5095
|
+
content: { "application/json": { schema: Hi } }
|
|
5096
5096
|
}]));
|
|
5097
5097
|
}
|
|
5098
5098
|
function apiError(e, t, n) {
|
|
@@ -5115,7 +5115,7 @@ function apiOk(e) {
|
|
|
5115
5115
|
}
|
|
5116
5116
|
//#endregion
|
|
5117
5117
|
//#region ../core/dist/wire/chat-tool-activity.js
|
|
5118
|
-
var
|
|
5118
|
+
var Wi = object({
|
|
5119
5119
|
kind: _enum([
|
|
5120
5120
|
"icon",
|
|
5121
5121
|
"favicon",
|
|
@@ -5124,7 +5124,7 @@ var Ui = object({
|
|
|
5124
5124
|
icon: string().min(1).optional(),
|
|
5125
5125
|
domain: string().min(1).optional(),
|
|
5126
5126
|
serviceKey: string().min(1).optional()
|
|
5127
|
-
}).strict(),
|
|
5127
|
+
}).strict(), Gi = object({
|
|
5128
5128
|
activityId: string().min(1),
|
|
5129
5129
|
turnId: string().min(1),
|
|
5130
5130
|
status: _enum([
|
|
@@ -5148,12 +5148,12 @@ var Ui = object({
|
|
|
5148
5148
|
endedAt: string().datetime().optional(),
|
|
5149
5149
|
durationMs: number().int().nonnegative().optional(),
|
|
5150
5150
|
note: string().trim().min(1).optional(),
|
|
5151
|
-
visual:
|
|
5152
|
-
}).strict(),
|
|
5151
|
+
visual: Wi.optional()
|
|
5152
|
+
}).strict(), Ki = Gi.extend({ status: _enum(["completed", "failed"]) }), qi = P, Ji = object({
|
|
5153
5153
|
kind: literal("inline"),
|
|
5154
5154
|
offset: number().int().nonnegative()
|
|
5155
|
-
}),
|
|
5156
|
-
type:
|
|
5155
|
+
}), Yi = object({
|
|
5156
|
+
type: qi,
|
|
5157
5157
|
src: url(),
|
|
5158
5158
|
filename: string().min(1),
|
|
5159
5159
|
mimeType: string().min(1),
|
|
@@ -5163,12 +5163,12 @@ var Ui = object({
|
|
|
5163
5163
|
height: number().int().positive().optional(),
|
|
5164
5164
|
duration: number().nonnegative().optional(),
|
|
5165
5165
|
text: string().optional(),
|
|
5166
|
-
placement:
|
|
5167
|
-
}),
|
|
5166
|
+
placement: Ji.optional()
|
|
5167
|
+
}), Xi = object({ ref: string().min(1).max(256) }).strict(), Zi = _enum([
|
|
5168
5168
|
"handled",
|
|
5169
5169
|
"dismissed",
|
|
5170
5170
|
"deferred"
|
|
5171
|
-
]),
|
|
5171
|
+
]), Qi = datetime();
|
|
5172
5172
|
function validateAttentionRevisit(e, t) {
|
|
5173
5173
|
e.revisitAt && e.disposition !== "deferred" && t.addIssue({
|
|
5174
5174
|
code: "custom",
|
|
@@ -5176,17 +5176,17 @@ function validateAttentionRevisit(e, t) {
|
|
|
5176
5176
|
message: "revisitAt requires deferred disposition"
|
|
5177
5177
|
});
|
|
5178
5178
|
}
|
|
5179
|
-
var
|
|
5180
|
-
disposition:
|
|
5181
|
-
revisitAt:
|
|
5182
|
-
}).superRefine(validateAttentionRevisit),
|
|
5183
|
-
disposition:
|
|
5184
|
-
revisitAt:
|
|
5185
|
-
}).superRefine(validateAttentionRevisit),
|
|
5179
|
+
var $i = Xi.extend({
|
|
5180
|
+
disposition: Zi.optional(),
|
|
5181
|
+
revisitAt: Qi.optional()
|
|
5182
|
+
}).superRefine(validateAttentionRevisit), ea = Xi.extend({
|
|
5183
|
+
disposition: Zi,
|
|
5184
|
+
revisitAt: Qi.optional()
|
|
5185
|
+
}).superRefine(validateAttentionRevisit), ta = object({
|
|
5186
5186
|
turnId: string().min(1).optional(),
|
|
5187
5187
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
5188
|
-
attachments: array(
|
|
5189
|
-
toolActivities: array(
|
|
5188
|
+
attachments: array(Yi).optional(),
|
|
5189
|
+
toolActivities: array(Ki).optional(),
|
|
5190
5190
|
issue: object({
|
|
5191
5191
|
code: string(),
|
|
5192
5192
|
bucket: _enum(["account", "error"]),
|
|
@@ -5218,8 +5218,8 @@ var Qi = Yi.extend({
|
|
|
5218
5218
|
])
|
|
5219
5219
|
}).catchall(unknown()) }).catchall(unknown()).optional(),
|
|
5220
5220
|
ownerHandoff: literal(!0).optional(),
|
|
5221
|
-
attention: array(
|
|
5222
|
-
}).catchall(unknown()),
|
|
5221
|
+
attention: array($i).max(20).optional()
|
|
5222
|
+
}).catchall(unknown()), na = object({
|
|
5223
5223
|
messageId: string().min(1),
|
|
5224
5224
|
conversationId: string().min(1),
|
|
5225
5225
|
role: _enum([
|
|
@@ -5232,12 +5232,12 @@ var Qi = Yi.extend({
|
|
|
5232
5232
|
content: string(),
|
|
5233
5233
|
sequence: string().min(1),
|
|
5234
5234
|
clientNonce: string().nullable().optional(),
|
|
5235
|
-
metadata:
|
|
5235
|
+
metadata: ta.nullable().optional(),
|
|
5236
5236
|
status: string().nullable().optional(),
|
|
5237
5237
|
createdAt: string(),
|
|
5238
5238
|
updatedAt: string()
|
|
5239
|
-
}),
|
|
5240
|
-
type:
|
|
5239
|
+
}), ra = object({
|
|
5240
|
+
type: qi,
|
|
5241
5241
|
mediaId: string().min(1).optional(),
|
|
5242
5242
|
url: url().optional(),
|
|
5243
5243
|
name: string().min(1).optional(),
|
|
@@ -5253,11 +5253,11 @@ var Qi = Yi.extend({
|
|
|
5253
5253
|
path: [n],
|
|
5254
5254
|
message: `${n} is required when mediaId is absent`
|
|
5255
5255
|
});
|
|
5256
|
-
}),
|
|
5256
|
+
}), ia = object({
|
|
5257
5257
|
conversationId: string().min(1),
|
|
5258
5258
|
content: string().max(1e4).default(""),
|
|
5259
5259
|
clientNonce: string().max(64).optional(),
|
|
5260
|
-
attachments: array(
|
|
5260
|
+
attachments: array(ra).max(10).optional(),
|
|
5261
5261
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
5262
5262
|
actionUrls: object({
|
|
5263
5263
|
billing: string().max(500),
|
|
@@ -5267,7 +5267,7 @@ var Qi = Yi.extend({
|
|
|
5267
5267
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5268
5268
|
path: ["content"],
|
|
5269
5269
|
message: "Message or attachment required"
|
|
5270
|
-
}),
|
|
5270
|
+
}), aa = object({
|
|
5271
5271
|
type: _enum(["user", "agent"]),
|
|
5272
5272
|
id: string().min(1)
|
|
5273
5273
|
}).strict();
|
|
@@ -5282,44 +5282,44 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5282
5282
|
}), n.add(e);
|
|
5283
5283
|
}
|
|
5284
5284
|
}
|
|
5285
|
-
var
|
|
5285
|
+
var oa = object({
|
|
5286
5286
|
orgId: string().min(1),
|
|
5287
|
-
participants: array(
|
|
5288
|
-
}).strict().superRefine(addDuplicateConversationTargetIssues),
|
|
5287
|
+
participants: array(aa).min(1).max(20)
|
|
5288
|
+
}).strict().superRefine(addDuplicateConversationTargetIssues), sa = object({
|
|
5289
5289
|
orgId: string().min(1),
|
|
5290
|
-
participants: array(
|
|
5290
|
+
participants: array(aa).min(1).max(20)
|
|
5291
5291
|
}).strict().superRefine((e, t) => {
|
|
5292
5292
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5293
5293
|
code: "custom",
|
|
5294
5294
|
path: ["participants"],
|
|
5295
5295
|
message: "New sessions require at least one agent participant."
|
|
5296
5296
|
});
|
|
5297
|
-
}),
|
|
5297
|
+
}), ca = object({
|
|
5298
5298
|
category: string().min(1).max(30).optional(),
|
|
5299
5299
|
reason: string().max(2e3).optional()
|
|
5300
|
-
}).strict(),
|
|
5300
|
+
}).strict(), la = _enum([
|
|
5301
5301
|
"1:1",
|
|
5302
5302
|
"4:3",
|
|
5303
5303
|
"3:4",
|
|
5304
5304
|
"16:9",
|
|
5305
5305
|
"9:16"
|
|
5306
|
-
]),
|
|
5306
|
+
]), ua = _enum([
|
|
5307
5307
|
"1K",
|
|
5308
5308
|
"2K",
|
|
5309
5309
|
"4K"
|
|
5310
|
-
]),
|
|
5310
|
+
]), da = object({
|
|
5311
5311
|
prompt: string().trim().min(1).max(4e3),
|
|
5312
|
-
aspectRatio:
|
|
5312
|
+
aspectRatio: la.default("1:1"),
|
|
5313
5313
|
outputFormat: _enum([
|
|
5314
5314
|
"png",
|
|
5315
5315
|
"jpeg",
|
|
5316
5316
|
"webp"
|
|
5317
5317
|
]).default("webp"),
|
|
5318
|
-
resolution:
|
|
5318
|
+
resolution: ua.default("2K"),
|
|
5319
5319
|
style: string().trim().max(200).optional(),
|
|
5320
5320
|
altText: string().trim().max(500).optional(),
|
|
5321
5321
|
referenceMediaIds: array(string().min(1)).max(4).optional()
|
|
5322
|
-
}).strict(),
|
|
5322
|
+
}).strict(), fa = object({
|
|
5323
5323
|
mediaId: string().min(1),
|
|
5324
5324
|
src: url(),
|
|
5325
5325
|
filename: string().min(1),
|
|
@@ -5329,54 +5329,54 @@ var aa = object({
|
|
|
5329
5329
|
provider: string().min(1).optional(),
|
|
5330
5330
|
providerRequestId: string().min(1).optional(),
|
|
5331
5331
|
media: string().startsWith("MEDIA:"),
|
|
5332
|
-
attachment:
|
|
5333
|
-
}),
|
|
5332
|
+
attachment: Yi.extend({ type: literal("image") })
|
|
5333
|
+
}), pa = object({
|
|
5334
5334
|
identityToken: string().min(1),
|
|
5335
5335
|
fullName: string().optional()
|
|
5336
|
-
}),
|
|
5336
|
+
}), ma = object({
|
|
5337
5337
|
redirect: string(),
|
|
5338
5338
|
redirectReason: string(),
|
|
5339
5339
|
isNew: boolean(),
|
|
5340
5340
|
deviceId: string()
|
|
5341
|
-
}),
|
|
5341
|
+
}), ha = object({
|
|
5342
5342
|
ok: literal(!0),
|
|
5343
|
-
data:
|
|
5343
|
+
data: ma,
|
|
5344
5344
|
token: string()
|
|
5345
|
-
}),
|
|
5345
|
+
}), ga = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine(isSafeRedirectPath, "path must be a relative dashboard path") }), _a = object({ url: string() }), va = object({
|
|
5346
5346
|
ok: literal(!0),
|
|
5347
|
-
data:
|
|
5348
|
-
}),
|
|
5347
|
+
data: _a
|
|
5348
|
+
}), ya = object({ token: string().min(1) }), ba = object({
|
|
5349
5349
|
redirect: string(),
|
|
5350
5350
|
redirectReason: string(),
|
|
5351
5351
|
deviceId: string()
|
|
5352
|
-
}),
|
|
5352
|
+
}), xa = object({
|
|
5353
5353
|
ok: literal(!0),
|
|
5354
|
-
data:
|
|
5354
|
+
data: ba,
|
|
5355
5355
|
token: string()
|
|
5356
|
-
}),
|
|
5356
|
+
}), Sa = _enum(["none", "active_assistant"]), Ca = _enum([
|
|
5357
5357
|
"none",
|
|
5358
5358
|
"active",
|
|
5359
5359
|
"trial",
|
|
5360
5360
|
"canceling",
|
|
5361
5361
|
"past_due",
|
|
5362
5362
|
"paused"
|
|
5363
|
-
]),
|
|
5363
|
+
]), wa = object({
|
|
5364
5364
|
brand: string(),
|
|
5365
5365
|
last4: string(),
|
|
5366
5366
|
expMonth: number(),
|
|
5367
5367
|
expYear: number()
|
|
5368
|
-
}),
|
|
5368
|
+
}), Ta = object({
|
|
5369
5369
|
date: string(),
|
|
5370
5370
|
amount: number(),
|
|
5371
5371
|
status: string(),
|
|
5372
5372
|
invoicePdf: string().optional()
|
|
5373
|
-
}),
|
|
5373
|
+
}), Ea = object({
|
|
5374
5374
|
graceEndsAt: string().optional(),
|
|
5375
5375
|
suspended: boolean(),
|
|
5376
5376
|
url: string().optional()
|
|
5377
|
-
}),
|
|
5378
|
-
plan:
|
|
5379
|
-
status:
|
|
5377
|
+
}), Da = object({
|
|
5378
|
+
plan: Sa,
|
|
5379
|
+
status: Ca,
|
|
5380
5380
|
price: number(),
|
|
5381
5381
|
tierRates: record(string(), number()).optional(),
|
|
5382
5382
|
maxAgents: number(),
|
|
@@ -5389,34 +5389,34 @@ var aa = object({
|
|
|
5389
5389
|
cancelAt: string().optional(),
|
|
5390
5390
|
trialEnd: string().optional(),
|
|
5391
5391
|
trialDaysRemaining: number().optional(),
|
|
5392
|
-
paymentMethod:
|
|
5393
|
-
paymentRecovery:
|
|
5394
|
-
invoices: array(
|
|
5392
|
+
paymentMethod: wa.optional(),
|
|
5393
|
+
paymentRecovery: Ea.optional(),
|
|
5394
|
+
invoices: array(Ta),
|
|
5395
5395
|
stripeError: string().optional()
|
|
5396
|
-
}),
|
|
5396
|
+
}), Oa = _enum([
|
|
5397
5397
|
"demo_agent_exists",
|
|
5398
5398
|
"demo_usage_exhausted",
|
|
5399
5399
|
"subscription_required",
|
|
5400
5400
|
"plan_limit"
|
|
5401
|
-
]),
|
|
5401
|
+
]), ka = object({
|
|
5402
5402
|
canCreate: boolean(),
|
|
5403
5403
|
activeAgents: number().int().nonnegative(),
|
|
5404
5404
|
agentLimit: number().int().nonnegative(),
|
|
5405
5405
|
isDemo: boolean(),
|
|
5406
|
-
reason:
|
|
5407
|
-
}),
|
|
5406
|
+
reason: Oa.optional()
|
|
5407
|
+
}), Aa = object({
|
|
5408
5408
|
orgId: string(),
|
|
5409
5409
|
agentName: string().optional(),
|
|
5410
5410
|
runtime: string().optional()
|
|
5411
|
-
}),
|
|
5411
|
+
}), ja = object({
|
|
5412
5412
|
created: number(),
|
|
5413
5413
|
skipped: number(),
|
|
5414
5414
|
errors: array(string())
|
|
5415
|
-
}),
|
|
5415
|
+
}), Ma = object({
|
|
5416
5416
|
updated: number(),
|
|
5417
5417
|
errors: array(string())
|
|
5418
|
-
}),
|
|
5419
|
-
code:
|
|
5418
|
+
}), Na = Wr, Pa = object({
|
|
5419
|
+
code: Bi,
|
|
5420
5420
|
message: string(),
|
|
5421
5421
|
bucket: _enum(["account", "error"]).optional(),
|
|
5422
5422
|
actionLabel: string().optional(),
|
|
@@ -5433,14 +5433,14 @@ function toChatStreamError(e) {
|
|
|
5433
5433
|
...e.help ? { help: e.help } : {}
|
|
5434
5434
|
};
|
|
5435
5435
|
}
|
|
5436
|
-
var
|
|
5436
|
+
var Fa = discriminatedUnion("event", [
|
|
5437
5437
|
object({
|
|
5438
5438
|
event: literal("status"),
|
|
5439
|
-
data:
|
|
5439
|
+
data: Na
|
|
5440
5440
|
}),
|
|
5441
5441
|
object({
|
|
5442
5442
|
event: literal("message"),
|
|
5443
|
-
data: object({ message:
|
|
5443
|
+
data: object({ message: na })
|
|
5444
5444
|
}),
|
|
5445
5445
|
object({
|
|
5446
5446
|
event: literal("message_delta"),
|
|
@@ -5460,7 +5460,7 @@ var Pa = discriminatedUnion("event", [
|
|
|
5460
5460
|
}),
|
|
5461
5461
|
object({
|
|
5462
5462
|
event: literal("tool_activity"),
|
|
5463
|
-
data:
|
|
5463
|
+
data: Gi
|
|
5464
5464
|
}),
|
|
5465
5465
|
object({
|
|
5466
5466
|
event: literal("working_end"),
|
|
@@ -5472,7 +5472,7 @@ var Pa = discriminatedUnion("event", [
|
|
|
5472
5472
|
}),
|
|
5473
5473
|
object({
|
|
5474
5474
|
event: literal("error"),
|
|
5475
|
-
data:
|
|
5475
|
+
data: Pa
|
|
5476
5476
|
})
|
|
5477
5477
|
]);
|
|
5478
5478
|
function chatEventUserTurnId(e) {
|
|
@@ -5624,7 +5624,7 @@ function parseChatEvent(e) {
|
|
|
5624
5624
|
for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
|
|
5625
5625
|
if (!n || r === void 0) return null;
|
|
5626
5626
|
try {
|
|
5627
|
-
let e =
|
|
5627
|
+
let e = Fa.safeParse({
|
|
5628
5628
|
event: n,
|
|
5629
5629
|
data: JSON.parse(r)
|
|
5630
5630
|
});
|
|
@@ -5635,7 +5635,7 @@ function parseChatEvent(e) {
|
|
|
5635
5635
|
}
|
|
5636
5636
|
//#endregion
|
|
5637
5637
|
//#region ../core/dist/wire/chat-card.js
|
|
5638
|
-
var
|
|
5638
|
+
var Ia = object({
|
|
5639
5639
|
label: string().trim().min(1).max(40),
|
|
5640
5640
|
reply: string().trim().min(1).max(500),
|
|
5641
5641
|
style: _enum([
|
|
@@ -5643,11 +5643,11 @@ var Fa = object({
|
|
|
5643
5643
|
"default",
|
|
5644
5644
|
"destructive"
|
|
5645
5645
|
]).optional()
|
|
5646
|
-
}).strip(),
|
|
5646
|
+
}).strip(), La = object({
|
|
5647
5647
|
version: literal(1),
|
|
5648
5648
|
title: string().trim().min(1).max(200),
|
|
5649
5649
|
body: string().trim().min(1).max(8e3).optional(),
|
|
5650
|
-
actions: array(
|
|
5650
|
+
actions: array(Ia).min(1).max(3).optional()
|
|
5651
5651
|
}).strip();
|
|
5652
5652
|
function parseChatCardFencePayload(e) {
|
|
5653
5653
|
let t;
|
|
@@ -5660,7 +5660,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5660
5660
|
message: e instanceof Error ? e.message : "Invalid JSON"
|
|
5661
5661
|
};
|
|
5662
5662
|
}
|
|
5663
|
-
let n =
|
|
5663
|
+
let n = La.safeParse(t);
|
|
5664
5664
|
return n.success ? {
|
|
5665
5665
|
ok: !0,
|
|
5666
5666
|
spec: n.data
|
|
@@ -5672,36 +5672,36 @@ function parseChatCardFencePayload(e) {
|
|
|
5672
5672
|
}
|
|
5673
5673
|
//#endregion
|
|
5674
5674
|
//#region ../core/dist/wire/chat-visual.js
|
|
5675
|
-
var
|
|
5675
|
+
var Ra = string().trim().min(1).max(240), za = string().trim().min(1).max(800), X = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Z = string().trim().min(1).max(120), Ba = record(X, union([
|
|
5676
5676
|
string().max(500),
|
|
5677
5677
|
number().finite(),
|
|
5678
5678
|
boolean(),
|
|
5679
5679
|
_null()
|
|
5680
|
-
])),
|
|
5680
|
+
])), Va = _enum([
|
|
5681
5681
|
"compact",
|
|
5682
5682
|
"currency",
|
|
5683
5683
|
"duration",
|
|
5684
5684
|
"integer",
|
|
5685
5685
|
"percent",
|
|
5686
5686
|
"raw"
|
|
5687
|
-
]),
|
|
5688
|
-
title:
|
|
5689
|
-
description:
|
|
5690
|
-
footer:
|
|
5691
|
-
}).strip(),
|
|
5687
|
+
]), Ha = object({
|
|
5688
|
+
title: Ra,
|
|
5689
|
+
description: za.optional(),
|
|
5690
|
+
footer: za.optional()
|
|
5691
|
+
}).strip(), Ua = object({
|
|
5692
5692
|
dataKey: X,
|
|
5693
5693
|
label: Z.optional(),
|
|
5694
5694
|
axisLabel: Z.optional(),
|
|
5695
|
-
valueFormat:
|
|
5695
|
+
valueFormat: Va.optional(),
|
|
5696
5696
|
valuePrefix: string().trim().max(12).optional(),
|
|
5697
5697
|
valueSuffix: string().trim().max(12).optional()
|
|
5698
|
-
}).strip(),
|
|
5698
|
+
}).strip(), Wa = object({
|
|
5699
5699
|
kind: literal("linear"),
|
|
5700
5700
|
dataKey: X,
|
|
5701
5701
|
label: Z.optional()
|
|
5702
|
-
}).strip(),
|
|
5702
|
+
}).strip(), Ga = object({
|
|
5703
5703
|
version: literal(1),
|
|
5704
|
-
meta:
|
|
5704
|
+
meta: Ha,
|
|
5705
5705
|
fallbackMarkdown: string().trim().min(1).max(4e3)
|
|
5706
5706
|
}).strip();
|
|
5707
5707
|
function dataKeys(e) {
|
|
@@ -5743,7 +5743,7 @@ function requireNumericDataKeys(e, t, n) {
|
|
|
5743
5743
|
});
|
|
5744
5744
|
}
|
|
5745
5745
|
}
|
|
5746
|
-
var
|
|
5746
|
+
var Ka = discriminatedUnion("chartType", [Ga.extend({
|
|
5747
5747
|
visualType: literal("chart"),
|
|
5748
5748
|
chartType: _enum([
|
|
5749
5749
|
"bar",
|
|
@@ -5752,11 +5752,11 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
|
|
|
5752
5752
|
]),
|
|
5753
5753
|
xKey: X,
|
|
5754
5754
|
xAxisLabel: Z.optional(),
|
|
5755
|
-
series: array(
|
|
5756
|
-
data: array(
|
|
5755
|
+
series: array(Ua).min(1).max(6),
|
|
5756
|
+
data: array(Ba).min(1).max(120),
|
|
5757
5757
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
5758
5758
|
stacking: _enum(["grouped", "stacked"]).optional(),
|
|
5759
|
-
trendLine:
|
|
5759
|
+
trendLine: Wa.optional()
|
|
5760
5760
|
}).strip().superRefine((e, t) => {
|
|
5761
5761
|
e.stacking && e.chartType !== "bar" && t.addIssue({
|
|
5762
5762
|
code: "custom",
|
|
@@ -5794,13 +5794,13 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
|
|
|
5794
5794
|
path: ["trendLine", "dataKey"],
|
|
5795
5795
|
value: e.trendLine.dataKey
|
|
5796
5796
|
}] : []], t);
|
|
5797
|
-
}),
|
|
5797
|
+
}), Ga.extend({
|
|
5798
5798
|
visualType: literal("chart"),
|
|
5799
5799
|
chartType: literal("pie"),
|
|
5800
5800
|
nameKey: X,
|
|
5801
5801
|
valueKey: X,
|
|
5802
|
-
series: array(
|
|
5803
|
-
data: array(
|
|
5802
|
+
series: array(Ua).max(1).optional(),
|
|
5803
|
+
data: array(Ba).min(1).max(16)
|
|
5804
5804
|
}).strip().superRefine((e, t) => {
|
|
5805
5805
|
requireDataKeys(e.data, [
|
|
5806
5806
|
{
|
|
@@ -5824,10 +5824,10 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
|
|
|
5824
5824
|
value: e.valueKey,
|
|
5825
5825
|
nonnegative: !0
|
|
5826
5826
|
}], t);
|
|
5827
|
-
})]),
|
|
5827
|
+
})]), qa = object({
|
|
5828
5828
|
id: X,
|
|
5829
5829
|
label: Z,
|
|
5830
|
-
detail:
|
|
5830
|
+
detail: za.optional(),
|
|
5831
5831
|
kind: _enum([
|
|
5832
5832
|
"actor",
|
|
5833
5833
|
"agent",
|
|
@@ -5838,11 +5838,11 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
|
|
|
5838
5838
|
"system",
|
|
5839
5839
|
"task"
|
|
5840
5840
|
]).optional()
|
|
5841
|
-
}).strip(),
|
|
5841
|
+
}).strip(), Ja = object({
|
|
5842
5842
|
from: X,
|
|
5843
5843
|
to: X,
|
|
5844
5844
|
label: Z.optional()
|
|
5845
|
-
}).strip(),
|
|
5845
|
+
}).strip(), Ya = union([Ka, Ga.extend({
|
|
5846
5846
|
visualType: literal("diagram"),
|
|
5847
5847
|
diagramType: _enum([
|
|
5848
5848
|
"flow",
|
|
@@ -5856,8 +5856,8 @@ var Ga = discriminatedUnion("chartType", [Wa.extend({
|
|
|
5856
5856
|
"radial",
|
|
5857
5857
|
"top-to-bottom"
|
|
5858
5858
|
]).default("auto"),
|
|
5859
|
-
nodes: array(
|
|
5860
|
-
edges: array(
|
|
5859
|
+
nodes: array(qa).min(1).max(24),
|
|
5860
|
+
edges: array(Ja).max(48)
|
|
5861
5861
|
}).strip().superRefine((e, t) => {
|
|
5862
5862
|
let n = new Set(e.nodes.map((e) => e.id));
|
|
5863
5863
|
for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
|
|
@@ -6016,11 +6016,11 @@ function parseChatVisualFencePayload(e) {
|
|
|
6016
6016
|
fallbackMarkdown: r
|
|
6017
6017
|
};
|
|
6018
6018
|
}
|
|
6019
|
-
let n =
|
|
6019
|
+
let n = Ya.safeParse(t);
|
|
6020
6020
|
if (!n.success) {
|
|
6021
6021
|
let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
|
|
6022
6022
|
if (e) {
|
|
6023
|
-
let t =
|
|
6023
|
+
let t = Ya.safeParse(e);
|
|
6024
6024
|
if (t.success) return {
|
|
6025
6025
|
ok: !0,
|
|
6026
6026
|
spec: t.data
|
|
@@ -6045,7 +6045,7 @@ function extractChatVisualFencePayloads(e) {
|
|
|
6045
6045
|
}
|
|
6046
6046
|
//#endregion
|
|
6047
6047
|
//#region ../core/dist/wire/conversation.js
|
|
6048
|
-
var
|
|
6048
|
+
var Xa = object({
|
|
6049
6049
|
type: _enum([
|
|
6050
6050
|
"user",
|
|
6051
6051
|
"agent",
|
|
@@ -6065,7 +6065,7 @@ var Ya = object({
|
|
|
6065
6065
|
displayName: string().optional(),
|
|
6066
6066
|
handle: string().optional(),
|
|
6067
6067
|
avatarUrl: string().optional()
|
|
6068
|
-
}).strict(),
|
|
6068
|
+
}).strict(), Za = object({
|
|
6069
6069
|
messageId: string(),
|
|
6070
6070
|
role: _enum([
|
|
6071
6071
|
"user",
|
|
@@ -6075,7 +6075,7 @@ var Ya = object({
|
|
|
6075
6075
|
content: string(),
|
|
6076
6076
|
sequence: string(),
|
|
6077
6077
|
createdAt: string()
|
|
6078
|
-
}),
|
|
6078
|
+
}), Qa = object({
|
|
6079
6079
|
conversationId: string(),
|
|
6080
6080
|
orgId: string(),
|
|
6081
6081
|
kind: _enum(["direct", "group"]),
|
|
@@ -6085,30 +6085,30 @@ var Ya = object({
|
|
|
6085
6085
|
"requester",
|
|
6086
6086
|
"member"
|
|
6087
6087
|
]),
|
|
6088
|
-
participants: array(
|
|
6089
|
-
lastMessage:
|
|
6088
|
+
participants: array(Xa),
|
|
6089
|
+
lastMessage: Za.nullable(),
|
|
6090
6090
|
unreadCount: number().int().nonnegative(),
|
|
6091
6091
|
latestSequence: string().nullable()
|
|
6092
|
-
}),
|
|
6092
|
+
}), $a = object({ sequence: string().min(1) }), eo = object({ turnId: string().min(1).optional() }).strict(), to = object({
|
|
6093
6093
|
cancelled: boolean(),
|
|
6094
6094
|
cancelledTurnIds: array(string())
|
|
6095
|
-
}).strict(),
|
|
6095
|
+
}).strict(), no = object({
|
|
6096
6096
|
conversationId: string(),
|
|
6097
6097
|
messageId: string(),
|
|
6098
6098
|
sequence: string(),
|
|
6099
6099
|
snippet: string(),
|
|
6100
6100
|
createdAt: string(),
|
|
6101
|
-
participants: array(
|
|
6102
|
-
}),
|
|
6101
|
+
participants: array(Xa)
|
|
6102
|
+
}), ro = object({
|
|
6103
6103
|
conversationId: string(),
|
|
6104
|
-
lastMessage:
|
|
6104
|
+
lastMessage: Za.nullable(),
|
|
6105
6105
|
unreadCount: number().int().nonnegative(),
|
|
6106
6106
|
latestSequence: string().nullable()
|
|
6107
|
-
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()),
|
|
6107
|
+
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), io = preprocess((e) => e === void 0 ? null : e, B.nullable()), ao = preprocess((e) => e === void 0 ? null : e, V.nullable()), oo = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
6108
6108
|
"user",
|
|
6109
6109
|
"assistant",
|
|
6110
6110
|
"system"
|
|
6111
|
-
]).nullable()),
|
|
6111
|
+
]).nullable()), so = preprocess((e) => e === void 0 ? 0 : e, number()), co = object({
|
|
6112
6112
|
agentId: string(),
|
|
6113
6113
|
handle: string(),
|
|
6114
6114
|
name: string(),
|
|
@@ -6117,19 +6117,19 @@ var Ya = object({
|
|
|
6117
6117
|
orgHandle: Q,
|
|
6118
6118
|
ownerEmail: Q,
|
|
6119
6119
|
ownerName: Q,
|
|
6120
|
-
state:
|
|
6121
|
-
desiredStatus:
|
|
6120
|
+
state: io,
|
|
6121
|
+
desiredStatus: ao,
|
|
6122
6122
|
runtime: string(),
|
|
6123
6123
|
imageVersion: Q,
|
|
6124
6124
|
lastHealthyAt: Q,
|
|
6125
6125
|
lastActiveAt: Q,
|
|
6126
6126
|
lastUserMessageAt: Q,
|
|
6127
6127
|
lastMessageAt: Q,
|
|
6128
|
-
lastMessageRole:
|
|
6128
|
+
lastMessageRole: oo,
|
|
6129
6129
|
lastMessageChannel: Q,
|
|
6130
6130
|
primaryChannel: Q,
|
|
6131
|
-
totalMessages:
|
|
6132
|
-
totalSessions:
|
|
6131
|
+
totalMessages: so,
|
|
6132
|
+
totalSessions: so,
|
|
6133
6133
|
error: Q,
|
|
6134
6134
|
appHandle: string(),
|
|
6135
6135
|
flyAppExists: boolean(),
|
|
@@ -6138,7 +6138,7 @@ var Ya = object({
|
|
|
6138
6138
|
billingActive: boolean(),
|
|
6139
6139
|
createdAt: string(),
|
|
6140
6140
|
updatedAt: string()
|
|
6141
|
-
}),
|
|
6141
|
+
}), lo = object({
|
|
6142
6142
|
running: number(),
|
|
6143
6143
|
stopped: number(),
|
|
6144
6144
|
error: number(),
|
|
@@ -6146,9 +6146,9 @@ var Ya = object({
|
|
|
6146
6146
|
stopping: number(),
|
|
6147
6147
|
unknown: number(),
|
|
6148
6148
|
total: number()
|
|
6149
|
-
}),
|
|
6150
|
-
agents: array(
|
|
6151
|
-
summary:
|
|
6149
|
+
}), uo = object({
|
|
6150
|
+
agents: array(co),
|
|
6151
|
+
summary: lo,
|
|
6152
6152
|
orphanedApps: array(string()),
|
|
6153
6153
|
dailyMessages30d: array(number().int()).optional(),
|
|
6154
6154
|
flyAppCount: number().optional(),
|
|
@@ -6171,7 +6171,7 @@ function resolveHeroStateKey(e) {
|
|
|
6171
6171
|
case "stopping": return null;
|
|
6172
6172
|
}
|
|
6173
6173
|
}
|
|
6174
|
-
var
|
|
6174
|
+
var fo = {
|
|
6175
6175
|
billing_no_plan: { title: (e) => `${e} needs a plan to wake` },
|
|
6176
6176
|
billing_seat_limit: {
|
|
6177
6177
|
title: (e) => `No room to wake ${e}`,
|
|
@@ -6197,7 +6197,7 @@ function buildHeroState(e) {
|
|
|
6197
6197
|
if (!t) return null;
|
|
6198
6198
|
switch (t) {
|
|
6199
6199
|
case "blocked": {
|
|
6200
|
-
let n = e.blocker, r =
|
|
6200
|
+
let n = e.blocker, r = fo[n.code];
|
|
6201
6201
|
return {
|
|
6202
6202
|
kind: t,
|
|
6203
6203
|
title: r ? r.title(e.name) : n.title,
|
|
@@ -6245,20 +6245,20 @@ function buildHeroState(e) {
|
|
|
6245
6245
|
}
|
|
6246
6246
|
//#endregion
|
|
6247
6247
|
//#region ../core/dist/wire/media.js
|
|
6248
|
-
var
|
|
6248
|
+
var po = xr, mo = P, $ = object({
|
|
6249
6249
|
mediaId: string(),
|
|
6250
6250
|
src: string(),
|
|
6251
6251
|
alt: string().nullable().optional(),
|
|
6252
6252
|
filename: string().optional(),
|
|
6253
6253
|
displayName: string().nullable().optional(),
|
|
6254
6254
|
mimeType: string().optional(),
|
|
6255
|
-
mediaType:
|
|
6256
|
-
type:
|
|
6255
|
+
mediaType: mo.optional(),
|
|
6256
|
+
type: mo.optional(),
|
|
6257
6257
|
size: number().optional(),
|
|
6258
6258
|
width: number().nullable().optional(),
|
|
6259
6259
|
height: number().nullable().optional(),
|
|
6260
6260
|
duration: number().nullable().optional(),
|
|
6261
|
-
context:
|
|
6261
|
+
context: po.nullable().optional(),
|
|
6262
6262
|
blurhash: string().nullable().optional(),
|
|
6263
6263
|
quality: string().optional(),
|
|
6264
6264
|
status: string().optional(),
|
|
@@ -6267,13 +6267,13 @@ var fo = xr, po = P, $ = object({
|
|
|
6267
6267
|
agentId: string().nullable().optional(),
|
|
6268
6268
|
createdAt: string().optional(),
|
|
6269
6269
|
updatedAt: string().optional()
|
|
6270
|
-
}),
|
|
6270
|
+
}), ho = object({
|
|
6271
6271
|
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."),
|
|
6272
|
-
context:
|
|
6272
|
+
context: po.optional().default("general"),
|
|
6273
6273
|
agentId: string().optional(),
|
|
6274
6274
|
orgId: string().optional(),
|
|
6275
6275
|
duration: number().optional()
|
|
6276
|
-
}),
|
|
6276
|
+
}), go = object({
|
|
6277
6277
|
mediaId: string().optional(),
|
|
6278
6278
|
src: string().optional(),
|
|
6279
6279
|
alt: string().optional(),
|
|
@@ -6282,7 +6282,7 @@ var fo = xr, po = P, $ = object({
|
|
|
6282
6282
|
mimeType: string().optional(),
|
|
6283
6283
|
mediaType: string().optional(),
|
|
6284
6284
|
blurhash: string().optional()
|
|
6285
|
-
}),
|
|
6285
|
+
}), _o = object({
|
|
6286
6286
|
membershipId: string(),
|
|
6287
6287
|
userId: string(),
|
|
6288
6288
|
orgId: string(),
|
|
@@ -6297,15 +6297,15 @@ var fo = xr, po = P, $ = object({
|
|
|
6297
6297
|
status: _enum(["active", "suspended"]),
|
|
6298
6298
|
joinedAt: string(),
|
|
6299
6299
|
lastSeenAt: string().optional(),
|
|
6300
|
-
avatar:
|
|
6301
|
-
}),
|
|
6300
|
+
avatar: go.optional()
|
|
6301
|
+
}), vo = object({
|
|
6302
6302
|
invitationId: string(),
|
|
6303
6303
|
email: string(),
|
|
6304
6304
|
role: _enum(["admin", "member"]),
|
|
6305
6305
|
status: string(),
|
|
6306
6306
|
expiresAt: string(),
|
|
6307
6307
|
createdAt: string()
|
|
6308
|
-
}),
|
|
6308
|
+
}), yo = object({
|
|
6309
6309
|
token: string(),
|
|
6310
6310
|
email: string(),
|
|
6311
6311
|
orgId: string(),
|
|
@@ -6327,20 +6327,20 @@ var fo = xr, po = P, $ = object({
|
|
|
6327
6327
|
]),
|
|
6328
6328
|
expiresAt: string(),
|
|
6329
6329
|
memberCount: number().optional()
|
|
6330
|
-
}),
|
|
6330
|
+
}), bo = object({
|
|
6331
6331
|
email: string().email(),
|
|
6332
6332
|
role: _enum(["admin", "member"]).optional(),
|
|
6333
6333
|
message: string().max(500).optional()
|
|
6334
|
-
}).strict(),
|
|
6334
|
+
}).strict(), xo = object({ role: _enum(["admin", "member"]) }).strict(), So = object({ token: string().min(1) }).strict(), Co = _enum([
|
|
6335
6335
|
"planLimit",
|
|
6336
6336
|
"billingOverdue",
|
|
6337
6337
|
"rebuilding",
|
|
6338
6338
|
"agentNotFound"
|
|
6339
|
-
]),
|
|
6339
|
+
]), wo = _enum([
|
|
6340
6340
|
"rebuilding",
|
|
6341
6341
|
"provisioning",
|
|
6342
6342
|
"billingOverdue"
|
|
6343
|
-
]),
|
|
6343
|
+
]), To = object({
|
|
6344
6344
|
agentId: string(),
|
|
6345
6345
|
name: string(),
|
|
6346
6346
|
avatar: F.optional(),
|
|
@@ -6360,21 +6360,21 @@ var fo = xr, po = P, $ = object({
|
|
|
6360
6360
|
detail: string().optional(),
|
|
6361
6361
|
blocker: R.optional(),
|
|
6362
6362
|
canWake: boolean(),
|
|
6363
|
-
cantWakeReason:
|
|
6363
|
+
cantWakeReason: Co.optional(),
|
|
6364
6364
|
canRebuild: boolean(),
|
|
6365
|
-
cantRebuildReason:
|
|
6366
|
-
}),
|
|
6367
|
-
zNotificationTelemetryAck: () =>
|
|
6368
|
-
zNotificationTelemetryEvent: () =>
|
|
6369
|
-
zRegisterDeviceRequest: () =>
|
|
6370
|
-
zRegisterDeviceResponse: () =>
|
|
6371
|
-
}),
|
|
6365
|
+
cantRebuildReason: wo.optional()
|
|
6366
|
+
}), Eo = /* @__PURE__ */ t({
|
|
6367
|
+
zNotificationTelemetryAck: () => Ao,
|
|
6368
|
+
zNotificationTelemetryEvent: () => ko,
|
|
6369
|
+
zRegisterDeviceRequest: () => Do,
|
|
6370
|
+
zRegisterDeviceResponse: () => Oo
|
|
6371
|
+
}), Do = object({
|
|
6372
6372
|
deviceId: string().min(1).max(64),
|
|
6373
6373
|
pushToken: string().min(1).max(200),
|
|
6374
6374
|
appVersion: string().max(40).optional(),
|
|
6375
6375
|
osVersion: string().max(40).optional(),
|
|
6376
6376
|
model: string().max(80).optional()
|
|
6377
|
-
}),
|
|
6377
|
+
}), Oo = object({ deviceId: string().min(1).max(64) }), ko = object({
|
|
6378
6378
|
deviceId: string().min(1).max(64),
|
|
6379
6379
|
kind: string().min(1).max(30),
|
|
6380
6380
|
action: _enum([
|
|
@@ -6383,7 +6383,7 @@ var fo = xr, po = P, $ = object({
|
|
|
6383
6383
|
"dismissed"
|
|
6384
6384
|
]),
|
|
6385
6385
|
messageId: string().max(32).optional()
|
|
6386
|
-
}),
|
|
6386
|
+
}), Ao = object({ updated: boolean() }), jo = q.pick({
|
|
6387
6387
|
orgId: !0,
|
|
6388
6388
|
handle: !0,
|
|
6389
6389
|
name: !0,
|
|
@@ -6399,11 +6399,11 @@ var fo = xr, po = P, $ = object({
|
|
|
6399
6399
|
}).extend({
|
|
6400
6400
|
avatar: $.nullable().optional(),
|
|
6401
6401
|
cover: $.nullable().optional()
|
|
6402
|
-
}),
|
|
6402
|
+
}), Mo = object({
|
|
6403
6403
|
name: string().min(1).max(255),
|
|
6404
6404
|
handle: string().min(2).max(50).optional(),
|
|
6405
6405
|
timezone: Y.optional()
|
|
6406
|
-
}).strict(),
|
|
6406
|
+
}).strict(), No = q.pick({
|
|
6407
6407
|
name: !0,
|
|
6408
6408
|
email: !0,
|
|
6409
6409
|
website: !0,
|
|
@@ -6415,7 +6415,7 @@ var fo = xr, po = P, $ = object({
|
|
|
6415
6415
|
timezone: Y.optional(),
|
|
6416
6416
|
avatarMediaId: string().nullable().optional(),
|
|
6417
6417
|
coverMediaId: string().nullable().optional()
|
|
6418
|
-
}).strict(),
|
|
6418
|
+
}).strict(), Po = object({
|
|
6419
6419
|
messagesHandled: number().int().nonnegative(),
|
|
6420
6420
|
proactiveRuns: number().int().nonnegative(),
|
|
6421
6421
|
approvalsWaiting: number().int().nonnegative(),
|
|
@@ -6432,11 +6432,11 @@ var fo = xr, po = P, $ = object({
|
|
|
6432
6432
|
prev30BriefingsDelivered: number().int().nonnegative(),
|
|
6433
6433
|
prev30ScheduledRuns: number().int().nonnegative(),
|
|
6434
6434
|
since: string()
|
|
6435
|
-
}),
|
|
6435
|
+
}), Fo = _enum([
|
|
6436
6436
|
"success",
|
|
6437
6437
|
"info",
|
|
6438
6438
|
"warning"
|
|
6439
|
-
]),
|
|
6439
|
+
]), Io = object({
|
|
6440
6440
|
org: object({
|
|
6441
6441
|
orgId: string(),
|
|
6442
6442
|
name: string(),
|
|
@@ -6445,7 +6445,7 @@ var fo = xr, po = P, $ = object({
|
|
|
6445
6445
|
plan: object({
|
|
6446
6446
|
key: string(),
|
|
6447
6447
|
label: string(),
|
|
6448
|
-
tone:
|
|
6448
|
+
tone: Fo,
|
|
6449
6449
|
status: string(),
|
|
6450
6450
|
trialDaysRemaining: number().optional()
|
|
6451
6451
|
}),
|
|
@@ -6466,15 +6466,15 @@ function zPaginatedResponse(e) {
|
|
|
6466
6466
|
}
|
|
6467
6467
|
//#endregion
|
|
6468
6468
|
//#region ../core/dist/wire/public-services.js
|
|
6469
|
-
var
|
|
6469
|
+
var Lo = object({
|
|
6470
6470
|
sender: _enum(["user", "agent"]),
|
|
6471
6471
|
text: string()
|
|
6472
|
-
}),
|
|
6472
|
+
}), Ro = _enum([
|
|
6473
6473
|
"works-now",
|
|
6474
6474
|
"guided-setup",
|
|
6475
6475
|
"coming-soon",
|
|
6476
6476
|
"custom-workflow"
|
|
6477
|
-
]),
|
|
6477
|
+
]), zo = object({
|
|
6478
6478
|
docsUrl: string(),
|
|
6479
6479
|
verifiedAt: string(),
|
|
6480
6480
|
version: string().optional(),
|
|
@@ -6486,11 +6486,11 @@ var Io = object({
|
|
|
6486
6486
|
"unversioned"
|
|
6487
6487
|
]),
|
|
6488
6488
|
note: string().optional()
|
|
6489
|
-
}),
|
|
6489
|
+
}), Bo = object({
|
|
6490
6490
|
key: string(),
|
|
6491
6491
|
label: string(),
|
|
6492
6492
|
rank: number()
|
|
6493
|
-
}),
|
|
6493
|
+
}), Vo = object({
|
|
6494
6494
|
text: string(),
|
|
6495
6495
|
tone: _enum([
|
|
6496
6496
|
"info",
|
|
@@ -6498,7 +6498,7 @@ var Io = object({
|
|
|
6498
6498
|
"success",
|
|
6499
6499
|
"danger"
|
|
6500
6500
|
])
|
|
6501
|
-
}),
|
|
6501
|
+
}), Ho = object({
|
|
6502
6502
|
serviceKey: string(),
|
|
6503
6503
|
name: string(),
|
|
6504
6504
|
description: string(),
|
|
@@ -6508,16 +6508,16 @@ var Io = object({
|
|
|
6508
6508
|
category: string(),
|
|
6509
6509
|
categoryLabel: string(),
|
|
6510
6510
|
categoryRank: number(),
|
|
6511
|
-
secondaryCategories: array(
|
|
6512
|
-
badges: array(
|
|
6511
|
+
secondaryCategories: array(Bo),
|
|
6512
|
+
badges: array(Vo),
|
|
6513
6513
|
tags: array(string()),
|
|
6514
6514
|
searchAliases: array(string()),
|
|
6515
6515
|
jtbd: string(),
|
|
6516
6516
|
useCase: string(),
|
|
6517
6517
|
demoScenario: string(),
|
|
6518
|
-
sampleConversation: array(
|
|
6519
|
-
publicStatus:
|
|
6520
|
-
apiVerification:
|
|
6518
|
+
sampleConversation: array(Lo),
|
|
6519
|
+
publicStatus: Ro,
|
|
6520
|
+
apiVerification: zo.optional(),
|
|
6521
6521
|
setupDifficulty: string(),
|
|
6522
6522
|
risk: string(),
|
|
6523
6523
|
price: string(),
|
|
@@ -6530,24 +6530,24 @@ var Io = object({
|
|
|
6530
6530
|
]),
|
|
6531
6531
|
setupSummary: string().optional(),
|
|
6532
6532
|
pagePath: string()
|
|
6533
|
-
}),
|
|
6533
|
+
}), Uo = object({
|
|
6534
6534
|
fullName: string().min(1).max(100).optional(),
|
|
6535
6535
|
linkedinUsername: K.nullable().optional(),
|
|
6536
6536
|
avatarMediaId: string().nullable().optional(),
|
|
6537
6537
|
primaryAgentId: string().nullable().optional(),
|
|
6538
6538
|
lastActiveOrgId: string().nullable().optional()
|
|
6539
|
-
}).strict(),
|
|
6540
|
-
ASSISTANT_SILENCE_CONTROLS: () =>
|
|
6539
|
+
}).strict(), Wo = /* @__PURE__ */ t({
|
|
6540
|
+
ASSISTANT_SILENCE_CONTROLS: () => Di,
|
|
6541
6541
|
ActionAreaSchema: () => Lr,
|
|
6542
6542
|
ActionButtonSchema: () => I,
|
|
6543
|
-
Agent: () =>
|
|
6543
|
+
Agent: () => pi,
|
|
6544
6544
|
AudioFormatSchema: () => Er,
|
|
6545
6545
|
AudioMediaSchema: () => jr,
|
|
6546
6546
|
AudioPropertiesSchema: () => Or,
|
|
6547
6547
|
AuthApiError: () => AuthApiError,
|
|
6548
|
-
BOT_API_LLM_PATH: () =>
|
|
6549
|
-
BOT_API_PATH: () =>
|
|
6550
|
-
BOT_USER_AGENT: () =>
|
|
6548
|
+
BOT_API_LLM_PATH: () => ji,
|
|
6549
|
+
BOT_API_PATH: () => Ai,
|
|
6550
|
+
BOT_USER_AGENT: () => Ei,
|
|
6551
6551
|
ButtonDesignSchema: () => Ir,
|
|
6552
6552
|
ButtonThemeSchema: () => Fr,
|
|
6553
6553
|
CHART_THEME: () => ti,
|
|
@@ -6560,8 +6560,8 @@ var Io = object({
|
|
|
6560
6560
|
DocumentMediaSchema: () => Mr,
|
|
6561
6561
|
ENTRY_TIER_MONTHLY_PRICE_CENTS: () => Rr,
|
|
6562
6562
|
ENTRY_TIER_MONTHLY_PRICE_LABEL: () => zr,
|
|
6563
|
-
ERROR_CODES: () =>
|
|
6564
|
-
EnrichedAgentSchema: () =>
|
|
6563
|
+
ERROR_CODES: () => zi,
|
|
6564
|
+
EnrichedAgentSchema: () => di,
|
|
6565
6565
|
ImageFormatSchema: () => wr,
|
|
6566
6566
|
ImageMediaSchema: () => kr,
|
|
6567
6567
|
LIFECYCLE_COLOR: () => Kr,
|
|
@@ -6583,20 +6583,21 @@ var Io = object({
|
|
|
6583
6583
|
SocialAccountsSchema: () => vr,
|
|
6584
6584
|
UNKNOWN_STATUS: () => Gr,
|
|
6585
6585
|
VOICE_CATALOG: () => U,
|
|
6586
|
+
VOICE_CONTINUE_CUE: () => ii,
|
|
6586
6587
|
VideoFormatSchema: () => Tr,
|
|
6587
6588
|
VideoMediaSchema: () => Ar,
|
|
6588
6589
|
VideoPropertiesSchema: () => Dr,
|
|
6589
|
-
agentSchema: () =>
|
|
6590
|
+
agentSchema: () => ui,
|
|
6590
6591
|
apiError: () => apiError,
|
|
6591
6592
|
apiOk: () => apiOk,
|
|
6592
|
-
appleAuthSchema: () =>
|
|
6593
|
+
appleAuthSchema: () => xi,
|
|
6593
6594
|
authErrorMessage: () => authErrorMessage,
|
|
6594
6595
|
botApiLlmUrl: () => botApiLlmUrl,
|
|
6595
6596
|
botApiUrl: () => botApiUrl,
|
|
6596
6597
|
budgetMinutes: () => budgetMinutes,
|
|
6597
6598
|
buildChatIssue: () => buildChatIssue,
|
|
6598
6599
|
buildHeroState: () => buildHeroState,
|
|
6599
|
-
changeEmailSchema: () =>
|
|
6600
|
+
changeEmailSchema: () => yi,
|
|
6600
6601
|
chatEventMatchesActiveTurn: () => chatEventMatchesActiveTurn,
|
|
6601
6602
|
chatEventMatchesTurn: () => chatEventMatchesTurn,
|
|
6602
6603
|
chatEventTurnId: () => chatEventTurnId,
|
|
@@ -6610,8 +6611,8 @@ var Io = object({
|
|
|
6610
6611
|
customerAgentState: () => customerAgentState,
|
|
6611
6612
|
debug: () => fr,
|
|
6612
6613
|
derive: () => derive,
|
|
6613
|
-
emailSchema: () =>
|
|
6614
|
-
enrichedUserSchema: () =>
|
|
6614
|
+
emailSchema: () => _i,
|
|
6615
|
+
enrichedUserSchema: () => Ti,
|
|
6615
6616
|
error: () => lr,
|
|
6616
6617
|
errorCopy: () => errorCopy,
|
|
6617
6618
|
errorFromApiResponse: () => errorFromApiResponse,
|
|
@@ -6621,7 +6622,7 @@ var Io = object({
|
|
|
6621
6622
|
getDefaultAvatarUrl: () => getDefaultAvatarUrl,
|
|
6622
6623
|
getDefaultGradientCss: () => getDefaultGradientCss,
|
|
6623
6624
|
getWorkspaceMarkUrl: () => getWorkspaceMarkUrl,
|
|
6624
|
-
googleAuthSchema: () =>
|
|
6625
|
+
googleAuthSchema: () => bi,
|
|
6625
6626
|
info: () => dr,
|
|
6626
6627
|
isAgentReady: () => isAgentReady,
|
|
6627
6628
|
isAssistantSilenceControl: () => isAssistantSilenceControl,
|
|
@@ -6633,11 +6634,11 @@ var Io = object({
|
|
|
6633
6634
|
logger: () => M,
|
|
6634
6635
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6635
6636
|
nanoid: () => nanoid,
|
|
6636
|
-
notificationWire: () =>
|
|
6637
|
+
notificationWire: () => Eo,
|
|
6637
6638
|
objectId: () => objectId,
|
|
6638
|
-
orgInfoSchema: () =>
|
|
6639
|
+
orgInfoSchema: () => wi,
|
|
6639
6640
|
orgSchema: () => q,
|
|
6640
|
-
orgWithDefaultAgentSchema: () =>
|
|
6641
|
+
orgWithDefaultAgentSchema: () => Si,
|
|
6641
6642
|
parseChatCardFencePayload: () => parseChatCardFencePayload,
|
|
6642
6643
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
6643
6644
|
readChatEventStream: () => readChatEventStream,
|
|
@@ -6646,129 +6647,129 @@ var Io = object({
|
|
|
6646
6647
|
resolveVoice: () => resolveVoice,
|
|
6647
6648
|
retryPolicyFor: () => retryPolicyFor,
|
|
6648
6649
|
runAuthenticatedChatTurnStream: () => runAuthenticatedChatTurnStream,
|
|
6649
|
-
serverTransitionBudgets: () =>
|
|
6650
|
+
serverTransitionBudgets: () => ki,
|
|
6650
6651
|
shortId: () => shortId,
|
|
6651
6652
|
toAgentState: () => toAgentState,
|
|
6652
6653
|
toChatStreamError: () => toChatStreamError,
|
|
6653
6654
|
trace: () => pr,
|
|
6654
|
-
updateUserSchema: () =>
|
|
6655
|
-
userSchema: () =>
|
|
6655
|
+
updateUserSchema: () => gi,
|
|
6656
|
+
userSchema: () => hi,
|
|
6656
6657
|
uuid: () => uuid,
|
|
6657
|
-
verifyCodeSchema: () =>
|
|
6658
|
+
verifyCodeSchema: () => vi,
|
|
6658
6659
|
warn: () => ur,
|
|
6659
6660
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6660
|
-
zAcceptInvitationBody: () =>
|
|
6661
|
-
zAccessibleAgentRow: () =>
|
|
6662
|
-
zAgentCreateAllowance: () =>
|
|
6663
|
-
zAgentCreateAllowanceReason: () =>
|
|
6661
|
+
zAcceptInvitationBody: () => So,
|
|
6662
|
+
zAccessibleAgentRow: () => To,
|
|
6663
|
+
zAgentCreateAllowance: () => ka,
|
|
6664
|
+
zAgentCreateAllowanceReason: () => Oa,
|
|
6664
6665
|
zAgentGender: () => H,
|
|
6665
|
-
zAgentRow: () =>
|
|
6666
|
-
zApiError: () =>
|
|
6666
|
+
zAgentRow: () => Li,
|
|
6667
|
+
zApiError: () => Hi,
|
|
6667
6668
|
zApiOk: () => zApiOk,
|
|
6668
6669
|
zApiResponse: () => zApiResponse,
|
|
6669
|
-
zAppleAuthBody: () =>
|
|
6670
|
-
zAuthSessionData: () =>
|
|
6671
|
-
zAuthSessionResponse: () =>
|
|
6672
|
-
zAutomationPrimaryChannel: () =>
|
|
6673
|
-
zBackfillBillingData: () =>
|
|
6674
|
-
zBackfillCustomersData: () =>
|
|
6675
|
-
zBillingDetails: () =>
|
|
6676
|
-
zBillingInvoice: () =>
|
|
6677
|
-
zBillingPaymentMethod: () =>
|
|
6678
|
-
zBillingPlanKey: () =>
|
|
6679
|
-
zBillingStatus: () =>
|
|
6670
|
+
zAppleAuthBody: () => pa,
|
|
6671
|
+
zAuthSessionData: () => ma,
|
|
6672
|
+
zAuthSessionResponse: () => ha,
|
|
6673
|
+
zAutomationPrimaryChannel: () => Pi,
|
|
6674
|
+
zBackfillBillingData: () => Ma,
|
|
6675
|
+
zBackfillCustomersData: () => ja,
|
|
6676
|
+
zBillingDetails: () => Da,
|
|
6677
|
+
zBillingInvoice: () => Ta,
|
|
6678
|
+
zBillingPaymentMethod: () => wa,
|
|
6679
|
+
zBillingPlanKey: () => Sa,
|
|
6680
|
+
zBillingStatus: () => Ca,
|
|
6680
6681
|
zBillingTier: () => G,
|
|
6681
|
-
zBotGenerateImageBody: () =>
|
|
6682
|
-
zBotGenerateImageResponse: () =>
|
|
6683
|
-
zCancelConversationTurnBody: () =>
|
|
6684
|
-
zCancelConversationTurnResponse: () =>
|
|
6685
|
-
zCantRebuildReason: () =>
|
|
6686
|
-
zCantWakeReason: () =>
|
|
6687
|
-
zChatAttachment: () =>
|
|
6688
|
-
zChatAttachmentInput: () =>
|
|
6689
|
-
zChatAttachmentPlacement: () =>
|
|
6690
|
-
zChatCardSpec: () =>
|
|
6691
|
-
zChatErrorData: () =>
|
|
6692
|
-
zChatEvent: () =>
|
|
6682
|
+
zBotGenerateImageBody: () => da,
|
|
6683
|
+
zBotGenerateImageResponse: () => fa,
|
|
6684
|
+
zCancelConversationTurnBody: () => eo,
|
|
6685
|
+
zCancelConversationTurnResponse: () => to,
|
|
6686
|
+
zCantRebuildReason: () => wo,
|
|
6687
|
+
zCantWakeReason: () => Co,
|
|
6688
|
+
zChatAttachment: () => Yi,
|
|
6689
|
+
zChatAttachmentInput: () => ra,
|
|
6690
|
+
zChatAttachmentPlacement: () => Ji,
|
|
6691
|
+
zChatCardSpec: () => La,
|
|
6692
|
+
zChatErrorData: () => Pa,
|
|
6693
|
+
zChatEvent: () => Fa,
|
|
6693
6694
|
zChatIssue: () => R,
|
|
6694
|
-
zChatMessage: () =>
|
|
6695
|
-
zChatMessageAttentionItem: () =>
|
|
6696
|
-
zChatMessageAttentionRef: () =>
|
|
6697
|
-
zChatMessageAttentionUpdate: () =>
|
|
6698
|
-
zChatMessageMetadata: () =>
|
|
6699
|
-
zChatStatusData: () =>
|
|
6700
|
-
zChatToolActivityData: () =>
|
|
6701
|
-
zChatToolActivityVisual: () =>
|
|
6702
|
-
zChatVisualSpec: () =>
|
|
6703
|
-
zCompleteCheckoutData: () =>
|
|
6704
|
-
zConversationLastMessage: () =>
|
|
6705
|
-
zConversationParticipant: () =>
|
|
6706
|
-
zConversationSummary: () =>
|
|
6707
|
-
zConversationTarget: () =>
|
|
6708
|
-
zConversationUpdatedEvent: () =>
|
|
6709
|
-
zCreateAgentBody: () =>
|
|
6710
|
-
zCreateConversationBody: () =>
|
|
6711
|
-
zCreateConversationSessionBody: () =>
|
|
6712
|
-
zCreateOrgBody: () =>
|
|
6695
|
+
zChatMessage: () => na,
|
|
6696
|
+
zChatMessageAttentionItem: () => $i,
|
|
6697
|
+
zChatMessageAttentionRef: () => Xi,
|
|
6698
|
+
zChatMessageAttentionUpdate: () => ea,
|
|
6699
|
+
zChatMessageMetadata: () => ta,
|
|
6700
|
+
zChatStatusData: () => Na,
|
|
6701
|
+
zChatToolActivityData: () => Gi,
|
|
6702
|
+
zChatToolActivityVisual: () => Wi,
|
|
6703
|
+
zChatVisualSpec: () => Ya,
|
|
6704
|
+
zCompleteCheckoutData: () => Aa,
|
|
6705
|
+
zConversationLastMessage: () => Za,
|
|
6706
|
+
zConversationParticipant: () => Xa,
|
|
6707
|
+
zConversationSummary: () => Qa,
|
|
6708
|
+
zConversationTarget: () => aa,
|
|
6709
|
+
zConversationUpdatedEvent: () => ro,
|
|
6710
|
+
zCreateAgentBody: () => Fi,
|
|
6711
|
+
zCreateConversationBody: () => oa,
|
|
6712
|
+
zCreateConversationSessionBody: () => sa,
|
|
6713
|
+
zCreateOrgBody: () => Mo,
|
|
6713
6714
|
zDesiredStatus: () => V,
|
|
6714
|
-
zErrorCode: () =>
|
|
6715
|
+
zErrorCode: () => Bi,
|
|
6715
6716
|
zErrorResponses: () => zErrorResponses,
|
|
6716
|
-
zFleetAgent: () =>
|
|
6717
|
-
zFleetSummary: () =>
|
|
6718
|
-
zFleetSyncResponse: () =>
|
|
6719
|
-
zHandoffConsumeBody: () =>
|
|
6720
|
-
zHandoffConsumeData: () =>
|
|
6721
|
-
zHandoffConsumeResponse: () =>
|
|
6722
|
-
zHandoffMintBody: () =>
|
|
6723
|
-
zHandoffMintData: () =>
|
|
6724
|
-
zHandoffMintResponse: () =>
|
|
6717
|
+
zFleetAgent: () => co,
|
|
6718
|
+
zFleetSummary: () => lo,
|
|
6719
|
+
zFleetSyncResponse: () => uo,
|
|
6720
|
+
zHandoffConsumeBody: () => ya,
|
|
6721
|
+
zHandoffConsumeData: () => ba,
|
|
6722
|
+
zHandoffConsumeResponse: () => xa,
|
|
6723
|
+
zHandoffMintBody: () => ga,
|
|
6724
|
+
zHandoffMintData: () => _a,
|
|
6725
|
+
zHandoffMintResponse: () => va,
|
|
6725
6726
|
zHeartbeatLocalTime: () => T,
|
|
6726
6727
|
zHeartbeatMoment: () => ir,
|
|
6727
|
-
zHomeStats: () =>
|
|
6728
|
+
zHomeStats: () => Po,
|
|
6728
6729
|
zIanaTimezone: () => Y,
|
|
6729
|
-
zImageAspectRatio: () =>
|
|
6730
|
-
zImageResolution: () =>
|
|
6731
|
-
zInvitationPreview: () =>
|
|
6732
|
-
zInvitationRow: () =>
|
|
6733
|
-
zInviteBody: () =>
|
|
6730
|
+
zImageAspectRatio: () => la,
|
|
6731
|
+
zImageResolution: () => ua,
|
|
6732
|
+
zInvitationPreview: () => yo,
|
|
6733
|
+
zInvitationRow: () => vo,
|
|
6734
|
+
zInviteBody: () => bo,
|
|
6734
6735
|
zLifecycle: () => B,
|
|
6735
6736
|
zLifecycleVerb: () => Qr,
|
|
6736
6737
|
zLiveStatus: () => Wr,
|
|
6737
|
-
zMarkReadBody: () =>
|
|
6738
|
-
zMediaContext: () =>
|
|
6738
|
+
zMarkReadBody: () => $a,
|
|
6739
|
+
zMediaContext: () => po,
|
|
6739
6740
|
zMediaObject: () => $,
|
|
6740
|
-
zMediaType: () =>
|
|
6741
|
-
zMemberRow: () =>
|
|
6742
|
-
zMessageSearchResult: () =>
|
|
6743
|
-
zOrgRow: () =>
|
|
6744
|
-
zOrgSummary: () =>
|
|
6741
|
+
zMediaType: () => mo,
|
|
6742
|
+
zMemberRow: () => _o,
|
|
6743
|
+
zMessageSearchResult: () => no,
|
|
6744
|
+
zOrgRow: () => jo,
|
|
6745
|
+
zOrgSummary: () => Io,
|
|
6745
6746
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6746
|
-
zPlanTone: () =>
|
|
6747
|
-
zProviderErrorKind: () =>
|
|
6748
|
-
zPublicServiceOverview: () =>
|
|
6749
|
-
zReportMessageBody: () =>
|
|
6747
|
+
zPlanTone: () => Fo,
|
|
6748
|
+
zProviderErrorKind: () => Vi,
|
|
6749
|
+
zPublicServiceOverview: () => Ho,
|
|
6750
|
+
zReportMessageBody: () => ca,
|
|
6750
6751
|
zRuntimeOperation: () => Ur,
|
|
6751
6752
|
zRuntimeOperationKind: () => Vr,
|
|
6752
6753
|
zRuntimeOperationStatus: () => Hr,
|
|
6753
|
-
zSendMessageBody: () =>
|
|
6754
|
-
zSuggestedPrompt: () =>
|
|
6755
|
-
zUpdateAgentBody: () =>
|
|
6756
|
-
zUpdateOrgBody: () =>
|
|
6757
|
-
zUpdateRoleBody: () =>
|
|
6758
|
-
zUpdateUserBody: () =>
|
|
6759
|
-
zUploadMediaBody: () =>
|
|
6754
|
+
zSendMessageBody: () => ia,
|
|
6755
|
+
zSuggestedPrompt: () => Ri,
|
|
6756
|
+
zUpdateAgentBody: () => Ii,
|
|
6757
|
+
zUpdateOrgBody: () => No,
|
|
6758
|
+
zUpdateRoleBody: () => xo,
|
|
6759
|
+
zUpdateUserBody: () => Uo,
|
|
6760
|
+
zUploadMediaBody: () => ho,
|
|
6760
6761
|
zVoiceKey: () => W,
|
|
6761
|
-
zVoiceProviderName: () =>
|
|
6762
|
-
zVoiceProviderSession: () =>
|
|
6763
|
-
zVoiceSessionMint: () =>
|
|
6764
|
-
zVoiceSessionMintBody: () =>
|
|
6765
|
-
}),
|
|
6762
|
+
zVoiceProviderName: () => si,
|
|
6763
|
+
zVoiceProviderSession: () => oi,
|
|
6764
|
+
zVoiceSessionMint: () => ci,
|
|
6765
|
+
zVoiceSessionMintBody: () => ai
|
|
6766
|
+
}), Go = "1.0.0";
|
|
6766
6767
|
function buildContract(e = {}) {
|
|
6767
6768
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6768
6769
|
let r = contractNameFor(e);
|
|
6769
6770
|
r && (n[r] = toSchema(t));
|
|
6770
6771
|
};
|
|
6771
|
-
for (let [e, t] of Object.entries(
|
|
6772
|
+
for (let [e, t] of Object.entries(Wo)) {
|
|
6772
6773
|
if (t instanceof S) {
|
|
6773
6774
|
addSchema(e, t);
|
|
6774
6775
|
continue;
|
|
@@ -6776,7 +6777,7 @@ function buildContract(e = {}) {
|
|
|
6776
6777
|
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof S && addSchema(e, n);
|
|
6777
6778
|
}
|
|
6778
6779
|
return {
|
|
6779
|
-
version:
|
|
6780
|
+
version: Go,
|
|
6780
6781
|
generatedAt: t.toISOString(),
|
|
6781
6782
|
schemas: n
|
|
6782
6783
|
};
|
|
@@ -6796,6 +6797,6 @@ function sortedReplacer(e, t) {
|
|
|
6796
6797
|
return t;
|
|
6797
6798
|
}
|
|
6798
6799
|
//#endregion
|
|
6799
|
-
export {
|
|
6800
|
+
export { Go as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6800
6801
|
|
|
6801
6802
|
//# sourceMappingURL=contract.js.map
|