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