@pagelines/sdk 1.0.742 → 1.0.744
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
|
@@ -4013,14 +4013,14 @@ var vr = object({
|
|
|
4013
4013
|
Ar,
|
|
4014
4014
|
jr,
|
|
4015
4015
|
Mr
|
|
4016
|
-
]),
|
|
4016
|
+
]), j = _enum([
|
|
4017
4017
|
"xxs",
|
|
4018
4018
|
"xs",
|
|
4019
4019
|
"sm",
|
|
4020
4020
|
"md",
|
|
4021
4021
|
"lg",
|
|
4022
4022
|
"xl"
|
|
4023
|
-
]),
|
|
4023
|
+
]), Pr = _enum([
|
|
4024
4024
|
"primary",
|
|
4025
4025
|
"default",
|
|
4026
4026
|
"overlay",
|
|
@@ -4028,18 +4028,18 @@ var vr = object({
|
|
|
4028
4028
|
"green",
|
|
4029
4029
|
"indigo",
|
|
4030
4030
|
"orange"
|
|
4031
|
-
]),
|
|
4031
|
+
]), M = _enum([
|
|
4032
4032
|
"ghost",
|
|
4033
4033
|
"link",
|
|
4034
4034
|
"outline",
|
|
4035
4035
|
"solid"
|
|
4036
|
-
]),
|
|
4036
|
+
]), N = object({
|
|
4037
4037
|
key: string().optional(),
|
|
4038
4038
|
label: string().optional(),
|
|
4039
4039
|
href: string().optional(),
|
|
4040
|
-
size:
|
|
4041
|
-
theme:
|
|
4042
|
-
design:
|
|
4040
|
+
size: j.optional(),
|
|
4041
|
+
theme: Pr.optional(),
|
|
4042
|
+
design: M.optional(),
|
|
4043
4043
|
icon: union([string(), A]).optional(),
|
|
4044
4044
|
iconAfter: union([string(), A]).optional(),
|
|
4045
4045
|
rounding: _enum([
|
|
@@ -4058,12 +4058,12 @@ var vr = object({
|
|
|
4058
4058
|
"submit",
|
|
4059
4059
|
"reset"
|
|
4060
4060
|
]).optional()
|
|
4061
|
+
}), Fr = object({
|
|
4062
|
+
buttons: array(N).optional(),
|
|
4063
|
+
size: j.optional(),
|
|
4064
|
+
theme: Pr.optional(),
|
|
4065
|
+
design: M.optional()
|
|
4061
4066
|
}), Ir = object({
|
|
4062
|
-
buttons: array(M).optional(),
|
|
4063
|
-
size: Pr.optional(),
|
|
4064
|
-
theme: Fr.optional(),
|
|
4065
|
-
design: j.optional()
|
|
4066
|
-
}), Lr = object({
|
|
4067
4067
|
key: string().optional(),
|
|
4068
4068
|
id: string().optional(),
|
|
4069
4069
|
label: string().optional(),
|
|
@@ -4090,14 +4090,14 @@ var vr = object({
|
|
|
4090
4090
|
priority: number().optional(),
|
|
4091
4091
|
testId: string().optional(),
|
|
4092
4092
|
items: array(any()).optional(),
|
|
4093
|
-
badges: array(
|
|
4094
|
-
meta: array(
|
|
4093
|
+
badges: array(N).optional(),
|
|
4094
|
+
meta: array(N).optional(),
|
|
4095
4095
|
menuItems: array(any()).optional()
|
|
4096
|
-
}),
|
|
4096
|
+
}), Lr = object({
|
|
4097
4097
|
title: string().optional(),
|
|
4098
4098
|
description: string().optional(),
|
|
4099
|
-
items: array(
|
|
4100
|
-
}),
|
|
4099
|
+
items: array(Ir).optional()
|
|
4100
|
+
}), Rr = {
|
|
4101
4101
|
colors: {
|
|
4102
4102
|
primary: "#3b82f6",
|
|
4103
4103
|
secondary: "#93c5fd",
|
|
@@ -4116,7 +4116,7 @@ var vr = object({
|
|
|
4116
4116
|
compact: 4,
|
|
4117
4117
|
comfortable: 6
|
|
4118
4118
|
}
|
|
4119
|
-
},
|
|
4119
|
+
}, zr = [
|
|
4120
4120
|
["#6366f1", "#8b5cf6"],
|
|
4121
4121
|
["#3b82f6", "#06b6d4"],
|
|
4122
4122
|
["#10b981", "#34d399"],
|
|
@@ -4132,7 +4132,7 @@ function hashName(e) {
|
|
|
4132
4132
|
return Math.abs(t);
|
|
4133
4133
|
}
|
|
4134
4134
|
function getGradientPair(e) {
|
|
4135
|
-
return
|
|
4135
|
+
return zr[(e ? hashName(e) : 0) % zr.length];
|
|
4136
4136
|
}
|
|
4137
4137
|
function getDefaultAvatarUrl(e) {
|
|
4138
4138
|
let t = e ? e[0].toUpperCase() : "?", [n, r] = getGradientPair(e), i = [
|
|
@@ -4162,7 +4162,7 @@ function getWorkspaceMarkUrl(e) {
|
|
|
4162
4162
|
}
|
|
4163
4163
|
//#endregion
|
|
4164
4164
|
//#region ../core/dist/chatIssue.js
|
|
4165
|
-
var
|
|
4165
|
+
var Br = _enum(["account", "error"]), P = [
|
|
4166
4166
|
"billing_no_plan",
|
|
4167
4167
|
"billing_seat_limit",
|
|
4168
4168
|
"billing_past_due",
|
|
@@ -4178,14 +4178,14 @@ var Vr = _enum(["account", "error"]), N = [
|
|
|
4178
4178
|
"empty_stream",
|
|
4179
4179
|
"tool_protocol",
|
|
4180
4180
|
"rate_limit"
|
|
4181
|
-
],
|
|
4182
|
-
bucket:
|
|
4183
|
-
code: _enum(
|
|
4181
|
+
], F = object({
|
|
4182
|
+
bucket: Br,
|
|
4183
|
+
code: _enum(P),
|
|
4184
4184
|
title: string(),
|
|
4185
4185
|
help: string().optional(),
|
|
4186
4186
|
actionLabel: string(),
|
|
4187
4187
|
actionUrl: string()
|
|
4188
|
-
}),
|
|
4188
|
+
}), I = {
|
|
4189
4189
|
billing_no_plan: {
|
|
4190
4190
|
bucket: "account",
|
|
4191
4191
|
title: "Payment method needed",
|
|
@@ -4293,10 +4293,10 @@ var Vr = _enum(["account", "error"]), N = [
|
|
|
4293
4293
|
}
|
|
4294
4294
|
};
|
|
4295
4295
|
function chatIssueCatalogLines() {
|
|
4296
|
-
return
|
|
4296
|
+
return P.map((e) => `- ${e}: ${I[e].oneLine}`).join("\n");
|
|
4297
4297
|
}
|
|
4298
4298
|
function buildChatIssue(e) {
|
|
4299
|
-
let t =
|
|
4299
|
+
let t = I[e.code];
|
|
4300
4300
|
return {
|
|
4301
4301
|
bucket: t.bucket,
|
|
4302
4302
|
code: e.code,
|
|
@@ -4307,12 +4307,12 @@ function buildChatIssue(e) {
|
|
|
4307
4307
|
};
|
|
4308
4308
|
}
|
|
4309
4309
|
function renderIssueAsMarkdown(e) {
|
|
4310
|
-
let t =
|
|
4310
|
+
let t = I[e.code];
|
|
4311
4311
|
return e.actionUrl ? `${t.oneLine} [${t.actionLabel}](${e.actionUrl})` : t.oneLine;
|
|
4312
4312
|
}
|
|
4313
4313
|
//#endregion
|
|
4314
4314
|
//#region ../core/dist/wire/agent-state.js
|
|
4315
|
-
var
|
|
4315
|
+
var L = _enum(["active", "stopped"]), R = _enum([
|
|
4316
4316
|
"unknown",
|
|
4317
4317
|
"stopped",
|
|
4318
4318
|
"starting",
|
|
@@ -4321,28 +4321,28 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4321
4321
|
"unreachable",
|
|
4322
4322
|
"stopping",
|
|
4323
4323
|
"error"
|
|
4324
|
-
]),
|
|
4324
|
+
]), Vr = _enum([
|
|
4325
4325
|
"wake",
|
|
4326
4326
|
"sleep",
|
|
4327
4327
|
"restart",
|
|
4328
4328
|
"rebuild",
|
|
4329
4329
|
"config_apply"
|
|
4330
|
-
]),
|
|
4330
|
+
]), Hr = _enum([
|
|
4331
4331
|
"running",
|
|
4332
4332
|
"coalesced",
|
|
4333
4333
|
"failed"
|
|
4334
|
-
]),
|
|
4335
|
-
kind:
|
|
4336
|
-
status:
|
|
4334
|
+
]), z = object({
|
|
4335
|
+
kind: Vr,
|
|
4336
|
+
status: Hr,
|
|
4337
4337
|
startedAt: string().datetime(),
|
|
4338
4338
|
detail: string().optional()
|
|
4339
|
-
}).strict(),
|
|
4340
|
-
lifecycle:
|
|
4339
|
+
}).strict(), Ur = object({
|
|
4340
|
+
lifecycle: R,
|
|
4341
4341
|
changedAt: string().datetime().optional(),
|
|
4342
4342
|
detail: string().optional(),
|
|
4343
|
-
blocker:
|
|
4344
|
-
operation:
|
|
4345
|
-
}).strict(),
|
|
4343
|
+
blocker: F.optional(),
|
|
4344
|
+
operation: z.optional()
|
|
4345
|
+
}).strict(), Wr = Object.freeze({ lifecycle: "unknown" }), Gr = {
|
|
4346
4346
|
running: "green",
|
|
4347
4347
|
starting: "amber",
|
|
4348
4348
|
stopping: "amber",
|
|
@@ -4351,7 +4351,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4351
4351
|
error: "red",
|
|
4352
4352
|
stopped: "grey",
|
|
4353
4353
|
unknown: "grey"
|
|
4354
|
-
},
|
|
4354
|
+
}, Kr = {
|
|
4355
4355
|
running: "Online",
|
|
4356
4356
|
starting: "Waking up",
|
|
4357
4357
|
stopping: "Stopping",
|
|
@@ -4360,7 +4360,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4360
4360
|
error: "Error",
|
|
4361
4361
|
stopped: "Asleep",
|
|
4362
4362
|
unknown: "Checking"
|
|
4363
|
-
},
|
|
4363
|
+
}, qr = {
|
|
4364
4364
|
wake: "Waking up",
|
|
4365
4365
|
sleep: "Stopping",
|
|
4366
4366
|
restart: "Restarting",
|
|
@@ -4368,7 +4368,7 @@ var I = _enum(["active", "stopped"]), L = _enum([
|
|
|
4368
4368
|
config_apply: "Applying config"
|
|
4369
4369
|
};
|
|
4370
4370
|
function toAgentState(e, t) {
|
|
4371
|
-
let n = e.operation, r =
|
|
4371
|
+
let n = e.operation, r = Kr[e.lifecycle] ?? "Unknown", i = Gr[e.lifecycle] ?? "grey", a = n ? qr[n.kind] ?? "Working" : void 0, o = a ? n?.status === "failed" ? `${a} failed` : a : r, s = n ? n.status === "failed" ? "red" : "amber" : i, c = n?.detail ? `${t} — ${n.detail}` : a ? `${t} · ${o}` : e.detail ? `${t} — ${e.detail}` : `${t} · ${r}`;
|
|
4372
4372
|
return {
|
|
4373
4373
|
...e,
|
|
4374
4374
|
color: s,
|
|
@@ -4376,7 +4376,7 @@ function toAgentState(e, t) {
|
|
|
4376
4376
|
tooltip: c
|
|
4377
4377
|
};
|
|
4378
4378
|
}
|
|
4379
|
-
var
|
|
4379
|
+
var Jr = _enum([
|
|
4380
4380
|
"wake",
|
|
4381
4381
|
"sleep",
|
|
4382
4382
|
"restart",
|
|
@@ -4398,7 +4398,7 @@ function isAgentReady(e) {
|
|
|
4398
4398
|
default: return !1;
|
|
4399
4399
|
}
|
|
4400
4400
|
}
|
|
4401
|
-
var
|
|
4401
|
+
var Yr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "object" && e.platform && e.handle) : e, array(object({
|
|
4402
4402
|
platform: _enum([
|
|
4403
4403
|
"linkedin",
|
|
4404
4404
|
"x",
|
|
@@ -4413,7 +4413,11 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4413
4413
|
"website"
|
|
4414
4414
|
]),
|
|
4415
4415
|
handle: string()
|
|
4416
|
-
}))),
|
|
4416
|
+
}))), Xr = _enum([
|
|
4417
|
+
"essential",
|
|
4418
|
+
"professional",
|
|
4419
|
+
"business"
|
|
4420
|
+
]), B = object({
|
|
4417
4421
|
agentId: string().optional(),
|
|
4418
4422
|
handle: string().optional(),
|
|
4419
4423
|
ownerId: string().optional(),
|
|
@@ -4429,13 +4433,14 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4429
4433
|
cover: A.optional(),
|
|
4430
4434
|
email: string().nullable().optional(),
|
|
4431
4435
|
website: string().url().nullable().optional(),
|
|
4432
|
-
accounts:
|
|
4436
|
+
accounts: Yr.nullable().optional(),
|
|
4433
4437
|
model: string().nullable().optional(),
|
|
4438
|
+
billingTier: Xr.optional(),
|
|
4434
4439
|
lastActiveAt: string().nullable().optional(),
|
|
4435
4440
|
lastMessageAt: string().nullable().optional(),
|
|
4436
4441
|
runtime: string().default("hermes").optional(),
|
|
4437
4442
|
timezone: string().optional(),
|
|
4438
|
-
desiredStatus:
|
|
4443
|
+
desiredStatus: L.nullable().optional(),
|
|
4439
4444
|
automationPrimaryChannel: string().optional(),
|
|
4440
4445
|
heartbeatEnabled: boolean().optional(),
|
|
4441
4446
|
onboardedAt: string().nullable().optional(),
|
|
@@ -4460,20 +4465,20 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4460
4465
|
status: string().optional(),
|
|
4461
4466
|
createdAt: string().optional(),
|
|
4462
4467
|
updatedAt: string().optional()
|
|
4463
|
-
}),
|
|
4468
|
+
}), V = B.extend({
|
|
4464
4469
|
isPrimary: boolean().optional(),
|
|
4465
|
-
lifecycle:
|
|
4470
|
+
lifecycle: R.optional(),
|
|
4466
4471
|
changedAt: string().datetime().optional(),
|
|
4467
4472
|
detail: string().optional(),
|
|
4468
|
-
blocker:
|
|
4469
|
-
operation:
|
|
4470
|
-
}), Zr = Object.keys(
|
|
4473
|
+
blocker: F.optional(),
|
|
4474
|
+
operation: z.optional()
|
|
4475
|
+
}), Zr = Object.keys(V.shape), H = class Agent extends SettingsObject {
|
|
4471
4476
|
constructor(e) {
|
|
4472
4477
|
let t = "config" in e ? {
|
|
4473
4478
|
...e.config instanceof Agent ? e.config.toConfig() : e.config,
|
|
4474
4479
|
context: e.context
|
|
4475
4480
|
} : e;
|
|
4476
|
-
super("Agent", t), this.agentId = r(this.settings.agentId), this.handle = r(this.settings.handle), this.ownerId = r(this.settings.ownerId), this.orgId = r(this.settings.orgId), this.name = r(this.settings.name), this.title = r(this.settings.title), this.summary = r(this.settings.summary), this.entityType = r(this.settings.entityType), this.avatarId = r(this.settings.avatarId), this.coverId = r(this.settings.coverId), this.avatar = r(this.settings.avatar), this.cover = r(this.settings.cover), this.email = r(this.settings.email), this.website = r(this.settings.website), this.accounts = r(this.settings.accounts), this.model = r(this.settings.model), this.lastActiveAt = r(this.settings.lastActiveAt), this.lastMessageAt = r(this.settings.lastMessageAt), this.timezone = r(this.settings.timezone), this.desiredStatus = r(this.settings.desiredStatus), this.automationPrimaryChannel = r(this.settings.automationPrimaryChannel), this.heartbeatEnabled = r(this.settings.heartbeatEnabled), this.onboardedAt = r(this.settings.onboardedAt), this.org = r(this.settings.org), this.owner = r(this.settings.owner), this.visibility = r(this.settings.visibility), this.status = r(this.settings.status), this.createdAt = r(this.settings.createdAt), this.updatedAt = r(this.settings.updatedAt), this.isPrimary = r(this.settings.isPrimary), this.lifecycle = r(this.settings.lifecycle), this.changedAt = r(this.settings.changedAt), this.detail = r(this.settings.detail), this.blocker = r(this.settings.blocker), this.operation = r(this.settings.operation), this.state = n(() => toAgentState({
|
|
4481
|
+
super("Agent", t), this.agentId = r(this.settings.agentId), this.handle = r(this.settings.handle), this.ownerId = r(this.settings.ownerId), this.orgId = r(this.settings.orgId), this.name = r(this.settings.name), this.title = r(this.settings.title), this.summary = r(this.settings.summary), this.entityType = r(this.settings.entityType), this.avatarId = r(this.settings.avatarId), this.coverId = r(this.settings.coverId), this.avatar = r(this.settings.avatar), this.cover = r(this.settings.cover), this.email = r(this.settings.email), this.website = r(this.settings.website), this.accounts = r(this.settings.accounts), this.model = r(this.settings.model), this.billingTier = r(this.settings.billingTier), this.lastActiveAt = r(this.settings.lastActiveAt), this.lastMessageAt = r(this.settings.lastMessageAt), this.timezone = r(this.settings.timezone), this.desiredStatus = r(this.settings.desiredStatus), this.automationPrimaryChannel = r(this.settings.automationPrimaryChannel), this.heartbeatEnabled = r(this.settings.heartbeatEnabled), this.onboardedAt = r(this.settings.onboardedAt), this.org = r(this.settings.org), this.owner = r(this.settings.owner), this.visibility = r(this.settings.visibility), this.status = r(this.settings.status), this.createdAt = r(this.settings.createdAt), this.updatedAt = r(this.settings.updatedAt), this.isPrimary = r(this.settings.isPrimary), this.lifecycle = r(this.settings.lifecycle), this.changedAt = r(this.settings.changedAt), this.detail = r(this.settings.detail), this.blocker = r(this.settings.blocker), this.operation = r(this.settings.operation), this.state = n(() => toAgentState({
|
|
4477
4482
|
lifecycle: this.lifecycle.value ?? "unknown",
|
|
4478
4483
|
detail: this.detail.value,
|
|
4479
4484
|
changedAt: this.changedAt.value,
|
|
@@ -4504,10 +4509,10 @@ var Xr = preprocess((e) => Array.isArray(e) ? e.filter((e) => e && typeof e == "
|
|
|
4504
4509
|
}
|
|
4505
4510
|
};
|
|
4506
4511
|
function createAgent(e) {
|
|
4507
|
-
return new
|
|
4512
|
+
return new H(e);
|
|
4508
4513
|
}
|
|
4509
4514
|
function createAgents(e) {
|
|
4510
|
-
return e.configs.map((t) => new
|
|
4515
|
+
return e.configs.map((t) => new H({
|
|
4511
4516
|
config: t,
|
|
4512
4517
|
context: e.context
|
|
4513
4518
|
}));
|
|
@@ -4569,7 +4574,7 @@ var Qr = object({
|
|
|
4569
4574
|
identityToken: string().min(1),
|
|
4570
4575
|
fullName: string().optional(),
|
|
4571
4576
|
timezone: string().max(64).optional()
|
|
4572
|
-
}),
|
|
4577
|
+
}), U = object({
|
|
4573
4578
|
orgId: string().optional(),
|
|
4574
4579
|
handle: string().optional(),
|
|
4575
4580
|
name: string().optional(),
|
|
@@ -4586,8 +4591,6 @@ var Qr = object({
|
|
|
4586
4591
|
stripeCustomerIdTest: string().nullable().optional(),
|
|
4587
4592
|
stripeCustomerIdLive: string().nullable().optional(),
|
|
4588
4593
|
maxUsers: number().optional(),
|
|
4589
|
-
isOverageEnabled: boolean().optional(),
|
|
4590
|
-
monthlyBudgetCents: number().nullable().optional(),
|
|
4591
4594
|
timezone: string().nullable().optional(),
|
|
4592
4595
|
apiKey: string().nullable().optional(),
|
|
4593
4596
|
syncedPlan: string().nullable().optional(),
|
|
@@ -4599,7 +4602,7 @@ var Qr = object({
|
|
|
4599
4602
|
status: string().optional(),
|
|
4600
4603
|
createdAt: string().optional(),
|
|
4601
4604
|
updatedAt: string().optional()
|
|
4602
|
-
}), li =
|
|
4605
|
+
}), li = U.extend({
|
|
4603
4606
|
defaultAgent: object({
|
|
4604
4607
|
agentId: string(),
|
|
4605
4608
|
handle: string(),
|
|
@@ -4635,7 +4638,7 @@ var Qr = object({
|
|
|
4635
4638
|
onboarding: ui.optional()
|
|
4636
4639
|
}), fi = Qr.extend({
|
|
4637
4640
|
orgs: array(di).optional(),
|
|
4638
|
-
agents: array(
|
|
4641
|
+
agents: array(B).optional()
|
|
4639
4642
|
});
|
|
4640
4643
|
//#endregion
|
|
4641
4644
|
//#region ../core/dist/state.js
|
|
@@ -4658,7 +4661,7 @@ function derive(e) {
|
|
|
4658
4661
|
}
|
|
4659
4662
|
//#endregion
|
|
4660
4663
|
//#region ../core/dist/bot-ua.js
|
|
4661
|
-
var pi = "pagelines-agent/1.0",
|
|
4664
|
+
var pi = "pagelines-agent/1.0", W = [
|
|
4662
4665
|
"[SILENT]",
|
|
4663
4666
|
"SILENT",
|
|
4664
4667
|
"NO_REPLY",
|
|
@@ -4672,7 +4675,7 @@ var pi = "pagelines-agent/1.0", U = [
|
|
|
4672
4675
|
"[NO_OP]",
|
|
4673
4676
|
"[NO OP]",
|
|
4674
4677
|
"HEARTBEAT_OK"
|
|
4675
|
-
], mi = new Set(
|
|
4678
|
+
], mi = new Set(W);
|
|
4676
4679
|
function normalizeAssistantControl(e) {
|
|
4677
4680
|
return e.trim().toUpperCase().replace(/\s+/g, " ");
|
|
4678
4681
|
}
|
|
@@ -4682,7 +4685,7 @@ function isAssistantSilenceControl(e) {
|
|
|
4682
4685
|
}
|
|
4683
4686
|
function isAssistantSilenceControlPrefix(e) {
|
|
4684
4687
|
let t = normalizeAssistantControl(e);
|
|
4685
|
-
return t.length <= 64 &&
|
|
4688
|
+
return t.length <= 64 && W.some((e) => e.startsWith(t));
|
|
4686
4689
|
}
|
|
4687
4690
|
//#endregion
|
|
4688
4691
|
//#region ../core/dist/timingBudgets.js
|
|
@@ -4713,7 +4716,7 @@ function botApiUrl(e) {
|
|
|
4713
4716
|
}
|
|
4714
4717
|
//#endregion
|
|
4715
4718
|
//#region ../core/dist/errorCopy.js
|
|
4716
|
-
var
|
|
4719
|
+
var G = {
|
|
4717
4720
|
AUTH_ACCOUNT_NOT_FOUND: "Account not found. Ask your workspace admin for an invite.",
|
|
4718
4721
|
AUTH_INVALID: "Your session has expired. Sign in again to continue.",
|
|
4719
4722
|
AUTH_LOCKED_OUT: "Too many failed attempts. Request a new code to try again.",
|
|
@@ -4752,14 +4755,14 @@ var W = {
|
|
|
4752
4755
|
fatal: "Something's broken and won't resolve on retry. Contact support."
|
|
4753
4756
|
};
|
|
4754
4757
|
function errorCopy(e, t) {
|
|
4755
|
-
return e && e in
|
|
4758
|
+
return e && e in G ? G[e] : t;
|
|
4756
4759
|
}
|
|
4757
4760
|
function errorFromApiResponse(e, t) {
|
|
4758
|
-
return e.code && e.code in
|
|
4761
|
+
return e.code && e.code in G ? G[e.code] : e.providerErrorKind && vi[e.providerErrorKind] ? vi[e.providerErrorKind] : e.error || t;
|
|
4759
4762
|
}
|
|
4760
4763
|
//#endregion
|
|
4761
4764
|
//#region ../core/dist/retryPolicy.js
|
|
4762
|
-
var
|
|
4765
|
+
var K = {
|
|
4763
4766
|
shouldRetry: !1,
|
|
4764
4767
|
maxAttempts: 1,
|
|
4765
4768
|
strategy: "none",
|
|
@@ -4777,7 +4780,7 @@ function retryPolicyFor(e) {
|
|
|
4777
4780
|
"FORBIDDEN",
|
|
4778
4781
|
"AGENT_NOT_FOUND"
|
|
4779
4782
|
]);
|
|
4780
|
-
if (e.code && t.has(e.code)) return
|
|
4783
|
+
if (e.code && t.has(e.code)) return K;
|
|
4781
4784
|
switch (e.providerErrorKind) {
|
|
4782
4785
|
case "busy": return {
|
|
4783
4786
|
shouldRetry: !0,
|
|
@@ -4812,13 +4815,13 @@ function retryPolicyFor(e) {
|
|
|
4812
4815
|
};
|
|
4813
4816
|
case "notFound":
|
|
4814
4817
|
case "invalidConfig":
|
|
4815
|
-
case "fatal": return
|
|
4816
|
-
default: return
|
|
4818
|
+
case "fatal": return K;
|
|
4819
|
+
default: return K;
|
|
4817
4820
|
}
|
|
4818
4821
|
}
|
|
4819
4822
|
//#endregion
|
|
4820
4823
|
//#region ../core/dist/wire/timezone.js
|
|
4821
|
-
var
|
|
4824
|
+
var q = string().min(1).max(64).refine((e) => {
|
|
4822
4825
|
try {
|
|
4823
4826
|
return new Intl.DateTimeFormat("en-US", { timeZone: e }).format(/* @__PURE__ */ new Date(0)), !0;
|
|
4824
4827
|
} catch {
|
|
@@ -4831,7 +4834,7 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4831
4834
|
title: string().max(120).nullable().optional(),
|
|
4832
4835
|
summary: string().max(500).nullable().optional(),
|
|
4833
4836
|
handle: string().min(2).max(50).optional(),
|
|
4834
|
-
timezone:
|
|
4837
|
+
timezone: q.optional(),
|
|
4835
4838
|
runtime: _enum(["hermes"]).optional(),
|
|
4836
4839
|
visibility: _enum([
|
|
4837
4840
|
"private",
|
|
@@ -4848,8 +4851,9 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4848
4851
|
website: string().url().nullable().optional(),
|
|
4849
4852
|
avatarMediaId: string().nullable().optional(),
|
|
4850
4853
|
coverMediaId: string().nullable().optional(),
|
|
4851
|
-
timezone:
|
|
4854
|
+
timezone: q.optional(),
|
|
4852
4855
|
model: string().nullable().optional(),
|
|
4856
|
+
billingTier: Xr.optional(),
|
|
4853
4857
|
visibility: _enum([
|
|
4854
4858
|
"private",
|
|
4855
4859
|
"org",
|
|
@@ -4857,11 +4861,11 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4857
4861
|
]).optional(),
|
|
4858
4862
|
automationPrimaryChannel: yi.optional(),
|
|
4859
4863
|
heartbeatEnabled: boolean().optional()
|
|
4860
|
-
}).strict(), Si =
|
|
4864
|
+
}).strict(), Si = V, Ci = object({
|
|
4861
4865
|
id: string(),
|
|
4862
4866
|
label: string(),
|
|
4863
4867
|
prompt: string()
|
|
4864
|
-
}), wi = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.WAKE_FAILED".split("."),
|
|
4868
|
+
}), wi = /* @__PURE__ */ "AGENT_BOOT_FAILED.AGENT_CREATE_FAILED.AGENT_DELETED.AGENT_DELETE_FAILED.AGENT_INACTIVE.AGENT_LIMIT.AGENT_NOT_FOUND.AGENT_NOT_DEPLOYED.AGENT_TOKENS_MISSING.AGENT_UNREACHABLE.AGENT_UPDATE_FAILED.AGENT_WAKE_TIMEOUT.ALREADY_MEMBER.ATTACHMENT_TYPE_UNSUPPORTED.AUTH_ACCOUNT_NOT_FOUND.AUTH_BOT_BLOCKED.AUTH_DISPOSABLE_EMAIL.AUTH_EMAIL_IN_USE.AUTH_INVALID.AUTH_INVALID_CODE.AUTH_INVALID_HANDOFF.AUTH_LOCKED_OUT.AUTH_MISSING.AUTH_PROVIDER_FAILED.AUTH_PROVIDER_NOT_CONFIGURED.AUTH_RATE_LIMITED.AUTH_REVOKED.AUTH_TURNSTILE_MISSING.AUTH_UNKNOWN.AUTH_WRONG_TYPE.AUTOMATION_CHANNEL_UNAVAILABLE.BOT_REPLY_FAILED.BILLING_BUDGET_REACHED.BILLING_NO_PLAN.BILLING_PAST_DUE.BILLING_RUNAWAY_CAP.BILLING_SEAT_LIMIT.CHECKOUT_FAILED.CONFIRMATION_REQUIRED.CREATE_FAILED.CREDIT_LIMIT.DELETE_FAILED.DUPLICATE_INVITE.EMAIL_DELIVERY_FAILED.EMAIL_FAILED.EMAIL_MISMATCH.EMAIL_RATE_LIMITED.EMAIL_REASON_NOT_ELIGIBLE.EMPTY_STREAM.EMPTY_PATCH.ENV_VAR_CONFLICT.ENV_VAR_RESERVED.EXTENSION_INACTIVE.FORBIDDEN.HANDLE_TAKEN.IMAGE_GENERATION_FAILED.IMAGE_GENERATION_UNCONFIGURED.INTERNAL_ERROR.INVALID_FILE.INVALID_PRIMARY_CHANNEL.UNKNOWN_AUTOMATION_CHANNEL.INVITE_CONFLICT.INVITE_EXPIRED.INVITE_INVALID.MCP_NOT_AVAILABLE.MCP_NOT_CONFIGURED.MEDIA_NOT_FOUND.MEDIA_SERVER_UNAVAILABLE.MEDIA_UPLOAD_FAILED.MEMORY_NOT_FOUND.MISSING_IDEMPOTENCY_KEY.NETWORK_ERROR.NO_WORKSPACE.NOT_A_MEMBER.NOT_AUTHORIZED.NOT_FOUND.ORG_NOT_FOUND.OVERAGE_CAP.OWNER_LOCK.PAIRING_VERIFY_FAILED.PAYMENT_FAILED.PLAN_LIMIT.PROVISIONER_UNAVAILABLE.RATE_LIMIT.RATE_LIMITED.REBUILD_FAILED.RESTART_FAILED.SEND_FAILED.STOP_FAILED.STREAM_DISCONNECT.STREAM_TIMEOUT.STRIPE_LOAD.TIMEOUT.TOKEN_ERROR.TOOL_PROTOCOL.TRIAL_ENDED.TURN_ACTIVE.UPLOAD_FAILED.VALIDATION_ERROR.WAKE_FAILED".split("."), J = _enum(wi), Ti = _enum([
|
|
4865
4869
|
"notFound",
|
|
4866
4870
|
"busy",
|
|
4867
4871
|
"rateLimited",
|
|
@@ -4875,8 +4879,8 @@ var K = string().min(1).max(64).refine((e) => {
|
|
|
4875
4879
|
}), Ei = object({
|
|
4876
4880
|
ok: literal(!1),
|
|
4877
4881
|
error: string(),
|
|
4878
|
-
code:
|
|
4879
|
-
issue:
|
|
4882
|
+
code: J.optional(),
|
|
4883
|
+
issue: F.optional(),
|
|
4880
4884
|
providerErrorKind: Ti.optional()
|
|
4881
4885
|
}), zApiResponse = (e) => union([zApiOk(e), Ei]);
|
|
4882
4886
|
function apiError(e, t, n) {
|
|
@@ -4908,7 +4912,7 @@ var Di = object({
|
|
|
4908
4912
|
icon: string().min(1).optional(),
|
|
4909
4913
|
domain: string().min(1).optional(),
|
|
4910
4914
|
serviceKey: string().min(1).optional()
|
|
4911
|
-
}).strict(),
|
|
4915
|
+
}).strict(), Y = object({
|
|
4912
4916
|
activityId: string().min(1),
|
|
4913
4917
|
turnId: string().min(1),
|
|
4914
4918
|
status: _enum([
|
|
@@ -4933,10 +4937,10 @@ var Di = object({
|
|
|
4933
4937
|
durationMs: number().int().nonnegative().optional(),
|
|
4934
4938
|
note: string().trim().min(1).optional(),
|
|
4935
4939
|
visual: Di.optional()
|
|
4936
|
-
}).strict(), Oi =
|
|
4940
|
+
}).strict(), Oi = Y.extend({ status: _enum(["completed", "failed"]) }), ki = O, Ai = object({
|
|
4937
4941
|
kind: literal("inline"),
|
|
4938
4942
|
offset: number().int().nonnegative()
|
|
4939
|
-
}),
|
|
4943
|
+
}), X = object({
|
|
4940
4944
|
type: ki,
|
|
4941
4945
|
src: url(),
|
|
4942
4946
|
filename: string().min(1),
|
|
@@ -4969,7 +4973,7 @@ var Pi = ji.extend({
|
|
|
4969
4973
|
}).superRefine(validateAttentionRevisit), Ii = object({
|
|
4970
4974
|
turnId: string().min(1).optional(),
|
|
4971
4975
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
4972
|
-
attachments: array(
|
|
4976
|
+
attachments: array(X).optional(),
|
|
4973
4977
|
toolActivities: array(Oi).optional(),
|
|
4974
4978
|
issue: object({
|
|
4975
4979
|
code: string(),
|
|
@@ -5040,7 +5044,7 @@ var Pi = ji.extend({
|
|
|
5040
5044
|
billing: string().max(500),
|
|
5041
5045
|
agent: string().max(500)
|
|
5042
5046
|
}).optional(),
|
|
5043
|
-
viewerTimezone:
|
|
5047
|
+
viewerTimezone: q.optional()
|
|
5044
5048
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5045
5049
|
path: ["content"],
|
|
5046
5050
|
message: "Message or attachment required"
|
|
@@ -5106,7 +5110,7 @@ var Vi = object({
|
|
|
5106
5110
|
provider: string().min(1).optional(),
|
|
5107
5111
|
providerRequestId: string().min(1).optional(),
|
|
5108
5112
|
media: string().startsWith("MEDIA:"),
|
|
5109
|
-
attachment:
|
|
5113
|
+
attachment: X.extend({ type: literal("image") })
|
|
5110
5114
|
}), Ji = object({
|
|
5111
5115
|
identityToken: string().min(1),
|
|
5112
5116
|
fullName: string().optional()
|
|
@@ -5177,8 +5181,8 @@ var Vi = object({
|
|
|
5177
5181
|
}), da = object({
|
|
5178
5182
|
updated: number(),
|
|
5179
5183
|
errors: array(string())
|
|
5180
|
-
}), fa =
|
|
5181
|
-
code:
|
|
5184
|
+
}), fa = Ur, pa = object({
|
|
5185
|
+
code: J,
|
|
5182
5186
|
message: string(),
|
|
5183
5187
|
bucket: _enum(["account", "error"]).optional(),
|
|
5184
5188
|
actionLabel: string().optional(),
|
|
@@ -5211,7 +5215,7 @@ var Vi = object({
|
|
|
5211
5215
|
}),
|
|
5212
5216
|
object({
|
|
5213
5217
|
event: literal("tool_activity"),
|
|
5214
|
-
data:
|
|
5218
|
+
data: Y
|
|
5215
5219
|
}),
|
|
5216
5220
|
object({
|
|
5217
5221
|
event: literal("working_end"),
|
|
@@ -5423,7 +5427,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5423
5427
|
}
|
|
5424
5428
|
//#endregion
|
|
5425
5429
|
//#region ../core/dist/wire/chat-visual.js
|
|
5426
|
-
var _a = string().trim().min(1).max(240), va = string().trim().min(1).max(800),
|
|
5430
|
+
var _a = string().trim().min(1).max(240), va = string().trim().min(1).max(800), Z = string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/), Q = string().trim().min(1).max(120), ya = record(Z, union([
|
|
5427
5431
|
string().max(500),
|
|
5428
5432
|
number().finite(),
|
|
5429
5433
|
boolean(),
|
|
@@ -5440,16 +5444,16 @@ var _a = string().trim().min(1).max(240), va = string().trim().min(1).max(800),
|
|
|
5440
5444
|
description: va.optional(),
|
|
5441
5445
|
footer: va.optional()
|
|
5442
5446
|
}).strip(), Sa = object({
|
|
5443
|
-
dataKey:
|
|
5444
|
-
label:
|
|
5445
|
-
axisLabel:
|
|
5447
|
+
dataKey: Z,
|
|
5448
|
+
label: Q.optional(),
|
|
5449
|
+
axisLabel: Q.optional(),
|
|
5446
5450
|
valueFormat: ba.optional(),
|
|
5447
5451
|
valuePrefix: string().trim().max(12).optional(),
|
|
5448
5452
|
valueSuffix: string().trim().max(12).optional()
|
|
5449
5453
|
}).strip(), Ca = object({
|
|
5450
5454
|
kind: literal("linear"),
|
|
5451
|
-
dataKey:
|
|
5452
|
-
label:
|
|
5455
|
+
dataKey: Z,
|
|
5456
|
+
label: Q.optional()
|
|
5453
5457
|
}).strip(), wa = object({
|
|
5454
5458
|
version: literal(1),
|
|
5455
5459
|
meta: xa,
|
|
@@ -5501,8 +5505,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
|
|
|
5501
5505
|
"line",
|
|
5502
5506
|
"scatter"
|
|
5503
5507
|
]),
|
|
5504
|
-
xKey:
|
|
5505
|
-
xAxisLabel:
|
|
5508
|
+
xKey: Z,
|
|
5509
|
+
xAxisLabel: Q.optional(),
|
|
5506
5510
|
series: array(Sa).min(1).max(6),
|
|
5507
5511
|
data: array(ya).min(1).max(120),
|
|
5508
5512
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
@@ -5548,8 +5552,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
|
|
|
5548
5552
|
}), wa.extend({
|
|
5549
5553
|
visualType: literal("chart"),
|
|
5550
5554
|
chartType: literal("pie"),
|
|
5551
|
-
nameKey:
|
|
5552
|
-
valueKey:
|
|
5555
|
+
nameKey: Z,
|
|
5556
|
+
valueKey: Z,
|
|
5553
5557
|
series: array(Sa).max(1).optional(),
|
|
5554
5558
|
data: array(ya).min(1).max(16)
|
|
5555
5559
|
}).strip().superRefine((e, t) => {
|
|
@@ -5576,8 +5580,8 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
|
|
|
5576
5580
|
nonnegative: !0
|
|
5577
5581
|
}], t);
|
|
5578
5582
|
})]), Ea = object({
|
|
5579
|
-
id:
|
|
5580
|
-
label:
|
|
5583
|
+
id: Z,
|
|
5584
|
+
label: Q,
|
|
5581
5585
|
detail: va.optional(),
|
|
5582
5586
|
kind: _enum([
|
|
5583
5587
|
"actor",
|
|
@@ -5590,9 +5594,9 @@ var Ta = discriminatedUnion("chartType", [wa.extend({
|
|
|
5590
5594
|
"task"
|
|
5591
5595
|
]).optional()
|
|
5592
5596
|
}).strip(), Da = object({
|
|
5593
|
-
from:
|
|
5594
|
-
to:
|
|
5595
|
-
label:
|
|
5597
|
+
from: Z,
|
|
5598
|
+
to: Z,
|
|
5599
|
+
label: Q.optional()
|
|
5596
5600
|
}).strip(), Oa = union([Ta, wa.extend({
|
|
5597
5601
|
visualType: literal("diagram"),
|
|
5598
5602
|
diagramType: _enum([
|
|
@@ -5855,7 +5859,7 @@ var ka = object({
|
|
|
5855
5859
|
lastMessage: Aa.nullable(),
|
|
5856
5860
|
unreadCount: number().int().nonnegative(),
|
|
5857
5861
|
latestSequence: string().nullable()
|
|
5858
|
-
}),
|
|
5862
|
+
}), $ = preprocess((e) => e === void 0 ? null : e, string().nullable()), La = preprocess((e) => e === void 0 ? null : e, R.nullable()), Ra = preprocess((e) => e === void 0 ? null : e, L.nullable()), za = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
5859
5863
|
"user",
|
|
5860
5864
|
"assistant",
|
|
5861
5865
|
"system"
|
|
@@ -5864,24 +5868,24 @@ var ka = object({
|
|
|
5864
5868
|
handle: string(),
|
|
5865
5869
|
name: string(),
|
|
5866
5870
|
orgId: string(),
|
|
5867
|
-
orgName:
|
|
5868
|
-
orgHandle:
|
|
5869
|
-
ownerEmail:
|
|
5870
|
-
ownerName:
|
|
5871
|
+
orgName: $,
|
|
5872
|
+
orgHandle: $,
|
|
5873
|
+
ownerEmail: $,
|
|
5874
|
+
ownerName: $,
|
|
5871
5875
|
state: La,
|
|
5872
5876
|
desiredStatus: Ra,
|
|
5873
5877
|
runtime: string(),
|
|
5874
|
-
imageVersion:
|
|
5875
|
-
lastHealthyAt:
|
|
5876
|
-
lastActiveAt:
|
|
5877
|
-
lastUserMessageAt:
|
|
5878
|
-
lastMessageAt:
|
|
5878
|
+
imageVersion: $,
|
|
5879
|
+
lastHealthyAt: $,
|
|
5880
|
+
lastActiveAt: $,
|
|
5881
|
+
lastUserMessageAt: $,
|
|
5882
|
+
lastMessageAt: $,
|
|
5879
5883
|
lastMessageRole: za,
|
|
5880
|
-
lastMessageChannel:
|
|
5881
|
-
primaryChannel:
|
|
5884
|
+
lastMessageChannel: $,
|
|
5885
|
+
primaryChannel: $,
|
|
5882
5886
|
totalMessages: Ba,
|
|
5883
5887
|
totalSessions: Ba,
|
|
5884
|
-
error:
|
|
5888
|
+
error: $,
|
|
5885
5889
|
appHandle: string(),
|
|
5886
5890
|
flyAppExists: boolean(),
|
|
5887
5891
|
plan: string(),
|
|
@@ -5905,20 +5909,20 @@ var ka = object({
|
|
|
5905
5909
|
flyAppCount: number().optional(),
|
|
5906
5910
|
latestVersion: string().optional(),
|
|
5907
5911
|
latestVersions: record(string(), string()).optional()
|
|
5908
|
-
}),
|
|
5912
|
+
}), Wa = k, Ga = O, Ka = object({
|
|
5909
5913
|
mediaId: string(),
|
|
5910
5914
|
src: string(),
|
|
5911
5915
|
alt: string().nullable().optional(),
|
|
5912
5916
|
filename: string().optional(),
|
|
5913
5917
|
displayName: string().nullable().optional(),
|
|
5914
5918
|
mimeType: string().optional(),
|
|
5915
|
-
mediaType:
|
|
5916
|
-
type:
|
|
5919
|
+
mediaType: Ga.optional(),
|
|
5920
|
+
type: Ga.optional(),
|
|
5917
5921
|
size: number().optional(),
|
|
5918
5922
|
width: number().nullable().optional(),
|
|
5919
5923
|
height: number().nullable().optional(),
|
|
5920
5924
|
duration: number().nullable().optional(),
|
|
5921
|
-
context:
|
|
5925
|
+
context: Wa.nullable().optional(),
|
|
5922
5926
|
blurhash: string().nullable().optional(),
|
|
5923
5927
|
quality: string().optional(),
|
|
5924
5928
|
status: string().optional(),
|
|
@@ -5927,13 +5931,13 @@ var ka = object({
|
|
|
5927
5931
|
agentId: string().nullable().optional(),
|
|
5928
5932
|
createdAt: string().optional(),
|
|
5929
5933
|
updatedAt: string().optional()
|
|
5930
|
-
}),
|
|
5934
|
+
}), qa = object({
|
|
5931
5935
|
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."),
|
|
5932
|
-
context:
|
|
5936
|
+
context: Wa.optional().default("general"),
|
|
5933
5937
|
agentId: string().optional(),
|
|
5934
5938
|
orgId: string().optional(),
|
|
5935
5939
|
duration: number().optional()
|
|
5936
|
-
}),
|
|
5940
|
+
}), Ja = object({
|
|
5937
5941
|
mediaId: string().optional(),
|
|
5938
5942
|
src: string().optional(),
|
|
5939
5943
|
alt: string().optional(),
|
|
@@ -5942,7 +5946,7 @@ var ka = object({
|
|
|
5942
5946
|
mimeType: string().optional(),
|
|
5943
5947
|
mediaType: string().optional(),
|
|
5944
5948
|
blurhash: string().optional()
|
|
5945
|
-
}),
|
|
5949
|
+
}), Ya = object({
|
|
5946
5950
|
membershipId: string(),
|
|
5947
5951
|
userId: string(),
|
|
5948
5952
|
orgId: string(),
|
|
@@ -5957,15 +5961,15 @@ var ka = object({
|
|
|
5957
5961
|
status: _enum(["active", "suspended"]),
|
|
5958
5962
|
joinedAt: string(),
|
|
5959
5963
|
lastSeenAt: string().optional(),
|
|
5960
|
-
avatar:
|
|
5961
|
-
}),
|
|
5964
|
+
avatar: Ja.optional()
|
|
5965
|
+
}), Xa = object({
|
|
5962
5966
|
invitationId: string(),
|
|
5963
5967
|
email: string(),
|
|
5964
5968
|
role: _enum(["admin", "member"]),
|
|
5965
5969
|
status: string(),
|
|
5966
5970
|
expiresAt: string(),
|
|
5967
5971
|
createdAt: string()
|
|
5968
|
-
}),
|
|
5972
|
+
}), Za = object({
|
|
5969
5973
|
token: string(),
|
|
5970
5974
|
email: string(),
|
|
5971
5975
|
orgId: string(),
|
|
@@ -5987,20 +5991,20 @@ var ka = object({
|
|
|
5987
5991
|
]),
|
|
5988
5992
|
expiresAt: string(),
|
|
5989
5993
|
memberCount: number().optional()
|
|
5990
|
-
}),
|
|
5994
|
+
}), Qa = object({
|
|
5991
5995
|
email: string().email(),
|
|
5992
5996
|
role: _enum(["admin", "member"]).optional(),
|
|
5993
5997
|
message: string().max(500).optional()
|
|
5994
|
-
}).strict(),
|
|
5998
|
+
}).strict(), $a = object({ role: _enum(["admin", "member"]) }).strict(), eo = object({ token: string().min(1) }).strict(), to = _enum([
|
|
5995
5999
|
"planLimit",
|
|
5996
6000
|
"billingOverdue",
|
|
5997
6001
|
"rebuilding",
|
|
5998
6002
|
"agentNotFound"
|
|
5999
|
-
]),
|
|
6003
|
+
]), no = _enum([
|
|
6000
6004
|
"rebuilding",
|
|
6001
6005
|
"provisioning",
|
|
6002
6006
|
"billingOverdue"
|
|
6003
|
-
]),
|
|
6007
|
+
]), ro = object({
|
|
6004
6008
|
agentId: string(),
|
|
6005
6009
|
name: string(),
|
|
6006
6010
|
avatar: A.optional(),
|
|
@@ -6014,27 +6018,27 @@ var ka = object({
|
|
|
6014
6018
|
lastMessageAt: string().datetime().nullable(),
|
|
6015
6019
|
lastMessagePreview: string().nullable(),
|
|
6016
6020
|
onboardedAt: string().datetime().nullable(),
|
|
6017
|
-
desiredStatus:
|
|
6018
|
-
lifecycle:
|
|
6021
|
+
desiredStatus: L.nullable(),
|
|
6022
|
+
lifecycle: R,
|
|
6019
6023
|
changedAt: string().datetime().optional(),
|
|
6020
6024
|
detail: string().optional(),
|
|
6021
|
-
blocker:
|
|
6025
|
+
blocker: F.optional(),
|
|
6022
6026
|
canWake: boolean(),
|
|
6023
|
-
cantWakeReason:
|
|
6027
|
+
cantWakeReason: to.optional(),
|
|
6024
6028
|
canRebuild: boolean(),
|
|
6025
|
-
cantRebuildReason:
|
|
6026
|
-
}),
|
|
6027
|
-
zNotificationTelemetryAck: () =>
|
|
6028
|
-
zNotificationTelemetryEvent: () =>
|
|
6029
|
-
zRegisterDeviceRequest: () =>
|
|
6030
|
-
zRegisterDeviceResponse: () =>
|
|
6031
|
-
}),
|
|
6029
|
+
cantRebuildReason: no.optional()
|
|
6030
|
+
}), io = /* @__PURE__ */ t({
|
|
6031
|
+
zNotificationTelemetryAck: () => co,
|
|
6032
|
+
zNotificationTelemetryEvent: () => so,
|
|
6033
|
+
zRegisterDeviceRequest: () => ao,
|
|
6034
|
+
zRegisterDeviceResponse: () => oo
|
|
6035
|
+
}), ao = object({
|
|
6032
6036
|
deviceId: string().min(1).max(64),
|
|
6033
6037
|
pushToken: string().min(1).max(200),
|
|
6034
6038
|
appVersion: string().max(40).optional(),
|
|
6035
6039
|
osVersion: string().max(40).optional(),
|
|
6036
6040
|
model: string().max(80).optional()
|
|
6037
|
-
}),
|
|
6041
|
+
}), oo = object({ deviceId: string().min(1).max(64) }), so = object({
|
|
6038
6042
|
deviceId: string().min(1).max(64),
|
|
6039
6043
|
kind: string().min(1).max(30),
|
|
6040
6044
|
action: _enum([
|
|
@@ -6043,7 +6047,7 @@ var ka = object({
|
|
|
6043
6047
|
"dismissed"
|
|
6044
6048
|
]),
|
|
6045
6049
|
messageId: string().max(32).optional()
|
|
6046
|
-
}),
|
|
6050
|
+
}), co = object({ updated: boolean() }), lo = U.pick({
|
|
6047
6051
|
orgId: !0,
|
|
6048
6052
|
handle: !0,
|
|
6049
6053
|
name: !0,
|
|
@@ -6057,13 +6061,13 @@ var ka = object({
|
|
|
6057
6061
|
status: !0,
|
|
6058
6062
|
updatedAt: !0
|
|
6059
6063
|
}).extend({
|
|
6060
|
-
avatar:
|
|
6061
|
-
cover:
|
|
6062
|
-
}),
|
|
6064
|
+
avatar: Ka.nullable().optional(),
|
|
6065
|
+
cover: Ka.nullable().optional()
|
|
6066
|
+
}), uo = object({
|
|
6063
6067
|
name: string().min(1).max(255),
|
|
6064
6068
|
handle: string().min(2).max(50).optional(),
|
|
6065
|
-
timezone:
|
|
6066
|
-
}).strict(),
|
|
6069
|
+
timezone: q.optional()
|
|
6070
|
+
}).strict(), fo = U.pick({
|
|
6067
6071
|
name: !0,
|
|
6068
6072
|
email: !0,
|
|
6069
6073
|
website: !0,
|
|
@@ -6072,14 +6076,14 @@ var ka = object({
|
|
|
6072
6076
|
}).extend({
|
|
6073
6077
|
name: string().min(1).max(255).optional(),
|
|
6074
6078
|
email: preprocess((e) => e === "" ? null : e, string().email().nullable()).optional(),
|
|
6075
|
-
timezone:
|
|
6079
|
+
timezone: q.optional(),
|
|
6076
6080
|
avatarMediaId: string().nullable().optional(),
|
|
6077
6081
|
coverMediaId: string().nullable().optional()
|
|
6078
|
-
}).strict(),
|
|
6082
|
+
}).strict(), po = _enum([
|
|
6079
6083
|
"success",
|
|
6080
6084
|
"info",
|
|
6081
6085
|
"warning"
|
|
6082
|
-
]),
|
|
6086
|
+
]), mo = object({
|
|
6083
6087
|
org: object({
|
|
6084
6088
|
orgId: string(),
|
|
6085
6089
|
name: string(),
|
|
@@ -6088,7 +6092,7 @@ var ka = object({
|
|
|
6088
6092
|
plan: object({
|
|
6089
6093
|
key: string(),
|
|
6090
6094
|
label: string(),
|
|
6091
|
-
tone:
|
|
6095
|
+
tone: po,
|
|
6092
6096
|
status: string(),
|
|
6093
6097
|
trialDaysRemaining: number().optional()
|
|
6094
6098
|
}),
|
|
@@ -6109,15 +6113,15 @@ function zPaginatedResponse(e) {
|
|
|
6109
6113
|
}
|
|
6110
6114
|
//#endregion
|
|
6111
6115
|
//#region ../core/dist/wire/public-services.js
|
|
6112
|
-
var
|
|
6116
|
+
var ho = object({
|
|
6113
6117
|
sender: _enum(["user", "agent"]),
|
|
6114
6118
|
text: string()
|
|
6115
|
-
}),
|
|
6119
|
+
}), go = _enum([
|
|
6116
6120
|
"works-now",
|
|
6117
6121
|
"guided-setup",
|
|
6118
6122
|
"coming-soon",
|
|
6119
6123
|
"custom-workflow"
|
|
6120
|
-
]),
|
|
6124
|
+
]), _o = object({
|
|
6121
6125
|
docsUrl: string(),
|
|
6122
6126
|
verifiedAt: string(),
|
|
6123
6127
|
version: string().optional(),
|
|
@@ -6129,11 +6133,11 @@ var mo = object({
|
|
|
6129
6133
|
"unversioned"
|
|
6130
6134
|
]),
|
|
6131
6135
|
note: string().optional()
|
|
6132
|
-
}),
|
|
6136
|
+
}), vo = object({
|
|
6133
6137
|
key: string(),
|
|
6134
6138
|
label: string(),
|
|
6135
6139
|
rank: number()
|
|
6136
|
-
}),
|
|
6140
|
+
}), yo = object({
|
|
6137
6141
|
text: string(),
|
|
6138
6142
|
tone: _enum([
|
|
6139
6143
|
"info",
|
|
@@ -6141,7 +6145,7 @@ var mo = object({
|
|
|
6141
6145
|
"success",
|
|
6142
6146
|
"danger"
|
|
6143
6147
|
])
|
|
6144
|
-
}),
|
|
6148
|
+
}), bo = object({
|
|
6145
6149
|
serviceKey: string(),
|
|
6146
6150
|
name: string(),
|
|
6147
6151
|
description: string(),
|
|
@@ -6151,16 +6155,16 @@ var mo = object({
|
|
|
6151
6155
|
category: string(),
|
|
6152
6156
|
categoryLabel: string(),
|
|
6153
6157
|
categoryRank: number(),
|
|
6154
|
-
secondaryCategories: array(
|
|
6155
|
-
badges: array(
|
|
6158
|
+
secondaryCategories: array(vo),
|
|
6159
|
+
badges: array(yo),
|
|
6156
6160
|
tags: array(string()),
|
|
6157
6161
|
searchAliases: array(string()),
|
|
6158
6162
|
jtbd: string(),
|
|
6159
6163
|
useCase: string(),
|
|
6160
6164
|
demoScenario: string(),
|
|
6161
|
-
sampleConversation: array(
|
|
6162
|
-
publicStatus:
|
|
6163
|
-
apiVerification:
|
|
6165
|
+
sampleConversation: array(ho),
|
|
6166
|
+
publicStatus: go,
|
|
6167
|
+
apiVerification: _o.optional(),
|
|
6164
6168
|
setupDifficulty: string(),
|
|
6165
6169
|
risk: string(),
|
|
6166
6170
|
price: string(),
|
|
@@ -6173,16 +6177,16 @@ var mo = object({
|
|
|
6173
6177
|
]),
|
|
6174
6178
|
setupSummary: string().optional(),
|
|
6175
6179
|
pagePath: string()
|
|
6176
|
-
}),
|
|
6180
|
+
}), xo = object({
|
|
6177
6181
|
fullName: string().min(1).max(100).optional(),
|
|
6178
6182
|
avatarMediaId: string().nullable().optional(),
|
|
6179
6183
|
primaryAgentId: string().nullable().optional(),
|
|
6180
6184
|
lastActiveOrgId: string().nullable().optional()
|
|
6181
|
-
}).strict(),
|
|
6182
|
-
ASSISTANT_SILENCE_CONTROLS: () =>
|
|
6183
|
-
ActionAreaSchema: () =>
|
|
6184
|
-
ActionButtonSchema: () =>
|
|
6185
|
-
Agent: () =>
|
|
6185
|
+
}).strict(), So = /* @__PURE__ */ t({
|
|
6186
|
+
ASSISTANT_SILENCE_CONTROLS: () => W,
|
|
6187
|
+
ActionAreaSchema: () => Fr,
|
|
6188
|
+
ActionButtonSchema: () => N,
|
|
6189
|
+
Agent: () => H,
|
|
6186
6190
|
AudioFormatSchema: () => Er,
|
|
6187
6191
|
AudioMediaSchema: () => jr,
|
|
6188
6192
|
AudioPropertiesSchema: () => Or,
|
|
@@ -6190,18 +6194,18 @@ var mo = object({
|
|
|
6190
6194
|
BOT_API_LLM_PATH: () => _i,
|
|
6191
6195
|
BOT_API_PATH: () => gi,
|
|
6192
6196
|
BOT_USER_AGENT: () => pi,
|
|
6193
|
-
ButtonDesignSchema: () =>
|
|
6194
|
-
ButtonThemeSchema: () =>
|
|
6195
|
-
CHART_THEME: () =>
|
|
6196
|
-
CHAT_ISSUE_CODES: () =>
|
|
6197
|
-
CHAT_ISSUE_COPY: () =>
|
|
6197
|
+
ButtonDesignSchema: () => M,
|
|
6198
|
+
ButtonThemeSchema: () => Pr,
|
|
6199
|
+
CHART_THEME: () => Rr,
|
|
6200
|
+
CHAT_ISSUE_CODES: () => P,
|
|
6201
|
+
CHAT_ISSUE_COPY: () => I,
|
|
6198
6202
|
CookieUtil: () => CookieUtil,
|
|
6199
6203
|
DocumentMediaSchema: () => Mr,
|
|
6200
6204
|
ERROR_CODES: () => wi,
|
|
6201
|
-
EnrichedAgentSchema: () =>
|
|
6205
|
+
EnrichedAgentSchema: () => V,
|
|
6202
6206
|
ImageFormatSchema: () => wr,
|
|
6203
6207
|
ImageMediaSchema: () => kr,
|
|
6204
|
-
LIFECYCLE_COLOR: () =>
|
|
6208
|
+
LIFECYCLE_COLOR: () => Gr,
|
|
6205
6209
|
Logger: () => p,
|
|
6206
6210
|
MEDIA_CONTEXTS: () => xr,
|
|
6207
6211
|
MEDIA_TYPES: () => br,
|
|
@@ -6210,18 +6214,18 @@ var mo = object({
|
|
|
6210
6214
|
MediaStatusSchema: () => Sr,
|
|
6211
6215
|
MediaTypeSchema: () => O,
|
|
6212
6216
|
MediaUnionSchema: () => Nr,
|
|
6213
|
-
NavItemSchema: () =>
|
|
6214
|
-
NavListSchema: () =>
|
|
6217
|
+
NavItemSchema: () => Ir,
|
|
6218
|
+
NavListSchema: () => Lr,
|
|
6215
6219
|
PAGELINES_APP_CONFIG: () => i,
|
|
6216
6220
|
SettingsObject: () => SettingsObject,
|
|
6217
|
-
SizeSchema: () =>
|
|
6221
|
+
SizeSchema: () => j,
|
|
6218
6222
|
SocialAccountSchema: () => vr,
|
|
6219
6223
|
SocialAccountsSchema: () => yr,
|
|
6220
|
-
UNKNOWN_STATUS: () =>
|
|
6224
|
+
UNKNOWN_STATUS: () => Wr,
|
|
6221
6225
|
VideoFormatSchema: () => Tr,
|
|
6222
6226
|
VideoMediaSchema: () => Ar,
|
|
6223
6227
|
VideoPropertiesSchema: () => Dr,
|
|
6224
|
-
agentSchema: () =>
|
|
6228
|
+
agentSchema: () => B,
|
|
6225
6229
|
apiError: () => apiError,
|
|
6226
6230
|
apiOk: () => apiOk,
|
|
6227
6231
|
appleAuthSchema: () => ci,
|
|
@@ -6265,10 +6269,10 @@ var mo = object({
|
|
|
6265
6269
|
loginSchema: () => ti,
|
|
6266
6270
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6267
6271
|
nanoid: () => nanoid$1,
|
|
6268
|
-
notificationWire: () =>
|
|
6272
|
+
notificationWire: () => io,
|
|
6269
6273
|
objectId: () => objectId,
|
|
6270
6274
|
orgInfoSchema: () => di,
|
|
6271
|
-
orgSchema: () =>
|
|
6275
|
+
orgSchema: () => U,
|
|
6272
6276
|
orgWithDefaultAgentSchema: () => li,
|
|
6273
6277
|
parseChatCardFencePayload: () => parseChatCardFencePayload,
|
|
6274
6278
|
parseChatVisualFencePayload: () => parseChatVisualFencePayload,
|
|
@@ -6287,8 +6291,8 @@ var mo = object({
|
|
|
6287
6291
|
verifyCodeSchema: () => ri,
|
|
6288
6292
|
warn: () => ee,
|
|
6289
6293
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6290
|
-
zAcceptInvitationBody: () =>
|
|
6291
|
-
zAccessibleAgentRow: () =>
|
|
6294
|
+
zAcceptInvitationBody: () => eo,
|
|
6295
|
+
zAccessibleAgentRow: () => ro,
|
|
6292
6296
|
zAgentRow: () => Si,
|
|
6293
6297
|
zApiError: () => Ei,
|
|
6294
6298
|
zApiOk: () => zApiOk,
|
|
@@ -6304,26 +6308,27 @@ var mo = object({
|
|
|
6304
6308
|
zBillingPaymentMethod: () => aa,
|
|
6305
6309
|
zBillingPlanKey: () => ra,
|
|
6306
6310
|
zBillingStatus: () => ia,
|
|
6311
|
+
zBillingTier: () => Xr,
|
|
6307
6312
|
zBotGenerateImageBody: () => Ki,
|
|
6308
6313
|
zBotGenerateImageResponse: () => qi,
|
|
6309
6314
|
zCancelConversationTurnBody: () => Na,
|
|
6310
6315
|
zCancelConversationTurnResponse: () => Pa,
|
|
6311
|
-
zCantRebuildReason: () =>
|
|
6312
|
-
zCantWakeReason: () =>
|
|
6313
|
-
zChatAttachment: () =>
|
|
6316
|
+
zCantRebuildReason: () => no,
|
|
6317
|
+
zCantWakeReason: () => to,
|
|
6318
|
+
zChatAttachment: () => X,
|
|
6314
6319
|
zChatAttachmentInput: () => Ri,
|
|
6315
6320
|
zChatAttachmentPlacement: () => Ai,
|
|
6316
6321
|
zChatCardSpec: () => ga,
|
|
6317
6322
|
zChatErrorData: () => pa,
|
|
6318
6323
|
zChatEvent: () => ma,
|
|
6319
|
-
zChatIssue: () =>
|
|
6324
|
+
zChatIssue: () => F,
|
|
6320
6325
|
zChatMessage: () => Li,
|
|
6321
6326
|
zChatMessageAttentionItem: () => Pi,
|
|
6322
6327
|
zChatMessageAttentionRef: () => ji,
|
|
6323
6328
|
zChatMessageAttentionUpdate: () => Fi,
|
|
6324
6329
|
zChatMessageMetadata: () => Ii,
|
|
6325
6330
|
zChatStatusData: () => fa,
|
|
6326
|
-
zChatToolActivityData: () =>
|
|
6331
|
+
zChatToolActivityData: () => Y,
|
|
6327
6332
|
zChatToolActivityVisual: () => Di,
|
|
6328
6333
|
zChatVisualSpec: () => Oa,
|
|
6329
6334
|
zCompleteCheckoutData: () => la,
|
|
@@ -6335,9 +6340,9 @@ var mo = object({
|
|
|
6335
6340
|
zCreateAgentBody: () => bi,
|
|
6336
6341
|
zCreateConversationBody: () => Vi,
|
|
6337
6342
|
zCreateConversationSessionBody: () => Hi,
|
|
6338
|
-
zCreateOrgBody: () =>
|
|
6339
|
-
zDesiredStatus: () =>
|
|
6340
|
-
zErrorCode: () =>
|
|
6343
|
+
zCreateOrgBody: () => uo,
|
|
6344
|
+
zDesiredStatus: () => L,
|
|
6345
|
+
zErrorCode: () => J,
|
|
6341
6346
|
zFleetAgent: () => Va,
|
|
6342
6347
|
zFleetSummary: () => Ha,
|
|
6343
6348
|
zFleetSyncResponse: () => Ua,
|
|
@@ -6347,45 +6352,45 @@ var mo = object({
|
|
|
6347
6352
|
zHandoffMintBody: () => Zi,
|
|
6348
6353
|
zHandoffMintData: () => Qi,
|
|
6349
6354
|
zHandoffMintResponse: () => $i,
|
|
6350
|
-
zIanaTimezone: () =>
|
|
6355
|
+
zIanaTimezone: () => q,
|
|
6351
6356
|
zImageAspectRatio: () => Wi,
|
|
6352
6357
|
zImageResolution: () => Gi,
|
|
6353
|
-
zInvitationPreview: () =>
|
|
6354
|
-
zInvitationRow: () =>
|
|
6355
|
-
zInviteBody: () =>
|
|
6356
|
-
zLifecycle: () =>
|
|
6357
|
-
zLifecycleVerb: () =>
|
|
6358
|
-
zLiveStatus: () =>
|
|
6358
|
+
zInvitationPreview: () => Za,
|
|
6359
|
+
zInvitationRow: () => Xa,
|
|
6360
|
+
zInviteBody: () => Qa,
|
|
6361
|
+
zLifecycle: () => R,
|
|
6362
|
+
zLifecycleVerb: () => Jr,
|
|
6363
|
+
zLiveStatus: () => Ur,
|
|
6359
6364
|
zMarkReadBody: () => Ma,
|
|
6360
|
-
zMediaContext: () =>
|
|
6361
|
-
zMediaObject: () =>
|
|
6362
|
-
zMediaType: () =>
|
|
6363
|
-
zMemberRow: () =>
|
|
6365
|
+
zMediaContext: () => Wa,
|
|
6366
|
+
zMediaObject: () => Ka,
|
|
6367
|
+
zMediaType: () => Ga,
|
|
6368
|
+
zMemberRow: () => Ya,
|
|
6364
6369
|
zMessageSearchResult: () => Fa,
|
|
6365
|
-
zOrgRow: () =>
|
|
6366
|
-
zOrgSummary: () =>
|
|
6370
|
+
zOrgRow: () => lo,
|
|
6371
|
+
zOrgSummary: () => mo,
|
|
6367
6372
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6368
|
-
zPlanTone: () =>
|
|
6373
|
+
zPlanTone: () => po,
|
|
6369
6374
|
zProviderErrorKind: () => Ti,
|
|
6370
|
-
zPublicServiceOverview: () =>
|
|
6375
|
+
zPublicServiceOverview: () => bo,
|
|
6371
6376
|
zReportMessageBody: () => Ui,
|
|
6372
|
-
zRuntimeOperation: () =>
|
|
6373
|
-
zRuntimeOperationKind: () =>
|
|
6374
|
-
zRuntimeOperationStatus: () =>
|
|
6377
|
+
zRuntimeOperation: () => z,
|
|
6378
|
+
zRuntimeOperationKind: () => Vr,
|
|
6379
|
+
zRuntimeOperationStatus: () => Hr,
|
|
6375
6380
|
zSendMessageBody: () => zi,
|
|
6376
6381
|
zSuggestedPrompt: () => Ci,
|
|
6377
6382
|
zUpdateAgentBody: () => xi,
|
|
6378
|
-
zUpdateOrgBody: () =>
|
|
6379
|
-
zUpdateRoleBody: () =>
|
|
6380
|
-
zUpdateUserBody: () =>
|
|
6381
|
-
zUploadMediaBody: () =>
|
|
6382
|
-
}),
|
|
6383
|
+
zUpdateOrgBody: () => fo,
|
|
6384
|
+
zUpdateRoleBody: () => $a,
|
|
6385
|
+
zUpdateUserBody: () => xo,
|
|
6386
|
+
zUploadMediaBody: () => qa
|
|
6387
|
+
}), Co = "1.0.0";
|
|
6383
6388
|
function buildContract(e = {}) {
|
|
6384
6389
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6385
6390
|
let r = contractNameFor(e);
|
|
6386
6391
|
r && (n[r] = toSchema(t));
|
|
6387
6392
|
};
|
|
6388
|
-
for (let [e, t] of Object.entries(
|
|
6393
|
+
for (let [e, t] of Object.entries(So)) {
|
|
6389
6394
|
if (t instanceof T) {
|
|
6390
6395
|
addSchema(e, t);
|
|
6391
6396
|
continue;
|
|
@@ -6393,7 +6398,7 @@ function buildContract(e = {}) {
|
|
|
6393
6398
|
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof T && addSchema(e, n);
|
|
6394
6399
|
}
|
|
6395
6400
|
return {
|
|
6396
|
-
version:
|
|
6401
|
+
version: Co,
|
|
6397
6402
|
generatedAt: t.toISOString(),
|
|
6398
6403
|
schemas: n
|
|
6399
6404
|
};
|
|
@@ -6413,6 +6418,6 @@ function sortedReplacer(e, t) {
|
|
|
6413
6418
|
return t;
|
|
6414
6419
|
}
|
|
6415
6420
|
//#endregion
|
|
6416
|
-
export {
|
|
6421
|
+
export { Co as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6417
6422
|
|
|
6418
6423
|
//# sourceMappingURL=contract.js.map
|