@wayai/cli 0.3.250 → 0.3.251
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/index.js +1563 -1477
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4888,6 +4888,99 @@ var init_fs_safety = __esm({
|
|
|
4888
4888
|
}
|
|
4889
4889
|
});
|
|
4890
4890
|
|
|
4891
|
+
// ../../packages/core/dist/chunk-YVY2TZK2.js
|
|
4892
|
+
var orgResourceIdParam, orgResourceFileIdParam, orgResourceFolderIdParam, hubOrgResourceParam, listOrgResourcesQuery, orgIdQuery, createOrgResourceBody, updateOrgResourceBody, createOrgResourceFolderBody, updateOrgResourceFolderBody, uploadOrgResourceFileBody, updateOrgResourceFileBody, uploadOrgSkillZipBody, linkOrgResourceBody;
|
|
4893
|
+
var init_chunk_YVY2TZK2 = __esm({
|
|
4894
|
+
"../../packages/core/dist/chunk-YVY2TZK2.js"() {
|
|
4895
|
+
"use strict";
|
|
4896
|
+
init_zod();
|
|
4897
|
+
orgResourceIdParam = external_exports.object({
|
|
4898
|
+
id: external_exports.string().uuid()
|
|
4899
|
+
});
|
|
4900
|
+
orgResourceFileIdParam = external_exports.object({
|
|
4901
|
+
file_id: external_exports.string().uuid()
|
|
4902
|
+
});
|
|
4903
|
+
orgResourceFolderIdParam = external_exports.object({
|
|
4904
|
+
folder_id: external_exports.string().uuid()
|
|
4905
|
+
});
|
|
4906
|
+
hubOrgResourceParam = external_exports.object({
|
|
4907
|
+
id: external_exports.string().uuid(),
|
|
4908
|
+
org_resource_id: external_exports.string().uuid()
|
|
4909
|
+
});
|
|
4910
|
+
listOrgResourcesQuery = external_exports.object({
|
|
4911
|
+
organization_id: external_exports.string().uuid(),
|
|
4912
|
+
hub_id: external_exports.string().uuid().optional()
|
|
4913
|
+
});
|
|
4914
|
+
orgIdQuery = external_exports.object({
|
|
4915
|
+
organization_id: external_exports.string().uuid()
|
|
4916
|
+
});
|
|
4917
|
+
createOrgResourceBody = external_exports.object({
|
|
4918
|
+
organization_id: external_exports.string().uuid(),
|
|
4919
|
+
resource_name: external_exports.string().min(1).max(255),
|
|
4920
|
+
resource_description: external_exports.string().max(1e3).nullish(),
|
|
4921
|
+
// Required (validated in the route layer, which names the field, since a refinement here
|
|
4922
|
+
// complicates the inferred input type for callers).
|
|
4923
|
+
skill_name: external_exports.string().min(1).max(255).nullish(),
|
|
4924
|
+
skill_version: external_exports.string().max(50).nullish(),
|
|
4925
|
+
enabled: external_exports.boolean().optional(),
|
|
4926
|
+
tags: external_exports.array(external_exports.string().uuid()).optional(),
|
|
4927
|
+
environment: external_exports.enum(["preview", "production", "all"]).optional()
|
|
4928
|
+
});
|
|
4929
|
+
updateOrgResourceBody = external_exports.object({
|
|
4930
|
+
resource_name: external_exports.string().min(1).max(255).optional(),
|
|
4931
|
+
resource_description: external_exports.string().max(1e3).nullish(),
|
|
4932
|
+
skill_name: external_exports.string().min(1).max(255).nullish(),
|
|
4933
|
+
skill_version: external_exports.string().max(50).nullish(),
|
|
4934
|
+
enabled: external_exports.boolean().optional(),
|
|
4935
|
+
tags: external_exports.array(external_exports.string().uuid()).optional(),
|
|
4936
|
+
environment: external_exports.enum(["preview", "production", "all"]).optional()
|
|
4937
|
+
});
|
|
4938
|
+
createOrgResourceFolderBody = external_exports.object({
|
|
4939
|
+
org_resource_id: external_exports.string().uuid(),
|
|
4940
|
+
folder_name: external_exports.string().min(1).max(255),
|
|
4941
|
+
folder_description: external_exports.string().max(1e3).nullish(),
|
|
4942
|
+
parent_folder_id: external_exports.string().uuid().nullish(),
|
|
4943
|
+
order_index: external_exports.number().int().nonnegative().optional(),
|
|
4944
|
+
enabled: external_exports.boolean().optional(),
|
|
4945
|
+
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
4946
|
+
});
|
|
4947
|
+
updateOrgResourceFolderBody = external_exports.object({
|
|
4948
|
+
folder_name: external_exports.string().min(1).max(255).optional(),
|
|
4949
|
+
folder_description: external_exports.string().max(1e3).nullish(),
|
|
4950
|
+
parent_folder_id: external_exports.string().uuid().nullish(),
|
|
4951
|
+
order_index: external_exports.number().int().nonnegative().optional(),
|
|
4952
|
+
enabled: external_exports.boolean().optional(),
|
|
4953
|
+
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
4954
|
+
});
|
|
4955
|
+
uploadOrgResourceFileBody = external_exports.object({
|
|
4956
|
+
org_resource_id: external_exports.string().uuid(),
|
|
4957
|
+
folder_id: external_exports.string().uuid().nullish(),
|
|
4958
|
+
file_name: external_exports.string().min(1).max(255),
|
|
4959
|
+
file_data: external_exports.string(),
|
|
4960
|
+
// base64
|
|
4961
|
+
mime_type: external_exports.string().optional(),
|
|
4962
|
+
file_size: external_exports.number().int().nonnegative().optional(),
|
|
4963
|
+
resource_file_tags: external_exports.array(external_exports.string()).optional(),
|
|
4964
|
+
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
4965
|
+
});
|
|
4966
|
+
updateOrgResourceFileBody = external_exports.object({
|
|
4967
|
+
resource_file_title: external_exports.string().min(1).max(255).optional(),
|
|
4968
|
+
folder_id: external_exports.string().uuid().nullish(),
|
|
4969
|
+
order_index: external_exports.number().int().nonnegative().optional(),
|
|
4970
|
+
enabled: external_exports.boolean().optional(),
|
|
4971
|
+
resource_file_tags: external_exports.array(external_exports.string()).optional(),
|
|
4972
|
+
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
4973
|
+
});
|
|
4974
|
+
uploadOrgSkillZipBody = external_exports.object({
|
|
4975
|
+
zip_data: external_exports.string().min(1),
|
|
4976
|
+
replace_existing: external_exports.boolean().optional()
|
|
4977
|
+
});
|
|
4978
|
+
linkOrgResourceBody = external_exports.object({
|
|
4979
|
+
org_resource_id: external_exports.string().uuid()
|
|
4980
|
+
});
|
|
4981
|
+
}
|
|
4982
|
+
});
|
|
4983
|
+
|
|
4891
4984
|
// ../../packages/core/dist/chunk-VXEAR36B.js
|
|
4892
4985
|
var orgTagIdParam, listOrgTagsQuery, ORG_TAG_NAME_REGEX, ORG_TAG_NAME_MAX_LENGTH, createOrgTagBody, updateOrgTagBody;
|
|
4893
4986
|
var init_chunk_VXEAR36B = __esm({
|
|
@@ -5170,6 +5263,113 @@ var init_chunk_Q7KIQHAZ = __esm({
|
|
|
5170
5263
|
}
|
|
5171
5264
|
});
|
|
5172
5265
|
|
|
5266
|
+
// ../../packages/core/dist/chunk-MIWZOSPI.js
|
|
5267
|
+
function toIso(epochMs) {
|
|
5268
|
+
return new Date(epochMs).toISOString();
|
|
5269
|
+
}
|
|
5270
|
+
function fromIso(iso) {
|
|
5271
|
+
return new Date(iso).getTime();
|
|
5272
|
+
}
|
|
5273
|
+
function isIsoTimestamp(value) {
|
|
5274
|
+
return typeof value === "string" && ISO_UTC_RE.test(value);
|
|
5275
|
+
}
|
|
5276
|
+
var ISO_UTC_RE;
|
|
5277
|
+
var init_chunk_MIWZOSPI = __esm({
|
|
5278
|
+
"../../packages/core/dist/chunk-MIWZOSPI.js"() {
|
|
5279
|
+
"use strict";
|
|
5280
|
+
ISO_UTC_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
5281
|
+
}
|
|
5282
|
+
});
|
|
5283
|
+
|
|
5284
|
+
// ../../packages/core/dist/chunk-MF2VVXBR.js
|
|
5285
|
+
var credentialExpiresAtSchema, LINKED_EXPIRY_REFUSAL;
|
|
5286
|
+
var init_chunk_MF2VVXBR = __esm({
|
|
5287
|
+
"../../packages/core/dist/chunk-MF2VVXBR.js"() {
|
|
5288
|
+
"use strict";
|
|
5289
|
+
init_chunk_HZ6CADSY();
|
|
5290
|
+
init_chunk_MIWZOSPI();
|
|
5291
|
+
credentialExpiresAtSchema = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp").nullable();
|
|
5292
|
+
LINKED_EXPIRY_REFUSAL = "A linked organization credential's expiry is set on the credential";
|
|
5293
|
+
}
|
|
5294
|
+
});
|
|
5295
|
+
|
|
5296
|
+
// ../../packages/core/dist/chunk-HA7CRZMX.js
|
|
5297
|
+
var connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, PRODUCTION_DIRECT_FIELDS, BESIDE_LINK_FIELDS, setProductionCredentialBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery;
|
|
5298
|
+
var init_chunk_HA7CRZMX = __esm({
|
|
5299
|
+
"../../packages/core/dist/chunk-HA7CRZMX.js"() {
|
|
5300
|
+
"use strict";
|
|
5301
|
+
init_chunk_MF2VVXBR();
|
|
5302
|
+
init_chunk_HZ6CADSY();
|
|
5303
|
+
init_zod();
|
|
5304
|
+
connectionIdParam = external_exports.object({ id: uuidSchema });
|
|
5305
|
+
connectorIdParam = external_exports.object({ id: uuidSchema });
|
|
5306
|
+
listConnectionsQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5307
|
+
deleteConnectionQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5308
|
+
addConnectionBody = external_exports.object({
|
|
5309
|
+
hub_id: uuidSchema,
|
|
5310
|
+
connector_id: uuidSchema,
|
|
5311
|
+
authentication_type: external_exports.string().optional(),
|
|
5312
|
+
inbound_mode: external_exports.enum(["wayai", "resend"]).optional(),
|
|
5313
|
+
inbound_address: external_exports.string().email().optional(),
|
|
5314
|
+
// Opt out of copying this connection's credentials into production on publish/sync.
|
|
5315
|
+
// Defaults to true at the DB layer.
|
|
5316
|
+
sync_credentials_to_production: external_exports.boolean().optional(),
|
|
5317
|
+
// When the connection's own secret expires; null for none (`credential-expiry.ts`).
|
|
5318
|
+
expires_at: credentialExpiresAtSchema.optional()
|
|
5319
|
+
}).passthrough().superRefine((data, ctx) => {
|
|
5320
|
+
if (data.inbound_mode === "resend" && !data.inbound_address) {
|
|
5321
|
+
ctx.addIssue({
|
|
5322
|
+
code: external_exports.ZodIssueCode.custom,
|
|
5323
|
+
message: "Receiving email address is required when using Resend inbound mode",
|
|
5324
|
+
path: ["inbound_address"]
|
|
5325
|
+
});
|
|
5326
|
+
}
|
|
5327
|
+
});
|
|
5328
|
+
editConnectionBody = external_exports.object({
|
|
5329
|
+
hub_id: uuidSchema,
|
|
5330
|
+
sync_credentials_to_production: external_exports.boolean().optional(),
|
|
5331
|
+
expires_at: credentialExpiresAtSchema.optional()
|
|
5332
|
+
}).passthrough();
|
|
5333
|
+
PRODUCTION_DIRECT_FIELDS = ["username", "api_key", "access_token", "password", "refresh_token", "webhook_secret_token", "webhook_signing_secret", "github_app_id", "github_app_private_key"];
|
|
5334
|
+
BESIDE_LINK_FIELDS = /* @__PURE__ */ new Set(["webhook_secret_token", "github_app_id", "github_app_private_key"]);
|
|
5335
|
+
setProductionCredentialBody = external_exports.object({
|
|
5336
|
+
hub_id: uuidSchema,
|
|
5337
|
+
organization_credential_id: external_exports.string().nullable().optional(),
|
|
5338
|
+
organization_credential_token_id: external_exports.string().nullable().optional(),
|
|
5339
|
+
username: external_exports.string().optional(),
|
|
5340
|
+
api_key: external_exports.string().optional(),
|
|
5341
|
+
access_token: external_exports.string().optional(),
|
|
5342
|
+
password: external_exports.string().optional(),
|
|
5343
|
+
refresh_token: external_exports.string().optional(),
|
|
5344
|
+
webhook_secret_token: external_exports.string().optional(),
|
|
5345
|
+
webhook_signing_secret: external_exports.string().optional(),
|
|
5346
|
+
github_app_id: external_exports.string().optional(),
|
|
5347
|
+
github_app_private_key: external_exports.string().optional(),
|
|
5348
|
+
expires_at: credentialExpiresAtSchema.optional()
|
|
5349
|
+
}).strict().superRefine((data, ctx) => {
|
|
5350
|
+
const hasOrgLink = !!data.organization_credential_id || !!data.organization_credential_token_id;
|
|
5351
|
+
const sets = (f) => data[f] != null && data[f] !== `__USE_EXISTING_${f.toUpperCase()}__`;
|
|
5352
|
+
const hasDirect = PRODUCTION_DIRECT_FIELDS.some(sets);
|
|
5353
|
+
const hasDirectBesideLink = PRODUCTION_DIRECT_FIELDS.some((f) => !BESIDE_LINK_FIELDS.has(f) && sets(f));
|
|
5354
|
+
if (hasOrgLink && hasDirectBesideLink) {
|
|
5355
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: "Provide either an organization credential link or direct credential fields, not both" });
|
|
5356
|
+
}
|
|
5357
|
+
if (hasOrgLink && data.expires_at != null) {
|
|
5358
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: LINKED_EXPIRY_REFUSAL, path: ["expires_at"] });
|
|
5359
|
+
}
|
|
5360
|
+
if (!hasOrgLink && !hasDirect && data.expires_at === void 0) {
|
|
5361
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: "A credential is required: link an organization credential or provide a credential field" });
|
|
5362
|
+
}
|
|
5363
|
+
});
|
|
5364
|
+
registerWhatsappQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5365
|
+
registerWhatsappBody = external_exports.object({
|
|
5366
|
+
pin: external_exports.string().optional()
|
|
5367
|
+
});
|
|
5368
|
+
retryProvisioningQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5369
|
+
resendDomainStatusQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5370
|
+
}
|
|
5371
|
+
});
|
|
5372
|
+
|
|
5173
5373
|
// ../../packages/core/dist/chunk-IPXBFWUU.js
|
|
5174
5374
|
var variantAiModeSchema, experimentStatusSchema, overlayUpdateSchema, experimentIdParam, variantIdParam, listExperimentsQuery, listVariantsQuery, listOverridesQuery, deleteOverrideQuery, createExperimentBody, updateExperimentBody, setExperimentStatusBody, createVariantBody, updateVariantBody, upsertOverrideBody;
|
|
5175
5375
|
var init_chunk_IPXBFWUU = __esm({
|
|
@@ -5275,36 +5475,6 @@ var init_chunk_NKLVUTFO = __esm({
|
|
|
5275
5475
|
}
|
|
5276
5476
|
});
|
|
5277
5477
|
|
|
5278
|
-
// ../../packages/core/dist/chunk-MIWZOSPI.js
|
|
5279
|
-
function toIso(epochMs) {
|
|
5280
|
-
return new Date(epochMs).toISOString();
|
|
5281
|
-
}
|
|
5282
|
-
function fromIso(iso) {
|
|
5283
|
-
return new Date(iso).getTime();
|
|
5284
|
-
}
|
|
5285
|
-
function isIsoTimestamp(value) {
|
|
5286
|
-
return typeof value === "string" && ISO_UTC_RE.test(value);
|
|
5287
|
-
}
|
|
5288
|
-
var ISO_UTC_RE;
|
|
5289
|
-
var init_chunk_MIWZOSPI = __esm({
|
|
5290
|
-
"../../packages/core/dist/chunk-MIWZOSPI.js"() {
|
|
5291
|
-
"use strict";
|
|
5292
|
-
ISO_UTC_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
5293
|
-
}
|
|
5294
|
-
});
|
|
5295
|
-
|
|
5296
|
-
// ../../packages/core/dist/chunk-MF2VVXBR.js
|
|
5297
|
-
var credentialExpiresAtSchema, LINKED_EXPIRY_REFUSAL;
|
|
5298
|
-
var init_chunk_MF2VVXBR = __esm({
|
|
5299
|
-
"../../packages/core/dist/chunk-MF2VVXBR.js"() {
|
|
5300
|
-
"use strict";
|
|
5301
|
-
init_chunk_HZ6CADSY();
|
|
5302
|
-
init_chunk_MIWZOSPI();
|
|
5303
|
-
credentialExpiresAtSchema = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp").nullable();
|
|
5304
|
-
LINKED_EXPIRY_REFUSAL = "A linked organization credential's expiry is set on the credential";
|
|
5305
|
-
}
|
|
5306
|
-
});
|
|
5307
|
-
|
|
5308
5478
|
// ../../packages/core/dist/chunk-PTYXZZTE.js
|
|
5309
5479
|
function normalizeAuthType(raw) {
|
|
5310
5480
|
if (VALID_AUTH_TYPES.has(raw)) return raw;
|
|
@@ -5411,95 +5581,72 @@ var init_chunk_ILW3RFGU = __esm({
|
|
|
5411
5581
|
}
|
|
5412
5582
|
});
|
|
5413
5583
|
|
|
5414
|
-
// ../../packages/core/dist/chunk-
|
|
5415
|
-
var
|
|
5416
|
-
var
|
|
5417
|
-
"../../packages/core/dist/chunk-
|
|
5584
|
+
// ../../packages/core/dist/chunk-ZC6YGHNX.js
|
|
5585
|
+
var updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, recordAiDisclosureAcceptanceBody, activityQuery, deletionModeSchema, deletionRequestBody;
|
|
5586
|
+
var init_chunk_ZC6YGHNX = __esm({
|
|
5587
|
+
"../../packages/core/dist/chunk-ZC6YGHNX.js"() {
|
|
5418
5588
|
"use strict";
|
|
5419
5589
|
init_zod();
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
org_resource_id: external_exports.string().uuid(),
|
|
5463
|
-
folder_name: external_exports.string().min(1).max(255),
|
|
5464
|
-
folder_description: external_exports.string().max(1e3).nullish(),
|
|
5465
|
-
parent_folder_id: external_exports.string().uuid().nullish(),
|
|
5466
|
-
order_index: external_exports.number().int().nonnegative().optional(),
|
|
5467
|
-
enabled: external_exports.boolean().optional(),
|
|
5468
|
-
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
5469
|
-
});
|
|
5470
|
-
updateOrgResourceFolderBody = external_exports.object({
|
|
5471
|
-
folder_name: external_exports.string().min(1).max(255).optional(),
|
|
5472
|
-
folder_description: external_exports.string().max(1e3).nullish(),
|
|
5473
|
-
parent_folder_id: external_exports.string().uuid().nullish(),
|
|
5474
|
-
order_index: external_exports.number().int().nonnegative().optional(),
|
|
5475
|
-
enabled: external_exports.boolean().optional(),
|
|
5476
|
-
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
5590
|
+
updateUserBody = external_exports.object({
|
|
5591
|
+
user_language: external_exports.string().optional(),
|
|
5592
|
+
/** true: dark; false: light; null: follow each device's own setting (`AppearanceMode`). */
|
|
5593
|
+
ui_dark_mode: external_exports.boolean().nullable().optional(),
|
|
5594
|
+
profile_name: external_exports.string().optional(),
|
|
5595
|
+
link_email_to_identities: external_exports.boolean().optional()
|
|
5596
|
+
}).refine(
|
|
5597
|
+
(data) => Object.values(data).some((v) => v !== void 0),
|
|
5598
|
+
{ message: "At least one field must be provided" }
|
|
5599
|
+
);
|
|
5600
|
+
updateProfileBody = external_exports.object({
|
|
5601
|
+
display_name: external_exports.string().optional(),
|
|
5602
|
+
avatar_url: external_exports.string().optional(),
|
|
5603
|
+
preferences: external_exports.record(external_exports.unknown()).optional()
|
|
5604
|
+
}).refine(
|
|
5605
|
+
(data) => Object.values(data).some((v) => v !== void 0),
|
|
5606
|
+
{ message: "At least one field must be provided" }
|
|
5607
|
+
);
|
|
5608
|
+
pathnameRegex = /^\/(?!\/)[A-Za-z0-9\-._~!$&'()*+,;=:@/?%]*$/;
|
|
5609
|
+
updatePreferencesBody = external_exports.object({
|
|
5610
|
+
last_viewed_nav: external_exports.string().regex(pathnameRegex, "Must be a URL pathname").max(2048).optional(),
|
|
5611
|
+
dismissed_agentic_shortcut: external_exports.boolean().optional(),
|
|
5612
|
+
opened_guide: external_exports.boolean().optional()
|
|
5613
|
+
}).passthrough();
|
|
5614
|
+
registerPushTokenBody = external_exports.object({
|
|
5615
|
+
token: external_exports.string().min(1).max(512),
|
|
5616
|
+
platform: external_exports.enum(["ios", "android"]),
|
|
5617
|
+
/** Stable per-install id so re-registration replaces the prior token for the device. */
|
|
5618
|
+
device_id: external_exports.string().min(1).max(128).optional(),
|
|
5619
|
+
/**
|
|
5620
|
+
* The build opens a person-to-person thread from a push (gh #4661): only a token registered
|
|
5621
|
+
* with it receives thread pushes, whose `data` carries `thread_id` and no `conversation_id`.
|
|
5622
|
+
* Each registration states it afresh, so a build that sends none clears it.
|
|
5623
|
+
*/
|
|
5624
|
+
supports_threads: external_exports.boolean().optional(),
|
|
5625
|
+
/**
|
|
5626
|
+
* The build opens a community from a push (gh #4872 Decision 8): only a token registered with it
|
|
5627
|
+
* receives a community's pushes (an announcement, a reply to the member's forum post), whose
|
|
5628
|
+
* `data` is `CommunityPushData` — never a `conversation_id` or a `thread_id`. Each registration
|
|
5629
|
+
* states it afresh, so a build that sends none clears it.
|
|
5630
|
+
*/
|
|
5631
|
+
supports_communities: external_exports.boolean().optional()
|
|
5477
5632
|
});
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
folder_id: external_exports.string().uuid().nullish(),
|
|
5481
|
-
file_name: external_exports.string().min(1).max(255),
|
|
5482
|
-
file_data: external_exports.string(),
|
|
5483
|
-
// base64
|
|
5484
|
-
mime_type: external_exports.string().optional(),
|
|
5485
|
-
file_size: external_exports.number().int().nonnegative().optional(),
|
|
5486
|
-
resource_file_tags: external_exports.array(external_exports.string()).optional(),
|
|
5487
|
-
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
5633
|
+
deletePushTokenQuery = external_exports.object({
|
|
5634
|
+
token: external_exports.string().min(1).max(512)
|
|
5488
5635
|
});
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
order_index: external_exports.number().int().nonnegative().optional(),
|
|
5493
|
-
enabled: external_exports.boolean().optional(),
|
|
5494
|
-
resource_file_tags: external_exports.array(external_exports.string()).optional(),
|
|
5495
|
-
metadata: external_exports.record(external_exports.unknown()).optional()
|
|
5636
|
+
recordAiDisclosureAcceptanceBody = external_exports.object({
|
|
5637
|
+
version: external_exports.number().int().positive(),
|
|
5638
|
+
withdrawn_at_seen: external_exports.string().datetime().nullable().optional()
|
|
5496
5639
|
});
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
replace_existing: external_exports.boolean().optional()
|
|
5640
|
+
activityQuery = external_exports.object({
|
|
5641
|
+
limit: external_exports.coerce.number().int().min(1).max(100).optional()
|
|
5500
5642
|
});
|
|
5501
|
-
|
|
5502
|
-
|
|
5643
|
+
deletionModeSchema = external_exports.enum(["scheduled", "immediate"]);
|
|
5644
|
+
deletionRequestBody = external_exports.object({
|
|
5645
|
+
mode: deletionModeSchema,
|
|
5646
|
+
/** User-supplied reason captured in the audit log; bounded to bound logged PII. */
|
|
5647
|
+
reason: external_exports.string().max(500).optional(),
|
|
5648
|
+
/** Type-to-confirm value; must equal the user's email (constant-time compared). */
|
|
5649
|
+
email_confirmation: external_exports.string().min(1).max(320)
|
|
5503
5650
|
});
|
|
5504
5651
|
}
|
|
5505
5652
|
});
|
|
@@ -5549,936 +5696,54 @@ var init_chunk_K2UY4M4E = __esm({
|
|
|
5549
5696
|
}
|
|
5550
5697
|
});
|
|
5551
5698
|
|
|
5552
|
-
// ../../packages/core/dist/chunk-
|
|
5553
|
-
var
|
|
5554
|
-
var
|
|
5555
|
-
"../../packages/core/dist/chunk-
|
|
5699
|
+
// ../../packages/core/dist/chunk-5XEJSR22.js
|
|
5700
|
+
var DATA_PROXY_MOUNT, DATA_PROXY_PREFIX, BASE_DESTRUCTION_MOUNT, BASE_DESTRUCTION_PREFIX, BASE_DESTRUCTION_CONFIRM_PATH, COMMUNITY_EMAIL_UNSUBSCRIBE_PATH, CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH, AUTOMATION_WEBHOOK_MOUNT, MANAGED_AGENTS_WEBHOOK_MOUNT;
|
|
5701
|
+
var init_chunk_5XEJSR22 = __esm({
|
|
5702
|
+
"../../packages/core/dist/chunk-5XEJSR22.js"() {
|
|
5556
5703
|
"use strict";
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
connector_id: uuidSchema,
|
|
5567
|
-
authentication_type: external_exports.string().optional(),
|
|
5568
|
-
inbound_mode: external_exports.enum(["wayai", "resend"]).optional(),
|
|
5569
|
-
inbound_address: external_exports.string().email().optional(),
|
|
5570
|
-
// Opt out of copying this connection's credentials into production on publish/sync.
|
|
5571
|
-
// Defaults to true at the DB layer.
|
|
5572
|
-
sync_credentials_to_production: external_exports.boolean().optional(),
|
|
5573
|
-
// When the connection's own secret expires; null for none (`credential-expiry.ts`).
|
|
5574
|
-
expires_at: credentialExpiresAtSchema.optional()
|
|
5575
|
-
}).passthrough().superRefine((data, ctx) => {
|
|
5576
|
-
if (data.inbound_mode === "resend" && !data.inbound_address) {
|
|
5577
|
-
ctx.addIssue({
|
|
5578
|
-
code: external_exports.ZodIssueCode.custom,
|
|
5579
|
-
message: "Receiving email address is required when using Resend inbound mode",
|
|
5580
|
-
path: ["inbound_address"]
|
|
5581
|
-
});
|
|
5582
|
-
}
|
|
5583
|
-
});
|
|
5584
|
-
editConnectionBody = external_exports.object({
|
|
5585
|
-
hub_id: uuidSchema,
|
|
5586
|
-
sync_credentials_to_production: external_exports.boolean().optional(),
|
|
5587
|
-
expires_at: credentialExpiresAtSchema.optional()
|
|
5588
|
-
}).passthrough();
|
|
5589
|
-
PRODUCTION_DIRECT_FIELDS = ["username", "api_key", "access_token", "password", "refresh_token", "webhook_secret_token", "webhook_signing_secret", "github_app_id", "github_app_private_key"];
|
|
5590
|
-
BESIDE_LINK_FIELDS = /* @__PURE__ */ new Set(["webhook_secret_token", "github_app_id", "github_app_private_key"]);
|
|
5591
|
-
setProductionCredentialBody = external_exports.object({
|
|
5592
|
-
hub_id: uuidSchema,
|
|
5593
|
-
organization_credential_id: external_exports.string().nullable().optional(),
|
|
5594
|
-
organization_credential_token_id: external_exports.string().nullable().optional(),
|
|
5595
|
-
username: external_exports.string().optional(),
|
|
5596
|
-
api_key: external_exports.string().optional(),
|
|
5597
|
-
access_token: external_exports.string().optional(),
|
|
5598
|
-
password: external_exports.string().optional(),
|
|
5599
|
-
refresh_token: external_exports.string().optional(),
|
|
5600
|
-
webhook_secret_token: external_exports.string().optional(),
|
|
5601
|
-
webhook_signing_secret: external_exports.string().optional(),
|
|
5602
|
-
github_app_id: external_exports.string().optional(),
|
|
5603
|
-
github_app_private_key: external_exports.string().optional(),
|
|
5604
|
-
expires_at: credentialExpiresAtSchema.optional()
|
|
5605
|
-
}).strict().superRefine((data, ctx) => {
|
|
5606
|
-
const hasOrgLink = !!data.organization_credential_id || !!data.organization_credential_token_id;
|
|
5607
|
-
const sets = (f) => data[f] != null && data[f] !== `__USE_EXISTING_${f.toUpperCase()}__`;
|
|
5608
|
-
const hasDirect = PRODUCTION_DIRECT_FIELDS.some(sets);
|
|
5609
|
-
const hasDirectBesideLink = PRODUCTION_DIRECT_FIELDS.some((f) => !BESIDE_LINK_FIELDS.has(f) && sets(f));
|
|
5610
|
-
if (hasOrgLink && hasDirectBesideLink) {
|
|
5611
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: "Provide either an organization credential link or direct credential fields, not both" });
|
|
5612
|
-
}
|
|
5613
|
-
if (hasOrgLink && data.expires_at != null) {
|
|
5614
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: LINKED_EXPIRY_REFUSAL, path: ["expires_at"] });
|
|
5615
|
-
}
|
|
5616
|
-
if (!hasOrgLink && !hasDirect && data.expires_at === void 0) {
|
|
5617
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: "A credential is required: link an organization credential or provide a credential field" });
|
|
5618
|
-
}
|
|
5619
|
-
});
|
|
5620
|
-
registerWhatsappQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5621
|
-
registerWhatsappBody = external_exports.object({
|
|
5622
|
-
pin: external_exports.string().optional()
|
|
5623
|
-
});
|
|
5624
|
-
retryProvisioningQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5625
|
-
resendDomainStatusQuery = external_exports.object({ hub_id: uuidSchema });
|
|
5704
|
+
DATA_PROXY_MOUNT = "/data";
|
|
5705
|
+
DATA_PROXY_PREFIX = `/api${DATA_PROXY_MOUNT}`;
|
|
5706
|
+
BASE_DESTRUCTION_MOUNT = "/bases";
|
|
5707
|
+
BASE_DESTRUCTION_PREFIX = `/api${BASE_DESTRUCTION_MOUNT}`;
|
|
5708
|
+
BASE_DESTRUCTION_CONFIRM_PATH = `${BASE_DESTRUCTION_PREFIX}/destruction/confirm`;
|
|
5709
|
+
COMMUNITY_EMAIL_UNSUBSCRIBE_PATH = "/api/communities/email-unsubscribe";
|
|
5710
|
+
CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH = "/api/contact-book/email-unsubscribe";
|
|
5711
|
+
AUTOMATION_WEBHOOK_MOUNT = "/webhooks/automations";
|
|
5712
|
+
MANAGED_AGENTS_WEBHOOK_MOUNT = "/webhooks/managed-agents";
|
|
5626
5713
|
}
|
|
5627
5714
|
});
|
|
5628
5715
|
|
|
5629
|
-
// ../../packages/core/dist/chunk-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
});
|
|
5661
|
-
REQUIRED_REKOR_ATTESTATION_HEADERS = Object.entries(rekorAttestation.shape).filter(([, field]) => !field.isOptional()).map(([header]) => header);
|
|
5662
|
-
REKOR_BOUND_BASE_HEADER = "X-Rekor-Bound-Base";
|
|
5663
|
-
REKOR_BOUND_TOOLSET_HEADER = "X-Rekor-Bound-Toolset";
|
|
5664
|
-
REKOR_BOUND_TOKEN_HEADER = "X-Rekor-Bound-Token";
|
|
5665
|
-
REKOR_BOUND_CUSTOMER_HEADER = "X-Rekor-Bound-Customer";
|
|
5666
|
-
REKOR_BOUND_ACCESS_HEADER = "X-Rekor-Bound-Access";
|
|
5667
|
-
REKOR_BOUND_ACCESS_SCOPE_HEADER = "X-Rekor-Bound-Access-Scope";
|
|
5668
|
-
REKOR_BOUND_PAGE_HEADER = "X-Rekor-Bound-Page";
|
|
5669
|
-
REKOR_ACCESS_SCOPE_CUSTOMER = "customer";
|
|
5670
|
-
DATA_BASE_GENERATION_HEADER = "X-Data-Base-Generation";
|
|
5671
|
-
REKOR_MAX_ACTOR_ID_LENGTH = 256;
|
|
5672
|
-
REKOR_MAX_ACTOR_LABEL_LENGTH = 256;
|
|
5673
|
-
REKOR_MAX_ACCESS_DIMENSIONS = 8;
|
|
5674
|
-
REKOR_MAX_ACCESS_VALUES = 100;
|
|
5675
|
-
REKOR_MAX_ACCESS_ID_LENGTH = 32;
|
|
5676
|
-
REKOR_MAX_ACCESS_HEADER_LENGTH = 65536;
|
|
5677
|
-
}
|
|
5678
|
-
});
|
|
5679
|
-
|
|
5680
|
-
// ../../packages/core/dist/chunk-IAAIVRFJ.js
|
|
5681
|
-
function writeWithinRead(assignment) {
|
|
5682
|
-
return Object.values(assignment).every(({ read, write }) => read.includes(ACCESS_UNRESTRICTED) || !write.includes(ACCESS_UNRESTRICTED) && write.every((id) => read.includes(id)));
|
|
5683
|
-
}
|
|
5684
|
-
function isEncodedAccessSet(raw) {
|
|
5685
|
-
let parsed;
|
|
5686
|
-
try {
|
|
5687
|
-
parsed = JSON.parse(raw);
|
|
5688
|
-
} catch {
|
|
5689
|
-
return false;
|
|
5690
|
-
}
|
|
5691
|
-
return accessSetSchema.safeParse(parsed).success;
|
|
5692
|
-
}
|
|
5693
|
-
function assignmentHasUnrestricted(assignment) {
|
|
5694
|
-
return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
|
|
5695
|
-
}
|
|
5696
|
-
var ACCESS_UNRESTRICTED, ACCESS_ID_REGEX, ACCESS_ID_MAX_LENGTH, MAX_ACCESS_DIMENSIONS_PER_ORG, MAX_ACCESS_VALUES_PER_DIMENSION, ACCESS_LABEL_MAX_LENGTH, accessIdSchema, accessLabelSchema, accessValueListSchema, accessAssignmentSchema, accessSetSchema, accessDimensionParam, accessValueParam, orgMemberParam, orgHubParam, createAccessDimensionBody, updateAccessDimensionBody, createAccessValueBody, updateAccessValueBody, setMemberAccessValuesBody, HUB_PERSON_KINDS, ACCESS_PERSON_KINDS, setHubUserAccessValuesBody, setAgentAccessValuesBody;
|
|
5697
|
-
var init_chunk_IAAIVRFJ = __esm({
|
|
5698
|
-
"../../packages/core/dist/chunk-IAAIVRFJ.js"() {
|
|
5699
|
-
"use strict";
|
|
5700
|
-
init_chunk_C2ID2BF7();
|
|
5701
|
-
init_chunk_HZ6CADSY();
|
|
5702
|
-
init_zod();
|
|
5703
|
-
ACCESS_UNRESTRICTED = "*";
|
|
5704
|
-
ACCESS_ID_REGEX = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
5705
|
-
ACCESS_ID_MAX_LENGTH = REKOR_MAX_ACCESS_ID_LENGTH;
|
|
5706
|
-
MAX_ACCESS_DIMENSIONS_PER_ORG = REKOR_MAX_ACCESS_DIMENSIONS;
|
|
5707
|
-
MAX_ACCESS_VALUES_PER_DIMENSION = REKOR_MAX_ACCESS_VALUES;
|
|
5708
|
-
ACCESS_LABEL_MAX_LENGTH = 100;
|
|
5709
|
-
accessIdSchema = external_exports.string().min(1).max(ACCESS_ID_MAX_LENGTH).regex(ACCESS_ID_REGEX, { message: 'Must be ASCII letters, digits, "_" or "-", starting with a letter or digit (e.g. "class", "7A")' });
|
|
5710
|
-
accessLabelSchema = external_exports.string().trim().min(1).max(ACCESS_LABEL_MAX_LENGTH);
|
|
5711
|
-
accessValueListSchema = external_exports.array(external_exports.union([accessIdSchema, external_exports.literal(ACCESS_UNRESTRICTED)])).max(MAX_ACCESS_VALUES_PER_DIMENSION).refine((list2) => !list2.includes(ACCESS_UNRESTRICTED) || list2.length === 1, {
|
|
5712
|
-
message: `"${ACCESS_UNRESTRICTED}" reaches the dimension unrestricted, so it stands alone in its list`
|
|
5713
|
-
});
|
|
5714
|
-
accessAssignmentSchema = external_exports.record(
|
|
5715
|
-
accessIdSchema,
|
|
5716
|
-
external_exports.object({ read: accessValueListSchema, write: accessValueListSchema }).strict()
|
|
5717
|
-
).refine((assignment) => Object.keys(assignment).length <= MAX_ACCESS_DIMENSIONS_PER_ORG, {
|
|
5718
|
-
message: `An assignment names at most ${MAX_ACCESS_DIMENSIONS_PER_ORG} dimensions`
|
|
5719
|
-
});
|
|
5720
|
-
accessSetSchema = accessAssignmentSchema.refine(writeWithinRead, {
|
|
5721
|
-
message: "An access set writes only what it reads"
|
|
5722
|
-
});
|
|
5723
|
-
accessDimensionParam = external_exports.object({
|
|
5724
|
-
id: uuidSchema,
|
|
5725
|
-
dimensionId: accessIdSchema
|
|
5726
|
-
});
|
|
5727
|
-
accessValueParam = accessDimensionParam.extend({
|
|
5728
|
-
valueId: accessIdSchema
|
|
5729
|
-
});
|
|
5730
|
-
orgMemberParam = external_exports.object({
|
|
5731
|
-
id: uuidSchema,
|
|
5732
|
-
userId: external_exports.string().min(1).max(256)
|
|
5733
|
-
});
|
|
5734
|
-
orgHubParam = external_exports.object({
|
|
5735
|
-
id: uuidSchema,
|
|
5736
|
-
hubId: uuidSchema
|
|
5737
|
-
});
|
|
5738
|
-
createAccessDimensionBody = external_exports.object({
|
|
5739
|
-
dimension_id: accessIdSchema,
|
|
5740
|
-
label: accessLabelSchema
|
|
5741
|
-
});
|
|
5742
|
-
updateAccessDimensionBody = external_exports.object({
|
|
5743
|
-
label: accessLabelSchema
|
|
5744
|
-
});
|
|
5745
|
-
createAccessValueBody = external_exports.object({
|
|
5746
|
-
value_id: accessIdSchema,
|
|
5747
|
-
label: accessLabelSchema
|
|
5748
|
-
});
|
|
5749
|
-
updateAccessValueBody = external_exports.object({
|
|
5750
|
-
label: accessLabelSchema.optional(),
|
|
5751
|
-
retired: external_exports.boolean().optional()
|
|
5752
|
-
}).refine((body) => body.label !== void 0 || body.retired !== void 0, {
|
|
5753
|
-
message: "Nothing to change: pass label, retired, or both"
|
|
5754
|
-
});
|
|
5755
|
-
setMemberAccessValuesBody = external_exports.object({
|
|
5756
|
-
values: accessAssignmentSchema
|
|
5757
|
-
});
|
|
5758
|
-
HUB_PERSON_KINDS = ["hub_admin", "hub_team_member", "hub_user"];
|
|
5759
|
-
ACCESS_PERSON_KINDS = ["org_member", ...HUB_PERSON_KINDS, "public"];
|
|
5760
|
-
setHubUserAccessValuesBody = external_exports.object({
|
|
5761
|
-
values: accessAssignmentSchema.refine((assignment) => !assignmentHasUnrestricted(assignment), {
|
|
5762
|
-
message: `A hub user's values never hold "${ACCESS_UNRESTRICTED}"`
|
|
5763
|
-
})
|
|
5764
|
-
});
|
|
5765
|
-
setAgentAccessValuesBody = external_exports.object({
|
|
5766
|
-
values: accessAssignmentSchema.nullable()
|
|
5767
|
-
});
|
|
5768
|
-
}
|
|
5769
|
-
});
|
|
5770
|
-
|
|
5771
|
-
// ../../packages/core/dist/chunk-OOPUGPJU.js
|
|
5772
|
-
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL;
|
|
5773
|
-
var init_chunk_OOPUGPJU = __esm({
|
|
5774
|
-
"../../packages/core/dist/chunk-OOPUGPJU.js"() {
|
|
5775
|
-
"use strict";
|
|
5776
|
-
init_chunk_IAAIVRFJ();
|
|
5777
|
-
init_chunk_C2ID2BF7();
|
|
5778
|
-
init_chunk_PTYXZZTE();
|
|
5779
|
-
init_zod();
|
|
5780
|
-
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
5781
|
-
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
5782
|
-
baseEnvironmentSchema = external_exports.enum(["preview", "production"]);
|
|
5783
|
-
toolsetFileToolSchema = external_exports.object({
|
|
5784
|
-
file_type: external_exports.string().min(1),
|
|
5785
|
-
path_prefix: external_exports.string(),
|
|
5786
|
-
/** The entry's authored description of its tools (`description_override`), when it has one. */
|
|
5787
|
-
description: external_exports.string().min(1).optional(),
|
|
5788
|
-
tools: external_exports.object({
|
|
5789
|
-
list: external_exports.string().min(1).optional(),
|
|
5790
|
-
get: external_exports.string().min(1).optional(),
|
|
5791
|
-
put: external_exports.string().min(1).optional(),
|
|
5792
|
-
delete: external_exports.string().min(1).optional(),
|
|
5793
|
-
get_url: external_exports.string().min(1).optional(),
|
|
5794
|
-
put_url: external_exports.string().min(1).optional()
|
|
5795
|
-
})
|
|
5796
|
-
});
|
|
5797
|
-
toolsetSurfaceSchema = external_exports.object({
|
|
5798
|
-
/** Any record, composite, relationship or SQL Action tool: the toolset reaches records. */
|
|
5799
|
-
records: external_exports.boolean(),
|
|
5800
|
-
sql_query: external_exports.boolean(),
|
|
5801
|
-
batch: external_exports.boolean(),
|
|
5802
|
-
/**
|
|
5803
|
-
* The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
|
|
5804
|
-
* and reaches only that customer's records and shared ones. Absent on a surface recorded before it
|
|
5805
|
-
* was, which reads as not scoped until the connection's next tool sync or token save records it: its
|
|
5806
|
-
* calls name no customer, and the customer-facing rule admits none of its record tools.
|
|
5807
|
-
*/
|
|
5808
|
-
customer_scoped: external_exports.boolean().optional(),
|
|
5809
|
-
/**
|
|
5810
|
-
* A key of the resolve this side neither describes nor classifies exposes something: a kind of tool
|
|
5811
|
-
* the data product added later, counted in `records`. The customer-facing rule never admits it, a
|
|
5812
|
-
* customer scope included, until it is classified here. Absent on a surface recorded before it was,
|
|
5813
|
-
* which reads as present.
|
|
5814
|
-
*/
|
|
5815
|
-
unclassified_tools: external_exports.boolean().optional(),
|
|
5816
|
-
/**
|
|
5817
|
-
* Any of its file tools writes: an operation other than `list`, `get` and `get_url` (`put`, `delete`,
|
|
5818
|
-
* `put_url`, or one the data product adds later), or an entry this side cannot read. Absent on a surface recorded
|
|
5819
|
-
* before it was, which the customer-facing rule reads as writing until the connection's next tool
|
|
5820
|
-
* sync or token save records it.
|
|
5821
|
-
*/
|
|
5822
|
-
file_writes: external_exports.boolean().optional(),
|
|
5823
|
-
/**
|
|
5824
|
-
* A record type the resolve's `record_types` carries names the toolset among its writers
|
|
5825
|
-
* (`x-review.writers`, #5083 RK4): the toolset writes the type's drafts and reads its every record,
|
|
5826
|
-
* drafts included. Those are the types its actions and composite record steps reach, and every
|
|
5827
|
-
* reviewed type it reaches otherwise: at a relationship tool's or a composite relationship step's
|
|
5828
|
-
* end, in a `batch` entry, or, through `sql_query`, all of them (decision 198). Or such a type's
|
|
5829
|
-
* declaration this side cannot read, or a resolve reaching records that carries no record types.
|
|
5830
|
-
* Absent on a surface recorded before it was, which the customer-facing rule reads as writing, for a
|
|
5831
|
-
* toolset reaching records, until the connection's next tool sync or token save records it.
|
|
5832
|
-
*/
|
|
5833
|
-
review_writes: external_exports.boolean().optional(),
|
|
5834
|
-
/**
|
|
5835
|
-
* Every record type the toolset reaches, at least one, is reviewed (`x-review`), holds no customer data
|
|
5836
|
-
* (`shared`), and does not name it among its writers: each call reads only that type's approved
|
|
5837
|
-
* records (#5083 decision 182, Q9). Never with a SQL Action, whose query reads its types' every
|
|
5838
|
-
* record, drafts included. Absent on a surface recorded before it was, which reads as false.
|
|
5839
|
-
*/
|
|
5840
|
-
approved_reads_only: external_exports.boolean().optional(),
|
|
5841
|
-
/**
|
|
5842
|
-
* The toolset's file tools. Absent when it has none, and on a surface recorded before they were.
|
|
5843
|
-
* A list this side cannot read is dropped rather than failing the binding, which every call and
|
|
5844
|
-
* the customer-facing rule read: the next tool sync records it again.
|
|
5845
|
-
*/
|
|
5846
|
-
files: external_exports.array(toolsetFileToolSchema).optional().catch(void 0)
|
|
5847
|
-
});
|
|
5848
|
-
toolsetConnectionBindingSchema = external_exports.object({
|
|
5849
|
-
base_id: external_exports.string().min(1),
|
|
5850
|
-
/** The slug the token was resolved against — `settings.toolset` at that write. */
|
|
5851
|
-
toolset: external_exports.string().min(1),
|
|
5852
|
-
/** The base's incarnation when the token was written; a bound attested call states it. */
|
|
5853
|
-
base_generation: external_exports.number().int().min(1),
|
|
5854
|
-
environment: baseEnvironmentSchema,
|
|
5855
|
-
surface: toolsetSurfaceSchema,
|
|
5856
|
-
/**
|
|
5857
|
-
* The id of the token the binding was resolved from, as its resolve reports it; a bound attested
|
|
5858
|
-
* call names it (`REKOR_BOUND_TOKEN_HEADER`), so the data product refuses the binding once the token
|
|
5859
|
-
* is revoked or expires (owner decision 41). Absent on a binding recorded before the report carried
|
|
5860
|
-
* it: its calls name none until a token save, or a tool sync while the token still stands, records it.
|
|
5861
|
-
* One that does not read is dropped rather than failing the binding.
|
|
5862
|
-
*/
|
|
5863
|
-
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
5864
|
-
});
|
|
5865
|
-
rekorToolsetToolsSchema = external_exports.object({
|
|
5866
|
-
data: external_exports.object({
|
|
5867
|
-
tools: external_exports.array(external_exports.object({
|
|
5868
|
-
name: external_exports.string(),
|
|
5869
|
-
description: external_exports.string().optional(),
|
|
5870
|
-
inputSchema: external_exports.record(external_exports.unknown()).optional()
|
|
5871
|
-
}))
|
|
5872
|
-
})
|
|
5873
|
-
});
|
|
5874
|
-
rekorBoundAttestation = rekorAttestation.extend({
|
|
5875
|
-
[REKOR_ACTOR_TYPE_HEADER]: external_exports.enum(["token", "user"]),
|
|
5876
|
-
/** Trimmed and checked as the far side trims and checks it. */
|
|
5877
|
-
[REKOR_ACTOR_ID_HEADER]: external_exports.string().trim().min(1).max(REKOR_MAX_ACTOR_ID_LENGTH),
|
|
5878
|
-
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string().max(REKOR_MAX_ACTOR_LABEL_LENGTH),
|
|
5879
|
-
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.literal("0"),
|
|
5880
|
-
[REKOR_BOUND_BASE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
5881
|
-
[REKOR_BOUND_TOOLSET_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
5882
|
-
/**
|
|
5883
|
-
* Decimal digits only, as the far side parses it, and at most 15 of them: its `Number()` reads
|
|
5884
|
-
* every such value back exactly, where a longer one may round or overflow to `Infinity` (a 400).
|
|
5885
|
-
*/
|
|
5886
|
-
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(/^[1-9]\d{0,14}$/),
|
|
5887
|
-
/** The token the binding was resolved from, when the connection records it (owner decision 41). */
|
|
5888
|
-
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional(),
|
|
5889
|
-
/**
|
|
5890
|
-
* The customer the call serves (#5083 RK2): a contact id, which the contact book mints as a UUID.
|
|
5891
|
-
* Every UUID is an id the far side reads back as the customer's external id.
|
|
5892
|
-
*/
|
|
5893
|
-
[REKOR_BOUND_CUSTOMER_HEADER]: external_exports.string().uuid().optional(),
|
|
5894
|
-
/**
|
|
5895
|
-
* The access set the call carries (#5358): an access set's header text (`encodeAccessSet`), within
|
|
5896
|
-
* the far side's header cap. Tool calls carry one; the config reads (resolve, tool definitions) do not.
|
|
5897
|
-
*/
|
|
5898
|
-
[REKOR_BOUND_ACCESS_HEADER]: external_exports.string().max(REKOR_MAX_ACCESS_HEADER_LENGTH).refine(isEncodedAccessSet, {
|
|
5899
|
-
message: "Not an access set"
|
|
5900
|
-
}).optional(),
|
|
5901
|
-
/**
|
|
5902
|
-
* Where the access set applies (#5358), when only on the call's customer's own records: its one value.
|
|
5903
|
-
* Sent only beside the set, which the far side holds it to (the refinement below).
|
|
5904
|
-
*/
|
|
5905
|
-
[REKOR_BOUND_ACCESS_SCOPE_HEADER]: external_exports.literal(REKOR_ACCESS_SCOPE_CUSTOMER).optional(),
|
|
5906
|
-
/**
|
|
5907
|
-
* The hub whose page makes the call (#5333): sent on every call of the page bridge, and on no other.
|
|
5908
|
-
* A hub id, read by the far side under the same structural charset as the other bound ids.
|
|
5909
|
-
*/
|
|
5910
|
-
[REKOR_BOUND_PAGE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional()
|
|
5911
|
-
}).superRefine((bag, ctx) => {
|
|
5912
|
-
if (bag[REKOR_BOUND_ACCESS_SCOPE_HEADER] !== void 0 && bag[REKOR_BOUND_ACCESS_HEADER] === void 0) {
|
|
5913
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_BOUND_ACCESS_SCOPE_HEADER], message: "Accepted only beside an access set" });
|
|
5914
|
-
}
|
|
5915
|
-
if (bag[REKOR_ACTOR_TYPE_HEADER] === "user" && (bag[REKOR_BOUND_PAGE_HEADER] === void 0 || bag[REKOR_BOUND_CUSTOMER_HEADER] !== void 0)) {
|
|
5916
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_ACTOR_TYPE_HEADER], message: "A person is attested only on a team page's call" });
|
|
5917
|
-
}
|
|
5918
|
-
});
|
|
5919
|
-
rekorResolvedToolsetSchema = external_exports.object({
|
|
5920
|
-
data: external_exports.object({
|
|
5921
|
-
base_id: external_exports.string().min(1),
|
|
5922
|
-
environment: baseEnvironmentSchema,
|
|
5923
|
-
base_generation: external_exports.number().int().min(1),
|
|
5924
|
-
/**
|
|
5925
|
-
* The calling token's binding, or null for a token bound to none. A bound token can call only
|
|
5926
|
-
* its toolset's tools, which is what a toolset connection stores (#5083 decision 14). Its org
|
|
5927
|
-
* is the token's own: base ids are unique only per org, so the base id alone does not say
|
|
5928
|
-
* which base the token reaches.
|
|
5929
|
-
*/
|
|
5930
|
-
toolset_binding: external_exports.object({
|
|
5931
|
-
org_id: external_exports.string().optional(),
|
|
5932
|
-
base_id: external_exports.string(),
|
|
5933
|
-
toolset_id: external_exports.string(),
|
|
5934
|
-
/**
|
|
5935
|
-
* The token's own id, which a bound call names (`REKOR_BOUND_TOKEN_HEADER`); absent when the
|
|
5936
|
-
* caller has none (owner decision 41), and dropped when it is not an id the far side reads back.
|
|
5937
|
-
*/
|
|
5938
|
-
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
5939
|
-
}).nullable().optional(),
|
|
5940
|
-
actions: external_exports.array(external_exports.unknown()).optional(),
|
|
5941
|
-
composites: external_exports.array(external_exports.unknown()).optional(),
|
|
5942
|
-
relationships: external_exports.array(external_exports.unknown()).optional(),
|
|
5943
|
-
/**
|
|
5944
|
-
* The toolset's SQL Actions (#5311): each a fixed, read-only query over the record types it
|
|
5945
|
-
* declares, which the resolve also carries in `record_types` and `record_type_scopes`.
|
|
5946
|
-
*/
|
|
5947
|
-
sql_actions: external_exports.array(external_exports.unknown()).optional(),
|
|
5948
|
-
files: external_exports.array(external_exports.unknown()).optional(),
|
|
5949
|
-
batch: external_exports.object({ enabled: external_exports.boolean().optional() }).passthrough().nullable().optional(),
|
|
5950
|
-
sql_query: external_exports.boolean().optional(),
|
|
5951
|
-
/** The toolset serves one customer per call (#5083 RK2). Absent reads as not scoped. */
|
|
5952
|
-
customer_scope: external_exports.boolean().optional(),
|
|
5953
|
-
/**
|
|
5954
|
-
* Record types the toolset reaches, by id, as the data product stores them (`json_schema`
|
|
5955
|
-
* included): each one its actions, composite record steps and SQL Actions reach, and each reviewed one it
|
|
5956
|
-
* reaches otherwise (relationship ends, `batch` entries, every one through `sql_query`; #5083
|
|
5957
|
-
* decision 198). An unreviewed type it reaches only otherwise is not here. A reviewed type's
|
|
5958
|
-
* `x-review` names its writers (RK4).
|
|
5959
|
-
*/
|
|
5960
|
-
record_types: external_exports.record(external_exports.unknown()).optional(),
|
|
5961
|
-
/**
|
|
5962
|
-
* What each record type the toolset's actions, composite steps, SQL Actions and relationship tools reach is to a
|
|
5963
|
-
* customer scope (`{ role }`, or null), by id (#5083 RK2). A reviewed type `record_types` carries
|
|
5964
|
-
* because only a `batch` entry or `sql_query` reaches it has none.
|
|
5965
|
-
*/
|
|
5966
|
-
record_type_scopes: external_exports.record(external_exports.unknown()).optional()
|
|
5967
|
-
}).passthrough()
|
|
5968
|
-
});
|
|
5969
|
-
resolvedRecordTypeSchema = external_exports.object({ json_schema: external_exports.record(external_exports.unknown()) });
|
|
5970
|
-
reviewWritersSchema = external_exports.object({ writers: external_exports.array(external_exports.string()).optional() });
|
|
5971
|
-
sharedScopeSchema = external_exports.object({ role: external_exports.literal("shared") });
|
|
5972
|
-
resolvedFileToolSchema = external_exports.object({
|
|
5973
|
-
file_type: external_exports.string().min(1),
|
|
5974
|
-
path_prefix: external_exports.string().nullish(),
|
|
5975
|
-
operations: external_exports.array(external_exports.unknown()),
|
|
5976
|
-
name: external_exports.unknown().optional(),
|
|
5977
|
-
names: external_exports.unknown().optional(),
|
|
5978
|
-
description_override: external_exports.unknown().optional()
|
|
5979
|
-
});
|
|
5980
|
-
rekorToolsetFileSchema = external_exports.object({
|
|
5981
|
-
path: external_exports.string().min(1),
|
|
5982
|
-
version: external_exports.number().int().min(1),
|
|
5983
|
-
content_type: external_exports.string().optional()
|
|
5984
|
-
}).passthrough();
|
|
5985
|
-
rekorToolsetFileUrlAnswerSchema = external_exports.object({
|
|
5986
|
-
data: external_exports.object({
|
|
5987
|
-
url: external_exports.string(),
|
|
5988
|
-
expires_at: external_exports.string(),
|
|
5989
|
-
path: external_exports.string(),
|
|
5990
|
-
content_sha256: external_exports.string()
|
|
5991
|
-
}).passthrough()
|
|
5992
|
-
});
|
|
5993
|
-
rekorToolsetFileListSchema = external_exports.object({ data: external_exports.array(rekorToolsetFileSchema) });
|
|
5994
|
-
rekorToolsetFileGetSchema = external_exports.object({
|
|
5995
|
-
data: rekorToolsetFileSchema.extend({
|
|
5996
|
-
content: external_exports.string(),
|
|
5997
|
-
encoding: external_exports.enum(["utf-8", "base64"])
|
|
5998
|
-
})
|
|
5999
|
-
});
|
|
6000
|
-
rekorToolsetFilePutSchema = external_exports.object({ data: rekorToolsetFileSchema });
|
|
6001
|
-
TOOLSET_CUSTOMER_FACING_REFUSAL_MARK = "A customer-facing agent (a pilot, pilot specialist or pilot advisor) can use a toolset only when it exposes files alone: no record, composite or relationship tools, and neither sql_query nor batch";
|
|
6002
|
-
TOOLSET_CUSTOMER_FACING_REFUSAL = `${TOOLSET_CUSTOMER_FACING_REFUSAL_MARK}, nor a file put, delete or put_url, nor a write of a reviewed record type \u2014 unless the toolset is customer-scoped, which admits its record, composite, relationship and SQL Action tools, since each of their calls reaches only the conversation's customer and shared records, or they only read approved records of reviewed shared record types`;
|
|
6003
|
-
}
|
|
6004
|
-
});
|
|
6005
|
-
|
|
6006
|
-
// ../../packages/core/dist/chunk-IPDOHAZ5.js
|
|
6007
|
-
var reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, reportMessageSchema, sentryRefStatusSchema, createReportBody, editReportBody, reporterReportSummarySchema, reporterListResponseSchema, getReportResponseSchema, reporterTransitionResponseSchema, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody;
|
|
6008
|
-
var init_chunk_IPDOHAZ5 = __esm({
|
|
6009
|
-
"../../packages/core/dist/chunk-IPDOHAZ5.js"() {
|
|
6010
|
-
"use strict";
|
|
6011
|
-
init_chunk_HZ6CADSY();
|
|
6012
|
-
init_zod();
|
|
6013
|
-
reportSourceSchema = external_exports.enum(["sentry", "cli", "review", "security_audit"]);
|
|
6014
|
-
intakeReportSourceSchema = external_exports.enum(["cli", "review", "security_audit"]);
|
|
6015
|
-
reportClassificationSchema = external_exports.enum(["bug", "flaky_test", "security", "enhancement"]);
|
|
6016
|
-
reportStatusSchema = external_exports.enum([
|
|
6017
|
-
"pending",
|
|
6018
|
-
"grouped",
|
|
6019
|
-
"escalated",
|
|
6020
|
-
"shipped",
|
|
6021
|
-
"contested",
|
|
6022
|
-
"addressed",
|
|
6023
|
-
"dismissed"
|
|
6024
|
-
]);
|
|
6025
|
-
reportLocaleSchema = external_exports.enum(["en", "pt", "es"]);
|
|
6026
|
-
reportMessageAuthorRoleSchema = external_exports.enum(["reporter", "triage", "fixer", "system"]);
|
|
6027
|
-
reportMessageSchema = external_exports.object({
|
|
6028
|
-
message_id: external_exports.string(),
|
|
6029
|
-
author_role: reportMessageAuthorRoleSchema,
|
|
6030
|
-
/** The status transition this note accompanied (e.g. 'shipped'); null for a free/system note. */
|
|
6031
|
-
transition: external_exports.string().nullable(),
|
|
6032
|
-
body: external_exports.string(),
|
|
6033
|
-
created_at: timestampSchema,
|
|
6034
|
-
/**
|
|
6035
|
-
* Visibility: `false` = reporter-facing (the default for every narrative entry); `true` =
|
|
6036
|
-
* triage-internal (e.g. a `hold` rationale) — surfaced to platform admins only and NEVER
|
|
6037
|
-
* returned on the reporter read path. The reporter's `GET /api/reports/:id` filters these out.
|
|
6038
|
-
*/
|
|
6039
|
-
internal: external_exports.boolean()
|
|
6040
|
-
});
|
|
6041
|
-
sentryRefStatusSchema = external_exports.enum(["valid", "not_found", "mismatch", "unverified"]);
|
|
6042
|
-
createReportBody = external_exports.object({
|
|
6043
|
-
title: external_exports.string().min(5).max(256),
|
|
6044
|
-
description: external_exports.string().min(10).max(5e3),
|
|
6045
|
-
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
6046
|
-
error_message: external_exports.string().max(2e3).optional(),
|
|
6047
|
-
// Taxonomy (server defaults: source=cli, classification=bug when absent).
|
|
6048
|
-
source: intakeReportSourceSchema.optional(),
|
|
6049
|
-
classification: reportClassificationSchema.optional(),
|
|
6050
|
-
// Stable dedup key (e.g. "<file>::<test>" for flaky, "<file>:<line>" for
|
|
6051
|
-
// security). When present, the fingerprint uses it instead of the body hash.
|
|
6052
|
-
dedup_key: external_exports.string().min(1).max(256).optional(),
|
|
6053
|
-
// Context fields (auto-captured by the CLI)
|
|
6054
|
-
organization_id: external_exports.string().optional(),
|
|
6055
|
-
hub_id: external_exports.string().uuid().optional(),
|
|
6056
|
-
hub_name: external_exports.string().max(256).optional(),
|
|
6057
|
-
conversation_id: external_exports.string().uuid().optional(),
|
|
6058
|
-
agent_id: external_exports.string().uuid().optional(),
|
|
6059
|
-
agent_name: external_exports.string().max(256).optional(),
|
|
6060
|
-
client_version: external_exports.string().max(64).optional(),
|
|
6061
|
-
additional_context: external_exports.string().max(2e3).optional()
|
|
6062
|
-
});
|
|
6063
|
-
editReportBody = external_exports.object({
|
|
6064
|
-
title: external_exports.string().min(5).max(256).optional(),
|
|
6065
|
-
description: external_exports.string().min(10).max(5e3).optional(),
|
|
6066
|
-
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
6067
|
-
error_message: external_exports.string().max(2e3).optional(),
|
|
6068
|
-
additional_context: external_exports.string().max(2e3).optional()
|
|
6069
|
-
}).strict().refine((b) => Object.keys(b).length > 0, {
|
|
6070
|
-
message: "at least one field must be provided"
|
|
6071
|
-
});
|
|
6072
|
-
reporterReportSummarySchema = external_exports.object({
|
|
6073
|
-
report_id: external_exports.string(),
|
|
6074
|
-
title: external_exports.string(),
|
|
6075
|
-
description: external_exports.string(),
|
|
6076
|
-
classification: reportClassificationSchema,
|
|
6077
|
-
status: reportStatusSchema,
|
|
6078
|
-
created_at: timestampSchema,
|
|
6079
|
-
triaged_at: timestampSchema.nullable(),
|
|
6080
|
-
resolved_at: timestampSchema.nullable(),
|
|
6081
|
-
/** How many times the reporter has contested (gates the hard cap). */
|
|
6082
|
-
contest_count: external_exports.number(),
|
|
6083
|
-
/** True once triage issued a non-contestable (final) dismissal. */
|
|
6084
|
-
dismissal_final: external_exports.boolean()
|
|
6085
|
-
});
|
|
6086
|
-
reporterListResponseSchema = external_exports.object({
|
|
6087
|
-
data: external_exports.array(reporterReportSummarySchema)
|
|
6088
|
-
});
|
|
6089
|
-
getReportResponseSchema = external_exports.object({
|
|
6090
|
-
report: reporterReportSummarySchema,
|
|
6091
|
-
messages: external_exports.array(reportMessageSchema)
|
|
6092
|
-
});
|
|
6093
|
-
reporterTransitionResponseSchema = external_exports.object({
|
|
6094
|
-
report: reporterReportSummarySchema
|
|
6095
|
-
});
|
|
6096
|
-
contestReportBody = external_exports.object({
|
|
6097
|
-
reason: external_exports.string().min(1).max(5e3)
|
|
6098
|
-
});
|
|
6099
|
-
reporterListQuery = external_exports.object({
|
|
6100
|
-
status: reportStatusSchema.optional()
|
|
6101
|
-
});
|
|
6102
|
-
listReportsQuery = external_exports.object({
|
|
6103
|
-
status: reportStatusSchema.optional(),
|
|
6104
|
-
source: reportSourceSchema.optional(),
|
|
6105
|
-
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
6106
|
-
offset: external_exports.coerce.number().int().min(0).optional(),
|
|
6107
|
-
/** ISO 8601 lower bound on created_at. */
|
|
6108
|
-
since: external_exports.string().datetime().optional(),
|
|
6109
|
-
/**
|
|
6110
|
-
* ISO 8601 lower bound on resolution time — "what did we resolve recently", which `since`
|
|
6111
|
-
* (a created_at filter) cannot answer for a long-lived report resolved yesterday. Implies
|
|
6112
|
-
* a terminal status (`addressed`/`dismissed`) and orders on that same axis.
|
|
6113
|
-
*/
|
|
6114
|
-
resolved_since: external_exports.string().datetime().optional()
|
|
6115
|
-
});
|
|
6116
|
-
GITHUB_ISSUE_URL_REGEX = /^https:\/\/github\.com\/[^/]+\/[^/]+\/issues\/\d+(?:[/?#]|$)/;
|
|
6117
|
-
githubIssueUrlSchema = external_exports.string().url().refine((u) => GITHUB_ISSUE_URL_REGEX.test(u), {
|
|
6118
|
-
message: "must be an https://github.com/<owner>/<repo>/issues/<number> URL"
|
|
6119
|
-
});
|
|
6120
|
-
transitionReportBody = external_exports.discriminatedUnion("target", [
|
|
6121
|
-
external_exports.object({
|
|
6122
|
-
target: external_exports.literal("escalated"),
|
|
6123
|
-
gh_issue_url: githubIssueUrlSchema,
|
|
6124
|
-
ai_verdict: external_exports.string().max(2e3).optional()
|
|
6125
|
-
}),
|
|
6126
|
-
external_exports.object({
|
|
6127
|
-
target: external_exports.literal("shipped"),
|
|
6128
|
-
note: external_exports.string().min(1).max(2e3).optional()
|
|
6129
|
-
}),
|
|
6130
|
-
external_exports.object({
|
|
6131
|
-
target: external_exports.literal("addressed")
|
|
6132
|
-
}),
|
|
6133
|
-
external_exports.object({
|
|
6134
|
-
target: external_exports.literal("dismissed"),
|
|
6135
|
-
dismissal_reason: external_exports.string().min(1).max(5e3),
|
|
6136
|
-
ai_verdict: external_exports.string().max(2e3).optional(),
|
|
6137
|
-
final: external_exports.boolean().optional()
|
|
6138
|
-
})
|
|
6139
|
-
]);
|
|
6140
|
-
groupReportsBody = external_exports.object({
|
|
6141
|
-
member_ids: external_exports.array(external_exports.string().uuid()).min(1).max(100)
|
|
6142
|
-
});
|
|
6143
|
-
holdReportBody = external_exports.object({
|
|
6144
|
-
reason: external_exports.string().min(1).max(5e3)
|
|
6145
|
-
});
|
|
6146
|
-
}
|
|
6147
|
-
});
|
|
6148
|
-
|
|
6149
|
-
// ../../packages/core/dist/chunk-GPM7PE44.js
|
|
6150
|
-
var bootstrapQuery;
|
|
6151
|
-
var init_chunk_GPM7PE44 = __esm({
|
|
6152
|
-
"../../packages/core/dist/chunk-GPM7PE44.js"() {
|
|
6153
|
-
"use strict";
|
|
6154
|
-
init_zod();
|
|
6155
|
-
bootstrapQuery = external_exports.object({
|
|
6156
|
-
active_hub_id: external_exports.string().uuid().optional(),
|
|
6157
|
-
active_conversation_id: external_exports.string().uuid().optional(),
|
|
6158
|
-
active_nav: external_exports.enum(["chat", "task", "support"]).optional(),
|
|
6159
|
-
/**
|
|
6160
|
-
* The people thread the URL names (`/chat/threads/:threadId`, gh #4661): the snapshot
|
|
6161
|
-
* preloads it as `people.active_thread` when the viewer is a member.
|
|
6162
|
-
*/
|
|
6163
|
-
active_thread_id: external_exports.string().uuid().optional()
|
|
6164
|
-
});
|
|
6165
|
-
}
|
|
6166
|
-
});
|
|
6167
|
-
|
|
6168
|
-
// ../../packages/core/dist/chunk-5VL6LBFD.js
|
|
6169
|
-
var PERMISSIONS;
|
|
6170
|
-
var init_chunk_5VL6LBFD = __esm({
|
|
6171
|
-
"../../packages/core/dist/chunk-5VL6LBFD.js"() {
|
|
6172
|
-
"use strict";
|
|
6173
|
-
PERMISSIONS = [
|
|
6174
|
-
"hub:read",
|
|
6175
|
-
"hub:write",
|
|
6176
|
-
"hub:admin",
|
|
6177
|
-
"conversation:read",
|
|
6178
|
-
"conversation:write",
|
|
6179
|
-
"analytics:read",
|
|
6180
|
-
"billing:read",
|
|
6181
|
-
"billing:write",
|
|
6182
|
-
"org:read",
|
|
6183
|
-
"org:write",
|
|
6184
|
-
"org:admin",
|
|
6185
|
-
"contacts:write",
|
|
6186
|
-
"platform:admin",
|
|
6187
|
-
"*"
|
|
6188
|
-
];
|
|
6189
|
-
}
|
|
6190
|
-
});
|
|
6191
|
-
|
|
6192
|
-
// ../../packages/core/dist/chunk-VEERWOZ6.js
|
|
6193
|
-
var MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam;
|
|
6194
|
-
var init_chunk_VEERWOZ6 = __esm({
|
|
6195
|
-
"../../packages/core/dist/chunk-VEERWOZ6.js"() {
|
|
6196
|
-
"use strict";
|
|
6197
|
-
init_chunk_5VL6LBFD();
|
|
6198
|
-
init_chunk_HZ6CADSY();
|
|
6199
|
-
init_zod();
|
|
6200
|
-
MAX_NAME_LENGTH2 = 100;
|
|
6201
|
-
MAX_HUBS_PER_GRANT = 50;
|
|
6202
|
-
MAX_HUB_TAGS_PER_GRANT = 20;
|
|
6203
|
-
MAX_GRANTS = 20;
|
|
6204
|
-
permissionEnum = external_exports.enum(PERMISSIONS).refine(
|
|
6205
|
-
(p) => p !== "platform:admin",
|
|
6206
|
-
{ message: "platform:admin cannot be delegated via token creation" }
|
|
6207
|
-
);
|
|
6208
|
-
grantScopeSchema = external_exports.object({
|
|
6209
|
-
// Required: every token grant must declare its org tenancy. The handler
|
|
6210
|
-
// also strict-checks this as defense-in-depth, but failing at the Zod
|
|
6211
|
-
// boundary keeps the generated client type honest (org_id: string).
|
|
6212
|
-
org_id: external_exports.string().min(1),
|
|
6213
|
-
hubs: external_exports.array(external_exports.string().min(1)).min(1, "Each grant must have scope.hubs as a non-empty array").max(MAX_HUBS_PER_GRANT),
|
|
6214
|
-
hub_tags: external_exports.array(external_exports.string().min(1)).min(1, "scope.hub_tags must be a non-empty array if provided").max(MAX_HUB_TAGS_PER_GRANT).optional(),
|
|
6215
|
-
environments: external_exports.array(external_exports.enum(["production", "preview"])).min(1, "scope.environments must be a non-empty array if provided").optional()
|
|
6216
|
-
}).strict();
|
|
6217
|
-
grantSchema = external_exports.object({
|
|
6218
|
-
scope: grantScopeSchema,
|
|
6219
|
-
permissions: external_exports.array(permissionEnum).min(1, "Each grant must have permissions as a non-empty array")
|
|
6220
|
-
}).strict();
|
|
6221
|
-
createTokenBody = external_exports.object({
|
|
6222
|
-
name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH2, `name must be ${MAX_NAME_LENGTH2} characters or fewer`),
|
|
6223
|
-
grants: external_exports.array(grantSchema).min(1, "grants must be a non-empty array").max(MAX_GRANTS),
|
|
6224
|
-
expires_at: external_exports.string().datetime({ message: "expires_at must be a valid ISO 8601 date" }).refine(
|
|
6225
|
-
(s) => new Date(s).getTime() > Date.now(),
|
|
6226
|
-
{ message: "expires_at must be in the future" }
|
|
6227
|
-
).optional()
|
|
6228
|
-
});
|
|
6229
|
-
tokenOrgIdParam = external_exports.object({ orgId: uuidSchema });
|
|
6230
|
-
}
|
|
6231
|
-
});
|
|
6232
|
-
|
|
6233
|
-
// ../../packages/core/dist/chunk-ZC6YGHNX.js
|
|
6234
|
-
var updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, recordAiDisclosureAcceptanceBody, activityQuery, deletionModeSchema, deletionRequestBody;
|
|
6235
|
-
var init_chunk_ZC6YGHNX = __esm({
|
|
6236
|
-
"../../packages/core/dist/chunk-ZC6YGHNX.js"() {
|
|
6237
|
-
"use strict";
|
|
6238
|
-
init_zod();
|
|
6239
|
-
updateUserBody = external_exports.object({
|
|
6240
|
-
user_language: external_exports.string().optional(),
|
|
6241
|
-
/** true: dark; false: light; null: follow each device's own setting (`AppearanceMode`). */
|
|
6242
|
-
ui_dark_mode: external_exports.boolean().nullable().optional(),
|
|
6243
|
-
profile_name: external_exports.string().optional(),
|
|
6244
|
-
link_email_to_identities: external_exports.boolean().optional()
|
|
6245
|
-
}).refine(
|
|
6246
|
-
(data) => Object.values(data).some((v) => v !== void 0),
|
|
6247
|
-
{ message: "At least one field must be provided" }
|
|
6248
|
-
);
|
|
6249
|
-
updateProfileBody = external_exports.object({
|
|
6250
|
-
display_name: external_exports.string().optional(),
|
|
6251
|
-
avatar_url: external_exports.string().optional(),
|
|
6252
|
-
preferences: external_exports.record(external_exports.unknown()).optional()
|
|
6253
|
-
}).refine(
|
|
6254
|
-
(data) => Object.values(data).some((v) => v !== void 0),
|
|
6255
|
-
{ message: "At least one field must be provided" }
|
|
6256
|
-
);
|
|
6257
|
-
pathnameRegex = /^\/(?!\/)[A-Za-z0-9\-._~!$&'()*+,;=:@/?%]*$/;
|
|
6258
|
-
updatePreferencesBody = external_exports.object({
|
|
6259
|
-
last_viewed_nav: external_exports.string().regex(pathnameRegex, "Must be a URL pathname").max(2048).optional(),
|
|
6260
|
-
dismissed_agentic_shortcut: external_exports.boolean().optional(),
|
|
6261
|
-
opened_guide: external_exports.boolean().optional()
|
|
6262
|
-
}).passthrough();
|
|
6263
|
-
registerPushTokenBody = external_exports.object({
|
|
6264
|
-
token: external_exports.string().min(1).max(512),
|
|
6265
|
-
platform: external_exports.enum(["ios", "android"]),
|
|
6266
|
-
/** Stable per-install id so re-registration replaces the prior token for the device. */
|
|
6267
|
-
device_id: external_exports.string().min(1).max(128).optional(),
|
|
6268
|
-
/**
|
|
6269
|
-
* The build opens a person-to-person thread from a push (gh #4661): only a token registered
|
|
6270
|
-
* with it receives thread pushes, whose `data` carries `thread_id` and no `conversation_id`.
|
|
6271
|
-
* Each registration states it afresh, so a build that sends none clears it.
|
|
6272
|
-
*/
|
|
6273
|
-
supports_threads: external_exports.boolean().optional(),
|
|
6274
|
-
/**
|
|
6275
|
-
* The build opens a community from a push (gh #4872 Decision 8): only a token registered with it
|
|
6276
|
-
* receives a community's pushes (an announcement, a reply to the member's forum post), whose
|
|
6277
|
-
* `data` is `CommunityPushData` — never a `conversation_id` or a `thread_id`. Each registration
|
|
6278
|
-
* states it afresh, so a build that sends none clears it.
|
|
6279
|
-
*/
|
|
6280
|
-
supports_communities: external_exports.boolean().optional()
|
|
6281
|
-
});
|
|
6282
|
-
deletePushTokenQuery = external_exports.object({
|
|
6283
|
-
token: external_exports.string().min(1).max(512)
|
|
6284
|
-
});
|
|
6285
|
-
recordAiDisclosureAcceptanceBody = external_exports.object({
|
|
6286
|
-
version: external_exports.number().int().positive(),
|
|
6287
|
-
withdrawn_at_seen: external_exports.string().datetime().nullable().optional()
|
|
6288
|
-
});
|
|
6289
|
-
activityQuery = external_exports.object({
|
|
6290
|
-
limit: external_exports.coerce.number().int().min(1).max(100).optional()
|
|
6291
|
-
});
|
|
6292
|
-
deletionModeSchema = external_exports.enum(["scheduled", "immediate"]);
|
|
6293
|
-
deletionRequestBody = external_exports.object({
|
|
6294
|
-
mode: deletionModeSchema,
|
|
6295
|
-
/** User-supplied reason captured in the audit log; bounded to bound logged PII. */
|
|
6296
|
-
reason: external_exports.string().max(500).optional(),
|
|
6297
|
-
/** Type-to-confirm value; must equal the user's email (constant-time compared). */
|
|
6298
|
-
email_confirmation: external_exports.string().min(1).max(320)
|
|
6299
|
-
});
|
|
6300
|
-
}
|
|
6301
|
-
});
|
|
6302
|
-
|
|
6303
|
-
// ../../packages/core/dist/chunk-ZVXO3XL6.js
|
|
6304
|
-
var PEOPLE_CONTACT_PAGE_MAX, PEOPLE_CONTACT_PAGE_DEFAULT, PEOPLE_CONTACT_EMAIL_MAX_LENGTH, peopleUserIdSchema, peopleInviteEmailSchema, peopleContactInviteBody, peopleContactInviteIdParam, peopleContactUserIdParam, peopleContactBlockBody, peopleContactPageQuery, peopleOutgoingInviteSchema, peopleContactPersonSchema, peopleContactSchema, peopleIncomingInviteSchema, peopleBlockedUserSchema;
|
|
6305
|
-
var init_chunk_ZVXO3XL6 = __esm({
|
|
6306
|
-
"../../packages/core/dist/chunk-ZVXO3XL6.js"() {
|
|
6307
|
-
"use strict";
|
|
6308
|
-
init_chunk_HZ6CADSY();
|
|
6309
|
-
init_zod();
|
|
6310
|
-
PEOPLE_CONTACT_PAGE_MAX = 100;
|
|
6311
|
-
PEOPLE_CONTACT_PAGE_DEFAULT = 50;
|
|
6312
|
-
PEOPLE_CONTACT_EMAIL_MAX_LENGTH = 254;
|
|
6313
|
-
peopleUserIdSchema = external_exports.string().max(64).regex(USER_ID_REGEX, "must be a user id");
|
|
6314
|
-
peopleInviteEmailSchema = external_exports.string().trim().max(PEOPLE_CONTACT_EMAIL_MAX_LENGTH).email();
|
|
6315
|
-
peopleContactInviteBody = external_exports.object({
|
|
6316
|
-
email: peopleInviteEmailSchema
|
|
6317
|
-
}).strict();
|
|
6318
|
-
peopleContactInviteIdParam = external_exports.object({ inviteId: uuidSchema });
|
|
6319
|
-
peopleContactUserIdParam = external_exports.object({ userId: peopleUserIdSchema });
|
|
6320
|
-
peopleContactBlockBody = external_exports.object({ user_id: peopleUserIdSchema, thread_id: uuidSchema.optional(), community_id: uuidSchema.optional() }).strict().refine((body) => body.thread_id === void 0 || body.community_id === void 0, {
|
|
6321
|
-
message: "Name a thread or a community, not both",
|
|
6322
|
-
path: ["community_id"]
|
|
6323
|
-
});
|
|
6324
|
-
peopleContactPageQuery = external_exports.object({
|
|
6325
|
-
cursor: external_exports.string().min(1).max(256).optional(),
|
|
6326
|
-
limit: external_exports.coerce.number().int().min(1).max(PEOPLE_CONTACT_PAGE_MAX).default(PEOPLE_CONTACT_PAGE_DEFAULT)
|
|
6327
|
-
});
|
|
6328
|
-
peopleOutgoingInviteSchema = external_exports.object({
|
|
6329
|
-
invite_id: uuidSchema,
|
|
6330
|
-
email: external_exports.string(),
|
|
6331
|
-
status: external_exports.literal("sent"),
|
|
6332
|
-
created_at: timestampSchema,
|
|
6333
|
-
expires_at: timestampSchema
|
|
6334
|
-
}).strict();
|
|
6335
|
-
peopleContactPersonSchema = external_exports.object({
|
|
6336
|
-
user_id: peopleUserIdSchema,
|
|
6337
|
-
display_name: external_exports.string().nullable(),
|
|
6338
|
-
email: external_exports.string().nullable()
|
|
6339
|
-
}).strict();
|
|
6340
|
-
peopleContactSchema = peopleContactPersonSchema.extend({ contact_since: timestampSchema, thread_id: uuidSchema }).strict();
|
|
6341
|
-
peopleIncomingInviteSchema = external_exports.object({
|
|
6342
|
-
invite_id: uuidSchema,
|
|
6343
|
-
inviter: peopleContactPersonSchema,
|
|
6344
|
-
created_at: timestampSchema,
|
|
6345
|
-
expires_at: timestampSchema
|
|
6346
|
-
}).strict();
|
|
6347
|
-
peopleBlockedUserSchema = peopleContactPersonSchema.extend({ blocked_at: timestampSchema, deleted_user: external_exports.boolean() }).strict();
|
|
6348
|
-
}
|
|
6349
|
-
});
|
|
6350
|
-
|
|
6351
|
-
// ../../packages/core/dist/chunk-ZXK6N2HN.js
|
|
6352
|
-
var PEOPLE_MODERATION_NOTE_MAX_LENGTH, ADMIN_PEOPLE_REPORTS_PAGE_MAX, ADMIN_PEOPLE_REPORTS_PAGE_DEFAULT, PEOPLE_SUSPENDED_REASON, peopleModerationActionSchema, moderationNoteSchema, adminPeopleReportListQuery, adminPeopleReportIdParam, adminPeopleMessageRemovalBody, adminPeopleSuspendBody, adminPeopleNoteBody;
|
|
6353
|
-
var init_chunk_ZXK6N2HN = __esm({
|
|
6354
|
-
"../../packages/core/dist/chunk-ZXK6N2HN.js"() {
|
|
6355
|
-
"use strict";
|
|
6356
|
-
init_chunk_ZVXO3XL6();
|
|
6357
|
-
init_chunk_HZ6CADSY();
|
|
6358
|
-
init_zod();
|
|
6359
|
-
PEOPLE_MODERATION_NOTE_MAX_LENGTH = 500;
|
|
6360
|
-
ADMIN_PEOPLE_REPORTS_PAGE_MAX = 100;
|
|
6361
|
-
ADMIN_PEOPLE_REPORTS_PAGE_DEFAULT = 50;
|
|
6362
|
-
PEOPLE_SUSPENDED_REASON = "suspended";
|
|
6363
|
-
peopleModerationActionSchema = external_exports.enum(["remove_message", "suspend", "unsuspend", "dismiss"]);
|
|
6364
|
-
moderationNoteSchema = optionalTrimmedText(PEOPLE_MODERATION_NOTE_MAX_LENGTH);
|
|
6365
|
-
adminPeopleReportListQuery = external_exports.object({
|
|
6366
|
-
pending: external_exports.enum(["true", "false"]).optional().transform((value) => value === "true"),
|
|
6367
|
-
/** Lower bound on `created_at`. */
|
|
6368
|
-
since: timestampSchema.optional(),
|
|
6369
|
-
limit: external_exports.coerce.number().int().min(1).max(ADMIN_PEOPLE_REPORTS_PAGE_MAX).default(ADMIN_PEOPLE_REPORTS_PAGE_DEFAULT),
|
|
6370
|
-
offset: external_exports.coerce.number().int().min(0).default(0)
|
|
6371
|
-
});
|
|
6372
|
-
adminPeopleReportIdParam = external_exports.object({ reportId: uuidSchema });
|
|
6373
|
-
adminPeopleMessageRemovalBody = external_exports.object({ report_id: uuidSchema, message_id: uuidSchema.optional(), note: moderationNoteSchema }).strict();
|
|
6374
|
-
adminPeopleSuspendBody = external_exports.object({ report_id: uuidSchema.optional(), note: moderationNoteSchema }).strict();
|
|
6375
|
-
adminPeopleNoteBody = external_exports.object({ note: moderationNoteSchema }).strict();
|
|
6376
|
-
}
|
|
6377
|
-
});
|
|
6378
|
-
|
|
6379
|
-
// ../../packages/core/dist/chunk-Y7CFCYX4.js
|
|
6380
|
-
var PEOPLE_REPORT_DETAILS_MAX_LENGTH, peopleReportReasonSchema, reportDetailsSchema, reportFields, peopleReportBody;
|
|
6381
|
-
var init_chunk_Y7CFCYX4 = __esm({
|
|
6382
|
-
"../../packages/core/dist/chunk-Y7CFCYX4.js"() {
|
|
6383
|
-
"use strict";
|
|
6384
|
-
init_chunk_ZVXO3XL6();
|
|
6385
|
-
init_chunk_HZ6CADSY();
|
|
6386
|
-
init_zod();
|
|
6387
|
-
PEOPLE_REPORT_DETAILS_MAX_LENGTH = 500;
|
|
6388
|
-
peopleReportReasonSchema = external_exports.enum(["spam", "harassment", "hate", "sexual", "violence", "other"]);
|
|
6389
|
-
reportDetailsSchema = optionalTrimmedText(PEOPLE_REPORT_DETAILS_MAX_LENGTH);
|
|
6390
|
-
reportFields = { reason: peopleReportReasonSchema, details: reportDetailsSchema };
|
|
6391
|
-
peopleReportBody = external_exports.discriminatedUnion("target", [
|
|
6392
|
-
external_exports.object({ target: external_exports.literal("message"), thread_id: uuidSchema, message_id: uuidSchema, ...reportFields }).strict(),
|
|
6393
|
-
external_exports.object({ target: external_exports.literal("thread"), thread_id: uuidSchema, ...reportFields }).strict(),
|
|
6394
|
-
external_exports.object({ target: external_exports.literal("user"), user_id: peopleUserIdSchema, thread_id: uuidSchema.optional(), ...reportFields }).strict(),
|
|
6395
|
-
external_exports.object({
|
|
6396
|
-
target: external_exports.literal("community_message"),
|
|
6397
|
-
community_id: uuidSchema,
|
|
6398
|
-
room_id: uuidSchema,
|
|
6399
|
-
message_id: uuidSchema,
|
|
6400
|
-
...reportFields
|
|
6401
|
-
}).strict(),
|
|
6402
|
-
external_exports.object({ target: external_exports.literal("community_member"), community_id: uuidSchema, user_id: peopleUserIdSchema, ...reportFields }).strict()
|
|
6403
|
-
]);
|
|
6404
|
-
}
|
|
6405
|
-
});
|
|
6406
|
-
|
|
6407
|
-
// ../../packages/core/dist/chunk-5DGHIY7L.js
|
|
6408
|
-
var rekorBaseChangeMessageSchema;
|
|
6409
|
-
var init_chunk_5DGHIY7L = __esm({
|
|
6410
|
-
"../../packages/core/dist/chunk-5DGHIY7L.js"() {
|
|
6411
|
-
"use strict";
|
|
6412
|
-
init_zod();
|
|
6413
|
-
rekorBaseChangeMessageSchema = external_exports.object({
|
|
6414
|
-
/** The WayAI org UUID — one id namespace. */
|
|
6415
|
-
org_id: external_exports.string().uuid(),
|
|
6416
|
-
/**
|
|
6417
|
-
* Not a UUID: a preview base id is `{prod_base_id}--{slug}`. Immutable per base — a
|
|
6418
|
-
* preview clone is its OWN base_id — so `(base_id, scope)` keys never collide across
|
|
6419
|
-
* environments. Empty is never a real base id, so it is non-conforming rather than a
|
|
6420
|
-
* frame keyed on nothing.
|
|
6421
|
-
*/
|
|
6422
|
-
base_id: external_exports.string().min(1),
|
|
6423
|
-
/**
|
|
6424
|
-
* Rides along so the client scopes its refetch without a lookup; the inspector scopes
|
|
6425
|
-
* by side.
|
|
6426
|
-
*/
|
|
6427
|
-
environment: external_exports.enum(["production", "preview"]),
|
|
6428
|
-
/** Which pane refetches. `base` covers create/delete/promote/config changes. */
|
|
6429
|
-
scope: external_exports.enum(["records", "record_types", "files", "base"])
|
|
6430
|
-
});
|
|
6431
|
-
}
|
|
6432
|
-
});
|
|
6433
|
-
|
|
6434
|
-
// ../../packages/core/dist/chunk-5XEJSR22.js
|
|
6435
|
-
var DATA_PROXY_MOUNT, DATA_PROXY_PREFIX, BASE_DESTRUCTION_MOUNT, BASE_DESTRUCTION_PREFIX, BASE_DESTRUCTION_CONFIRM_PATH, COMMUNITY_EMAIL_UNSUBSCRIBE_PATH, CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH, AUTOMATION_WEBHOOK_MOUNT, MANAGED_AGENTS_WEBHOOK_MOUNT;
|
|
6436
|
-
var init_chunk_5XEJSR22 = __esm({
|
|
6437
|
-
"../../packages/core/dist/chunk-5XEJSR22.js"() {
|
|
6438
|
-
"use strict";
|
|
6439
|
-
DATA_PROXY_MOUNT = "/data";
|
|
6440
|
-
DATA_PROXY_PREFIX = `/api${DATA_PROXY_MOUNT}`;
|
|
6441
|
-
BASE_DESTRUCTION_MOUNT = "/bases";
|
|
6442
|
-
BASE_DESTRUCTION_PREFIX = `/api${BASE_DESTRUCTION_MOUNT}`;
|
|
6443
|
-
BASE_DESTRUCTION_CONFIRM_PATH = `${BASE_DESTRUCTION_PREFIX}/destruction/confirm`;
|
|
6444
|
-
COMMUNITY_EMAIL_UNSUBSCRIBE_PATH = "/api/communities/email-unsubscribe";
|
|
6445
|
-
CONTACT_BOOK_EMAIL_UNSUBSCRIBE_PATH = "/api/contact-book/email-unsubscribe";
|
|
6446
|
-
AUTOMATION_WEBHOOK_MOUNT = "/webhooks/automations";
|
|
6447
|
-
MANAGED_AGENTS_WEBHOOK_MOUNT = "/webhooks/managed-agents";
|
|
6448
|
-
}
|
|
6449
|
-
});
|
|
6450
|
-
|
|
6451
|
-
// ../../packages/core/dist/chunk-QAIUP34Y.js
|
|
6452
|
-
function matchPath(pattern, path44) {
|
|
6453
|
-
const pathSegments2 = path44.replace(/\/$/, "").split("/");
|
|
6454
|
-
const isPrefix = pattern.endsWith("/*");
|
|
6455
|
-
const patternSegments = (isPrefix ? pattern.slice(0, -2) : pattern).split("/");
|
|
6456
|
-
if (isPrefix ? pathSegments2.length < patternSegments.length : pathSegments2.length !== patternSegments.length) {
|
|
6457
|
-
return false;
|
|
6458
|
-
}
|
|
6459
|
-
return patternSegments.every((segment, i) => segment === "*" ? pathSegments2[i] !== "" : segment === pathSegments2[i]);
|
|
6460
|
-
}
|
|
6461
|
-
function getEndpointConfig(path44) {
|
|
6462
|
-
for (const excluded of EXCLUDED_PATHS) {
|
|
6463
|
-
if (matchPath(excluded, path44)) {
|
|
6464
|
-
return null;
|
|
6465
|
-
}
|
|
6466
|
-
}
|
|
6467
|
-
const normalizedPath = path44.replace(/\/$/, "");
|
|
6468
|
-
if (!normalizedPath.endsWith("/*") && Object.prototype.hasOwnProperty.call(ENDPOINT_CONFIGS, normalizedPath)) {
|
|
6469
|
-
return ENDPOINT_CONFIGS[normalizedPath];
|
|
6470
|
-
}
|
|
6471
|
-
const sortedPatterns = Object.keys(ENDPOINT_CONFIGS).sort((a, b) => b.length - a.length);
|
|
6472
|
-
for (const pattern of sortedPatterns) {
|
|
6473
|
-
if (matchPath(pattern, path44)) {
|
|
6474
|
-
return ENDPOINT_CONFIGS[pattern];
|
|
6475
|
-
}
|
|
6476
|
-
}
|
|
6477
|
-
return { tier: "STANDARD" };
|
|
6478
|
-
}
|
|
6479
|
-
var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
|
|
6480
|
-
var init_chunk_QAIUP34Y = __esm({
|
|
6481
|
-
"../../packages/core/dist/chunk-QAIUP34Y.js"() {
|
|
5716
|
+
// ../../packages/core/dist/chunk-3DCPJ6NB.js
|
|
5717
|
+
function matchPath(pattern, path44) {
|
|
5718
|
+
const pathSegments2 = path44.replace(/\/$/, "").split("/");
|
|
5719
|
+
const isPrefix = pattern.endsWith("/*");
|
|
5720
|
+
const patternSegments = (isPrefix ? pattern.slice(0, -2) : pattern).split("/");
|
|
5721
|
+
if (isPrefix ? pathSegments2.length < patternSegments.length : pathSegments2.length !== patternSegments.length) {
|
|
5722
|
+
return false;
|
|
5723
|
+
}
|
|
5724
|
+
return patternSegments.every((segment, i) => segment === "*" ? pathSegments2[i] !== "" : segment === pathSegments2[i]);
|
|
5725
|
+
}
|
|
5726
|
+
function getEndpointConfig(path44) {
|
|
5727
|
+
for (const excluded of EXCLUDED_PATHS) {
|
|
5728
|
+
if (matchPath(excluded, path44)) {
|
|
5729
|
+
return null;
|
|
5730
|
+
}
|
|
5731
|
+
}
|
|
5732
|
+
const normalizedPath = path44.replace(/\/$/, "");
|
|
5733
|
+
if (!normalizedPath.endsWith("/*") && Object.prototype.hasOwnProperty.call(ENDPOINT_CONFIGS, normalizedPath)) {
|
|
5734
|
+
return ENDPOINT_CONFIGS[normalizedPath];
|
|
5735
|
+
}
|
|
5736
|
+
const sortedPatterns = Object.keys(ENDPOINT_CONFIGS).sort((a, b) => b.length - a.length);
|
|
5737
|
+
for (const pattern of sortedPatterns) {
|
|
5738
|
+
if (matchPath(pattern, path44)) {
|
|
5739
|
+
return ENDPOINT_CONFIGS[pattern];
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
return { tier: "STANDARD" };
|
|
5743
|
+
}
|
|
5744
|
+
var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
|
|
5745
|
+
var init_chunk_3DCPJ6NB = __esm({
|
|
5746
|
+
"../../packages/core/dist/chunk-3DCPJ6NB.js"() {
|
|
6482
5747
|
"use strict";
|
|
6483
5748
|
init_chunk_5XEJSR22();
|
|
6484
5749
|
ENDPOINT_CONFIGS = {
|
|
@@ -6807,7 +6072,7 @@ var init_chunk_QAIUP34Y = __esm({
|
|
|
6807
6072
|
// A hub's team pages and their bridge (#5333; owner decision of 2026-10-27): a signed-in caller is
|
|
6808
6073
|
// counted on one budget of their own across every hub's page routes instead of the per-IP tier,
|
|
6809
6074
|
// which a team behind one address shares. The bridge's own budgets still apply on top: 60 calls a
|
|
6810
|
-
// minute per viewer and page,
|
|
6075
|
+
// minute per viewer and page, 150 per viewer across a hub's pages, 500 per hub (`PAGE_BRIDGE_PER_*` below).
|
|
6811
6076
|
"/api/hubs/*/pages/*": { tier: "STANDARD", userLimit: 500, skipAuthenticatedUsers: true, userLimitKey: "/api/hubs/*/pages/*" },
|
|
6812
6077
|
// Attested `/v1` proxy onto the data API's `AttestedEntrypoint`. `userLimitKey` is load-bearing here: the
|
|
6813
6078
|
// per-user budget defaults to the full request path, and this surface's paths carry base,
|
|
@@ -6955,70 +6220,851 @@ var init_chunk_QAIUP34Y = __esm({
|
|
|
6955
6220
|
}
|
|
6956
6221
|
});
|
|
6957
6222
|
|
|
6958
|
-
// ../../packages/core/dist/chunk-
|
|
6959
|
-
function fileSnapshotChanged(run) {
|
|
6960
|
-
return run.written + run.removed > 0;
|
|
6961
|
-
}
|
|
6962
|
-
async function runFileSnapshot(opts) {
|
|
6963
|
-
const run = { pages: 0, written: 0, removed: 0, unchanged: 0 };
|
|
6964
|
-
const seen = /* @__PURE__ */ new Set();
|
|
6965
|
-
let cursor;
|
|
6966
|
-
while (run.pages < FILE_SNAPSHOT_MAX_PAGES) {
|
|
6967
|
-
const page = await sendWithRetry(opts, cursor);
|
|
6968
|
-
run.pages++;
|
|
6969
|
-
run.written += page.written;
|
|
6970
|
-
run.removed += page.removed;
|
|
6971
|
-
run.unchanged += page.unchanged;
|
|
6972
|
-
opts.onPage?.(page, run.pages);
|
|
6973
|
-
if (page.next_cursor === null) return run;
|
|
6974
|
-
if (seen.has(page.next_cursor)) {
|
|
6975
|
-
throw new Error(`The preview file snapshot repeated its cursor after page ${run.pages}, so it would never end.`);
|
|
6976
|
-
}
|
|
6977
|
-
seen.add(page.next_cursor);
|
|
6978
|
-
cursor = page.next_cursor;
|
|
6223
|
+
// ../../packages/core/dist/chunk-DAPIEZDP.js
|
|
6224
|
+
function fileSnapshotChanged(run) {
|
|
6225
|
+
return run.written + run.removed > 0;
|
|
6226
|
+
}
|
|
6227
|
+
async function runFileSnapshot(opts) {
|
|
6228
|
+
const run = { pages: 0, written: 0, removed: 0, unchanged: 0 };
|
|
6229
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6230
|
+
let cursor;
|
|
6231
|
+
while (run.pages < FILE_SNAPSHOT_MAX_PAGES) {
|
|
6232
|
+
const page = await sendWithRetry(opts, cursor);
|
|
6233
|
+
run.pages++;
|
|
6234
|
+
run.written += page.written;
|
|
6235
|
+
run.removed += page.removed;
|
|
6236
|
+
run.unchanged += page.unchanged;
|
|
6237
|
+
opts.onPage?.(page, run.pages);
|
|
6238
|
+
if (page.next_cursor === null) return run;
|
|
6239
|
+
if (seen.has(page.next_cursor)) {
|
|
6240
|
+
throw new Error(`The preview file snapshot repeated its cursor after page ${run.pages}, so it would never end.`);
|
|
6241
|
+
}
|
|
6242
|
+
seen.add(page.next_cursor);
|
|
6243
|
+
cursor = page.next_cursor;
|
|
6244
|
+
}
|
|
6245
|
+
throw new Error(`The preview file snapshot did not end after ${FILE_SNAPSHOT_MAX_PAGES} pages.`);
|
|
6246
|
+
}
|
|
6247
|
+
async function sendWithRetry(opts, cursor) {
|
|
6248
|
+
for (let attempt = 1; ; attempt++) {
|
|
6249
|
+
let body;
|
|
6250
|
+
try {
|
|
6251
|
+
body = await opts.sendPage(cursor);
|
|
6252
|
+
} catch (error) {
|
|
6253
|
+
if (attempt < FILE_SNAPSHOT_CONFLICT_ATTEMPTS && opts.isConflict(error)) continue;
|
|
6254
|
+
throw error;
|
|
6255
|
+
}
|
|
6256
|
+
const parsed = rekorFileSnapshotAnswerSchema.safeParse(body);
|
|
6257
|
+
if (!parsed.success) {
|
|
6258
|
+
throw new Error("The data product answered a preview file snapshot page WayAI cannot read: nothing more was sent.");
|
|
6259
|
+
}
|
|
6260
|
+
return parsed.data.data;
|
|
6261
|
+
}
|
|
6262
|
+
}
|
|
6263
|
+
var rekorFileSnapshotAnswerSchema, FILE_SNAPSHOT_MAX_PAGES, FILE_SNAPSHOT_CONFLICT_ATTEMPTS, FILE_SNAPSHOT_PAGE_SPACING_MS, FILE_SNAPSHOT_CONFLICT_STATUS;
|
|
6264
|
+
var init_chunk_DAPIEZDP = __esm({
|
|
6265
|
+
"../../packages/core/dist/chunk-DAPIEZDP.js"() {
|
|
6266
|
+
"use strict";
|
|
6267
|
+
init_chunk_3DCPJ6NB();
|
|
6268
|
+
init_chunk_5XEJSR22();
|
|
6269
|
+
init_zod();
|
|
6270
|
+
rekorFileSnapshotAnswerSchema = external_exports.object({
|
|
6271
|
+
data: external_exports.object({
|
|
6272
|
+
next_cursor: external_exports.string().nullable(),
|
|
6273
|
+
/** Files the page created or replaced on the preview. */
|
|
6274
|
+
written: external_exports.number().int(),
|
|
6275
|
+
/** The preview's own files, ones production does not hold, the page removed. */
|
|
6276
|
+
removed: external_exports.number().int(),
|
|
6277
|
+
/** Files the page found already equal to production's. */
|
|
6278
|
+
unchanged: external_exports.number().int()
|
|
6279
|
+
})
|
|
6280
|
+
});
|
|
6281
|
+
FILE_SNAPSHOT_MAX_PAGES = 1e4;
|
|
6282
|
+
FILE_SNAPSHOT_CONFLICT_ATTEMPTS = 3;
|
|
6283
|
+
FILE_SNAPSHOT_PAGE_SPACING_MS = Math.ceil(
|
|
6284
|
+
6e4 / Math.max(1, Math.floor((getEndpointConfig(`${DATA_PROXY_PREFIX}/files/snapshot`)?.userLimit ?? 60) * 4 / 5))
|
|
6285
|
+
);
|
|
6286
|
+
FILE_SNAPSHOT_CONFLICT_STATUS = 409;
|
|
6287
|
+
}
|
|
6288
|
+
});
|
|
6289
|
+
|
|
6290
|
+
// ../../packages/core/dist/chunk-C2ID2BF7.js
|
|
6291
|
+
var REKOR_ACTOR_TYPE_HEADER, REKOR_ACTOR_ID_HEADER, REKOR_ACTOR_LABEL_HEADER, REKOR_ACTOR_ORG_HEADER, REKOR_ACTOR_ADMIN_HEADER, REKOR_CLIENT_HEADER, REKOR_TOOL_ID_HEADER, REKOR_CLIENTS, rekorClientSchema, MAX_REKOR_TOOL_ID_LENGTH, rekorToolIdSchema, REKOR_V1_PREFIX, DATA_PROXY_ORG_QUERY_PARAM, MAX_PROVISIONING_BODY_BYTES, dataProxyQuery, rekorAttestation, REQUIRED_REKOR_ATTESTATION_HEADERS, REKOR_BOUND_BASE_HEADER, REKOR_BOUND_TOOLSET_HEADER, REKOR_BOUND_TOKEN_HEADER, REKOR_BOUND_CUSTOMER_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_ACCESS_SCOPE_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_ACCESS_SCOPE_CUSTOMER, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH;
|
|
6292
|
+
var init_chunk_C2ID2BF7 = __esm({
|
|
6293
|
+
"../../packages/core/dist/chunk-C2ID2BF7.js"() {
|
|
6294
|
+
"use strict";
|
|
6295
|
+
init_zod();
|
|
6296
|
+
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
6297
|
+
REKOR_ACTOR_ID_HEADER = "X-Rekor-Actor-Id";
|
|
6298
|
+
REKOR_ACTOR_LABEL_HEADER = "X-Rekor-Actor-Label";
|
|
6299
|
+
REKOR_ACTOR_ORG_HEADER = "X-Rekor-Actor-Org";
|
|
6300
|
+
REKOR_ACTOR_ADMIN_HEADER = "X-Rekor-Actor-Admin";
|
|
6301
|
+
REKOR_CLIENT_HEADER = "X-Rekor-Client";
|
|
6302
|
+
REKOR_TOOL_ID_HEADER = "X-Rekor-Tool-Id";
|
|
6303
|
+
REKOR_CLIENTS = ["api", "cli", "mcp"];
|
|
6304
|
+
rekorClientSchema = external_exports.enum(REKOR_CLIENTS);
|
|
6305
|
+
MAX_REKOR_TOOL_ID_LENGTH = 128;
|
|
6306
|
+
rekorToolIdSchema = external_exports.string().trim().min(1).max(MAX_REKOR_TOOL_ID_LENGTH);
|
|
6307
|
+
REKOR_V1_PREFIX = "/v1";
|
|
6308
|
+
DATA_PROXY_ORG_QUERY_PARAM = "org_id";
|
|
6309
|
+
MAX_PROVISIONING_BODY_BYTES = 256 * 1024;
|
|
6310
|
+
dataProxyQuery = external_exports.object({
|
|
6311
|
+
[DATA_PROXY_ORG_QUERY_PARAM]: external_exports.string().uuid().optional()
|
|
6312
|
+
});
|
|
6313
|
+
rekorAttestation = external_exports.object({
|
|
6314
|
+
[REKOR_ACTOR_TYPE_HEADER]: external_exports.enum(["user", "token"]),
|
|
6315
|
+
[REKOR_ACTOR_ID_HEADER]: external_exports.string().min(1),
|
|
6316
|
+
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string(),
|
|
6317
|
+
[REKOR_ACTOR_ORG_HEADER]: external_exports.string().uuid(),
|
|
6318
|
+
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.enum(["0", "1"]),
|
|
6319
|
+
[REKOR_CLIENT_HEADER]: rekorClientSchema,
|
|
6320
|
+
[REKOR_TOOL_ID_HEADER]: rekorToolIdSchema.optional()
|
|
6321
|
+
});
|
|
6322
|
+
REQUIRED_REKOR_ATTESTATION_HEADERS = Object.entries(rekorAttestation.shape).filter(([, field]) => !field.isOptional()).map(([header]) => header);
|
|
6323
|
+
REKOR_BOUND_BASE_HEADER = "X-Rekor-Bound-Base";
|
|
6324
|
+
REKOR_BOUND_TOOLSET_HEADER = "X-Rekor-Bound-Toolset";
|
|
6325
|
+
REKOR_BOUND_TOKEN_HEADER = "X-Rekor-Bound-Token";
|
|
6326
|
+
REKOR_BOUND_CUSTOMER_HEADER = "X-Rekor-Bound-Customer";
|
|
6327
|
+
REKOR_BOUND_ACCESS_HEADER = "X-Rekor-Bound-Access";
|
|
6328
|
+
REKOR_BOUND_ACCESS_SCOPE_HEADER = "X-Rekor-Bound-Access-Scope";
|
|
6329
|
+
REKOR_BOUND_PAGE_HEADER = "X-Rekor-Bound-Page";
|
|
6330
|
+
REKOR_ACCESS_SCOPE_CUSTOMER = "customer";
|
|
6331
|
+
DATA_BASE_GENERATION_HEADER = "X-Data-Base-Generation";
|
|
6332
|
+
REKOR_MAX_ACTOR_ID_LENGTH = 256;
|
|
6333
|
+
REKOR_MAX_ACTOR_LABEL_LENGTH = 256;
|
|
6334
|
+
REKOR_MAX_ACCESS_DIMENSIONS = 8;
|
|
6335
|
+
REKOR_MAX_ACCESS_VALUES = 100;
|
|
6336
|
+
REKOR_MAX_ACCESS_ID_LENGTH = 32;
|
|
6337
|
+
REKOR_MAX_ACCESS_HEADER_LENGTH = 65536;
|
|
6338
|
+
}
|
|
6339
|
+
});
|
|
6340
|
+
|
|
6341
|
+
// ../../packages/core/dist/chunk-IAAIVRFJ.js
|
|
6342
|
+
function writeWithinRead(assignment) {
|
|
6343
|
+
return Object.values(assignment).every(({ read, write }) => read.includes(ACCESS_UNRESTRICTED) || !write.includes(ACCESS_UNRESTRICTED) && write.every((id) => read.includes(id)));
|
|
6344
|
+
}
|
|
6345
|
+
function isEncodedAccessSet(raw) {
|
|
6346
|
+
let parsed;
|
|
6347
|
+
try {
|
|
6348
|
+
parsed = JSON.parse(raw);
|
|
6349
|
+
} catch {
|
|
6350
|
+
return false;
|
|
6351
|
+
}
|
|
6352
|
+
return accessSetSchema.safeParse(parsed).success;
|
|
6353
|
+
}
|
|
6354
|
+
function assignmentHasUnrestricted(assignment) {
|
|
6355
|
+
return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
|
|
6356
|
+
}
|
|
6357
|
+
var ACCESS_UNRESTRICTED, ACCESS_ID_REGEX, ACCESS_ID_MAX_LENGTH, MAX_ACCESS_DIMENSIONS_PER_ORG, MAX_ACCESS_VALUES_PER_DIMENSION, ACCESS_LABEL_MAX_LENGTH, accessIdSchema, accessLabelSchema, accessValueListSchema, accessAssignmentSchema, accessSetSchema, accessDimensionParam, accessValueParam, orgMemberParam, orgHubParam, createAccessDimensionBody, updateAccessDimensionBody, createAccessValueBody, updateAccessValueBody, setMemberAccessValuesBody, HUB_PERSON_KINDS, ACCESS_PERSON_KINDS, setHubUserAccessValuesBody, setAgentAccessValuesBody;
|
|
6358
|
+
var init_chunk_IAAIVRFJ = __esm({
|
|
6359
|
+
"../../packages/core/dist/chunk-IAAIVRFJ.js"() {
|
|
6360
|
+
"use strict";
|
|
6361
|
+
init_chunk_C2ID2BF7();
|
|
6362
|
+
init_chunk_HZ6CADSY();
|
|
6363
|
+
init_zod();
|
|
6364
|
+
ACCESS_UNRESTRICTED = "*";
|
|
6365
|
+
ACCESS_ID_REGEX = /^[A-Za-z0-9][A-Za-z0-9_-]*$/;
|
|
6366
|
+
ACCESS_ID_MAX_LENGTH = REKOR_MAX_ACCESS_ID_LENGTH;
|
|
6367
|
+
MAX_ACCESS_DIMENSIONS_PER_ORG = REKOR_MAX_ACCESS_DIMENSIONS;
|
|
6368
|
+
MAX_ACCESS_VALUES_PER_DIMENSION = REKOR_MAX_ACCESS_VALUES;
|
|
6369
|
+
ACCESS_LABEL_MAX_LENGTH = 100;
|
|
6370
|
+
accessIdSchema = external_exports.string().min(1).max(ACCESS_ID_MAX_LENGTH).regex(ACCESS_ID_REGEX, { message: 'Must be ASCII letters, digits, "_" or "-", starting with a letter or digit (e.g. "class", "7A")' });
|
|
6371
|
+
accessLabelSchema = external_exports.string().trim().min(1).max(ACCESS_LABEL_MAX_LENGTH);
|
|
6372
|
+
accessValueListSchema = external_exports.array(external_exports.union([accessIdSchema, external_exports.literal(ACCESS_UNRESTRICTED)])).max(MAX_ACCESS_VALUES_PER_DIMENSION).refine((list2) => !list2.includes(ACCESS_UNRESTRICTED) || list2.length === 1, {
|
|
6373
|
+
message: `"${ACCESS_UNRESTRICTED}" reaches the dimension unrestricted, so it stands alone in its list`
|
|
6374
|
+
});
|
|
6375
|
+
accessAssignmentSchema = external_exports.record(
|
|
6376
|
+
accessIdSchema,
|
|
6377
|
+
external_exports.object({ read: accessValueListSchema, write: accessValueListSchema }).strict()
|
|
6378
|
+
).refine((assignment) => Object.keys(assignment).length <= MAX_ACCESS_DIMENSIONS_PER_ORG, {
|
|
6379
|
+
message: `An assignment names at most ${MAX_ACCESS_DIMENSIONS_PER_ORG} dimensions`
|
|
6380
|
+
});
|
|
6381
|
+
accessSetSchema = accessAssignmentSchema.refine(writeWithinRead, {
|
|
6382
|
+
message: "An access set writes only what it reads"
|
|
6383
|
+
});
|
|
6384
|
+
accessDimensionParam = external_exports.object({
|
|
6385
|
+
id: uuidSchema,
|
|
6386
|
+
dimensionId: accessIdSchema
|
|
6387
|
+
});
|
|
6388
|
+
accessValueParam = accessDimensionParam.extend({
|
|
6389
|
+
valueId: accessIdSchema
|
|
6390
|
+
});
|
|
6391
|
+
orgMemberParam = external_exports.object({
|
|
6392
|
+
id: uuidSchema,
|
|
6393
|
+
userId: external_exports.string().min(1).max(256)
|
|
6394
|
+
});
|
|
6395
|
+
orgHubParam = external_exports.object({
|
|
6396
|
+
id: uuidSchema,
|
|
6397
|
+
hubId: uuidSchema
|
|
6398
|
+
});
|
|
6399
|
+
createAccessDimensionBody = external_exports.object({
|
|
6400
|
+
dimension_id: accessIdSchema,
|
|
6401
|
+
label: accessLabelSchema
|
|
6402
|
+
});
|
|
6403
|
+
updateAccessDimensionBody = external_exports.object({
|
|
6404
|
+
label: accessLabelSchema
|
|
6405
|
+
});
|
|
6406
|
+
createAccessValueBody = external_exports.object({
|
|
6407
|
+
value_id: accessIdSchema,
|
|
6408
|
+
label: accessLabelSchema
|
|
6409
|
+
});
|
|
6410
|
+
updateAccessValueBody = external_exports.object({
|
|
6411
|
+
label: accessLabelSchema.optional(),
|
|
6412
|
+
retired: external_exports.boolean().optional()
|
|
6413
|
+
}).refine((body) => body.label !== void 0 || body.retired !== void 0, {
|
|
6414
|
+
message: "Nothing to change: pass label, retired, or both"
|
|
6415
|
+
});
|
|
6416
|
+
setMemberAccessValuesBody = external_exports.object({
|
|
6417
|
+
values: accessAssignmentSchema
|
|
6418
|
+
});
|
|
6419
|
+
HUB_PERSON_KINDS = ["hub_admin", "hub_team_member", "hub_user"];
|
|
6420
|
+
ACCESS_PERSON_KINDS = ["org_member", ...HUB_PERSON_KINDS, "public"];
|
|
6421
|
+
setHubUserAccessValuesBody = external_exports.object({
|
|
6422
|
+
values: accessAssignmentSchema.refine((assignment) => !assignmentHasUnrestricted(assignment), {
|
|
6423
|
+
message: `A hub user's values never hold "${ACCESS_UNRESTRICTED}"`
|
|
6424
|
+
})
|
|
6425
|
+
});
|
|
6426
|
+
setAgentAccessValuesBody = external_exports.object({
|
|
6427
|
+
values: accessAssignmentSchema.nullable()
|
|
6428
|
+
});
|
|
6429
|
+
}
|
|
6430
|
+
});
|
|
6431
|
+
|
|
6432
|
+
// ../../packages/core/dist/chunk-3FYOP6GU.js
|
|
6433
|
+
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, REKOR_TOOL_KINDS_PARAM, REKOR_TOOL_KINDS_RESOLVE_SEARCH, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL;
|
|
6434
|
+
var init_chunk_3FYOP6GU = __esm({
|
|
6435
|
+
"../../packages/core/dist/chunk-3FYOP6GU.js"() {
|
|
6436
|
+
"use strict";
|
|
6437
|
+
init_chunk_IAAIVRFJ();
|
|
6438
|
+
init_chunk_C2ID2BF7();
|
|
6439
|
+
init_chunk_PTYXZZTE();
|
|
6440
|
+
init_zod();
|
|
6441
|
+
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
6442
|
+
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
6443
|
+
baseEnvironmentSchema = external_exports.enum(["preview", "production"]);
|
|
6444
|
+
toolsetFileToolSchema = external_exports.object({
|
|
6445
|
+
file_type: external_exports.string().min(1),
|
|
6446
|
+
path_prefix: external_exports.string(),
|
|
6447
|
+
/** The entry's authored description of its tools (`description_override`), when it has one. */
|
|
6448
|
+
description: external_exports.string().min(1).optional(),
|
|
6449
|
+
tools: external_exports.object({
|
|
6450
|
+
list: external_exports.string().min(1).optional(),
|
|
6451
|
+
get: external_exports.string().min(1).optional(),
|
|
6452
|
+
put: external_exports.string().min(1).optional(),
|
|
6453
|
+
delete: external_exports.string().min(1).optional(),
|
|
6454
|
+
get_url: external_exports.string().min(1).optional(),
|
|
6455
|
+
put_url: external_exports.string().min(1).optional()
|
|
6456
|
+
})
|
|
6457
|
+
});
|
|
6458
|
+
toolsetSurfaceSchema = external_exports.object({
|
|
6459
|
+
/** Any record, composite, relationship or SQL Action tool: the toolset reaches records. */
|
|
6460
|
+
records: external_exports.boolean(),
|
|
6461
|
+
sql_query: external_exports.boolean(),
|
|
6462
|
+
batch: external_exports.boolean(),
|
|
6463
|
+
/**
|
|
6464
|
+
* The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
|
|
6465
|
+
* and reaches only that customer's records and shared ones. Absent on a surface recorded before it
|
|
6466
|
+
* was, which reads as not scoped until the connection's next tool sync or token save records it: its
|
|
6467
|
+
* calls name no customer, and the customer-facing rule admits none of its record tools.
|
|
6468
|
+
*/
|
|
6469
|
+
customer_scoped: external_exports.boolean().optional(),
|
|
6470
|
+
/**
|
|
6471
|
+
* A key of the resolve this side neither describes nor classifies exposes something: a kind of tool
|
|
6472
|
+
* the data product added later, counted in `records`. The customer-facing rule never admits it, a
|
|
6473
|
+
* customer scope included, until it is classified here. Absent on a surface recorded before it was,
|
|
6474
|
+
* which reads as present.
|
|
6475
|
+
*/
|
|
6476
|
+
unclassified_tools: external_exports.boolean().optional(),
|
|
6477
|
+
/**
|
|
6478
|
+
* Any of its file tools writes: an operation other than `list`, `get` and `get_url` (`put`, `delete`,
|
|
6479
|
+
* `put_url`, or one the data product adds later), or an entry this side cannot read. Absent on a surface recorded
|
|
6480
|
+
* before it was, which the customer-facing rule reads as writing until the connection's next tool
|
|
6481
|
+
* sync or token save records it.
|
|
6482
|
+
*/
|
|
6483
|
+
file_writes: external_exports.boolean().optional(),
|
|
6484
|
+
/**
|
|
6485
|
+
* A record type the resolve's `record_types` carries names the toolset among its writers
|
|
6486
|
+
* (`x-review.writers`, #5083 RK4): the toolset writes the type's drafts and reads its every record,
|
|
6487
|
+
* drafts included. Those are the types its actions and composite record steps reach, and every
|
|
6488
|
+
* reviewed type it reaches otherwise: at a relationship tool's or a composite relationship step's
|
|
6489
|
+
* end, in a `batch` entry, or, through `sql_query`, all of them (decision 198). Or such a type's
|
|
6490
|
+
* declaration this side cannot read, or a resolve reaching records that carries no record types.
|
|
6491
|
+
* Absent on a surface recorded before it was, which the customer-facing rule reads as writing, for a
|
|
6492
|
+
* toolset reaching records, until the connection's next tool sync or token save records it.
|
|
6493
|
+
*/
|
|
6494
|
+
review_writes: external_exports.boolean().optional(),
|
|
6495
|
+
/**
|
|
6496
|
+
* Every record type the toolset reaches, at least one, is reviewed (`x-review`), holds no customer data
|
|
6497
|
+
* (`shared`), and does not name it among its writers: each call reads only that type's approved
|
|
6498
|
+
* records (#5083 decision 182, Q9). Never with a SQL Action, whose query reads its types' every
|
|
6499
|
+
* record, drafts included. Absent on a surface recorded before it was, which reads as false.
|
|
6500
|
+
*/
|
|
6501
|
+
approved_reads_only: external_exports.boolean().optional(),
|
|
6502
|
+
/**
|
|
6503
|
+
* The toolset's file tools. Absent when it has none, and on a surface recorded before they were.
|
|
6504
|
+
* A list this side cannot read is dropped rather than failing the binding, which every call and
|
|
6505
|
+
* the customer-facing rule read: the next tool sync records it again.
|
|
6506
|
+
*/
|
|
6507
|
+
files: external_exports.array(toolsetFileToolSchema).optional().catch(void 0)
|
|
6508
|
+
});
|
|
6509
|
+
toolsetConnectionBindingSchema = external_exports.object({
|
|
6510
|
+
base_id: external_exports.string().min(1),
|
|
6511
|
+
/** The slug the token was resolved against — `settings.toolset` at that write. */
|
|
6512
|
+
toolset: external_exports.string().min(1),
|
|
6513
|
+
/** The base's incarnation when the token was written; a bound attested call states it. */
|
|
6514
|
+
base_generation: external_exports.number().int().min(1),
|
|
6515
|
+
environment: baseEnvironmentSchema,
|
|
6516
|
+
surface: toolsetSurfaceSchema,
|
|
6517
|
+
/**
|
|
6518
|
+
* The id of the token the binding was resolved from, as its resolve reports it; a bound attested
|
|
6519
|
+
* call names it (`REKOR_BOUND_TOKEN_HEADER`), so the data product refuses the binding once the token
|
|
6520
|
+
* is revoked or expires (owner decision 41). Absent on a binding recorded before the report carried
|
|
6521
|
+
* it: its calls name none until a token save, or a tool sync while the token still stands, records it.
|
|
6522
|
+
* One that does not read is dropped rather than failing the binding.
|
|
6523
|
+
*/
|
|
6524
|
+
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
6525
|
+
});
|
|
6526
|
+
rekorToolsetToolsSchema = external_exports.object({
|
|
6527
|
+
data: external_exports.object({
|
|
6528
|
+
tools: external_exports.array(external_exports.object({
|
|
6529
|
+
name: external_exports.string(),
|
|
6530
|
+
description: external_exports.string().optional(),
|
|
6531
|
+
inputSchema: external_exports.record(external_exports.unknown()).optional()
|
|
6532
|
+
}))
|
|
6533
|
+
})
|
|
6534
|
+
});
|
|
6535
|
+
rekorBoundAttestation = rekorAttestation.extend({
|
|
6536
|
+
[REKOR_ACTOR_TYPE_HEADER]: external_exports.enum(["token", "user"]),
|
|
6537
|
+
/** Trimmed and checked as the far side trims and checks it. */
|
|
6538
|
+
[REKOR_ACTOR_ID_HEADER]: external_exports.string().trim().min(1).max(REKOR_MAX_ACTOR_ID_LENGTH),
|
|
6539
|
+
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string().max(REKOR_MAX_ACTOR_LABEL_LENGTH),
|
|
6540
|
+
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.literal("0"),
|
|
6541
|
+
[REKOR_BOUND_BASE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6542
|
+
[REKOR_BOUND_TOOLSET_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6543
|
+
/**
|
|
6544
|
+
* Decimal digits only, as the far side parses it, and at most 15 of them: its `Number()` reads
|
|
6545
|
+
* every such value back exactly, where a longer one may round or overflow to `Infinity` (a 400).
|
|
6546
|
+
*/
|
|
6547
|
+
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(/^[1-9]\d{0,14}$/),
|
|
6548
|
+
/** The token the binding was resolved from, when the connection records it (owner decision 41). */
|
|
6549
|
+
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional(),
|
|
6550
|
+
/**
|
|
6551
|
+
* The customer the call serves (#5083 RK2): a contact id, which the contact book mints as a UUID.
|
|
6552
|
+
* Every UUID is an id the far side reads back as the customer's external id.
|
|
6553
|
+
*/
|
|
6554
|
+
[REKOR_BOUND_CUSTOMER_HEADER]: external_exports.string().uuid().optional(),
|
|
6555
|
+
/**
|
|
6556
|
+
* The access set the call carries (#5358): an access set's header text (`encodeAccessSet`), within
|
|
6557
|
+
* the far side's header cap. Tool calls carry one; the config reads (resolve, tool definitions) do not.
|
|
6558
|
+
*/
|
|
6559
|
+
[REKOR_BOUND_ACCESS_HEADER]: external_exports.string().max(REKOR_MAX_ACCESS_HEADER_LENGTH).refine(isEncodedAccessSet, {
|
|
6560
|
+
message: "Not an access set"
|
|
6561
|
+
}).optional(),
|
|
6562
|
+
/**
|
|
6563
|
+
* Where the access set applies (#5358), when only on the call's customer's own records: its one value.
|
|
6564
|
+
* Sent only beside the set, which the far side holds it to (the refinement below).
|
|
6565
|
+
*/
|
|
6566
|
+
[REKOR_BOUND_ACCESS_SCOPE_HEADER]: external_exports.literal(REKOR_ACCESS_SCOPE_CUSTOMER).optional(),
|
|
6567
|
+
/**
|
|
6568
|
+
* The hub whose page makes the call (#5333): sent on every call of the page bridge, and on no other.
|
|
6569
|
+
* A hub id, read by the far side under the same structural charset as the other bound ids.
|
|
6570
|
+
*/
|
|
6571
|
+
[REKOR_BOUND_PAGE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional()
|
|
6572
|
+
}).superRefine((bag, ctx) => {
|
|
6573
|
+
if (bag[REKOR_BOUND_ACCESS_SCOPE_HEADER] !== void 0 && bag[REKOR_BOUND_ACCESS_HEADER] === void 0) {
|
|
6574
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_BOUND_ACCESS_SCOPE_HEADER], message: "Accepted only beside an access set" });
|
|
6575
|
+
}
|
|
6576
|
+
if (bag[REKOR_ACTOR_TYPE_HEADER] === "user" && (bag[REKOR_BOUND_PAGE_HEADER] === void 0 || bag[REKOR_BOUND_CUSTOMER_HEADER] !== void 0)) {
|
|
6577
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_ACTOR_TYPE_HEADER], message: "A person is attested only on a team page's call" });
|
|
6578
|
+
}
|
|
6579
|
+
});
|
|
6580
|
+
rekorResolvedToolsetSchema = external_exports.object({
|
|
6581
|
+
data: external_exports.object({
|
|
6582
|
+
base_id: external_exports.string().min(1),
|
|
6583
|
+
environment: baseEnvironmentSchema,
|
|
6584
|
+
base_generation: external_exports.number().int().min(1),
|
|
6585
|
+
/**
|
|
6586
|
+
* The calling token's binding, or null for a token bound to none. A bound token can call only
|
|
6587
|
+
* its toolset's tools, which is what a toolset connection stores (#5083 decision 14). Its org
|
|
6588
|
+
* is the token's own: base ids are unique only per org, so the base id alone does not say
|
|
6589
|
+
* which base the token reaches.
|
|
6590
|
+
*/
|
|
6591
|
+
toolset_binding: external_exports.object({
|
|
6592
|
+
org_id: external_exports.string().optional(),
|
|
6593
|
+
base_id: external_exports.string(),
|
|
6594
|
+
toolset_id: external_exports.string(),
|
|
6595
|
+
/**
|
|
6596
|
+
* The token's own id, which a bound call names (`REKOR_BOUND_TOKEN_HEADER`); absent when the
|
|
6597
|
+
* caller has none (owner decision 41), and dropped when it is not an id the far side reads back.
|
|
6598
|
+
*/
|
|
6599
|
+
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
6600
|
+
}).nullable().optional(),
|
|
6601
|
+
actions: external_exports.array(external_exports.unknown()).optional(),
|
|
6602
|
+
composites: external_exports.array(external_exports.unknown()).optional(),
|
|
6603
|
+
relationships: external_exports.array(external_exports.unknown()).optional(),
|
|
6604
|
+
/**
|
|
6605
|
+
* The toolset's SQL Actions (#5311): each a fixed, read-only query over the record types it
|
|
6606
|
+
* declares, which the resolve also carries in `record_types` and `record_type_scopes`.
|
|
6607
|
+
*/
|
|
6608
|
+
sql_actions: external_exports.array(external_exports.unknown()).optional(),
|
|
6609
|
+
files: external_exports.array(external_exports.unknown()).optional(),
|
|
6610
|
+
batch: external_exports.object({ enabled: external_exports.boolean().optional() }).passthrough().nullable().optional(),
|
|
6611
|
+
sql_query: external_exports.boolean().optional(),
|
|
6612
|
+
/** The toolset serves one customer per call (#5083 RK2). Absent reads as not scoped. */
|
|
6613
|
+
customer_scope: external_exports.boolean().optional(),
|
|
6614
|
+
/**
|
|
6615
|
+
* Record types the toolset reaches, by id, as the data product stores them (`json_schema`
|
|
6616
|
+
* included): each one its actions, composite record steps and SQL Actions reach, and each reviewed one it
|
|
6617
|
+
* reaches otherwise (relationship ends, `batch` entries, every one through `sql_query`; #5083
|
|
6618
|
+
* decision 198). An unreviewed type it reaches only otherwise is not here. A reviewed type's
|
|
6619
|
+
* `x-review` names its writers (RK4).
|
|
6620
|
+
*/
|
|
6621
|
+
record_types: external_exports.record(external_exports.unknown()).optional(),
|
|
6622
|
+
/**
|
|
6623
|
+
* What each record type the toolset's actions, composite steps, SQL Actions and relationship tools reach is to a
|
|
6624
|
+
* customer scope (`{ role }`, or null), by id (#5083 RK2). A reviewed type `record_types` carries
|
|
6625
|
+
* because only a `batch` entry or `sql_query` reaches it has none.
|
|
6626
|
+
*/
|
|
6627
|
+
record_type_scopes: external_exports.record(external_exports.unknown()).optional(),
|
|
6628
|
+
/**
|
|
6629
|
+
* The kind of each tool the toolset publishes, by the name it is published under (wayai#5333 decision
|
|
6630
|
+
* 6), sent only to a caller that asks (`REKOR_TOOL_KINDS_RESOLVE_SEARCH`). Read by `rekorToolKindLookup`;
|
|
6631
|
+
* a map this side cannot read is dropped, so every tool reads as a write.
|
|
6632
|
+
*/
|
|
6633
|
+
tool_kinds: external_exports.record(external_exports.string()).optional().catch(void 0)
|
|
6634
|
+
}).passthrough()
|
|
6635
|
+
});
|
|
6636
|
+
REKOR_TOOL_KINDS_PARAM = "tool_kinds";
|
|
6637
|
+
REKOR_TOOL_KINDS_RESOLVE_SEARCH = new URLSearchParams({ [REKOR_TOOL_KINDS_PARAM]: "true" }).toString();
|
|
6638
|
+
resolvedRecordTypeSchema = external_exports.object({ json_schema: external_exports.record(external_exports.unknown()) });
|
|
6639
|
+
reviewWritersSchema = external_exports.object({ writers: external_exports.array(external_exports.string()).optional() });
|
|
6640
|
+
sharedScopeSchema = external_exports.object({ role: external_exports.literal("shared") });
|
|
6641
|
+
resolvedFileToolSchema = external_exports.object({
|
|
6642
|
+
file_type: external_exports.string().min(1),
|
|
6643
|
+
path_prefix: external_exports.string().nullish(),
|
|
6644
|
+
operations: external_exports.array(external_exports.unknown()),
|
|
6645
|
+
name: external_exports.unknown().optional(),
|
|
6646
|
+
names: external_exports.unknown().optional(),
|
|
6647
|
+
description_override: external_exports.unknown().optional()
|
|
6648
|
+
});
|
|
6649
|
+
rekorToolsetFileSchema = external_exports.object({
|
|
6650
|
+
path: external_exports.string().min(1),
|
|
6651
|
+
version: external_exports.number().int().min(1),
|
|
6652
|
+
content_type: external_exports.string().optional()
|
|
6653
|
+
}).passthrough();
|
|
6654
|
+
rekorToolsetFileUrlAnswerSchema = external_exports.object({
|
|
6655
|
+
data: external_exports.object({
|
|
6656
|
+
url: external_exports.string(),
|
|
6657
|
+
expires_at: external_exports.string(),
|
|
6658
|
+
path: external_exports.string(),
|
|
6659
|
+
content_sha256: external_exports.string()
|
|
6660
|
+
}).passthrough()
|
|
6661
|
+
});
|
|
6662
|
+
rekorToolsetFileListSchema = external_exports.object({ data: external_exports.array(rekorToolsetFileSchema) });
|
|
6663
|
+
rekorToolsetFileGetSchema = external_exports.object({
|
|
6664
|
+
data: rekorToolsetFileSchema.extend({
|
|
6665
|
+
content: external_exports.string(),
|
|
6666
|
+
encoding: external_exports.enum(["utf-8", "base64"])
|
|
6667
|
+
})
|
|
6668
|
+
});
|
|
6669
|
+
rekorToolsetFilePutSchema = external_exports.object({ data: rekorToolsetFileSchema });
|
|
6670
|
+
TOOLSET_CUSTOMER_FACING_REFUSAL_MARK = "A customer-facing agent (a pilot, pilot specialist or pilot advisor) can use a toolset only when it exposes files alone: no record, composite or relationship tools, and neither sql_query nor batch";
|
|
6671
|
+
TOOLSET_CUSTOMER_FACING_REFUSAL = `${TOOLSET_CUSTOMER_FACING_REFUSAL_MARK}, nor a file put, delete or put_url, nor a write of a reviewed record type \u2014 unless the toolset is customer-scoped, which admits its record, composite, relationship and SQL Action tools, since each of their calls reaches only the conversation's customer and shared records, or they only read approved records of reviewed shared record types`;
|
|
6672
|
+
}
|
|
6673
|
+
});
|
|
6674
|
+
|
|
6675
|
+
// ../../packages/core/dist/chunk-IPDOHAZ5.js
|
|
6676
|
+
var reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, reportMessageSchema, sentryRefStatusSchema, createReportBody, editReportBody, reporterReportSummarySchema, reporterListResponseSchema, getReportResponseSchema, reporterTransitionResponseSchema, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody;
|
|
6677
|
+
var init_chunk_IPDOHAZ5 = __esm({
|
|
6678
|
+
"../../packages/core/dist/chunk-IPDOHAZ5.js"() {
|
|
6679
|
+
"use strict";
|
|
6680
|
+
init_chunk_HZ6CADSY();
|
|
6681
|
+
init_zod();
|
|
6682
|
+
reportSourceSchema = external_exports.enum(["sentry", "cli", "review", "security_audit"]);
|
|
6683
|
+
intakeReportSourceSchema = external_exports.enum(["cli", "review", "security_audit"]);
|
|
6684
|
+
reportClassificationSchema = external_exports.enum(["bug", "flaky_test", "security", "enhancement"]);
|
|
6685
|
+
reportStatusSchema = external_exports.enum([
|
|
6686
|
+
"pending",
|
|
6687
|
+
"grouped",
|
|
6688
|
+
"escalated",
|
|
6689
|
+
"shipped",
|
|
6690
|
+
"contested",
|
|
6691
|
+
"addressed",
|
|
6692
|
+
"dismissed"
|
|
6693
|
+
]);
|
|
6694
|
+
reportLocaleSchema = external_exports.enum(["en", "pt", "es"]);
|
|
6695
|
+
reportMessageAuthorRoleSchema = external_exports.enum(["reporter", "triage", "fixer", "system"]);
|
|
6696
|
+
reportMessageSchema = external_exports.object({
|
|
6697
|
+
message_id: external_exports.string(),
|
|
6698
|
+
author_role: reportMessageAuthorRoleSchema,
|
|
6699
|
+
/** The status transition this note accompanied (e.g. 'shipped'); null for a free/system note. */
|
|
6700
|
+
transition: external_exports.string().nullable(),
|
|
6701
|
+
body: external_exports.string(),
|
|
6702
|
+
created_at: timestampSchema,
|
|
6703
|
+
/**
|
|
6704
|
+
* Visibility: `false` = reporter-facing (the default for every narrative entry); `true` =
|
|
6705
|
+
* triage-internal (e.g. a `hold` rationale) — surfaced to platform admins only and NEVER
|
|
6706
|
+
* returned on the reporter read path. The reporter's `GET /api/reports/:id` filters these out.
|
|
6707
|
+
*/
|
|
6708
|
+
internal: external_exports.boolean()
|
|
6709
|
+
});
|
|
6710
|
+
sentryRefStatusSchema = external_exports.enum(["valid", "not_found", "mismatch", "unverified"]);
|
|
6711
|
+
createReportBody = external_exports.object({
|
|
6712
|
+
title: external_exports.string().min(5).max(256),
|
|
6713
|
+
description: external_exports.string().min(10).max(5e3),
|
|
6714
|
+
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
6715
|
+
error_message: external_exports.string().max(2e3).optional(),
|
|
6716
|
+
// Taxonomy (server defaults: source=cli, classification=bug when absent).
|
|
6717
|
+
source: intakeReportSourceSchema.optional(),
|
|
6718
|
+
classification: reportClassificationSchema.optional(),
|
|
6719
|
+
// Stable dedup key (e.g. "<file>::<test>" for flaky, "<file>:<line>" for
|
|
6720
|
+
// security). When present, the fingerprint uses it instead of the body hash.
|
|
6721
|
+
dedup_key: external_exports.string().min(1).max(256).optional(),
|
|
6722
|
+
// Context fields (auto-captured by the CLI)
|
|
6723
|
+
organization_id: external_exports.string().optional(),
|
|
6724
|
+
hub_id: external_exports.string().uuid().optional(),
|
|
6725
|
+
hub_name: external_exports.string().max(256).optional(),
|
|
6726
|
+
conversation_id: external_exports.string().uuid().optional(),
|
|
6727
|
+
agent_id: external_exports.string().uuid().optional(),
|
|
6728
|
+
agent_name: external_exports.string().max(256).optional(),
|
|
6729
|
+
client_version: external_exports.string().max(64).optional(),
|
|
6730
|
+
additional_context: external_exports.string().max(2e3).optional()
|
|
6731
|
+
});
|
|
6732
|
+
editReportBody = external_exports.object({
|
|
6733
|
+
title: external_exports.string().min(5).max(256).optional(),
|
|
6734
|
+
description: external_exports.string().min(10).max(5e3).optional(),
|
|
6735
|
+
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
6736
|
+
error_message: external_exports.string().max(2e3).optional(),
|
|
6737
|
+
additional_context: external_exports.string().max(2e3).optional()
|
|
6738
|
+
}).strict().refine((b) => Object.keys(b).length > 0, {
|
|
6739
|
+
message: "at least one field must be provided"
|
|
6740
|
+
});
|
|
6741
|
+
reporterReportSummarySchema = external_exports.object({
|
|
6742
|
+
report_id: external_exports.string(),
|
|
6743
|
+
title: external_exports.string(),
|
|
6744
|
+
description: external_exports.string(),
|
|
6745
|
+
classification: reportClassificationSchema,
|
|
6746
|
+
status: reportStatusSchema,
|
|
6747
|
+
created_at: timestampSchema,
|
|
6748
|
+
triaged_at: timestampSchema.nullable(),
|
|
6749
|
+
resolved_at: timestampSchema.nullable(),
|
|
6750
|
+
/** How many times the reporter has contested (gates the hard cap). */
|
|
6751
|
+
contest_count: external_exports.number(),
|
|
6752
|
+
/** True once triage issued a non-contestable (final) dismissal. */
|
|
6753
|
+
dismissal_final: external_exports.boolean()
|
|
6754
|
+
});
|
|
6755
|
+
reporterListResponseSchema = external_exports.object({
|
|
6756
|
+
data: external_exports.array(reporterReportSummarySchema)
|
|
6757
|
+
});
|
|
6758
|
+
getReportResponseSchema = external_exports.object({
|
|
6759
|
+
report: reporterReportSummarySchema,
|
|
6760
|
+
messages: external_exports.array(reportMessageSchema)
|
|
6761
|
+
});
|
|
6762
|
+
reporterTransitionResponseSchema = external_exports.object({
|
|
6763
|
+
report: reporterReportSummarySchema
|
|
6764
|
+
});
|
|
6765
|
+
contestReportBody = external_exports.object({
|
|
6766
|
+
reason: external_exports.string().min(1).max(5e3)
|
|
6767
|
+
});
|
|
6768
|
+
reporterListQuery = external_exports.object({
|
|
6769
|
+
status: reportStatusSchema.optional()
|
|
6770
|
+
});
|
|
6771
|
+
listReportsQuery = external_exports.object({
|
|
6772
|
+
status: reportStatusSchema.optional(),
|
|
6773
|
+
source: reportSourceSchema.optional(),
|
|
6774
|
+
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
6775
|
+
offset: external_exports.coerce.number().int().min(0).optional(),
|
|
6776
|
+
/** ISO 8601 lower bound on created_at. */
|
|
6777
|
+
since: external_exports.string().datetime().optional(),
|
|
6778
|
+
/**
|
|
6779
|
+
* ISO 8601 lower bound on resolution time — "what did we resolve recently", which `since`
|
|
6780
|
+
* (a created_at filter) cannot answer for a long-lived report resolved yesterday. Implies
|
|
6781
|
+
* a terminal status (`addressed`/`dismissed`) and orders on that same axis.
|
|
6782
|
+
*/
|
|
6783
|
+
resolved_since: external_exports.string().datetime().optional()
|
|
6784
|
+
});
|
|
6785
|
+
GITHUB_ISSUE_URL_REGEX = /^https:\/\/github\.com\/[^/]+\/[^/]+\/issues\/\d+(?:[/?#]|$)/;
|
|
6786
|
+
githubIssueUrlSchema = external_exports.string().url().refine((u) => GITHUB_ISSUE_URL_REGEX.test(u), {
|
|
6787
|
+
message: "must be an https://github.com/<owner>/<repo>/issues/<number> URL"
|
|
6788
|
+
});
|
|
6789
|
+
transitionReportBody = external_exports.discriminatedUnion("target", [
|
|
6790
|
+
external_exports.object({
|
|
6791
|
+
target: external_exports.literal("escalated"),
|
|
6792
|
+
gh_issue_url: githubIssueUrlSchema,
|
|
6793
|
+
ai_verdict: external_exports.string().max(2e3).optional()
|
|
6794
|
+
}),
|
|
6795
|
+
external_exports.object({
|
|
6796
|
+
target: external_exports.literal("shipped"),
|
|
6797
|
+
note: external_exports.string().min(1).max(2e3).optional()
|
|
6798
|
+
}),
|
|
6799
|
+
external_exports.object({
|
|
6800
|
+
target: external_exports.literal("addressed")
|
|
6801
|
+
}),
|
|
6802
|
+
external_exports.object({
|
|
6803
|
+
target: external_exports.literal("dismissed"),
|
|
6804
|
+
dismissal_reason: external_exports.string().min(1).max(5e3),
|
|
6805
|
+
ai_verdict: external_exports.string().max(2e3).optional(),
|
|
6806
|
+
final: external_exports.boolean().optional()
|
|
6807
|
+
})
|
|
6808
|
+
]);
|
|
6809
|
+
groupReportsBody = external_exports.object({
|
|
6810
|
+
member_ids: external_exports.array(external_exports.string().uuid()).min(1).max(100)
|
|
6811
|
+
});
|
|
6812
|
+
holdReportBody = external_exports.object({
|
|
6813
|
+
reason: external_exports.string().min(1).max(5e3)
|
|
6814
|
+
});
|
|
6815
|
+
}
|
|
6816
|
+
});
|
|
6817
|
+
|
|
6818
|
+
// ../../packages/core/dist/chunk-GPM7PE44.js
|
|
6819
|
+
var bootstrapQuery;
|
|
6820
|
+
var init_chunk_GPM7PE44 = __esm({
|
|
6821
|
+
"../../packages/core/dist/chunk-GPM7PE44.js"() {
|
|
6822
|
+
"use strict";
|
|
6823
|
+
init_zod();
|
|
6824
|
+
bootstrapQuery = external_exports.object({
|
|
6825
|
+
active_hub_id: external_exports.string().uuid().optional(),
|
|
6826
|
+
active_conversation_id: external_exports.string().uuid().optional(),
|
|
6827
|
+
active_nav: external_exports.enum(["chat", "task", "support"]).optional(),
|
|
6828
|
+
/**
|
|
6829
|
+
* The people thread the URL names (`/chat/threads/:threadId`, gh #4661): the snapshot
|
|
6830
|
+
* preloads it as `people.active_thread` when the viewer is a member.
|
|
6831
|
+
*/
|
|
6832
|
+
active_thread_id: external_exports.string().uuid().optional()
|
|
6833
|
+
});
|
|
6834
|
+
}
|
|
6835
|
+
});
|
|
6836
|
+
|
|
6837
|
+
// ../../packages/core/dist/chunk-5VL6LBFD.js
|
|
6838
|
+
var PERMISSIONS;
|
|
6839
|
+
var init_chunk_5VL6LBFD = __esm({
|
|
6840
|
+
"../../packages/core/dist/chunk-5VL6LBFD.js"() {
|
|
6841
|
+
"use strict";
|
|
6842
|
+
PERMISSIONS = [
|
|
6843
|
+
"hub:read",
|
|
6844
|
+
"hub:write",
|
|
6845
|
+
"hub:admin",
|
|
6846
|
+
"conversation:read",
|
|
6847
|
+
"conversation:write",
|
|
6848
|
+
"analytics:read",
|
|
6849
|
+
"billing:read",
|
|
6850
|
+
"billing:write",
|
|
6851
|
+
"org:read",
|
|
6852
|
+
"org:write",
|
|
6853
|
+
"org:admin",
|
|
6854
|
+
"contacts:write",
|
|
6855
|
+
"platform:admin",
|
|
6856
|
+
"*"
|
|
6857
|
+
];
|
|
6858
|
+
}
|
|
6859
|
+
});
|
|
6860
|
+
|
|
6861
|
+
// ../../packages/core/dist/chunk-VEERWOZ6.js
|
|
6862
|
+
var MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam;
|
|
6863
|
+
var init_chunk_VEERWOZ6 = __esm({
|
|
6864
|
+
"../../packages/core/dist/chunk-VEERWOZ6.js"() {
|
|
6865
|
+
"use strict";
|
|
6866
|
+
init_chunk_5VL6LBFD();
|
|
6867
|
+
init_chunk_HZ6CADSY();
|
|
6868
|
+
init_zod();
|
|
6869
|
+
MAX_NAME_LENGTH2 = 100;
|
|
6870
|
+
MAX_HUBS_PER_GRANT = 50;
|
|
6871
|
+
MAX_HUB_TAGS_PER_GRANT = 20;
|
|
6872
|
+
MAX_GRANTS = 20;
|
|
6873
|
+
permissionEnum = external_exports.enum(PERMISSIONS).refine(
|
|
6874
|
+
(p) => p !== "platform:admin",
|
|
6875
|
+
{ message: "platform:admin cannot be delegated via token creation" }
|
|
6876
|
+
);
|
|
6877
|
+
grantScopeSchema = external_exports.object({
|
|
6878
|
+
// Required: every token grant must declare its org tenancy. The handler
|
|
6879
|
+
// also strict-checks this as defense-in-depth, but failing at the Zod
|
|
6880
|
+
// boundary keeps the generated client type honest (org_id: string).
|
|
6881
|
+
org_id: external_exports.string().min(1),
|
|
6882
|
+
hubs: external_exports.array(external_exports.string().min(1)).min(1, "Each grant must have scope.hubs as a non-empty array").max(MAX_HUBS_PER_GRANT),
|
|
6883
|
+
hub_tags: external_exports.array(external_exports.string().min(1)).min(1, "scope.hub_tags must be a non-empty array if provided").max(MAX_HUB_TAGS_PER_GRANT).optional(),
|
|
6884
|
+
environments: external_exports.array(external_exports.enum(["production", "preview"])).min(1, "scope.environments must be a non-empty array if provided").optional()
|
|
6885
|
+
}).strict();
|
|
6886
|
+
grantSchema = external_exports.object({
|
|
6887
|
+
scope: grantScopeSchema,
|
|
6888
|
+
permissions: external_exports.array(permissionEnum).min(1, "Each grant must have permissions as a non-empty array")
|
|
6889
|
+
}).strict();
|
|
6890
|
+
createTokenBody = external_exports.object({
|
|
6891
|
+
name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH2, `name must be ${MAX_NAME_LENGTH2} characters or fewer`),
|
|
6892
|
+
grants: external_exports.array(grantSchema).min(1, "grants must be a non-empty array").max(MAX_GRANTS),
|
|
6893
|
+
expires_at: external_exports.string().datetime({ message: "expires_at must be a valid ISO 8601 date" }).refine(
|
|
6894
|
+
(s) => new Date(s).getTime() > Date.now(),
|
|
6895
|
+
{ message: "expires_at must be in the future" }
|
|
6896
|
+
).optional()
|
|
6897
|
+
});
|
|
6898
|
+
tokenOrgIdParam = external_exports.object({ orgId: uuidSchema });
|
|
6899
|
+
}
|
|
6900
|
+
});
|
|
6901
|
+
|
|
6902
|
+
// ../../packages/core/dist/chunk-FPSDNS2E.js
|
|
6903
|
+
var noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema;
|
|
6904
|
+
var init_chunk_FPSDNS2E = __esm({
|
|
6905
|
+
"../../packages/core/dist/chunk-FPSDNS2E.js"() {
|
|
6906
|
+
"use strict";
|
|
6907
|
+
init_zod();
|
|
6908
|
+
noticeSeveritySchema = external_exports.enum(["critical", "warn", "info"]);
|
|
6909
|
+
noticeStatusSchema = external_exports.enum(["active", "resolved"]);
|
|
6910
|
+
NOTICE_SCOPE_REGEX = /^(global|provider:[a-z0-9_-]{1,40}|service:[a-z0-9_-]{1,40})$/;
|
|
6911
|
+
noticeScopeSchema = external_exports.string().regex(NOTICE_SCOPE_REGEX, "scope must be 'global', 'provider:<x>', or 'service:<x>'");
|
|
6912
|
+
noticeLinkSchema = external_exports.string().url().refine((u) => /^https?:\/\//i.test(u), { message: "link must be an http(s) URL" });
|
|
6913
|
+
createNoticeBody = external_exports.object({
|
|
6914
|
+
severity: noticeSeveritySchema.default("info"),
|
|
6915
|
+
scope: noticeScopeSchema.default("global"),
|
|
6916
|
+
title: external_exports.string().trim().min(1).max(200),
|
|
6917
|
+
body: external_exports.string().max(2e3).optional(),
|
|
6918
|
+
link: noticeLinkSchema.optional(),
|
|
6919
|
+
starts_at: external_exports.string().datetime().optional(),
|
|
6920
|
+
ends_at: external_exports.string().datetime().optional()
|
|
6921
|
+
});
|
|
6922
|
+
updateNoticeBody = external_exports.object({
|
|
6923
|
+
severity: noticeSeveritySchema.optional(),
|
|
6924
|
+
scope: noticeScopeSchema.optional(),
|
|
6925
|
+
title: external_exports.string().trim().min(1).max(200).optional(),
|
|
6926
|
+
body: external_exports.string().max(2e3).nullable().optional(),
|
|
6927
|
+
link: noticeLinkSchema.nullable().optional(),
|
|
6928
|
+
starts_at: external_exports.string().datetime().optional(),
|
|
6929
|
+
ends_at: external_exports.string().datetime().nullable().optional()
|
|
6930
|
+
}).refine((b) => Object.keys(b).length > 0, { message: "at least one field must be provided" });
|
|
6931
|
+
listNoticesQuery = external_exports.object({
|
|
6932
|
+
status: noticeStatusSchema.optional(),
|
|
6933
|
+
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
6934
|
+
offset: external_exports.coerce.number().int().min(0).optional()
|
|
6935
|
+
});
|
|
6936
|
+
noticeIdParamSchema = external_exports.object({ id: external_exports.string().min(1) });
|
|
6937
|
+
}
|
|
6938
|
+
});
|
|
6939
|
+
|
|
6940
|
+
// ../../packages/core/dist/chunk-ZVXO3XL6.js
|
|
6941
|
+
var PEOPLE_CONTACT_PAGE_MAX, PEOPLE_CONTACT_PAGE_DEFAULT, PEOPLE_CONTACT_EMAIL_MAX_LENGTH, peopleUserIdSchema, peopleInviteEmailSchema, peopleContactInviteBody, peopleContactInviteIdParam, peopleContactUserIdParam, peopleContactBlockBody, peopleContactPageQuery, peopleOutgoingInviteSchema, peopleContactPersonSchema, peopleContactSchema, peopleIncomingInviteSchema, peopleBlockedUserSchema;
|
|
6942
|
+
var init_chunk_ZVXO3XL6 = __esm({
|
|
6943
|
+
"../../packages/core/dist/chunk-ZVXO3XL6.js"() {
|
|
6944
|
+
"use strict";
|
|
6945
|
+
init_chunk_HZ6CADSY();
|
|
6946
|
+
init_zod();
|
|
6947
|
+
PEOPLE_CONTACT_PAGE_MAX = 100;
|
|
6948
|
+
PEOPLE_CONTACT_PAGE_DEFAULT = 50;
|
|
6949
|
+
PEOPLE_CONTACT_EMAIL_MAX_LENGTH = 254;
|
|
6950
|
+
peopleUserIdSchema = external_exports.string().max(64).regex(USER_ID_REGEX, "must be a user id");
|
|
6951
|
+
peopleInviteEmailSchema = external_exports.string().trim().max(PEOPLE_CONTACT_EMAIL_MAX_LENGTH).email();
|
|
6952
|
+
peopleContactInviteBody = external_exports.object({
|
|
6953
|
+
email: peopleInviteEmailSchema
|
|
6954
|
+
}).strict();
|
|
6955
|
+
peopleContactInviteIdParam = external_exports.object({ inviteId: uuidSchema });
|
|
6956
|
+
peopleContactUserIdParam = external_exports.object({ userId: peopleUserIdSchema });
|
|
6957
|
+
peopleContactBlockBody = external_exports.object({ user_id: peopleUserIdSchema, thread_id: uuidSchema.optional(), community_id: uuidSchema.optional() }).strict().refine((body) => body.thread_id === void 0 || body.community_id === void 0, {
|
|
6958
|
+
message: "Name a thread or a community, not both",
|
|
6959
|
+
path: ["community_id"]
|
|
6960
|
+
});
|
|
6961
|
+
peopleContactPageQuery = external_exports.object({
|
|
6962
|
+
cursor: external_exports.string().min(1).max(256).optional(),
|
|
6963
|
+
limit: external_exports.coerce.number().int().min(1).max(PEOPLE_CONTACT_PAGE_MAX).default(PEOPLE_CONTACT_PAGE_DEFAULT)
|
|
6964
|
+
});
|
|
6965
|
+
peopleOutgoingInviteSchema = external_exports.object({
|
|
6966
|
+
invite_id: uuidSchema,
|
|
6967
|
+
email: external_exports.string(),
|
|
6968
|
+
status: external_exports.literal("sent"),
|
|
6969
|
+
created_at: timestampSchema,
|
|
6970
|
+
expires_at: timestampSchema
|
|
6971
|
+
}).strict();
|
|
6972
|
+
peopleContactPersonSchema = external_exports.object({
|
|
6973
|
+
user_id: peopleUserIdSchema,
|
|
6974
|
+
display_name: external_exports.string().nullable(),
|
|
6975
|
+
email: external_exports.string().nullable()
|
|
6976
|
+
}).strict();
|
|
6977
|
+
peopleContactSchema = peopleContactPersonSchema.extend({ contact_since: timestampSchema, thread_id: uuidSchema }).strict();
|
|
6978
|
+
peopleIncomingInviteSchema = external_exports.object({
|
|
6979
|
+
invite_id: uuidSchema,
|
|
6980
|
+
inviter: peopleContactPersonSchema,
|
|
6981
|
+
created_at: timestampSchema,
|
|
6982
|
+
expires_at: timestampSchema
|
|
6983
|
+
}).strict();
|
|
6984
|
+
peopleBlockedUserSchema = peopleContactPersonSchema.extend({ blocked_at: timestampSchema, deleted_user: external_exports.boolean() }).strict();
|
|
6979
6985
|
}
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6986
|
+
});
|
|
6987
|
+
|
|
6988
|
+
// ../../packages/core/dist/chunk-ZXK6N2HN.js
|
|
6989
|
+
var PEOPLE_MODERATION_NOTE_MAX_LENGTH, ADMIN_PEOPLE_REPORTS_PAGE_MAX, ADMIN_PEOPLE_REPORTS_PAGE_DEFAULT, PEOPLE_SUSPENDED_REASON, peopleModerationActionSchema, moderationNoteSchema, adminPeopleReportListQuery, adminPeopleReportIdParam, adminPeopleMessageRemovalBody, adminPeopleSuspendBody, adminPeopleNoteBody;
|
|
6990
|
+
var init_chunk_ZXK6N2HN = __esm({
|
|
6991
|
+
"../../packages/core/dist/chunk-ZXK6N2HN.js"() {
|
|
6992
|
+
"use strict";
|
|
6993
|
+
init_chunk_ZVXO3XL6();
|
|
6994
|
+
init_chunk_HZ6CADSY();
|
|
6995
|
+
init_zod();
|
|
6996
|
+
PEOPLE_MODERATION_NOTE_MAX_LENGTH = 500;
|
|
6997
|
+
ADMIN_PEOPLE_REPORTS_PAGE_MAX = 100;
|
|
6998
|
+
ADMIN_PEOPLE_REPORTS_PAGE_DEFAULT = 50;
|
|
6999
|
+
PEOPLE_SUSPENDED_REASON = "suspended";
|
|
7000
|
+
peopleModerationActionSchema = external_exports.enum(["remove_message", "suspend", "unsuspend", "dismiss"]);
|
|
7001
|
+
moderationNoteSchema = optionalTrimmedText(PEOPLE_MODERATION_NOTE_MAX_LENGTH);
|
|
7002
|
+
adminPeopleReportListQuery = external_exports.object({
|
|
7003
|
+
pending: external_exports.enum(["true", "false"]).optional().transform((value) => value === "true"),
|
|
7004
|
+
/** Lower bound on `created_at`. */
|
|
7005
|
+
since: timestampSchema.optional(),
|
|
7006
|
+
limit: external_exports.coerce.number().int().min(1).max(ADMIN_PEOPLE_REPORTS_PAGE_MAX).default(ADMIN_PEOPLE_REPORTS_PAGE_DEFAULT),
|
|
7007
|
+
offset: external_exports.coerce.number().int().min(0).default(0)
|
|
7008
|
+
});
|
|
7009
|
+
adminPeopleReportIdParam = external_exports.object({ reportId: uuidSchema });
|
|
7010
|
+
adminPeopleMessageRemovalBody = external_exports.object({ report_id: uuidSchema, message_id: uuidSchema.optional(), note: moderationNoteSchema }).strict();
|
|
7011
|
+
adminPeopleSuspendBody = external_exports.object({ report_id: uuidSchema.optional(), note: moderationNoteSchema }).strict();
|
|
7012
|
+
adminPeopleNoteBody = external_exports.object({ note: moderationNoteSchema }).strict();
|
|
6996
7013
|
}
|
|
6997
|
-
}
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7014
|
+
});
|
|
7015
|
+
|
|
7016
|
+
// ../../packages/core/dist/chunk-Y7CFCYX4.js
|
|
7017
|
+
var PEOPLE_REPORT_DETAILS_MAX_LENGTH, peopleReportReasonSchema, reportDetailsSchema, reportFields, peopleReportBody;
|
|
7018
|
+
var init_chunk_Y7CFCYX4 = __esm({
|
|
7019
|
+
"../../packages/core/dist/chunk-Y7CFCYX4.js"() {
|
|
7001
7020
|
"use strict";
|
|
7002
|
-
|
|
7003
|
-
|
|
7021
|
+
init_chunk_ZVXO3XL6();
|
|
7022
|
+
init_chunk_HZ6CADSY();
|
|
7004
7023
|
init_zod();
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7024
|
+
PEOPLE_REPORT_DETAILS_MAX_LENGTH = 500;
|
|
7025
|
+
peopleReportReasonSchema = external_exports.enum(["spam", "harassment", "hate", "sexual", "violence", "other"]);
|
|
7026
|
+
reportDetailsSchema = optionalTrimmedText(PEOPLE_REPORT_DETAILS_MAX_LENGTH);
|
|
7027
|
+
reportFields = { reason: peopleReportReasonSchema, details: reportDetailsSchema };
|
|
7028
|
+
peopleReportBody = external_exports.discriminatedUnion("target", [
|
|
7029
|
+
external_exports.object({ target: external_exports.literal("message"), thread_id: uuidSchema, message_id: uuidSchema, ...reportFields }).strict(),
|
|
7030
|
+
external_exports.object({ target: external_exports.literal("thread"), thread_id: uuidSchema, ...reportFields }).strict(),
|
|
7031
|
+
external_exports.object({ target: external_exports.literal("user"), user_id: peopleUserIdSchema, thread_id: uuidSchema.optional(), ...reportFields }).strict(),
|
|
7032
|
+
external_exports.object({
|
|
7033
|
+
target: external_exports.literal("community_message"),
|
|
7034
|
+
community_id: uuidSchema,
|
|
7035
|
+
room_id: uuidSchema,
|
|
7036
|
+
message_id: uuidSchema,
|
|
7037
|
+
...reportFields
|
|
7038
|
+
}).strict(),
|
|
7039
|
+
external_exports.object({ target: external_exports.literal("community_member"), community_id: uuidSchema, user_id: peopleUserIdSchema, ...reportFields }).strict()
|
|
7040
|
+
]);
|
|
7041
|
+
}
|
|
7042
|
+
});
|
|
7043
|
+
|
|
7044
|
+
// ../../packages/core/dist/chunk-5DGHIY7L.js
|
|
7045
|
+
var rekorBaseChangeMessageSchema;
|
|
7046
|
+
var init_chunk_5DGHIY7L = __esm({
|
|
7047
|
+
"../../packages/core/dist/chunk-5DGHIY7L.js"() {
|
|
7048
|
+
"use strict";
|
|
7049
|
+
init_zod();
|
|
7050
|
+
rekorBaseChangeMessageSchema = external_exports.object({
|
|
7051
|
+
/** The WayAI org UUID — one id namespace. */
|
|
7052
|
+
org_id: external_exports.string().uuid(),
|
|
7053
|
+
/**
|
|
7054
|
+
* Not a UUID: a preview base id is `{prod_base_id}--{slug}`. Immutable per base — a
|
|
7055
|
+
* preview clone is its OWN base_id — so `(base_id, scope)` keys never collide across
|
|
7056
|
+
* environments. Empty is never a real base id, so it is non-conforming rather than a
|
|
7057
|
+
* frame keyed on nothing.
|
|
7058
|
+
*/
|
|
7059
|
+
base_id: external_exports.string().min(1),
|
|
7060
|
+
/**
|
|
7061
|
+
* Rides along so the client scopes its refetch without a lookup; the inspector scopes
|
|
7062
|
+
* by side.
|
|
7063
|
+
*/
|
|
7064
|
+
environment: external_exports.enum(["production", "preview"]),
|
|
7065
|
+
/** Which pane refetches. `base` covers create/delete/promote/config changes. */
|
|
7066
|
+
scope: external_exports.enum(["records", "record_types", "files", "base"])
|
|
7015
7067
|
});
|
|
7016
|
-
FILE_SNAPSHOT_MAX_PAGES = 1e4;
|
|
7017
|
-
FILE_SNAPSHOT_CONFLICT_ATTEMPTS = 3;
|
|
7018
|
-
FILE_SNAPSHOT_PAGE_SPACING_MS = Math.ceil(
|
|
7019
|
-
6e4 / Math.max(1, Math.floor((getEndpointConfig(`${DATA_PROXY_PREFIX}/files/snapshot`)?.userLimit ?? 60) * 4 / 5))
|
|
7020
|
-
);
|
|
7021
|
-
FILE_SNAPSHOT_CONFLICT_STATUS = 409;
|
|
7022
7068
|
}
|
|
7023
7069
|
});
|
|
7024
7070
|
|
|
@@ -7141,57 +7187,19 @@ var init_chunk_34LE6P7E = __esm({
|
|
|
7141
7187
|
hub_id: external_exports.string().uuid(),
|
|
7142
7188
|
connection_id: external_exports.string().uuid()
|
|
7143
7189
|
});
|
|
7144
|
-
createTemplateBody = external_exports.object({
|
|
7145
|
-
hub_id: external_exports.string().uuid(),
|
|
7146
|
-
connection_id: external_exports.string().uuid()
|
|
7147
|
-
}).passthrough();
|
|
7148
|
-
updateTemplateBody = external_exports.object({}).passthrough();
|
|
7149
|
-
submitTemplateBody = external_exports.object({
|
|
7150
|
-
hub_id: external_exports.string().uuid(),
|
|
7151
|
-
connection_id: external_exports.string().uuid()
|
|
7152
|
-
}).passthrough();
|
|
7153
|
-
testTemplateBody = external_exports.object({
|
|
7154
|
-
hub_id: external_exports.string().uuid(),
|
|
7155
|
-
connection_id: external_exports.string().uuid()
|
|
7156
|
-
}).passthrough();
|
|
7157
|
-
}
|
|
7158
|
-
});
|
|
7159
|
-
|
|
7160
|
-
// ../../packages/core/dist/chunk-FPSDNS2E.js
|
|
7161
|
-
var noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema;
|
|
7162
|
-
var init_chunk_FPSDNS2E = __esm({
|
|
7163
|
-
"../../packages/core/dist/chunk-FPSDNS2E.js"() {
|
|
7164
|
-
"use strict";
|
|
7165
|
-
init_zod();
|
|
7166
|
-
noticeSeveritySchema = external_exports.enum(["critical", "warn", "info"]);
|
|
7167
|
-
noticeStatusSchema = external_exports.enum(["active", "resolved"]);
|
|
7168
|
-
NOTICE_SCOPE_REGEX = /^(global|provider:[a-z0-9_-]{1,40}|service:[a-z0-9_-]{1,40})$/;
|
|
7169
|
-
noticeScopeSchema = external_exports.string().regex(NOTICE_SCOPE_REGEX, "scope must be 'global', 'provider:<x>', or 'service:<x>'");
|
|
7170
|
-
noticeLinkSchema = external_exports.string().url().refine((u) => /^https?:\/\//i.test(u), { message: "link must be an http(s) URL" });
|
|
7171
|
-
createNoticeBody = external_exports.object({
|
|
7172
|
-
severity: noticeSeveritySchema.default("info"),
|
|
7173
|
-
scope: noticeScopeSchema.default("global"),
|
|
7174
|
-
title: external_exports.string().trim().min(1).max(200),
|
|
7175
|
-
body: external_exports.string().max(2e3).optional(),
|
|
7176
|
-
link: noticeLinkSchema.optional(),
|
|
7177
|
-
starts_at: external_exports.string().datetime().optional(),
|
|
7178
|
-
ends_at: external_exports.string().datetime().optional()
|
|
7179
|
-
});
|
|
7180
|
-
updateNoticeBody = external_exports.object({
|
|
7181
|
-
severity: noticeSeveritySchema.optional(),
|
|
7182
|
-
scope: noticeScopeSchema.optional(),
|
|
7183
|
-
title: external_exports.string().trim().min(1).max(200).optional(),
|
|
7184
|
-
body: external_exports.string().max(2e3).nullable().optional(),
|
|
7185
|
-
link: noticeLinkSchema.nullable().optional(),
|
|
7186
|
-
starts_at: external_exports.string().datetime().optional(),
|
|
7187
|
-
ends_at: external_exports.string().datetime().nullable().optional()
|
|
7188
|
-
}).refine((b) => Object.keys(b).length > 0, { message: "at least one field must be provided" });
|
|
7189
|
-
listNoticesQuery = external_exports.object({
|
|
7190
|
-
status: noticeStatusSchema.optional(),
|
|
7191
|
-
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
7192
|
-
offset: external_exports.coerce.number().int().min(0).optional()
|
|
7193
|
-
});
|
|
7194
|
-
noticeIdParamSchema = external_exports.object({ id: external_exports.string().min(1) });
|
|
7190
|
+
createTemplateBody = external_exports.object({
|
|
7191
|
+
hub_id: external_exports.string().uuid(),
|
|
7192
|
+
connection_id: external_exports.string().uuid()
|
|
7193
|
+
}).passthrough();
|
|
7194
|
+
updateTemplateBody = external_exports.object({}).passthrough();
|
|
7195
|
+
submitTemplateBody = external_exports.object({
|
|
7196
|
+
hub_id: external_exports.string().uuid(),
|
|
7197
|
+
connection_id: external_exports.string().uuid()
|
|
7198
|
+
}).passthrough();
|
|
7199
|
+
testTemplateBody = external_exports.object({
|
|
7200
|
+
hub_id: external_exports.string().uuid(),
|
|
7201
|
+
connection_id: external_exports.string().uuid()
|
|
7202
|
+
}).passthrough();
|
|
7195
7203
|
}
|
|
7196
7204
|
});
|
|
7197
7205
|
|
|
@@ -7427,16 +7435,7 @@ var init_chunk_E4DIIOOE = __esm({
|
|
|
7427
7435
|
}
|
|
7428
7436
|
});
|
|
7429
7437
|
|
|
7430
|
-
// ../../packages/core/dist/chunk-
|
|
7431
|
-
var GIT_CHECKOUT_MAX_LENGTH;
|
|
7432
|
-
var init_chunk_7FHLACC7 = __esm({
|
|
7433
|
-
"../../packages/core/dist/chunk-7FHLACC7.js"() {
|
|
7434
|
-
"use strict";
|
|
7435
|
-
GIT_CHECKOUT_MAX_LENGTH = 255;
|
|
7436
|
-
}
|
|
7437
|
-
});
|
|
7438
|
-
|
|
7439
|
-
// ../../packages/core/dist/chunk-ILGGO4PT.js
|
|
7438
|
+
// ../../packages/core/dist/chunk-F3Z4V7VQ.js
|
|
7440
7439
|
function spokenLineField(label, description2) {
|
|
7441
7440
|
return { type: "text", label, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
|
|
7442
7441
|
}
|
|
@@ -7445,12 +7444,12 @@ function byLowercaseName(a, b) {
|
|
|
7445
7444
|
const y = b.connector_name.toLowerCase();
|
|
7446
7445
|
return x < y ? -1 : x > y ? 1 : 0;
|
|
7447
7446
|
}
|
|
7448
|
-
var CALLER_LANGUAGE, TTS_VOICE_REPLY_ENABLED_FIELD, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
|
|
7449
|
-
var
|
|
7450
|
-
"../../packages/core/dist/chunk-
|
|
7447
|
+
var CALLER_LANGUAGE, GIT_CHECKOUT_MAX_LENGTH, TTS_VOICE_REPLY_ENABLED_FIELD, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, typesafe, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
|
|
7448
|
+
var init_chunk_F3Z4V7VQ = __esm({
|
|
7449
|
+
"../../packages/core/dist/chunk-F3Z4V7VQ.js"() {
|
|
7451
7450
|
"use strict";
|
|
7452
|
-
init_chunk_7FHLACC7();
|
|
7453
7451
|
CALLER_LANGUAGE = "caller";
|
|
7452
|
+
GIT_CHECKOUT_MAX_LENGTH = 255;
|
|
7454
7453
|
TTS_VOICE_REPLY_ENABLED_FIELD = {
|
|
7455
7454
|
voice_reply_enabled: {
|
|
7456
7455
|
type: "toggle",
|
|
@@ -7868,6 +7867,35 @@ var init_chunk_ILGGO4PT = __esm({
|
|
|
7868
7867
|
token_refresh_config: { api_key: { strategy: "none" } },
|
|
7869
7868
|
connector_description: "LLM provider for xAI Grok models. Requires API key."
|
|
7870
7869
|
};
|
|
7870
|
+
typesafe = {
|
|
7871
|
+
connector_id: "0da558b0-e4b6-43f4-b945-aeaf432965e2",
|
|
7872
|
+
service_name: "TypeSafe",
|
|
7873
|
+
connector_type: "Agent",
|
|
7874
|
+
connector_name: "TypeSafe",
|
|
7875
|
+
authentication_types: ["api_key"],
|
|
7876
|
+
init_endpoint: null,
|
|
7877
|
+
unique_per_hub: true,
|
|
7878
|
+
account_sid_placeholder: "Enter email of the account",
|
|
7879
|
+
models: ["jev-latest", "jev-1.14.0", "jev-1.13.0"],
|
|
7880
|
+
is_internal: true,
|
|
7881
|
+
is_harness: false,
|
|
7882
|
+
connector_module: "agent",
|
|
7883
|
+
enabled: true,
|
|
7884
|
+
connector_settings_schema: null,
|
|
7885
|
+
agent_settings_schema: {
|
|
7886
|
+
model: { type: "select", label: "Model", allowCustomValue: true, options: [{ value: "jev-latest", label: "Jev Latest (decisions)", deprecated: false }, { value: "jev-1.14.0", label: "Jev 1.14 (decisions)", deprecated: false }, { value: "jev-1.13.0", label: "Jev 1.13 (decisions)", deprecated: false }], default: "jev-latest", description: "Decisions model to use. Serves closed-set monitors and automation gates only.", required: true }
|
|
7887
|
+
},
|
|
7888
|
+
channel_settings_schema: null,
|
|
7889
|
+
tool_settings_schema: null,
|
|
7890
|
+
connector_credential_schema: {
|
|
7891
|
+
api_key: {
|
|
7892
|
+
connection_display_name: { type: "text", label: "Connection Name", placeholder: "Enter a name for this connection", description: "This name will be used to identify the connection in the system", required: true },
|
|
7893
|
+
api_key: { type: "password", label: "API Key", placeholder: "Enter your TypeSafe API key", description: "Your TypeSafe API key from console.typesafe.ai", required: true, maskInEdit: true, useExistingPlaceholder: "__USE_EXISTING_API_KEY__" }
|
|
7894
|
+
}
|
|
7895
|
+
},
|
|
7896
|
+
token_refresh_config: { api_key: { strategy: "none" } },
|
|
7897
|
+
connector_description: "Decisions models from TypeSafe (Jev) for closed-set monitors and automation gates. Requires API key."
|
|
7898
|
+
};
|
|
7871
7899
|
groqStt = {
|
|
7872
7900
|
connector_id: "78328cbf-19d5-4310-9c37-fea2d792f356",
|
|
7873
7901
|
service_name: "Groq",
|
|
@@ -8414,6 +8442,7 @@ var init_chunk_ILGGO4PT = __esm({
|
|
|
8414
8442
|
telegram,
|
|
8415
8443
|
restApiTool,
|
|
8416
8444
|
rekorToolset,
|
|
8445
|
+
typesafe,
|
|
8417
8446
|
wayai,
|
|
8418
8447
|
whatsapp,
|
|
8419
8448
|
xai
|
|
@@ -8421,14 +8450,14 @@ var init_chunk_ILGGO4PT = __esm({
|
|
|
8421
8450
|
}
|
|
8422
8451
|
});
|
|
8423
8452
|
|
|
8424
|
-
// ../../packages/core/dist/chunk-
|
|
8453
|
+
// ../../packages/core/dist/chunk-Q6AXOQH6.js
|
|
8425
8454
|
var evalCallInstant, EVAL_CALL_MIN_SECONDS, EVAL_CALL_MAX_SECONDS, EVAL_CALL_SPOKEN_LINE_MAX_CHARS, hubScoped2, createEvalCallBody, createEvalCallResponse, evalCallConversationQuery, evalCallRecordQuery, evalCallSpeaker, evalCallUtterance, evalCallTurn, evalCallRecording, evalCallRecordResponse, evalCallFinishResponse;
|
|
8426
|
-
var
|
|
8427
|
-
"../../packages/core/dist/chunk-
|
|
8455
|
+
var init_chunk_Q6AXOQH6 = __esm({
|
|
8456
|
+
"../../packages/core/dist/chunk-Q6AXOQH6.js"() {
|
|
8428
8457
|
"use strict";
|
|
8429
8458
|
init_chunk_E4DIIOOE();
|
|
8430
|
-
init_chunk_ILGGO4PT();
|
|
8431
8459
|
init_chunk_HZ6CADSY();
|
|
8460
|
+
init_chunk_F3Z4V7VQ();
|
|
8432
8461
|
init_chunk_MIWZOSPI();
|
|
8433
8462
|
init_zod();
|
|
8434
8463
|
evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
|
|
@@ -8651,6 +8680,20 @@ var init_chunk_OPETF4GS = __esm({
|
|
|
8651
8680
|
}
|
|
8652
8681
|
});
|
|
8653
8682
|
|
|
8683
|
+
// ../../packages/core/dist/chunk-YULHXJ5M.js
|
|
8684
|
+
var COMMUNITY_LESSON_TREE_MAX_BYTES, COMMUNITY_LESSON_LINK_PROTOCOLS, COMMUNITY_LESSON_TREE_TOO_LARGE_REASON, COMMUNITY_LESSON_TREE_TOO_DEEP_REASON, COMMUNITY_LESSON_LINE_PREFIX_TOO_WIDE_REASON, LINK_SCHEME;
|
|
8685
|
+
var init_chunk_YULHXJ5M = __esm({
|
|
8686
|
+
"../../packages/core/dist/chunk-YULHXJ5M.js"() {
|
|
8687
|
+
"use strict";
|
|
8688
|
+
COMMUNITY_LESSON_TREE_MAX_BYTES = 512 * 1024;
|
|
8689
|
+
COMMUNITY_LESSON_LINK_PROTOCOLS = ["http", "https", "mailto"];
|
|
8690
|
+
COMMUNITY_LESSON_TREE_TOO_LARGE_REASON = "lesson_tree_too_large";
|
|
8691
|
+
COMMUNITY_LESSON_TREE_TOO_DEEP_REASON = "lesson_tree_too_deep";
|
|
8692
|
+
COMMUNITY_LESSON_LINE_PREFIX_TOO_WIDE_REASON = "lesson_line_prefix_too_wide";
|
|
8693
|
+
LINK_SCHEME = new RegExp(`^(${COMMUNITY_LESSON_LINK_PROTOCOLS.join("|")}):`, "i");
|
|
8694
|
+
}
|
|
8695
|
+
});
|
|
8696
|
+
|
|
8654
8697
|
// ../../packages/core/dist/chunk-V4FRPRH5.js
|
|
8655
8698
|
var CONSULT_THREAD_STATUSES, consultThreadStatus, CONSULT_THREAD_TITLE_MAX, consultThreadTitle, consultThreadSummary, listConsultThreadsQuery, listConsultThreadsResponse, createConsultThreadBody, createConsultThreadResponse, consultThreadIdParam, updateConsultThreadBody, updateConsultThreadResponse, CONSULT_AWAIT_TIMEOUT_MS;
|
|
8656
8699
|
var init_chunk_V4FRPRH5 = __esm({
|
|
@@ -8763,15 +8806,43 @@ var init_chunk_MH4O3YEX = __esm({
|
|
|
8763
8806
|
}
|
|
8764
8807
|
});
|
|
8765
8808
|
|
|
8766
|
-
// ../../packages/core/dist/chunk-
|
|
8809
|
+
// ../../packages/core/dist/chunk-IBL7FANV.js
|
|
8810
|
+
var SUMMARIZATION_THRESHOLD_MIN, SUMMARIZATION_THRESHOLD_MAX;
|
|
8811
|
+
var init_chunk_IBL7FANV = __esm({
|
|
8812
|
+
"../../packages/core/dist/chunk-IBL7FANV.js"() {
|
|
8813
|
+
"use strict";
|
|
8814
|
+
SUMMARIZATION_THRESHOLD_MIN = 1e3;
|
|
8815
|
+
SUMMARIZATION_THRESHOLD_MAX = 1e6;
|
|
8816
|
+
}
|
|
8817
|
+
});
|
|
8818
|
+
|
|
8819
|
+
// ../../packages/core/dist/chunk-C2UEA2KW.js
|
|
8820
|
+
var FLAG_CONDITION_OPERATORS;
|
|
8821
|
+
var init_chunk_C2UEA2KW = __esm({
|
|
8822
|
+
"../../packages/core/dist/chunk-C2UEA2KW.js"() {
|
|
8823
|
+
"use strict";
|
|
8824
|
+
FLAG_CONDITION_OPERATORS = ["=", "!=", ">=", "<=", ">", "<"];
|
|
8825
|
+
}
|
|
8826
|
+
});
|
|
8827
|
+
|
|
8828
|
+
// ../../packages/core/dist/chunk-I63MXA2X.js
|
|
8767
8829
|
function catalogToolSideEffects(toolName) {
|
|
8768
8830
|
const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
|
|
8769
8831
|
if (sideEffects === void 0) return "unknown";
|
|
8770
8832
|
return sideEffects ? "side_effects" : "none";
|
|
8771
8833
|
}
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8834
|
+
function idempotencyHeaderRefusal(value) {
|
|
8835
|
+
if (typeof value !== "string" || !/^[A-Za-z0-9][A-Za-z0-9-]{0,63}$/.test(value)) {
|
|
8836
|
+
return "idempotency_header must be a header name: letters, digits and dashes, at most 64";
|
|
8837
|
+
}
|
|
8838
|
+
if (RESERVED_HEADERS.has(value.toLowerCase())) {
|
|
8839
|
+
return `idempotency_header cannot be ${value}: the platform sets that header`;
|
|
8840
|
+
}
|
|
8841
|
+
return null;
|
|
8842
|
+
}
|
|
8843
|
+
var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, CATALOG_SIDE_EFFECTS, CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
|
|
8844
|
+
var init_chunk_I63MXA2X = __esm({
|
|
8845
|
+
"../../packages/core/dist/chunk-I63MXA2X.js"() {
|
|
8775
8846
|
"use strict";
|
|
8776
8847
|
init_chunk_PTYXZZTE();
|
|
8777
8848
|
NATIVE_TOOL_SCHEMAS = {
|
|
@@ -9743,25 +9814,54 @@ var init_chunk_RHGPANBN = __esm({
|
|
|
9743
9814
|
CATALOG_SIDE_EFFECTS = new Map(
|
|
9744
9815
|
NATIVE_TOOLS.map((tool) => [tool.tool_name, tool.side_effects])
|
|
9745
9816
|
);
|
|
9817
|
+
CATALOG_REPLAY = new Map(
|
|
9818
|
+
NATIVE_TOOLS.map((tool) => [tool.tool_name, tool.replay])
|
|
9819
|
+
);
|
|
9820
|
+
REPLAY_OVERRIDES = ["rerun", "reconcile"];
|
|
9821
|
+
RESERVED_HEADERS = /* @__PURE__ */ new Set([
|
|
9822
|
+
"authorization",
|
|
9823
|
+
"proxy-authorization",
|
|
9824
|
+
"cookie",
|
|
9825
|
+
"host",
|
|
9826
|
+
"content-type",
|
|
9827
|
+
"content-length",
|
|
9828
|
+
"transfer-encoding",
|
|
9829
|
+
"connection",
|
|
9830
|
+
"accept",
|
|
9831
|
+
"user-agent"
|
|
9832
|
+
]);
|
|
9746
9833
|
}
|
|
9747
9834
|
});
|
|
9748
9835
|
|
|
9749
|
-
// ../../packages/core/dist/chunk-
|
|
9750
|
-
var
|
|
9751
|
-
var
|
|
9752
|
-
"../../packages/core/dist/chunk-
|
|
9753
|
-
"use strict";
|
|
9754
|
-
SUMMARIZATION_THRESHOLD_MIN = 1e3;
|
|
9755
|
-
SUMMARIZATION_THRESHOLD_MAX = 1e6;
|
|
9756
|
-
}
|
|
9757
|
-
});
|
|
9758
|
-
|
|
9759
|
-
// ../../packages/core/dist/chunk-C2UEA2KW.js
|
|
9760
|
-
var FLAG_CONDITION_OPERATORS;
|
|
9761
|
-
var init_chunk_C2UEA2KW = __esm({
|
|
9762
|
-
"../../packages/core/dist/chunk-C2UEA2KW.js"() {
|
|
9836
|
+
// ../../packages/core/dist/chunk-E5FY4ADY.js
|
|
9837
|
+
var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
|
|
9838
|
+
var init_chunk_E5FY4ADY = __esm({
|
|
9839
|
+
"../../packages/core/dist/chunk-E5FY4ADY.js"() {
|
|
9763
9840
|
"use strict";
|
|
9764
|
-
|
|
9841
|
+
init_chunk_I63MXA2X();
|
|
9842
|
+
init_chunk_F3Z4V7VQ();
|
|
9843
|
+
init_chunk_MIWZOSPI();
|
|
9844
|
+
COUNTER_KEYS = Object.keys({
|
|
9845
|
+
input_tokens: true,
|
|
9846
|
+
output_tokens: true,
|
|
9847
|
+
cache_read_input_tokens: true,
|
|
9848
|
+
cache_creation_input_tokens: true,
|
|
9849
|
+
cache_creation_1h_input_tokens: true
|
|
9850
|
+
});
|
|
9851
|
+
STT_PRICING = {
|
|
9852
|
+
"Openai/whisper-1": { per_second: 6e-3 / 60 },
|
|
9853
|
+
"Openai/gpt-4o-mini-transcribe": { per_second: 3e-3 / 60 },
|
|
9854
|
+
"Groq/whisper-large-v3-turbo": { per_second: 0.04 / 3600 },
|
|
9855
|
+
"ElevenLabs/scribe_v2": { per_second: 0.22 / 3600 }
|
|
9856
|
+
};
|
|
9857
|
+
CONTAINER_PRICING = {
|
|
9858
|
+
anthropic_per_request_usd: 0.05 * 10 / 3600,
|
|
9859
|
+
// $0.05/hr × ~10s/request ≈ $0.000139
|
|
9860
|
+
openai_per_session_usd: 0.03
|
|
9861
|
+
// 1GB tier, 20-min session
|
|
9862
|
+
};
|
|
9863
|
+
connectorById = new Map(CONNECTORS.map((c) => [c.connector_id, c]));
|
|
9864
|
+
nativeToolById = new Map(NATIVE_TOOLS.map((t) => [t.tool_native_id, t]));
|
|
9765
9865
|
}
|
|
9766
9866
|
});
|
|
9767
9867
|
|
|
@@ -9862,7 +9962,7 @@ var init_chunk_L5F7ZOUJ = __esm({
|
|
|
9862
9962
|
}
|
|
9863
9963
|
});
|
|
9864
9964
|
|
|
9865
|
-
// ../../packages/core/dist/chunk-
|
|
9965
|
+
// ../../packages/core/dist/chunk-NHUH5GJ3.js
|
|
9866
9966
|
function normalizeDecisionsModelId(modelId) {
|
|
9867
9967
|
return modelId.trim().toLowerCase();
|
|
9868
9968
|
}
|
|
@@ -9871,11 +9971,14 @@ function isDecisionsModel(modelId) {
|
|
|
9871
9971
|
const normalized = normalizeDecisionsModelId(modelId);
|
|
9872
9972
|
return DECISIONS_MODEL_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
9873
9973
|
}
|
|
9974
|
+
function isDecisionCapableRole(role) {
|
|
9975
|
+
return DECISION_CAPABLE_AGENT_ROLES.includes(role);
|
|
9976
|
+
}
|
|
9874
9977
|
function checkDecisionsModelBinding(agent) {
|
|
9875
9978
|
if (!isDecisionsModel(agent.model)) return null;
|
|
9876
9979
|
const model = String(agent.model);
|
|
9877
9980
|
const role = agent.agent_role;
|
|
9878
|
-
if (!
|
|
9981
|
+
if (!isDecisionCapableRole(role)) {
|
|
9879
9982
|
return refuse(
|
|
9880
9983
|
"role_produces_text",
|
|
9881
9984
|
`agent_role "${String(role)}" produces text, which the decisions model "${model}" does not return. A decisions model binds to: ${DECISION_CAPABLE_AGENT_ROLES.join(", ")}.`
|
|
@@ -9930,9 +10033,10 @@ function readAgentSettingsModel(agentSettings) {
|
|
|
9930
10033
|
return typeof model === "string" ? model : null;
|
|
9931
10034
|
}
|
|
9932
10035
|
var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
|
|
9933
|
-
var
|
|
9934
|
-
"../../packages/core/dist/chunk-
|
|
10036
|
+
var init_chunk_NHUH5GJ3 = __esm({
|
|
10037
|
+
"../../packages/core/dist/chunk-NHUH5GJ3.js"() {
|
|
9935
10038
|
"use strict";
|
|
10039
|
+
init_chunk_E5FY4ADY();
|
|
9936
10040
|
init_chunk_L5F7ZOUJ();
|
|
9937
10041
|
DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
|
|
9938
10042
|
DECISION_CAPABLE_AGENT_ROLES = [
|
|
@@ -9943,7 +10047,7 @@ var init_chunk_T7KQKDET = __esm({
|
|
|
9943
10047
|
}
|
|
9944
10048
|
});
|
|
9945
10049
|
|
|
9946
|
-
// ../../packages/core/dist/chunk-
|
|
10050
|
+
// ../../packages/core/dist/chunk-F4M7M4E5.js
|
|
9947
10051
|
function resolveMonitorTrigger(monitorConfig) {
|
|
9948
10052
|
if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
|
|
9949
10053
|
const raw = monitorConfig.trigger;
|
|
@@ -10249,16 +10353,16 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
|
|
|
10249
10353
|
if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
|
|
10250
10354
|
}
|
|
10251
10355
|
var NATIVE_TOOL_NAMES, previousConversationsCountField, summarizationThresholdField, flagConditionSchema, MONITOR_TRIGGERS, monitorTriggerSchema, AUTOMATION_GATE_TRIGGERS, NON_FIRING_TRIGGERS, MONITOR_FIRING_TRIGGERS, MONITOR_DELAY_SECONDS_MIN, MONITOR_IDLE_DELAY_REQUIRED_MESSAGE, MONITOR_HISTORY_MESSAGES_MAX, monitorHistoryMessagesSchema, monitorIncludeToolResultsSchema, MONITOR_INPUT_SHAPING_KEYS, MONITOR_INPUT_SHAPING_SCHEMAS, MONITOR_INPUT_SHAPING_IDLE_MESSAGE, monitorArgumentSourceSchema, MONITOR_NOTE_TEMPLATE_MAX, MONITOR_STEER_NOTE_MAX, MONITOR_GATE_AGENT_NAME_MAX, monitorActionSchema, monitorRuleSchema, MONITOR_RULE_KEYS, MONITOR_RULE_SCHEMAS, MONITOR_RULE_TRIGGERS, MONITOR_RULE_TRIGGER_MESSAGE, CALL_UTTERANCE_SPEAKERS, callUtteranceSpeakerSchema, MONITOR_CALL_KEYS, MONITOR_CALL_SCHEMAS, MONITOR_CALL_KEY_MESSAGE, CALL_STEERING_MIN_CONFIDENCE, CALL_UTTERANCE_RULE_NOT_CONFIDENT_MESSAGE, CALL_UTTERANCE_FALLBACK_MESSAGE, CALL_UTTERANCE_FLAG_CONDITIONS_MESSAGE, CALL_STEER_NOTE_BLANK_MESSAGE, MONITOR_USER_MESSAGE_ACTION_KINDS, MONITOR_ASSISTANT_REPLY_ACTION_KINDS, MONITOR_CALL_UTTERANCE_ACTION_KINDS, MONITOR_AUTOMATION_FIRE_ACTION_KINDS, MONITOR_AUTOMATION_ITEM_ACTION_KINDS, INSERT_NOTE_TOOL_NAME, RUN_MONITOR_TOOL_NAME, MONITOR_RULE_ALLOWED_NATIVE_TOOLS, MONITOR_RULE_REENTRY_TOOLS, MONITOR_RULE_REENTRY_TRACKS, AUTOMATION_FIRE_FLAG_CONDITIONS_MESSAGE, AUTOMATION_FIRE_INPUT_SHAPING_MESSAGE, AUTOMATION_ITEM_FLAG_CONDITIONS_MESSAGE, AUTOMATION_ITEM_INPUT_SHAPING_MESSAGE, AUTOMATION_GATE_KEY_MESSAGES, monitorConfigField, flagConditionsField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody;
|
|
10252
|
-
var
|
|
10253
|
-
"../../packages/core/dist/chunk-
|
|
10356
|
+
var init_chunk_F4M7M4E5 = __esm({
|
|
10357
|
+
"../../packages/core/dist/chunk-F4M7M4E5.js"() {
|
|
10254
10358
|
"use strict";
|
|
10255
|
-
init_chunk_RHGPANBN();
|
|
10256
10359
|
init_chunk_IBL7FANV();
|
|
10360
|
+
init_chunk_LD6U3CDG();
|
|
10257
10361
|
init_chunk_HZ6CADSY();
|
|
10258
10362
|
init_chunk_C2UEA2KW();
|
|
10259
|
-
|
|
10363
|
+
init_chunk_NHUH5GJ3();
|
|
10364
|
+
init_chunk_I63MXA2X();
|
|
10260
10365
|
init_chunk_PTYXZZTE();
|
|
10261
|
-
init_chunk_T7KQKDET();
|
|
10262
10366
|
init_chunk_L5F7ZOUJ();
|
|
10263
10367
|
init_zod();
|
|
10264
10368
|
NATIVE_TOOL_NAMES = new Set(NATIVE_TOOLS.map((t) => t.tool_name));
|
|
@@ -10475,12 +10579,12 @@ var init_chunk_TL7IF5CR = __esm({
|
|
|
10475
10579
|
}
|
|
10476
10580
|
});
|
|
10477
10581
|
|
|
10478
|
-
// ../../packages/core/dist/chunk-
|
|
10582
|
+
// ../../packages/core/dist/chunk-3R72QIWR.js
|
|
10479
10583
|
var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
|
|
10480
|
-
var
|
|
10481
|
-
"../../packages/core/dist/chunk-
|
|
10584
|
+
var init_chunk_3R72QIWR = __esm({
|
|
10585
|
+
"../../packages/core/dist/chunk-3R72QIWR.js"() {
|
|
10482
10586
|
"use strict";
|
|
10483
|
-
|
|
10587
|
+
init_chunk_F4M7M4E5();
|
|
10484
10588
|
init_chunk_HZ6CADSY();
|
|
10485
10589
|
init_chunk_PTYXZZTE();
|
|
10486
10590
|
init_zod();
|
|
@@ -10953,40 +11057,6 @@ var init_chunk_BPCNB5RT = __esm({
|
|
|
10953
11057
|
}
|
|
10954
11058
|
});
|
|
10955
11059
|
|
|
10956
|
-
// ../../packages/core/dist/chunk-JJWKZHF3.js
|
|
10957
|
-
function idempotencyHeaderRefusal(value) {
|
|
10958
|
-
if (typeof value !== "string" || !/^[A-Za-z0-9][A-Za-z0-9-]{0,63}$/.test(value)) {
|
|
10959
|
-
return "idempotency_header must be a header name: letters, digits and dashes, at most 64";
|
|
10960
|
-
}
|
|
10961
|
-
if (RESERVED_HEADERS.has(value.toLowerCase())) {
|
|
10962
|
-
return `idempotency_header cannot be ${value}: the platform sets that header`;
|
|
10963
|
-
}
|
|
10964
|
-
return null;
|
|
10965
|
-
}
|
|
10966
|
-
var CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
|
|
10967
|
-
var init_chunk_JJWKZHF3 = __esm({
|
|
10968
|
-
"../../packages/core/dist/chunk-JJWKZHF3.js"() {
|
|
10969
|
-
"use strict";
|
|
10970
|
-
init_chunk_RHGPANBN();
|
|
10971
|
-
CATALOG_REPLAY = new Map(
|
|
10972
|
-
NATIVE_TOOLS.map((tool) => [tool.tool_name, tool.replay])
|
|
10973
|
-
);
|
|
10974
|
-
REPLAY_OVERRIDES = ["rerun", "reconcile"];
|
|
10975
|
-
RESERVED_HEADERS = /* @__PURE__ */ new Set([
|
|
10976
|
-
"authorization",
|
|
10977
|
-
"proxy-authorization",
|
|
10978
|
-
"cookie",
|
|
10979
|
-
"host",
|
|
10980
|
-
"content-type",
|
|
10981
|
-
"content-length",
|
|
10982
|
-
"transfer-encoding",
|
|
10983
|
-
"connection",
|
|
10984
|
-
"accept",
|
|
10985
|
-
"user-agent"
|
|
10986
|
-
]);
|
|
10987
|
-
}
|
|
10988
|
-
});
|
|
10989
|
-
|
|
10990
11060
|
// ../../packages/core/dist/chunk-WEXVYJ5H.js
|
|
10991
11061
|
function containsKanbanPlaceholders(value) {
|
|
10992
11062
|
if (value == null) return false;
|
|
@@ -11200,7 +11270,7 @@ var init_chunk_WEXVYJ5H = __esm({
|
|
|
11200
11270
|
}
|
|
11201
11271
|
});
|
|
11202
11272
|
|
|
11203
|
-
// ../../packages/core/dist/chunk-
|
|
11273
|
+
// ../../packages/core/dist/chunk-PCBZHIA2.js
|
|
11204
11274
|
function refineToolConfig(value, ctx) {
|
|
11205
11275
|
const raw = value.tool_config;
|
|
11206
11276
|
if (raw == null) return;
|
|
@@ -11236,12 +11306,12 @@ function refineToolConfig(value, ctx) {
|
|
|
11236
11306
|
}
|
|
11237
11307
|
}
|
|
11238
11308
|
var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
|
|
11239
|
-
var
|
|
11240
|
-
"../../packages/core/dist/chunk-
|
|
11309
|
+
var init_chunk_PCBZHIA2 = __esm({
|
|
11310
|
+
"../../packages/core/dist/chunk-PCBZHIA2.js"() {
|
|
11241
11311
|
"use strict";
|
|
11242
|
-
init_chunk_JJWKZHF3();
|
|
11243
11312
|
init_chunk_WEXVYJ5H();
|
|
11244
11313
|
init_chunk_HZ6CADSY();
|
|
11314
|
+
init_chunk_I63MXA2X();
|
|
11245
11315
|
init_zod();
|
|
11246
11316
|
toolIdParam = external_exports.object({ id: uuidSchema });
|
|
11247
11317
|
listToolsQuery = external_exports.object({ agent_id: uuidSchema, hub_id: uuidSchema });
|
|
@@ -11298,7 +11368,7 @@ var init_chunk_I6T2KTYE = __esm({
|
|
|
11298
11368
|
}
|
|
11299
11369
|
});
|
|
11300
11370
|
|
|
11301
|
-
// ../../packages/core/dist/chunk-
|
|
11371
|
+
// ../../packages/core/dist/chunk-BA7WE5YR.js
|
|
11302
11372
|
function utf8ByteLength(text2) {
|
|
11303
11373
|
let bytes = 0;
|
|
11304
11374
|
for (let i = 0; i < text2.length; i++) {
|
|
@@ -11326,8 +11396,8 @@ function pageHtmlIssue(html) {
|
|
|
11326
11396
|
return null;
|
|
11327
11397
|
}
|
|
11328
11398
|
var PAGES_PER_HUB_MAX, PAGE_HTML_MAX_BYTES, PAGE_SLUG_MAX, PAGE_SLUG_REGEX, PAGE_TITLE_MAX, PAGE_DESCRIPTION_MAX, PAGE_ORDER_MAX, PAGE_TOOLS_MAX, PAGE_CONNECTION_NAME_MAX, PAGE_TOOL_NAME_MAX, PAGE_PARAMS_MAX_CHARS, PAGE_AUDIENCES, PAGE_NOTIFY_LEVELS, pageSlugSchema, pageToolSchema, pageParamsSchema, pageManifestObject, pageManifestSchema, pageSummarySchema, hubPagesParam, hubPageParam, pageRevisionSchema, PAGE_TOOL_CALL_BODY_MAX_BYTES, pageToolCallBody, PAGE_REVISION_STALE_CODE;
|
|
11329
|
-
var
|
|
11330
|
-
"../../packages/core/dist/chunk-
|
|
11399
|
+
var init_chunk_BA7WE5YR = __esm({
|
|
11400
|
+
"../../packages/core/dist/chunk-BA7WE5YR.js"() {
|
|
11331
11401
|
"use strict";
|
|
11332
11402
|
init_chunk_WEXVYJ5H();
|
|
11333
11403
|
init_chunk_HZ6CADSY();
|
|
@@ -11343,7 +11413,7 @@ var init_chunk_RFFD7JSR = __esm({
|
|
|
11343
11413
|
PAGE_CONNECTION_NAME_MAX = 200;
|
|
11344
11414
|
PAGE_TOOL_NAME_MAX = 128;
|
|
11345
11415
|
PAGE_PARAMS_MAX_CHARS = 16 * 1024;
|
|
11346
|
-
PAGE_AUDIENCES = ["team"];
|
|
11416
|
+
PAGE_AUDIENCES = ["team", "customers"];
|
|
11347
11417
|
PAGE_NOTIFY_LEVELS = ["none", "summary"];
|
|
11348
11418
|
pageSlugSchema = external_exports.string().min(1).max(PAGE_SLUG_MAX).regex(PAGE_SLUG_REGEX, {
|
|
11349
11419
|
message: 'a page slug is lowercase letters, digits and hyphens (e.g. "swim-results")'
|
|
@@ -11375,11 +11445,16 @@ var init_chunk_RFFD7JSR = __esm({
|
|
|
11375
11445
|
title: external_exports.string().trim().min(1).max(PAGE_TITLE_MAX),
|
|
11376
11446
|
description: external_exports.string().trim().max(PAGE_DESCRIPTION_MAX).nullable().default(null),
|
|
11377
11447
|
audience: external_exports.enum(PAGE_AUDIENCES, {
|
|
11378
|
-
errorMap: () => ({ message: 'audience must be "team"
|
|
11448
|
+
errorMap: () => ({ message: 'audience must be "team" or "customers"' })
|
|
11379
11449
|
}),
|
|
11380
|
-
/**
|
|
11450
|
+
/** A team page's: the hub's team users may run its write tools. A `conversation:write` grant on the hub always may. */
|
|
11381
11451
|
team_writes: external_exports.boolean().default(false),
|
|
11382
|
-
/**
|
|
11452
|
+
/**
|
|
11453
|
+
* A customer page's: its customers may run its write tools, each on their own records (opt-in). Stored
|
|
11454
|
+
* only when stated, so a page that states none (every team page) keeps the manifest it had.
|
|
11455
|
+
*/
|
|
11456
|
+
customer_writes: external_exports.boolean().optional(),
|
|
11457
|
+
/** The page is offered in the conversation header to whoever may open it. Required on a customer page. */
|
|
11383
11458
|
show_in_conversation: external_exports.boolean().default(false),
|
|
11384
11459
|
/** Menu position, lowest first; pages of equal order sort by slug. */
|
|
11385
11460
|
order: external_exports.number().int().min(0).max(PAGE_ORDER_MAX).default(0),
|
|
@@ -11387,6 +11462,27 @@ var init_chunk_RFFD7JSR = __esm({
|
|
|
11387
11462
|
tools: external_exports.array(pageToolSchema).max(PAGE_TOOLS_MAX).default([])
|
|
11388
11463
|
}).strict();
|
|
11389
11464
|
pageManifestSchema = pageManifestObject.superRefine((manifest, ctx) => {
|
|
11465
|
+
if (manifest.audience === "customers") {
|
|
11466
|
+
if (!manifest.show_in_conversation) {
|
|
11467
|
+
ctx.addIssue({
|
|
11468
|
+
code: external_exports.ZodIssueCode.custom,
|
|
11469
|
+
path: ["show_in_conversation"],
|
|
11470
|
+
message: "a customer page sets show_in_conversation: true, since the conversation header is a customer's only way in"
|
|
11471
|
+
});
|
|
11472
|
+
}
|
|
11473
|
+
if (manifest.team_writes) {
|
|
11474
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["team_writes"], message: "team_writes is a team page's: a customer page writes only with customer_writes" });
|
|
11475
|
+
}
|
|
11476
|
+
if (manifest.tools.some((t) => t.notify !== "none")) {
|
|
11477
|
+
ctx.addIssue({
|
|
11478
|
+
code: external_exports.ZodIssueCode.custom,
|
|
11479
|
+
path: ["tools"],
|
|
11480
|
+
message: "a customer page's tools are notify: none: the agent does not hear a customer page's calls yet"
|
|
11481
|
+
});
|
|
11482
|
+
}
|
|
11483
|
+
} else if (manifest.customer_writes) {
|
|
11484
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["customer_writes"], message: "customer_writes is a customer page's: a team page writes with team_writes" });
|
|
11485
|
+
}
|
|
11390
11486
|
const seen = /* @__PURE__ */ new Set();
|
|
11391
11487
|
manifest.tools.forEach((t, i) => {
|
|
11392
11488
|
if (seen.has(t.tool)) {
|
|
@@ -11405,6 +11501,8 @@ var init_chunk_RFFD7JSR = __esm({
|
|
|
11405
11501
|
description: external_exports.string().nullable(),
|
|
11406
11502
|
audience: external_exports.string(),
|
|
11407
11503
|
team_writes: external_exports.boolean(),
|
|
11504
|
+
/** A customer page's opt-in to writes, when its manifest states it; absent otherwise. */
|
|
11505
|
+
customer_writes: external_exports.boolean().optional(),
|
|
11408
11506
|
show_in_conversation: external_exports.boolean(),
|
|
11409
11507
|
order: external_exports.number(),
|
|
11410
11508
|
params: external_exports.record(external_exports.unknown()).nullable(),
|
|
@@ -11422,7 +11520,8 @@ var init_chunk_RFFD7JSR = __esm({
|
|
|
11422
11520
|
pageToolCallBody = external_exports.object({
|
|
11423
11521
|
revision: pageRevisionSchema,
|
|
11424
11522
|
tool: external_exports.string().min(1).max(PAGE_TOOL_NAME_MAX),
|
|
11425
|
-
arguments: external_exports.record(external_exports.unknown()).default({})
|
|
11523
|
+
arguments: external_exports.record(external_exports.unknown()).default({}),
|
|
11524
|
+
conversation_id: uuidSchema.optional()
|
|
11426
11525
|
}).strict();
|
|
11427
11526
|
PAGE_REVISION_STALE_CODE = "PAGE_REVISION_STALE";
|
|
11428
11527
|
}
|
|
@@ -11438,7 +11537,7 @@ var init_chunk_4LXDRTO4 = __esm({
|
|
|
11438
11537
|
}
|
|
11439
11538
|
});
|
|
11440
11539
|
|
|
11441
|
-
// ../../packages/core/dist/chunk-
|
|
11540
|
+
// ../../packages/core/dist/chunk-UEQSHGAY.js
|
|
11442
11541
|
function isIanaTimezone(timezone) {
|
|
11443
11542
|
try {
|
|
11444
11543
|
new Intl.DateTimeFormat("en-US", { timeZone: timezone }).format(0);
|
|
@@ -11448,12 +11547,12 @@ function isIanaTimezone(timezone) {
|
|
|
11448
11547
|
}
|
|
11449
11548
|
}
|
|
11450
11549
|
var evalDateContextSchema;
|
|
11451
|
-
var
|
|
11452
|
-
"../../packages/core/dist/chunk-
|
|
11550
|
+
var init_chunk_UEQSHGAY = __esm({
|
|
11551
|
+
"../../packages/core/dist/chunk-UEQSHGAY.js"() {
|
|
11453
11552
|
"use strict";
|
|
11553
|
+
init_chunk_LD6U3CDG();
|
|
11454
11554
|
init_chunk_HZ6CADSY();
|
|
11455
11555
|
init_chunk_MIWZOSPI();
|
|
11456
|
-
init_chunk_LD6U3CDG();
|
|
11457
11556
|
init_chunk_PTYXZZTE();
|
|
11458
11557
|
init_zod();
|
|
11459
11558
|
evalDateContextSchema = external_exports.object({
|
|
@@ -11478,7 +11577,7 @@ var init_chunk_2ISUBJG7 = __esm({
|
|
|
11478
11577
|
}
|
|
11479
11578
|
});
|
|
11480
11579
|
|
|
11481
|
-
// ../../packages/core/dist/chunk-
|
|
11580
|
+
// ../../packages/core/dist/chunk-K5ILL3RT.js
|
|
11482
11581
|
function describeRole(role) {
|
|
11483
11582
|
if (typeof role === "string") {
|
|
11484
11583
|
return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
|
|
@@ -11652,11 +11751,11 @@ function terminalRunCount(counts) {
|
|
|
11652
11751
|
return counts.successful_runs + counts.failed_runs;
|
|
11653
11752
|
}
|
|
11654
11753
|
var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, evalCustomerContactIdSchema, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
|
|
11655
|
-
var
|
|
11656
|
-
"../../packages/core/dist/chunk-
|
|
11754
|
+
var init_chunk_K5ILL3RT = __esm({
|
|
11755
|
+
"../../packages/core/dist/chunk-K5ILL3RT.js"() {
|
|
11657
11756
|
"use strict";
|
|
11658
11757
|
init_chunk_4LXDRTO4();
|
|
11659
|
-
|
|
11758
|
+
init_chunk_UEQSHGAY();
|
|
11660
11759
|
init_chunk_HZ6CADSY();
|
|
11661
11760
|
init_chunk_2ISUBJG7();
|
|
11662
11761
|
init_zod();
|
|
@@ -12721,7 +12820,7 @@ var init_chunk_ETFW6QY3 = __esm({
|
|
|
12721
12820
|
}
|
|
12722
12821
|
});
|
|
12723
12822
|
|
|
12724
|
-
// ../../packages/core/dist/chunk-
|
|
12823
|
+
// ../../packages/core/dist/chunk-AGHRRR4N.js
|
|
12725
12824
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
12726
12825
|
const agents = config.agents;
|
|
12727
12826
|
if (!Array.isArray(agents)) return;
|
|
@@ -13321,23 +13420,23 @@ function skillSectionsAsResources(scope) {
|
|
|
13321
13420
|
};
|
|
13322
13421
|
}
|
|
13323
13422
|
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
|
|
13324
|
-
var
|
|
13325
|
-
"../../packages/core/dist/chunk-
|
|
13423
|
+
var init_chunk_AGHRRR4N = __esm({
|
|
13424
|
+
"../../packages/core/dist/chunk-AGHRRR4N.js"() {
|
|
13326
13425
|
"use strict";
|
|
13327
|
-
|
|
13426
|
+
init_chunk_PCBZHIA2();
|
|
13328
13427
|
init_chunk_IAAIVRFJ();
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13428
|
+
init_chunk_BA7WE5YR();
|
|
13429
|
+
init_chunk_K5ILL3RT();
|
|
13430
|
+
init_chunk_F4M7M4E5();
|
|
13332
13431
|
init_chunk_LBDH7LCG();
|
|
13333
13432
|
init_chunk_4LXDRTO4();
|
|
13334
13433
|
init_chunk_ETFW6QY3();
|
|
13335
13434
|
init_chunk_AMG6HKUQ();
|
|
13336
13435
|
init_chunk_5BOYRUX2();
|
|
13337
13436
|
init_chunk_WEXVYJ5H();
|
|
13338
|
-
init_chunk_C2UEA2KW();
|
|
13339
13437
|
init_chunk_S4VDZ7PZ();
|
|
13340
|
-
|
|
13438
|
+
init_chunk_C2UEA2KW();
|
|
13439
|
+
init_chunk_NHUH5GJ3();
|
|
13341
13440
|
init_zod();
|
|
13342
13441
|
MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
|
|
13343
13442
|
MAX_EVAL_ATTACHMENT_ENCODED_BYTES = MAX_10MB_BASE64_ENCODED_BYTES;
|
|
@@ -14136,57 +14235,154 @@ var init_chunk_ZLJP22IA = __esm({
|
|
|
14136
14235
|
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: "Only a YouTube video URL is accepted" });
|
|
14137
14236
|
return external_exports.NEVER;
|
|
14138
14237
|
});
|
|
14139
|
-
communityLessonLinkSchema = external_exports.object({
|
|
14140
|
-
title: communityCourseTitleSchema,
|
|
14141
|
-
url: external_exports.string().trim().max(COMMUNITY_LESSON_URL_MAX_LENGTH).url().refine((url) => /^https?:\/\//i.test(url), "must be an http or https URL")
|
|
14142
|
-
}).strict();
|
|
14143
|
-
communityLessonLinksSchema = external_exports.array(communityLessonLinkSchema).max(COMMUNITY_LESSON_LINKS_MAX);
|
|
14144
|
-
communityLessonBodySchema = external_exports.string().max(COMMUNITY_LESSON_BODY_MAX_LENGTH);
|
|
14145
|
-
communityCourseCreateBody = external_exports.object({ title: communityCourseTitleSchema, description: communityCourseDescriptionSchema.optional(), client_id: uuidSchema.optional() }).strict();
|
|
14146
|
-
communityCourseUpdateBody = external_exports.object({
|
|
14147
|
-
title: communityCourseTitleSchema.optional(),
|
|
14148
|
-
description: communityCourseDescriptionSchema.optional(),
|
|
14149
|
-
position: communityCoursePositionSchema.optional(),
|
|
14150
|
-
published: external_exports.boolean().optional()
|
|
14151
|
-
}).strict().refine((b) => Object.values(b).some((value) => value !== void 0), "nothing to change");
|
|
14152
|
-
communityModuleCreateBody = external_exports.object({ title: communityCourseTitleSchema, client_id: uuidSchema.optional() }).strict();
|
|
14153
|
-
communityModuleUpdateBody = external_exports.object({ title: communityCourseTitleSchema.optional(), position: communityCoursePositionSchema.optional() }).strict().refine((b) => b.title !== void 0 || b.position !== void 0, "nothing to change");
|
|
14154
|
-
communityLessonCreateBody = external_exports.object({
|
|
14155
|
-
module_id: uuidSchema,
|
|
14156
|
-
title: communityCourseTitleSchema,
|
|
14157
|
-
video_url: communityLessonVideoUrlSchema.nullable().optional(),
|
|
14158
|
-
body: communityLessonBodySchema.optional(),
|
|
14159
|
-
links: communityLessonLinksSchema.optional(),
|
|
14160
|
-
room_id: uuidSchema.nullable().optional(),
|
|
14161
|
-
requires_paid_plan: external_exports.boolean().optional(),
|
|
14162
|
-
published: external_exports.boolean().optional(),
|
|
14163
|
-
client_id: uuidSchema.optional()
|
|
14164
|
-
}).strict();
|
|
14165
|
-
communityLessonUpdateBody = external_exports.object({
|
|
14166
|
-
module_id: uuidSchema.optional(),
|
|
14167
|
-
title: communityCourseTitleSchema.optional(),
|
|
14168
|
-
video_url: communityLessonVideoUrlSchema.nullable().optional(),
|
|
14169
|
-
body: communityLessonBodySchema.optional(),
|
|
14170
|
-
links: communityLessonLinksSchema.optional(),
|
|
14171
|
-
room_id: uuidSchema.nullable().optional(),
|
|
14172
|
-
requires_paid_plan: external_exports.boolean().optional(),
|
|
14173
|
-
position: communityCoursePositionSchema.optional(),
|
|
14174
|
-
published: external_exports.boolean().optional()
|
|
14175
|
-
}).strict().refine((b) => Object.values(b).some((value) => value !== void 0), "nothing to change");
|
|
14176
|
-
}
|
|
14177
|
-
});
|
|
14178
|
-
|
|
14179
|
-
// ../../packages/core/dist/chunk-
|
|
14180
|
-
var
|
|
14181
|
-
var
|
|
14182
|
-
"../../packages/core/dist/chunk-
|
|
14183
|
-
"use strict";
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14238
|
+
communityLessonLinkSchema = external_exports.object({
|
|
14239
|
+
title: communityCourseTitleSchema,
|
|
14240
|
+
url: external_exports.string().trim().max(COMMUNITY_LESSON_URL_MAX_LENGTH).url().refine((url) => /^https?:\/\//i.test(url), "must be an http or https URL")
|
|
14241
|
+
}).strict();
|
|
14242
|
+
communityLessonLinksSchema = external_exports.array(communityLessonLinkSchema).max(COMMUNITY_LESSON_LINKS_MAX);
|
|
14243
|
+
communityLessonBodySchema = external_exports.string().max(COMMUNITY_LESSON_BODY_MAX_LENGTH);
|
|
14244
|
+
communityCourseCreateBody = external_exports.object({ title: communityCourseTitleSchema, description: communityCourseDescriptionSchema.optional(), client_id: uuidSchema.optional() }).strict();
|
|
14245
|
+
communityCourseUpdateBody = external_exports.object({
|
|
14246
|
+
title: communityCourseTitleSchema.optional(),
|
|
14247
|
+
description: communityCourseDescriptionSchema.optional(),
|
|
14248
|
+
position: communityCoursePositionSchema.optional(),
|
|
14249
|
+
published: external_exports.boolean().optional()
|
|
14250
|
+
}).strict().refine((b) => Object.values(b).some((value) => value !== void 0), "nothing to change");
|
|
14251
|
+
communityModuleCreateBody = external_exports.object({ title: communityCourseTitleSchema, client_id: uuidSchema.optional() }).strict();
|
|
14252
|
+
communityModuleUpdateBody = external_exports.object({ title: communityCourseTitleSchema.optional(), position: communityCoursePositionSchema.optional() }).strict().refine((b) => b.title !== void 0 || b.position !== void 0, "nothing to change");
|
|
14253
|
+
communityLessonCreateBody = external_exports.object({
|
|
14254
|
+
module_id: uuidSchema,
|
|
14255
|
+
title: communityCourseTitleSchema,
|
|
14256
|
+
video_url: communityLessonVideoUrlSchema.nullable().optional(),
|
|
14257
|
+
body: communityLessonBodySchema.optional(),
|
|
14258
|
+
links: communityLessonLinksSchema.optional(),
|
|
14259
|
+
room_id: uuidSchema.nullable().optional(),
|
|
14260
|
+
requires_paid_plan: external_exports.boolean().optional(),
|
|
14261
|
+
published: external_exports.boolean().optional(),
|
|
14262
|
+
client_id: uuidSchema.optional()
|
|
14263
|
+
}).strict();
|
|
14264
|
+
communityLessonUpdateBody = external_exports.object({
|
|
14265
|
+
module_id: uuidSchema.optional(),
|
|
14266
|
+
title: communityCourseTitleSchema.optional(),
|
|
14267
|
+
video_url: communityLessonVideoUrlSchema.nullable().optional(),
|
|
14268
|
+
body: communityLessonBodySchema.optional(),
|
|
14269
|
+
links: communityLessonLinksSchema.optional(),
|
|
14270
|
+
room_id: uuidSchema.nullable().optional(),
|
|
14271
|
+
requires_paid_plan: external_exports.boolean().optional(),
|
|
14272
|
+
position: communityCoursePositionSchema.optional(),
|
|
14273
|
+
published: external_exports.boolean().optional()
|
|
14274
|
+
}).strict().refine((b) => Object.values(b).some((value) => value !== void 0), "nothing to change");
|
|
14275
|
+
}
|
|
14276
|
+
});
|
|
14277
|
+
|
|
14278
|
+
// ../../packages/core/dist/chunk-2PZIF56U.js
|
|
14279
|
+
var analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlTable, analyticsSqlSchemaQuery;
|
|
14280
|
+
var init_chunk_2PZIF56U = __esm({
|
|
14281
|
+
"../../packages/core/dist/chunk-2PZIF56U.js"() {
|
|
14282
|
+
"use strict";
|
|
14283
|
+
init_zod();
|
|
14284
|
+
analyticsHubIdParam = external_exports.object({
|
|
14285
|
+
hubId: external_exports.string().uuid()
|
|
14286
|
+
});
|
|
14287
|
+
analyticsVariableIdParam = external_exports.object({
|
|
14288
|
+
variableId: external_exports.string().uuid()
|
|
14289
|
+
});
|
|
14290
|
+
updateVariablePinBody = external_exports.object({
|
|
14291
|
+
pin: external_exports.union([external_exports.boolean(), external_exports.string()])
|
|
14292
|
+
});
|
|
14293
|
+
updateAnalyticsViewBody = external_exports.object({
|
|
14294
|
+
// 64 covers UUIDs (36) and the `sys:{name}` synthetic IDs for system variables.
|
|
14295
|
+
selected_variable_ids: external_exports.array(external_exports.string().min(1).max(64)).max(200)
|
|
14296
|
+
});
|
|
14297
|
+
NUMERIC_FILTER_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
|
|
14298
|
+
TEXT_FILTER_OPS = ["equals", "not_equals", "contains", "not_contains", "starts_with", "ends_with"];
|
|
14299
|
+
CATEGORICAL_FILTER_OPS = ["is", "is_not", "in", "not_in"];
|
|
14300
|
+
VARIABLE_FILTER_OPS = [
|
|
14301
|
+
...NUMERIC_FILTER_OPS,
|
|
14302
|
+
...TEXT_FILTER_OPS,
|
|
14303
|
+
...CATEGORICAL_FILTER_OPS
|
|
14304
|
+
];
|
|
14305
|
+
STRUCTURED_QUERY_OPS = ["eq", "neq", "gt", "gte", "lt", "lte", "in", "not_in", "like"];
|
|
14306
|
+
STRUCTURED_QUERY_AGGREGATIONS = ["avg", "sum", "min", "max", "count", "quantile", "stddevPop", "corr", "uniq"];
|
|
14307
|
+
filterValueSchema = external_exports.object({
|
|
14308
|
+
variable_id: external_exports.string(),
|
|
14309
|
+
filter_type: external_exports.enum(VARIABLE_FILTER_OPS),
|
|
14310
|
+
filter_value: external_exports.union([external_exports.string(), external_exports.number()])
|
|
14311
|
+
});
|
|
14312
|
+
conversationsBody = external_exports.object({
|
|
14313
|
+
hub_id: external_exports.string().uuid(),
|
|
14314
|
+
time_interval: external_exports.object({
|
|
14315
|
+
start: external_exports.string().optional(),
|
|
14316
|
+
end: external_exports.string().optional()
|
|
14317
|
+
}).optional(),
|
|
14318
|
+
filters: external_exports.array(filterValueSchema).optional(),
|
|
14319
|
+
limit: external_exports.number().int().positive().max(500).default(50),
|
|
14320
|
+
offset: external_exports.number().int().min(0).default(0)
|
|
14321
|
+
});
|
|
14322
|
+
analyticsConversationIdParam = external_exports.object({
|
|
14323
|
+
conversationId: external_exports.string().uuid()
|
|
14324
|
+
});
|
|
14325
|
+
messagesQuery = external_exports.object({
|
|
14326
|
+
hub_id: external_exports.string().uuid(),
|
|
14327
|
+
limit: external_exports.string().regex(/^\d+$/).optional(),
|
|
14328
|
+
offset: external_exports.string().regex(/^\d+$/).optional()
|
|
14329
|
+
});
|
|
14330
|
+
conversationDetailDataQuery = external_exports.object({
|
|
14331
|
+
hub_id: external_exports.string().uuid()
|
|
14332
|
+
});
|
|
14333
|
+
analyticsDataBody = external_exports.object({
|
|
14334
|
+
hub_id: external_exports.string().uuid(),
|
|
14335
|
+
periodicity: external_exports.enum(["daily", "weekly", "monthly", "yearly"]),
|
|
14336
|
+
time_interval: external_exports.object({
|
|
14337
|
+
start: external_exports.string(),
|
|
14338
|
+
end: external_exports.string()
|
|
14339
|
+
}),
|
|
14340
|
+
trend_analysis: external_exports.boolean(),
|
|
14341
|
+
filters: external_exports.array(filterValueSchema).optional(),
|
|
14342
|
+
selected_variables: external_exports.array(external_exports.string()),
|
|
14343
|
+
include_summary: external_exports.boolean().optional(),
|
|
14344
|
+
include_variables: external_exports.boolean().optional(),
|
|
14345
|
+
variable_origin: external_exports.enum(["agent", "system", "annotation"]).optional(),
|
|
14346
|
+
variable_category: external_exports.string().optional(),
|
|
14347
|
+
variables_only: external_exports.boolean().optional()
|
|
14348
|
+
});
|
|
14349
|
+
structuredQueryBody = external_exports.object({
|
|
14350
|
+
hub_id: external_exports.string().uuid(),
|
|
14351
|
+
metrics: external_exports.array(external_exports.object({
|
|
14352
|
+
column: external_exports.string(),
|
|
14353
|
+
aggregation: external_exports.enum(STRUCTURED_QUERY_AGGREGATIONS),
|
|
14354
|
+
alias: external_exports.string().optional(),
|
|
14355
|
+
corr_with: external_exports.string().optional(),
|
|
14356
|
+
quantile_level: external_exports.number().min(0).max(1).optional()
|
|
14357
|
+
})).min(1),
|
|
14358
|
+
group_by: external_exports.array(external_exports.string()).optional(),
|
|
14359
|
+
order_by: external_exports.array(external_exports.object({
|
|
14360
|
+
column: external_exports.string(),
|
|
14361
|
+
direction: external_exports.enum(["asc", "desc"]).optional()
|
|
14362
|
+
})).optional(),
|
|
14363
|
+
filters: external_exports.array(external_exports.object({
|
|
14364
|
+
column: external_exports.string(),
|
|
14365
|
+
operator: external_exports.enum(STRUCTURED_QUERY_OPS),
|
|
14366
|
+
value: external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])
|
|
14367
|
+
})).optional(),
|
|
14368
|
+
time_range: external_exports.object({
|
|
14369
|
+
start: external_exports.string(),
|
|
14370
|
+
end: external_exports.string()
|
|
14371
|
+
}).optional(),
|
|
14372
|
+
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
14373
|
+
});
|
|
14374
|
+
analyticsSqlBody = external_exports.object({
|
|
14375
|
+
hub_id: external_exports.string().uuid(),
|
|
14376
|
+
// Hard size cap before the validator runs — keeps lex/parse work bounded.
|
|
14377
|
+
sql: external_exports.string().min(1).max(8e3),
|
|
14378
|
+
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
14379
|
+
});
|
|
14380
|
+
analyticsSqlTable = external_exports.enum(["conversation", "message"]);
|
|
14381
|
+
analyticsSqlSchemaQuery = external_exports.object({
|
|
14382
|
+
hub_id: external_exports.string().uuid(),
|
|
14383
|
+
// Defaulted so a client that predates the message table keeps its old response.
|
|
14384
|
+
table: analyticsSqlTable.default("conversation")
|
|
14385
|
+
});
|
|
14190
14386
|
}
|
|
14191
14387
|
});
|
|
14192
14388
|
|
|
@@ -14324,17 +14520,17 @@ var init_chunk_LQY2OCQL = __esm({
|
|
|
14324
14520
|
}
|
|
14325
14521
|
});
|
|
14326
14522
|
|
|
14327
|
-
// ../../packages/core/dist/chunk-
|
|
14523
|
+
// ../../packages/core/dist/chunk-S7O4G2VH.js
|
|
14328
14524
|
var AUTOMATION_TRIGGER_TYPES, AUTOMATION_EVENT_TYPES, AUTOMATION_TARGET_TYPES, AUTOMATION_ACTION_TYPES, AUTOMATION_CHANNEL_TYPES, AUTOMATION_PURPOSES, AUTOMATION_NAME_MAX, AUTOMATION_DESCRIPTION_MAX, AUTOMATION_INSTRUCTIONS_MAX, AUTOMATION_TEXT_MAX, AUTOMATION_CRON_MAX, AUTOMATION_WEBHOOK_AUTHS, AUTOMATION_WEBHOOK_HEADERS, AUTOMATION_WEBHOOK_BODY_MAX_BYTES, AUTOMATION_WEBHOOK_HEADER_NAME_MAX, WEBHOOK_RESERVED_HEADERS, automationTriggerSchema, automationTargetSchema, automationActionSchema, automationGateSchema, automationName, automationDescription, automationIdParam, automationHubQuery, automationWebhookParams, AUTOMATION_RUNS_PAGE_MAX, listAutomationRunsQuery, createAutomationBody, updateAutomationBody, AUTOMATION_ALERT_CATEGORIES, AUTOMATION_BLOCKED_ALERT_CATEGORY, automationEventSubscriberParam;
|
|
14329
|
-
var
|
|
14330
|
-
"../../packages/core/dist/chunk-
|
|
14525
|
+
var init_chunk_S7O4G2VH = __esm({
|
|
14526
|
+
"../../packages/core/dist/chunk-S7O4G2VH.js"() {
|
|
14331
14527
|
"use strict";
|
|
14332
14528
|
init_chunk_LQY2OCQL();
|
|
14333
|
-
|
|
14529
|
+
init_chunk_F4M7M4E5();
|
|
14334
14530
|
init_chunk_3HSB6J4J();
|
|
14335
14531
|
init_chunk_5XEJSR22();
|
|
14532
|
+
init_chunk_NHUH5GJ3();
|
|
14336
14533
|
init_chunk_PTYXZZTE();
|
|
14337
|
-
init_chunk_T7KQKDET();
|
|
14338
14534
|
init_zod();
|
|
14339
14535
|
AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
|
|
14340
14536
|
AUTOMATION_EVENT_TYPES = ["conversation.flagged", "conversation.closed"];
|
|
@@ -15118,117 +15314,6 @@ var init_chunk_XEO6FIPG = __esm({
|
|
|
15118
15314
|
}
|
|
15119
15315
|
});
|
|
15120
15316
|
|
|
15121
|
-
// ../../packages/core/dist/chunk-2PZIF56U.js
|
|
15122
|
-
var analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlTable, analyticsSqlSchemaQuery;
|
|
15123
|
-
var init_chunk_2PZIF56U = __esm({
|
|
15124
|
-
"../../packages/core/dist/chunk-2PZIF56U.js"() {
|
|
15125
|
-
"use strict";
|
|
15126
|
-
init_zod();
|
|
15127
|
-
analyticsHubIdParam = external_exports.object({
|
|
15128
|
-
hubId: external_exports.string().uuid()
|
|
15129
|
-
});
|
|
15130
|
-
analyticsVariableIdParam = external_exports.object({
|
|
15131
|
-
variableId: external_exports.string().uuid()
|
|
15132
|
-
});
|
|
15133
|
-
updateVariablePinBody = external_exports.object({
|
|
15134
|
-
pin: external_exports.union([external_exports.boolean(), external_exports.string()])
|
|
15135
|
-
});
|
|
15136
|
-
updateAnalyticsViewBody = external_exports.object({
|
|
15137
|
-
// 64 covers UUIDs (36) and the `sys:{name}` synthetic IDs for system variables.
|
|
15138
|
-
selected_variable_ids: external_exports.array(external_exports.string().min(1).max(64)).max(200)
|
|
15139
|
-
});
|
|
15140
|
-
NUMERIC_FILTER_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
|
|
15141
|
-
TEXT_FILTER_OPS = ["equals", "not_equals", "contains", "not_contains", "starts_with", "ends_with"];
|
|
15142
|
-
CATEGORICAL_FILTER_OPS = ["is", "is_not", "in", "not_in"];
|
|
15143
|
-
VARIABLE_FILTER_OPS = [
|
|
15144
|
-
...NUMERIC_FILTER_OPS,
|
|
15145
|
-
...TEXT_FILTER_OPS,
|
|
15146
|
-
...CATEGORICAL_FILTER_OPS
|
|
15147
|
-
];
|
|
15148
|
-
STRUCTURED_QUERY_OPS = ["eq", "neq", "gt", "gte", "lt", "lte", "in", "not_in", "like"];
|
|
15149
|
-
STRUCTURED_QUERY_AGGREGATIONS = ["avg", "sum", "min", "max", "count", "quantile", "stddevPop", "corr", "uniq"];
|
|
15150
|
-
filterValueSchema = external_exports.object({
|
|
15151
|
-
variable_id: external_exports.string(),
|
|
15152
|
-
filter_type: external_exports.enum(VARIABLE_FILTER_OPS),
|
|
15153
|
-
filter_value: external_exports.union([external_exports.string(), external_exports.number()])
|
|
15154
|
-
});
|
|
15155
|
-
conversationsBody = external_exports.object({
|
|
15156
|
-
hub_id: external_exports.string().uuid(),
|
|
15157
|
-
time_interval: external_exports.object({
|
|
15158
|
-
start: external_exports.string().optional(),
|
|
15159
|
-
end: external_exports.string().optional()
|
|
15160
|
-
}).optional(),
|
|
15161
|
-
filters: external_exports.array(filterValueSchema).optional(),
|
|
15162
|
-
limit: external_exports.number().int().positive().max(500).default(50),
|
|
15163
|
-
offset: external_exports.number().int().min(0).default(0)
|
|
15164
|
-
});
|
|
15165
|
-
analyticsConversationIdParam = external_exports.object({
|
|
15166
|
-
conversationId: external_exports.string().uuid()
|
|
15167
|
-
});
|
|
15168
|
-
messagesQuery = external_exports.object({
|
|
15169
|
-
hub_id: external_exports.string().uuid(),
|
|
15170
|
-
limit: external_exports.string().regex(/^\d+$/).optional(),
|
|
15171
|
-
offset: external_exports.string().regex(/^\d+$/).optional()
|
|
15172
|
-
});
|
|
15173
|
-
conversationDetailDataQuery = external_exports.object({
|
|
15174
|
-
hub_id: external_exports.string().uuid()
|
|
15175
|
-
});
|
|
15176
|
-
analyticsDataBody = external_exports.object({
|
|
15177
|
-
hub_id: external_exports.string().uuid(),
|
|
15178
|
-
periodicity: external_exports.enum(["daily", "weekly", "monthly", "yearly"]),
|
|
15179
|
-
time_interval: external_exports.object({
|
|
15180
|
-
start: external_exports.string(),
|
|
15181
|
-
end: external_exports.string()
|
|
15182
|
-
}),
|
|
15183
|
-
trend_analysis: external_exports.boolean(),
|
|
15184
|
-
filters: external_exports.array(filterValueSchema).optional(),
|
|
15185
|
-
selected_variables: external_exports.array(external_exports.string()),
|
|
15186
|
-
include_summary: external_exports.boolean().optional(),
|
|
15187
|
-
include_variables: external_exports.boolean().optional(),
|
|
15188
|
-
variable_origin: external_exports.enum(["agent", "system", "annotation"]).optional(),
|
|
15189
|
-
variable_category: external_exports.string().optional(),
|
|
15190
|
-
variables_only: external_exports.boolean().optional()
|
|
15191
|
-
});
|
|
15192
|
-
structuredQueryBody = external_exports.object({
|
|
15193
|
-
hub_id: external_exports.string().uuid(),
|
|
15194
|
-
metrics: external_exports.array(external_exports.object({
|
|
15195
|
-
column: external_exports.string(),
|
|
15196
|
-
aggregation: external_exports.enum(STRUCTURED_QUERY_AGGREGATIONS),
|
|
15197
|
-
alias: external_exports.string().optional(),
|
|
15198
|
-
corr_with: external_exports.string().optional(),
|
|
15199
|
-
quantile_level: external_exports.number().min(0).max(1).optional()
|
|
15200
|
-
})).min(1),
|
|
15201
|
-
group_by: external_exports.array(external_exports.string()).optional(),
|
|
15202
|
-
order_by: external_exports.array(external_exports.object({
|
|
15203
|
-
column: external_exports.string(),
|
|
15204
|
-
direction: external_exports.enum(["asc", "desc"]).optional()
|
|
15205
|
-
})).optional(),
|
|
15206
|
-
filters: external_exports.array(external_exports.object({
|
|
15207
|
-
column: external_exports.string(),
|
|
15208
|
-
operator: external_exports.enum(STRUCTURED_QUERY_OPS),
|
|
15209
|
-
value: external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])
|
|
15210
|
-
})).optional(),
|
|
15211
|
-
time_range: external_exports.object({
|
|
15212
|
-
start: external_exports.string(),
|
|
15213
|
-
end: external_exports.string()
|
|
15214
|
-
}).optional(),
|
|
15215
|
-
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
15216
|
-
});
|
|
15217
|
-
analyticsSqlBody = external_exports.object({
|
|
15218
|
-
hub_id: external_exports.string().uuid(),
|
|
15219
|
-
// Hard size cap before the validator runs — keeps lex/parse work bounded.
|
|
15220
|
-
sql: external_exports.string().min(1).max(8e3),
|
|
15221
|
-
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
15222
|
-
});
|
|
15223
|
-
analyticsSqlTable = external_exports.enum(["conversation", "message"]);
|
|
15224
|
-
analyticsSqlSchemaQuery = external_exports.object({
|
|
15225
|
-
hub_id: external_exports.string().uuid(),
|
|
15226
|
-
// Defaulted so a client that predates the message table keeps its old response.
|
|
15227
|
-
table: analyticsSqlTable.default("conversation")
|
|
15228
|
-
});
|
|
15229
|
-
}
|
|
15230
|
-
});
|
|
15231
|
-
|
|
15232
15317
|
// ../../packages/core/dist/chunk-SOJMWM63.js
|
|
15233
15318
|
var init_chunk_SOJMWM63 = __esm({
|
|
15234
15319
|
"../../packages/core/dist/chunk-SOJMWM63.js"() {
|
|
@@ -15328,10 +15413,10 @@ var init_chunk_WFQDSQJK = __esm({
|
|
|
15328
15413
|
}
|
|
15329
15414
|
});
|
|
15330
15415
|
|
|
15331
|
-
// ../../packages/core/dist/chunk-
|
|
15416
|
+
// ../../packages/core/dist/chunk-2TRCUU5E.js
|
|
15332
15417
|
var APP_ERROR_BRAND, AppError, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_CONTENT_BRAND, LlmProviderContentError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError;
|
|
15333
|
-
var
|
|
15334
|
-
"../../packages/core/dist/chunk-
|
|
15418
|
+
var init_chunk_2TRCUU5E = __esm({
|
|
15419
|
+
"../../packages/core/dist/chunk-2TRCUU5E.js"() {
|
|
15335
15420
|
"use strict";
|
|
15336
15421
|
init_chunk_WFQDSQJK();
|
|
15337
15422
|
APP_ERROR_BRAND = /* @__PURE__ */ Symbol.for("wayai.AppError");
|
|
@@ -15444,71 +15529,69 @@ var init_chunk_Y66JOKZI = __esm({
|
|
|
15444
15529
|
var init_contracts = __esm({
|
|
15445
15530
|
"../../packages/core/dist/contracts/index.js"() {
|
|
15446
15531
|
"use strict";
|
|
15532
|
+
init_chunk_YVY2TZK2();
|
|
15447
15533
|
init_chunk_VXEAR36B();
|
|
15448
15534
|
init_chunk_RACEDHG6();
|
|
15449
15535
|
init_chunk_Q7KIQHAZ();
|
|
15536
|
+
init_chunk_HA7CRZMX();
|
|
15450
15537
|
init_chunk_IPXBFWUU();
|
|
15451
15538
|
init_chunk_NKLVUTFO();
|
|
15452
15539
|
init_chunk_ILW3RFGU();
|
|
15453
|
-
|
|
15540
|
+
init_chunk_MF2VVXBR();
|
|
15541
|
+
init_chunk_ZC6YGHNX();
|
|
15454
15542
|
init_chunk_ACKF2MVU();
|
|
15455
15543
|
init_chunk_K2UY4M4E();
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
init_chunk_OOPUGPJU();
|
|
15544
|
+
init_chunk_DAPIEZDP();
|
|
15545
|
+
init_chunk_3FYOP6GU();
|
|
15459
15546
|
init_chunk_IPDOHAZ5();
|
|
15460
15547
|
init_chunk_GPM7PE44();
|
|
15461
15548
|
init_chunk_VEERWOZ6();
|
|
15462
|
-
|
|
15549
|
+
init_chunk_FPSDNS2E();
|
|
15463
15550
|
init_chunk_ZXK6N2HN();
|
|
15464
15551
|
init_chunk_Y7CFCYX4();
|
|
15465
15552
|
init_chunk_5DGHIY7L();
|
|
15466
|
-
init_chunk_N2PRZTCL();
|
|
15467
15553
|
init_chunk_SY6PLCPK();
|
|
15468
15554
|
init_chunk_YUZFHVB2();
|
|
15469
15555
|
init_chunk_I3O2RACG();
|
|
15470
15556
|
init_chunk_34LE6P7E();
|
|
15471
|
-
init_chunk_FPSDNS2E();
|
|
15472
15557
|
init_chunk_LKBSHANA();
|
|
15473
|
-
|
|
15558
|
+
init_chunk_Q6AXOQH6();
|
|
15474
15559
|
init_chunk_C4HEZ7ZI();
|
|
15475
15560
|
init_chunk_IR2NOSI3();
|
|
15476
15561
|
init_chunk_OPETF4GS();
|
|
15562
|
+
init_chunk_YULHXJ5M();
|
|
15477
15563
|
init_chunk_V4FRPRH5();
|
|
15478
15564
|
init_chunk_LWMLR2WI();
|
|
15479
15565
|
init_chunk_ACGAI25T();
|
|
15480
15566
|
init_chunk_MH4O3YEX();
|
|
15481
|
-
|
|
15567
|
+
init_chunk_3R72QIWR();
|
|
15482
15568
|
init_chunk_KSTYTQ7I();
|
|
15569
|
+
init_chunk_E4DIIOOE();
|
|
15483
15570
|
init_chunk_7CYHPF35();
|
|
15484
15571
|
init_chunk_BPCNB5RT();
|
|
15485
|
-
|
|
15486
|
-
|
|
15572
|
+
init_chunk_AGHRRR4N();
|
|
15573
|
+
init_chunk_PCBZHIA2();
|
|
15487
15574
|
init_chunk_IAAIVRFJ();
|
|
15488
|
-
|
|
15575
|
+
init_chunk_BA7WE5YR();
|
|
15489
15576
|
init_chunk_C2ID2BF7();
|
|
15490
|
-
|
|
15577
|
+
init_chunk_K5ILL3RT();
|
|
15491
15578
|
init_chunk_JDJ4EUOL();
|
|
15492
15579
|
init_chunk_ZLJP22IA();
|
|
15493
15580
|
init_chunk_6IKFJ3GW();
|
|
15494
15581
|
init_chunk_6J742GLA();
|
|
15495
15582
|
init_chunk_ZVXO3XL6();
|
|
15496
|
-
|
|
15583
|
+
init_chunk_2PZIF56U();
|
|
15497
15584
|
init_chunk_UEJOG2Q7();
|
|
15498
15585
|
init_chunk_JO53JB35();
|
|
15499
|
-
|
|
15586
|
+
init_chunk_S7O4G2VH();
|
|
15500
15587
|
init_chunk_LQY2OCQL();
|
|
15501
|
-
|
|
15588
|
+
init_chunk_F4M7M4E5();
|
|
15502
15589
|
init_chunk_3HSB6J4J();
|
|
15503
15590
|
init_chunk_IG6QBZMA();
|
|
15504
15591
|
init_chunk_YWZFB34T();
|
|
15505
15592
|
init_chunk_PZPOUXJR();
|
|
15506
15593
|
init_chunk_LBDH7LCG();
|
|
15507
15594
|
init_chunk_4LXDRTO4();
|
|
15508
|
-
init_chunk_E4DIIOOE();
|
|
15509
|
-
init_chunk_ILGGO4PT();
|
|
15510
|
-
init_chunk_JJWKZHF3();
|
|
15511
|
-
init_chunk_RHGPANBN();
|
|
15512
15595
|
init_chunk_NVKU5PPQ();
|
|
15513
15596
|
init_chunk_XEO6FIPG();
|
|
15514
15597
|
init_chunk_FECLIZTY();
|
|
@@ -15519,27 +15602,28 @@ var init_contracts = __esm({
|
|
|
15519
15602
|
init_chunk_AMG6HKUQ();
|
|
15520
15603
|
init_chunk_5BOYRUX2();
|
|
15521
15604
|
init_chunk_OMPT4ZHR();
|
|
15522
|
-
|
|
15523
|
-
init_chunk_QAIUP34Y();
|
|
15605
|
+
init_chunk_3DCPJ6NB();
|
|
15524
15606
|
init_chunk_SOJMWM63();
|
|
15525
15607
|
init_chunk_WEXVYJ5H();
|
|
15526
|
-
|
|
15608
|
+
init_chunk_UEQSHGAY();
|
|
15527
15609
|
init_chunk_5XEJSR22();
|
|
15528
15610
|
init_chunk_IBL7FANV();
|
|
15529
|
-
init_chunk_5VL6LBFD();
|
|
15530
|
-
init_chunk_7FHLACC7();
|
|
15531
|
-
init_chunk_HZ6CADSY();
|
|
15532
|
-
init_chunk_MIWZOSPI();
|
|
15533
|
-
init_chunk_2ISUBJG7();
|
|
15534
|
-
init_chunk_C2UEA2KW();
|
|
15535
15611
|
init_chunk_S4VDZ7PZ();
|
|
15536
15612
|
init_chunk_LD6U3CDG();
|
|
15537
15613
|
init_chunk_CJ3L46X6();
|
|
15614
|
+
init_chunk_5VL6LBFD();
|
|
15615
|
+
init_chunk_HZ6CADSY();
|
|
15538
15616
|
init_chunk_6TSQ5HXC();
|
|
15617
|
+
init_chunk_2ISUBJG7();
|
|
15618
|
+
init_chunk_C2UEA2KW();
|
|
15619
|
+
init_chunk_NHUH5GJ3();
|
|
15620
|
+
init_chunk_E5FY4ADY();
|
|
15621
|
+
init_chunk_I63MXA2X();
|
|
15622
|
+
init_chunk_F3Z4V7VQ();
|
|
15623
|
+
init_chunk_MIWZOSPI();
|
|
15539
15624
|
init_chunk_PTYXZZTE();
|
|
15540
|
-
init_chunk_T7KQKDET();
|
|
15541
15625
|
init_chunk_L5F7ZOUJ();
|
|
15542
|
-
|
|
15626
|
+
init_chunk_2TRCUU5E();
|
|
15543
15627
|
init_chunk_WFQDSQJK();
|
|
15544
15628
|
}
|
|
15545
15629
|
});
|
|
@@ -15673,31 +15757,33 @@ var UUID_RE2, WAYAI_WORKSPACE_LAYOUT;
|
|
|
15673
15757
|
var init_dist = __esm({
|
|
15674
15758
|
"../../packages/core/dist/index.js"() {
|
|
15675
15759
|
"use strict";
|
|
15676
|
-
|
|
15760
|
+
init_chunk_3DCPJ6NB();
|
|
15677
15761
|
init_chunk_SOJMWM63();
|
|
15678
15762
|
init_chunk_WEXVYJ5H();
|
|
15679
|
-
|
|
15763
|
+
init_chunk_UEQSHGAY();
|
|
15680
15764
|
init_chunk_5XEJSR22();
|
|
15681
15765
|
init_chunk_IBL7FANV();
|
|
15766
|
+
init_chunk_S4VDZ7PZ();
|
|
15767
|
+
init_chunk_LD6U3CDG();
|
|
15768
|
+
init_chunk_CJ3L46X6();
|
|
15682
15769
|
init_chunk_R2F7OLXZ();
|
|
15683
15770
|
init_chunk_5VL6LBFD();
|
|
15684
|
-
init_chunk_7FHLACC7();
|
|
15685
15771
|
init_chunk_HZ6CADSY();
|
|
15686
|
-
|
|
15772
|
+
init_chunk_6TSQ5HXC();
|
|
15687
15773
|
init_chunk_ERFR7IRY();
|
|
15688
15774
|
init_chunk_2ISUBJG7();
|
|
15689
15775
|
init_chunk_FEOO3UPS();
|
|
15690
15776
|
init_chunk_RPGBR5IN();
|
|
15691
15777
|
init_chunk_C2UEA2KW();
|
|
15692
|
-
init_chunk_S4VDZ7PZ();
|
|
15693
|
-
init_chunk_LD6U3CDG();
|
|
15694
|
-
init_chunk_CJ3L46X6();
|
|
15695
|
-
init_chunk_6TSQ5HXC();
|
|
15696
|
-
init_chunk_PTYXZZTE();
|
|
15697
15778
|
init_chunk_BF4WRSOQ();
|
|
15698
|
-
|
|
15779
|
+
init_chunk_NHUH5GJ3();
|
|
15780
|
+
init_chunk_E5FY4ADY();
|
|
15781
|
+
init_chunk_I63MXA2X();
|
|
15782
|
+
init_chunk_F3Z4V7VQ();
|
|
15783
|
+
init_chunk_MIWZOSPI();
|
|
15784
|
+
init_chunk_PTYXZZTE();
|
|
15699
15785
|
init_chunk_L5F7ZOUJ();
|
|
15700
|
-
|
|
15786
|
+
init_chunk_2TRCUU5E();
|
|
15701
15787
|
init_chunk_WFQDSQJK();
|
|
15702
15788
|
UUID_RE2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
15703
15789
|
WAYAI_WORKSPACE_LAYOUT = {
|
|
@@ -20707,7 +20793,7 @@ var init_call_openings = __esm({
|
|
|
20707
20793
|
var init_pages = __esm({
|
|
20708
20794
|
"../../packages/core/dist/contracts/pages.js"() {
|
|
20709
20795
|
"use strict";
|
|
20710
|
-
|
|
20796
|
+
init_chunk_BA7WE5YR();
|
|
20711
20797
|
init_chunk_WEXVYJ5H();
|
|
20712
20798
|
init_chunk_HZ6CADSY();
|
|
20713
20799
|
}
|