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