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