@pagelines/sdk 1.0.734 → 1.0.736
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/AgentWrap.js +77 -71
- package/dist/AgentWrap.js.map +1 -1
- package/dist/contract.js +249 -211
- package/dist/contract.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -4948,7 +4948,25 @@ var Di = object({
|
|
|
4948
4948
|
duration: number().nonnegative().optional(),
|
|
4949
4949
|
text: string().optional(),
|
|
4950
4950
|
placement: Ai.optional()
|
|
4951
|
-
}), ji = object({
|
|
4951
|
+
}), ji = object({ ref: string().min(1).max(256) }).strict(), Mi = _enum([
|
|
4952
|
+
"handled",
|
|
4953
|
+
"dismissed",
|
|
4954
|
+
"deferred"
|
|
4955
|
+
]), Ni = datetime();
|
|
4956
|
+
function validateAttentionRevisit(e, t) {
|
|
4957
|
+
e.revisitAt && e.disposition !== "deferred" && t.addIssue({
|
|
4958
|
+
code: "custom",
|
|
4959
|
+
path: ["revisitAt"],
|
|
4960
|
+
message: "revisitAt requires deferred disposition"
|
|
4961
|
+
});
|
|
4962
|
+
}
|
|
4963
|
+
var Pi = ji.extend({
|
|
4964
|
+
disposition: Mi.optional(),
|
|
4965
|
+
revisitAt: Ni.optional()
|
|
4966
|
+
}).superRefine(validateAttentionRevisit), Fi = ji.extend({
|
|
4967
|
+
disposition: Mi,
|
|
4968
|
+
revisitAt: Ni.optional()
|
|
4969
|
+
}).superRefine(validateAttentionRevisit), Ii = object({
|
|
4952
4970
|
turnId: string().min(1).optional(),
|
|
4953
4971
|
turnOutcome: _enum(["failed", "stopped"]).optional(),
|
|
4954
4972
|
attachments: array(Y).optional(),
|
|
@@ -4960,8 +4978,25 @@ var Di = object({
|
|
|
4960
4978
|
actionUrl: string(),
|
|
4961
4979
|
help: string().optional()
|
|
4962
4980
|
}).optional(),
|
|
4963
|
-
notification: object({ push: boolean().optional() }).optional()
|
|
4964
|
-
|
|
4981
|
+
notification: object({ push: boolean().optional() }).optional(),
|
|
4982
|
+
automation: object({ run: object({
|
|
4983
|
+
automationRunId: string(),
|
|
4984
|
+
sourceKind: _enum(["webhook", "schedule"]),
|
|
4985
|
+
sourceLabel: string().optional(),
|
|
4986
|
+
deliveryId: string().optional(),
|
|
4987
|
+
status: _enum([
|
|
4988
|
+
"received",
|
|
4989
|
+
"forwarded",
|
|
4990
|
+
"owner_notified",
|
|
4991
|
+
"needs_approval",
|
|
4992
|
+
"completed",
|
|
4993
|
+
"failed",
|
|
4994
|
+
"dropped"
|
|
4995
|
+
])
|
|
4996
|
+
}).catchall(unknown()) }).catchall(unknown()).optional(),
|
|
4997
|
+
ownerHandoff: literal(!0).optional(),
|
|
4998
|
+
attention: array(Pi).max(20).optional()
|
|
4999
|
+
}).catchall(unknown()), Li = object({
|
|
4965
5000
|
messageId: string().min(1),
|
|
4966
5001
|
conversationId: string().min(1),
|
|
4967
5002
|
role: _enum([
|
|
@@ -4974,11 +5009,11 @@ var Di = object({
|
|
|
4974
5009
|
content: string(),
|
|
4975
5010
|
sequence: string().min(1),
|
|
4976
5011
|
clientNonce: string().nullable().optional(),
|
|
4977
|
-
metadata:
|
|
5012
|
+
metadata: Ii.nullable().optional(),
|
|
4978
5013
|
status: string().nullable().optional(),
|
|
4979
5014
|
createdAt: string(),
|
|
4980
5015
|
updatedAt: string()
|
|
4981
|
-
}),
|
|
5016
|
+
}), Ri = object({
|
|
4982
5017
|
type: ki,
|
|
4983
5018
|
mediaId: string().min(1).optional(),
|
|
4984
5019
|
url: url().optional(),
|
|
@@ -4995,11 +5030,11 @@ var Di = object({
|
|
|
4995
5030
|
path: [n],
|
|
4996
5031
|
message: `${n} is required when mediaId is absent`
|
|
4997
5032
|
});
|
|
4998
|
-
}),
|
|
5033
|
+
}), zi = object({
|
|
4999
5034
|
conversationId: string().min(1),
|
|
5000
5035
|
content: string().max(1e4).default(""),
|
|
5001
5036
|
clientNonce: string().max(64).optional(),
|
|
5002
|
-
attachments: array(
|
|
5037
|
+
attachments: array(Ri).max(10).optional(),
|
|
5003
5038
|
channel: _enum(["ios", "dashboard"]).optional(),
|
|
5004
5039
|
actionUrls: object({
|
|
5005
5040
|
billing: string().max(500),
|
|
@@ -5009,7 +5044,7 @@ var Di = object({
|
|
|
5009
5044
|
}).refine((e) => e.content.trim().length > 0 || (e.attachments?.length ?? 0) > 0, {
|
|
5010
5045
|
path: ["content"],
|
|
5011
5046
|
message: "Message or attachment required"
|
|
5012
|
-
}),
|
|
5047
|
+
}), Bi = object({
|
|
5013
5048
|
type: _enum(["user", "agent"]),
|
|
5014
5049
|
id: string().min(1)
|
|
5015
5050
|
}).strict();
|
|
@@ -5024,44 +5059,44 @@ function addDuplicateConversationTargetIssues(e, t) {
|
|
|
5024
5059
|
}), n.add(e);
|
|
5025
5060
|
}
|
|
5026
5061
|
}
|
|
5027
|
-
var
|
|
5062
|
+
var Vi = object({
|
|
5028
5063
|
orgId: string().min(1),
|
|
5029
|
-
participants: array(
|
|
5030
|
-
}).strict().superRefine(addDuplicateConversationTargetIssues),
|
|
5064
|
+
participants: array(Bi).min(1).max(20)
|
|
5065
|
+
}).strict().superRefine(addDuplicateConversationTargetIssues), Hi = object({
|
|
5031
5066
|
orgId: string().min(1),
|
|
5032
|
-
participants: array(
|
|
5067
|
+
participants: array(Bi).min(1).max(20)
|
|
5033
5068
|
}).strict().superRefine((e, t) => {
|
|
5034
5069
|
addDuplicateConversationTargetIssues(e, t), e.participants.some((e) => e.type === "agent") || t.addIssue({
|
|
5035
5070
|
code: "custom",
|
|
5036
5071
|
path: ["participants"],
|
|
5037
5072
|
message: "New sessions require at least one agent participant."
|
|
5038
5073
|
});
|
|
5039
|
-
}),
|
|
5074
|
+
}), Ui = object({
|
|
5040
5075
|
category: string().min(1).max(30).optional(),
|
|
5041
5076
|
reason: string().max(2e3).optional()
|
|
5042
|
-
}).strict(),
|
|
5077
|
+
}).strict(), Wi = _enum([
|
|
5043
5078
|
"1:1",
|
|
5044
5079
|
"4:3",
|
|
5045
5080
|
"3:4",
|
|
5046
5081
|
"16:9",
|
|
5047
5082
|
"9:16"
|
|
5048
|
-
]),
|
|
5083
|
+
]), Gi = _enum([
|
|
5049
5084
|
"1K",
|
|
5050
5085
|
"2K",
|
|
5051
5086
|
"4K"
|
|
5052
|
-
]),
|
|
5087
|
+
]), Ki = object({
|
|
5053
5088
|
prompt: string().trim().min(1).max(4e3),
|
|
5054
|
-
aspectRatio:
|
|
5089
|
+
aspectRatio: Wi.default("1:1"),
|
|
5055
5090
|
outputFormat: _enum([
|
|
5056
5091
|
"png",
|
|
5057
5092
|
"jpeg",
|
|
5058
5093
|
"webp"
|
|
5059
5094
|
]).default("webp"),
|
|
5060
|
-
resolution:
|
|
5095
|
+
resolution: Gi.default("2K"),
|
|
5061
5096
|
style: string().trim().max(200).optional(),
|
|
5062
5097
|
altText: string().trim().max(500).optional(),
|
|
5063
5098
|
referenceMediaIds: array(string().min(1)).max(4).optional()
|
|
5064
|
-
}).strict(),
|
|
5099
|
+
}).strict(), qi = object({
|
|
5065
5100
|
mediaId: string().min(1),
|
|
5066
5101
|
src: url(),
|
|
5067
5102
|
filename: string().min(1),
|
|
@@ -5072,48 +5107,48 @@ var Ii = object({
|
|
|
5072
5107
|
providerRequestId: string().min(1).optional(),
|
|
5073
5108
|
media: string().startsWith("MEDIA:"),
|
|
5074
5109
|
attachment: Y.extend({ type: literal("image") })
|
|
5075
|
-
}),
|
|
5110
|
+
}), Ji = object({
|
|
5076
5111
|
identityToken: string().min(1),
|
|
5077
5112
|
fullName: string().optional()
|
|
5078
|
-
}),
|
|
5113
|
+
}), Yi = object({
|
|
5079
5114
|
redirect: string(),
|
|
5080
5115
|
redirectReason: string(),
|
|
5081
5116
|
isNew: boolean(),
|
|
5082
5117
|
deviceId: string()
|
|
5083
|
-
}),
|
|
5118
|
+
}), Xi = object({
|
|
5084
5119
|
ok: literal(!0),
|
|
5085
|
-
data:
|
|
5120
|
+
data: Yi,
|
|
5086
5121
|
token: string()
|
|
5087
|
-
}),
|
|
5122
|
+
}), Zi = object({ path: string().startsWith("/", "path must be a relative dashboard path").refine((e) => !e.startsWith("//"), "path must not be protocol-relative") }), Qi = object({ url: string() }), $i = object({
|
|
5088
5123
|
ok: literal(!0),
|
|
5089
|
-
data:
|
|
5090
|
-
}),
|
|
5124
|
+
data: Qi
|
|
5125
|
+
}), ea = object({ token: string().min(1) }), ta = object({
|
|
5091
5126
|
redirect: string(),
|
|
5092
5127
|
redirectReason: string(),
|
|
5093
5128
|
deviceId: string()
|
|
5094
|
-
}),
|
|
5129
|
+
}), na = object({
|
|
5095
5130
|
ok: literal(!0),
|
|
5096
|
-
data:
|
|
5131
|
+
data: ta,
|
|
5097
5132
|
token: string()
|
|
5098
|
-
}),
|
|
5133
|
+
}), ra = _enum(["none", "active_assistant"]), ia = _enum([
|
|
5099
5134
|
"none",
|
|
5100
5135
|
"active",
|
|
5101
5136
|
"trial",
|
|
5102
5137
|
"canceling",
|
|
5103
5138
|
"past_due"
|
|
5104
|
-
]),
|
|
5139
|
+
]), aa = object({
|
|
5105
5140
|
brand: string(),
|
|
5106
5141
|
last4: string(),
|
|
5107
5142
|
expMonth: number(),
|
|
5108
5143
|
expYear: number()
|
|
5109
|
-
}),
|
|
5144
|
+
}), oa = object({
|
|
5110
5145
|
date: string(),
|
|
5111
5146
|
amount: number(),
|
|
5112
5147
|
status: string(),
|
|
5113
5148
|
invoicePdf: string().optional()
|
|
5114
|
-
}),
|
|
5115
|
-
plan:
|
|
5116
|
-
status:
|
|
5149
|
+
}), sa = object({
|
|
5150
|
+
plan: ra,
|
|
5151
|
+
status: ia,
|
|
5117
5152
|
price: number(),
|
|
5118
5153
|
maxAgents: number(),
|
|
5119
5154
|
activeAgents: number(),
|
|
@@ -5122,35 +5157,35 @@ var Ii = object({
|
|
|
5122
5157
|
cancelAt: string().optional(),
|
|
5123
5158
|
trialEnd: string().optional(),
|
|
5124
5159
|
trialDaysRemaining: number().optional(),
|
|
5125
|
-
paymentMethod:
|
|
5126
|
-
invoices: array(
|
|
5160
|
+
paymentMethod: aa.optional(),
|
|
5161
|
+
invoices: array(oa),
|
|
5127
5162
|
stripeError: string().optional()
|
|
5128
|
-
}),
|
|
5163
|
+
}), ca = object({
|
|
5129
5164
|
orgId: string(),
|
|
5130
5165
|
agentName: string().optional(),
|
|
5131
5166
|
runtime: string().optional()
|
|
5132
|
-
}),
|
|
5167
|
+
}), la = object({
|
|
5133
5168
|
created: number(),
|
|
5134
5169
|
skipped: number(),
|
|
5135
5170
|
errors: array(string())
|
|
5136
|
-
}),
|
|
5171
|
+
}), ua = object({
|
|
5137
5172
|
updated: number(),
|
|
5138
5173
|
errors: array(string())
|
|
5139
|
-
}),
|
|
5174
|
+
}), da = Wr, fa = object({
|
|
5140
5175
|
code: q,
|
|
5141
5176
|
message: string(),
|
|
5142
5177
|
bucket: _enum(["account", "error"]).optional(),
|
|
5143
5178
|
actionLabel: string().optional(),
|
|
5144
5179
|
actionUrl: string().optional(),
|
|
5145
5180
|
help: string().optional()
|
|
5146
|
-
}),
|
|
5181
|
+
}), pa = discriminatedUnion("event", [
|
|
5147
5182
|
object({
|
|
5148
5183
|
event: literal("status"),
|
|
5149
|
-
data:
|
|
5184
|
+
data: da
|
|
5150
5185
|
}),
|
|
5151
5186
|
object({
|
|
5152
5187
|
event: literal("message"),
|
|
5153
|
-
data: object({ message:
|
|
5188
|
+
data: object({ message: Li })
|
|
5154
5189
|
}),
|
|
5155
5190
|
object({
|
|
5156
5191
|
event: literal("message_delta"),
|
|
@@ -5182,7 +5217,7 @@ var Ii = object({
|
|
|
5182
5217
|
}),
|
|
5183
5218
|
object({
|
|
5184
5219
|
event: literal("error"),
|
|
5185
|
-
data:
|
|
5220
|
+
data: fa
|
|
5186
5221
|
})
|
|
5187
5222
|
]);
|
|
5188
5223
|
function chatEventUserTurnId(e) {
|
|
@@ -5334,7 +5369,7 @@ function parseChatEvent(e) {
|
|
|
5334
5369
|
for (let e of t) e.startsWith("event:") ? n = e.slice(6).trim() : e.startsWith("data:") && (r = e.slice(5).trim());
|
|
5335
5370
|
if (!n || r === void 0) return null;
|
|
5336
5371
|
try {
|
|
5337
|
-
let e =
|
|
5372
|
+
let e = pa.safeParse({
|
|
5338
5373
|
event: n,
|
|
5339
5374
|
data: JSON.parse(r)
|
|
5340
5375
|
});
|
|
@@ -5345,7 +5380,7 @@ function parseChatEvent(e) {
|
|
|
5345
5380
|
}
|
|
5346
5381
|
//#endregion
|
|
5347
5382
|
//#region ../core/dist/wire/chat-card.js
|
|
5348
|
-
var
|
|
5383
|
+
var ma = object({
|
|
5349
5384
|
label: string().trim().min(1).max(40),
|
|
5350
5385
|
reply: string().trim().min(1).max(500),
|
|
5351
5386
|
style: _enum([
|
|
@@ -5353,11 +5388,11 @@ var la = object({
|
|
|
5353
5388
|
"default",
|
|
5354
5389
|
"destructive"
|
|
5355
5390
|
]).optional()
|
|
5356
|
-
}).strip(),
|
|
5391
|
+
}).strip(), ha = object({
|
|
5357
5392
|
version: literal(1),
|
|
5358
5393
|
title: string().trim().min(1).max(200),
|
|
5359
5394
|
body: string().trim().min(1).max(4e3).optional(),
|
|
5360
|
-
actions: array(
|
|
5395
|
+
actions: array(ma).min(1).max(3).optional()
|
|
5361
5396
|
}).strip();
|
|
5362
5397
|
function parseChatCardFencePayload(e) {
|
|
5363
5398
|
let t;
|
|
@@ -5370,7 +5405,7 @@ function parseChatCardFencePayload(e) {
|
|
|
5370
5405
|
message: e instanceof Error ? e.message : "Invalid JSON"
|
|
5371
5406
|
};
|
|
5372
5407
|
}
|
|
5373
|
-
let n =
|
|
5408
|
+
let n = ha.safeParse(t);
|
|
5374
5409
|
return n.success ? {
|
|
5375
5410
|
ok: !0,
|
|
5376
5411
|
spec: n.data
|
|
@@ -5382,36 +5417,36 @@ function parseChatCardFencePayload(e) {
|
|
|
5382
5417
|
}
|
|
5383
5418
|
//#endregion
|
|
5384
5419
|
//#region ../core/dist/wire/chat-visual.js
|
|
5385
|
-
var
|
|
5420
|
+
var ga = string().trim().min(1).max(240), _a = 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), va = record(X, union([
|
|
5386
5421
|
string().max(500),
|
|
5387
5422
|
number().finite(),
|
|
5388
5423
|
boolean(),
|
|
5389
5424
|
_null()
|
|
5390
|
-
])),
|
|
5425
|
+
])), ya = _enum([
|
|
5391
5426
|
"compact",
|
|
5392
5427
|
"currency",
|
|
5393
5428
|
"duration",
|
|
5394
5429
|
"integer",
|
|
5395
5430
|
"percent",
|
|
5396
5431
|
"raw"
|
|
5397
|
-
]),
|
|
5398
|
-
title:
|
|
5399
|
-
description:
|
|
5400
|
-
footer:
|
|
5401
|
-
}).strip(),
|
|
5432
|
+
]), ba = object({
|
|
5433
|
+
title: ga,
|
|
5434
|
+
description: _a.optional(),
|
|
5435
|
+
footer: _a.optional()
|
|
5436
|
+
}).strip(), xa = object({
|
|
5402
5437
|
dataKey: X,
|
|
5403
5438
|
label: Z.optional(),
|
|
5404
5439
|
axisLabel: Z.optional(),
|
|
5405
|
-
valueFormat:
|
|
5440
|
+
valueFormat: ya.optional(),
|
|
5406
5441
|
valuePrefix: string().trim().max(12).optional(),
|
|
5407
5442
|
valueSuffix: string().trim().max(12).optional()
|
|
5408
|
-
}).strip(),
|
|
5443
|
+
}).strip(), Sa = object({
|
|
5409
5444
|
kind: literal("linear"),
|
|
5410
5445
|
dataKey: X,
|
|
5411
5446
|
label: Z.optional()
|
|
5412
|
-
}).strip(),
|
|
5447
|
+
}).strip(), Ca = object({
|
|
5413
5448
|
version: literal(1),
|
|
5414
|
-
meta:
|
|
5449
|
+
meta: ba,
|
|
5415
5450
|
fallbackMarkdown: string().trim().min(1).max(4e3)
|
|
5416
5451
|
}).strip();
|
|
5417
5452
|
function dataKeys(e) {
|
|
@@ -5453,7 +5488,7 @@ function requireNumericDataKeys(e, t, n) {
|
|
|
5453
5488
|
});
|
|
5454
5489
|
}
|
|
5455
5490
|
}
|
|
5456
|
-
var
|
|
5491
|
+
var wa = discriminatedUnion("chartType", [Ca.extend({
|
|
5457
5492
|
visualType: literal("chart"),
|
|
5458
5493
|
chartType: _enum([
|
|
5459
5494
|
"bar",
|
|
@@ -5462,11 +5497,11 @@ var ya = discriminatedUnion("chartType", [va.extend({
|
|
|
5462
5497
|
]),
|
|
5463
5498
|
xKey: X,
|
|
5464
5499
|
xAxisLabel: Z.optional(),
|
|
5465
|
-
series: array(
|
|
5466
|
-
data: array(
|
|
5500
|
+
series: array(xa).min(1).max(6),
|
|
5501
|
+
data: array(va).min(1).max(120),
|
|
5467
5502
|
layout: _enum(["horizontal", "vertical"]).optional(),
|
|
5468
5503
|
stacking: _enum(["grouped", "stacked"]).optional(),
|
|
5469
|
-
trendLine:
|
|
5504
|
+
trendLine: Sa.optional()
|
|
5470
5505
|
}).strip().superRefine((e, t) => {
|
|
5471
5506
|
e.stacking && e.chartType !== "bar" && t.addIssue({
|
|
5472
5507
|
code: "custom",
|
|
@@ -5504,13 +5539,13 @@ var ya = discriminatedUnion("chartType", [va.extend({
|
|
|
5504
5539
|
path: ["trendLine", "dataKey"],
|
|
5505
5540
|
value: e.trendLine.dataKey
|
|
5506
5541
|
}] : []], t);
|
|
5507
|
-
}),
|
|
5542
|
+
}), Ca.extend({
|
|
5508
5543
|
visualType: literal("chart"),
|
|
5509
5544
|
chartType: literal("pie"),
|
|
5510
5545
|
nameKey: X,
|
|
5511
5546
|
valueKey: X,
|
|
5512
|
-
series: array(
|
|
5513
|
-
data: array(
|
|
5547
|
+
series: array(xa).max(1).optional(),
|
|
5548
|
+
data: array(va).min(1).max(16)
|
|
5514
5549
|
}).strip().superRefine((e, t) => {
|
|
5515
5550
|
requireDataKeys(e.data, [
|
|
5516
5551
|
{
|
|
@@ -5534,10 +5569,10 @@ var ya = discriminatedUnion("chartType", [va.extend({
|
|
|
5534
5569
|
value: e.valueKey,
|
|
5535
5570
|
nonnegative: !0
|
|
5536
5571
|
}], t);
|
|
5537
|
-
})]),
|
|
5572
|
+
})]), Ta = object({
|
|
5538
5573
|
id: X,
|
|
5539
5574
|
label: Z,
|
|
5540
|
-
detail:
|
|
5575
|
+
detail: _a.optional(),
|
|
5541
5576
|
kind: _enum([
|
|
5542
5577
|
"actor",
|
|
5543
5578
|
"agent",
|
|
@@ -5548,11 +5583,11 @@ var ya = discriminatedUnion("chartType", [va.extend({
|
|
|
5548
5583
|
"system",
|
|
5549
5584
|
"task"
|
|
5550
5585
|
]).optional()
|
|
5551
|
-
}).strip(),
|
|
5586
|
+
}).strip(), Ea = object({
|
|
5552
5587
|
from: X,
|
|
5553
5588
|
to: X,
|
|
5554
5589
|
label: Z.optional()
|
|
5555
|
-
}).strip(),
|
|
5590
|
+
}).strip(), Da = union([wa, Ca.extend({
|
|
5556
5591
|
visualType: literal("diagram"),
|
|
5557
5592
|
diagramType: _enum([
|
|
5558
5593
|
"flow",
|
|
@@ -5566,8 +5601,8 @@ var ya = discriminatedUnion("chartType", [va.extend({
|
|
|
5566
5601
|
"radial",
|
|
5567
5602
|
"top-to-bottom"
|
|
5568
5603
|
]).default("auto"),
|
|
5569
|
-
nodes: array(
|
|
5570
|
-
edges: array(
|
|
5604
|
+
nodes: array(Ta).min(1).max(24),
|
|
5605
|
+
edges: array(Ea).max(48)
|
|
5571
5606
|
}).strip().superRefine((e, t) => {
|
|
5572
5607
|
let n = new Set(e.nodes.map((e) => e.id));
|
|
5573
5608
|
for (let [r, i] of e.edges.entries()) n.has(i.from) || t.addIssue({
|
|
@@ -5726,11 +5761,11 @@ function parseChatVisualFencePayload(e) {
|
|
|
5726
5761
|
fallbackMarkdown: r
|
|
5727
5762
|
};
|
|
5728
5763
|
}
|
|
5729
|
-
let n =
|
|
5764
|
+
let n = Da.safeParse(t);
|
|
5730
5765
|
if (!n.success) {
|
|
5731
5766
|
let e = normalizeSimpleChartJson(t) ?? normalizeAliasedChartJson(t);
|
|
5732
5767
|
if (e) {
|
|
5733
|
-
let t =
|
|
5768
|
+
let t = Da.safeParse(e);
|
|
5734
5769
|
if (t.success) return {
|
|
5735
5770
|
ok: !0,
|
|
5736
5771
|
spec: t.data
|
|
@@ -5755,7 +5790,7 @@ function extractChatVisualFencePayloads(e) {
|
|
|
5755
5790
|
}
|
|
5756
5791
|
//#endregion
|
|
5757
5792
|
//#region ../core/dist/wire/conversation.js
|
|
5758
|
-
var
|
|
5793
|
+
var Oa = object({
|
|
5759
5794
|
type: _enum([
|
|
5760
5795
|
"user",
|
|
5761
5796
|
"agent",
|
|
@@ -5775,7 +5810,7 @@ var Ca = object({
|
|
|
5775
5810
|
displayName: string().optional(),
|
|
5776
5811
|
handle: string().optional(),
|
|
5777
5812
|
avatarUrl: string().optional()
|
|
5778
|
-
}).strict(),
|
|
5813
|
+
}).strict(), ka = object({
|
|
5779
5814
|
messageId: string(),
|
|
5780
5815
|
role: _enum([
|
|
5781
5816
|
"user",
|
|
@@ -5785,7 +5820,7 @@ var Ca = object({
|
|
|
5785
5820
|
content: string(),
|
|
5786
5821
|
sequence: string(),
|
|
5787
5822
|
createdAt: string()
|
|
5788
|
-
}),
|
|
5823
|
+
}), Aa = object({
|
|
5789
5824
|
conversationId: string(),
|
|
5790
5825
|
orgId: string(),
|
|
5791
5826
|
kind: _enum(["direct", "group"]),
|
|
@@ -5795,30 +5830,30 @@ var Ca = object({
|
|
|
5795
5830
|
"requester",
|
|
5796
5831
|
"member"
|
|
5797
5832
|
]),
|
|
5798
|
-
participants: array(
|
|
5799
|
-
lastMessage:
|
|
5833
|
+
participants: array(Oa),
|
|
5834
|
+
lastMessage: ka.nullable(),
|
|
5800
5835
|
unreadCount: number().int().nonnegative(),
|
|
5801
5836
|
latestSequence: string().nullable()
|
|
5802
|
-
}),
|
|
5837
|
+
}), ja = object({ sequence: string().min(1) }), Ma = object({ turnId: string().min(1).optional() }).strict(), Na = object({
|
|
5803
5838
|
cancelled: boolean(),
|
|
5804
5839
|
cancelledTurnIds: array(string())
|
|
5805
|
-
}).strict(),
|
|
5840
|
+
}).strict(), Pa = object({
|
|
5806
5841
|
conversationId: string(),
|
|
5807
5842
|
messageId: string(),
|
|
5808
5843
|
sequence: string(),
|
|
5809
5844
|
snippet: string(),
|
|
5810
5845
|
createdAt: string(),
|
|
5811
|
-
participants: array(
|
|
5812
|
-
}),
|
|
5846
|
+
participants: array(Oa)
|
|
5847
|
+
}), Fa = object({
|
|
5813
5848
|
conversationId: string(),
|
|
5814
|
-
lastMessage:
|
|
5849
|
+
lastMessage: ka.nullable(),
|
|
5815
5850
|
unreadCount: number().int().nonnegative(),
|
|
5816
5851
|
latestSequence: string().nullable()
|
|
5817
|
-
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()),
|
|
5852
|
+
}), Q = preprocess((e) => e === void 0 ? null : e, string().nullable()), Ia = preprocess((e) => e === void 0 ? null : e, L.nullable()), La = preprocess((e) => e === void 0 ? null : e, I.nullable()), Ra = preprocess((e) => e === void 0 ? null : e, _enum([
|
|
5818
5853
|
"user",
|
|
5819
5854
|
"assistant",
|
|
5820
5855
|
"system"
|
|
5821
|
-
]).nullable()),
|
|
5856
|
+
]).nullable()), za = preprocess((e) => e === void 0 ? 0 : e, number()), Ba = object({
|
|
5822
5857
|
agentId: string(),
|
|
5823
5858
|
handle: string(),
|
|
5824
5859
|
name: string(),
|
|
@@ -5827,19 +5862,19 @@ var Ca = object({
|
|
|
5827
5862
|
orgHandle: Q,
|
|
5828
5863
|
ownerEmail: Q,
|
|
5829
5864
|
ownerName: Q,
|
|
5830
|
-
state:
|
|
5831
|
-
desiredStatus:
|
|
5865
|
+
state: Ia,
|
|
5866
|
+
desiredStatus: La,
|
|
5832
5867
|
runtime: string(),
|
|
5833
5868
|
imageVersion: Q,
|
|
5834
5869
|
lastHealthyAt: Q,
|
|
5835
5870
|
lastActiveAt: Q,
|
|
5836
5871
|
lastUserMessageAt: Q,
|
|
5837
5872
|
lastMessageAt: Q,
|
|
5838
|
-
lastMessageRole:
|
|
5873
|
+
lastMessageRole: Ra,
|
|
5839
5874
|
lastMessageChannel: Q,
|
|
5840
5875
|
primaryChannel: Q,
|
|
5841
|
-
totalMessages:
|
|
5842
|
-
totalSessions:
|
|
5876
|
+
totalMessages: za,
|
|
5877
|
+
totalSessions: za,
|
|
5843
5878
|
error: Q,
|
|
5844
5879
|
appHandle: string(),
|
|
5845
5880
|
flyAppExists: boolean(),
|
|
@@ -5848,7 +5883,7 @@ var Ca = object({
|
|
|
5848
5883
|
billingActive: boolean(),
|
|
5849
5884
|
createdAt: string(),
|
|
5850
5885
|
updatedAt: string()
|
|
5851
|
-
}),
|
|
5886
|
+
}), Va = object({
|
|
5852
5887
|
running: number(),
|
|
5853
5888
|
stopped: number(),
|
|
5854
5889
|
error: number(),
|
|
@@ -5856,27 +5891,27 @@ var Ca = object({
|
|
|
5856
5891
|
stopping: number(),
|
|
5857
5892
|
unknown: number(),
|
|
5858
5893
|
total: number()
|
|
5859
|
-
}),
|
|
5860
|
-
agents: array(
|
|
5861
|
-
summary:
|
|
5894
|
+
}), Ha = object({
|
|
5895
|
+
agents: array(Ba),
|
|
5896
|
+
summary: Va,
|
|
5862
5897
|
orphanedApps: array(string()),
|
|
5863
5898
|
flyAppCount: number().optional(),
|
|
5864
5899
|
latestVersion: string().optional(),
|
|
5865
5900
|
latestVersions: record(string(), string()).optional()
|
|
5866
|
-
}),
|
|
5901
|
+
}), $ = k, Ua = O, Wa = object({
|
|
5867
5902
|
mediaId: string(),
|
|
5868
5903
|
src: string(),
|
|
5869
5904
|
alt: string().nullable().optional(),
|
|
5870
5905
|
filename: string().optional(),
|
|
5871
5906
|
displayName: string().nullable().optional(),
|
|
5872
5907
|
mimeType: string().optional(),
|
|
5873
|
-
mediaType:
|
|
5874
|
-
type:
|
|
5908
|
+
mediaType: Ua.optional(),
|
|
5909
|
+
type: Ua.optional(),
|
|
5875
5910
|
size: number().optional(),
|
|
5876
5911
|
width: number().nullable().optional(),
|
|
5877
5912
|
height: number().nullable().optional(),
|
|
5878
5913
|
duration: number().nullable().optional(),
|
|
5879
|
-
context:
|
|
5914
|
+
context: $.nullable().optional(),
|
|
5880
5915
|
blurhash: string().nullable().optional(),
|
|
5881
5916
|
quality: string().optional(),
|
|
5882
5917
|
status: string().optional(),
|
|
@@ -5885,13 +5920,13 @@ var Ca = object({
|
|
|
5885
5920
|
agentId: string().nullable().optional(),
|
|
5886
5921
|
createdAt: string().optional(),
|
|
5887
5922
|
updatedAt: string().optional()
|
|
5888
|
-
}),
|
|
5923
|
+
}), Ga = object({
|
|
5889
5924
|
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."),
|
|
5890
|
-
context:
|
|
5925
|
+
context: $.optional().default("general"),
|
|
5891
5926
|
agentId: string().optional(),
|
|
5892
5927
|
orgId: string().optional(),
|
|
5893
5928
|
duration: number().optional()
|
|
5894
|
-
}),
|
|
5929
|
+
}), Ka = object({
|
|
5895
5930
|
mediaId: string().optional(),
|
|
5896
5931
|
src: string().optional(),
|
|
5897
5932
|
alt: string().optional(),
|
|
@@ -5900,7 +5935,7 @@ var Ca = object({
|
|
|
5900
5935
|
mimeType: string().optional(),
|
|
5901
5936
|
mediaType: string().optional(),
|
|
5902
5937
|
blurhash: string().optional()
|
|
5903
|
-
}),
|
|
5938
|
+
}), qa = object({
|
|
5904
5939
|
membershipId: string(),
|
|
5905
5940
|
userId: string(),
|
|
5906
5941
|
orgId: string(),
|
|
@@ -5915,15 +5950,15 @@ var Ca = object({
|
|
|
5915
5950
|
status: _enum(["active", "suspended"]),
|
|
5916
5951
|
joinedAt: string(),
|
|
5917
5952
|
lastSeenAt: string().optional(),
|
|
5918
|
-
avatar:
|
|
5919
|
-
}),
|
|
5953
|
+
avatar: Ka.optional()
|
|
5954
|
+
}), Ja = object({
|
|
5920
5955
|
invitationId: string(),
|
|
5921
5956
|
email: string(),
|
|
5922
5957
|
role: _enum(["admin", "member"]),
|
|
5923
5958
|
status: string(),
|
|
5924
5959
|
expiresAt: string(),
|
|
5925
5960
|
createdAt: string()
|
|
5926
|
-
}),
|
|
5961
|
+
}), Ya = object({
|
|
5927
5962
|
token: string(),
|
|
5928
5963
|
email: string(),
|
|
5929
5964
|
orgId: string(),
|
|
@@ -5945,20 +5980,20 @@ var Ca = object({
|
|
|
5945
5980
|
]),
|
|
5946
5981
|
expiresAt: string(),
|
|
5947
5982
|
memberCount: number().optional()
|
|
5948
|
-
}),
|
|
5983
|
+
}), Xa = object({
|
|
5949
5984
|
email: string().email(),
|
|
5950
5985
|
role: _enum(["admin", "member"]).optional(),
|
|
5951
5986
|
message: string().max(500).optional()
|
|
5952
|
-
}).strict(),
|
|
5987
|
+
}).strict(), Za = object({ role: _enum(["admin", "member"]) }).strict(), Qa = object({ token: string().min(1) }).strict(), $a = _enum([
|
|
5953
5988
|
"planLimit",
|
|
5954
5989
|
"billingOverdue",
|
|
5955
5990
|
"rebuilding",
|
|
5956
5991
|
"agentNotFound"
|
|
5957
|
-
]),
|
|
5992
|
+
]), eo = _enum([
|
|
5958
5993
|
"rebuilding",
|
|
5959
5994
|
"provisioning",
|
|
5960
5995
|
"billingOverdue"
|
|
5961
|
-
]),
|
|
5996
|
+
]), to = object({
|
|
5962
5997
|
agentId: string(),
|
|
5963
5998
|
name: string(),
|
|
5964
5999
|
avatar: A.optional(),
|
|
@@ -5978,21 +6013,21 @@ var Ca = object({
|
|
|
5978
6013
|
detail: string().optional(),
|
|
5979
6014
|
blocker: P.optional(),
|
|
5980
6015
|
canWake: boolean(),
|
|
5981
|
-
cantWakeReason:
|
|
6016
|
+
cantWakeReason: $a.optional(),
|
|
5982
6017
|
canRebuild: boolean(),
|
|
5983
|
-
cantRebuildReason:
|
|
5984
|
-
}),
|
|
5985
|
-
zNotificationTelemetryAck: () =>
|
|
5986
|
-
zNotificationTelemetryEvent: () =>
|
|
5987
|
-
zRegisterDeviceRequest: () =>
|
|
5988
|
-
zRegisterDeviceResponse: () =>
|
|
5989
|
-
}),
|
|
6018
|
+
cantRebuildReason: eo.optional()
|
|
6019
|
+
}), no = /* @__PURE__ */ t({
|
|
6020
|
+
zNotificationTelemetryAck: () => oo,
|
|
6021
|
+
zNotificationTelemetryEvent: () => ao,
|
|
6022
|
+
zRegisterDeviceRequest: () => ro,
|
|
6023
|
+
zRegisterDeviceResponse: () => io
|
|
6024
|
+
}), ro = object({
|
|
5990
6025
|
deviceId: string().min(1).max(64),
|
|
5991
6026
|
pushToken: string().min(1).max(200),
|
|
5992
6027
|
appVersion: string().max(40).optional(),
|
|
5993
6028
|
osVersion: string().max(40).optional(),
|
|
5994
6029
|
model: string().max(80).optional()
|
|
5995
|
-
}),
|
|
6030
|
+
}), io = object({ deviceId: string().min(1).max(64) }), ao = object({
|
|
5996
6031
|
deviceId: string().min(1).max(64),
|
|
5997
6032
|
kind: string().min(1).max(30),
|
|
5998
6033
|
action: _enum([
|
|
@@ -6001,7 +6036,7 @@ var Ca = object({
|
|
|
6001
6036
|
"dismissed"
|
|
6002
6037
|
]),
|
|
6003
6038
|
messageId: string().max(32).optional()
|
|
6004
|
-
}),
|
|
6039
|
+
}), oo = object({ updated: boolean() }), so = H.pick({
|
|
6005
6040
|
orgId: !0,
|
|
6006
6041
|
handle: !0,
|
|
6007
6042
|
name: !0,
|
|
@@ -6015,13 +6050,13 @@ var Ca = object({
|
|
|
6015
6050
|
status: !0,
|
|
6016
6051
|
updatedAt: !0
|
|
6017
6052
|
}).extend({
|
|
6018
|
-
avatar:
|
|
6019
|
-
cover:
|
|
6020
|
-
}),
|
|
6053
|
+
avatar: Wa.nullable().optional(),
|
|
6054
|
+
cover: Wa.nullable().optional()
|
|
6055
|
+
}), co = object({
|
|
6021
6056
|
name: string().min(1).max(255),
|
|
6022
6057
|
handle: string().min(2).max(50).optional(),
|
|
6023
6058
|
timezone: K.optional()
|
|
6024
|
-
}).strict(),
|
|
6059
|
+
}).strict(), lo = H.pick({
|
|
6025
6060
|
name: !0,
|
|
6026
6061
|
email: !0,
|
|
6027
6062
|
website: !0,
|
|
@@ -6033,11 +6068,11 @@ var Ca = object({
|
|
|
6033
6068
|
timezone: K.optional(),
|
|
6034
6069
|
avatarMediaId: string().nullable().optional(),
|
|
6035
6070
|
coverMediaId: string().nullable().optional()
|
|
6036
|
-
}).strict(),
|
|
6071
|
+
}).strict(), uo = _enum([
|
|
6037
6072
|
"success",
|
|
6038
6073
|
"info",
|
|
6039
6074
|
"warning"
|
|
6040
|
-
]),
|
|
6075
|
+
]), fo = object({
|
|
6041
6076
|
org: object({
|
|
6042
6077
|
orgId: string(),
|
|
6043
6078
|
name: string(),
|
|
@@ -6046,7 +6081,7 @@ var Ca = object({
|
|
|
6046
6081
|
plan: object({
|
|
6047
6082
|
key: string(),
|
|
6048
6083
|
label: string(),
|
|
6049
|
-
tone:
|
|
6084
|
+
tone: uo,
|
|
6050
6085
|
status: string(),
|
|
6051
6086
|
trialDaysRemaining: number().optional()
|
|
6052
6087
|
}),
|
|
@@ -6067,15 +6102,15 @@ function zPaginatedResponse(e) {
|
|
|
6067
6102
|
}
|
|
6068
6103
|
//#endregion
|
|
6069
6104
|
//#region ../core/dist/wire/public-services.js
|
|
6070
|
-
var
|
|
6105
|
+
var po = object({
|
|
6071
6106
|
sender: _enum(["user", "agent"]),
|
|
6072
6107
|
text: string()
|
|
6073
|
-
}),
|
|
6108
|
+
}), mo = _enum([
|
|
6074
6109
|
"works-now",
|
|
6075
6110
|
"guided-setup",
|
|
6076
6111
|
"coming-soon",
|
|
6077
6112
|
"custom-workflow"
|
|
6078
|
-
]),
|
|
6113
|
+
]), ho = object({
|
|
6079
6114
|
docsUrl: string(),
|
|
6080
6115
|
verifiedAt: string(),
|
|
6081
6116
|
version: string().optional(),
|
|
@@ -6087,11 +6122,11 @@ var so = object({
|
|
|
6087
6122
|
"unversioned"
|
|
6088
6123
|
]),
|
|
6089
6124
|
note: string().optional()
|
|
6090
|
-
}),
|
|
6125
|
+
}), go = object({
|
|
6091
6126
|
key: string(),
|
|
6092
6127
|
label: string(),
|
|
6093
6128
|
rank: number()
|
|
6094
|
-
}),
|
|
6129
|
+
}), _o = object({
|
|
6095
6130
|
text: string(),
|
|
6096
6131
|
tone: _enum([
|
|
6097
6132
|
"info",
|
|
@@ -6099,7 +6134,7 @@ var so = object({
|
|
|
6099
6134
|
"success",
|
|
6100
6135
|
"danger"
|
|
6101
6136
|
])
|
|
6102
|
-
}),
|
|
6137
|
+
}), vo = object({
|
|
6103
6138
|
serviceKey: string(),
|
|
6104
6139
|
name: string(),
|
|
6105
6140
|
description: string(),
|
|
@@ -6109,16 +6144,16 @@ var so = object({
|
|
|
6109
6144
|
category: string(),
|
|
6110
6145
|
categoryLabel: string(),
|
|
6111
6146
|
categoryRank: number(),
|
|
6112
|
-
secondaryCategories: array(
|
|
6113
|
-
badges: array(
|
|
6147
|
+
secondaryCategories: array(go),
|
|
6148
|
+
badges: array(_o),
|
|
6114
6149
|
tags: array(string()),
|
|
6115
6150
|
searchAliases: array(string()),
|
|
6116
6151
|
jtbd: string(),
|
|
6117
6152
|
useCase: string(),
|
|
6118
6153
|
demoScenario: string(),
|
|
6119
|
-
sampleConversation: array(
|
|
6120
|
-
publicStatus:
|
|
6121
|
-
apiVerification:
|
|
6154
|
+
sampleConversation: array(po),
|
|
6155
|
+
publicStatus: mo,
|
|
6156
|
+
apiVerification: ho.optional(),
|
|
6122
6157
|
setupDifficulty: string(),
|
|
6123
6158
|
risk: string(),
|
|
6124
6159
|
price: string(),
|
|
@@ -6131,12 +6166,12 @@ var so = object({
|
|
|
6131
6166
|
]),
|
|
6132
6167
|
setupSummary: string().optional(),
|
|
6133
6168
|
pagePath: string()
|
|
6134
|
-
}),
|
|
6169
|
+
}), yo = object({
|
|
6135
6170
|
fullName: string().min(1).max(100).optional(),
|
|
6136
6171
|
avatarMediaId: string().nullable().optional(),
|
|
6137
6172
|
primaryAgentId: string().nullable().optional(),
|
|
6138
6173
|
lastActiveOrgId: string().nullable().optional()
|
|
6139
|
-
}).strict(),
|
|
6174
|
+
}).strict(), bo = /* @__PURE__ */ t({
|
|
6140
6175
|
ASSISTANT_SILENCE_CONTROLS: () => U,
|
|
6141
6176
|
ActionAreaSchema: () => Ir,
|
|
6142
6177
|
ActionButtonSchema: () => M,
|
|
@@ -6223,7 +6258,7 @@ var so = object({
|
|
|
6223
6258
|
loginSchema: () => ti,
|
|
6224
6259
|
mapAuthErrorCode: () => mapAuthErrorCode,
|
|
6225
6260
|
nanoid: () => nanoid$1,
|
|
6226
|
-
notificationWire: () =>
|
|
6261
|
+
notificationWire: () => no,
|
|
6227
6262
|
objectId: () => objectId,
|
|
6228
6263
|
orgInfoSchema: () => di,
|
|
6229
6264
|
orgSchema: () => H,
|
|
@@ -6245,102 +6280,105 @@ var so = object({
|
|
|
6245
6280
|
verifyCodeSchema: () => ri,
|
|
6246
6281
|
warn: () => ee,
|
|
6247
6282
|
withChatEventTurnId: () => withChatEventTurnId,
|
|
6248
|
-
zAcceptInvitationBody: () =>
|
|
6249
|
-
zAccessibleAgentRow: () =>
|
|
6283
|
+
zAcceptInvitationBody: () => Qa,
|
|
6284
|
+
zAccessibleAgentRow: () => to,
|
|
6250
6285
|
zAgentRow: () => Si,
|
|
6251
6286
|
zApiError: () => Ei,
|
|
6252
6287
|
zApiOk: () => zApiOk,
|
|
6253
6288
|
zApiResponse: () => zApiResponse,
|
|
6254
|
-
zAppleAuthBody: () =>
|
|
6255
|
-
zAuthSessionData: () =>
|
|
6256
|
-
zAuthSessionResponse: () =>
|
|
6289
|
+
zAppleAuthBody: () => Ji,
|
|
6290
|
+
zAuthSessionData: () => Yi,
|
|
6291
|
+
zAuthSessionResponse: () => Xi,
|
|
6257
6292
|
zAutomationPrimaryChannel: () => yi,
|
|
6258
|
-
zBackfillBillingData: () =>
|
|
6259
|
-
zBackfillCustomersData: () =>
|
|
6260
|
-
zBillingDetails: () =>
|
|
6261
|
-
zBillingInvoice: () =>
|
|
6262
|
-
zBillingPaymentMethod: () =>
|
|
6263
|
-
zBillingPlanKey: () =>
|
|
6264
|
-
zBillingStatus: () =>
|
|
6265
|
-
zBotGenerateImageBody: () =>
|
|
6266
|
-
zBotGenerateImageResponse: () =>
|
|
6267
|
-
zCancelConversationTurnBody: () =>
|
|
6268
|
-
zCancelConversationTurnResponse: () =>
|
|
6269
|
-
zCantRebuildReason: () =>
|
|
6270
|
-
zCantWakeReason: () =>
|
|
6293
|
+
zBackfillBillingData: () => ua,
|
|
6294
|
+
zBackfillCustomersData: () => la,
|
|
6295
|
+
zBillingDetails: () => sa,
|
|
6296
|
+
zBillingInvoice: () => oa,
|
|
6297
|
+
zBillingPaymentMethod: () => aa,
|
|
6298
|
+
zBillingPlanKey: () => ra,
|
|
6299
|
+
zBillingStatus: () => ia,
|
|
6300
|
+
zBotGenerateImageBody: () => Ki,
|
|
6301
|
+
zBotGenerateImageResponse: () => qi,
|
|
6302
|
+
zCancelConversationTurnBody: () => Ma,
|
|
6303
|
+
zCancelConversationTurnResponse: () => Na,
|
|
6304
|
+
zCantRebuildReason: () => eo,
|
|
6305
|
+
zCantWakeReason: () => $a,
|
|
6271
6306
|
zChatAttachment: () => Y,
|
|
6272
|
-
zChatAttachmentInput: () =>
|
|
6307
|
+
zChatAttachmentInput: () => Ri,
|
|
6273
6308
|
zChatAttachmentPlacement: () => Ai,
|
|
6274
|
-
zChatCardSpec: () =>
|
|
6275
|
-
zChatErrorData: () =>
|
|
6276
|
-
zChatEvent: () =>
|
|
6309
|
+
zChatCardSpec: () => ha,
|
|
6310
|
+
zChatErrorData: () => fa,
|
|
6311
|
+
zChatEvent: () => pa,
|
|
6277
6312
|
zChatIssue: () => P,
|
|
6278
|
-
zChatMessage: () =>
|
|
6279
|
-
|
|
6280
|
-
|
|
6313
|
+
zChatMessage: () => Li,
|
|
6314
|
+
zChatMessageAttentionItem: () => Pi,
|
|
6315
|
+
zChatMessageAttentionRef: () => ji,
|
|
6316
|
+
zChatMessageAttentionUpdate: () => Fi,
|
|
6317
|
+
zChatMessageMetadata: () => Ii,
|
|
6318
|
+
zChatStatusData: () => da,
|
|
6281
6319
|
zChatToolActivityData: () => J,
|
|
6282
6320
|
zChatToolActivityVisual: () => Di,
|
|
6283
|
-
zChatVisualSpec: () =>
|
|
6284
|
-
zCompleteCheckoutData: () =>
|
|
6285
|
-
zConversationLastMessage: () =>
|
|
6286
|
-
zConversationParticipant: () =>
|
|
6287
|
-
zConversationSummary: () =>
|
|
6288
|
-
zConversationTarget: () =>
|
|
6289
|
-
zConversationUpdatedEvent: () =>
|
|
6321
|
+
zChatVisualSpec: () => Da,
|
|
6322
|
+
zCompleteCheckoutData: () => ca,
|
|
6323
|
+
zConversationLastMessage: () => ka,
|
|
6324
|
+
zConversationParticipant: () => Oa,
|
|
6325
|
+
zConversationSummary: () => Aa,
|
|
6326
|
+
zConversationTarget: () => Bi,
|
|
6327
|
+
zConversationUpdatedEvent: () => Fa,
|
|
6290
6328
|
zCreateAgentBody: () => bi,
|
|
6291
|
-
zCreateConversationBody: () =>
|
|
6292
|
-
zCreateConversationSessionBody: () =>
|
|
6293
|
-
zCreateOrgBody: () =>
|
|
6329
|
+
zCreateConversationBody: () => Vi,
|
|
6330
|
+
zCreateConversationSessionBody: () => Hi,
|
|
6331
|
+
zCreateOrgBody: () => co,
|
|
6294
6332
|
zDesiredStatus: () => I,
|
|
6295
6333
|
zErrorCode: () => q,
|
|
6296
|
-
zFleetAgent: () =>
|
|
6297
|
-
zFleetSummary: () =>
|
|
6298
|
-
zFleetSyncResponse: () =>
|
|
6299
|
-
zHandoffConsumeBody: () =>
|
|
6300
|
-
zHandoffConsumeData: () =>
|
|
6301
|
-
zHandoffConsumeResponse: () =>
|
|
6302
|
-
zHandoffMintBody: () =>
|
|
6303
|
-
zHandoffMintData: () =>
|
|
6304
|
-
zHandoffMintResponse: () =>
|
|
6334
|
+
zFleetAgent: () => Ba,
|
|
6335
|
+
zFleetSummary: () => Va,
|
|
6336
|
+
zFleetSyncResponse: () => Ha,
|
|
6337
|
+
zHandoffConsumeBody: () => ea,
|
|
6338
|
+
zHandoffConsumeData: () => ta,
|
|
6339
|
+
zHandoffConsumeResponse: () => na,
|
|
6340
|
+
zHandoffMintBody: () => Zi,
|
|
6341
|
+
zHandoffMintData: () => Qi,
|
|
6342
|
+
zHandoffMintResponse: () => $i,
|
|
6305
6343
|
zIanaTimezone: () => K,
|
|
6306
|
-
zImageAspectRatio: () =>
|
|
6307
|
-
zImageResolution: () =>
|
|
6308
|
-
zInvitationPreview: () =>
|
|
6309
|
-
zInvitationRow: () =>
|
|
6310
|
-
zInviteBody: () =>
|
|
6344
|
+
zImageAspectRatio: () => Wi,
|
|
6345
|
+
zImageResolution: () => Gi,
|
|
6346
|
+
zInvitationPreview: () => Ya,
|
|
6347
|
+
zInvitationRow: () => Ja,
|
|
6348
|
+
zInviteBody: () => Xa,
|
|
6311
6349
|
zLifecycle: () => L,
|
|
6312
6350
|
zLifecycleVerb: () => Yr,
|
|
6313
6351
|
zLiveStatus: () => Wr,
|
|
6314
|
-
zMarkReadBody: () =>
|
|
6315
|
-
zMediaContext: () =>
|
|
6316
|
-
zMediaObject: () =>
|
|
6317
|
-
zMediaType: () =>
|
|
6318
|
-
zMemberRow: () =>
|
|
6319
|
-
zMessageSearchResult: () =>
|
|
6320
|
-
zOrgRow: () =>
|
|
6321
|
-
zOrgSummary: () =>
|
|
6352
|
+
zMarkReadBody: () => ja,
|
|
6353
|
+
zMediaContext: () => $,
|
|
6354
|
+
zMediaObject: () => Wa,
|
|
6355
|
+
zMediaType: () => Ua,
|
|
6356
|
+
zMemberRow: () => qa,
|
|
6357
|
+
zMessageSearchResult: () => Pa,
|
|
6358
|
+
zOrgRow: () => so,
|
|
6359
|
+
zOrgSummary: () => fo,
|
|
6322
6360
|
zPaginatedResponse: () => zPaginatedResponse,
|
|
6323
|
-
zPlanTone: () =>
|
|
6361
|
+
zPlanTone: () => uo,
|
|
6324
6362
|
zProviderErrorKind: () => Ti,
|
|
6325
|
-
zPublicServiceOverview: () =>
|
|
6326
|
-
zReportMessageBody: () =>
|
|
6363
|
+
zPublicServiceOverview: () => vo,
|
|
6364
|
+
zReportMessageBody: () => Ui,
|
|
6327
6365
|
zRuntimeOperation: () => R,
|
|
6328
6366
|
zRuntimeOperationKind: () => Hr,
|
|
6329
6367
|
zRuntimeOperationStatus: () => Ur,
|
|
6330
|
-
zSendMessageBody: () =>
|
|
6368
|
+
zSendMessageBody: () => zi,
|
|
6331
6369
|
zSuggestedPrompt: () => Ci,
|
|
6332
6370
|
zUpdateAgentBody: () => xi,
|
|
6333
|
-
zUpdateOrgBody: () =>
|
|
6334
|
-
zUpdateRoleBody: () =>
|
|
6335
|
-
zUpdateUserBody: () =>
|
|
6336
|
-
zUploadMediaBody: () =>
|
|
6337
|
-
}),
|
|
6371
|
+
zUpdateOrgBody: () => lo,
|
|
6372
|
+
zUpdateRoleBody: () => Za,
|
|
6373
|
+
zUpdateUserBody: () => yo,
|
|
6374
|
+
zUploadMediaBody: () => Ga
|
|
6375
|
+
}), xo = "1.0.0";
|
|
6338
6376
|
function buildContract(e = {}) {
|
|
6339
6377
|
let t = e.now ?? /* @__PURE__ */ new Date(), toSchema = (e) => toJSONSchema(e, { unrepresentable: "any" }), n = {}, addSchema = (e, t) => {
|
|
6340
6378
|
let r = contractNameFor(e);
|
|
6341
6379
|
r && (n[r] = toSchema(t));
|
|
6342
6380
|
};
|
|
6343
|
-
for (let [e, t] of Object.entries(
|
|
6381
|
+
for (let [e, t] of Object.entries(bo)) {
|
|
6344
6382
|
if (t instanceof T) {
|
|
6345
6383
|
addSchema(e, t);
|
|
6346
6384
|
continue;
|
|
@@ -6348,7 +6386,7 @@ function buildContract(e = {}) {
|
|
|
6348
6386
|
if (e.endsWith("Wire") && t && typeof t == "object") for (let [e, n] of Object.entries(t)) n instanceof T && addSchema(e, n);
|
|
6349
6387
|
}
|
|
6350
6388
|
return {
|
|
6351
|
-
version:
|
|
6389
|
+
version: xo,
|
|
6352
6390
|
generatedAt: t.toISOString(),
|
|
6353
6391
|
schemas: n
|
|
6354
6392
|
};
|
|
@@ -6368,6 +6406,6 @@ function sortedReplacer(e, t) {
|
|
|
6368
6406
|
return t;
|
|
6369
6407
|
}
|
|
6370
6408
|
//#endregion
|
|
6371
|
-
export {
|
|
6409
|
+
export { xo as CONTRACT_VERSION, buildContract, serializeContract };
|
|
6372
6410
|
|
|
6373
6411
|
//# sourceMappingURL=contract.js.map
|