@inf-monkeys-tech/monkeys 1.0.51 → 1.0.52
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/lib/contracts/file.d.ts +213 -0
- package/lib/contracts/file.d.ts.map +1 -0
- package/lib/contracts/file.js +135 -0
- package/lib/contracts/file.js.map +1 -0
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/esm/contracts/index.mjs +1069 -954
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +1069 -954
- package/lib/esm/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8342,12 +8342,113 @@ var DomainEventSchema = z9.object({
|
|
|
8342
8342
|
occurredAt: IsoDateTimeSchema
|
|
8343
8343
|
}).strict();
|
|
8344
8344
|
|
|
8345
|
+
// src/contracts/file.ts
|
|
8346
|
+
import { z as z10 } from "zod";
|
|
8347
|
+
var FilePurposeSchema = z10.string().trim().min(1).max(64).regex(/^[a-z0-9][a-z0-9-]*$/);
|
|
8348
|
+
var FileStatusSchema = z10.enum(["pending", "ready", "failed", "deleted"]);
|
|
8349
|
+
var FileVariantStatusSchema = z10.enum(["queued", "processing", "ready", "failed"]);
|
|
8350
|
+
var FileUsageSchema = z10.object({
|
|
8351
|
+
ownerType: ContractIdentifierSchema,
|
|
8352
|
+
ownerId: ContractIdentifierSchema,
|
|
8353
|
+
field: ContractIdentifierSchema.optional()
|
|
8354
|
+
}).strict();
|
|
8355
|
+
var FileReferenceSchema = z10.object({
|
|
8356
|
+
id: ContractIdentifierSchema.optional(),
|
|
8357
|
+
uri: z10.string().trim().min(1).optional(),
|
|
8358
|
+
thumbnailUri: z10.string().trim().min(1).optional(),
|
|
8359
|
+
mimeType: z10.string().trim().min(1).max(128).optional(),
|
|
8360
|
+
byteSize: z10.number().int().nonnegative().optional(),
|
|
8361
|
+
sha256: Sha256Schema.optional()
|
|
8362
|
+
}).strict().refine((value) => Boolean(value.id || value.uri), {
|
|
8363
|
+
message: "File reference requires id or uri"
|
|
8364
|
+
});
|
|
8365
|
+
var FileVariantSchema = z10.object({
|
|
8366
|
+
variantId: ContractIdentifierSchema,
|
|
8367
|
+
kind: z10.literal("thumbnail-512"),
|
|
8368
|
+
status: FileVariantStatusSchema,
|
|
8369
|
+
mimeType: z10.literal("image/webp"),
|
|
8370
|
+
byteSize: z10.number().int().nonnegative().optional(),
|
|
8371
|
+
width: z10.number().int().positive().optional(),
|
|
8372
|
+
height: z10.number().int().positive().optional(),
|
|
8373
|
+
uri: z10.string().trim().min(1).optional(),
|
|
8374
|
+
errorCode: ContractIdentifierSchema.optional()
|
|
8375
|
+
}).strict();
|
|
8376
|
+
var FileRecordSchema = z10.object({
|
|
8377
|
+
contract: z10.literal("FileRecord"),
|
|
8378
|
+
fileId: ContractIdentifierSchema,
|
|
8379
|
+
teamId: ContractIdentifierSchema,
|
|
8380
|
+
purpose: FilePurposeSchema,
|
|
8381
|
+
originalName: z10.string().trim().min(1).max(255),
|
|
8382
|
+
mimeType: z10.string().trim().min(1).max(128),
|
|
8383
|
+
byteSize: z10.number().int().nonnegative().optional(),
|
|
8384
|
+
sha256: Sha256Schema.optional(),
|
|
8385
|
+
status: FileStatusSchema,
|
|
8386
|
+
storage: z10.object({
|
|
8387
|
+
bucketId: ContractIdentifierSchema,
|
|
8388
|
+
objectKey: z10.string().trim().min(1).max(1024),
|
|
8389
|
+
canonicalUri: z10.string().trim().min(1),
|
|
8390
|
+
etag: z10.string().trim().min(1).optional()
|
|
8391
|
+
}).strict(),
|
|
8392
|
+
variants: z10.array(FileVariantSchema).default([]),
|
|
8393
|
+
createdAt: IsoDateTimeSchema,
|
|
8394
|
+
updatedAt: IsoDateTimeSchema
|
|
8395
|
+
}).strict().superRefine((value, context) => {
|
|
8396
|
+
if (value.storage.canonicalUri !== `file://${value.fileId}`) {
|
|
8397
|
+
context.addIssue({
|
|
8398
|
+
code: "custom",
|
|
8399
|
+
path: ["storage", "canonicalUri"],
|
|
8400
|
+
message: "Canonical file URI must match fileId"
|
|
8401
|
+
});
|
|
8402
|
+
}
|
|
8403
|
+
});
|
|
8404
|
+
var FileUploadCreateRequestSchema = z10.object({
|
|
8405
|
+
purpose: FilePurposeSchema,
|
|
8406
|
+
filename: z10.string().trim().min(1).max(255),
|
|
8407
|
+
mimeType: z10.string().trim().min(1).max(128),
|
|
8408
|
+
byteSize: z10.number().int().nonnegative().optional(),
|
|
8409
|
+
sha256: Sha256Schema.optional(),
|
|
8410
|
+
usage: FileUsageSchema.optional()
|
|
8411
|
+
}).strict();
|
|
8412
|
+
var FileUploadInstructionSchema = z10.object({
|
|
8413
|
+
url: z10.string().url(),
|
|
8414
|
+
method: z10.string().trim().min(1),
|
|
8415
|
+
headers: z10.record(z10.string(), z10.string()),
|
|
8416
|
+
expiresAt: IsoDateTimeSchema
|
|
8417
|
+
}).strict();
|
|
8418
|
+
var FileUploadCreateResponseSchema = z10.object({
|
|
8419
|
+
file: FileRecordSchema,
|
|
8420
|
+
upload: FileUploadInstructionSchema
|
|
8421
|
+
}).strict();
|
|
8422
|
+
var FileUploadCompleteRequestSchema = z10.object({
|
|
8423
|
+
byteSize: z10.number().int().nonnegative().optional(),
|
|
8424
|
+
sha256: Sha256Schema.optional(),
|
|
8425
|
+
etag: z10.string().trim().min(1).max(512).optional()
|
|
8426
|
+
}).strict();
|
|
8427
|
+
var ResolvedFileSchema = z10.object({
|
|
8428
|
+
fileId: ContractIdentifierSchema.optional(),
|
|
8429
|
+
status: FileStatusSchema.optional(),
|
|
8430
|
+
originalUri: z10.string().trim().min(1).optional(),
|
|
8431
|
+
thumbnailUri: z10.string().trim().min(1).optional(),
|
|
8432
|
+
mimeType: z10.string().trim().min(1).max(128).optional(),
|
|
8433
|
+
byteSize: z10.number().int().nonnegative().optional(),
|
|
8434
|
+
sha256: Sha256Schema.optional(),
|
|
8435
|
+
unresolved: z10.boolean().optional()
|
|
8436
|
+
}).strict();
|
|
8437
|
+
var FileResolveBatchRequestSchema = z10.object({
|
|
8438
|
+
references: z10.array(FileReferenceSchema).min(1).max(1e3),
|
|
8439
|
+
includeOriginal: z10.boolean().default(false),
|
|
8440
|
+
includeThumbnail: z10.boolean().default(true)
|
|
8441
|
+
}).strict();
|
|
8442
|
+
var FileResolveBatchResponseSchema = z10.object({
|
|
8443
|
+
items: z10.array(ResolvedFileSchema)
|
|
8444
|
+
}).strict();
|
|
8445
|
+
|
|
8345
8446
|
// src/contracts/menu.ts
|
|
8346
|
-
import { z as
|
|
8447
|
+
import { z as z12 } from "zod";
|
|
8347
8448
|
|
|
8348
8449
|
// src/contracts/page.ts
|
|
8349
|
-
import { z as
|
|
8350
|
-
var PageTypeSchema =
|
|
8450
|
+
import { z as z11 } from "zod";
|
|
8451
|
+
var PageTypeSchema = z11.enum([
|
|
8351
8452
|
"page",
|
|
8352
8453
|
"workspace",
|
|
8353
8454
|
"view",
|
|
@@ -8368,14 +8469,14 @@ var PageTypeSchema = z10.enum([
|
|
|
8368
8469
|
"global-design-board",
|
|
8369
8470
|
"iframe"
|
|
8370
8471
|
]);
|
|
8371
|
-
var PageVisibilitySchema =
|
|
8372
|
-
authenticated:
|
|
8373
|
-
permissionAllOf:
|
|
8374
|
-
permissionAnyOf:
|
|
8375
|
-
featureFlags:
|
|
8376
|
-
productContexts:
|
|
8377
|
-
}).strict();
|
|
8378
|
-
var PageRoutePathSchema =
|
|
8472
|
+
var PageVisibilitySchema = z11.object({
|
|
8473
|
+
authenticated: z11.boolean().default(true),
|
|
8474
|
+
permissionAllOf: z11.array(ContractIdentifierSchema).default([]),
|
|
8475
|
+
permissionAnyOf: z11.array(ContractIdentifierSchema).default([]),
|
|
8476
|
+
featureFlags: z11.array(ContractIdentifierSchema).default([]),
|
|
8477
|
+
productContexts: z11.array(z11.enum(["studio", "kernel"])).min(1)
|
|
8478
|
+
}).strict();
|
|
8479
|
+
var PageRoutePathSchema = z11.string().trim().regex(/^\/(?!\/)/, "Expected an application-relative route path.");
|
|
8379
8480
|
var requireCapabilityReference = (reference, path, context) => {
|
|
8380
8481
|
if (reference.kind !== "capability") {
|
|
8381
8482
|
context.addIssue({
|
|
@@ -8399,53 +8500,53 @@ var requireCapabilityReference = (reference, path, context) => {
|
|
|
8399
8500
|
});
|
|
8400
8501
|
}
|
|
8401
8502
|
};
|
|
8402
|
-
var PageDefinitionSchema =
|
|
8403
|
-
contract:
|
|
8503
|
+
var PageDefinitionSchema = z11.object({
|
|
8504
|
+
contract: z11.literal("PageDefinition"),
|
|
8404
8505
|
pageId: ContractIdentifierSchema,
|
|
8405
8506
|
ownerRepo: ContractIdentifierSchema,
|
|
8406
8507
|
title: LocalizedTextSchema,
|
|
8407
8508
|
pageType: PageTypeSchema,
|
|
8408
|
-
ownership:
|
|
8509
|
+
ownership: z11.object({
|
|
8409
8510
|
teamId: ContractIdentifierSchema.optional(),
|
|
8410
8511
|
creatorRef: EntityRefSchema.optional(),
|
|
8411
8512
|
studioId: ContractIdentifierSchema.optional(),
|
|
8412
|
-
builtIn:
|
|
8513
|
+
builtIn: z11.boolean()
|
|
8413
8514
|
}).strict(),
|
|
8414
|
-
record:
|
|
8415
|
-
createdTimestamp:
|
|
8416
|
-
updatedTimestamp:
|
|
8417
|
-
deleted:
|
|
8515
|
+
record: z11.object({
|
|
8516
|
+
createdTimestamp: z11.number().int().nonnegative().optional(),
|
|
8517
|
+
updatedTimestamp: z11.number().int().nonnegative().optional(),
|
|
8518
|
+
deleted: z11.boolean().default(false)
|
|
8418
8519
|
}).strict(),
|
|
8419
|
-
surface:
|
|
8520
|
+
surface: z11.enum(["page", "workspace", "view", "record", "action", "overlay", "agent"]),
|
|
8420
8521
|
routeId: ContractIdentifierSchema,
|
|
8421
8522
|
routePath: PageRoutePathSchema,
|
|
8422
8523
|
rendererKey: ContractIdentifierSchema,
|
|
8423
8524
|
capabilityRef: EntityRefSchema,
|
|
8424
|
-
capabilityRefs:
|
|
8525
|
+
capabilityRefs: z11.array(EntityRefSchema).default([]),
|
|
8425
8526
|
workflowRef: EntityRefSchema.optional(),
|
|
8426
|
-
binding:
|
|
8527
|
+
binding: z11.object({
|
|
8427
8528
|
sourceRef: ContractIdentifierSchema.optional(),
|
|
8428
8529
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
8429
8530
|
projectionRef: ContractIdentifierSchema.optional(),
|
|
8430
8531
|
stateRef: ContractIdentifierSchema.optional()
|
|
8431
8532
|
}).strict(),
|
|
8432
|
-
access:
|
|
8433
|
-
actions:
|
|
8533
|
+
access: z11.object({
|
|
8534
|
+
actions: z11.array(z11.enum(["read", "write", "execute", "manage-permissions"])).default([])
|
|
8434
8535
|
}).strict(),
|
|
8435
|
-
input:
|
|
8536
|
+
input: z11.object({
|
|
8436
8537
|
schemaRef: ContractIdentifierSchema
|
|
8437
8538
|
}).strict().optional(),
|
|
8438
|
-
rendererConfig:
|
|
8539
|
+
rendererConfig: z11.object({
|
|
8439
8540
|
schemaRef: ContractIdentifierSchema,
|
|
8440
8541
|
value: JsonObjectSchema
|
|
8441
8542
|
}).strict(),
|
|
8442
|
-
navigation:
|
|
8543
|
+
navigation: z11.object({
|
|
8443
8544
|
label: LocalizedTextSchema,
|
|
8444
8545
|
iconRef: ContractIdentifierSchema.optional(),
|
|
8445
8546
|
parentPageId: ContractIdentifierSchema.optional(),
|
|
8446
|
-
order:
|
|
8447
|
-
hidden:
|
|
8448
|
-
pinned:
|
|
8547
|
+
order: z11.number().int().optional(),
|
|
8548
|
+
hidden: z11.boolean().default(false),
|
|
8549
|
+
pinned: z11.boolean().default(false)
|
|
8449
8550
|
}).strict(),
|
|
8450
8551
|
visibility: PageVisibilitySchema
|
|
8451
8552
|
}).strict().superRefine((page, context) => {
|
|
@@ -8466,8 +8567,8 @@ var PageDefinitionSchema = z10.object({
|
|
|
8466
8567
|
});
|
|
8467
8568
|
if (page.workflowRef && page.workflowRef.kind !== "workflow") context.addIssue({ code: "custom", path: ["workflowRef", "kind"], message: "workflowRef must reference a workflow." });
|
|
8468
8569
|
});
|
|
8469
|
-
var PageRuntimeDescriptorSchema =
|
|
8470
|
-
contract:
|
|
8570
|
+
var PageRuntimeDescriptorSchema = z11.object({
|
|
8571
|
+
contract: z11.literal("PageRuntimeDescriptor"),
|
|
8471
8572
|
page: PageDefinitionSchema,
|
|
8472
8573
|
nodeId: ContractIdentifierSchema,
|
|
8473
8574
|
parentNodeId: ContractIdentifierSchema.optional(),
|
|
@@ -8475,54 +8576,54 @@ var PageRuntimeDescriptorSchema = z10.object({
|
|
|
8475
8576
|
semanticRef: ContractIdentifierSchema.optional(),
|
|
8476
8577
|
dataContextRef: ContractIdentifierSchema.optional(),
|
|
8477
8578
|
providerRef: EntityRefSchema.optional(),
|
|
8478
|
-
surface:
|
|
8579
|
+
surface: z11.object({
|
|
8479
8580
|
frameOwner: ContractIdentifierSchema,
|
|
8480
8581
|
tone: ContractIdentifierSchema.optional(),
|
|
8481
|
-
density:
|
|
8582
|
+
density: z11.enum(["compact", "default", "comfortable"]).default("default")
|
|
8482
8583
|
}).strict(),
|
|
8483
|
-
scroll:
|
|
8484
|
-
owner:
|
|
8485
|
-
axis:
|
|
8584
|
+
scroll: z11.object({
|
|
8585
|
+
owner: z11.enum(["page", "surface", "provider"]),
|
|
8586
|
+
axis: z11.enum(["x", "y", "both", "none"]),
|
|
8486
8587
|
restoreKey: ContractIdentifierSchema.optional(),
|
|
8487
|
-
virtualized:
|
|
8588
|
+
virtualized: z11.boolean().default(false)
|
|
8488
8589
|
}).strict(),
|
|
8489
|
-
activation:
|
|
8490
|
-
lifecycle:
|
|
8491
|
-
mountPolicy:
|
|
8492
|
-
queryPolicy:
|
|
8493
|
-
deepLink:
|
|
8494
|
-
focusReturn:
|
|
8590
|
+
activation: z11.enum(["navigate", "select", "drawer", "modal", "fullscreen"]),
|
|
8591
|
+
lifecycle: z11.object({
|
|
8592
|
+
mountPolicy: z11.enum(["always", "when-visible", "when-active"]),
|
|
8593
|
+
queryPolicy: z11.enum(["always", "when-visible", "when-active", "manual"]),
|
|
8594
|
+
deepLink: z11.boolean(),
|
|
8595
|
+
focusReturn: z11.boolean()
|
|
8495
8596
|
}).strict()
|
|
8496
8597
|
}).strict();
|
|
8497
|
-
var PageRouteProjectionSchema =
|
|
8598
|
+
var PageRouteProjectionSchema = z11.object({
|
|
8498
8599
|
pageId: ContractIdentifierSchema,
|
|
8499
8600
|
routeId: ContractIdentifierSchema,
|
|
8500
8601
|
path: PageRoutePathSchema
|
|
8501
8602
|
}).strict();
|
|
8502
|
-
var PageNavigationProjectionSchema =
|
|
8603
|
+
var PageNavigationProjectionSchema = z11.object({
|
|
8503
8604
|
pageId: ContractIdentifierSchema,
|
|
8504
8605
|
routeId: ContractIdentifierSchema,
|
|
8505
8606
|
path: PageRoutePathSchema,
|
|
8506
8607
|
label: LocalizedTextSchema,
|
|
8507
8608
|
iconRef: ContractIdentifierSchema.optional(),
|
|
8508
8609
|
parentPageId: ContractIdentifierSchema.optional(),
|
|
8509
|
-
order:
|
|
8510
|
-
pinned:
|
|
8610
|
+
order: z11.number().int().optional(),
|
|
8611
|
+
pinned: z11.boolean()
|
|
8511
8612
|
}).strict();
|
|
8512
|
-
var PageGuardProjectionSchema =
|
|
8613
|
+
var PageGuardProjectionSchema = z11.object({
|
|
8513
8614
|
pageId: ContractIdentifierSchema,
|
|
8514
|
-
authenticated:
|
|
8515
|
-
permissionAllOf:
|
|
8516
|
-
permissionAnyOf:
|
|
8517
|
-
featureFlags:
|
|
8518
|
-
actions:
|
|
8615
|
+
authenticated: z11.boolean(),
|
|
8616
|
+
permissionAllOf: z11.array(ContractIdentifierSchema),
|
|
8617
|
+
permissionAnyOf: z11.array(ContractIdentifierSchema),
|
|
8618
|
+
featureFlags: z11.array(ContractIdentifierSchema),
|
|
8619
|
+
actions: z11.array(z11.enum(["read", "write", "execute", "manage-permissions"]))
|
|
8519
8620
|
}).strict();
|
|
8520
|
-
var PageRendererProjectionSchema =
|
|
8621
|
+
var PageRendererProjectionSchema = z11.object({
|
|
8521
8622
|
pageId: ContractIdentifierSchema,
|
|
8522
|
-
surface:
|
|
8623
|
+
surface: z11.enum(["page", "workspace", "view", "record", "action", "overlay", "agent"]),
|
|
8523
8624
|
rendererKey: ContractIdentifierSchema,
|
|
8524
8625
|
capabilityRef: EntityRefSchema,
|
|
8525
|
-
capabilityRefs:
|
|
8626
|
+
capabilityRefs: z11.array(EntityRefSchema),
|
|
8526
8627
|
providerRef: EntityRefSchema,
|
|
8527
8628
|
binding: PageDefinitionSchema.shape.binding,
|
|
8528
8629
|
rendererConfig: PageDefinitionSchema.shape.rendererConfig,
|
|
@@ -8563,13 +8664,13 @@ var duplicateProjectionIdentity = (values, identity) => {
|
|
|
8563
8664
|
}
|
|
8564
8665
|
return void 0;
|
|
8565
8666
|
};
|
|
8566
|
-
var PageRuntimeProjectionSchema =
|
|
8567
|
-
contract:
|
|
8568
|
-
product:
|
|
8569
|
-
routes:
|
|
8570
|
-
navigation:
|
|
8571
|
-
guards:
|
|
8572
|
-
renderers:
|
|
8667
|
+
var PageRuntimeProjectionSchema = z11.object({
|
|
8668
|
+
contract: z11.literal("PageRuntimeProjection"),
|
|
8669
|
+
product: z11.enum(["studio", "kernel"]),
|
|
8670
|
+
routes: z11.array(PageRouteProjectionSchema),
|
|
8671
|
+
navigation: z11.array(PageNavigationProjectionSchema),
|
|
8672
|
+
guards: z11.array(PageGuardProjectionSchema),
|
|
8673
|
+
renderers: z11.array(PageRendererProjectionSchema)
|
|
8573
8674
|
}).strict().superRefine((projection, context) => {
|
|
8574
8675
|
const tables = [
|
|
8575
8676
|
["routes", projection.routes.map((value) => value.pageId)],
|
|
@@ -8632,7 +8733,7 @@ var MENU_MAX_NODES = 1024;
|
|
|
8632
8733
|
var MENU_MAX_TREE_DEPTH = 16;
|
|
8633
8734
|
var MENU_MAX_INPUT_BYTES = 64 * 1024;
|
|
8634
8735
|
var MENU_MAX_INPUT_VALUES = 2048;
|
|
8635
|
-
var MenuOrderSchema =
|
|
8736
|
+
var MenuOrderSchema = z12.number().int().min(-1e6).max(1e6);
|
|
8636
8737
|
var inspectJsonValue = (value) => {
|
|
8637
8738
|
let maxDepth = 0;
|
|
8638
8739
|
let values = 0;
|
|
@@ -8675,30 +8776,30 @@ var MenuBoundedInputSchema = JsonObjectSchema.superRefine((value, context) => {
|
|
|
8675
8776
|
});
|
|
8676
8777
|
}
|
|
8677
8778
|
});
|
|
8678
|
-
var MenuPageRefSchema =
|
|
8779
|
+
var MenuPageRefSchema = z12.object({
|
|
8679
8780
|
applicationId: ContractIdentifierSchema,
|
|
8680
8781
|
pageId: ContractIdentifierSchema
|
|
8681
8782
|
}).strict();
|
|
8682
|
-
var MenuSourceInputBindingSchema =
|
|
8683
|
-
|
|
8684
|
-
|
|
8783
|
+
var MenuSourceInputBindingSchema = z12.discriminatedUnion("exposure", [
|
|
8784
|
+
z12.object({ exposure: z12.literal("client"), value: MenuBoundedInputSchema }).strict(),
|
|
8785
|
+
z12.object({ exposure: z12.literal("server"), value: MenuBoundedInputSchema }).strict()
|
|
8685
8786
|
]);
|
|
8686
|
-
var MenuRuntimeInputBindingSchema =
|
|
8687
|
-
|
|
8688
|
-
|
|
8787
|
+
var MenuRuntimeInputBindingSchema = z12.discriminatedUnion("exposure", [
|
|
8788
|
+
z12.object({ exposure: z12.literal("client"), value: MenuBoundedInputSchema }).strict(),
|
|
8789
|
+
z12.object({ exposure: z12.literal("server") }).strict()
|
|
8689
8790
|
]);
|
|
8690
|
-
var MenuNavigateBehaviorSchema =
|
|
8691
|
-
kind:
|
|
8791
|
+
var MenuNavigateBehaviorSchema = z12.object({
|
|
8792
|
+
kind: z12.literal("navigate"),
|
|
8692
8793
|
page: MenuPageRefSchema,
|
|
8693
8794
|
activationId: ContractIdentifierSchema.optional(),
|
|
8694
8795
|
input: MenuSourceInputBindingSchema.optional()
|
|
8695
8796
|
}).strict();
|
|
8696
|
-
var MenuActionBehaviorSchema =
|
|
8697
|
-
kind:
|
|
8797
|
+
var MenuActionBehaviorSchema = z12.object({
|
|
8798
|
+
kind: z12.literal("action"),
|
|
8698
8799
|
actionRef: ContractIdentifierSchema,
|
|
8699
8800
|
input: MenuBoundedInputSchema.optional()
|
|
8700
8801
|
}).strict();
|
|
8701
|
-
var MenuBehaviorSchema =
|
|
8802
|
+
var MenuBehaviorSchema = z12.discriminatedUnion("kind", [
|
|
8702
8803
|
MenuNavigateBehaviorSchema,
|
|
8703
8804
|
MenuActionBehaviorSchema
|
|
8704
8805
|
]);
|
|
@@ -8707,33 +8808,33 @@ var MenuNodeBaseShape = {
|
|
|
8707
8808
|
parentNodeId: ContractIdentifierSchema.optional(),
|
|
8708
8809
|
order: MenuOrderSchema
|
|
8709
8810
|
};
|
|
8710
|
-
var MenuGroupNodeSchema =
|
|
8811
|
+
var MenuGroupNodeSchema = z12.object({
|
|
8711
8812
|
...MenuNodeBaseShape,
|
|
8712
|
-
kind:
|
|
8813
|
+
kind: z12.literal("group"),
|
|
8713
8814
|
label: LocalizedTextSchema.optional(),
|
|
8714
8815
|
iconRef: ContractIdentifierSchema.optional(),
|
|
8715
|
-
disabled:
|
|
8816
|
+
disabled: z12.boolean().optional()
|
|
8716
8817
|
}).strict();
|
|
8717
|
-
var MenuDividerNodeSchema =
|
|
8818
|
+
var MenuDividerNodeSchema = z12.object({
|
|
8718
8819
|
...MenuNodeBaseShape,
|
|
8719
|
-
kind:
|
|
8820
|
+
kind: z12.literal("divider")
|
|
8720
8821
|
}).strict();
|
|
8721
|
-
var MenuItemNodeSchema =
|
|
8822
|
+
var MenuItemNodeSchema = z12.object({
|
|
8722
8823
|
...MenuNodeBaseShape,
|
|
8723
|
-
kind:
|
|
8824
|
+
kind: z12.literal("item"),
|
|
8724
8825
|
label: LocalizedTextSchema,
|
|
8725
8826
|
iconRef: ContractIdentifierSchema.optional(),
|
|
8726
|
-
tone:
|
|
8727
|
-
disabled:
|
|
8827
|
+
tone: z12.enum(["default", "danger"]).optional(),
|
|
8828
|
+
disabled: z12.boolean().optional(),
|
|
8728
8829
|
requiredPermission: ContractIdentifierSchema.optional(),
|
|
8729
8830
|
behavior: MenuBehaviorSchema
|
|
8730
8831
|
}).strict();
|
|
8731
|
-
var MenuNodeSchema =
|
|
8832
|
+
var MenuNodeSchema = z12.discriminatedUnion("kind", [
|
|
8732
8833
|
MenuGroupNodeSchema,
|
|
8733
8834
|
MenuDividerNodeSchema,
|
|
8734
8835
|
MenuItemNodeSchema
|
|
8735
8836
|
]);
|
|
8736
|
-
var MenuContributionSchema =
|
|
8837
|
+
var MenuContributionSchema = z12.object({
|
|
8737
8838
|
providerId: ContractIdentifierSchema,
|
|
8738
8839
|
parentNodeId: ContractIdentifierSchema.optional(),
|
|
8739
8840
|
order: MenuOrderSchema
|
|
@@ -8803,55 +8904,55 @@ var validateMenuStructure = (menu, context) => {
|
|
|
8803
8904
|
contributionKeys.add(key);
|
|
8804
8905
|
});
|
|
8805
8906
|
};
|
|
8806
|
-
var MenuDefinitionSchema =
|
|
8807
|
-
contract:
|
|
8808
|
-
version:
|
|
8907
|
+
var MenuDefinitionSchema = z12.object({
|
|
8908
|
+
contract: z12.literal("MenuDefinition"),
|
|
8909
|
+
version: z12.literal(MENU_CONTRACT_VERSION),
|
|
8809
8910
|
applicationId: ContractIdentifierSchema,
|
|
8810
8911
|
surface: ContractIdentifierSchema,
|
|
8811
8912
|
menuId: ContractIdentifierSchema,
|
|
8812
|
-
nodes:
|
|
8813
|
-
contributions:
|
|
8913
|
+
nodes: z12.array(MenuNodeSchema).max(MENU_MAX_NODES),
|
|
8914
|
+
contributions: z12.array(MenuContributionSchema).max(MENU_MAX_NODES).default([])
|
|
8814
8915
|
}).strict().superRefine(validateMenuStructure);
|
|
8815
|
-
var MenuDefinitionSetSchema =
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
version:
|
|
8819
|
-
definitions:
|
|
8916
|
+
var MenuDefinitionSetSchema = z12.union([
|
|
8917
|
+
z12.literal("*"),
|
|
8918
|
+
z12.object({
|
|
8919
|
+
version: z12.literal(MENU_CONTRACT_VERSION),
|
|
8920
|
+
definitions: z12.array(MenuDefinitionSchema).max(MENU_MAX_DEFINITIONS)
|
|
8820
8921
|
}).strict()
|
|
8821
8922
|
]);
|
|
8822
|
-
var MenuAccessRequirementSchema =
|
|
8823
|
-
authenticated:
|
|
8824
|
-
permissionAllOf:
|
|
8825
|
-
permissionAnyOf:
|
|
8826
|
-
featureFlags:
|
|
8923
|
+
var MenuAccessRequirementSchema = z12.object({
|
|
8924
|
+
authenticated: z12.boolean().default(true),
|
|
8925
|
+
permissionAllOf: z12.array(ContractIdentifierSchema).default([]),
|
|
8926
|
+
permissionAnyOf: z12.array(ContractIdentifierSchema).default([]),
|
|
8927
|
+
featureFlags: z12.array(ContractIdentifierSchema).default([])
|
|
8827
8928
|
}).strict();
|
|
8828
|
-
var MenuPageRegistrationSchema =
|
|
8929
|
+
var MenuPageRegistrationSchema = z12.object({
|
|
8829
8930
|
applicationId: ContractIdentifierSchema,
|
|
8830
8931
|
page: PageDefinitionSchema
|
|
8831
8932
|
}).strict();
|
|
8832
|
-
var MenuActionRegistrationSchema =
|
|
8933
|
+
var MenuActionRegistrationSchema = z12.object({
|
|
8833
8934
|
applicationId: ContractIdentifierSchema,
|
|
8834
8935
|
actionRef: ContractIdentifierSchema,
|
|
8835
8936
|
inputSchemaRef: ContractIdentifierSchema.optional(),
|
|
8836
8937
|
access: MenuAccessRequirementSchema
|
|
8837
8938
|
}).strict();
|
|
8838
|
-
var MenuContributionProviderRegistrationSchema =
|
|
8939
|
+
var MenuContributionProviderRegistrationSchema = z12.object({
|
|
8839
8940
|
applicationId: ContractIdentifierSchema,
|
|
8840
8941
|
providerId: ContractIdentifierSchema,
|
|
8841
|
-
surfaces:
|
|
8942
|
+
surfaces: z12.array(ContractIdentifierSchema).min(1).optional()
|
|
8842
8943
|
}).strict();
|
|
8843
|
-
var CompiledMenuNavigateBehaviorSchema =
|
|
8844
|
-
kind:
|
|
8944
|
+
var CompiledMenuNavigateBehaviorSchema = z12.object({
|
|
8945
|
+
kind: z12.literal("navigate"),
|
|
8845
8946
|
page: MenuPageRefSchema,
|
|
8846
8947
|
activationId: ContractIdentifierSchema,
|
|
8847
8948
|
input: MenuRuntimeInputBindingSchema.optional()
|
|
8848
8949
|
}).strict();
|
|
8849
|
-
var CompiledMenuActionBehaviorSchema =
|
|
8850
|
-
kind:
|
|
8950
|
+
var CompiledMenuActionBehaviorSchema = z12.object({
|
|
8951
|
+
kind: z12.literal("action"),
|
|
8851
8952
|
actionRef: ContractIdentifierSchema,
|
|
8852
8953
|
input: MenuBoundedInputSchema.optional()
|
|
8853
8954
|
}).strict();
|
|
8854
|
-
var CompiledMenuBehaviorSchema =
|
|
8955
|
+
var CompiledMenuBehaviorSchema = z12.discriminatedUnion("kind", [
|
|
8855
8956
|
CompiledMenuNavigateBehaviorSchema,
|
|
8856
8957
|
CompiledMenuActionBehaviorSchema
|
|
8857
8958
|
]);
|
|
@@ -8864,76 +8965,76 @@ var CompiledMenuItemNodeSchema = MenuItemNodeSchema.omit({ behavior: true, requi
|
|
|
8864
8965
|
behavior: CompiledMenuBehaviorSchema,
|
|
8865
8966
|
access: CompiledMenuItemAccessSchema
|
|
8866
8967
|
}).strict();
|
|
8867
|
-
var CompiledMenuNodeSchema =
|
|
8968
|
+
var CompiledMenuNodeSchema = z12.discriminatedUnion("kind", [
|
|
8868
8969
|
CompiledMenuGroupNodeSchema,
|
|
8869
8970
|
CompiledMenuDividerNodeSchema,
|
|
8870
8971
|
CompiledMenuItemNodeSchema
|
|
8871
8972
|
]);
|
|
8872
|
-
var CompiledMenuProjectionSchema =
|
|
8973
|
+
var CompiledMenuProjectionSchema = z12.object({
|
|
8873
8974
|
applicationId: ContractIdentifierSchema,
|
|
8874
8975
|
surface: ContractIdentifierSchema,
|
|
8875
8976
|
menuId: ContractIdentifierSchema,
|
|
8876
|
-
nodes:
|
|
8877
|
-
contributions:
|
|
8977
|
+
nodes: z12.array(CompiledMenuNodeSchema).max(MENU_MAX_NODES),
|
|
8978
|
+
contributions: z12.array(MenuContributionSchema).max(MENU_MAX_NODES)
|
|
8878
8979
|
}).strict();
|
|
8879
|
-
var MenuNavigationTargetSchema =
|
|
8980
|
+
var MenuNavigationTargetSchema = z12.object({
|
|
8880
8981
|
page: MenuPageRefSchema,
|
|
8881
8982
|
activationId: ContractIdentifierSchema,
|
|
8882
8983
|
input: MenuRuntimeInputBindingSchema.optional()
|
|
8883
8984
|
}).strict();
|
|
8884
|
-
var MenuRuntimeBundleSchema =
|
|
8885
|
-
contract:
|
|
8886
|
-
version:
|
|
8985
|
+
var MenuRuntimeBundleSchema = z12.object({
|
|
8986
|
+
contract: z12.literal("MenuRuntimeBundle"),
|
|
8987
|
+
version: z12.literal(MENU_CONTRACT_VERSION),
|
|
8887
8988
|
applicationId: ContractIdentifierSchema,
|
|
8888
8989
|
sourceVersion: ContractIdentifierSchema,
|
|
8889
8990
|
contentHash: Sha256Schema,
|
|
8890
|
-
menus:
|
|
8891
|
-
navigationTargets:
|
|
8892
|
-
sourceMap:
|
|
8991
|
+
menus: z12.array(CompiledMenuProjectionSchema).max(MENU_MAX_DEFINITIONS),
|
|
8992
|
+
navigationTargets: z12.array(MenuNavigationTargetSchema),
|
|
8993
|
+
sourceMap: z12.record(z12.string(), ContractIdentifierSchema).default({})
|
|
8893
8994
|
}).strict();
|
|
8894
|
-
var MenuContributionResultSchema =
|
|
8895
|
-
contract:
|
|
8995
|
+
var MenuContributionResultSchema = z12.object({
|
|
8996
|
+
contract: z12.literal("MenuContributionResult"),
|
|
8896
8997
|
applicationId: ContractIdentifierSchema,
|
|
8897
8998
|
surface: ContractIdentifierSchema,
|
|
8898
8999
|
menuId: ContractIdentifierSchema,
|
|
8899
9000
|
providerId: ContractIdentifierSchema,
|
|
8900
|
-
nodes:
|
|
9001
|
+
nodes: z12.array(CompiledMenuNodeSchema).max(MENU_MAX_NODES)
|
|
8901
9002
|
}).strict();
|
|
8902
9003
|
|
|
8903
9004
|
// src/contracts/semantic.ts
|
|
8904
|
-
import { z as
|
|
8905
|
-
var ConceptRelationshipSchema =
|
|
9005
|
+
import { z as z13 } from "zod";
|
|
9006
|
+
var ConceptRelationshipSchema = z13.object({
|
|
8906
9007
|
kind: ContractIdentifierSchema,
|
|
8907
9008
|
targetConceptId: ContractIdentifierSchema,
|
|
8908
|
-
cardinality:
|
|
9009
|
+
cardinality: z13.enum(["one", "optional", "many"])
|
|
8909
9010
|
}).strict();
|
|
8910
|
-
var ConceptDefinitionSchema =
|
|
8911
|
-
contract:
|
|
9011
|
+
var ConceptDefinitionSchema = z13.object({
|
|
9012
|
+
contract: z13.literal("ConceptDefinition"),
|
|
8912
9013
|
conceptId: ContractIdentifierSchema,
|
|
8913
9014
|
ownerRepo: ContractIdentifierSchema,
|
|
8914
|
-
displayName:
|
|
8915
|
-
description:
|
|
9015
|
+
displayName: z13.string().trim().min(1),
|
|
9016
|
+
description: z13.string().optional(),
|
|
8916
9017
|
schemaRef: ContractIdentifierSchema,
|
|
8917
9018
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
8918
|
-
capabilityIds:
|
|
8919
|
-
commandNames:
|
|
8920
|
-
relationships:
|
|
9019
|
+
capabilityIds: z13.array(ContractIdentifierSchema).default([]),
|
|
9020
|
+
commandNames: z13.array(ContractIdentifierSchema).default([]),
|
|
9021
|
+
relationships: z13.array(ConceptRelationshipSchema).default([])
|
|
8921
9022
|
}).strict();
|
|
8922
|
-
var DomainCommandDefinitionSchema =
|
|
8923
|
-
contract:
|
|
9023
|
+
var DomainCommandDefinitionSchema = z13.object({
|
|
9024
|
+
contract: z13.literal("DomainCommandDefinition"),
|
|
8924
9025
|
commandName: ContractIdentifierSchema,
|
|
8925
9026
|
ownerRepo: ContractIdentifierSchema,
|
|
8926
|
-
displayName:
|
|
8927
|
-
description:
|
|
8928
|
-
targetKinds:
|
|
9027
|
+
displayName: z13.string().trim().min(1),
|
|
9028
|
+
description: z13.string().optional(),
|
|
9029
|
+
targetKinds: z13.array(ContractIdentifierSchema).min(1),
|
|
8929
9030
|
inputSchemaRef: ContractIdentifierSchema,
|
|
8930
9031
|
outputSchemaRef: ContractIdentifierSchema.optional(),
|
|
8931
|
-
requiredPermissionCodes:
|
|
9032
|
+
requiredPermissionCodes: z13.array(ContractIdentifierSchema).default([]),
|
|
8932
9033
|
handlerRef: EntityRefSchema,
|
|
8933
|
-
sideEffects:
|
|
9034
|
+
sideEffects: z13.array(z13.enum(["data-write", "execution", "navigation", "notification", "external-call"])).default([])
|
|
8934
9035
|
}).strict();
|
|
8935
|
-
var DomainCommandSchema =
|
|
8936
|
-
contract:
|
|
9036
|
+
var DomainCommandSchema = z13.object({
|
|
9037
|
+
contract: z13.literal("DomainCommand"),
|
|
8937
9038
|
commandId: ContractIdentifierSchema,
|
|
8938
9039
|
commandName: ContractIdentifierSchema,
|
|
8939
9040
|
requestId: ContractIdentifierSchema,
|
|
@@ -8941,30 +9042,30 @@ var DomainCommandSchema = z12.object({
|
|
|
8941
9042
|
idempotencyKey: ContractIdentifierSchema,
|
|
8942
9043
|
targetRef: EntityRefSchema,
|
|
8943
9044
|
actorRef: EntityRefSchema,
|
|
8944
|
-
source:
|
|
8945
|
-
product:
|
|
9045
|
+
source: z13.object({
|
|
9046
|
+
product: z13.enum(["studio", "kernel", "agent", "mcp", "service"]),
|
|
8946
9047
|
pageId: ContractIdentifierSchema.optional(),
|
|
8947
9048
|
capabilityId: ContractIdentifierSchema.optional()
|
|
8948
9049
|
}).strict(),
|
|
8949
9050
|
payload: JsonObjectSchema,
|
|
8950
9051
|
issuedAt: IsoDateTimeSchema
|
|
8951
9052
|
}).strict();
|
|
8952
|
-
var ProductDeclarationSchema =
|
|
8953
|
-
contract:
|
|
9053
|
+
var ProductDeclarationSchema = z13.object({
|
|
9054
|
+
contract: z13.literal("ProductDeclaration"),
|
|
8954
9055
|
declarationId: ContractIdentifierSchema,
|
|
8955
9056
|
ownerRepo: ContractIdentifierSchema,
|
|
8956
|
-
concepts:
|
|
8957
|
-
ontologies:
|
|
8958
|
-
projections:
|
|
8959
|
-
commands:
|
|
8960
|
-
capabilities:
|
|
8961
|
-
pages:
|
|
8962
|
-
menus:
|
|
8963
|
-
}).strict();
|
|
8964
|
-
var DeclarationGraphEdgeSchema =
|
|
9057
|
+
concepts: z13.array(ConceptDefinitionSchema).default([]),
|
|
9058
|
+
ontologies: z13.array(OntologyDefinitionSchema).default([]),
|
|
9059
|
+
projections: z13.array(ProjectionSpecSchema).default([]),
|
|
9060
|
+
commands: z13.array(DomainCommandDefinitionSchema).default([]),
|
|
9061
|
+
capabilities: z13.array(CapabilityManifestSchema).default([]),
|
|
9062
|
+
pages: z13.array(PageDefinitionSchema).default([]),
|
|
9063
|
+
menus: z13.array(MenuDefinitionSchema).default([])
|
|
9064
|
+
}).strict();
|
|
9065
|
+
var DeclarationGraphEdgeSchema = z13.object({
|
|
8965
9066
|
from: EntityRefSchema,
|
|
8966
9067
|
to: EntityRefSchema,
|
|
8967
|
-
relation:
|
|
9068
|
+
relation: z13.enum([
|
|
8968
9069
|
"uses-ontology",
|
|
8969
9070
|
"uses-projection",
|
|
8970
9071
|
"uses-capability",
|
|
@@ -8972,25 +9073,25 @@ var DeclarationGraphEdgeSchema = z12.object({
|
|
|
8972
9073
|
"relates-to-concept"
|
|
8973
9074
|
])
|
|
8974
9075
|
}).strict();
|
|
8975
|
-
var ChangeImpactSchema =
|
|
9076
|
+
var ChangeImpactSchema = z13.object({
|
|
8976
9077
|
changedRef: EntityRefSchema,
|
|
8977
|
-
affectedRefs:
|
|
8978
|
-
reasons:
|
|
9078
|
+
affectedRefs: z13.array(EntityRefSchema),
|
|
9079
|
+
reasons: z13.array(ContractIdentifierSchema).min(1)
|
|
8979
9080
|
}).strict();
|
|
8980
|
-
var ChangeImpactGraphSchema =
|
|
8981
|
-
contract:
|
|
9081
|
+
var ChangeImpactGraphSchema = z13.object({
|
|
9082
|
+
contract: z13.literal("ChangeImpactGraph"),
|
|
8982
9083
|
declarationId: ContractIdentifierSchema,
|
|
8983
|
-
nodes:
|
|
8984
|
-
edges:
|
|
8985
|
-
impacts:
|
|
9084
|
+
nodes: z13.array(EntityRefSchema),
|
|
9085
|
+
edges: z13.array(DeclarationGraphEdgeSchema),
|
|
9086
|
+
impacts: z13.array(ChangeImpactSchema),
|
|
8986
9087
|
generatedAt: IsoDateTimeSchema
|
|
8987
9088
|
}).strict();
|
|
8988
9089
|
|
|
8989
9090
|
// src/contracts/tenant.ts
|
|
8990
|
-
import { z as
|
|
9091
|
+
import { z as z15 } from "zod";
|
|
8991
9092
|
|
|
8992
9093
|
// src/contracts/theme.ts
|
|
8993
|
-
import { z as
|
|
9094
|
+
import { z as z14 } from "zod";
|
|
8994
9095
|
|
|
8995
9096
|
// src/theme-tokens/core.ts
|
|
8996
9097
|
var import_ajv = __toESM(require_ajv());
|
|
@@ -11184,20 +11285,20 @@ var MONKEYS_REQUIRED_THEME_TOKEN_PATHS = Object.freeze({
|
|
|
11184
11285
|
});
|
|
11185
11286
|
|
|
11186
11287
|
// src/contracts/theme.ts
|
|
11187
|
-
var ThemeTokenTypeSchema =
|
|
11188
|
-
var ThemeTokenSchema =
|
|
11288
|
+
var ThemeTokenTypeSchema = z14.enum(THEME_TOKEN_TYPES);
|
|
11289
|
+
var ThemeTokenSchema = z14.record(z14.string(), z14.unknown()).superRefine((input, context) => {
|
|
11189
11290
|
const issues = validateThemeTokensDocumentStructure({ token: input });
|
|
11190
11291
|
for (const issue of issues) {
|
|
11191
11292
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
11192
11293
|
}
|
|
11193
11294
|
});
|
|
11194
|
-
var ThemeTokenGroupSchema =
|
|
11295
|
+
var ThemeTokenGroupSchema = z14.record(z14.string(), z14.unknown()).superRefine((input, context) => {
|
|
11195
11296
|
const issues = validateThemeTokensDocumentStructure(input);
|
|
11196
11297
|
for (const issue of issues) {
|
|
11197
11298
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
11198
11299
|
}
|
|
11199
11300
|
});
|
|
11200
|
-
var ThemeTokensSchema =
|
|
11301
|
+
var ThemeTokensSchema = z14.record(z14.string(), z14.unknown()).superRefine((input, context) => {
|
|
11201
11302
|
const issues = validateThemeTokensDocument(input);
|
|
11202
11303
|
for (const issue of issues) {
|
|
11203
11304
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
@@ -11224,9 +11325,9 @@ var ResolvedThemeTokensSchema = ThemeTokensSchema.superRefine((input, context) =
|
|
|
11224
11325
|
});
|
|
11225
11326
|
|
|
11226
11327
|
// src/contracts/tenant.ts
|
|
11227
|
-
var DesignTokenFileSourceSchema =
|
|
11228
|
-
type:
|
|
11229
|
-
path:
|
|
11328
|
+
var DesignTokenFileSourceSchema = z15.object({
|
|
11329
|
+
type: z15.literal("file"),
|
|
11330
|
+
path: z15.string().trim().min(1).superRefine((source, context) => {
|
|
11230
11331
|
if (/^[a-z][a-z\d+.-]*:/i.test(source)) {
|
|
11231
11332
|
context.addIssue({
|
|
11232
11333
|
code: "custom",
|
|
@@ -11235,9 +11336,9 @@ var DesignTokenFileSourceSchema = z14.object({
|
|
|
11235
11336
|
}
|
|
11236
11337
|
})
|
|
11237
11338
|
}).strict();
|
|
11238
|
-
var DesignTokenUrlSourceSchema =
|
|
11239
|
-
type:
|
|
11240
|
-
url:
|
|
11339
|
+
var DesignTokenUrlSourceSchema = z15.object({
|
|
11340
|
+
type: z15.literal("url"),
|
|
11341
|
+
url: z15.string().trim().min(1).superRefine((source, context) => {
|
|
11241
11342
|
if (!/^https?:\/\//i.test(source)) {
|
|
11242
11343
|
context.addIssue({
|
|
11243
11344
|
code: "custom",
|
|
@@ -11246,99 +11347,99 @@ var DesignTokenUrlSourceSchema = z14.object({
|
|
|
11246
11347
|
}
|
|
11247
11348
|
})
|
|
11248
11349
|
}).strict();
|
|
11249
|
-
var DesignTokenInlineSourceSchema =
|
|
11250
|
-
type:
|
|
11350
|
+
var DesignTokenInlineSourceSchema = z15.object({
|
|
11351
|
+
type: z15.literal("inline"),
|
|
11251
11352
|
document: ThemeTokensSchema
|
|
11252
11353
|
}).strict();
|
|
11253
|
-
var DesignTokenSourceSchema =
|
|
11354
|
+
var DesignTokenSourceSchema = z15.discriminatedUnion("type", [
|
|
11254
11355
|
DesignTokenFileSourceSchema,
|
|
11255
11356
|
DesignTokenUrlSourceSchema,
|
|
11256
11357
|
DesignTokenInlineSourceSchema
|
|
11257
11358
|
]);
|
|
11258
|
-
var TenantDesignTokensConfigSchema =
|
|
11359
|
+
var TenantDesignTokensConfigSchema = z15.object({
|
|
11259
11360
|
/** Ordered tenant overrides. The backend always applies the product default first. */
|
|
11260
|
-
tokenSources:
|
|
11361
|
+
tokenSources: z15.array(DesignTokenSourceSchema)
|
|
11261
11362
|
}).strict();
|
|
11262
|
-
var TenantAuthBindingSchema =
|
|
11263
|
-
kind:
|
|
11363
|
+
var TenantAuthBindingSchema = z15.object({
|
|
11364
|
+
kind: z15.literal("auth-provider"),
|
|
11264
11365
|
providerId: ContractIdentifierSchema,
|
|
11265
11366
|
policyRef: ContractIdentifierSchema.optional()
|
|
11266
11367
|
}).strict();
|
|
11267
|
-
var TenantDataBindingSchema =
|
|
11268
|
-
|
|
11269
|
-
kind:
|
|
11368
|
+
var TenantDataBindingSchema = z15.discriminatedUnion("kind", [
|
|
11369
|
+
z15.object({
|
|
11370
|
+
kind: z15.literal("data-provider"),
|
|
11270
11371
|
providerId: ContractIdentifierSchema,
|
|
11271
11372
|
domainRef: ContractIdentifierSchema.optional()
|
|
11272
11373
|
}).strict(),
|
|
11273
|
-
|
|
11274
|
-
kind:
|
|
11374
|
+
z15.object({
|
|
11375
|
+
kind: z15.literal("projection"),
|
|
11275
11376
|
projectionRef: ContractIdentifierSchema,
|
|
11276
11377
|
domainRef: ContractIdentifierSchema.optional()
|
|
11277
11378
|
}).strict()
|
|
11278
11379
|
]);
|
|
11279
|
-
var TenantAuthBindingsSchema =
|
|
11380
|
+
var TenantAuthBindingsSchema = z15.record(
|
|
11280
11381
|
ContractIdentifierSchema,
|
|
11281
11382
|
TenantAuthBindingSchema
|
|
11282
11383
|
);
|
|
11283
|
-
var TenantDataBindingsSchema =
|
|
11384
|
+
var TenantDataBindingsSchema = z15.record(
|
|
11284
11385
|
ContractIdentifierSchema,
|
|
11285
11386
|
TenantDataBindingSchema
|
|
11286
11387
|
);
|
|
11287
|
-
var TenantTrendRadarSourceSchema =
|
|
11388
|
+
var TenantTrendRadarSourceSchema = z15.object({
|
|
11288
11389
|
ontologyId: ContractIdentifierSchema,
|
|
11289
11390
|
viewId: ContractIdentifierSchema
|
|
11290
11391
|
}).strict();
|
|
11291
|
-
var TenantTrendRadarCollectionTargetSchema =
|
|
11392
|
+
var TenantTrendRadarCollectionTargetSchema = z15.object({
|
|
11292
11393
|
ontologyId: ContractIdentifierSchema
|
|
11293
11394
|
}).strict();
|
|
11294
|
-
var TenantTrendRadarSourcesSchema =
|
|
11395
|
+
var TenantTrendRadarSourcesSchema = z15.object({
|
|
11295
11396
|
products: TenantTrendRadarSourceSchema.optional(),
|
|
11296
11397
|
hotwords: TenantTrendRadarSourceSchema.optional(),
|
|
11297
11398
|
brands: TenantTrendRadarSourceSchema.optional(),
|
|
11298
11399
|
collection: TenantTrendRadarCollectionTargetSchema.optional()
|
|
11299
11400
|
}).strict();
|
|
11300
|
-
var AssetVariantsSchema =
|
|
11301
|
-
light:
|
|
11302
|
-
dark:
|
|
11401
|
+
var AssetVariantsSchema = z15.object({
|
|
11402
|
+
light: z15.string().optional(),
|
|
11403
|
+
dark: z15.string().optional()
|
|
11303
11404
|
}).strict();
|
|
11304
11405
|
var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
|
|
11305
11406
|
var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
|
|
11306
11407
|
var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
|
|
11307
|
-
var CurrentUserMenuIdentifierSchema =
|
|
11308
|
-
var CurrentUserMenuDisplayTextSchema =
|
|
11309
|
-
|
|
11310
|
-
|
|
11408
|
+
var CurrentUserMenuIdentifierSchema = z15.string().trim().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/, "Expected a stable current-user menu identifier.");
|
|
11409
|
+
var CurrentUserMenuDisplayTextSchema = z15.union([
|
|
11410
|
+
z15.string().trim().min(1),
|
|
11411
|
+
z15.record(z15.string().trim().min(1), z15.string().trim().min(1)).refine((value) => Object.keys(value).length > 0, "Localized menu text must contain at least one locale.")
|
|
11311
11412
|
]);
|
|
11312
|
-
var CurrentUserMenuNavigationItemSchema =
|
|
11413
|
+
var CurrentUserMenuNavigationItemSchema = z15.object({
|
|
11313
11414
|
id: CurrentUserMenuIdentifierSchema,
|
|
11314
|
-
kind:
|
|
11415
|
+
kind: z15.literal("navigation"),
|
|
11315
11416
|
ref: CurrentUserMenuIdentifierSchema
|
|
11316
11417
|
}).strict();
|
|
11317
|
-
var CurrentUserMenuControlItemSchema =
|
|
11418
|
+
var CurrentUserMenuControlItemSchema = z15.object({
|
|
11318
11419
|
id: CurrentUserMenuIdentifierSchema,
|
|
11319
|
-
kind:
|
|
11320
|
-
ref:
|
|
11420
|
+
kind: z15.literal("control"),
|
|
11421
|
+
ref: z15.enum(CURRENT_USER_MENU_CONTROL_REFS)
|
|
11321
11422
|
}).strict();
|
|
11322
|
-
var CurrentUserMenuActionItemSchema =
|
|
11423
|
+
var CurrentUserMenuActionItemSchema = z15.object({
|
|
11323
11424
|
id: CurrentUserMenuIdentifierSchema,
|
|
11324
|
-
kind:
|
|
11325
|
-
ref:
|
|
11326
|
-
tone:
|
|
11425
|
+
kind: z15.literal("action"),
|
|
11426
|
+
ref: z15.enum(CURRENT_USER_MENU_ACTION_REFS),
|
|
11427
|
+
tone: z15.enum(["default", "danger"]).optional()
|
|
11327
11428
|
}).strict();
|
|
11328
|
-
var CurrentUserMenuItemSchema =
|
|
11429
|
+
var CurrentUserMenuItemSchema = z15.discriminatedUnion("kind", [
|
|
11329
11430
|
CurrentUserMenuNavigationItemSchema,
|
|
11330
11431
|
CurrentUserMenuControlItemSchema,
|
|
11331
11432
|
CurrentUserMenuActionItemSchema
|
|
11332
11433
|
]);
|
|
11333
|
-
var CurrentUserMenuSectionSchema =
|
|
11434
|
+
var CurrentUserMenuSectionSchema = z15.object({
|
|
11334
11435
|
id: CurrentUserMenuIdentifierSchema,
|
|
11335
11436
|
label: CurrentUserMenuDisplayTextSchema.optional(),
|
|
11336
|
-
dividerBefore:
|
|
11337
|
-
items:
|
|
11437
|
+
dividerBefore: z15.boolean().optional(),
|
|
11438
|
+
items: z15.array(CurrentUserMenuItemSchema)
|
|
11338
11439
|
}).strict();
|
|
11339
|
-
var CurrentUserMenuConfigSchema =
|
|
11340
|
-
version:
|
|
11341
|
-
sections:
|
|
11440
|
+
var CurrentUserMenuConfigSchema = z15.object({
|
|
11441
|
+
version: z15.literal(1),
|
|
11442
|
+
sections: z15.array(CurrentUserMenuSectionSchema).max(20)
|
|
11342
11443
|
}).strict().superRefine((value, context) => {
|
|
11343
11444
|
const sectionIds = /* @__PURE__ */ new Set();
|
|
11344
11445
|
const itemIds = /* @__PURE__ */ new Set();
|
|
@@ -11372,7 +11473,7 @@ var CurrentUserMenuConfigSchema = z14.object({
|
|
|
11372
11473
|
});
|
|
11373
11474
|
}
|
|
11374
11475
|
});
|
|
11375
|
-
var LegacyCurrentUserMenuProfileSchema =
|
|
11476
|
+
var LegacyCurrentUserMenuProfileSchema = z15.array(z15.enum(LEGACY_CURRENT_USER_MENU_ITEM_IDS)).superRefine((value, context) => {
|
|
11376
11477
|
const seen = /* @__PURE__ */ new Set();
|
|
11377
11478
|
value.forEach((item, index) => {
|
|
11378
11479
|
if (seen.has(item)) {
|
|
@@ -11385,73 +11486,73 @@ var LegacyCurrentUserMenuProfileSchema = z14.array(z14.enum(LEGACY_CURRENT_USER_
|
|
|
11385
11486
|
seen.add(item);
|
|
11386
11487
|
});
|
|
11387
11488
|
});
|
|
11388
|
-
var CurrentUserMenuProfileSchema =
|
|
11389
|
-
|
|
11489
|
+
var CurrentUserMenuProfileSchema = z15.union([
|
|
11490
|
+
z15.literal("*"),
|
|
11390
11491
|
LegacyCurrentUserMenuProfileSchema,
|
|
11391
11492
|
CurrentUserMenuConfigSchema
|
|
11392
11493
|
]);
|
|
11393
|
-
var ThemeHeadbarSchema =
|
|
11394
|
-
theme:
|
|
11395
|
-
navPosition:
|
|
11396
|
-
actions:
|
|
11494
|
+
var ThemeHeadbarSchema = z15.object({
|
|
11495
|
+
theme: z15.enum(["card", "glassy", "ghost"]).optional(),
|
|
11496
|
+
navPosition: z15.enum(["left", "center", "right"]).optional(),
|
|
11497
|
+
actions: z15.union([z15.literal("*"), z15.array(ContractIdentifierSchema)]).optional(),
|
|
11397
11498
|
profile: CurrentUserMenuProfileSchema.optional(),
|
|
11398
|
-
showTeamQuota:
|
|
11499
|
+
showTeamQuota: z15.boolean().optional()
|
|
11399
11500
|
}).strict();
|
|
11400
|
-
var TenantHeadbarModuleLeafSchema =
|
|
11501
|
+
var TenantHeadbarModuleLeafSchema = z15.object({
|
|
11401
11502
|
id: ContractIdentifierSchema,
|
|
11402
|
-
extraInfo:
|
|
11403
|
-
displayName:
|
|
11404
|
-
visible:
|
|
11405
|
-
disabled:
|
|
11406
|
-
icon:
|
|
11407
|
-
showQuickSwitcher:
|
|
11408
|
-
showSidebar:
|
|
11409
|
-
showContentFrame:
|
|
11503
|
+
extraInfo: z15.boolean().optional(),
|
|
11504
|
+
displayName: z15.union([z15.string(), z15.record(LocaleIdentifierSchema, z15.string())]).optional(),
|
|
11505
|
+
visible: z15.boolean().optional(),
|
|
11506
|
+
disabled: z15.boolean().optional(),
|
|
11507
|
+
icon: z15.string().optional(),
|
|
11508
|
+
showQuickSwitcher: z15.boolean().optional(),
|
|
11509
|
+
showSidebar: z15.boolean().optional(),
|
|
11510
|
+
showContentFrame: z15.boolean().optional()
|
|
11410
11511
|
}).strict();
|
|
11411
11512
|
var TenantHeadbarModuleItemSchema = TenantHeadbarModuleLeafSchema.extend({
|
|
11412
|
-
children:
|
|
11413
|
-
}).strict();
|
|
11414
|
-
var KernelHeadbarSchema =
|
|
11415
|
-
theme:
|
|
11416
|
-
layoutMode:
|
|
11417
|
-
heightPx:
|
|
11418
|
-
navPosition:
|
|
11419
|
-
brandTitle:
|
|
11420
|
-
menuRadius:
|
|
11421
|
-
}).strict();
|
|
11422
|
-
var CustomIconSchema =
|
|
11423
|
-
color:
|
|
11424
|
-
url:
|
|
11425
|
-
type:
|
|
11426
|
-
hintTextColor:
|
|
11427
|
-
}).strict();
|
|
11428
|
-
var WorkbenchCustomerToolSchema =
|
|
11513
|
+
children: z15.array(TenantHeadbarModuleLeafSchema).optional()
|
|
11514
|
+
}).strict();
|
|
11515
|
+
var KernelHeadbarSchema = z15.object({
|
|
11516
|
+
theme: z15.literal("card").optional(),
|
|
11517
|
+
layoutMode: z15.enum(["boxed", "full-bleed"]).optional(),
|
|
11518
|
+
heightPx: z15.number().positive().optional(),
|
|
11519
|
+
navPosition: z15.enum(["left", "center", "right"]).optional(),
|
|
11520
|
+
brandTitle: z15.string().optional(),
|
|
11521
|
+
menuRadius: z15.enum(["default", "none", "sm", "md", "lg", "xl", "full"]).optional()
|
|
11522
|
+
}).strict();
|
|
11523
|
+
var CustomIconSchema = z15.object({
|
|
11524
|
+
color: z15.string().optional(),
|
|
11525
|
+
url: z15.string().optional(),
|
|
11526
|
+
type: z15.enum(["svg", "image"]).optional(),
|
|
11527
|
+
hintTextColor: z15.string().optional()
|
|
11528
|
+
}).strict();
|
|
11529
|
+
var WorkbenchCustomerToolSchema = z15.object({
|
|
11429
11530
|
id: ContractIdentifierSchema,
|
|
11430
|
-
label:
|
|
11431
|
-
fixed:
|
|
11531
|
+
label: z15.union([z15.string(), z15.record(LocaleIdentifierSchema, z15.string())]).optional(),
|
|
11532
|
+
fixed: z15.boolean().optional()
|
|
11432
11533
|
}).strict();
|
|
11433
|
-
var WorkbenchStudioOverrideSchema =
|
|
11434
|
-
studioName:
|
|
11435
|
-
dropdownToolsDefault:
|
|
11436
|
-
existingToolsDefault:
|
|
11437
|
-
historyColumnsDefault:
|
|
11534
|
+
var WorkbenchStudioOverrideSchema = z15.object({
|
|
11535
|
+
studioName: z15.string().trim().min(1),
|
|
11536
|
+
dropdownToolsDefault: z15.array(ContractIdentifierSchema).optional(),
|
|
11537
|
+
existingToolsDefault: z15.array(ContractIdentifierSchema).optional(),
|
|
11538
|
+
historyColumnsDefault: z15.number().int().min(1).max(6).optional()
|
|
11438
11539
|
}).strict();
|
|
11439
|
-
var TenantWorkbenchPageContextSchema =
|
|
11540
|
+
var TenantWorkbenchPageContextSchema = z15.object({
|
|
11440
11541
|
workflow: JsonObjectSchema.optional(),
|
|
11441
11542
|
agent: JsonObjectSchema.optional(),
|
|
11442
11543
|
agentId: ContractIdentifierSchema.optional(),
|
|
11443
11544
|
designProject: JsonObjectSchema.optional(),
|
|
11444
11545
|
designMetadataId: ContractIdentifierSchema.optional(),
|
|
11445
|
-
iframeUrl:
|
|
11446
|
-
info:
|
|
11546
|
+
iframeUrl: z15.string().trim().min(1).optional(),
|
|
11547
|
+
info: z15.object({
|
|
11447
11548
|
displayName: LocalizedTextSchema.optional(),
|
|
11448
11549
|
description: LocalizedTextSchema.optional(),
|
|
11449
|
-
iconUrl:
|
|
11550
|
+
iconUrl: z15.string().trim().min(1).optional()
|
|
11450
11551
|
}).strict().optional(),
|
|
11451
|
-
isBuiltinPinned:
|
|
11452
|
-
isBuiltinReadonly:
|
|
11552
|
+
isBuiltinPinned: z15.boolean().optional(),
|
|
11553
|
+
isBuiltinReadonly: z15.boolean().optional()
|
|
11453
11554
|
}).strict();
|
|
11454
|
-
var TenantWorkbenchPageEnvelopeSchema =
|
|
11555
|
+
var TenantWorkbenchPageEnvelopeSchema = z15.object({
|
|
11455
11556
|
definition: PageDefinitionSchema,
|
|
11456
11557
|
context: TenantWorkbenchPageContextSchema
|
|
11457
11558
|
}).strict().superRefine(({ definition }, context) => {
|
|
@@ -11484,56 +11585,56 @@ var TenantWorkbenchPageEnvelopeSchema = z14.object({
|
|
|
11484
11585
|
});
|
|
11485
11586
|
}
|
|
11486
11587
|
});
|
|
11487
|
-
var TenantWorkbenchPageGroupSchema =
|
|
11588
|
+
var TenantWorkbenchPageGroupSchema = z15.object({
|
|
11488
11589
|
id: ContractIdentifierSchema,
|
|
11489
|
-
pageIds:
|
|
11590
|
+
pageIds: z15.array(ContractIdentifierSchema),
|
|
11490
11591
|
displayName: LocalizedTextSchema,
|
|
11491
|
-
isBuiltIn:
|
|
11492
|
-
iconUrl:
|
|
11493
|
-
sortIndex:
|
|
11592
|
+
isBuiltIn: z15.boolean(),
|
|
11593
|
+
iconUrl: z15.string().optional(),
|
|
11594
|
+
sortIndex: z15.number().int().nullable().optional(),
|
|
11494
11595
|
presetRelationId: ContractIdentifierSchema.optional(),
|
|
11495
11596
|
relationKey: ContractIdentifierSchema.nullable().optional(),
|
|
11496
11597
|
studioId: ContractIdentifierSchema.optional()
|
|
11497
11598
|
}).strict();
|
|
11498
|
-
var TenantWorkbenchConfigSchema =
|
|
11499
|
-
pages:
|
|
11500
|
-
pageGroups:
|
|
11501
|
-
catalog:
|
|
11502
|
-
quickSwitcherMaxItems:
|
|
11503
|
-
defaultOrder:
|
|
11504
|
-
groups:
|
|
11505
|
-
pages:
|
|
11599
|
+
var TenantWorkbenchConfigSchema = z15.object({
|
|
11600
|
+
pages: z15.array(TenantWorkbenchPageEnvelopeSchema),
|
|
11601
|
+
pageGroups: z15.array(TenantWorkbenchPageGroupSchema),
|
|
11602
|
+
catalog: z15.object({ enabled: z15.boolean().optional(), defaultEntry: z15.boolean().optional() }).strict().optional(),
|
|
11603
|
+
quickSwitcherMaxItems: z15.number().int().nonnegative().optional(),
|
|
11604
|
+
defaultOrder: z15.object({
|
|
11605
|
+
groups: z15.array(ContractIdentifierSchema),
|
|
11606
|
+
pages: z15.record(ContractIdentifierSchema, z15.array(ContractIdentifierSchema))
|
|
11506
11607
|
}).strict().optional(),
|
|
11507
|
-
customers:
|
|
11508
|
-
dropdownToolsDefault:
|
|
11509
|
-
layoutManagerTools:
|
|
11510
|
-
studioTabsMode:
|
|
11511
|
-
historyWatermark:
|
|
11512
|
-
svgUrl:
|
|
11513
|
-
coverage:
|
|
11514
|
-
maxLongEdgeRatio:
|
|
11515
|
-
sizing:
|
|
11608
|
+
customers: z15.object({
|
|
11609
|
+
dropdownToolsDefault: z15.array(ContractIdentifierSchema).optional(),
|
|
11610
|
+
layoutManagerTools: z15.array(WorkbenchCustomerToolSchema).optional(),
|
|
11611
|
+
studioTabsMode: z15.enum(["dropdown", "tabs"]).optional(),
|
|
11612
|
+
historyWatermark: z15.object({
|
|
11613
|
+
svgUrl: z15.string().optional(),
|
|
11614
|
+
coverage: z15.array(z15.enum(["list", "detail", "download"])).optional(),
|
|
11615
|
+
maxLongEdgeRatio: z15.number().positive().optional(),
|
|
11616
|
+
sizing: z15.object({
|
|
11516
11617
|
mode: ContractIdentifierSchema,
|
|
11517
|
-
heightRatio:
|
|
11518
|
-
minHeightPx:
|
|
11519
|
-
maxHeightPx:
|
|
11618
|
+
heightRatio: z15.number().positive().optional(),
|
|
11619
|
+
minHeightPx: z15.number().nonnegative().optional(),
|
|
11620
|
+
maxHeightPx: z15.number().nonnegative().optional()
|
|
11520
11621
|
}).strict().optional(),
|
|
11521
|
-
enhance:
|
|
11522
|
-
enabled:
|
|
11523
|
-
backgroundLumaThreshold:
|
|
11524
|
-
stroke:
|
|
11525
|
-
color:
|
|
11526
|
-
opacity:
|
|
11527
|
-
widthRatio:
|
|
11528
|
-
blurRatio:
|
|
11529
|
-
steps:
|
|
11622
|
+
enhance: z15.object({
|
|
11623
|
+
enabled: z15.boolean().optional(),
|
|
11624
|
+
backgroundLumaThreshold: z15.number().min(0).max(1).optional(),
|
|
11625
|
+
stroke: z15.object({
|
|
11626
|
+
color: z15.string().optional(),
|
|
11627
|
+
opacity: z15.number().min(0).max(1).optional(),
|
|
11628
|
+
widthRatio: z15.number().nonnegative().optional(),
|
|
11629
|
+
blurRatio: z15.number().nonnegative().optional(),
|
|
11630
|
+
steps: z15.number().int().positive().optional()
|
|
11530
11631
|
}).strict().optional()
|
|
11531
11632
|
}).strict().optional()
|
|
11532
11633
|
}).strict().optional(),
|
|
11533
|
-
layoutManagerEnabled:
|
|
11534
|
-
existingToolsDefault:
|
|
11535
|
-
historyColumnsDefault:
|
|
11536
|
-
studioOverrides:
|
|
11634
|
+
layoutManagerEnabled: z15.boolean().optional(),
|
|
11635
|
+
existingToolsDefault: z15.array(ContractIdentifierSchema).optional(),
|
|
11636
|
+
historyColumnsDefault: z15.number().int().min(1).max(6).optional(),
|
|
11637
|
+
studioOverrides: z15.array(WorkbenchStudioOverrideSchema).optional()
|
|
11537
11638
|
}).strict().optional()
|
|
11538
11639
|
}).strict().superRefine(({ pages, pageGroups }, context) => {
|
|
11539
11640
|
const pageIds = pages.map(({ definition }) => definition.pageId);
|
|
@@ -11557,38 +11658,38 @@ var TenantWorkbenchConfigSchema = z14.object({
|
|
|
11557
11658
|
});
|
|
11558
11659
|
});
|
|
11559
11660
|
});
|
|
11560
|
-
var LoginPageSchema =
|
|
11561
|
-
background:
|
|
11562
|
-
logo:
|
|
11563
|
-
url:
|
|
11564
|
-
lightUrl:
|
|
11565
|
-
darkUrl:
|
|
11566
|
-
position:
|
|
11567
|
-
scale:
|
|
11661
|
+
var LoginPageSchema = z15.object({
|
|
11662
|
+
background: z15.object({ imageUrl: z15.string().optional(), gradient: z15.string().optional() }).strict().optional(),
|
|
11663
|
+
logo: z15.object({
|
|
11664
|
+
url: z15.string().optional(),
|
|
11665
|
+
lightUrl: z15.string().optional(),
|
|
11666
|
+
darkUrl: z15.string().optional(),
|
|
11667
|
+
position: z15.enum(["top", "middle", "bottom"]).optional(),
|
|
11668
|
+
scale: z15.number().positive().optional()
|
|
11568
11669
|
}).strict().optional(),
|
|
11569
|
-
customCss:
|
|
11670
|
+
customCss: z15.string().optional()
|
|
11570
11671
|
}).strict();
|
|
11571
11672
|
var LandingPageHeadbarConfigShape = {
|
|
11572
|
-
headbarMode:
|
|
11673
|
+
headbarMode: z15.enum(["shared", "hidden"]).optional()
|
|
11573
11674
|
};
|
|
11574
|
-
var LandingPageDefaultConfigSchema =
|
|
11575
|
-
mode:
|
|
11675
|
+
var LandingPageDefaultConfigSchema = z15.object({
|
|
11676
|
+
mode: z15.literal("default"),
|
|
11576
11677
|
...LandingPageHeadbarConfigShape
|
|
11577
11678
|
}).strict();
|
|
11578
|
-
var LandingPageMarkdownConfigSchema =
|
|
11579
|
-
mode:
|
|
11580
|
-
content:
|
|
11679
|
+
var LandingPageMarkdownConfigSchema = z15.object({
|
|
11680
|
+
mode: z15.literal("markdown"),
|
|
11681
|
+
content: z15.string(),
|
|
11581
11682
|
...LandingPageHeadbarConfigShape
|
|
11582
11683
|
}).strict();
|
|
11583
|
-
var LandingPageHtmlConfigSchema =
|
|
11584
|
-
mode:
|
|
11585
|
-
content:
|
|
11684
|
+
var LandingPageHtmlConfigSchema = z15.object({
|
|
11685
|
+
mode: z15.literal("html"),
|
|
11686
|
+
content: z15.string(),
|
|
11586
11687
|
...LandingPageHeadbarConfigShape
|
|
11587
11688
|
}).strict();
|
|
11588
|
-
var LandingPageIframeConfigSchema =
|
|
11589
|
-
mode:
|
|
11689
|
+
var LandingPageIframeConfigSchema = z15.object({
|
|
11690
|
+
mode: z15.literal("iframe"),
|
|
11590
11691
|
...LandingPageHeadbarConfigShape,
|
|
11591
|
-
url:
|
|
11692
|
+
url: z15.string().refine((value) => {
|
|
11592
11693
|
if (/^\/(?!\/)/.test(value)) {
|
|
11593
11694
|
return !value.includes("\\");
|
|
11594
11695
|
}
|
|
@@ -11600,13 +11701,13 @@ var LandingPageIframeConfigSchema = z14.object({
|
|
|
11600
11701
|
}
|
|
11601
11702
|
}, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
|
|
11602
11703
|
}).strict();
|
|
11603
|
-
var TenantLandingPageConfigSchema =
|
|
11704
|
+
var TenantLandingPageConfigSchema = z15.discriminatedUnion("mode", [
|
|
11604
11705
|
LandingPageDefaultConfigSchema,
|
|
11605
11706
|
LandingPageMarkdownConfigSchema,
|
|
11606
11707
|
LandingPageHtmlConfigSchema,
|
|
11607
11708
|
LandingPageIframeConfigSchema
|
|
11608
11709
|
]);
|
|
11609
|
-
var ListFooterPageSizeOptionsSchema =
|
|
11710
|
+
var ListFooterPageSizeOptionsSchema = z15.array(z15.number().int().positive().max(1e3)).min(1).max(10).superRefine((options, context) => {
|
|
11610
11711
|
const seen = /* @__PURE__ */ new Set();
|
|
11611
11712
|
options.forEach((option, index) => {
|
|
11612
11713
|
if (seen.has(option)) {
|
|
@@ -11619,484 +11720,484 @@ var ListFooterPageSizeOptionsSchema = z14.array(z14.number().int().positive().ma
|
|
|
11619
11720
|
seen.add(option);
|
|
11620
11721
|
});
|
|
11621
11722
|
});
|
|
11622
|
-
var TenantListFooterConfigSchema =
|
|
11623
|
-
showTotal:
|
|
11624
|
-
showPageSize:
|
|
11723
|
+
var TenantListFooterConfigSchema = z15.object({
|
|
11724
|
+
showTotal: z15.boolean().optional(),
|
|
11725
|
+
showPageSize: z15.boolean().optional(),
|
|
11625
11726
|
pageSizeOptions: ListFooterPageSizeOptionsSchema.optional(),
|
|
11626
|
-
paginationMode:
|
|
11627
|
-
alignment:
|
|
11628
|
-
density:
|
|
11629
|
-
}).strict();
|
|
11630
|
-
var TenantApplicationConfigSchema =
|
|
11631
|
-
theme:
|
|
11632
|
-
id:
|
|
11633
|
-
name:
|
|
11634
|
-
title:
|
|
11727
|
+
paginationMode: z15.enum(["auto", "pages", "compact"]).optional(),
|
|
11728
|
+
alignment: z15.enum(["start", "end", "space-between"]).optional(),
|
|
11729
|
+
density: z15.enum(["compact", "default", "comfortable"]).optional()
|
|
11730
|
+
}).strict();
|
|
11731
|
+
var TenantApplicationConfigSchema = z15.object({
|
|
11732
|
+
theme: z15.object({
|
|
11733
|
+
id: z15.string().optional(),
|
|
11734
|
+
name: z15.string().optional(),
|
|
11735
|
+
title: z15.string().optional(),
|
|
11635
11736
|
favicon: AssetVariantsSchema.optional(),
|
|
11636
11737
|
logo: AssetVariantsSchema.optional(),
|
|
11637
|
-
pwaIcon:
|
|
11638
|
-
form:
|
|
11639
|
-
toast:
|
|
11640
|
-
position:
|
|
11738
|
+
pwaIcon: z15.string().optional(),
|
|
11739
|
+
form: z15.object({ variant: z15.enum(["bento", "ghost"]) }).strict().optional(),
|
|
11740
|
+
toast: z15.object({
|
|
11741
|
+
position: z15.enum(["top-right", "top-left", "bottom-right", "bottom-left", "top-center", "bottom-center"])
|
|
11641
11742
|
}).strict().optional(),
|
|
11642
|
-
icons:
|
|
11643
|
-
views:
|
|
11644
|
-
form:
|
|
11645
|
-
toast:
|
|
11646
|
-
progress:
|
|
11647
|
-
onlyResult:
|
|
11648
|
-
tabular:
|
|
11743
|
+
icons: z15.object({ error: CustomIconSchema.optional(), empty: CustomIconSchema.optional() }).strict().optional(),
|
|
11744
|
+
views: z15.object({
|
|
11745
|
+
form: z15.object({
|
|
11746
|
+
toast: z15.object({ afterCreate: z15.boolean(), afterDelete: z15.boolean() }).strict(),
|
|
11747
|
+
progress: z15.enum(["estimate", "infinite"]),
|
|
11748
|
+
onlyResult: z15.boolean(),
|
|
11749
|
+
tabular: z15.object({ theme: z15.enum(["default", "tentiary", "primary"]) }).strict()
|
|
11649
11750
|
}).strict()
|
|
11650
11751
|
}).strict().optional(),
|
|
11651
11752
|
loginPage: LoginPageSchema.optional(),
|
|
11652
|
-
extraLanguageURL:
|
|
11653
|
-
hideSpaceHeader:
|
|
11654
|
-
showSidebarTeamSelector:
|
|
11655
|
-
showWorkbenchSidebar:
|
|
11656
|
-
workbenchViewTheme:
|
|
11657
|
-
defaults:
|
|
11658
|
-
showFormInImageDetail:
|
|
11659
|
-
darkMode:
|
|
11660
|
-
language:
|
|
11661
|
-
showDarkModeToggle:
|
|
11662
|
-
showLanguageToggle:
|
|
11753
|
+
extraLanguageURL: z15.record(z15.string(), z15.string()).optional(),
|
|
11754
|
+
hideSpaceHeader: z15.boolean().optional(),
|
|
11755
|
+
showSidebarTeamSelector: z15.boolean().optional(),
|
|
11756
|
+
showWorkbenchSidebar: z15.boolean().optional(),
|
|
11757
|
+
workbenchViewTheme: z15.enum(["default", "bsd-blue"]).optional(),
|
|
11758
|
+
defaults: z15.object({
|
|
11759
|
+
showFormInImageDetail: z15.boolean().optional(),
|
|
11760
|
+
darkMode: z15.enum(["light", "dark", "auto"]).optional(),
|
|
11761
|
+
language: z15.enum(["en-US", "zh-CN", "ja-JP"]).optional(),
|
|
11762
|
+
showDarkModeToggle: z15.boolean().optional(),
|
|
11763
|
+
showLanguageToggle: z15.boolean().optional()
|
|
11663
11764
|
}).strict().optional(),
|
|
11664
|
-
modules:
|
|
11665
|
-
monkeysSpaceSidebar:
|
|
11666
|
-
monkeysSpaceHeadbar:
|
|
11667
|
-
|
|
11668
|
-
|
|
11765
|
+
modules: z15.object({
|
|
11766
|
+
monkeysSpaceSidebar: z15.union([z15.literal("*"), z15.array(ContractIdentifierSchema)]).optional(),
|
|
11767
|
+
monkeysSpaceHeadbar: z15.union([
|
|
11768
|
+
z15.literal("*"),
|
|
11769
|
+
z15.array(TenantHeadbarModuleItemSchema)
|
|
11669
11770
|
]).optional(),
|
|
11670
|
-
settingsSidebar:
|
|
11771
|
+
settingsSidebar: z15.union([z15.literal("*"), z15.array(ContractIdentifierSchema)]).optional()
|
|
11671
11772
|
}).strict().optional(),
|
|
11672
11773
|
headbar: ThemeHeadbarSchema.optional(),
|
|
11673
|
-
kernelLayout:
|
|
11674
|
-
navigationMode:
|
|
11675
|
-
allowNavigationModeSwitch:
|
|
11774
|
+
kernelLayout: z15.object({
|
|
11775
|
+
navigationMode: z15.enum(["sidebar", "topbar"]).optional(),
|
|
11776
|
+
allowNavigationModeSwitch: z15.boolean().optional(),
|
|
11676
11777
|
headbar: KernelHeadbarSchema.optional()
|
|
11677
11778
|
}).strict().optional(),
|
|
11678
|
-
paginationPosition:
|
|
11779
|
+
paginationPosition: z15.enum(["left", "right"]).optional(),
|
|
11679
11780
|
listFooter: TenantListFooterConfigSchema.optional(),
|
|
11680
|
-
ugcViewIconOnlyMode:
|
|
11681
|
-
workflowPreviewExecutionGrid:
|
|
11682
|
-
selectionModeDisplayType:
|
|
11683
|
-
clickBehavior:
|
|
11684
|
-
showErrorFilter:
|
|
11685
|
-
displayType:
|
|
11686
|
-
showDetailButton:
|
|
11687
|
-
aspectRatio:
|
|
11781
|
+
ugcViewIconOnlyMode: z15.boolean().optional(),
|
|
11782
|
+
workflowPreviewExecutionGrid: z15.object({
|
|
11783
|
+
selectionModeDisplayType: z15.enum(["operation-button", "dropdown-menu"]).optional(),
|
|
11784
|
+
clickBehavior: z15.enum(["preview", "select", "fill-form", "none"]).optional(),
|
|
11785
|
+
showErrorFilter: z15.boolean().optional(),
|
|
11786
|
+
displayType: z15.enum(["grid", "masonry"]).optional(),
|
|
11787
|
+
showDetailButton: z15.boolean().optional(),
|
|
11788
|
+
aspectRatio: z15.enum(["1:1", "4:3", "3:4", "16:9", "9:16"]).optional()
|
|
11688
11789
|
}).strict().optional(),
|
|
11689
|
-
workbenchSidebarDefaultOpen:
|
|
11690
|
-
workbenchSidebarMoreAction:
|
|
11691
|
-
workbenchSidebarApart:
|
|
11692
|
-
workbenchSidebarToggleGroupDetail:
|
|
11693
|
-
workbenchSidebarViewType:
|
|
11694
|
-
workbenchSidebarFormViewEmbed:
|
|
11695
|
-
workbenchSidebarModernMode:
|
|
11696
|
-
ugc:
|
|
11697
|
-
uniImagePreview:
|
|
11698
|
-
imagePreviewStyle:
|
|
11699
|
-
teamAsUser:
|
|
11700
|
-
themeMode:
|
|
11701
|
-
density:
|
|
11702
|
-
statusStates:
|
|
11703
|
-
loading:
|
|
11704
|
-
empty:
|
|
11705
|
-
error:
|
|
11706
|
-
permission:
|
|
11707
|
-
density:
|
|
11790
|
+
workbenchSidebarDefaultOpen: z15.boolean().optional(),
|
|
11791
|
+
workbenchSidebarMoreAction: z15.boolean().optional(),
|
|
11792
|
+
workbenchSidebarApart: z15.boolean().optional(),
|
|
11793
|
+
workbenchSidebarToggleGroupDetail: z15.boolean().optional(),
|
|
11794
|
+
workbenchSidebarViewType: z15.boolean().optional(),
|
|
11795
|
+
workbenchSidebarFormViewEmbed: z15.boolean().optional(),
|
|
11796
|
+
workbenchSidebarModernMode: z15.boolean().optional(),
|
|
11797
|
+
ugc: z15.object({ onItemClick: z15.boolean(), subtitle: z15.boolean().optional() }).strict().optional(),
|
|
11798
|
+
uniImagePreview: z15.boolean().optional(),
|
|
11799
|
+
imagePreviewStyle: z15.union([z15.literal(false), z15.enum(["simple", "normal", "uni"])]).optional(),
|
|
11800
|
+
teamAsUser: z15.boolean().optional(),
|
|
11801
|
+
themeMode: z15.enum(["shadow", "border"]).optional(),
|
|
11802
|
+
density: z15.enum(["compact", "default", "comfortable"]).optional(),
|
|
11803
|
+
statusStates: z15.object({
|
|
11804
|
+
loading: z15.object({ variant: z15.enum(["spinner", "skeleton"]).optional() }).strict().optional(),
|
|
11805
|
+
empty: z15.object({ variant: z15.enum(["default", "compact"]).optional() }).strict().optional(),
|
|
11806
|
+
error: z15.object({ showRetry: z15.boolean().optional() }).strict().optional(),
|
|
11807
|
+
permission: z15.object({ showRequestAccess: z15.boolean().optional() }).strict().optional(),
|
|
11808
|
+
density: z15.enum(["compact", "default", "comfortable"]).optional()
|
|
11708
11809
|
}).strict().optional(),
|
|
11709
|
-
pageZoom:
|
|
11710
|
-
miniMode:
|
|
11711
|
-
workflow:
|
|
11712
|
-
historyResult:
|
|
11713
|
-
uploader:
|
|
11714
|
-
orientation:
|
|
11715
|
-
pasteButton:
|
|
11716
|
-
statusText:
|
|
11810
|
+
pageZoom: z15.number().positive().optional(),
|
|
11811
|
+
miniMode: z15.object({ showPreviewViewExecutionResultGrid: z15.boolean() }).strict().optional(),
|
|
11812
|
+
workflow: z15.object({ allowConcurrentRuns: z15.boolean() }).strict().optional(),
|
|
11813
|
+
historyResult: z15.object({ display: z15.boolean() }).strict().optional(),
|
|
11814
|
+
uploader: z15.object({
|
|
11815
|
+
orientation: z15.enum(["vertical", "horizontal"]),
|
|
11816
|
+
pasteButton: z15.boolean(),
|
|
11817
|
+
statusText: z15.boolean()
|
|
11717
11818
|
}).strict().optional(),
|
|
11718
|
-
designProjects:
|
|
11719
|
-
oneOnOne:
|
|
11720
|
-
newTabOpenBoard:
|
|
11721
|
-
defaultShowGrid:
|
|
11722
|
-
createDefaultFrame:
|
|
11723
|
-
showPageMenu:
|
|
11724
|
-
showMainMenu:
|
|
11725
|
-
showStylePanel:
|
|
11726
|
-
showToolbar:
|
|
11727
|
-
toolbarPosition:
|
|
11728
|
-
showContextMenu:
|
|
11729
|
-
showActionsMenu:
|
|
11730
|
-
showPageAndLayerSidebar:
|
|
11731
|
-
showBoardOperationSidebar:
|
|
11732
|
-
showMiniToolsToolbar:
|
|
11733
|
-
showRightSidebar:
|
|
11734
|
-
showRealtimeDrawing:
|
|
11735
|
-
showWorkflow:
|
|
11736
|
-
showVersionManager:
|
|
11737
|
-
showAgent:
|
|
11738
|
-
AgentTools:
|
|
11819
|
+
designProjects: z15.object({
|
|
11820
|
+
oneOnOne: z15.boolean(),
|
|
11821
|
+
newTabOpenBoard: z15.boolean(),
|
|
11822
|
+
defaultShowGrid: z15.boolean().optional(),
|
|
11823
|
+
createDefaultFrame: z15.boolean(),
|
|
11824
|
+
showPageMenu: z15.boolean(),
|
|
11825
|
+
showMainMenu: z15.boolean(),
|
|
11826
|
+
showStylePanel: z15.boolean(),
|
|
11827
|
+
showToolbar: z15.boolean(),
|
|
11828
|
+
toolbarPosition: z15.enum(["bottom", "left"]).optional(),
|
|
11829
|
+
showContextMenu: z15.boolean(),
|
|
11830
|
+
showActionsMenu: z15.boolean(),
|
|
11831
|
+
showPageAndLayerSidebar: z15.boolean().optional(),
|
|
11832
|
+
showBoardOperationSidebar: z15.boolean().optional(),
|
|
11833
|
+
showMiniToolsToolbar: z15.boolean().optional(),
|
|
11834
|
+
showRightSidebar: z15.boolean().optional(),
|
|
11835
|
+
showRealtimeDrawing: z15.boolean().optional(),
|
|
11836
|
+
showWorkflow: z15.boolean().optional(),
|
|
11837
|
+
showVersionManager: z15.boolean().optional(),
|
|
11838
|
+
showAgent: z15.boolean().optional(),
|
|
11839
|
+
AgentTools: z15.array(ContractIdentifierSchema).optional()
|
|
11739
11840
|
}).strict().optional(),
|
|
11740
11841
|
workbench: TenantWorkbenchConfigSchema.optional(),
|
|
11741
|
-
visionProWorkflows:
|
|
11742
|
-
initTeam:
|
|
11743
|
-
imageThumbnail:
|
|
11744
|
-
pages:
|
|
11745
|
-
allowPageKeys:
|
|
11842
|
+
visionProWorkflows: z15.array(ContractIdentifierSchema).optional(),
|
|
11843
|
+
initTeam: z15.boolean().optional(),
|
|
11844
|
+
imageThumbnail: z15.boolean().optional(),
|
|
11845
|
+
pages: z15.object({
|
|
11846
|
+
allowPageKeys: z15.union([z15.literal("*"), z15.array(ContractIdentifierSchema)]),
|
|
11746
11847
|
defaultPageKey: ContractIdentifierSchema.optional(),
|
|
11747
|
-
homeEntryEnabled:
|
|
11848
|
+
homeEntryEnabled: z15.boolean().optional()
|
|
11748
11849
|
}).strict().optional(),
|
|
11749
|
-
agent:
|
|
11850
|
+
agent: z15.object({
|
|
11750
11851
|
logo: AssetVariantsSchema.optional(),
|
|
11751
|
-
brandDisplayMode:
|
|
11752
|
-
density:
|
|
11753
|
-
navigationMode:
|
|
11754
|
-
quickStartEnabled:
|
|
11852
|
+
brandDisplayMode: z15.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
11853
|
+
density: z15.enum(["compact", "default", "comfortable"]).optional(),
|
|
11854
|
+
navigationMode: z15.enum(["default", "session", "trend"]).optional(),
|
|
11855
|
+
quickStartEnabled: z15.boolean().optional()
|
|
11755
11856
|
}).strict().optional()
|
|
11756
11857
|
}).strict(),
|
|
11757
11858
|
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
11758
|
-
auth:
|
|
11759
|
-
enabled:
|
|
11760
|
-
oidc:
|
|
11761
|
-
password:
|
|
11762
|
-
hideAuthToast:
|
|
11763
|
-
autoReload:
|
|
11764
|
-
defaultOtherTeam:
|
|
11859
|
+
auth: z15.object({
|
|
11860
|
+
enabled: z15.array(ContractIdentifierSchema).default([]),
|
|
11861
|
+
oidc: z15.object({ buttonText: z15.string().optional(), autoSignin: z15.boolean().optional() }).strict().optional(),
|
|
11862
|
+
password: z15.object({ disableAutoRegister: z15.boolean().optional() }).strict().optional(),
|
|
11863
|
+
hideAuthToast: z15.boolean().optional(),
|
|
11864
|
+
autoReload: z15.boolean().optional(),
|
|
11865
|
+
defaultOtherTeam: z15.boolean().optional()
|
|
11765
11866
|
}).strict(),
|
|
11766
|
-
endpoints:
|
|
11767
|
-
module:
|
|
11768
|
-
behavior:
|
|
11769
|
-
clearWorkflowFormStorageAfterUpdate:
|
|
11770
|
-
autoApproveOAuth:
|
|
11771
|
-
rememberWorkflowModelSelection:
|
|
11867
|
+
endpoints: z15.record(ContractIdentifierSchema, z15.string()),
|
|
11868
|
+
module: z15.union([z15.literal("*"), z15.array(ContractIdentifierSchema)]),
|
|
11869
|
+
behavior: z15.object({
|
|
11870
|
+
clearWorkflowFormStorageAfterUpdate: z15.boolean().optional(),
|
|
11871
|
+
autoApproveOAuth: z15.boolean().optional(),
|
|
11872
|
+
rememberWorkflowModelSelection: z15.boolean().optional()
|
|
11772
11873
|
}).strict(),
|
|
11773
|
-
dataManagement:
|
|
11774
|
-
favoriteOntologyId:
|
|
11775
|
-
pairedOntologyId:
|
|
11776
|
-
galleryOntologyIds:
|
|
11777
|
-
galleryOntologyId:
|
|
11778
|
-
dataBrowserDefaultOntologyId:
|
|
11779
|
-
workflowResultOntologyId:
|
|
11780
|
-
homeAdvertisement:
|
|
11874
|
+
dataManagement: z15.object({
|
|
11875
|
+
favoriteOntologyId: z15.string().optional(),
|
|
11876
|
+
pairedOntologyId: z15.string().optional(),
|
|
11877
|
+
galleryOntologyIds: z15.array(ContractIdentifierSchema).max(20).optional(),
|
|
11878
|
+
galleryOntologyId: z15.string().optional(),
|
|
11879
|
+
dataBrowserDefaultOntologyId: z15.string().optional(),
|
|
11880
|
+
workflowResultOntologyId: z15.string().optional(),
|
|
11881
|
+
homeAdvertisement: z15.object({
|
|
11781
11882
|
ontologyId: ContractIdentifierSchema,
|
|
11782
11883
|
viewId: ContractIdentifierSchema.optional(),
|
|
11783
|
-
viewType:
|
|
11884
|
+
viewType: z15.enum(["filter", "container", "share_link"]).optional(),
|
|
11784
11885
|
teamId: ContractIdentifierSchema.optional(),
|
|
11785
|
-
teamOnly:
|
|
11786
|
-
pageSize:
|
|
11787
|
-
sortBy:
|
|
11788
|
-
sortOrder:
|
|
11789
|
-
fieldMap:
|
|
11790
|
-
columnIds:
|
|
11886
|
+
teamOnly: z15.boolean().optional(),
|
|
11887
|
+
pageSize: z15.number().int().positive().optional(),
|
|
11888
|
+
sortBy: z15.enum(["pin_order", "asset_id", "updated_timestamp", "created_timestamp"]).optional(),
|
|
11889
|
+
sortOrder: z15.enum(["asc", "desc"]).optional(),
|
|
11890
|
+
fieldMap: z15.record(z15.string(), z15.string()).optional(),
|
|
11891
|
+
columnIds: z15.record(z15.string(), z15.string()).optional()
|
|
11791
11892
|
}).strict().optional(),
|
|
11792
|
-
homeTrendAssistant:
|
|
11893
|
+
homeTrendAssistant: z15.object({
|
|
11793
11894
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
11794
11895
|
viewId: ContractIdentifierSchema.optional(),
|
|
11795
11896
|
viewInstanceId: ContractIdentifierSchema.optional(),
|
|
11796
|
-
viewName:
|
|
11897
|
+
viewName: z15.string().optional(),
|
|
11797
11898
|
teamId: ContractIdentifierSchema.optional(),
|
|
11798
11899
|
designOptionsWorkflowId: ContractIdentifierSchema.optional(),
|
|
11799
|
-
tep:
|
|
11800
|
-
runtime:
|
|
11900
|
+
tep: z15.object({ baseUrl: z15.string().optional(), timeoutMs: z15.number().int().positive().optional() }).strict().optional(),
|
|
11901
|
+
runtime: z15.object({ appId: ContractIdentifierSchema, tepBaseUrlConfigured: z15.boolean(), tepAuthorizationConfigured: z15.boolean(), tepCookieConfigured: z15.boolean() }).strict().optional()
|
|
11801
11902
|
}).strict().optional(),
|
|
11802
11903
|
trendRadar: TenantTrendRadarSourcesSchema.optional(),
|
|
11803
|
-
sharing:
|
|
11804
|
-
silentViewLinks:
|
|
11805
|
-
shareAccess:
|
|
11806
|
-
shareDialog:
|
|
11807
|
-
audience:
|
|
11808
|
-
accessLevel:
|
|
11809
|
-
viewTreeDelivery:
|
|
11904
|
+
sharing: z15.object({
|
|
11905
|
+
silentViewLinks: z15.object({ enabled: z15.boolean().optional(), placement: z15.object({ mode: z15.enum(["sourceOntology", "ontology"]).optional(), ontologyId: ContractIdentifierSchema.optional(), parentId: ContractIdentifierSchema.optional(), navId: ContractIdentifierSchema.optional() }).strict().optional() }).strict().optional(),
|
|
11906
|
+
shareAccess: z15.object({ publicLinksEnabled: z15.boolean().optional(), passwordGateEnabled: z15.boolean().optional(), passwordAccessTtlSeconds: z15.number().int().positive().optional(), defaultViewTreeDelivery: z15.enum(["manual", "auto"]).optional() }).strict().optional(),
|
|
11907
|
+
shareDialog: z15.object({
|
|
11908
|
+
audience: z15.object({ enabled: z15.boolean().optional(), allowed: z15.array(z15.enum(["user", "team", "public"])).optional(), default: z15.enum(["user", "team", "public"]).optional() }).strict().optional(),
|
|
11909
|
+
accessLevel: z15.object({ enabled: z15.boolean().optional(), allowed: z15.array(z15.enum(["read", "write"])).optional(), default: z15.enum(["read", "write"]).optional() }).strict().optional(),
|
|
11910
|
+
viewTreeDelivery: z15.object({ enabled: z15.boolean().optional(), allowed: z15.array(z15.enum(["manual", "auto"])).optional(), default: z15.enum(["manual", "auto"]).optional() }).strict().optional()
|
|
11810
11911
|
}).strict().optional()
|
|
11811
11912
|
}).strict().optional()
|
|
11812
11913
|
}).strict().optional(),
|
|
11813
|
-
kernelRuntime:
|
|
11814
|
-
integrations:
|
|
11815
|
-
harbor:
|
|
11816
|
-
gitlab:
|
|
11817
|
-
kubernetes:
|
|
11914
|
+
kernelRuntime: z15.object({
|
|
11915
|
+
integrations: z15.object({
|
|
11916
|
+
harbor: z15.object({ endpoint: z15.string().optional(), projectScopes: z15.array(z15.string()).optional(), authMode: z15.string().optional(), principal: z15.string().optional(), autoSync: z15.boolean().optional(), proxyUrl: z15.string().optional() }).strict().optional(),
|
|
11917
|
+
gitlab: z15.object({ baseUrl: z15.string().optional(), groupScopes: z15.array(z15.string()).optional(), tokenMode: z15.string().optional(), deployProjectPath: z15.string().optional(), deploymentReportsEnabled: z15.boolean().optional(), proxyUrl: z15.string().optional() }).strict().optional(),
|
|
11918
|
+
kubernetes: z15.object({ accessMode: z15.string().optional(), clusterAlias: z15.string().optional(), agentProjectPath: z15.string().optional(), agentName: z15.string().optional(), namespaceScopes: z15.array(z15.string()).optional(), rolloutObserverEnabled: z15.boolean().optional(), proxyUrl: z15.string().optional() }).strict().optional()
|
|
11818
11919
|
}).strict().optional()
|
|
11819
11920
|
}).strict().optional(),
|
|
11820
|
-
data:
|
|
11821
|
-
storage:
|
|
11822
|
-
presignMode:
|
|
11823
|
-
presign:
|
|
11824
|
-
expiresInSeconds:
|
|
11825
|
-
buckets:
|
|
11826
|
-
|
|
11921
|
+
data: z15.object({}).strict().optional(),
|
|
11922
|
+
storage: z15.object({
|
|
11923
|
+
presignMode: z15.enum(["frontend", "backend", "both"]).optional(),
|
|
11924
|
+
presign: z15.object({
|
|
11925
|
+
expiresInSeconds: z15.number().int().positive(),
|
|
11926
|
+
buckets: z15.array(
|
|
11927
|
+
z15.object({
|
|
11827
11928
|
id: ContractIdentifierSchema,
|
|
11828
11929
|
provider: ContractIdentifierSchema,
|
|
11829
11930
|
preferredUrlPatternId: ContractIdentifierSchema,
|
|
11830
|
-
urlPatterns:
|
|
11831
|
-
|
|
11931
|
+
urlPatterns: z15.array(
|
|
11932
|
+
z15.object({
|
|
11832
11933
|
id: ContractIdentifierSchema,
|
|
11833
|
-
type:
|
|
11834
|
-
hostname:
|
|
11835
|
-
preferred:
|
|
11836
|
-
bucketSegment:
|
|
11934
|
+
type: z15.enum(["bucket-hostname", "provider-hostname"]),
|
|
11935
|
+
hostname: z15.string().trim().min(1),
|
|
11936
|
+
preferred: z15.boolean().optional(),
|
|
11937
|
+
bucketSegment: z15.string().optional()
|
|
11837
11938
|
}).strict()
|
|
11838
11939
|
)
|
|
11839
11940
|
}).strict()
|
|
11840
11941
|
)
|
|
11841
11942
|
}).strict().optional()
|
|
11842
11943
|
}).strict().optional(),
|
|
11843
|
-
monkeyData:
|
|
11944
|
+
monkeyData: z15.object({ baseUrl: z15.string().optional() }).strict().optional()
|
|
11844
11945
|
}).strict();
|
|
11845
|
-
var TenantProductConfigSchema =
|
|
11846
|
-
contract:
|
|
11946
|
+
var TenantProductConfigSchema = z15.object({
|
|
11947
|
+
contract: z15.literal("TenantProductConfig"),
|
|
11847
11948
|
tenantId: ContractIdentifierSchema,
|
|
11848
11949
|
appId: ContractIdentifierSchema,
|
|
11849
11950
|
environment: ContractIdentifierSchema,
|
|
11850
11951
|
designTokens: TenantDesignTokensConfigSchema,
|
|
11851
|
-
moduleRefs:
|
|
11852
|
-
pageRefs:
|
|
11853
|
-
featureFlags:
|
|
11952
|
+
moduleRefs: z15.array(ContractIdentifierSchema).default([]),
|
|
11953
|
+
pageRefs: z15.array(ContractIdentifierSchema).default([]),
|
|
11954
|
+
featureFlags: z15.record(z15.string(), z15.boolean()).default({}),
|
|
11854
11955
|
authBinding: TenantAuthBindingsSchema,
|
|
11855
11956
|
dataBinding: TenantDataBindingsSchema,
|
|
11856
|
-
sourceMap:
|
|
11857
|
-
warnings:
|
|
11957
|
+
sourceMap: z15.record(z15.string(), ContractIdentifierSchema),
|
|
11958
|
+
warnings: z15.array(z15.string()).default([]),
|
|
11858
11959
|
menus: MenuDefinitionSetSchema.optional(),
|
|
11859
11960
|
applicationConfig: TenantApplicationConfigSchema
|
|
11860
11961
|
}).strict();
|
|
11861
|
-
var TenantRuntimeConfigSchema =
|
|
11862
|
-
contract:
|
|
11962
|
+
var TenantRuntimeConfigSchema = z15.object({
|
|
11963
|
+
contract: z15.literal("TenantRuntimeConfig"),
|
|
11863
11964
|
tenantId: ContractIdentifierSchema,
|
|
11864
11965
|
appId: ContractIdentifierSchema,
|
|
11865
11966
|
environment: ContractIdentifierSchema,
|
|
11866
11967
|
designTokens: ResolvedThemeTokensSchema,
|
|
11867
|
-
moduleRefs:
|
|
11868
|
-
pageRefs:
|
|
11869
|
-
featureFlags:
|
|
11968
|
+
moduleRefs: z15.array(ContractIdentifierSchema).default([]),
|
|
11969
|
+
pageRefs: z15.array(ContractIdentifierSchema).default([]),
|
|
11970
|
+
featureFlags: z15.record(z15.string(), z15.boolean()).default({}),
|
|
11870
11971
|
authBinding: TenantAuthBindingsSchema,
|
|
11871
11972
|
dataBinding: TenantDataBindingsSchema,
|
|
11872
|
-
sourceMap:
|
|
11873
|
-
warnings:
|
|
11973
|
+
sourceMap: z15.record(z15.string(), ContractIdentifierSchema),
|
|
11974
|
+
warnings: z15.array(z15.string()).default([]),
|
|
11874
11975
|
menuBundle: MenuRuntimeBundleSchema.optional(),
|
|
11875
11976
|
applicationConfig: TenantApplicationConfigSchema
|
|
11876
11977
|
}).strict();
|
|
11877
11978
|
|
|
11878
11979
|
// src/contracts/trend.ts
|
|
11879
|
-
import { z as
|
|
11880
|
-
var RadarDecisionMetricsSchema =
|
|
11881
|
-
currentSales:
|
|
11882
|
-
forecastSales:
|
|
11883
|
-
searchHeat:
|
|
11884
|
-
socialHeat:
|
|
11885
|
-
confidence:
|
|
11886
|
-
}).strict();
|
|
11887
|
-
var TrendSourceSchema =
|
|
11980
|
+
import { z as z16 } from "zod";
|
|
11981
|
+
var RadarDecisionMetricsSchema = z16.object({
|
|
11982
|
+
currentSales: z16.number().finite(),
|
|
11983
|
+
forecastSales: z16.number().finite(),
|
|
11984
|
+
searchHeat: z16.number().finite(),
|
|
11985
|
+
socialHeat: z16.number().finite(),
|
|
11986
|
+
confidence: z16.number().min(0).max(1)
|
|
11987
|
+
}).strict();
|
|
11988
|
+
var TrendSourceSchema = z16.object({
|
|
11888
11989
|
sourceId: ContractIdentifierSchema,
|
|
11889
11990
|
provider: ContractIdentifierSchema,
|
|
11890
|
-
channel:
|
|
11991
|
+
channel: z16.enum(["trend", "ecommerce", "social", "search", "internal"]),
|
|
11891
11992
|
collectedAt: IsoDateTimeSchema,
|
|
11892
|
-
sourceUrl:
|
|
11893
|
-
evidenceRefs:
|
|
11993
|
+
sourceUrl: z16.string().url().optional(),
|
|
11994
|
+
evidenceRefs: z16.array(EntityRefSchema).default([])
|
|
11894
11995
|
}).strict();
|
|
11895
|
-
var TrendIngestRunSchema =
|
|
11896
|
-
contract:
|
|
11996
|
+
var TrendIngestRunSchema = z16.object({
|
|
11997
|
+
contract: z16.literal("TrendIngestRun"),
|
|
11897
11998
|
ingestRunId: ContractIdentifierSchema,
|
|
11898
11999
|
sourceId: ContractIdentifierSchema,
|
|
11899
12000
|
requestId: ContractIdentifierSchema,
|
|
11900
12001
|
idempotencyKey: ContractIdentifierSchema,
|
|
11901
|
-
status:
|
|
11902
|
-
recordCount:
|
|
11903
|
-
errorCount:
|
|
12002
|
+
status: z16.enum(["RUNNING", "SUCCEEDED", "FAILED", "PARTIAL"]),
|
|
12003
|
+
recordCount: z16.number().int().nonnegative(),
|
|
12004
|
+
errorCount: z16.number().int().nonnegative(),
|
|
11904
12005
|
startedAt: IsoDateTimeSchema,
|
|
11905
12006
|
completedAt: IsoDateTimeSchema.optional()
|
|
11906
12007
|
}).strict();
|
|
11907
|
-
var TrendSourceRecordSchema =
|
|
11908
|
-
contract:
|
|
12008
|
+
var TrendSourceRecordSchema = z16.object({
|
|
12009
|
+
contract: z16.literal("TrendSourceRecord"),
|
|
11909
12010
|
sourceRecordId: ContractIdentifierSchema,
|
|
11910
12011
|
source: TrendSourceSchema,
|
|
11911
12012
|
ingestRunRef: EntityRefSchema,
|
|
11912
|
-
recordVersion:
|
|
12013
|
+
recordVersion: z16.number().int().positive(),
|
|
11913
12014
|
contentHash: Sha256Schema,
|
|
11914
12015
|
payload: JsonValueSchema,
|
|
11915
12016
|
idempotencyKey: ContractIdentifierSchema,
|
|
11916
12017
|
collectedAt: IsoDateTimeSchema
|
|
11917
12018
|
}).strict();
|
|
11918
|
-
var HotwordBodySchema =
|
|
11919
|
-
contract:
|
|
12019
|
+
var HotwordBodySchema = z16.object({
|
|
12020
|
+
contract: z16.literal("HotwordBody"),
|
|
11920
12021
|
hotwordId: ContractIdentifierSchema,
|
|
11921
|
-
label:
|
|
11922
|
-
normalizedLabel:
|
|
11923
|
-
categories:
|
|
11924
|
-
sourceRefs:
|
|
11925
|
-
relationRefs:
|
|
12022
|
+
label: z16.string().trim().min(1),
|
|
12023
|
+
normalizedLabel: z16.string().trim().min(1),
|
|
12024
|
+
categories: z16.array(ContractIdentifierSchema).default([]),
|
|
12025
|
+
sourceRefs: z16.array(TrendSourceSchema).min(1),
|
|
12026
|
+
relationRefs: z16.array(EntityRefSchema).default([]),
|
|
11926
12027
|
createdAt: IsoDateTimeSchema,
|
|
11927
12028
|
updatedAt: IsoDateTimeSchema
|
|
11928
12029
|
}).strict();
|
|
11929
12030
|
var CommerceBodyFieldsSchema = {
|
|
11930
|
-
displayName:
|
|
11931
|
-
normalizedName:
|
|
11932
|
-
categories:
|
|
11933
|
-
sourceRefs:
|
|
11934
|
-
relationRefs:
|
|
12031
|
+
displayName: z16.string().trim().min(1),
|
|
12032
|
+
normalizedName: z16.string().trim().min(1),
|
|
12033
|
+
categories: z16.array(ContractIdentifierSchema).default([]),
|
|
12034
|
+
sourceRefs: z16.array(EntityRefSchema).min(1),
|
|
12035
|
+
relationRefs: z16.array(EntityRefSchema).default([]),
|
|
11935
12036
|
createdAt: IsoDateTimeSchema,
|
|
11936
12037
|
updatedAt: IsoDateTimeSchema
|
|
11937
12038
|
};
|
|
11938
|
-
var BrandBodySchema =
|
|
11939
|
-
contract:
|
|
12039
|
+
var BrandBodySchema = z16.object({
|
|
12040
|
+
contract: z16.literal("BrandBody"),
|
|
11940
12041
|
brandId: ContractIdentifierSchema,
|
|
11941
12042
|
...CommerceBodyFieldsSchema
|
|
11942
12043
|
}).strict();
|
|
11943
|
-
var ProductBodySchema =
|
|
11944
|
-
contract:
|
|
12044
|
+
var ProductBodySchema = z16.object({
|
|
12045
|
+
contract: z16.literal("ProductBody"),
|
|
11945
12046
|
productId: ContractIdentifierSchema,
|
|
11946
12047
|
brandRef: EntityRefSchema.optional(),
|
|
11947
12048
|
...CommerceBodyFieldsSchema
|
|
11948
12049
|
}).strict();
|
|
11949
|
-
var TrendMetricSnapshotSchema =
|
|
11950
|
-
contract:
|
|
12050
|
+
var TrendMetricSnapshotSchema = z16.object({
|
|
12051
|
+
contract: z16.literal("TrendMetricSnapshot"),
|
|
11951
12052
|
snapshotId: ContractIdentifierSchema,
|
|
11952
12053
|
subjectRef: EntityRefSchema,
|
|
11953
12054
|
observedAt: IsoDateTimeSchema,
|
|
11954
|
-
metrics:
|
|
11955
|
-
confidence:
|
|
11956
|
-
evidenceRefs:
|
|
12055
|
+
metrics: z16.record(z16.string(), z16.number().finite()),
|
|
12056
|
+
confidence: z16.number().min(0).max(1),
|
|
12057
|
+
evidenceRefs: z16.array(EntityRefSchema).min(1)
|
|
11957
12058
|
}).strict();
|
|
11958
|
-
var RadarScoreModelBodySchema =
|
|
11959
|
-
contract:
|
|
12059
|
+
var RadarScoreModelBodySchema = z16.object({
|
|
12060
|
+
contract: z16.literal("RadarScoreModelBody"),
|
|
11960
12061
|
modelId: ContractIdentifierSchema,
|
|
11961
|
-
version:
|
|
12062
|
+
version: z16.number().int().positive(),
|
|
11962
12063
|
weights: RadarDecisionMetricsSchema,
|
|
11963
|
-
thresholds:
|
|
11964
|
-
explanationRules:
|
|
12064
|
+
thresholds: z16.record(z16.string(), z16.number().finite()).default({}),
|
|
12065
|
+
explanationRules: z16.record(z16.string(), z16.string().trim().min(1)).default({}),
|
|
11965
12066
|
createdAt: IsoDateTimeSchema
|
|
11966
12067
|
}).strict();
|
|
11967
|
-
var RadarScoreProjectionSchema =
|
|
11968
|
-
contract:
|
|
12068
|
+
var RadarScoreProjectionSchema = z16.object({
|
|
12069
|
+
contract: z16.literal("RadarScoreProjection"),
|
|
11969
12070
|
projectionId: ContractIdentifierSchema,
|
|
11970
12071
|
subjectRef: EntityRefSchema,
|
|
11971
12072
|
modelRef: EntityRefSchema,
|
|
11972
|
-
totalScore:
|
|
12073
|
+
totalScore: z16.number().finite(),
|
|
11973
12074
|
dimensions: RadarDecisionMetricsSchema,
|
|
11974
|
-
evidenceRefs:
|
|
12075
|
+
evidenceRefs: z16.array(EntityRefSchema).min(1),
|
|
11975
12076
|
freshnessAt: IsoDateTimeSchema
|
|
11976
12077
|
}).strict();
|
|
11977
|
-
var RadarPanoramaNodeSchema =
|
|
12078
|
+
var RadarPanoramaNodeSchema = z16.object({
|
|
11978
12079
|
ref: EntityRefSchema,
|
|
11979
|
-
label:
|
|
11980
|
-
categories:
|
|
11981
|
-
score:
|
|
12080
|
+
label: z16.string().trim().min(1),
|
|
12081
|
+
categories: z16.array(ContractIdentifierSchema).default([]),
|
|
12082
|
+
score: z16.number().finite().optional(),
|
|
11982
12083
|
freshnessAt: IsoDateTimeSchema.optional()
|
|
11983
12084
|
}).strict();
|
|
11984
|
-
var RadarPanoramaEdgeSchema =
|
|
12085
|
+
var RadarPanoramaEdgeSchema = z16.object({
|
|
11985
12086
|
sourceRef: EntityRefSchema,
|
|
11986
12087
|
targetRef: EntityRefSchema,
|
|
11987
12088
|
relation: ContractIdentifierSchema,
|
|
11988
|
-
evidenceRefs:
|
|
12089
|
+
evidenceRefs: z16.array(EntityRefSchema).default([])
|
|
11989
12090
|
}).strict();
|
|
11990
|
-
var RadarPanoramaSchema =
|
|
11991
|
-
contract:
|
|
11992
|
-
nodes:
|
|
11993
|
-
edges:
|
|
12091
|
+
var RadarPanoramaSchema = z16.object({
|
|
12092
|
+
contract: z16.literal("RadarPanorama"),
|
|
12093
|
+
nodes: z16.array(RadarPanoramaNodeSchema),
|
|
12094
|
+
edges: z16.array(RadarPanoramaEdgeSchema),
|
|
11994
12095
|
generatedAt: IsoDateTimeSchema
|
|
11995
12096
|
}).strict();
|
|
11996
|
-
var BrandGeneticsProfileSchema =
|
|
11997
|
-
contract:
|
|
12097
|
+
var BrandGeneticsProfileSchema = z16.object({
|
|
12098
|
+
contract: z16.literal("BrandGeneticsProfile"),
|
|
11998
12099
|
brandRef: EntityRefSchema,
|
|
11999
|
-
categories:
|
|
12000
|
-
signature:
|
|
12001
|
-
relatedRefs:
|
|
12002
|
-
evidenceRefs:
|
|
12100
|
+
categories: z16.array(ContractIdentifierSchema).default([]),
|
|
12101
|
+
signature: z16.record(ContractIdentifierSchema, z16.number().finite()),
|
|
12102
|
+
relatedRefs: z16.array(EntityRefSchema).default([]),
|
|
12103
|
+
evidenceRefs: z16.array(EntityRefSchema).default([]),
|
|
12003
12104
|
computedAt: IsoDateTimeSchema
|
|
12004
12105
|
}).strict();
|
|
12005
|
-
var RadarOpportunityMatrixPointSchema =
|
|
12106
|
+
var RadarOpportunityMatrixPointSchema = z16.object({
|
|
12006
12107
|
subjectRef: EntityRefSchema,
|
|
12007
|
-
label:
|
|
12008
|
-
x:
|
|
12009
|
-
y:
|
|
12010
|
-
score:
|
|
12011
|
-
evidenceRefs:
|
|
12012
|
-
}).strict();
|
|
12013
|
-
var RadarOpportunityMatrixSchema =
|
|
12014
|
-
contract:
|
|
12015
|
-
xMetric:
|
|
12016
|
-
yMetric:
|
|
12017
|
-
points:
|
|
12108
|
+
label: z16.string().trim().min(1),
|
|
12109
|
+
x: z16.number().finite(),
|
|
12110
|
+
y: z16.number().finite(),
|
|
12111
|
+
score: z16.number().finite(),
|
|
12112
|
+
evidenceRefs: z16.array(EntityRefSchema).default([])
|
|
12113
|
+
}).strict();
|
|
12114
|
+
var RadarOpportunityMatrixSchema = z16.object({
|
|
12115
|
+
contract: z16.literal("RadarOpportunityMatrix"),
|
|
12116
|
+
xMetric: z16.enum(["currentSales", "forecastSales", "searchHeat", "socialHeat", "confidence"]),
|
|
12117
|
+
yMetric: z16.enum(["currentSales", "forecastSales", "searchHeat", "socialHeat", "confidence"]),
|
|
12118
|
+
points: z16.array(RadarOpportunityMatrixPointSchema),
|
|
12018
12119
|
computedAt: IsoDateTimeSchema
|
|
12019
12120
|
}).strict();
|
|
12020
|
-
var RadarQueryBodySchema =
|
|
12021
|
-
contract:
|
|
12121
|
+
var RadarQueryBodySchema = z16.object({
|
|
12122
|
+
contract: z16.literal("RadarQueryBody"),
|
|
12022
12123
|
queryId: ContractIdentifierSchema,
|
|
12023
|
-
filters:
|
|
12024
|
-
sort:
|
|
12124
|
+
filters: z16.record(z16.string(), JsonValueSchema).default({}),
|
|
12125
|
+
sort: z16.object({
|
|
12025
12126
|
field: ContractIdentifierSchema,
|
|
12026
|
-
direction:
|
|
12127
|
+
direction: z16.enum(["asc", "desc"])
|
|
12027
12128
|
}).strict(),
|
|
12028
|
-
pageSize:
|
|
12129
|
+
pageSize: z16.number().int().min(1).max(200),
|
|
12029
12130
|
updatedAt: IsoDateTimeSchema
|
|
12030
12131
|
}).strict();
|
|
12031
|
-
var SavedRadarQuerySchema =
|
|
12032
|
-
contract:
|
|
12132
|
+
var SavedRadarQuerySchema = z16.object({
|
|
12133
|
+
contract: z16.literal("SavedRadarQuery"),
|
|
12033
12134
|
savedQueryId: ContractIdentifierSchema,
|
|
12034
12135
|
teamId: ContractIdentifierSchema,
|
|
12035
12136
|
ownerRef: EntityRefSchema,
|
|
12036
|
-
name:
|
|
12137
|
+
name: z16.string().trim().min(1),
|
|
12037
12138
|
queryRef: EntityRefSchema,
|
|
12038
|
-
expectedVersion:
|
|
12139
|
+
expectedVersion: z16.number().int().nonnegative(),
|
|
12039
12140
|
updatedAt: IsoDateTimeSchema
|
|
12040
12141
|
}).strict();
|
|
12041
|
-
var RadarSelectionSchema =
|
|
12042
|
-
contract:
|
|
12142
|
+
var RadarSelectionSchema = z16.object({
|
|
12143
|
+
contract: z16.literal("RadarSelection"),
|
|
12043
12144
|
selectionId: ContractIdentifierSchema,
|
|
12044
12145
|
teamId: ContractIdentifierSchema,
|
|
12045
12146
|
ownerRef: EntityRefSchema,
|
|
12046
|
-
subjectRefs:
|
|
12047
|
-
status:
|
|
12048
|
-
note:
|
|
12049
|
-
expectedVersion:
|
|
12147
|
+
subjectRefs: z16.array(EntityRefSchema),
|
|
12148
|
+
status: z16.enum(["stashed", "selected", "rejected", "archived"]),
|
|
12149
|
+
note: z16.string().optional(),
|
|
12150
|
+
expectedVersion: z16.number().int().nonnegative(),
|
|
12050
12151
|
updatedAt: IsoDateTimeSchema
|
|
12051
12152
|
}).strict();
|
|
12052
12153
|
var versionedRefFields = {
|
|
12053
12154
|
id: ContractIdentifierSchema,
|
|
12054
|
-
version:
|
|
12155
|
+
version: z16.union([z16.number().int().positive(), z16.string().trim().min(1)]).optional(),
|
|
12055
12156
|
ownerRepo: ContractIdentifierSchema.optional()
|
|
12056
12157
|
};
|
|
12057
|
-
var TrendRadarCollectionAssetRefSchema =
|
|
12058
|
-
kind:
|
|
12158
|
+
var TrendRadarCollectionAssetRefSchema = z16.object({
|
|
12159
|
+
kind: z16.literal("asset"),
|
|
12059
12160
|
...versionedRefFields
|
|
12060
12161
|
}).strict();
|
|
12061
|
-
var TrendRadarCollectionSelectionRefSchema =
|
|
12062
|
-
kind:
|
|
12162
|
+
var TrendRadarCollectionSelectionRefSchema = z16.object({
|
|
12163
|
+
kind: z16.literal("radar-selection"),
|
|
12063
12164
|
...versionedRefFields
|
|
12064
12165
|
}).strict();
|
|
12065
|
-
var TrendRadarCollectionRunRefSchema =
|
|
12066
|
-
kind:
|
|
12166
|
+
var TrendRadarCollectionRunRefSchema = z16.object({
|
|
12167
|
+
kind: z16.literal("radar-analysis-run"),
|
|
12067
12168
|
...versionedRefFields
|
|
12068
12169
|
}).strict();
|
|
12069
|
-
var TrendRadarCollectionSubjectRefSchema =
|
|
12070
|
-
kind:
|
|
12170
|
+
var TrendRadarCollectionSubjectRefSchema = z16.object({
|
|
12171
|
+
kind: z16.literal("hotword"),
|
|
12071
12172
|
...versionedRefFields
|
|
12072
12173
|
}).strict();
|
|
12073
|
-
var TrendRadarCollectionArtifactRefSchema =
|
|
12074
|
-
kind:
|
|
12174
|
+
var TrendRadarCollectionArtifactRefSchema = z16.object({
|
|
12175
|
+
kind: z16.literal("artifact"),
|
|
12075
12176
|
...versionedRefFields
|
|
12076
12177
|
}).strict();
|
|
12077
|
-
var TrendRadarCollectionRecipeEntrySchema =
|
|
12178
|
+
var TrendRadarCollectionRecipeEntrySchema = z16.object({
|
|
12078
12179
|
subjectRef: TrendRadarCollectionSubjectRefSchema,
|
|
12079
|
-
label:
|
|
12180
|
+
label: z16.string().trim().min(1).max(200)
|
|
12080
12181
|
}).strict();
|
|
12081
|
-
var TrendRadarCollectionRecipeSchema =
|
|
12082
|
-
category:
|
|
12083
|
-
design:
|
|
12084
|
-
audience:
|
|
12182
|
+
var TrendRadarCollectionRecipeSchema = z16.object({
|
|
12183
|
+
category: z16.array(TrendRadarCollectionRecipeEntrySchema),
|
|
12184
|
+
design: z16.array(TrendRadarCollectionRecipeEntrySchema),
|
|
12185
|
+
audience: z16.array(TrendRadarCollectionRecipeEntrySchema)
|
|
12085
12186
|
}).strict().refine(
|
|
12086
12187
|
(recipe) => recipe.category.length + recipe.design.length + recipe.audience.length > 0,
|
|
12087
12188
|
"A Trend Radar collection recipe must contain at least one subject."
|
|
12088
12189
|
);
|
|
12089
|
-
var TrendRadarCollectionDecisionAxisSchema =
|
|
12190
|
+
var TrendRadarCollectionDecisionAxisSchema = z16.object({
|
|
12090
12191
|
key: ContractIdentifierSchema,
|
|
12091
|
-
label:
|
|
12092
|
-
value:
|
|
12093
|
-
}).strict();
|
|
12094
|
-
var TrendRadarCollectionDecisionProjectionSchema =
|
|
12095
|
-
axes:
|
|
12096
|
-
overallScore:
|
|
12097
|
-
itemRank:
|
|
12098
|
-
sourceRefs:
|
|
12099
|
-
outputRefs:
|
|
12192
|
+
label: z16.string().trim().min(1).max(200).optional(),
|
|
12193
|
+
value: z16.number().finite()
|
|
12194
|
+
}).strict();
|
|
12195
|
+
var TrendRadarCollectionDecisionProjectionSchema = z16.object({
|
|
12196
|
+
axes: z16.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),
|
|
12197
|
+
overallScore: z16.number().finite().optional(),
|
|
12198
|
+
itemRank: z16.number().finite().optional(),
|
|
12199
|
+
sourceRefs: z16.array(EntityRefSchema).optional(),
|
|
12200
|
+
outputRefs: z16.array(EntityRefSchema).optional()
|
|
12100
12201
|
}).strict().superRefine((projection, context) => {
|
|
12101
12202
|
const hasProjection = Boolean(
|
|
12102
12203
|
projection.axes?.length || projection.overallScore !== void 0 || projection.itemRank !== void 0 || projection.sourceRefs?.length || projection.outputRefs?.length
|
|
@@ -12119,20 +12220,20 @@ var TrendRadarCollectionDecisionProjectionSchema = z15.object({
|
|
|
12119
12220
|
seenAxisKeys.add(axis.key);
|
|
12120
12221
|
});
|
|
12121
12222
|
});
|
|
12122
|
-
var TrendRadarCollectionArtifactProjectionSchema =
|
|
12223
|
+
var TrendRadarCollectionArtifactProjectionSchema = z16.object({
|
|
12123
12224
|
artifactRef: TrendRadarCollectionArtifactRefSchema,
|
|
12124
|
-
url:
|
|
12125
|
-
thumbnailUrl:
|
|
12126
|
-
mimeType:
|
|
12225
|
+
url: z16.string().url().optional(),
|
|
12226
|
+
thumbnailUrl: z16.string().url().optional(),
|
|
12227
|
+
mimeType: z16.string().trim().min(1).optional(),
|
|
12127
12228
|
metadata: JsonObjectSchema.optional()
|
|
12128
12229
|
}).strict();
|
|
12129
|
-
var TrendRadarCollectionProjectionWritebackSchema =
|
|
12130
|
-
status:
|
|
12230
|
+
var TrendRadarCollectionProjectionWritebackSchema = z16.object({
|
|
12231
|
+
status: z16.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
12131
12232
|
updatedAt: IsoDateTimeSchema,
|
|
12132
|
-
error:
|
|
12233
|
+
error: z16.object({
|
|
12133
12234
|
code: ContractIdentifierSchema,
|
|
12134
|
-
message:
|
|
12135
|
-
retryable:
|
|
12235
|
+
message: z16.string().trim().min(1),
|
|
12236
|
+
retryable: z16.boolean()
|
|
12136
12237
|
}).strict().optional()
|
|
12137
12238
|
}).strict().superRefine((writeback, context) => {
|
|
12138
12239
|
if (writeback.status === "FAILED" && !writeback.error) {
|
|
@@ -12150,12 +12251,12 @@ var TrendRadarCollectionProjectionWritebackSchema = z15.object({
|
|
|
12150
12251
|
});
|
|
12151
12252
|
}
|
|
12152
12253
|
});
|
|
12153
|
-
var TrendRadarCollectionItemSchema =
|
|
12154
|
-
contract:
|
|
12155
|
-
schemaVersion:
|
|
12254
|
+
var TrendRadarCollectionItemSchema = z16.object({
|
|
12255
|
+
contract: z16.literal("TrendRadarCollectionItem"),
|
|
12256
|
+
schemaVersion: z16.literal(1),
|
|
12156
12257
|
selectionRef: TrendRadarCollectionSelectionRefSchema,
|
|
12157
12258
|
recipe: TrendRadarCollectionRecipeSchema,
|
|
12158
|
-
status:
|
|
12259
|
+
status: z16.enum(["SAVED", "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
12159
12260
|
latestRunRef: TrendRadarCollectionRunRefSchema.optional(),
|
|
12160
12261
|
decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),
|
|
12161
12262
|
artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),
|
|
@@ -12163,8 +12264,8 @@ var TrendRadarCollectionItemSchema = z15.object({
|
|
|
12163
12264
|
updatedAt: IsoDateTimeSchema,
|
|
12164
12265
|
generatedAt: IsoDateTimeSchema.optional()
|
|
12165
12266
|
}).strict();
|
|
12166
|
-
var RadarAnalysisRunSchema =
|
|
12167
|
-
contract:
|
|
12267
|
+
var RadarAnalysisRunSchema = z16.object({
|
|
12268
|
+
contract: z16.literal("RadarAnalysisRun"),
|
|
12168
12269
|
runId: ContractIdentifierSchema,
|
|
12169
12270
|
teamId: ContractIdentifierSchema,
|
|
12170
12271
|
selectionRef: EntityRefSchema,
|
|
@@ -12175,66 +12276,66 @@ var RadarAnalysisRunSchema = z15.object({
|
|
|
12175
12276
|
collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),
|
|
12176
12277
|
collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),
|
|
12177
12278
|
workflowDefinitionTeamId: ContractIdentifierSchema.optional(),
|
|
12178
|
-
workflowInput:
|
|
12179
|
-
createDesignProject:
|
|
12180
|
-
designProjectName:
|
|
12279
|
+
workflowInput: z16.record(z16.string(), JsonValueSchema).default({}),
|
|
12280
|
+
createDesignProject: z16.boolean().default(true),
|
|
12281
|
+
designProjectName: z16.string().trim().min(1).max(200).optional(),
|
|
12181
12282
|
modelRef: EntityRefSchema,
|
|
12182
12283
|
requestId: ContractIdentifierSchema,
|
|
12183
12284
|
idempotencyKey: ContractIdentifierSchema,
|
|
12184
|
-
status:
|
|
12185
|
-
outputRefs:
|
|
12186
|
-
error:
|
|
12285
|
+
status: z16.enum(["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
12286
|
+
outputRefs: z16.array(EntityRefSchema).default([]),
|
|
12287
|
+
error: z16.object({
|
|
12187
12288
|
code: ContractIdentifierSchema,
|
|
12188
|
-
message:
|
|
12189
|
-
retryable:
|
|
12289
|
+
message: z16.string().trim().min(1),
|
|
12290
|
+
retryable: z16.boolean()
|
|
12190
12291
|
}).strict().optional(),
|
|
12191
12292
|
startedAt: IsoDateTimeSchema.optional(),
|
|
12192
12293
|
completedAt: IsoDateTimeSchema.optional(),
|
|
12193
12294
|
createdAt: IsoDateTimeSchema
|
|
12194
12295
|
}).strict();
|
|
12195
|
-
var RadarAnalysisAssetSchema =
|
|
12296
|
+
var RadarAnalysisAssetSchema = z16.object({
|
|
12196
12297
|
artifactRef: EntityRefSchema,
|
|
12197
12298
|
kind: ContractIdentifierSchema,
|
|
12198
|
-
mimeType:
|
|
12199
|
-
url:
|
|
12200
|
-
metadata:
|
|
12299
|
+
mimeType: z16.string().trim().min(1).optional(),
|
|
12300
|
+
url: z16.string().url(),
|
|
12301
|
+
metadata: z16.record(z16.string(), JsonValueSchema).default({}),
|
|
12201
12302
|
createdAt: IsoDateTimeSchema
|
|
12202
12303
|
}).strict();
|
|
12203
|
-
var RadarAnalysisDetailSchema =
|
|
12204
|
-
contract:
|
|
12304
|
+
var RadarAnalysisDetailSchema = z16.object({
|
|
12305
|
+
contract: z16.literal("RadarAnalysisDetail"),
|
|
12205
12306
|
run: RadarAnalysisRunSchema,
|
|
12206
|
-
runVersion:
|
|
12307
|
+
runVersion: z16.number().int().positive(),
|
|
12207
12308
|
selection: RadarSelectionSchema,
|
|
12208
|
-
outputs:
|
|
12209
|
-
assets:
|
|
12210
|
-
lineage:
|
|
12309
|
+
outputs: z16.array(OutputRecordSchema),
|
|
12310
|
+
assets: z16.array(RadarAnalysisAssetSchema),
|
|
12311
|
+
lineage: z16.array(LineageRecordSchema)
|
|
12211
12312
|
}).strict();
|
|
12212
|
-
var RadarActionRecordSchema =
|
|
12213
|
-
contract:
|
|
12313
|
+
var RadarActionRecordSchema = z16.object({
|
|
12314
|
+
contract: z16.literal("RadarActionRecord"),
|
|
12214
12315
|
actionId: ContractIdentifierSchema,
|
|
12215
12316
|
teamId: ContractIdentifierSchema,
|
|
12216
12317
|
actorRef: EntityRefSchema,
|
|
12217
|
-
action:
|
|
12318
|
+
action: z16.enum(["stash", "select", "reject", "archive", "launch", "retry", "replay", "rollback"]),
|
|
12218
12319
|
targetRef: EntityRefSchema,
|
|
12219
12320
|
requestId: ContractIdentifierSchema,
|
|
12220
12321
|
idempotencyKey: ContractIdentifierSchema,
|
|
12221
|
-
expectedVersion:
|
|
12322
|
+
expectedVersion: z16.number().int().nonnegative(),
|
|
12222
12323
|
occurredAt: IsoDateTimeSchema
|
|
12223
12324
|
}).strict();
|
|
12224
|
-
var RadarWritebackRecordSchema =
|
|
12225
|
-
contract:
|
|
12325
|
+
var RadarWritebackRecordSchema = z16.object({
|
|
12326
|
+
contract: z16.literal("RadarWritebackRecord"),
|
|
12226
12327
|
writebackId: ContractIdentifierSchema,
|
|
12227
12328
|
actionRef: EntityRefSchema,
|
|
12228
12329
|
targetRef: EntityRefSchema,
|
|
12229
|
-
status:
|
|
12230
|
-
resultingVersion:
|
|
12231
|
-
error:
|
|
12330
|
+
status: z16.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
12331
|
+
resultingVersion: z16.number().int().nonnegative().optional(),
|
|
12332
|
+
error: z16.string().trim().min(1).optional(),
|
|
12232
12333
|
recordedAt: IsoDateTimeSchema
|
|
12233
12334
|
}).strict();
|
|
12234
12335
|
|
|
12235
12336
|
// src/contracts/workflow-definition.ts
|
|
12236
|
-
import { z as
|
|
12237
|
-
var ConductorTaskTypeSchema =
|
|
12337
|
+
import { z as z17 } from "zod";
|
|
12338
|
+
var ConductorTaskTypeSchema = z17.enum([
|
|
12238
12339
|
"SIMPLE",
|
|
12239
12340
|
"DYNAMIC",
|
|
12240
12341
|
"FORK_JOIN",
|
|
@@ -12283,46 +12384,46 @@ var requiredTaskFields = {
|
|
|
12283
12384
|
WAIT: ["inputParameters"],
|
|
12284
12385
|
TERMINATE: ["inputParameters"]
|
|
12285
12386
|
};
|
|
12286
|
-
var ConductorTaskDefinitionSchema =
|
|
12287
|
-
() =>
|
|
12387
|
+
var ConductorTaskDefinitionSchema = z17.lazy(
|
|
12388
|
+
() => z17.object({
|
|
12288
12389
|
name: ContractIdentifierSchema,
|
|
12289
12390
|
taskReferenceName: ContractIdentifierSchema,
|
|
12290
12391
|
type: ConductorTaskTypeSchema,
|
|
12291
|
-
inputParameters:
|
|
12292
|
-
startDelay:
|
|
12293
|
-
optional:
|
|
12294
|
-
asyncComplete:
|
|
12295
|
-
rateLimited:
|
|
12296
|
-
retryCount:
|
|
12297
|
-
taskDefinition:
|
|
12298
|
-
loopCondition:
|
|
12299
|
-
loopOver:
|
|
12300
|
-
sink:
|
|
12301
|
-
forkTasks:
|
|
12302
|
-
joinOn:
|
|
12303
|
-
defaultExclusiveJoinTask:
|
|
12304
|
-
dynamicForkTasksParam:
|
|
12305
|
-
dynamicForkTasksInputParamName:
|
|
12306
|
-
subWorkflowParam:
|
|
12307
|
-
$ref:
|
|
12392
|
+
inputParameters: z17.record(z17.string(), JsonValueSchema).optional(),
|
|
12393
|
+
startDelay: z17.number().int().nonnegative().optional(),
|
|
12394
|
+
optional: z17.boolean().optional(),
|
|
12395
|
+
asyncComplete: z17.boolean().optional(),
|
|
12396
|
+
rateLimited: z17.boolean().optional(),
|
|
12397
|
+
retryCount: z17.number().int().nonnegative().optional(),
|
|
12398
|
+
taskDefinition: z17.record(z17.string(), JsonValueSchema).optional(),
|
|
12399
|
+
loopCondition: z17.string().optional(),
|
|
12400
|
+
loopOver: z17.array(ConductorTaskDefinitionSchema).optional(),
|
|
12401
|
+
sink: z17.string().optional(),
|
|
12402
|
+
forkTasks: z17.array(z17.array(ConductorTaskDefinitionSchema)).optional(),
|
|
12403
|
+
joinOn: z17.array(ContractIdentifierSchema).optional(),
|
|
12404
|
+
defaultExclusiveJoinTask: z17.array(ContractIdentifierSchema).optional(),
|
|
12405
|
+
dynamicForkTasksParam: z17.string().optional(),
|
|
12406
|
+
dynamicForkTasksInputParamName: z17.string().optional(),
|
|
12407
|
+
subWorkflowParam: z17.object({
|
|
12408
|
+
$ref: z17.string().optional(),
|
|
12308
12409
|
name: ContractIdentifierSchema,
|
|
12309
|
-
version:
|
|
12310
|
-
taskToDomain:
|
|
12311
|
-
workflowDefinition:
|
|
12410
|
+
version: z17.number().int().positive().optional(),
|
|
12411
|
+
taskToDomain: z17.record(z17.string(), z17.string()).optional(),
|
|
12412
|
+
workflowDefinition: z17.record(z17.string(), JsonValueSchema).optional()
|
|
12312
12413
|
}).strict().optional(),
|
|
12313
|
-
decisionCases:
|
|
12314
|
-
defaultCase:
|
|
12315
|
-
evaluatorType:
|
|
12316
|
-
expression:
|
|
12414
|
+
decisionCases: z17.record(z17.string(), z17.array(ConductorTaskDefinitionSchema)).optional(),
|
|
12415
|
+
defaultCase: z17.array(ConductorTaskDefinitionSchema).optional(),
|
|
12416
|
+
evaluatorType: z17.enum(["value-param", "javascript", "graaljs"]).optional(),
|
|
12417
|
+
expression: z17.string().optional(),
|
|
12317
12418
|
__alias: JsonValueSchema.optional(),
|
|
12318
|
-
callbackFromWorker:
|
|
12419
|
+
callbackFromWorker: z17.boolean().optional(),
|
|
12319
12420
|
caseExpression: JsonValueSchema.optional(),
|
|
12320
|
-
caseValueParam:
|
|
12321
|
-
dependencies:
|
|
12322
|
-
description:
|
|
12323
|
-
dynamicTaskNameParam:
|
|
12324
|
-
joinMode:
|
|
12325
|
-
permissive:
|
|
12421
|
+
caseValueParam: z17.string().optional(),
|
|
12422
|
+
dependencies: z17.array(JsonValueSchema).optional(),
|
|
12423
|
+
description: z17.string().optional(),
|
|
12424
|
+
dynamicTaskNameParam: z17.string().optional(),
|
|
12425
|
+
joinMode: z17.string().optional(),
|
|
12426
|
+
permissive: z17.boolean().optional(),
|
|
12326
12427
|
joinTaskRef: ContractIdentifierSchema.optional(),
|
|
12327
12428
|
forkTaskRef: ContractIdentifierSchema.optional()
|
|
12328
12429
|
}).strict().superRefine((task, context) => {
|
|
@@ -12336,29 +12437,29 @@ var ConductorTaskDefinitionSchema = z16.lazy(
|
|
|
12336
12437
|
}
|
|
12337
12438
|
})
|
|
12338
12439
|
);
|
|
12339
|
-
var ConductorWorkflowDefinitionSchema =
|
|
12340
|
-
ownerApp:
|
|
12341
|
-
createTime:
|
|
12342
|
-
updateTime:
|
|
12343
|
-
createdBy:
|
|
12344
|
-
updatedBy:
|
|
12440
|
+
var ConductorWorkflowDefinitionSchema = z17.object({
|
|
12441
|
+
ownerApp: z17.string().optional(),
|
|
12442
|
+
createTime: z17.number().int().nonnegative().optional(),
|
|
12443
|
+
updateTime: z17.number().int().nonnegative().optional(),
|
|
12444
|
+
createdBy: z17.string().optional(),
|
|
12445
|
+
updatedBy: z17.string().optional(),
|
|
12345
12446
|
name: ContractIdentifierSchema,
|
|
12346
|
-
description:
|
|
12347
|
-
version:
|
|
12348
|
-
tasks:
|
|
12349
|
-
inputParameters:
|
|
12350
|
-
outputParameters:
|
|
12447
|
+
description: z17.string().optional(),
|
|
12448
|
+
version: z17.number().int().positive(),
|
|
12449
|
+
tasks: z17.array(ConductorTaskDefinitionSchema),
|
|
12450
|
+
inputParameters: z17.array(ContractIdentifierSchema),
|
|
12451
|
+
outputParameters: z17.record(z17.string(), JsonValueSchema).optional(),
|
|
12351
12452
|
failureWorkflow: ContractIdentifierSchema.optional(),
|
|
12352
|
-
schemaVersion:
|
|
12353
|
-
restartable:
|
|
12354
|
-
workflowStatusListenerEnabled:
|
|
12355
|
-
ownerEmail:
|
|
12356
|
-
timeoutPolicy:
|
|
12357
|
-
timeoutSeconds:
|
|
12358
|
-
variables:
|
|
12359
|
-
inputTemplate:
|
|
12360
|
-
}).strict();
|
|
12361
|
-
var WorkflowParameterTypeSchema =
|
|
12453
|
+
schemaVersion: z17.number().int().positive().optional(),
|
|
12454
|
+
restartable: z17.boolean().optional(),
|
|
12455
|
+
workflowStatusListenerEnabled: z17.boolean().optional(),
|
|
12456
|
+
ownerEmail: z17.string().email().optional(),
|
|
12457
|
+
timeoutPolicy: z17.enum(["TIME_OUT_WF", "ALERT_ONLY"]).optional(),
|
|
12458
|
+
timeoutSeconds: z17.number().int().nonnegative(),
|
|
12459
|
+
variables: z17.record(z17.string(), JsonValueSchema).optional(),
|
|
12460
|
+
inputTemplate: z17.record(z17.string(), JsonValueSchema).optional()
|
|
12461
|
+
}).strict();
|
|
12462
|
+
var WorkflowParameterTypeSchema = z17.enum([
|
|
12362
12463
|
"string",
|
|
12363
12464
|
"file",
|
|
12364
12465
|
"number",
|
|
@@ -12368,213 +12469,213 @@ var WorkflowParameterTypeSchema = z16.enum([
|
|
|
12368
12469
|
"notice",
|
|
12369
12470
|
"canvas-assist"
|
|
12370
12471
|
]);
|
|
12371
|
-
var WorkflowConditionalStateSchema =
|
|
12372
|
-
conditions:
|
|
12373
|
-
|
|
12374
|
-
field:
|
|
12375
|
-
operator:
|
|
12472
|
+
var WorkflowConditionalStateSchema = z17.object({
|
|
12473
|
+
conditions: z17.array(
|
|
12474
|
+
z17.object({
|
|
12475
|
+
field: z17.string(),
|
|
12476
|
+
operator: z17.enum(["is", "isNot", "isGreaterThan", "isLessThan", "isGreaterThanOrEqual", "isLessThanOrEqual", "in", "notIn"]),
|
|
12376
12477
|
value: JsonValueSchema
|
|
12377
12478
|
}).strict()
|
|
12378
12479
|
),
|
|
12379
|
-
logic:
|
|
12380
|
-
}).strict();
|
|
12381
|
-
var ImageSelectMappingAppearanceSchema =
|
|
12382
|
-
columns:
|
|
12383
|
-
cardSize:
|
|
12384
|
-
imageAspectRatio:
|
|
12385
|
-
gap:
|
|
12386
|
-
radius:
|
|
12387
|
-
borderStyle:
|
|
12388
|
-
borderWidth:
|
|
12389
|
-
enableScroll:
|
|
12390
|
-
maxHeight:
|
|
12391
|
-
enableCollapse:
|
|
12392
|
-
visibleRows:
|
|
12393
|
-
hideLabel:
|
|
12394
|
-
hideDescription:
|
|
12395
|
-
hideValue:
|
|
12396
|
-
}).strict();
|
|
12397
|
-
var ComfyWorkflowPortBindingSchema =
|
|
12398
|
-
node:
|
|
12399
|
-
key:
|
|
12400
|
-
}).strict();
|
|
12401
|
-
var WorkflowParameterTypeOptionsSchema =
|
|
12402
|
-
editor:
|
|
12403
|
-
editorLanguage:
|
|
12404
|
-
maxValue:
|
|
12405
|
-
minValue:
|
|
12406
|
-
max:
|
|
12407
|
-
min:
|
|
12408
|
-
multipleValues:
|
|
12409
|
-
numberPrecision:
|
|
12410
|
-
password:
|
|
12411
|
-
rows:
|
|
12412
|
-
assetType:
|
|
12413
|
-
accept:
|
|
12414
|
-
maxSize:
|
|
12415
|
-
fileType:
|
|
12416
|
-
aiMultiShotMainImageField:
|
|
12417
|
-
aiMultiShotWorkflowAppId:
|
|
12418
|
-
aiMultiShotWorkflowId:
|
|
12419
|
-
allowCustomInput:
|
|
12420
|
-
allowUploadVideo:
|
|
12421
|
-
aspectRatioField:
|
|
12422
|
-
assemblyValueType:
|
|
12423
|
-
autoAnalyzeDesignImage:
|
|
12424
|
-
autoDetectAspectRatio:
|
|
12425
|
-
autoIncrementId:
|
|
12480
|
+
logic: z17.enum(["AND", "OR"]).optional()
|
|
12481
|
+
}).strict();
|
|
12482
|
+
var ImageSelectMappingAppearanceSchema = z17.object({
|
|
12483
|
+
columns: z17.number().int().min(1).max(4).optional(),
|
|
12484
|
+
cardSize: z17.enum(["sm", "md", "lg"]).optional(),
|
|
12485
|
+
imageAspectRatio: z17.enum(["square", "4:5", "3:4", "16:9"]).optional(),
|
|
12486
|
+
gap: z17.enum(["sm", "md", "lg"]).optional(),
|
|
12487
|
+
radius: z17.enum(["sm", "md", "lg", "xl"]).optional(),
|
|
12488
|
+
borderStyle: z17.enum(["none", "soft", "strong"]).optional(),
|
|
12489
|
+
borderWidth: z17.union([z17.literal(0), z17.literal(1), z17.literal(2)]).optional(),
|
|
12490
|
+
enableScroll: z17.boolean().optional(),
|
|
12491
|
+
maxHeight: z17.number().int().min(160).max(1200).optional(),
|
|
12492
|
+
enableCollapse: z17.boolean().optional(),
|
|
12493
|
+
visibleRows: z17.number().int().min(1).max(6).optional(),
|
|
12494
|
+
hideLabel: z17.boolean().optional(),
|
|
12495
|
+
hideDescription: z17.boolean().optional(),
|
|
12496
|
+
hideValue: z17.boolean().optional()
|
|
12497
|
+
}).strict();
|
|
12498
|
+
var ComfyWorkflowPortBindingSchema = z17.object({
|
|
12499
|
+
node: z17.union([z17.string(), z17.number()]),
|
|
12500
|
+
key: z17.string().optional()
|
|
12501
|
+
}).strict();
|
|
12502
|
+
var WorkflowParameterTypeOptionsSchema = z17.object({
|
|
12503
|
+
editor: z17.enum(["code", "codeNodeEditor", "htmlEditor", "sqlEditor", "json"]).optional(),
|
|
12504
|
+
editorLanguage: z17.enum(["javaScript", "json", "python", "sql"]).optional(),
|
|
12505
|
+
maxValue: z17.number().optional(),
|
|
12506
|
+
minValue: z17.number().optional(),
|
|
12507
|
+
max: z17.number().optional(),
|
|
12508
|
+
min: z17.number().optional(),
|
|
12509
|
+
multipleValues: z17.boolean().optional(),
|
|
12510
|
+
numberPrecision: z17.number().nonnegative().optional(),
|
|
12511
|
+
password: z17.boolean().optional(),
|
|
12512
|
+
rows: z17.number().int().positive().optional(),
|
|
12513
|
+
assetType: z17.string().optional(),
|
|
12514
|
+
accept: z17.string().optional(),
|
|
12515
|
+
maxSize: z17.number().positive().optional(),
|
|
12516
|
+
fileType: z17.string().optional(),
|
|
12517
|
+
aiMultiShotMainImageField: z17.string().optional(),
|
|
12518
|
+
aiMultiShotWorkflowAppId: z17.string().optional(),
|
|
12519
|
+
aiMultiShotWorkflowId: z17.string().optional(),
|
|
12520
|
+
allowCustomInput: z17.boolean().optional(),
|
|
12521
|
+
allowUploadVideo: z17.boolean().optional(),
|
|
12522
|
+
aspectRatioField: z17.string().optional(),
|
|
12523
|
+
assemblyValueType: z17.string().optional(),
|
|
12524
|
+
autoAnalyzeDesignImage: z17.boolean().optional(),
|
|
12525
|
+
autoDetectAspectRatio: z17.boolean().optional(),
|
|
12526
|
+
autoIncrementId: z17.boolean().optional(),
|
|
12426
12527
|
comfyOptions: ComfyWorkflowPortBindingSchema.optional(),
|
|
12427
|
-
comfyuiModelServerId:
|
|
12428
|
-
comfyuiModelTypeName:
|
|
12528
|
+
comfyuiModelServerId: z17.string().optional(),
|
|
12529
|
+
comfyuiModelTypeName: z17.string().optional(),
|
|
12429
12530
|
defaultCustomInput: JsonValueSchema.optional(),
|
|
12430
|
-
descriptionAlert:
|
|
12431
|
-
disabled:
|
|
12432
|
-
editable:
|
|
12433
|
-
enableAiMultiShot:
|
|
12434
|
-
enableBooleanSwitchMode:
|
|
12435
|
-
enableClear:
|
|
12436
|
-
enableExpand:
|
|
12437
|
-
enableImageMask:
|
|
12438
|
-
enableImageOverlay:
|
|
12439
|
-
enablePopupEditor:
|
|
12440
|
-
enablePromptFontSize:
|
|
12441
|
-
enableReset:
|
|
12442
|
-
enableSelectItemIcon:
|
|
12443
|
-
enableSelectList:
|
|
12444
|
-
enableSelectSearch:
|
|
12445
|
-
enableSliderEnterMode:
|
|
12446
|
-
enableVoice:
|
|
12447
|
-
expandButtonText:
|
|
12448
|
-
foldUp:
|
|
12449
|
-
hidden:
|
|
12450
|
-
hideRequiredDot:
|
|
12451
|
-
inlineTitleWithSelect:
|
|
12452
|
-
knowledgeGraphButtonText:
|
|
12453
|
-
identifyAttributeCount:
|
|
12454
|
-
identifyAttributes:
|
|
12455
|
-
identifyMaxVariants:
|
|
12456
|
-
identifySourceField:
|
|
12457
|
-
imageOverlayBaseField:
|
|
12458
|
-
imageOverlayOverlayField:
|
|
12531
|
+
descriptionAlert: z17.boolean().optional(),
|
|
12532
|
+
disabled: z17.union([z17.boolean(), WorkflowConditionalStateSchema]).optional(),
|
|
12533
|
+
editable: z17.union([z17.boolean(), WorkflowConditionalStateSchema]).optional(),
|
|
12534
|
+
enableAiMultiShot: z17.boolean().optional(),
|
|
12535
|
+
enableBooleanSwitchMode: z17.boolean().optional(),
|
|
12536
|
+
enableClear: z17.boolean().optional(),
|
|
12537
|
+
enableExpand: z17.boolean().optional(),
|
|
12538
|
+
enableImageMask: z17.boolean().optional(),
|
|
12539
|
+
enableImageOverlay: z17.boolean().optional(),
|
|
12540
|
+
enablePopupEditor: z17.boolean().optional(),
|
|
12541
|
+
enablePromptFontSize: z17.boolean().optional(),
|
|
12542
|
+
enableReset: z17.boolean().optional(),
|
|
12543
|
+
enableSelectItemIcon: z17.boolean().optional(),
|
|
12544
|
+
enableSelectList: z17.boolean().optional(),
|
|
12545
|
+
enableSelectSearch: z17.boolean().optional(),
|
|
12546
|
+
enableSliderEnterMode: z17.boolean().optional(),
|
|
12547
|
+
enableVoice: z17.boolean().optional(),
|
|
12548
|
+
expandButtonText: z17.string().optional(),
|
|
12549
|
+
foldUp: z17.boolean().optional(),
|
|
12550
|
+
hidden: z17.boolean().optional(),
|
|
12551
|
+
hideRequiredDot: z17.boolean().optional(),
|
|
12552
|
+
inlineTitleWithSelect: z17.boolean().optional(),
|
|
12553
|
+
knowledgeGraphButtonText: z17.string().optional(),
|
|
12554
|
+
identifyAttributeCount: z17.union([z17.number().nonnegative(), z17.string().min(1), z17.object({ min: z17.number().nonnegative().optional(), max: z17.number().nonnegative().optional() }).strict()]).optional(),
|
|
12555
|
+
identifyAttributes: z17.array(JsonValueSchema).optional(),
|
|
12556
|
+
identifyMaxVariants: z17.number().int().nonnegative().optional(),
|
|
12557
|
+
identifySourceField: z17.string().optional(),
|
|
12558
|
+
imageOverlayBaseField: z17.string().optional(),
|
|
12559
|
+
imageOverlayOverlayField: z17.string().optional(),
|
|
12459
12560
|
imageSelectMappingAppearance: ImageSelectMappingAppearanceSchema.optional(),
|
|
12460
|
-
imageSelectMappingColumns:
|
|
12461
|
-
imageSelectMappingEnableCustomUpload:
|
|
12462
|
-
imageSelectMappingHideLabel:
|
|
12463
|
-
imageSelectMappingHideLink:
|
|
12464
|
-
imageSelectMappingHideMeta:
|
|
12465
|
-
imageSelectMappingInlineUseLargeUploadBox:
|
|
12466
|
-
imageSelectMappingPromptField:
|
|
12467
|
-
imageSelectMappingTabOrder:
|
|
12468
|
-
imageSelectMappingTabWidthMode:
|
|
12561
|
+
imageSelectMappingColumns: z17.number().int().min(1).max(4).optional(),
|
|
12562
|
+
imageSelectMappingEnableCustomUpload: z17.boolean().optional(),
|
|
12563
|
+
imageSelectMappingHideLabel: z17.boolean().optional(),
|
|
12564
|
+
imageSelectMappingHideLink: z17.boolean().optional(),
|
|
12565
|
+
imageSelectMappingHideMeta: z17.boolean().optional(),
|
|
12566
|
+
imageSelectMappingInlineUseLargeUploadBox: z17.boolean().optional(),
|
|
12567
|
+
imageSelectMappingPromptField: z17.string().optional(),
|
|
12568
|
+
imageSelectMappingTabOrder: z17.enum(["template-first", "upload-first"]).optional(),
|
|
12569
|
+
imageSelectMappingTabWidthMode: z17.enum(["content", "fill"]).optional(),
|
|
12469
12570
|
imageSelectMappingTemplatePrompt: LocalizedTextSchema.optional(),
|
|
12470
12571
|
imageSelectMappingTemplateTabTitle: LocalizedTextSchema.optional(),
|
|
12471
|
-
imageSelectMappingUploadMode:
|
|
12572
|
+
imageSelectMappingUploadMode: z17.enum(["tabs", "inline"]).optional(),
|
|
12472
12573
|
imageSelectMappingUploadPrompt: LocalizedTextSchema.optional(),
|
|
12473
12574
|
imageSelectMappingUploadTabTitle: LocalizedTextSchema.optional(),
|
|
12474
|
-
endpoints:
|
|
12475
|
-
examples:
|
|
12575
|
+
endpoints: z17.array(JsonValueSchema).optional(),
|
|
12576
|
+
examples: z17.array(JsonValueSchema).optional(),
|
|
12476
12577
|
extraData: JsonValueSchema.optional(),
|
|
12477
12578
|
layer: JsonValueSchema.optional(),
|
|
12478
12579
|
map: JsonValueSchema.optional(),
|
|
12479
|
-
multiline:
|
|
12480
|
-
options:
|
|
12481
|
-
originalFiles:
|
|
12580
|
+
multiline: z17.boolean().optional(),
|
|
12581
|
+
options: z17.array(JsonValueSchema).optional(),
|
|
12582
|
+
originalFiles: z17.array(JsonValueSchema).optional(),
|
|
12482
12583
|
placeholder: LocalizedTextSchema.optional(),
|
|
12483
|
-
preserveSelectListOrder:
|
|
12584
|
+
preserveSelectListOrder: z17.boolean().optional(),
|
|
12484
12585
|
promptDictionary: JsonValueSchema.optional(),
|
|
12485
|
-
promptFontSize:
|
|
12586
|
+
promptFontSize: z17.number().optional(),
|
|
12486
12587
|
promptModeToggle: JsonValueSchema.optional(),
|
|
12487
|
-
requireActiveSelectFilter:
|
|
12488
|
-
restoreDefaultOnEmptyEnter:
|
|
12489
|
-
search:
|
|
12490
|
-
selectButtonEnableCollapse:
|
|
12491
|
-
selectButtonVisibleRows:
|
|
12492
|
-
selectList:
|
|
12493
|
-
selectListDisplayMode:
|
|
12494
|
-
selectPromptField:
|
|
12495
|
-
showAddLocalFileButton:
|
|
12496
|
-
singleColumn:
|
|
12497
|
-
singleFrameForMultiple:
|
|
12498
|
-
textSingleLine:
|
|
12499
|
-
textareaMiniHeight:
|
|
12588
|
+
requireActiveSelectFilter: z17.boolean().optional(),
|
|
12589
|
+
restoreDefaultOnEmptyEnter: z17.boolean().optional(),
|
|
12590
|
+
search: z17.boolean().optional(),
|
|
12591
|
+
selectButtonEnableCollapse: z17.boolean().optional(),
|
|
12592
|
+
selectButtonVisibleRows: z17.number().int().positive().optional(),
|
|
12593
|
+
selectList: z17.array(JsonValueSchema).optional(),
|
|
12594
|
+
selectListDisplayMode: z17.string().optional(),
|
|
12595
|
+
selectPromptField: z17.string().optional(),
|
|
12596
|
+
showAddLocalFileButton: z17.boolean().optional(),
|
|
12597
|
+
singleColumn: z17.boolean().optional(),
|
|
12598
|
+
singleFrameForMultiple: z17.boolean().optional(),
|
|
12599
|
+
textSingleLine: z17.boolean().optional(),
|
|
12600
|
+
textareaMiniHeight: z17.number().nonnegative().optional(),
|
|
12500
12601
|
tips: LocalizedTextSchema.optional(),
|
|
12501
12602
|
visibility: JsonValueSchema.optional(),
|
|
12502
|
-
voiceButtonText:
|
|
12503
|
-
designAnalysisFields:
|
|
12504
|
-
designAnalysisFillStrategy:
|
|
12505
|
-
designAnalysisMaxFields:
|
|
12506
|
-
designAnalysisType:
|
|
12507
|
-
designAnalysisFieldPrefix:
|
|
12508
|
-
}).strict();
|
|
12509
|
-
var WorkflowParameterSchema =
|
|
12510
|
-
() =>
|
|
12603
|
+
voiceButtonText: z17.string().optional(),
|
|
12604
|
+
designAnalysisFields: z17.array(JsonValueSchema).optional(),
|
|
12605
|
+
designAnalysisFillStrategy: z17.string().optional(),
|
|
12606
|
+
designAnalysisMaxFields: z17.number().int().nonnegative().optional(),
|
|
12607
|
+
designAnalysisType: z17.string().optional(),
|
|
12608
|
+
designAnalysisFieldPrefix: z17.string().optional()
|
|
12609
|
+
}).strict();
|
|
12610
|
+
var WorkflowParameterSchema = z17.lazy(
|
|
12611
|
+
() => z17.object({
|
|
12511
12612
|
displayName: LocalizedTextSchema,
|
|
12512
12613
|
name: ContractIdentifierSchema,
|
|
12513
12614
|
type: WorkflowParameterTypeSchema,
|
|
12514
12615
|
typeOptions: WorkflowParameterTypeOptionsSchema.optional(),
|
|
12515
12616
|
default: JsonValueSchema.optional(),
|
|
12516
12617
|
description: LocalizedTextSchema.optional(),
|
|
12517
|
-
hint:
|
|
12518
|
-
displayOptions:
|
|
12519
|
-
hide:
|
|
12520
|
-
show:
|
|
12618
|
+
hint: z17.string().optional(),
|
|
12619
|
+
displayOptions: z17.object({
|
|
12620
|
+
hide: z17.record(z17.string(), z17.array(JsonValueSchema)).optional(),
|
|
12621
|
+
show: z17.record(z17.string(), z17.array(JsonValueSchema)).optional()
|
|
12521
12622
|
}).strict().optional(),
|
|
12522
|
-
options:
|
|
12523
|
-
|
|
12623
|
+
options: z17.array(z17.union([
|
|
12624
|
+
z17.object({ name: LocalizedTextSchema, value: z17.union([z17.string(), z17.number(), z17.boolean()]), action: z17.string().optional(), description: LocalizedTextSchema.optional() }).strict(),
|
|
12524
12625
|
WorkflowParameterSchema,
|
|
12525
|
-
|
|
12626
|
+
z17.object({ displayName: z17.string(), name: ContractIdentifierSchema, values: z17.array(WorkflowParameterSchema) }).strict()
|
|
12526
12627
|
])).optional(),
|
|
12527
12628
|
placeholder: LocalizedTextSchema.optional(),
|
|
12528
|
-
isNodeSetting:
|
|
12529
|
-
noDataExpression:
|
|
12530
|
-
required:
|
|
12531
|
-
example:
|
|
12532
|
-
extractValue:
|
|
12533
|
-
properties:
|
|
12534
|
-
assetType:
|
|
12535
|
-
flag:
|
|
12536
|
-
enableExpand:
|
|
12537
|
-
enableVoice:
|
|
12538
|
-
expandButtonText:
|
|
12539
|
-
knowledgeGraphButtonText:
|
|
12540
|
-
selectListDisplayMode:
|
|
12541
|
-
voiceButtonText:
|
|
12629
|
+
isNodeSetting: z17.boolean().optional(),
|
|
12630
|
+
noDataExpression: z17.boolean().optional(),
|
|
12631
|
+
required: z17.boolean().optional(),
|
|
12632
|
+
example: z17.string().optional(),
|
|
12633
|
+
extractValue: z17.object({ type: z17.literal("regex"), regex: z17.string() }).strict().optional(),
|
|
12634
|
+
properties: z17.array(WorkflowParameterSchema).optional(),
|
|
12635
|
+
assetType: z17.string().optional(),
|
|
12636
|
+
flag: z17.boolean().optional(),
|
|
12637
|
+
enableExpand: z17.boolean().optional(),
|
|
12638
|
+
enableVoice: z17.boolean().optional(),
|
|
12639
|
+
expandButtonText: z17.string().optional(),
|
|
12640
|
+
knowledgeGraphButtonText: z17.string().optional(),
|
|
12641
|
+
selectListDisplayMode: z17.string().optional(),
|
|
12642
|
+
voiceButtonText: z17.string().optional()
|
|
12542
12643
|
}).strict()
|
|
12543
12644
|
);
|
|
12544
|
-
var WorkflowOutputBindingSchema =
|
|
12545
|
-
var WorkflowNodeSchema =
|
|
12645
|
+
var WorkflowOutputBindingSchema = z17.object({ key: ContractIdentifierSchema, value: z17.string() }).strict();
|
|
12646
|
+
var WorkflowNodeSchema = z17.object({
|
|
12546
12647
|
id: ContractIdentifierSchema,
|
|
12547
12648
|
referenceName: ContractIdentifierSchema,
|
|
12548
12649
|
capabilityRef: ContractIdentifierSchema,
|
|
12549
12650
|
capabilityVersion: ContractIdentifierSchema.optional(),
|
|
12550
|
-
inputBindings:
|
|
12551
|
-
configuration:
|
|
12651
|
+
inputBindings: z17.record(z17.string(), JsonValueSchema).default({}),
|
|
12652
|
+
configuration: z17.object({ executor: z17.literal("conductor"), task: ConductorTaskDefinitionSchema }).strict()
|
|
12552
12653
|
}).strict().superRefine((node, context) => {
|
|
12553
12654
|
if (node.configuration.task.taskReferenceName !== node.referenceName) context.addIssue({ code: "custom", path: ["configuration", "task", "taskReferenceName"], message: "Conductor task reference must match node referenceName." });
|
|
12554
12655
|
if (node.configuration.task.name !== node.capabilityRef) context.addIssue({ code: "custom", path: ["configuration", "task", "name"], message: "Conductor task name must match node capabilityRef." });
|
|
12555
12656
|
if (JSON.stringify(node.configuration.task.inputParameters ?? {}) !== JSON.stringify(node.inputBindings)) context.addIssue({ code: "custom", path: ["configuration", "task", "inputParameters"], message: "Conductor task inputs must match node inputBindings." });
|
|
12556
12657
|
});
|
|
12557
|
-
var WorkflowEdgeSchema =
|
|
12658
|
+
var WorkflowEdgeSchema = z17.object({
|
|
12558
12659
|
from: ContractIdentifierSchema,
|
|
12559
12660
|
to: ContractIdentifierSchema,
|
|
12560
12661
|
outputPort: ContractIdentifierSchema.optional(),
|
|
12561
12662
|
inputPort: ContractIdentifierSchema.optional(),
|
|
12562
|
-
condition:
|
|
12663
|
+
condition: z17.string().optional()
|
|
12563
12664
|
}).strict();
|
|
12564
|
-
var WorkflowTriggerSchema =
|
|
12665
|
+
var WorkflowTriggerSchema = z17.object({
|
|
12565
12666
|
id: ContractIdentifierSchema,
|
|
12566
|
-
type:
|
|
12567
|
-
enabled:
|
|
12568
|
-
schedule:
|
|
12569
|
-
webhook:
|
|
12570
|
-
path:
|
|
12571
|
-
method:
|
|
12572
|
-
auth:
|
|
12573
|
-
basicAuth:
|
|
12574
|
-
headerAuth:
|
|
12575
|
-
responseUntil:
|
|
12667
|
+
type: z17.enum(["manual", "schedule", "webhook", "event", "api"]),
|
|
12668
|
+
enabled: z17.boolean(),
|
|
12669
|
+
schedule: z17.object({ cron: z17.string().trim().min(1) }).strict().optional(),
|
|
12670
|
+
webhook: z17.object({
|
|
12671
|
+
path: z17.string().trim().min(1).optional(),
|
|
12672
|
+
method: z17.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"]),
|
|
12673
|
+
auth: z17.enum(["NONE", "BASIC", "CUSTOM_HEADER"]),
|
|
12674
|
+
basicAuth: z17.object({ username: z17.string(), password: z17.string() }).strict().optional(),
|
|
12675
|
+
headerAuth: z17.object({ name: z17.string().trim().min(1), value: z17.string() }).strict().optional(),
|
|
12676
|
+
responseUntil: z17.enum(["WORKFLOW_STARTED", "WORKFLOW_COMPLETED_OR_FINISHED"])
|
|
12576
12677
|
}).strict().optional(),
|
|
12577
|
-
event:
|
|
12678
|
+
event: z17.object({
|
|
12578
12679
|
eventType: ContractIdentifierSchema,
|
|
12579
12680
|
configuration: JsonValueSchema.optional()
|
|
12580
12681
|
}).strict().optional()
|
|
@@ -12583,63 +12684,63 @@ var WorkflowTriggerSchema = z16.object({
|
|
|
12583
12684
|
if (trigger.type === "webhook" && !trigger.webhook) context.addIssue({ code: "custom", path: ["webhook"], message: "Webhook trigger requires webhook configuration." });
|
|
12584
12685
|
if (trigger.type === "event" && !trigger.event) context.addIssue({ code: "custom", path: ["event"], message: "Event trigger requires event configuration." });
|
|
12585
12686
|
});
|
|
12586
|
-
var WorkflowValidationIssueSchema =
|
|
12687
|
+
var WorkflowValidationIssueSchema = z17.object({
|
|
12587
12688
|
taskReferenceName: ContractIdentifierSchema,
|
|
12588
|
-
issueType:
|
|
12589
|
-
detailReason:
|
|
12590
|
-
humanMessage:
|
|
12689
|
+
issueType: z17.enum(["ERROR", "WARNING"]),
|
|
12690
|
+
detailReason: z17.object({ type: ContractIdentifierSchema, name: ContractIdentifierSchema, detailInformation: JsonValueSchema.optional() }).strict(),
|
|
12691
|
+
humanMessage: z17.object({ en: z17.string(), zh: z17.string() }).strict()
|
|
12591
12692
|
}).strict();
|
|
12592
|
-
var WorkflowDefinitionSchema =
|
|
12593
|
-
contract:
|
|
12693
|
+
var WorkflowDefinitionSchema = z17.object({
|
|
12694
|
+
contract: z17.literal("WorkflowDefinition"),
|
|
12594
12695
|
metadata: ContractMetadataSchema.omit({ name: true, description: true, labels: true }).extend({
|
|
12595
12696
|
name: LocalizedTextSchema,
|
|
12596
12697
|
description: LocalizedTextSchema.optional(),
|
|
12597
|
-
role:
|
|
12698
|
+
role: z17.enum(["workflow", "template"]),
|
|
12598
12699
|
teamId: ContractIdentifierSchema,
|
|
12599
12700
|
creatorRef: EntityRefSchema,
|
|
12600
|
-
tags:
|
|
12701
|
+
tags: z17.array(ContractIdentifierSchema).default([])
|
|
12601
12702
|
}).strict(),
|
|
12602
|
-
revision:
|
|
12603
|
-
kind:
|
|
12604
|
-
recordVersion:
|
|
12605
|
-
sourceVersion:
|
|
12703
|
+
revision: z17.object({
|
|
12704
|
+
kind: z17.enum(["release", "backup"]),
|
|
12705
|
+
recordVersion: z17.number().int().positive(),
|
|
12706
|
+
sourceVersion: z17.number().int().positive().optional()
|
|
12606
12707
|
}).strict().superRefine((revision, context) => {
|
|
12607
12708
|
if (revision.kind === "backup" && revision.sourceVersion === void 0) context.addIssue({ code: "custom", path: ["sourceVersion"], message: "Backup revisions require a sourceVersion." });
|
|
12608
12709
|
}),
|
|
12609
|
-
presentation:
|
|
12610
|
-
ports:
|
|
12611
|
-
parameters:
|
|
12612
|
-
graph:
|
|
12613
|
-
execution:
|
|
12614
|
-
timeoutMs:
|
|
12615
|
-
retries:
|
|
12616
|
-
concurrencyLimit:
|
|
12617
|
-
idempotency:
|
|
12618
|
-
rateLimit:
|
|
12710
|
+
presentation: z17.object({ iconUrl: z17.string().optional(), thumbnail: z17.string().optional() }).strict(),
|
|
12711
|
+
ports: z17.object({ inputs: z17.array(ContractPortSchema).default([]), outputs: z17.array(ContractPortSchema).default([]) }).strict(),
|
|
12712
|
+
parameters: z17.object({ variables: z17.array(WorkflowParameterSchema).default([]), outputs: z17.array(WorkflowOutputBindingSchema).default([]) }).strict(),
|
|
12713
|
+
graph: z17.object({ nodes: z17.array(WorkflowNodeSchema), edges: z17.array(WorkflowEdgeSchema).default([]) }).strict(),
|
|
12714
|
+
execution: z17.object({
|
|
12715
|
+
timeoutMs: z17.number().int().positive().optional(),
|
|
12716
|
+
retries: z17.number().int().nonnegative().default(0),
|
|
12717
|
+
concurrencyLimit: z17.number().int().positive().optional(),
|
|
12718
|
+
idempotency: z17.enum(["required", "supported", "none"]),
|
|
12719
|
+
rateLimit: z17.object({ enabled: z17.boolean(), max: z17.number().int().nonnegative(), windowMs: z17.number().int().nonnegative() }).strict().superRefine((rateLimit, context) => {
|
|
12619
12720
|
if (rateLimit.enabled && (rateLimit.max === 0 || rateLimit.windowMs === 0)) context.addIssue({ code: "custom", message: "Enabled rate limit requires positive max and windowMs." });
|
|
12620
12721
|
}).optional(),
|
|
12621
|
-
conductor:
|
|
12622
|
-
ownerApp:
|
|
12623
|
-
createTime:
|
|
12624
|
-
updateTime:
|
|
12625
|
-
createdBy:
|
|
12626
|
-
updatedBy:
|
|
12722
|
+
conductor: z17.object({
|
|
12723
|
+
ownerApp: z17.string().optional(),
|
|
12724
|
+
createTime: z17.number().int().nonnegative().optional(),
|
|
12725
|
+
updateTime: z17.number().int().nonnegative().optional(),
|
|
12726
|
+
createdBy: z17.string().optional(),
|
|
12727
|
+
updatedBy: z17.string().optional(),
|
|
12627
12728
|
failureWorkflow: ContractIdentifierSchema.optional(),
|
|
12628
|
-
schemaVersion:
|
|
12629
|
-
restartable:
|
|
12630
|
-
workflowStatusListenerEnabled:
|
|
12631
|
-
ownerEmail:
|
|
12632
|
-
timeoutPolicy:
|
|
12633
|
-
variables:
|
|
12634
|
-
inputTemplate:
|
|
12729
|
+
schemaVersion: z17.number().int().positive().optional(),
|
|
12730
|
+
restartable: z17.boolean().optional(),
|
|
12731
|
+
workflowStatusListenerEnabled: z17.boolean().optional(),
|
|
12732
|
+
ownerEmail: z17.string().email().optional(),
|
|
12733
|
+
timeoutPolicy: z17.enum(["TIME_OUT_WF", "ALERT_ONLY"]).optional(),
|
|
12734
|
+
variables: z17.record(z17.string(), JsonValueSchema).optional(),
|
|
12735
|
+
inputTemplate: z17.record(z17.string(), JsonValueSchema).optional()
|
|
12635
12736
|
}).strict()
|
|
12636
12737
|
}).strict(),
|
|
12637
|
-
triggers:
|
|
12638
|
-
views:
|
|
12639
|
-
dataContracts:
|
|
12640
|
-
governance:
|
|
12641
|
-
interfaces:
|
|
12642
|
-
openai:
|
|
12738
|
+
triggers: z17.array(WorkflowTriggerSchema).default([]),
|
|
12739
|
+
views: z17.array(z17.object({ pageRef: ContractIdentifierSchema, placement: ContractIdentifierSchema.optional() }).strict()).default([]),
|
|
12740
|
+
dataContracts: z17.object({ reads: z17.array(ContractIdentifierSchema).default([]), writes: z17.array(ContractIdentifierSchema).default([]), emits: z17.array(ContractIdentifierSchema).default([]) }).strict(),
|
|
12741
|
+
governance: z17.object({ activated: z17.boolean(), validated: z17.boolean(), validationIssues: z17.array(WorkflowValidationIssueSchema).default([]), hidden: z17.boolean().optional() }).strict(),
|
|
12742
|
+
interfaces: z17.object({
|
|
12743
|
+
openai: z17.object({ enabled: z17.boolean(), modelName: z17.string().trim().min(1).optional() }).strict(),
|
|
12643
12744
|
shortcutRef: EntityRefSchema.optional(),
|
|
12644
12745
|
preferredAppId: ContractIdentifierSchema.optional()
|
|
12645
12746
|
}).strict().superRefine((interfaces, context) => {
|
|
@@ -12658,21 +12759,21 @@ var WorkflowDefinitionSchema = z16.object({
|
|
|
12658
12759
|
});
|
|
12659
12760
|
|
|
12660
12761
|
// src/contracts/workflow-runtime.ts
|
|
12661
|
-
import { z as
|
|
12662
|
-
var WorkflowCatalogEntrySchema =
|
|
12663
|
-
contract:
|
|
12762
|
+
import { z as z18 } from "zod";
|
|
12763
|
+
var WorkflowCatalogEntrySchema = z18.object({
|
|
12764
|
+
contract: z18.literal("WorkflowCatalogEntry"),
|
|
12664
12765
|
workflowId: ContractIdentifierSchema,
|
|
12665
12766
|
teamId: ContractIdentifierSchema,
|
|
12666
12767
|
creatorRef: EntityRefSchema,
|
|
12667
12768
|
currentDefinitionRef: EntityRefSchema,
|
|
12668
|
-
lifecycle:
|
|
12669
|
-
asset:
|
|
12670
|
-
preset:
|
|
12671
|
-
marketplacePublished:
|
|
12769
|
+
lifecycle: z18.enum(["ACTIVE", "DELETED"]),
|
|
12770
|
+
asset: z18.object({
|
|
12771
|
+
preset: z18.boolean(),
|
|
12772
|
+
marketplacePublished: z18.boolean(),
|
|
12672
12773
|
publishConfig: JsonObjectSchema.optional(),
|
|
12673
|
-
sort:
|
|
12774
|
+
sort: z18.number().int(),
|
|
12674
12775
|
forkFromRef: EntityRefSchema.optional(),
|
|
12675
|
-
notAuthorized:
|
|
12776
|
+
notAuthorized: z18.boolean()
|
|
12676
12777
|
}).strict(),
|
|
12677
12778
|
createdAt: IsoDateTimeSchema,
|
|
12678
12779
|
updatedAt: IsoDateTimeSchema,
|
|
@@ -12707,17 +12808,17 @@ var WorkflowCatalogEntrySchema = z17.object({
|
|
|
12707
12808
|
});
|
|
12708
12809
|
}
|
|
12709
12810
|
});
|
|
12710
|
-
var WorkflowPublicationSchema =
|
|
12711
|
-
contract:
|
|
12811
|
+
var WorkflowPublicationSchema = z18.object({
|
|
12812
|
+
contract: z18.literal("WorkflowPublication"),
|
|
12712
12813
|
publicationId: ContractIdentifierSchema,
|
|
12713
12814
|
definitionRef: EntityRefSchema,
|
|
12714
12815
|
runtimeDefinitionRef: EntityRefSchema,
|
|
12715
12816
|
sourceHash: Sha256Schema,
|
|
12716
12817
|
compiledHash: Sha256Schema,
|
|
12717
|
-
status:
|
|
12818
|
+
status: z18.enum(["PENDING", "PUBLISHED", "FAILED", "RETIRED"]),
|
|
12718
12819
|
publisherRef: EntityRefSchema,
|
|
12719
12820
|
publishedAt: IsoDateTimeSchema.optional(),
|
|
12720
|
-
failureReason:
|
|
12821
|
+
failureReason: z18.string().trim().min(1).optional()
|
|
12721
12822
|
}).strict().superRefine((publication, context) => {
|
|
12722
12823
|
if (publication.definitionRef.kind !== "workflow-definition") {
|
|
12723
12824
|
context.addIssue({
|
|
@@ -12748,12 +12849,12 @@ var WorkflowPublicationSchema = z17.object({
|
|
|
12748
12849
|
});
|
|
12749
12850
|
}
|
|
12750
12851
|
});
|
|
12751
|
-
var WorkflowCompletionCommitSchema =
|
|
12752
|
-
contract:
|
|
12852
|
+
var WorkflowCompletionCommitSchema = z18.object({
|
|
12853
|
+
contract: z18.literal("WorkflowCompletionCommit"),
|
|
12753
12854
|
commitId: ContractIdentifierSchema,
|
|
12754
12855
|
run: ApplicationRunSchema,
|
|
12755
|
-
outputs:
|
|
12756
|
-
artifacts:
|
|
12856
|
+
outputs: z18.array(OutputRecordSchema),
|
|
12857
|
+
artifacts: z18.array(ArtifactManifestSchema),
|
|
12757
12858
|
lineage: LineageRecordSchema,
|
|
12758
12859
|
completedAt: IsoDateTimeSchema
|
|
12759
12860
|
}).strict().superRefine((commit, context) => {
|
|
@@ -12795,15 +12896,15 @@ var WorkflowCompletionCommitSchema = z17.object({
|
|
|
12795
12896
|
}
|
|
12796
12897
|
});
|
|
12797
12898
|
});
|
|
12798
|
-
var WorkflowCompletionReceiptSchema =
|
|
12799
|
-
contract:
|
|
12899
|
+
var WorkflowCompletionReceiptSchema = z18.object({
|
|
12900
|
+
contract: z18.literal("WorkflowCompletionReceipt"),
|
|
12800
12901
|
commitId: ContractIdentifierSchema,
|
|
12801
12902
|
runRef: EntityRefSchema,
|
|
12802
|
-
outputRefs:
|
|
12803
|
-
artifactRefs:
|
|
12903
|
+
outputRefs: z18.array(EntityRefSchema),
|
|
12904
|
+
artifactRefs: z18.array(EntityRefSchema),
|
|
12804
12905
|
contentHash: Sha256Schema,
|
|
12805
12906
|
committedAt: IsoDateTimeSchema,
|
|
12806
|
-
idempotentReplay:
|
|
12907
|
+
idempotentReplay: z18.boolean()
|
|
12807
12908
|
}).strict().superRefine((receipt, context) => {
|
|
12808
12909
|
if (receipt.runRef.kind !== "application-run") {
|
|
12809
12910
|
context.addIssue({
|
|
@@ -12941,6 +13042,19 @@ export {
|
|
|
12941
13042
|
EntityRefSchema,
|
|
12942
13043
|
ExecutionLinkSchema,
|
|
12943
13044
|
ExpiringAccessGrantSchema,
|
|
13045
|
+
FilePurposeSchema,
|
|
13046
|
+
FileRecordSchema,
|
|
13047
|
+
FileReferenceSchema,
|
|
13048
|
+
FileResolveBatchRequestSchema,
|
|
13049
|
+
FileResolveBatchResponseSchema,
|
|
13050
|
+
FileStatusSchema,
|
|
13051
|
+
FileUploadCompleteRequestSchema,
|
|
13052
|
+
FileUploadCreateRequestSchema,
|
|
13053
|
+
FileUploadCreateResponseSchema,
|
|
13054
|
+
FileUploadInstructionSchema,
|
|
13055
|
+
FileUsageSchema,
|
|
13056
|
+
FileVariantSchema,
|
|
13057
|
+
FileVariantStatusSchema,
|
|
12944
13058
|
HotwordBodySchema,
|
|
12945
13059
|
IsoDateTimeSchema,
|
|
12946
13060
|
JsonObjectSchema,
|
|
@@ -13024,6 +13138,7 @@ export {
|
|
|
13024
13138
|
RenderSurfaceSchema,
|
|
13025
13139
|
RenderTreeSchema,
|
|
13026
13140
|
RequestScopeSchema,
|
|
13141
|
+
ResolvedFileSchema,
|
|
13027
13142
|
ResolvedThemeTokensSchema,
|
|
13028
13143
|
SavedRadarQuerySchema,
|
|
13029
13144
|
Sha256Schema,
|