@inf-monkeys-tech/monkeys 1.1.9 → 1.1.11
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/README.md +3 -1
- package/lib/contracts/declarative-control-http.d.ts +2 -0
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +2 -0
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-document-import.d.ts +8869 -0
- package/lib/contracts/declarative-document-import.d.ts.map +1 -0
- package/lib/contracts/declarative-document-import.js +126 -0
- package/lib/contracts/declarative-document-import.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 +1065 -961
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +1121 -975
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +56 -14
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +102 -0
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +20 -12
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/navigation-availability.d.ts +2 -0
- package/lib/runtime/navigation-availability.d.ts.map +1 -1
- package/lib/runtime/navigation-availability.js +39 -1
- package/lib/runtime/navigation-availability.js.map +1 -1
- package/lib/schemas/index.d.ts +1 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +7 -1
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -14148,6 +14148,8 @@ var DeclarativeAuthoringActionSchema = z18.enum([
|
|
|
14148
14148
|
]);
|
|
14149
14149
|
var encodePath = (value) => encodeURIComponent(value);
|
|
14150
14150
|
var declarativeControlRoutes = {
|
|
14151
|
+
prepareDocumentImport: (kind) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/documents/${kind}/prepare`,
|
|
14152
|
+
importDocument: (kind) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/documents/${kind}/import`,
|
|
14151
14153
|
validate: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/validate`,
|
|
14152
14154
|
preview: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/preview`,
|
|
14153
14155
|
publish: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/publish`,
|
|
@@ -16108,11 +16110,108 @@ var DeclarativeRuntimeRouteOwnerSchema = z18.object({
|
|
|
16108
16110
|
}).strict();
|
|
16109
16111
|
var DeclarativeRouteClaimIntentSchema = RouteClaimSchema;
|
|
16110
16112
|
|
|
16113
|
+
// src/contracts/declarative-document-import.ts
|
|
16114
|
+
import { z as z19 } from "zod";
|
|
16115
|
+
var sameScope = (left, right) => ["tenantRef", "dataSpaceRef", "teamRef"].every(
|
|
16116
|
+
(key) => left[key]?.kind === right[key]?.kind && left[key]?.id === right[key]?.id && left[key]?.ownerRepo === right[key]?.ownerRepo
|
|
16117
|
+
);
|
|
16118
|
+
var DeclarativeImportDocumentSchema = z19.union([
|
|
16119
|
+
PageSchema,
|
|
16120
|
+
NavigationSchema
|
|
16121
|
+
]);
|
|
16122
|
+
var requestShape = {
|
|
16123
|
+
document: DeclarativeImportDocumentSchema,
|
|
16124
|
+
surface: ProductSurfaceSchema,
|
|
16125
|
+
environmentId: ContractIdentifierSchema.optional()
|
|
16126
|
+
};
|
|
16127
|
+
function supportsSurface(value) {
|
|
16128
|
+
return value.document.contract === "Page" ? value.document.surface === value.surface : value.document.supportedSurfaces.includes(value.surface);
|
|
16129
|
+
}
|
|
16130
|
+
var DeclarativeDocumentImportRequestSchema = z19.object(requestShape).strict().refine(supportsSurface, {
|
|
16131
|
+
path: ["surface"],
|
|
16132
|
+
message: "The document does not support the selected surface."
|
|
16133
|
+
});
|
|
16134
|
+
var DeclarativeDocumentImportIntentSchema = z19.object({
|
|
16135
|
+
...requestShape,
|
|
16136
|
+
expectedVersion: z19.number().int().nonnegative(),
|
|
16137
|
+
expectedPlanHash: Sha256Schema,
|
|
16138
|
+
idempotencyKey: z19.string().trim().min(1).max(256)
|
|
16139
|
+
}).strict().refine(supportsSurface, {
|
|
16140
|
+
path: ["surface"],
|
|
16141
|
+
message: "The document does not support the selected surface."
|
|
16142
|
+
});
|
|
16143
|
+
var DeclarativeDocumentImportPlanSchema = z19.object({
|
|
16144
|
+
contract: z19.literal("DeclarativeDocumentImportPlan"),
|
|
16145
|
+
schemaVersion: z19.literal(1),
|
|
16146
|
+
resourceKind: z19.enum(["page", "navigation"]),
|
|
16147
|
+
resourceId: ContractIdentifierSchema,
|
|
16148
|
+
surface: ProductSurfaceSchema,
|
|
16149
|
+
sourceContentHash: Sha256Schema,
|
|
16150
|
+
environmentRevisionRef: RevisionRefSchema,
|
|
16151
|
+
document: DeclarativeImportDocumentSchema,
|
|
16152
|
+
tenantScope: TenantScopeSchema.nullable(),
|
|
16153
|
+
requiresInitialization: z19.boolean(),
|
|
16154
|
+
expectedVersion: z19.number().int().nonnegative(),
|
|
16155
|
+
currentContentHash: Sha256Schema.nullable(),
|
|
16156
|
+
changed: z19.boolean(),
|
|
16157
|
+
diagnostics: z19.array(
|
|
16158
|
+
z19.object({
|
|
16159
|
+
code: z19.string().min(1),
|
|
16160
|
+
path: z19.string(),
|
|
16161
|
+
message: z19.string(),
|
|
16162
|
+
blocking: z19.boolean()
|
|
16163
|
+
}).strict()
|
|
16164
|
+
),
|
|
16165
|
+
dependencyContentHash: Sha256Schema,
|
|
16166
|
+
planHash: Sha256Schema
|
|
16167
|
+
}).strict().superRefine((value, context) => {
|
|
16168
|
+
const kind = value.document.contract === "Page" ? "page" : "navigation";
|
|
16169
|
+
const id = value.document.contract === "Page" ? value.document.pageId : value.document.navigationId;
|
|
16170
|
+
if (kind !== value.resourceKind || id !== value.resourceId || !supportsSurface(value))
|
|
16171
|
+
context.addIssue({
|
|
16172
|
+
code: "custom",
|
|
16173
|
+
path: ["document"],
|
|
16174
|
+
message: "The plan must identify its document and supported surface."
|
|
16175
|
+
});
|
|
16176
|
+
if (value.requiresInitialization !== (value.tenantScope === null))
|
|
16177
|
+
context.addIssue({
|
|
16178
|
+
code: "custom",
|
|
16179
|
+
path: ["requiresInitialization"],
|
|
16180
|
+
message: "Only an uninitialized target may omit tenantScope."
|
|
16181
|
+
});
|
|
16182
|
+
if (value.environmentRevisionRef.kind !== "environment")
|
|
16183
|
+
context.addIssue({
|
|
16184
|
+
code: "custom",
|
|
16185
|
+
path: ["environmentRevisionRef"],
|
|
16186
|
+
message: "The import plan must pin an environment revision."
|
|
16187
|
+
});
|
|
16188
|
+
if (value.tenantScope && !sameScope(value.tenantScope, value.document.tenantScope))
|
|
16189
|
+
context.addIssue({
|
|
16190
|
+
code: "custom",
|
|
16191
|
+
path: ["tenantScope"],
|
|
16192
|
+
message: "The plan and bound document must belong to the same scope."
|
|
16193
|
+
});
|
|
16194
|
+
});
|
|
16195
|
+
var DeclarativeDocumentImportResultSchema = z19.object({
|
|
16196
|
+
action: z19.literal("import"),
|
|
16197
|
+
changed: z19.boolean(),
|
|
16198
|
+
plan: DeclarativeDocumentImportPlanSchema,
|
|
16199
|
+
revisionRef: RevisionRefSchema
|
|
16200
|
+
}).strict().superRefine((value, context) => {
|
|
16201
|
+
if (value.changed !== value.plan.changed || value.revisionRef.kind !== value.plan.resourceKind || value.revisionRef.id !== value.plan.resourceId || value.revisionRef.revision !== value.plan.expectedVersion + Number(value.changed) || !value.revisionRef.tenantScope || !sameScope(value.revisionRef.tenantScope, value.plan.document.tenantScope)) {
|
|
16202
|
+
context.addIssue({
|
|
16203
|
+
code: "custom",
|
|
16204
|
+
path: ["revisionRef"],
|
|
16205
|
+
message: "The import result must identify the exact saved or unchanged draft revision."
|
|
16206
|
+
});
|
|
16207
|
+
}
|
|
16208
|
+
});
|
|
16209
|
+
|
|
16111
16210
|
// src/contracts/tenant.ts
|
|
16112
|
-
import { z as
|
|
16211
|
+
import { z as z21 } from "zod";
|
|
16113
16212
|
|
|
16114
16213
|
// src/contracts/theme.ts
|
|
16115
|
-
import { z as
|
|
16214
|
+
import { z as z20 } from "zod";
|
|
16116
16215
|
|
|
16117
16216
|
// src/theme-tokens/core.ts
|
|
16118
16217
|
var import_ajv = __toESM(require_ajv());
|
|
@@ -18306,20 +18405,20 @@ var MONKEYS_REQUIRED_THEME_TOKEN_PATHS = Object.freeze({
|
|
|
18306
18405
|
});
|
|
18307
18406
|
|
|
18308
18407
|
// src/contracts/theme.ts
|
|
18309
|
-
var ThemeTokenTypeSchema =
|
|
18310
|
-
var ThemeTokenSchema =
|
|
18408
|
+
var ThemeTokenTypeSchema = z20.enum(THEME_TOKEN_TYPES);
|
|
18409
|
+
var ThemeTokenSchema = z20.record(z20.string(), z20.unknown()).superRefine((input, context) => {
|
|
18311
18410
|
const issues = validateThemeTokensDocumentStructure({ token: input });
|
|
18312
18411
|
for (const issue of issues) {
|
|
18313
18412
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
18314
18413
|
}
|
|
18315
18414
|
});
|
|
18316
|
-
var ThemeTokenGroupSchema =
|
|
18415
|
+
var ThemeTokenGroupSchema = z20.record(z20.string(), z20.unknown()).superRefine((input, context) => {
|
|
18317
18416
|
const issues = validateThemeTokensDocumentStructure(input);
|
|
18318
18417
|
for (const issue of issues) {
|
|
18319
18418
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
18320
18419
|
}
|
|
18321
18420
|
});
|
|
18322
|
-
var ThemeTokensSchema =
|
|
18421
|
+
var ThemeTokensSchema = z20.record(z20.string(), z20.unknown()).superRefine((input, context) => {
|
|
18323
18422
|
const issues = validateThemeTokensDocument(input);
|
|
18324
18423
|
for (const issue of issues) {
|
|
18325
18424
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
@@ -18346,9 +18445,9 @@ var ResolvedThemeTokensSchema = ThemeTokensSchema.superRefine((input, context) =
|
|
|
18346
18445
|
});
|
|
18347
18446
|
|
|
18348
18447
|
// src/contracts/tenant.ts
|
|
18349
|
-
var DesignTokenFileSourceSchema =
|
|
18350
|
-
type:
|
|
18351
|
-
path:
|
|
18448
|
+
var DesignTokenFileSourceSchema = z21.object({
|
|
18449
|
+
type: z21.literal("file"),
|
|
18450
|
+
path: z21.string().trim().min(1).superRefine((source, context) => {
|
|
18352
18451
|
const isWindowsDrivePath = /^[a-z]:[\\/]/i.test(source);
|
|
18353
18452
|
if (!isWindowsDrivePath && /^[a-z][a-z\d+.-]*:/i.test(source)) {
|
|
18354
18453
|
context.addIssue({
|
|
@@ -18358,9 +18457,9 @@ var DesignTokenFileSourceSchema = z20.object({
|
|
|
18358
18457
|
}
|
|
18359
18458
|
})
|
|
18360
18459
|
}).strict();
|
|
18361
|
-
var DesignTokenUrlSourceSchema =
|
|
18362
|
-
type:
|
|
18363
|
-
url:
|
|
18460
|
+
var DesignTokenUrlSourceSchema = z21.object({
|
|
18461
|
+
type: z21.literal("url"),
|
|
18462
|
+
url: z21.string().trim().min(1).superRefine((source, context) => {
|
|
18364
18463
|
if (!/^https?:\/\//i.test(source)) {
|
|
18365
18464
|
context.addIssue({
|
|
18366
18465
|
code: "custom",
|
|
@@ -18369,45 +18468,45 @@ var DesignTokenUrlSourceSchema = z20.object({
|
|
|
18369
18468
|
}
|
|
18370
18469
|
})
|
|
18371
18470
|
}).strict();
|
|
18372
|
-
var DesignTokenInlineSourceSchema =
|
|
18373
|
-
type:
|
|
18471
|
+
var DesignTokenInlineSourceSchema = z21.object({
|
|
18472
|
+
type: z21.literal("inline"),
|
|
18374
18473
|
document: ThemeTokensSchema
|
|
18375
18474
|
}).strict();
|
|
18376
|
-
var DesignTokenSourceSchema =
|
|
18377
|
-
var TenantDesignTokensConfigSchema =
|
|
18475
|
+
var DesignTokenSourceSchema = z21.discriminatedUnion("type", [DesignTokenFileSourceSchema, DesignTokenUrlSourceSchema, DesignTokenInlineSourceSchema]);
|
|
18476
|
+
var TenantDesignTokensConfigSchema = z21.object({
|
|
18378
18477
|
/** Ordered tenant overrides. The backend always applies the product default first. */
|
|
18379
|
-
tokenSources:
|
|
18478
|
+
tokenSources: z21.array(DesignTokenSourceSchema)
|
|
18380
18479
|
}).strict();
|
|
18381
|
-
var TenantAuthBindingSchema =
|
|
18382
|
-
kind:
|
|
18480
|
+
var TenantAuthBindingSchema = z21.object({
|
|
18481
|
+
kind: z21.literal("auth-provider"),
|
|
18383
18482
|
providerId: ContractIdentifierSchema,
|
|
18384
18483
|
policyRef: ContractIdentifierSchema.optional()
|
|
18385
18484
|
}).strict();
|
|
18386
|
-
var TenantDataBindingSchema =
|
|
18387
|
-
|
|
18388
|
-
kind:
|
|
18485
|
+
var TenantDataBindingSchema = z21.discriminatedUnion("kind", [
|
|
18486
|
+
z21.object({
|
|
18487
|
+
kind: z21.literal("data-provider"),
|
|
18389
18488
|
providerId: ContractIdentifierSchema,
|
|
18390
18489
|
domainRef: ContractIdentifierSchema.optional()
|
|
18391
18490
|
}).strict(),
|
|
18392
|
-
|
|
18393
|
-
kind:
|
|
18491
|
+
z21.object({
|
|
18492
|
+
kind: z21.literal("projection"),
|
|
18394
18493
|
projectionRef: ContractIdentifierSchema,
|
|
18395
18494
|
domainRef: ContractIdentifierSchema.optional()
|
|
18396
18495
|
}).strict()
|
|
18397
18496
|
]);
|
|
18398
|
-
var TenantAuthBindingsSchema =
|
|
18399
|
-
var TenantDataBindingsSchema =
|
|
18400
|
-
var TenantTrendRadarSourceSchema =
|
|
18497
|
+
var TenantAuthBindingsSchema = z21.record(ContractIdentifierSchema, TenantAuthBindingSchema);
|
|
18498
|
+
var TenantDataBindingsSchema = z21.record(ContractIdentifierSchema, TenantDataBindingSchema);
|
|
18499
|
+
var TenantTrendRadarSourceSchema = z21.object({
|
|
18401
18500
|
ontologyId: ContractIdentifierSchema,
|
|
18402
18501
|
viewId: ContractIdentifierSchema
|
|
18403
18502
|
}).strict();
|
|
18404
|
-
var TenantTrendRadarCollectionTargetSchema =
|
|
18503
|
+
var TenantTrendRadarCollectionTargetSchema = z21.object({
|
|
18405
18504
|
ontologyId: ContractIdentifierSchema
|
|
18406
18505
|
}).strict();
|
|
18407
|
-
var TenantTrendRadarEvaluationSchema =
|
|
18506
|
+
var TenantTrendRadarEvaluationSchema = z21.object({
|
|
18408
18507
|
workflowId: ContractIdentifierSchema
|
|
18409
18508
|
}).strict();
|
|
18410
|
-
var TenantTrendRadarDerivedMetricsSchema =
|
|
18509
|
+
var TenantTrendRadarDerivedMetricsSchema = z21.object({
|
|
18411
18510
|
productCountFieldKey: ContractIdentifierSchema,
|
|
18412
18511
|
salesValueCountFieldKey: ContractIdentifierSchema,
|
|
18413
18512
|
salesSumFieldKey: ContractIdentifierSchema
|
|
@@ -18415,7 +18514,7 @@ var TenantTrendRadarDerivedMetricsSchema = z20.object({
|
|
|
18415
18514
|
({ productCountFieldKey, salesValueCountFieldKey, salesSumFieldKey }) => (/* @__PURE__ */ new Set([productCountFieldKey, salesValueCountFieldKey, salesSumFieldKey])).size === 3,
|
|
18416
18515
|
{ message: "Trend Radar derived metric Field Keys must be distinct." }
|
|
18417
18516
|
);
|
|
18418
|
-
var TenantTrendRadarSourcesSchema =
|
|
18517
|
+
var TenantTrendRadarSourcesSchema = z21.object({
|
|
18419
18518
|
products: TenantTrendRadarSourceSchema.optional(),
|
|
18420
18519
|
hotwords: TenantTrendRadarSourceSchema.optional(),
|
|
18421
18520
|
brands: TenantTrendRadarSourceSchema.optional(),
|
|
@@ -18423,54 +18522,54 @@ var TenantTrendRadarSourcesSchema = z20.object({
|
|
|
18423
18522
|
derivedMetrics: TenantTrendRadarDerivedMetricsSchema.optional(),
|
|
18424
18523
|
evaluation: TenantTrendRadarEvaluationSchema.optional()
|
|
18425
18524
|
}).strict();
|
|
18426
|
-
var AssetVariantsSchema =
|
|
18427
|
-
light:
|
|
18428
|
-
dark:
|
|
18525
|
+
var AssetVariantsSchema = z21.object({
|
|
18526
|
+
light: z21.string().optional(),
|
|
18527
|
+
dark: z21.string().optional()
|
|
18429
18528
|
}).strict();
|
|
18430
|
-
var TenantAgentThemeConfigSchema =
|
|
18529
|
+
var TenantAgentThemeConfigSchema = z21.object({
|
|
18431
18530
|
logo: AssetVariantsSchema.optional(),
|
|
18432
|
-
brandDisplayMode:
|
|
18433
|
-
density:
|
|
18531
|
+
brandDisplayMode: z21.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
18532
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional(),
|
|
18434
18533
|
sidebar: AgentWorkbenchSidebarConfigSchema.optional(),
|
|
18435
18534
|
/** @deprecated Use sidebar.navigationMode. */
|
|
18436
|
-
navigationMode:
|
|
18535
|
+
navigationMode: z21.enum(["default", "session", "trend"]).optional(),
|
|
18437
18536
|
/** @deprecated Use sidebar.quickStartEnabled. */
|
|
18438
|
-
quickStartEnabled:
|
|
18537
|
+
quickStartEnabled: z21.boolean().optional()
|
|
18439
18538
|
}).strict();
|
|
18440
18539
|
var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
|
|
18441
18540
|
var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
|
|
18442
18541
|
var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
|
|
18443
|
-
var CurrentUserMenuIdentifierSchema =
|
|
18444
|
-
var CurrentUserMenuDisplayTextSchema =
|
|
18445
|
-
|
|
18446
|
-
|
|
18542
|
+
var CurrentUserMenuIdentifierSchema = z21.string().trim().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/, "Expected a stable current-user menu identifier.");
|
|
18543
|
+
var CurrentUserMenuDisplayTextSchema = z21.union([
|
|
18544
|
+
z21.string().trim().min(1),
|
|
18545
|
+
z21.record(z21.string().trim().min(1), z21.string().trim().min(1)).refine((value) => Object.keys(value).length > 0, "Localized menu text must contain at least one locale.")
|
|
18447
18546
|
]);
|
|
18448
|
-
var CurrentUserMenuNavigationItemSchema =
|
|
18547
|
+
var CurrentUserMenuNavigationItemSchema = z21.object({
|
|
18449
18548
|
id: CurrentUserMenuIdentifierSchema,
|
|
18450
|
-
kind:
|
|
18549
|
+
kind: z21.literal("navigation"),
|
|
18451
18550
|
ref: CurrentUserMenuIdentifierSchema
|
|
18452
18551
|
}).strict();
|
|
18453
|
-
var CurrentUserMenuControlItemSchema =
|
|
18552
|
+
var CurrentUserMenuControlItemSchema = z21.object({
|
|
18454
18553
|
id: CurrentUserMenuIdentifierSchema,
|
|
18455
|
-
kind:
|
|
18456
|
-
ref:
|
|
18554
|
+
kind: z21.literal("control"),
|
|
18555
|
+
ref: z21.enum(CURRENT_USER_MENU_CONTROL_REFS)
|
|
18457
18556
|
}).strict();
|
|
18458
|
-
var CurrentUserMenuActionItemSchema =
|
|
18557
|
+
var CurrentUserMenuActionItemSchema = z21.object({
|
|
18459
18558
|
id: CurrentUserMenuIdentifierSchema,
|
|
18460
|
-
kind:
|
|
18461
|
-
ref:
|
|
18462
|
-
tone:
|
|
18559
|
+
kind: z21.literal("action"),
|
|
18560
|
+
ref: z21.enum(CURRENT_USER_MENU_ACTION_REFS),
|
|
18561
|
+
tone: z21.enum(["default", "danger"]).optional()
|
|
18463
18562
|
}).strict();
|
|
18464
|
-
var CurrentUserMenuItemSchema =
|
|
18465
|
-
var CurrentUserMenuSectionSchema =
|
|
18563
|
+
var CurrentUserMenuItemSchema = z21.discriminatedUnion("kind", [CurrentUserMenuNavigationItemSchema, CurrentUserMenuControlItemSchema, CurrentUserMenuActionItemSchema]);
|
|
18564
|
+
var CurrentUserMenuSectionSchema = z21.object({
|
|
18466
18565
|
id: CurrentUserMenuIdentifierSchema,
|
|
18467
18566
|
label: CurrentUserMenuDisplayTextSchema.optional(),
|
|
18468
|
-
dividerBefore:
|
|
18469
|
-
items:
|
|
18567
|
+
dividerBefore: z21.boolean().optional(),
|
|
18568
|
+
items: z21.array(CurrentUserMenuItemSchema)
|
|
18470
18569
|
}).strict();
|
|
18471
|
-
var CurrentUserMenuConfigSchema =
|
|
18472
|
-
version:
|
|
18473
|
-
sections:
|
|
18570
|
+
var CurrentUserMenuConfigSchema = z21.object({
|
|
18571
|
+
version: z21.literal(1),
|
|
18572
|
+
sections: z21.array(CurrentUserMenuSectionSchema).max(20)
|
|
18474
18573
|
}).strict().superRefine((value, context) => {
|
|
18475
18574
|
const sectionIds = /* @__PURE__ */ new Set();
|
|
18476
18575
|
const itemIds = /* @__PURE__ */ new Set();
|
|
@@ -18504,7 +18603,7 @@ var CurrentUserMenuConfigSchema = z20.object({
|
|
|
18504
18603
|
});
|
|
18505
18604
|
}
|
|
18506
18605
|
});
|
|
18507
|
-
var LegacyCurrentUserMenuProfileSchema =
|
|
18606
|
+
var LegacyCurrentUserMenuProfileSchema = z21.array(z21.enum(LEGACY_CURRENT_USER_MENU_ITEM_IDS)).superRefine((value, context) => {
|
|
18508
18607
|
const seen = /* @__PURE__ */ new Set();
|
|
18509
18608
|
value.forEach((item, index) => {
|
|
18510
18609
|
if (seen.has(item)) {
|
|
@@ -18517,69 +18616,69 @@ var LegacyCurrentUserMenuProfileSchema = z20.array(z20.enum(LEGACY_CURRENT_USER_
|
|
|
18517
18616
|
seen.add(item);
|
|
18518
18617
|
});
|
|
18519
18618
|
});
|
|
18520
|
-
var CurrentUserMenuProfileSchema =
|
|
18521
|
-
var ThemeHeadbarSchema =
|
|
18522
|
-
theme:
|
|
18523
|
-
navPosition:
|
|
18524
|
-
actions:
|
|
18619
|
+
var CurrentUserMenuProfileSchema = z21.union([z21.literal("*"), LegacyCurrentUserMenuProfileSchema, CurrentUserMenuConfigSchema]);
|
|
18620
|
+
var ThemeHeadbarSchema = z21.object({
|
|
18621
|
+
theme: z21.enum(["card", "glassy", "ghost"]).optional(),
|
|
18622
|
+
navPosition: z21.enum(["left", "center", "right"]).optional(),
|
|
18623
|
+
actions: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]).optional(),
|
|
18525
18624
|
profile: CurrentUserMenuProfileSchema.optional(),
|
|
18526
|
-
showTeamQuota:
|
|
18625
|
+
showTeamQuota: z21.boolean().optional()
|
|
18527
18626
|
}).strict();
|
|
18528
|
-
var TenantHeadbarModuleLeafSchema =
|
|
18627
|
+
var TenantHeadbarModuleLeafSchema = z21.object({
|
|
18529
18628
|
id: ContractIdentifierSchema,
|
|
18530
|
-
extraInfo:
|
|
18531
|
-
displayName:
|
|
18532
|
-
visible:
|
|
18533
|
-
disabled:
|
|
18534
|
-
icon:
|
|
18535
|
-
showQuickSwitcher:
|
|
18536
|
-
showSidebar:
|
|
18537
|
-
showContentFrame:
|
|
18629
|
+
extraInfo: z21.boolean().optional(),
|
|
18630
|
+
displayName: z21.union([z21.string(), z21.record(LocaleIdentifierSchema, z21.string())]).optional(),
|
|
18631
|
+
visible: z21.boolean().optional(),
|
|
18632
|
+
disabled: z21.boolean().optional(),
|
|
18633
|
+
icon: z21.string().optional(),
|
|
18634
|
+
showQuickSwitcher: z21.boolean().optional(),
|
|
18635
|
+
showSidebar: z21.boolean().optional(),
|
|
18636
|
+
showContentFrame: z21.boolean().optional()
|
|
18538
18637
|
}).strict();
|
|
18539
18638
|
var TenantHeadbarModuleItemSchema = TenantHeadbarModuleLeafSchema.extend({
|
|
18540
|
-
children:
|
|
18541
|
-
}).strict();
|
|
18542
|
-
var KernelHeadbarSchema =
|
|
18543
|
-
theme:
|
|
18544
|
-
layoutMode:
|
|
18545
|
-
heightPx:
|
|
18546
|
-
navPosition:
|
|
18547
|
-
brandTitle:
|
|
18548
|
-
menuRadius:
|
|
18549
|
-
}).strict();
|
|
18550
|
-
var CustomIconSchema =
|
|
18551
|
-
color:
|
|
18552
|
-
url:
|
|
18553
|
-
type:
|
|
18554
|
-
hintTextColor:
|
|
18555
|
-
}).strict();
|
|
18556
|
-
var WorkbenchCustomerToolSchema =
|
|
18639
|
+
children: z21.array(TenantHeadbarModuleLeafSchema).optional()
|
|
18640
|
+
}).strict();
|
|
18641
|
+
var KernelHeadbarSchema = z21.object({
|
|
18642
|
+
theme: z21.literal("card").optional(),
|
|
18643
|
+
layoutMode: z21.enum(["boxed", "full-bleed"]).optional(),
|
|
18644
|
+
heightPx: z21.number().positive().optional(),
|
|
18645
|
+
navPosition: z21.enum(["left", "center", "right"]).optional(),
|
|
18646
|
+
brandTitle: z21.string().optional(),
|
|
18647
|
+
menuRadius: z21.enum(["default", "none", "sm", "md", "lg", "xl", "full"]).optional()
|
|
18648
|
+
}).strict();
|
|
18649
|
+
var CustomIconSchema = z21.object({
|
|
18650
|
+
color: z21.string().optional(),
|
|
18651
|
+
url: z21.string().optional(),
|
|
18652
|
+
type: z21.enum(["svg", "image"]).optional(),
|
|
18653
|
+
hintTextColor: z21.string().optional()
|
|
18654
|
+
}).strict();
|
|
18655
|
+
var WorkbenchCustomerToolSchema = z21.object({
|
|
18557
18656
|
id: ContractIdentifierSchema,
|
|
18558
|
-
label:
|
|
18559
|
-
fixed:
|
|
18657
|
+
label: z21.union([z21.string(), z21.record(LocaleIdentifierSchema, z21.string())]).optional(),
|
|
18658
|
+
fixed: z21.boolean().optional()
|
|
18560
18659
|
}).strict();
|
|
18561
|
-
var WorkbenchStudioOverrideSchema =
|
|
18562
|
-
studioName:
|
|
18563
|
-
dropdownToolsDefault:
|
|
18564
|
-
existingToolsDefault:
|
|
18565
|
-
historyColumnsDefault:
|
|
18660
|
+
var WorkbenchStudioOverrideSchema = z21.object({
|
|
18661
|
+
studioName: z21.string().trim().min(1),
|
|
18662
|
+
dropdownToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
18663
|
+
existingToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
18664
|
+
historyColumnsDefault: z21.number().int().min(1).max(6).optional()
|
|
18566
18665
|
}).strict();
|
|
18567
|
-
var TenantWorkbenchPageContextSchema =
|
|
18666
|
+
var TenantWorkbenchPageContextSchema = z21.object({
|
|
18568
18667
|
workflow: JsonObjectSchema.optional(),
|
|
18569
18668
|
agent: JsonObjectSchema.optional(),
|
|
18570
18669
|
agentId: ContractIdentifierSchema.optional(),
|
|
18571
18670
|
designProject: JsonObjectSchema.optional(),
|
|
18572
18671
|
designMetadataId: ContractIdentifierSchema.optional(),
|
|
18573
|
-
iframeUrl:
|
|
18574
|
-
info:
|
|
18672
|
+
iframeUrl: z21.string().trim().min(1).optional(),
|
|
18673
|
+
info: z21.object({
|
|
18575
18674
|
displayName: LocalizedTextSchema.optional(),
|
|
18576
18675
|
description: LocalizedTextSchema.optional(),
|
|
18577
|
-
iconUrl:
|
|
18676
|
+
iconUrl: z21.string().trim().min(1).optional()
|
|
18578
18677
|
}).strict().optional(),
|
|
18579
|
-
isBuiltinPinned:
|
|
18580
|
-
isBuiltinReadonly:
|
|
18678
|
+
isBuiltinPinned: z21.boolean().optional(),
|
|
18679
|
+
isBuiltinReadonly: z21.boolean().optional()
|
|
18581
18680
|
}).strict();
|
|
18582
|
-
var TenantWorkbenchPageEnvelopeSchema =
|
|
18681
|
+
var TenantWorkbenchPageEnvelopeSchema = z21.object({
|
|
18583
18682
|
definition: PageDefinitionSchema,
|
|
18584
18683
|
context: TenantWorkbenchPageContextSchema
|
|
18585
18684
|
}).strict().superRefine(({ definition }, context) => {
|
|
@@ -18612,59 +18711,59 @@ var TenantWorkbenchPageEnvelopeSchema = z20.object({
|
|
|
18612
18711
|
});
|
|
18613
18712
|
}
|
|
18614
18713
|
});
|
|
18615
|
-
var TenantWorkbenchPageGroupSchema =
|
|
18714
|
+
var TenantWorkbenchPageGroupSchema = z21.object({
|
|
18616
18715
|
id: ContractIdentifierSchema,
|
|
18617
|
-
pageIds:
|
|
18716
|
+
pageIds: z21.array(ContractIdentifierSchema),
|
|
18618
18717
|
displayName: LocalizedTextSchema,
|
|
18619
|
-
isBuiltIn:
|
|
18620
|
-
iconUrl:
|
|
18621
|
-
sortIndex:
|
|
18718
|
+
isBuiltIn: z21.boolean(),
|
|
18719
|
+
iconUrl: z21.string().optional(),
|
|
18720
|
+
sortIndex: z21.number().int().nullable().optional(),
|
|
18622
18721
|
presetRelationId: ContractIdentifierSchema.optional(),
|
|
18623
18722
|
relationKey: ContractIdentifierSchema.nullable().optional(),
|
|
18624
18723
|
studioId: ContractIdentifierSchema.optional()
|
|
18625
18724
|
}).strict();
|
|
18626
|
-
var TenantWorkbenchConfigSchema =
|
|
18627
|
-
pages:
|
|
18628
|
-
pageGroups:
|
|
18629
|
-
catalog:
|
|
18630
|
-
enabled:
|
|
18631
|
-
defaultEntry:
|
|
18725
|
+
var TenantWorkbenchConfigSchema = z21.object({
|
|
18726
|
+
pages: z21.array(TenantWorkbenchPageEnvelopeSchema),
|
|
18727
|
+
pageGroups: z21.array(TenantWorkbenchPageGroupSchema),
|
|
18728
|
+
catalog: z21.object({
|
|
18729
|
+
enabled: z21.boolean().optional(),
|
|
18730
|
+
defaultEntry: z21.boolean().optional()
|
|
18632
18731
|
}).strict().optional(),
|
|
18633
|
-
quickSwitcherMaxItems:
|
|
18634
|
-
defaultOrder:
|
|
18635
|
-
groups:
|
|
18636
|
-
pages:
|
|
18732
|
+
quickSwitcherMaxItems: z21.number().int().nonnegative().optional(),
|
|
18733
|
+
defaultOrder: z21.object({
|
|
18734
|
+
groups: z21.array(ContractIdentifierSchema),
|
|
18735
|
+
pages: z21.record(ContractIdentifierSchema, z21.array(ContractIdentifierSchema))
|
|
18637
18736
|
}).strict().optional(),
|
|
18638
|
-
customers:
|
|
18639
|
-
dropdownToolsDefault:
|
|
18640
|
-
layoutManagerTools:
|
|
18641
|
-
studioTabsMode:
|
|
18642
|
-
historyWatermark:
|
|
18643
|
-
svgUrl:
|
|
18644
|
-
coverage:
|
|
18645
|
-
maxLongEdgeRatio:
|
|
18646
|
-
sizing:
|
|
18737
|
+
customers: z21.object({
|
|
18738
|
+
dropdownToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
18739
|
+
layoutManagerTools: z21.array(WorkbenchCustomerToolSchema).optional(),
|
|
18740
|
+
studioTabsMode: z21.enum(["dropdown", "tabs"]).optional(),
|
|
18741
|
+
historyWatermark: z21.object({
|
|
18742
|
+
svgUrl: z21.string().optional(),
|
|
18743
|
+
coverage: z21.array(z21.enum(["list", "detail", "download"])).optional(),
|
|
18744
|
+
maxLongEdgeRatio: z21.number().positive().optional(),
|
|
18745
|
+
sizing: z21.object({
|
|
18647
18746
|
mode: ContractIdentifierSchema,
|
|
18648
|
-
heightRatio:
|
|
18649
|
-
minHeightPx:
|
|
18650
|
-
maxHeightPx:
|
|
18747
|
+
heightRatio: z21.number().positive().optional(),
|
|
18748
|
+
minHeightPx: z21.number().nonnegative().optional(),
|
|
18749
|
+
maxHeightPx: z21.number().nonnegative().optional()
|
|
18651
18750
|
}).strict().optional(),
|
|
18652
|
-
enhance:
|
|
18653
|
-
enabled:
|
|
18654
|
-
backgroundLumaThreshold:
|
|
18655
|
-
stroke:
|
|
18656
|
-
color:
|
|
18657
|
-
opacity:
|
|
18658
|
-
widthRatio:
|
|
18659
|
-
blurRatio:
|
|
18660
|
-
steps:
|
|
18751
|
+
enhance: z21.object({
|
|
18752
|
+
enabled: z21.boolean().optional(),
|
|
18753
|
+
backgroundLumaThreshold: z21.number().min(0).max(1).optional(),
|
|
18754
|
+
stroke: z21.object({
|
|
18755
|
+
color: z21.string().optional(),
|
|
18756
|
+
opacity: z21.number().min(0).max(1).optional(),
|
|
18757
|
+
widthRatio: z21.number().nonnegative().optional(),
|
|
18758
|
+
blurRatio: z21.number().nonnegative().optional(),
|
|
18759
|
+
steps: z21.number().int().positive().optional()
|
|
18661
18760
|
}).strict().optional()
|
|
18662
18761
|
}).strict().optional()
|
|
18663
18762
|
}).strict().optional(),
|
|
18664
|
-
layoutManagerEnabled:
|
|
18665
|
-
existingToolsDefault:
|
|
18666
|
-
historyColumnsDefault:
|
|
18667
|
-
studioOverrides:
|
|
18763
|
+
layoutManagerEnabled: z21.boolean().optional(),
|
|
18764
|
+
existingToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
18765
|
+
historyColumnsDefault: z21.number().int().min(1).max(6).optional(),
|
|
18766
|
+
studioOverrides: z21.array(WorkbenchStudioOverrideSchema).optional()
|
|
18668
18767
|
}).strict().optional()
|
|
18669
18768
|
}).strict().superRefine(({ pages, pageGroups }, context) => {
|
|
18670
18769
|
const pageIds = pages.map(({ definition }) => definition.pageId);
|
|
@@ -18696,41 +18795,41 @@ var TenantWorkbenchConfigSchema = z20.object({
|
|
|
18696
18795
|
});
|
|
18697
18796
|
});
|
|
18698
18797
|
});
|
|
18699
|
-
var LoginPageSchema =
|
|
18700
|
-
background:
|
|
18701
|
-
imageUrl:
|
|
18702
|
-
gradient:
|
|
18798
|
+
var LoginPageSchema = z21.object({
|
|
18799
|
+
background: z21.object({
|
|
18800
|
+
imageUrl: z21.string().optional(),
|
|
18801
|
+
gradient: z21.string().optional()
|
|
18703
18802
|
}).strict().optional(),
|
|
18704
|
-
logo:
|
|
18705
|
-
url:
|
|
18706
|
-
lightUrl:
|
|
18707
|
-
darkUrl:
|
|
18708
|
-
position:
|
|
18709
|
-
scale:
|
|
18803
|
+
logo: z21.object({
|
|
18804
|
+
url: z21.string().optional(),
|
|
18805
|
+
lightUrl: z21.string().optional(),
|
|
18806
|
+
darkUrl: z21.string().optional(),
|
|
18807
|
+
position: z21.enum(["top", "middle", "bottom"]).optional(),
|
|
18808
|
+
scale: z21.number().positive().optional()
|
|
18710
18809
|
}).strict().optional(),
|
|
18711
|
-
customCss:
|
|
18810
|
+
customCss: z21.string().optional()
|
|
18712
18811
|
}).strict();
|
|
18713
18812
|
var LandingPageHeadbarConfigShape = {
|
|
18714
|
-
headbarMode:
|
|
18813
|
+
headbarMode: z21.enum(["shared", "hidden"]).optional()
|
|
18715
18814
|
};
|
|
18716
|
-
var LandingPageDefaultConfigSchema =
|
|
18717
|
-
mode:
|
|
18815
|
+
var LandingPageDefaultConfigSchema = z21.object({
|
|
18816
|
+
mode: z21.literal("default"),
|
|
18718
18817
|
...LandingPageHeadbarConfigShape
|
|
18719
18818
|
}).strict();
|
|
18720
|
-
var LandingPageMarkdownConfigSchema =
|
|
18721
|
-
mode:
|
|
18722
|
-
content:
|
|
18819
|
+
var LandingPageMarkdownConfigSchema = z21.object({
|
|
18820
|
+
mode: z21.literal("markdown"),
|
|
18821
|
+
content: z21.string(),
|
|
18723
18822
|
...LandingPageHeadbarConfigShape
|
|
18724
18823
|
}).strict();
|
|
18725
|
-
var LandingPageHtmlConfigSchema =
|
|
18726
|
-
mode:
|
|
18727
|
-
content:
|
|
18824
|
+
var LandingPageHtmlConfigSchema = z21.object({
|
|
18825
|
+
mode: z21.literal("html"),
|
|
18826
|
+
content: z21.string(),
|
|
18728
18827
|
...LandingPageHeadbarConfigShape
|
|
18729
18828
|
}).strict();
|
|
18730
|
-
var LandingPageIframeConfigSchema =
|
|
18731
|
-
mode:
|
|
18829
|
+
var LandingPageIframeConfigSchema = z21.object({
|
|
18830
|
+
mode: z21.literal("iframe"),
|
|
18732
18831
|
...LandingPageHeadbarConfigShape,
|
|
18733
|
-
url:
|
|
18832
|
+
url: z21.string().refine((value) => {
|
|
18734
18833
|
if (/^\/(?!\/)/.test(value)) {
|
|
18735
18834
|
return !value.includes("\\");
|
|
18736
18835
|
}
|
|
@@ -18742,13 +18841,13 @@ var LandingPageIframeConfigSchema = z20.object({
|
|
|
18742
18841
|
}
|
|
18743
18842
|
}, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
|
|
18744
18843
|
}).strict();
|
|
18745
|
-
var TenantLandingPageConfigSchema =
|
|
18844
|
+
var TenantLandingPageConfigSchema = z21.discriminatedUnion("mode", [
|
|
18746
18845
|
LandingPageDefaultConfigSchema,
|
|
18747
18846
|
LandingPageMarkdownConfigSchema,
|
|
18748
18847
|
LandingPageHtmlConfigSchema,
|
|
18749
18848
|
LandingPageIframeConfigSchema
|
|
18750
18849
|
]);
|
|
18751
|
-
var ListFooterPageSizeOptionsSchema =
|
|
18850
|
+
var ListFooterPageSizeOptionsSchema = z21.array(z21.number().int().positive().max(1e3)).min(1).max(10).superRefine((options, context) => {
|
|
18752
18851
|
const seen = /* @__PURE__ */ new Set();
|
|
18753
18852
|
options.forEach((option, index) => {
|
|
18754
18853
|
if (seen.has(option)) {
|
|
@@ -18761,578 +18860,578 @@ var ListFooterPageSizeOptionsSchema = z20.array(z20.number().int().positive().ma
|
|
|
18761
18860
|
seen.add(option);
|
|
18762
18861
|
});
|
|
18763
18862
|
});
|
|
18764
|
-
var TenantListFooterConfigSchema =
|
|
18765
|
-
showTotal:
|
|
18766
|
-
showPageSize:
|
|
18863
|
+
var TenantListFooterConfigSchema = z21.object({
|
|
18864
|
+
showTotal: z21.boolean().optional(),
|
|
18865
|
+
showPageSize: z21.boolean().optional(),
|
|
18767
18866
|
pageSizeOptions: ListFooterPageSizeOptionsSchema.optional(),
|
|
18768
|
-
paginationMode:
|
|
18769
|
-
alignment:
|
|
18770
|
-
density:
|
|
18771
|
-
}).strict();
|
|
18772
|
-
var TenantApplicationConfigSchema =
|
|
18773
|
-
theme:
|
|
18774
|
-
id:
|
|
18775
|
-
name:
|
|
18776
|
-
title:
|
|
18867
|
+
paginationMode: z21.enum(["auto", "pages", "compact"]).optional(),
|
|
18868
|
+
alignment: z21.enum(["start", "end", "space-between"]).optional(),
|
|
18869
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional()
|
|
18870
|
+
}).strict();
|
|
18871
|
+
var TenantApplicationConfigSchema = z21.object({
|
|
18872
|
+
theme: z21.object({
|
|
18873
|
+
id: z21.string().optional(),
|
|
18874
|
+
name: z21.string().optional(),
|
|
18875
|
+
title: z21.string().optional(),
|
|
18777
18876
|
favicon: AssetVariantsSchema.optional(),
|
|
18778
18877
|
logo: AssetVariantsSchema.optional(),
|
|
18779
|
-
pwaIcon:
|
|
18780
|
-
form:
|
|
18781
|
-
toast:
|
|
18782
|
-
position:
|
|
18878
|
+
pwaIcon: z21.string().optional(),
|
|
18879
|
+
form: z21.object({ variant: z21.enum(["bento", "ghost"]) }).strict().optional(),
|
|
18880
|
+
toast: z21.object({
|
|
18881
|
+
position: z21.enum(["top-right", "top-left", "bottom-right", "bottom-left", "top-center", "bottom-center"])
|
|
18783
18882
|
}).strict().optional(),
|
|
18784
|
-
icons:
|
|
18883
|
+
icons: z21.object({
|
|
18785
18884
|
error: CustomIconSchema.optional(),
|
|
18786
18885
|
empty: CustomIconSchema.optional()
|
|
18787
18886
|
}).strict().optional(),
|
|
18788
|
-
views:
|
|
18789
|
-
form:
|
|
18790
|
-
toast:
|
|
18791
|
-
afterCreate:
|
|
18792
|
-
afterDelete:
|
|
18887
|
+
views: z21.object({
|
|
18888
|
+
form: z21.object({
|
|
18889
|
+
toast: z21.object({
|
|
18890
|
+
afterCreate: z21.boolean(),
|
|
18891
|
+
afterDelete: z21.boolean()
|
|
18793
18892
|
}).strict(),
|
|
18794
|
-
progress:
|
|
18795
|
-
onlyResult:
|
|
18796
|
-
tabular:
|
|
18893
|
+
progress: z21.enum(["estimate", "infinite"]),
|
|
18894
|
+
onlyResult: z21.boolean(),
|
|
18895
|
+
tabular: z21.object({ theme: z21.enum(["default", "tentiary", "primary"]) }).strict()
|
|
18797
18896
|
}).strict()
|
|
18798
18897
|
}).strict().optional(),
|
|
18799
18898
|
loginPage: LoginPageSchema.optional(),
|
|
18800
|
-
extraLanguageURL:
|
|
18801
|
-
hideSpaceHeader:
|
|
18802
|
-
showSidebarTeamSelector:
|
|
18803
|
-
showWorkbenchSidebar:
|
|
18804
|
-
workbenchViewTheme:
|
|
18805
|
-
defaults:
|
|
18806
|
-
showFormInImageDetail:
|
|
18807
|
-
darkMode:
|
|
18808
|
-
language:
|
|
18809
|
-
showDarkModeToggle:
|
|
18810
|
-
showLanguageToggle:
|
|
18899
|
+
extraLanguageURL: z21.record(z21.string(), z21.string()).optional(),
|
|
18900
|
+
hideSpaceHeader: z21.boolean().optional(),
|
|
18901
|
+
showSidebarTeamSelector: z21.boolean().optional(),
|
|
18902
|
+
showWorkbenchSidebar: z21.boolean().optional(),
|
|
18903
|
+
workbenchViewTheme: z21.enum(["default", "bsd-blue"]).optional(),
|
|
18904
|
+
defaults: z21.object({
|
|
18905
|
+
showFormInImageDetail: z21.boolean().optional(),
|
|
18906
|
+
darkMode: z21.enum(["light", "dark", "auto"]).optional(),
|
|
18907
|
+
language: z21.enum(["en-US", "zh-CN", "ja-JP"]).optional(),
|
|
18908
|
+
showDarkModeToggle: z21.boolean().optional(),
|
|
18909
|
+
showLanguageToggle: z21.boolean().optional()
|
|
18811
18910
|
}).strict().optional(),
|
|
18812
|
-
modules:
|
|
18813
|
-
monkeysSpaceSidebar:
|
|
18814
|
-
monkeysSpaceHeadbar:
|
|
18815
|
-
settingsSidebar:
|
|
18911
|
+
modules: z21.object({
|
|
18912
|
+
monkeysSpaceSidebar: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]).optional(),
|
|
18913
|
+
monkeysSpaceHeadbar: z21.union([z21.literal("*"), z21.array(TenantHeadbarModuleItemSchema)]).optional(),
|
|
18914
|
+
settingsSidebar: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]).optional()
|
|
18816
18915
|
}).strict().optional(),
|
|
18817
18916
|
headbar: ThemeHeadbarSchema.optional(),
|
|
18818
|
-
kernelLayout:
|
|
18819
|
-
navigationMode:
|
|
18820
|
-
allowNavigationModeSwitch:
|
|
18917
|
+
kernelLayout: z21.object({
|
|
18918
|
+
navigationMode: z21.enum(["sidebar", "topbar"]).optional(),
|
|
18919
|
+
allowNavigationModeSwitch: z21.boolean().optional(),
|
|
18821
18920
|
headbar: KernelHeadbarSchema.optional()
|
|
18822
18921
|
}).strict().optional(),
|
|
18823
|
-
paginationPosition:
|
|
18922
|
+
paginationPosition: z21.enum(["left", "right"]).optional(),
|
|
18824
18923
|
listFooter: TenantListFooterConfigSchema.optional(),
|
|
18825
|
-
ugcViewIconOnlyMode:
|
|
18826
|
-
workflowPreviewExecutionGrid:
|
|
18827
|
-
selectionModeDisplayType:
|
|
18828
|
-
clickBehavior:
|
|
18829
|
-
showErrorFilter:
|
|
18830
|
-
displayType:
|
|
18831
|
-
showDetailButton:
|
|
18832
|
-
aspectRatio:
|
|
18924
|
+
ugcViewIconOnlyMode: z21.boolean().optional(),
|
|
18925
|
+
workflowPreviewExecutionGrid: z21.object({
|
|
18926
|
+
selectionModeDisplayType: z21.enum(["operation-button", "dropdown-menu"]).optional(),
|
|
18927
|
+
clickBehavior: z21.enum(["preview", "select", "fill-form", "none"]).optional(),
|
|
18928
|
+
showErrorFilter: z21.boolean().optional(),
|
|
18929
|
+
displayType: z21.enum(["grid", "masonry"]).optional(),
|
|
18930
|
+
showDetailButton: z21.boolean().optional(),
|
|
18931
|
+
aspectRatio: z21.enum(["1:1", "4:3", "3:4", "16:9", "9:16"]).optional()
|
|
18833
18932
|
}).strict().optional(),
|
|
18834
|
-
workbenchSidebarDefaultOpen:
|
|
18835
|
-
workbenchSidebarMoreAction:
|
|
18836
|
-
workbenchSidebarApart:
|
|
18837
|
-
workbenchSidebarToggleGroupDetail:
|
|
18838
|
-
workbenchSidebarViewType:
|
|
18839
|
-
workbenchSidebarFormViewEmbed:
|
|
18840
|
-
workbenchSidebarModernMode:
|
|
18841
|
-
ugc:
|
|
18842
|
-
onItemClick:
|
|
18843
|
-
subtitle:
|
|
18933
|
+
workbenchSidebarDefaultOpen: z21.boolean().optional(),
|
|
18934
|
+
workbenchSidebarMoreAction: z21.boolean().optional(),
|
|
18935
|
+
workbenchSidebarApart: z21.boolean().optional(),
|
|
18936
|
+
workbenchSidebarToggleGroupDetail: z21.boolean().optional(),
|
|
18937
|
+
workbenchSidebarViewType: z21.boolean().optional(),
|
|
18938
|
+
workbenchSidebarFormViewEmbed: z21.boolean().optional(),
|
|
18939
|
+
workbenchSidebarModernMode: z21.boolean().optional(),
|
|
18940
|
+
ugc: z21.object({
|
|
18941
|
+
onItemClick: z21.boolean(),
|
|
18942
|
+
subtitle: z21.boolean().optional()
|
|
18844
18943
|
}).strict().optional(),
|
|
18845
|
-
uniImagePreview:
|
|
18846
|
-
imagePreviewStyle:
|
|
18847
|
-
teamAsUser:
|
|
18848
|
-
themeMode:
|
|
18849
|
-
density:
|
|
18850
|
-
statusStates:
|
|
18851
|
-
loading:
|
|
18852
|
-
empty:
|
|
18853
|
-
error:
|
|
18854
|
-
permission:
|
|
18855
|
-
density:
|
|
18944
|
+
uniImagePreview: z21.boolean().optional(),
|
|
18945
|
+
imagePreviewStyle: z21.union([z21.literal(false), z21.enum(["simple", "normal", "uni"])]).optional(),
|
|
18946
|
+
teamAsUser: z21.boolean().optional(),
|
|
18947
|
+
themeMode: z21.enum(["shadow", "border"]).optional(),
|
|
18948
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional(),
|
|
18949
|
+
statusStates: z21.object({
|
|
18950
|
+
loading: z21.object({ variant: z21.enum(["spinner", "skeleton"]).optional() }).strict().optional(),
|
|
18951
|
+
empty: z21.object({ variant: z21.enum(["default", "compact"]).optional() }).strict().optional(),
|
|
18952
|
+
error: z21.object({ showRetry: z21.boolean().optional() }).strict().optional(),
|
|
18953
|
+
permission: z21.object({ showRequestAccess: z21.boolean().optional() }).strict().optional(),
|
|
18954
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional()
|
|
18856
18955
|
}).strict().optional(),
|
|
18857
|
-
pageZoom:
|
|
18858
|
-
miniMode:
|
|
18859
|
-
workflow:
|
|
18860
|
-
historyResult:
|
|
18861
|
-
uploader:
|
|
18862
|
-
orientation:
|
|
18863
|
-
pasteButton:
|
|
18864
|
-
statusText:
|
|
18956
|
+
pageZoom: z21.number().positive().optional(),
|
|
18957
|
+
miniMode: z21.object({ showPreviewViewExecutionResultGrid: z21.boolean() }).strict().optional(),
|
|
18958
|
+
workflow: z21.object({ allowConcurrentRuns: z21.boolean() }).strict().optional(),
|
|
18959
|
+
historyResult: z21.object({ display: z21.boolean() }).strict().optional(),
|
|
18960
|
+
uploader: z21.object({
|
|
18961
|
+
orientation: z21.enum(["vertical", "horizontal"]),
|
|
18962
|
+
pasteButton: z21.boolean(),
|
|
18963
|
+
statusText: z21.boolean()
|
|
18865
18964
|
}).strict().optional(),
|
|
18866
|
-
designProjects:
|
|
18867
|
-
oneOnOne:
|
|
18868
|
-
newTabOpenBoard:
|
|
18869
|
-
defaultShowGrid:
|
|
18870
|
-
createDefaultFrame:
|
|
18871
|
-
showPageMenu:
|
|
18872
|
-
showMainMenu:
|
|
18873
|
-
showStylePanel:
|
|
18874
|
-
showToolbar:
|
|
18875
|
-
toolbarPosition:
|
|
18876
|
-
showContextMenu:
|
|
18877
|
-
showActionsMenu:
|
|
18878
|
-
showPageAndLayerSidebar:
|
|
18879
|
-
showBoardOperationSidebar:
|
|
18880
|
-
showMiniToolsToolbar:
|
|
18881
|
-
showRightSidebar:
|
|
18882
|
-
showRealtimeDrawing:
|
|
18883
|
-
showWorkflow:
|
|
18884
|
-
showVersionManager:
|
|
18885
|
-
showAgent:
|
|
18886
|
-
AgentTools:
|
|
18965
|
+
designProjects: z21.object({
|
|
18966
|
+
oneOnOne: z21.boolean(),
|
|
18967
|
+
newTabOpenBoard: z21.boolean(),
|
|
18968
|
+
defaultShowGrid: z21.boolean().optional(),
|
|
18969
|
+
createDefaultFrame: z21.boolean(),
|
|
18970
|
+
showPageMenu: z21.boolean(),
|
|
18971
|
+
showMainMenu: z21.boolean(),
|
|
18972
|
+
showStylePanel: z21.boolean(),
|
|
18973
|
+
showToolbar: z21.boolean(),
|
|
18974
|
+
toolbarPosition: z21.enum(["bottom", "left"]).optional(),
|
|
18975
|
+
showContextMenu: z21.boolean(),
|
|
18976
|
+
showActionsMenu: z21.boolean(),
|
|
18977
|
+
showPageAndLayerSidebar: z21.boolean().optional(),
|
|
18978
|
+
showBoardOperationSidebar: z21.boolean().optional(),
|
|
18979
|
+
showMiniToolsToolbar: z21.boolean().optional(),
|
|
18980
|
+
showRightSidebar: z21.boolean().optional(),
|
|
18981
|
+
showRealtimeDrawing: z21.boolean().optional(),
|
|
18982
|
+
showWorkflow: z21.boolean().optional(),
|
|
18983
|
+
showVersionManager: z21.boolean().optional(),
|
|
18984
|
+
showAgent: z21.boolean().optional(),
|
|
18985
|
+
AgentTools: z21.array(ContractIdentifierSchema).optional()
|
|
18887
18986
|
}).strict().optional(),
|
|
18888
18987
|
workbench: TenantWorkbenchConfigSchema.optional(),
|
|
18889
|
-
visionProWorkflows:
|
|
18890
|
-
initTeam:
|
|
18891
|
-
imageThumbnail:
|
|
18892
|
-
pages:
|
|
18893
|
-
allowPageKeys:
|
|
18988
|
+
visionProWorkflows: z21.array(ContractIdentifierSchema).optional(),
|
|
18989
|
+
initTeam: z21.boolean().optional(),
|
|
18990
|
+
imageThumbnail: z21.boolean().optional(),
|
|
18991
|
+
pages: z21.object({
|
|
18992
|
+
allowPageKeys: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]),
|
|
18894
18993
|
defaultPageKey: ContractIdentifierSchema.optional(),
|
|
18895
|
-
homeEntryEnabled:
|
|
18994
|
+
homeEntryEnabled: z21.boolean().optional()
|
|
18896
18995
|
}).strict().optional(),
|
|
18897
18996
|
agent: TenantAgentThemeConfigSchema.optional()
|
|
18898
18997
|
}).strict(),
|
|
18899
18998
|
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
18900
|
-
auth:
|
|
18901
|
-
enabled:
|
|
18902
|
-
oidc:
|
|
18903
|
-
buttonText:
|
|
18904
|
-
autoSignin:
|
|
18999
|
+
auth: z21.object({
|
|
19000
|
+
enabled: z21.array(ContractIdentifierSchema).default([]),
|
|
19001
|
+
oidc: z21.object({
|
|
19002
|
+
buttonText: z21.string().optional(),
|
|
19003
|
+
autoSignin: z21.boolean().optional()
|
|
18905
19004
|
}).strict().optional(),
|
|
18906
|
-
password:
|
|
18907
|
-
registrationEnabled:
|
|
18908
|
-
disableAutoRegister:
|
|
19005
|
+
password: z21.object({
|
|
19006
|
+
registrationEnabled: z21.boolean().optional(),
|
|
19007
|
+
disableAutoRegister: z21.boolean().optional()
|
|
18909
19008
|
}).strict().optional(),
|
|
18910
|
-
registrationApproval:
|
|
18911
|
-
enabled:
|
|
19009
|
+
registrationApproval: z21.object({
|
|
19010
|
+
enabled: z21.boolean().optional()
|
|
18912
19011
|
}).strict().optional(),
|
|
18913
|
-
hideAuthToast:
|
|
18914
|
-
autoReload:
|
|
18915
|
-
defaultOtherTeam:
|
|
19012
|
+
hideAuthToast: z21.boolean().optional(),
|
|
19013
|
+
autoReload: z21.boolean().optional(),
|
|
19014
|
+
defaultOtherTeam: z21.boolean().optional()
|
|
18916
19015
|
}).strict(),
|
|
18917
|
-
endpoints:
|
|
18918
|
-
module:
|
|
18919
|
-
behavior:
|
|
18920
|
-
clearWorkflowFormStorageAfterUpdate:
|
|
18921
|
-
autoApproveOAuth:
|
|
18922
|
-
rememberWorkflowModelSelection:
|
|
19016
|
+
endpoints: z21.record(ContractIdentifierSchema, z21.string()),
|
|
19017
|
+
module: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]),
|
|
19018
|
+
behavior: z21.object({
|
|
19019
|
+
clearWorkflowFormStorageAfterUpdate: z21.boolean().optional(),
|
|
19020
|
+
autoApproveOAuth: z21.boolean().optional(),
|
|
19021
|
+
rememberWorkflowModelSelection: z21.boolean().optional()
|
|
18923
19022
|
}).strict(),
|
|
18924
|
-
dataManagement:
|
|
18925
|
-
favoriteOntologyId:
|
|
18926
|
-
pairedOntologyId:
|
|
18927
|
-
galleryOntologyIds:
|
|
18928
|
-
galleryOntologyId:
|
|
18929
|
-
dataBrowserDefaultOntologyId:
|
|
18930
|
-
workflowResultOntologyId:
|
|
18931
|
-
homeAdvertisement:
|
|
19023
|
+
dataManagement: z21.object({
|
|
19024
|
+
favoriteOntologyId: z21.string().optional(),
|
|
19025
|
+
pairedOntologyId: z21.string().optional(),
|
|
19026
|
+
galleryOntologyIds: z21.array(ContractIdentifierSchema).max(20).optional(),
|
|
19027
|
+
galleryOntologyId: z21.string().optional(),
|
|
19028
|
+
dataBrowserDefaultOntologyId: z21.string().optional(),
|
|
19029
|
+
workflowResultOntologyId: z21.string().optional(),
|
|
19030
|
+
homeAdvertisement: z21.object({
|
|
18932
19031
|
ontologyId: ContractIdentifierSchema,
|
|
18933
19032
|
viewId: ContractIdentifierSchema.optional(),
|
|
18934
|
-
viewType:
|
|
19033
|
+
viewType: z21.enum(["filter", "container", "share_link"]).optional(),
|
|
18935
19034
|
teamId: ContractIdentifierSchema.optional(),
|
|
18936
|
-
teamOnly:
|
|
18937
|
-
pageSize:
|
|
18938
|
-
sortBy:
|
|
18939
|
-
sortOrder:
|
|
18940
|
-
fieldMap:
|
|
18941
|
-
columnIds:
|
|
19035
|
+
teamOnly: z21.boolean().optional(),
|
|
19036
|
+
pageSize: z21.number().int().positive().optional(),
|
|
19037
|
+
sortBy: z21.enum(["pin_order", "asset_id", "updated_timestamp", "created_timestamp"]).optional(),
|
|
19038
|
+
sortOrder: z21.enum(["asc", "desc"]).optional(),
|
|
19039
|
+
fieldMap: z21.record(z21.string(), z21.string()).optional(),
|
|
19040
|
+
columnIds: z21.record(z21.string(), z21.string()).optional()
|
|
18942
19041
|
}).strict().optional(),
|
|
18943
|
-
homeShortcutBackground:
|
|
19042
|
+
homeShortcutBackground: z21.object({
|
|
18944
19043
|
ontologyId: ContractIdentifierSchema,
|
|
18945
19044
|
viewId: ContractIdentifierSchema.optional(),
|
|
18946
|
-
viewType:
|
|
19045
|
+
viewType: z21.enum(["filter", "container", "share_link"]).optional(),
|
|
18947
19046
|
teamId: ContractIdentifierSchema.optional(),
|
|
18948
|
-
teamOnly:
|
|
18949
|
-
pageSize:
|
|
18950
|
-
sortBy:
|
|
18951
|
-
sortOrder:
|
|
18952
|
-
fieldMap:
|
|
18953
|
-
columnIds:
|
|
19047
|
+
teamOnly: z21.boolean().optional(),
|
|
19048
|
+
pageSize: z21.number().int().positive().optional(),
|
|
19049
|
+
sortBy: z21.enum(["pin_order", "asset_id", "updated_timestamp"]).optional(),
|
|
19050
|
+
sortOrder: z21.enum(["asc", "desc"]).optional(),
|
|
19051
|
+
fieldMap: z21.record(z21.string(), z21.string()).optional(),
|
|
19052
|
+
columnIds: z21.record(z21.string(), z21.string()).optional()
|
|
18954
19053
|
}).strict().optional(),
|
|
18955
|
-
homeTrendAssistant:
|
|
19054
|
+
homeTrendAssistant: z21.object({
|
|
18956
19055
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
18957
19056
|
viewId: ContractIdentifierSchema.optional(),
|
|
18958
19057
|
viewInstanceId: ContractIdentifierSchema.optional(),
|
|
18959
|
-
viewName:
|
|
19058
|
+
viewName: z21.string().optional(),
|
|
18960
19059
|
teamId: ContractIdentifierSchema.optional(),
|
|
18961
19060
|
designOptionsWorkflowId: ContractIdentifierSchema.optional(),
|
|
18962
|
-
tep:
|
|
18963
|
-
baseUrl:
|
|
18964
|
-
timeoutMs:
|
|
19061
|
+
tep: z21.object({
|
|
19062
|
+
baseUrl: z21.string().optional(),
|
|
19063
|
+
timeoutMs: z21.number().int().positive().optional()
|
|
18965
19064
|
}).strict().optional(),
|
|
18966
|
-
runtime:
|
|
19065
|
+
runtime: z21.object({
|
|
18967
19066
|
appId: ContractIdentifierSchema,
|
|
18968
|
-
tepBaseUrlConfigured:
|
|
18969
|
-
tepAuthorizationConfigured:
|
|
18970
|
-
tepCookieConfigured:
|
|
19067
|
+
tepBaseUrlConfigured: z21.boolean(),
|
|
19068
|
+
tepAuthorizationConfigured: z21.boolean(),
|
|
19069
|
+
tepCookieConfigured: z21.boolean()
|
|
18971
19070
|
}).strict().optional()
|
|
18972
19071
|
}).strict().optional(),
|
|
18973
|
-
staticTrendReport:
|
|
19072
|
+
staticTrendReport: z21.object({
|
|
18974
19073
|
ontologyId: ContractIdentifierSchema,
|
|
18975
19074
|
viewId: ContractIdentifierSchema.optional(),
|
|
18976
19075
|
teamId: ContractIdentifierSchema.optional()
|
|
18977
19076
|
}).strict().optional(),
|
|
18978
19077
|
trendRadar: TenantTrendRadarSourcesSchema.optional(),
|
|
18979
|
-
sharing:
|
|
18980
|
-
silentViewLinks:
|
|
18981
|
-
enabled:
|
|
18982
|
-
placement:
|
|
18983
|
-
mode:
|
|
19078
|
+
sharing: z21.object({
|
|
19079
|
+
silentViewLinks: z21.object({
|
|
19080
|
+
enabled: z21.boolean().optional(),
|
|
19081
|
+
placement: z21.object({
|
|
19082
|
+
mode: z21.enum(["sourceOntology", "ontology"]).optional(),
|
|
18984
19083
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
18985
19084
|
parentId: ContractIdentifierSchema.optional(),
|
|
18986
19085
|
navId: ContractIdentifierSchema.optional()
|
|
18987
19086
|
}).strict().optional()
|
|
18988
19087
|
}).strict().optional(),
|
|
18989
|
-
shareAccess:
|
|
18990
|
-
publicLinksEnabled:
|
|
18991
|
-
passwordGateEnabled:
|
|
18992
|
-
passwordAccessTtlSeconds:
|
|
18993
|
-
defaultViewTreeDelivery:
|
|
19088
|
+
shareAccess: z21.object({
|
|
19089
|
+
publicLinksEnabled: z21.boolean().optional(),
|
|
19090
|
+
passwordGateEnabled: z21.boolean().optional(),
|
|
19091
|
+
passwordAccessTtlSeconds: z21.number().int().positive().optional(),
|
|
19092
|
+
defaultViewTreeDelivery: z21.enum(["manual", "auto"]).optional()
|
|
18994
19093
|
}).strict().optional(),
|
|
18995
|
-
shareDialog:
|
|
18996
|
-
uiVersion:
|
|
18997
|
-
audience:
|
|
18998
|
-
enabled:
|
|
18999
|
-
allowed:
|
|
19000
|
-
default:
|
|
19094
|
+
shareDialog: z21.object({
|
|
19095
|
+
uiVersion: z21.enum(["legacy", "simplified"]).optional(),
|
|
19096
|
+
audience: z21.object({
|
|
19097
|
+
enabled: z21.boolean().optional(),
|
|
19098
|
+
allowed: z21.array(z21.enum(["user", "team", "public"])).optional(),
|
|
19099
|
+
default: z21.enum(["user", "team", "public"]).optional()
|
|
19001
19100
|
}).strict().optional(),
|
|
19002
|
-
accessLevel:
|
|
19003
|
-
enabled:
|
|
19004
|
-
allowed:
|
|
19005
|
-
default:
|
|
19101
|
+
accessLevel: z21.object({
|
|
19102
|
+
enabled: z21.boolean().optional(),
|
|
19103
|
+
allowed: z21.array(z21.enum(["read", "write"])).optional(),
|
|
19104
|
+
default: z21.enum(["read", "write"]).optional()
|
|
19006
19105
|
}).strict().optional(),
|
|
19007
|
-
viewTreeDelivery:
|
|
19008
|
-
enabled:
|
|
19009
|
-
allowed:
|
|
19010
|
-
default:
|
|
19106
|
+
viewTreeDelivery: z21.object({
|
|
19107
|
+
enabled: z21.boolean().optional(),
|
|
19108
|
+
allowed: z21.array(z21.enum(["manual", "auto"])).optional(),
|
|
19109
|
+
default: z21.enum(["manual", "auto"]).optional()
|
|
19011
19110
|
}).strict().optional()
|
|
19012
19111
|
}).strict().optional(),
|
|
19013
|
-
personalNotifications:
|
|
19112
|
+
personalNotifications: z21.object({ supported: z21.boolean() }).strict().optional()
|
|
19014
19113
|
}).strict().optional()
|
|
19015
19114
|
}).strict().optional(),
|
|
19016
|
-
kernelRuntime:
|
|
19017
|
-
integrations:
|
|
19018
|
-
harbor:
|
|
19019
|
-
endpoint:
|
|
19020
|
-
projectScopes:
|
|
19021
|
-
authMode:
|
|
19022
|
-
principal:
|
|
19023
|
-
autoSync:
|
|
19024
|
-
proxyUrl:
|
|
19115
|
+
kernelRuntime: z21.object({
|
|
19116
|
+
integrations: z21.object({
|
|
19117
|
+
harbor: z21.object({
|
|
19118
|
+
endpoint: z21.string().optional(),
|
|
19119
|
+
projectScopes: z21.array(z21.string()).optional(),
|
|
19120
|
+
authMode: z21.string().optional(),
|
|
19121
|
+
principal: z21.string().optional(),
|
|
19122
|
+
autoSync: z21.boolean().optional(),
|
|
19123
|
+
proxyUrl: z21.string().optional()
|
|
19025
19124
|
}).strict().optional(),
|
|
19026
|
-
gitlab:
|
|
19027
|
-
baseUrl:
|
|
19028
|
-
groupScopes:
|
|
19029
|
-
tokenMode:
|
|
19030
|
-
deployProjectPath:
|
|
19031
|
-
deploymentReportsEnabled:
|
|
19032
|
-
proxyUrl:
|
|
19125
|
+
gitlab: z21.object({
|
|
19126
|
+
baseUrl: z21.string().optional(),
|
|
19127
|
+
groupScopes: z21.array(z21.string()).optional(),
|
|
19128
|
+
tokenMode: z21.string().optional(),
|
|
19129
|
+
deployProjectPath: z21.string().optional(),
|
|
19130
|
+
deploymentReportsEnabled: z21.boolean().optional(),
|
|
19131
|
+
proxyUrl: z21.string().optional()
|
|
19033
19132
|
}).strict().optional(),
|
|
19034
|
-
kubernetes:
|
|
19035
|
-
accessMode:
|
|
19036
|
-
clusterAlias:
|
|
19037
|
-
agentProjectPath:
|
|
19038
|
-
agentName:
|
|
19039
|
-
namespaceScopes:
|
|
19040
|
-
rolloutObserverEnabled:
|
|
19041
|
-
proxyUrl:
|
|
19133
|
+
kubernetes: z21.object({
|
|
19134
|
+
accessMode: z21.string().optional(),
|
|
19135
|
+
clusterAlias: z21.string().optional(),
|
|
19136
|
+
agentProjectPath: z21.string().optional(),
|
|
19137
|
+
agentName: z21.string().optional(),
|
|
19138
|
+
namespaceScopes: z21.array(z21.string()).optional(),
|
|
19139
|
+
rolloutObserverEnabled: z21.boolean().optional(),
|
|
19140
|
+
proxyUrl: z21.string().optional()
|
|
19042
19141
|
}).strict().optional()
|
|
19043
19142
|
}).strict().optional()
|
|
19044
19143
|
}).strict().optional(),
|
|
19045
|
-
data:
|
|
19046
|
-
storage:
|
|
19047
|
-
presignMode:
|
|
19048
|
-
presign:
|
|
19049
|
-
expiresInSeconds:
|
|
19050
|
-
buckets:
|
|
19051
|
-
|
|
19144
|
+
data: z21.object({}).strict().optional(),
|
|
19145
|
+
storage: z21.object({
|
|
19146
|
+
presignMode: z21.enum(["frontend", "backend", "both"]).optional(),
|
|
19147
|
+
presign: z21.object({
|
|
19148
|
+
expiresInSeconds: z21.number().int().positive(),
|
|
19149
|
+
buckets: z21.array(
|
|
19150
|
+
z21.object({
|
|
19052
19151
|
id: ContractIdentifierSchema,
|
|
19053
19152
|
provider: ContractIdentifierSchema,
|
|
19054
19153
|
preferredUrlPatternId: ContractIdentifierSchema,
|
|
19055
|
-
urlPatterns:
|
|
19056
|
-
|
|
19154
|
+
urlPatterns: z21.array(
|
|
19155
|
+
z21.object({
|
|
19057
19156
|
id: ContractIdentifierSchema,
|
|
19058
|
-
type:
|
|
19059
|
-
hostname:
|
|
19060
|
-
preferred:
|
|
19061
|
-
bucketSegment:
|
|
19157
|
+
type: z21.enum(["bucket-hostname", "provider-hostname"]),
|
|
19158
|
+
hostname: z21.string().trim().min(1),
|
|
19159
|
+
preferred: z21.boolean().optional(),
|
|
19160
|
+
bucketSegment: z21.string().optional()
|
|
19062
19161
|
}).strict()
|
|
19063
19162
|
)
|
|
19064
19163
|
}).strict()
|
|
19065
19164
|
)
|
|
19066
19165
|
}).strict().optional()
|
|
19067
19166
|
}).strict().optional(),
|
|
19068
|
-
monkeyData:
|
|
19167
|
+
monkeyData: z21.object({ baseUrl: z21.string().optional() }).strict().optional()
|
|
19069
19168
|
}).strict();
|
|
19070
|
-
var DeclarativeRuntimeRolloutCapabilitySchema =
|
|
19071
|
-
contract:
|
|
19072
|
-
schemaVersion:
|
|
19073
|
-
state:
|
|
19169
|
+
var DeclarativeRuntimeRolloutCapabilitySchema = z21.object({
|
|
19170
|
+
contract: z21.literal("DeclarativeRuntimeRolloutCapability"),
|
|
19171
|
+
schemaVersion: z21.literal(1),
|
|
19172
|
+
state: z21.enum(["disabled", "enabled"]),
|
|
19074
19173
|
apiVersion: ContractIdentifierSchema,
|
|
19075
|
-
enabledSurfaces:
|
|
19076
|
-
generation:
|
|
19077
|
-
etag:
|
|
19174
|
+
enabledSurfaces: z21.array(z21.enum(["studio", "kernel"])),
|
|
19175
|
+
generation: z21.number().int().nonnegative(),
|
|
19176
|
+
etag: z21.string().trim().min(1)
|
|
19078
19177
|
}).strict();
|
|
19079
|
-
var TenantProductConfigSchema =
|
|
19080
|
-
contract:
|
|
19178
|
+
var TenantProductConfigSchema = z21.object({
|
|
19179
|
+
contract: z21.literal("TenantProductConfig"),
|
|
19081
19180
|
tenantId: ContractIdentifierSchema,
|
|
19082
19181
|
appId: ContractIdentifierSchema,
|
|
19083
19182
|
environment: ContractIdentifierSchema,
|
|
19084
19183
|
designTokens: TenantDesignTokensConfigSchema,
|
|
19085
|
-
moduleRefs:
|
|
19086
|
-
pageRefs:
|
|
19087
|
-
featureFlags:
|
|
19184
|
+
moduleRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
19185
|
+
pageRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
19186
|
+
featureFlags: z21.record(z21.string(), z21.boolean()).default({}),
|
|
19088
19187
|
authBinding: TenantAuthBindingsSchema,
|
|
19089
19188
|
dataBinding: TenantDataBindingsSchema,
|
|
19090
|
-
sourceMap:
|
|
19091
|
-
warnings:
|
|
19189
|
+
sourceMap: z21.record(z21.string(), ContractIdentifierSchema),
|
|
19190
|
+
warnings: z21.array(z21.string()).default([]),
|
|
19092
19191
|
menus: MenuDefinitionSetSchema.optional(),
|
|
19093
19192
|
applicationConfig: TenantApplicationConfigSchema,
|
|
19094
19193
|
declarativeRuntime: DeclarativeRuntimeRolloutCapabilitySchema.optional()
|
|
19095
19194
|
}).strict();
|
|
19096
|
-
var TenantRuntimeConfigSchema =
|
|
19097
|
-
contract:
|
|
19195
|
+
var TenantRuntimeConfigSchema = z21.object({
|
|
19196
|
+
contract: z21.literal("TenantRuntimeConfig"),
|
|
19098
19197
|
tenantId: ContractIdentifierSchema,
|
|
19099
19198
|
appId: ContractIdentifierSchema,
|
|
19100
19199
|
environment: ContractIdentifierSchema,
|
|
19101
19200
|
designTokens: ResolvedThemeTokensSchema,
|
|
19102
|
-
moduleRefs:
|
|
19103
|
-
pageRefs:
|
|
19104
|
-
featureFlags:
|
|
19201
|
+
moduleRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
19202
|
+
pageRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
19203
|
+
featureFlags: z21.record(z21.string(), z21.boolean()).default({}),
|
|
19105
19204
|
authBinding: TenantAuthBindingsSchema,
|
|
19106
19205
|
dataBinding: TenantDataBindingsSchema,
|
|
19107
|
-
sourceMap:
|
|
19108
|
-
warnings:
|
|
19206
|
+
sourceMap: z21.record(z21.string(), ContractIdentifierSchema),
|
|
19207
|
+
warnings: z21.array(z21.string()).default([]),
|
|
19109
19208
|
menuBundle: MenuRuntimeBundleSchema.optional(),
|
|
19110
19209
|
applicationConfig: TenantApplicationConfigSchema,
|
|
19111
19210
|
declarativeRuntime: DeclarativeRuntimeRolloutCapabilitySchema.optional()
|
|
19112
19211
|
}).strict();
|
|
19113
19212
|
|
|
19114
19213
|
// src/contracts/trend.ts
|
|
19115
|
-
import { z as
|
|
19116
|
-
var RadarDecisionMetricsSchema =
|
|
19117
|
-
currentSales:
|
|
19118
|
-
forecastSales:
|
|
19119
|
-
searchHeat:
|
|
19120
|
-
socialHeat:
|
|
19121
|
-
confidence:
|
|
19122
|
-
}).strict();
|
|
19123
|
-
var TrendSourceSchema =
|
|
19214
|
+
import { z as z22 } from "zod";
|
|
19215
|
+
var RadarDecisionMetricsSchema = z22.object({
|
|
19216
|
+
currentSales: z22.number().finite(),
|
|
19217
|
+
forecastSales: z22.number().finite(),
|
|
19218
|
+
searchHeat: z22.number().finite(),
|
|
19219
|
+
socialHeat: z22.number().finite(),
|
|
19220
|
+
confidence: z22.number().min(0).max(1)
|
|
19221
|
+
}).strict();
|
|
19222
|
+
var TrendSourceSchema = z22.object({
|
|
19124
19223
|
sourceId: ContractIdentifierSchema,
|
|
19125
19224
|
provider: ContractIdentifierSchema,
|
|
19126
|
-
channel:
|
|
19225
|
+
channel: z22.enum(["trend", "ecommerce", "social", "search", "internal"]),
|
|
19127
19226
|
collectedAt: IsoDateTimeSchema,
|
|
19128
|
-
sourceUrl:
|
|
19129
|
-
evidenceRefs:
|
|
19227
|
+
sourceUrl: z22.string().url().optional(),
|
|
19228
|
+
evidenceRefs: z22.array(EntityRefSchema).default([])
|
|
19130
19229
|
}).strict();
|
|
19131
|
-
var TrendIngestRunSchema =
|
|
19132
|
-
contract:
|
|
19230
|
+
var TrendIngestRunSchema = z22.object({
|
|
19231
|
+
contract: z22.literal("TrendIngestRun"),
|
|
19133
19232
|
ingestRunId: ContractIdentifierSchema,
|
|
19134
19233
|
sourceId: ContractIdentifierSchema,
|
|
19135
19234
|
requestId: ContractIdentifierSchema,
|
|
19136
19235
|
idempotencyKey: ContractIdentifierSchema,
|
|
19137
|
-
status:
|
|
19138
|
-
recordCount:
|
|
19139
|
-
errorCount:
|
|
19236
|
+
status: z22.enum(["RUNNING", "SUCCEEDED", "FAILED", "PARTIAL"]),
|
|
19237
|
+
recordCount: z22.number().int().nonnegative(),
|
|
19238
|
+
errorCount: z22.number().int().nonnegative(),
|
|
19140
19239
|
startedAt: IsoDateTimeSchema,
|
|
19141
19240
|
completedAt: IsoDateTimeSchema.optional()
|
|
19142
19241
|
}).strict();
|
|
19143
|
-
var TrendSourceRecordSchema =
|
|
19144
|
-
contract:
|
|
19242
|
+
var TrendSourceRecordSchema = z22.object({
|
|
19243
|
+
contract: z22.literal("TrendSourceRecord"),
|
|
19145
19244
|
sourceRecordId: ContractIdentifierSchema,
|
|
19146
19245
|
source: TrendSourceSchema,
|
|
19147
19246
|
ingestRunRef: EntityRefSchema,
|
|
19148
|
-
recordVersion:
|
|
19247
|
+
recordVersion: z22.number().int().positive(),
|
|
19149
19248
|
contentHash: Sha256Schema,
|
|
19150
19249
|
payload: JsonValueSchema,
|
|
19151
19250
|
idempotencyKey: ContractIdentifierSchema,
|
|
19152
19251
|
collectedAt: IsoDateTimeSchema
|
|
19153
19252
|
}).strict();
|
|
19154
|
-
var HotwordBodySchema =
|
|
19155
|
-
contract:
|
|
19253
|
+
var HotwordBodySchema = z22.object({
|
|
19254
|
+
contract: z22.literal("HotwordBody"),
|
|
19156
19255
|
hotwordId: ContractIdentifierSchema,
|
|
19157
|
-
label:
|
|
19158
|
-
normalizedLabel:
|
|
19159
|
-
categories:
|
|
19160
|
-
sourceRefs:
|
|
19161
|
-
relationRefs:
|
|
19256
|
+
label: z22.string().trim().min(1),
|
|
19257
|
+
normalizedLabel: z22.string().trim().min(1),
|
|
19258
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
19259
|
+
sourceRefs: z22.array(TrendSourceSchema).min(1),
|
|
19260
|
+
relationRefs: z22.array(EntityRefSchema).default([]),
|
|
19162
19261
|
createdAt: IsoDateTimeSchema,
|
|
19163
19262
|
updatedAt: IsoDateTimeSchema
|
|
19164
19263
|
}).strict();
|
|
19165
19264
|
var CommerceBodyFieldsSchema = {
|
|
19166
|
-
displayName:
|
|
19167
|
-
normalizedName:
|
|
19168
|
-
categories:
|
|
19169
|
-
sourceRefs:
|
|
19170
|
-
relationRefs:
|
|
19265
|
+
displayName: z22.string().trim().min(1),
|
|
19266
|
+
normalizedName: z22.string().trim().min(1),
|
|
19267
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
19268
|
+
sourceRefs: z22.array(EntityRefSchema).min(1),
|
|
19269
|
+
relationRefs: z22.array(EntityRefSchema).default([]),
|
|
19171
19270
|
createdAt: IsoDateTimeSchema,
|
|
19172
19271
|
updatedAt: IsoDateTimeSchema
|
|
19173
19272
|
};
|
|
19174
|
-
var BrandBodySchema =
|
|
19175
|
-
contract:
|
|
19273
|
+
var BrandBodySchema = z22.object({
|
|
19274
|
+
contract: z22.literal("BrandBody"),
|
|
19176
19275
|
brandId: ContractIdentifierSchema,
|
|
19177
19276
|
...CommerceBodyFieldsSchema
|
|
19178
19277
|
}).strict();
|
|
19179
|
-
var ProductBodySchema =
|
|
19180
|
-
contract:
|
|
19278
|
+
var ProductBodySchema = z22.object({
|
|
19279
|
+
contract: z22.literal("ProductBody"),
|
|
19181
19280
|
productId: ContractIdentifierSchema,
|
|
19182
19281
|
brandRef: EntityRefSchema.optional(),
|
|
19183
19282
|
...CommerceBodyFieldsSchema
|
|
19184
19283
|
}).strict();
|
|
19185
|
-
var TrendMetricSnapshotSchema =
|
|
19186
|
-
contract:
|
|
19284
|
+
var TrendMetricSnapshotSchema = z22.object({
|
|
19285
|
+
contract: z22.literal("TrendMetricSnapshot"),
|
|
19187
19286
|
snapshotId: ContractIdentifierSchema,
|
|
19188
19287
|
subjectRef: EntityRefSchema,
|
|
19189
19288
|
observedAt: IsoDateTimeSchema,
|
|
19190
|
-
metrics:
|
|
19191
|
-
confidence:
|
|
19192
|
-
evidenceRefs:
|
|
19289
|
+
metrics: z22.record(z22.string(), z22.number().finite()),
|
|
19290
|
+
confidence: z22.number().min(0).max(1),
|
|
19291
|
+
evidenceRefs: z22.array(EntityRefSchema).min(1)
|
|
19193
19292
|
}).strict();
|
|
19194
|
-
var RadarScoreModelBodySchema =
|
|
19195
|
-
contract:
|
|
19293
|
+
var RadarScoreModelBodySchema = z22.object({
|
|
19294
|
+
contract: z22.literal("RadarScoreModelBody"),
|
|
19196
19295
|
modelId: ContractIdentifierSchema,
|
|
19197
|
-
version:
|
|
19296
|
+
version: z22.number().int().positive(),
|
|
19198
19297
|
weights: RadarDecisionMetricsSchema,
|
|
19199
|
-
thresholds:
|
|
19200
|
-
explanationRules:
|
|
19298
|
+
thresholds: z22.record(z22.string(), z22.number().finite()).default({}),
|
|
19299
|
+
explanationRules: z22.record(z22.string(), z22.string().trim().min(1)).default({}),
|
|
19201
19300
|
createdAt: IsoDateTimeSchema
|
|
19202
19301
|
}).strict();
|
|
19203
|
-
var RadarScoreProjectionSchema =
|
|
19204
|
-
contract:
|
|
19302
|
+
var RadarScoreProjectionSchema = z22.object({
|
|
19303
|
+
contract: z22.literal("RadarScoreProjection"),
|
|
19205
19304
|
projectionId: ContractIdentifierSchema,
|
|
19206
19305
|
subjectRef: EntityRefSchema,
|
|
19207
19306
|
modelRef: EntityRefSchema,
|
|
19208
|
-
totalScore:
|
|
19307
|
+
totalScore: z22.number().finite(),
|
|
19209
19308
|
dimensions: RadarDecisionMetricsSchema,
|
|
19210
|
-
evidenceRefs:
|
|
19309
|
+
evidenceRefs: z22.array(EntityRefSchema).min(1),
|
|
19211
19310
|
freshnessAt: IsoDateTimeSchema
|
|
19212
19311
|
}).strict();
|
|
19213
|
-
var RadarPanoramaNodeSchema =
|
|
19312
|
+
var RadarPanoramaNodeSchema = z22.object({
|
|
19214
19313
|
ref: EntityRefSchema,
|
|
19215
|
-
label:
|
|
19216
|
-
categories:
|
|
19217
|
-
score:
|
|
19314
|
+
label: z22.string().trim().min(1),
|
|
19315
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
19316
|
+
score: z22.number().finite().optional(),
|
|
19218
19317
|
freshnessAt: IsoDateTimeSchema.optional()
|
|
19219
19318
|
}).strict();
|
|
19220
|
-
var RadarPanoramaEdgeSchema =
|
|
19319
|
+
var RadarPanoramaEdgeSchema = z22.object({
|
|
19221
19320
|
sourceRef: EntityRefSchema,
|
|
19222
19321
|
targetRef: EntityRefSchema,
|
|
19223
19322
|
relation: ContractIdentifierSchema,
|
|
19224
|
-
evidenceRefs:
|
|
19323
|
+
evidenceRefs: z22.array(EntityRefSchema).default([])
|
|
19225
19324
|
}).strict();
|
|
19226
|
-
var RadarPanoramaSchema =
|
|
19227
|
-
contract:
|
|
19228
|
-
nodes:
|
|
19229
|
-
edges:
|
|
19325
|
+
var RadarPanoramaSchema = z22.object({
|
|
19326
|
+
contract: z22.literal("RadarPanorama"),
|
|
19327
|
+
nodes: z22.array(RadarPanoramaNodeSchema),
|
|
19328
|
+
edges: z22.array(RadarPanoramaEdgeSchema),
|
|
19230
19329
|
generatedAt: IsoDateTimeSchema
|
|
19231
19330
|
}).strict();
|
|
19232
|
-
var BrandGeneticsProfileSchema =
|
|
19233
|
-
contract:
|
|
19331
|
+
var BrandGeneticsProfileSchema = z22.object({
|
|
19332
|
+
contract: z22.literal("BrandGeneticsProfile"),
|
|
19234
19333
|
brandRef: EntityRefSchema,
|
|
19235
|
-
categories:
|
|
19236
|
-
signature:
|
|
19237
|
-
relatedRefs:
|
|
19238
|
-
evidenceRefs:
|
|
19334
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
19335
|
+
signature: z22.record(ContractIdentifierSchema, z22.number().finite()),
|
|
19336
|
+
relatedRefs: z22.array(EntityRefSchema).default([]),
|
|
19337
|
+
evidenceRefs: z22.array(EntityRefSchema).default([]),
|
|
19239
19338
|
computedAt: IsoDateTimeSchema
|
|
19240
19339
|
}).strict();
|
|
19241
|
-
var RadarOpportunityMatrixPointSchema =
|
|
19340
|
+
var RadarOpportunityMatrixPointSchema = z22.object({
|
|
19242
19341
|
subjectRef: EntityRefSchema,
|
|
19243
|
-
label:
|
|
19244
|
-
x:
|
|
19245
|
-
y:
|
|
19246
|
-
score:
|
|
19247
|
-
evidenceRefs:
|
|
19248
|
-
}).strict();
|
|
19249
|
-
var RadarOpportunityMatrixSchema =
|
|
19250
|
-
contract:
|
|
19251
|
-
xMetric:
|
|
19252
|
-
yMetric:
|
|
19253
|
-
points:
|
|
19342
|
+
label: z22.string().trim().min(1),
|
|
19343
|
+
x: z22.number().finite(),
|
|
19344
|
+
y: z22.number().finite(),
|
|
19345
|
+
score: z22.number().finite(),
|
|
19346
|
+
evidenceRefs: z22.array(EntityRefSchema).default([])
|
|
19347
|
+
}).strict();
|
|
19348
|
+
var RadarOpportunityMatrixSchema = z22.object({
|
|
19349
|
+
contract: z22.literal("RadarOpportunityMatrix"),
|
|
19350
|
+
xMetric: z22.enum(["currentSales", "forecastSales", "searchHeat", "socialHeat", "confidence"]),
|
|
19351
|
+
yMetric: z22.enum(["currentSales", "forecastSales", "searchHeat", "socialHeat", "confidence"]),
|
|
19352
|
+
points: z22.array(RadarOpportunityMatrixPointSchema),
|
|
19254
19353
|
computedAt: IsoDateTimeSchema
|
|
19255
19354
|
}).strict();
|
|
19256
|
-
var RadarQueryBodySchema =
|
|
19257
|
-
contract:
|
|
19355
|
+
var RadarQueryBodySchema = z22.object({
|
|
19356
|
+
contract: z22.literal("RadarQueryBody"),
|
|
19258
19357
|
queryId: ContractIdentifierSchema,
|
|
19259
|
-
filters:
|
|
19260
|
-
sort:
|
|
19358
|
+
filters: z22.record(z22.string(), JsonValueSchema).default({}),
|
|
19359
|
+
sort: z22.object({
|
|
19261
19360
|
field: ContractIdentifierSchema,
|
|
19262
|
-
direction:
|
|
19361
|
+
direction: z22.enum(["asc", "desc"])
|
|
19263
19362
|
}).strict(),
|
|
19264
|
-
pageSize:
|
|
19363
|
+
pageSize: z22.number().int().min(1).max(200),
|
|
19265
19364
|
updatedAt: IsoDateTimeSchema
|
|
19266
19365
|
}).strict();
|
|
19267
|
-
var SavedRadarQuerySchema =
|
|
19268
|
-
contract:
|
|
19366
|
+
var SavedRadarQuerySchema = z22.object({
|
|
19367
|
+
contract: z22.literal("SavedRadarQuery"),
|
|
19269
19368
|
savedQueryId: ContractIdentifierSchema,
|
|
19270
19369
|
teamId: ContractIdentifierSchema,
|
|
19271
19370
|
ownerRef: EntityRefSchema,
|
|
19272
|
-
name:
|
|
19371
|
+
name: z22.string().trim().min(1),
|
|
19273
19372
|
queryRef: EntityRefSchema,
|
|
19274
|
-
expectedVersion:
|
|
19373
|
+
expectedVersion: z22.number().int().nonnegative(),
|
|
19275
19374
|
updatedAt: IsoDateTimeSchema
|
|
19276
19375
|
}).strict();
|
|
19277
|
-
var RadarSelectionSchema =
|
|
19278
|
-
contract:
|
|
19376
|
+
var RadarSelectionSchema = z22.object({
|
|
19377
|
+
contract: z22.literal("RadarSelection"),
|
|
19279
19378
|
selectionId: ContractIdentifierSchema,
|
|
19280
19379
|
teamId: ContractIdentifierSchema,
|
|
19281
19380
|
ownerRef: EntityRefSchema,
|
|
19282
|
-
subjectRefs:
|
|
19283
|
-
status:
|
|
19284
|
-
note:
|
|
19285
|
-
expectedVersion:
|
|
19381
|
+
subjectRefs: z22.array(EntityRefSchema),
|
|
19382
|
+
status: z22.enum(["stashed", "selected", "rejected", "archived"]),
|
|
19383
|
+
note: z22.string().optional(),
|
|
19384
|
+
expectedVersion: z22.number().int().nonnegative(),
|
|
19286
19385
|
updatedAt: IsoDateTimeSchema
|
|
19287
19386
|
}).strict();
|
|
19288
19387
|
var versionedRefFields = {
|
|
19289
19388
|
id: ContractIdentifierSchema,
|
|
19290
|
-
version:
|
|
19389
|
+
version: z22.union([z22.number().int().positive(), z22.string().trim().min(1)]).optional(),
|
|
19291
19390
|
ownerRepo: ContractIdentifierSchema.optional()
|
|
19292
19391
|
};
|
|
19293
|
-
var TrendRadarCollectionAssetRefSchema =
|
|
19294
|
-
kind:
|
|
19392
|
+
var TrendRadarCollectionAssetRefSchema = z22.object({
|
|
19393
|
+
kind: z22.literal("asset"),
|
|
19295
19394
|
...versionedRefFields
|
|
19296
19395
|
}).strict();
|
|
19297
|
-
var TrendRadarCollectionSelectionRefSchema =
|
|
19298
|
-
kind:
|
|
19396
|
+
var TrendRadarCollectionSelectionRefSchema = z22.object({
|
|
19397
|
+
kind: z22.literal("radar-selection"),
|
|
19299
19398
|
...versionedRefFields
|
|
19300
19399
|
}).strict();
|
|
19301
|
-
var TrendRadarCollectionRunRefSchema =
|
|
19302
|
-
kind:
|
|
19400
|
+
var TrendRadarCollectionRunRefSchema = z22.object({
|
|
19401
|
+
kind: z22.literal("radar-analysis-run"),
|
|
19303
19402
|
...versionedRefFields
|
|
19304
19403
|
}).strict();
|
|
19305
|
-
var TrendRadarCollectionSubjectRefSchema =
|
|
19306
|
-
kind:
|
|
19404
|
+
var TrendRadarCollectionSubjectRefSchema = z22.object({
|
|
19405
|
+
kind: z22.literal("hotword"),
|
|
19307
19406
|
...versionedRefFields
|
|
19308
19407
|
}).strict();
|
|
19309
|
-
var TrendRadarCollectionArtifactRefSchema =
|
|
19310
|
-
kind:
|
|
19408
|
+
var TrendRadarCollectionArtifactRefSchema = z22.object({
|
|
19409
|
+
kind: z22.literal("artifact"),
|
|
19311
19410
|
...versionedRefFields
|
|
19312
19411
|
}).strict();
|
|
19313
|
-
var TrendRadarCollectionRecipeEntrySchema =
|
|
19412
|
+
var TrendRadarCollectionRecipeEntrySchema = z22.object({
|
|
19314
19413
|
subjectRef: TrendRadarCollectionSubjectRefSchema,
|
|
19315
|
-
label:
|
|
19414
|
+
label: z22.string().trim().min(1).max(200)
|
|
19316
19415
|
}).strict();
|
|
19317
|
-
var TrendRadarCollectionRecipeSchema =
|
|
19318
|
-
category:
|
|
19319
|
-
design:
|
|
19320
|
-
audience:
|
|
19416
|
+
var TrendRadarCollectionRecipeSchema = z22.object({
|
|
19417
|
+
category: z22.array(TrendRadarCollectionRecipeEntrySchema),
|
|
19418
|
+
design: z22.array(TrendRadarCollectionRecipeEntrySchema),
|
|
19419
|
+
audience: z22.array(TrendRadarCollectionRecipeEntrySchema)
|
|
19321
19420
|
}).strict().refine(
|
|
19322
19421
|
(recipe) => recipe.category.length + recipe.design.length + recipe.audience.length > 0,
|
|
19323
19422
|
"A Trend Radar collection recipe must contain at least one subject."
|
|
19324
19423
|
);
|
|
19325
|
-
var TrendRadarCollectionDecisionAxisSchema =
|
|
19424
|
+
var TrendRadarCollectionDecisionAxisSchema = z22.object({
|
|
19326
19425
|
key: ContractIdentifierSchema,
|
|
19327
|
-
label:
|
|
19328
|
-
value:
|
|
19329
|
-
}).strict();
|
|
19330
|
-
var TrendRadarCollectionDecisionProjectionSchema =
|
|
19331
|
-
axes:
|
|
19332
|
-
overallScore:
|
|
19333
|
-
itemRank:
|
|
19334
|
-
sourceRefs:
|
|
19335
|
-
outputRefs:
|
|
19426
|
+
label: z22.string().trim().min(1).max(200).optional(),
|
|
19427
|
+
value: z22.number().finite()
|
|
19428
|
+
}).strict();
|
|
19429
|
+
var TrendRadarCollectionDecisionProjectionSchema = z22.object({
|
|
19430
|
+
axes: z22.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),
|
|
19431
|
+
overallScore: z22.number().finite().optional(),
|
|
19432
|
+
itemRank: z22.number().finite().optional(),
|
|
19433
|
+
sourceRefs: z22.array(EntityRefSchema).optional(),
|
|
19434
|
+
outputRefs: z22.array(EntityRefSchema).optional()
|
|
19336
19435
|
}).strict().superRefine((projection, context) => {
|
|
19337
19436
|
const hasProjection = Boolean(
|
|
19338
19437
|
projection.axes?.length || projection.overallScore !== void 0 || projection.itemRank !== void 0 || projection.sourceRefs?.length || projection.outputRefs?.length
|
|
@@ -19355,20 +19454,20 @@ var TrendRadarCollectionDecisionProjectionSchema = z21.object({
|
|
|
19355
19454
|
seenAxisKeys.add(axis.key);
|
|
19356
19455
|
});
|
|
19357
19456
|
});
|
|
19358
|
-
var TrendRadarCollectionArtifactProjectionSchema =
|
|
19457
|
+
var TrendRadarCollectionArtifactProjectionSchema = z22.object({
|
|
19359
19458
|
artifactRef: TrendRadarCollectionArtifactRefSchema,
|
|
19360
|
-
url:
|
|
19361
|
-
thumbnailUrl:
|
|
19362
|
-
mimeType:
|
|
19459
|
+
url: z22.string().url().optional(),
|
|
19460
|
+
thumbnailUrl: z22.string().url().optional(),
|
|
19461
|
+
mimeType: z22.string().trim().min(1).optional(),
|
|
19363
19462
|
metadata: JsonObjectSchema.optional()
|
|
19364
19463
|
}).strict();
|
|
19365
|
-
var TrendRadarCollectionProjectionWritebackSchema =
|
|
19366
|
-
status:
|
|
19464
|
+
var TrendRadarCollectionProjectionWritebackSchema = z22.object({
|
|
19465
|
+
status: z22.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
19367
19466
|
updatedAt: IsoDateTimeSchema,
|
|
19368
|
-
error:
|
|
19467
|
+
error: z22.object({
|
|
19369
19468
|
code: ContractIdentifierSchema,
|
|
19370
|
-
message:
|
|
19371
|
-
retryable:
|
|
19469
|
+
message: z22.string().trim().min(1),
|
|
19470
|
+
retryable: z22.boolean()
|
|
19372
19471
|
}).strict().optional()
|
|
19373
19472
|
}).strict().superRefine((writeback, context) => {
|
|
19374
19473
|
if (writeback.status === "FAILED" && !writeback.error) {
|
|
@@ -19386,12 +19485,12 @@ var TrendRadarCollectionProjectionWritebackSchema = z21.object({
|
|
|
19386
19485
|
});
|
|
19387
19486
|
}
|
|
19388
19487
|
});
|
|
19389
|
-
var TrendRadarCollectionItemSchema =
|
|
19390
|
-
contract:
|
|
19391
|
-
schemaVersion:
|
|
19488
|
+
var TrendRadarCollectionItemSchema = z22.object({
|
|
19489
|
+
contract: z22.literal("TrendRadarCollectionItem"),
|
|
19490
|
+
schemaVersion: z22.literal(1),
|
|
19392
19491
|
selectionRef: TrendRadarCollectionSelectionRefSchema,
|
|
19393
19492
|
recipe: TrendRadarCollectionRecipeSchema,
|
|
19394
|
-
status:
|
|
19493
|
+
status: z22.enum(["SAVED", "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
19395
19494
|
latestRunRef: TrendRadarCollectionRunRefSchema.optional(),
|
|
19396
19495
|
decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),
|
|
19397
19496
|
artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),
|
|
@@ -19399,8 +19498,8 @@ var TrendRadarCollectionItemSchema = z21.object({
|
|
|
19399
19498
|
updatedAt: IsoDateTimeSchema,
|
|
19400
19499
|
generatedAt: IsoDateTimeSchema.optional()
|
|
19401
19500
|
}).strict();
|
|
19402
|
-
var RadarAnalysisRunSchema =
|
|
19403
|
-
contract:
|
|
19501
|
+
var RadarAnalysisRunSchema = z22.object({
|
|
19502
|
+
contract: z22.literal("RadarAnalysisRun"),
|
|
19404
19503
|
runId: ContractIdentifierSchema,
|
|
19405
19504
|
teamId: ContractIdentifierSchema,
|
|
19406
19505
|
selectionRef: EntityRefSchema,
|
|
@@ -19411,66 +19510,66 @@ var RadarAnalysisRunSchema = z21.object({
|
|
|
19411
19510
|
collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),
|
|
19412
19511
|
collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),
|
|
19413
19512
|
workflowDefinitionTeamId: ContractIdentifierSchema.optional(),
|
|
19414
|
-
workflowInput:
|
|
19415
|
-
createDesignProject:
|
|
19416
|
-
designProjectName:
|
|
19513
|
+
workflowInput: z22.record(z22.string(), JsonValueSchema).default({}),
|
|
19514
|
+
createDesignProject: z22.boolean().default(true),
|
|
19515
|
+
designProjectName: z22.string().trim().min(1).max(200).optional(),
|
|
19417
19516
|
modelRef: EntityRefSchema,
|
|
19418
19517
|
requestId: ContractIdentifierSchema,
|
|
19419
19518
|
idempotencyKey: ContractIdentifierSchema,
|
|
19420
|
-
status:
|
|
19421
|
-
outputRefs:
|
|
19422
|
-
error:
|
|
19519
|
+
status: z22.enum(["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
19520
|
+
outputRefs: z22.array(EntityRefSchema).default([]),
|
|
19521
|
+
error: z22.object({
|
|
19423
19522
|
code: ContractIdentifierSchema,
|
|
19424
|
-
message:
|
|
19425
|
-
retryable:
|
|
19523
|
+
message: z22.string().trim().min(1),
|
|
19524
|
+
retryable: z22.boolean()
|
|
19426
19525
|
}).strict().optional(),
|
|
19427
19526
|
startedAt: IsoDateTimeSchema.optional(),
|
|
19428
19527
|
completedAt: IsoDateTimeSchema.optional(),
|
|
19429
19528
|
createdAt: IsoDateTimeSchema
|
|
19430
19529
|
}).strict();
|
|
19431
|
-
var RadarAnalysisAssetSchema =
|
|
19530
|
+
var RadarAnalysisAssetSchema = z22.object({
|
|
19432
19531
|
artifactRef: EntityRefSchema,
|
|
19433
19532
|
kind: ContractIdentifierSchema,
|
|
19434
|
-
mimeType:
|
|
19435
|
-
url:
|
|
19436
|
-
metadata:
|
|
19533
|
+
mimeType: z22.string().trim().min(1).optional(),
|
|
19534
|
+
url: z22.string().url(),
|
|
19535
|
+
metadata: z22.record(z22.string(), JsonValueSchema).default({}),
|
|
19437
19536
|
createdAt: IsoDateTimeSchema
|
|
19438
19537
|
}).strict();
|
|
19439
|
-
var RadarAnalysisDetailSchema =
|
|
19440
|
-
contract:
|
|
19538
|
+
var RadarAnalysisDetailSchema = z22.object({
|
|
19539
|
+
contract: z22.literal("RadarAnalysisDetail"),
|
|
19441
19540
|
run: RadarAnalysisRunSchema,
|
|
19442
|
-
runVersion:
|
|
19541
|
+
runVersion: z22.number().int().positive(),
|
|
19443
19542
|
selection: RadarSelectionSchema,
|
|
19444
|
-
outputs:
|
|
19445
|
-
assets:
|
|
19446
|
-
lineage:
|
|
19543
|
+
outputs: z22.array(OutputRecordSchema),
|
|
19544
|
+
assets: z22.array(RadarAnalysisAssetSchema),
|
|
19545
|
+
lineage: z22.array(LineageRecordSchema)
|
|
19447
19546
|
}).strict();
|
|
19448
|
-
var RadarActionRecordSchema =
|
|
19449
|
-
contract:
|
|
19547
|
+
var RadarActionRecordSchema = z22.object({
|
|
19548
|
+
contract: z22.literal("RadarActionRecord"),
|
|
19450
19549
|
actionId: ContractIdentifierSchema,
|
|
19451
19550
|
teamId: ContractIdentifierSchema,
|
|
19452
19551
|
actorRef: EntityRefSchema,
|
|
19453
|
-
action:
|
|
19552
|
+
action: z22.enum(["stash", "select", "reject", "archive", "launch", "retry", "replay", "rollback"]),
|
|
19454
19553
|
targetRef: EntityRefSchema,
|
|
19455
19554
|
requestId: ContractIdentifierSchema,
|
|
19456
19555
|
idempotencyKey: ContractIdentifierSchema,
|
|
19457
|
-
expectedVersion:
|
|
19556
|
+
expectedVersion: z22.number().int().nonnegative(),
|
|
19458
19557
|
occurredAt: IsoDateTimeSchema
|
|
19459
19558
|
}).strict();
|
|
19460
|
-
var RadarWritebackRecordSchema =
|
|
19461
|
-
contract:
|
|
19559
|
+
var RadarWritebackRecordSchema = z22.object({
|
|
19560
|
+
contract: z22.literal("RadarWritebackRecord"),
|
|
19462
19561
|
writebackId: ContractIdentifierSchema,
|
|
19463
19562
|
actionRef: EntityRefSchema,
|
|
19464
19563
|
targetRef: EntityRefSchema,
|
|
19465
|
-
status:
|
|
19466
|
-
resultingVersion:
|
|
19467
|
-
error:
|
|
19564
|
+
status: z22.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
19565
|
+
resultingVersion: z22.number().int().nonnegative().optional(),
|
|
19566
|
+
error: z22.string().trim().min(1).optional(),
|
|
19468
19567
|
recordedAt: IsoDateTimeSchema
|
|
19469
19568
|
}).strict();
|
|
19470
19569
|
|
|
19471
19570
|
// src/contracts/workflow-definition.ts
|
|
19472
|
-
import { z as
|
|
19473
|
-
var ConductorTaskTypeSchema =
|
|
19571
|
+
import { z as z23 } from "zod";
|
|
19572
|
+
var ConductorTaskTypeSchema = z23.enum([
|
|
19474
19573
|
"SIMPLE",
|
|
19475
19574
|
"DYNAMIC",
|
|
19476
19575
|
"FORK_JOIN",
|
|
@@ -19519,46 +19618,46 @@ var requiredTaskFields = {
|
|
|
19519
19618
|
WAIT: ["inputParameters"],
|
|
19520
19619
|
TERMINATE: ["inputParameters"]
|
|
19521
19620
|
};
|
|
19522
|
-
var ConductorTaskDefinitionSchema =
|
|
19523
|
-
() =>
|
|
19621
|
+
var ConductorTaskDefinitionSchema = z23.lazy(
|
|
19622
|
+
() => z23.object({
|
|
19524
19623
|
name: ContractIdentifierSchema,
|
|
19525
19624
|
taskReferenceName: ContractIdentifierSchema,
|
|
19526
19625
|
type: ConductorTaskTypeSchema,
|
|
19527
|
-
inputParameters:
|
|
19528
|
-
startDelay:
|
|
19529
|
-
optional:
|
|
19530
|
-
asyncComplete:
|
|
19531
|
-
rateLimited:
|
|
19532
|
-
retryCount:
|
|
19533
|
-
taskDefinition:
|
|
19534
|
-
loopCondition:
|
|
19535
|
-
loopOver:
|
|
19536
|
-
sink:
|
|
19537
|
-
forkTasks:
|
|
19538
|
-
joinOn:
|
|
19539
|
-
defaultExclusiveJoinTask:
|
|
19540
|
-
dynamicForkTasksParam:
|
|
19541
|
-
dynamicForkTasksInputParamName:
|
|
19542
|
-
subWorkflowParam:
|
|
19543
|
-
$ref:
|
|
19626
|
+
inputParameters: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
19627
|
+
startDelay: z23.number().int().nonnegative().optional(),
|
|
19628
|
+
optional: z23.boolean().optional(),
|
|
19629
|
+
asyncComplete: z23.boolean().optional(),
|
|
19630
|
+
rateLimited: z23.boolean().optional(),
|
|
19631
|
+
retryCount: z23.number().int().nonnegative().optional(),
|
|
19632
|
+
taskDefinition: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
19633
|
+
loopCondition: z23.string().optional(),
|
|
19634
|
+
loopOver: z23.array(ConductorTaskDefinitionSchema).optional(),
|
|
19635
|
+
sink: z23.string().optional(),
|
|
19636
|
+
forkTasks: z23.array(z23.array(ConductorTaskDefinitionSchema)).optional(),
|
|
19637
|
+
joinOn: z23.array(ContractIdentifierSchema).optional(),
|
|
19638
|
+
defaultExclusiveJoinTask: z23.array(ContractIdentifierSchema).optional(),
|
|
19639
|
+
dynamicForkTasksParam: z23.string().optional(),
|
|
19640
|
+
dynamicForkTasksInputParamName: z23.string().optional(),
|
|
19641
|
+
subWorkflowParam: z23.object({
|
|
19642
|
+
$ref: z23.string().optional(),
|
|
19544
19643
|
name: ContractIdentifierSchema,
|
|
19545
|
-
version:
|
|
19546
|
-
taskToDomain:
|
|
19547
|
-
workflowDefinition:
|
|
19644
|
+
version: z23.number().int().positive().optional(),
|
|
19645
|
+
taskToDomain: z23.record(z23.string(), z23.string()).optional(),
|
|
19646
|
+
workflowDefinition: z23.record(z23.string(), JsonValueSchema).optional()
|
|
19548
19647
|
}).strict().optional(),
|
|
19549
|
-
decisionCases:
|
|
19550
|
-
defaultCase:
|
|
19551
|
-
evaluatorType:
|
|
19552
|
-
expression:
|
|
19648
|
+
decisionCases: z23.record(z23.string(), z23.array(ConductorTaskDefinitionSchema)).optional(),
|
|
19649
|
+
defaultCase: z23.array(ConductorTaskDefinitionSchema).optional(),
|
|
19650
|
+
evaluatorType: z23.enum(["value-param", "javascript", "graaljs"]).optional(),
|
|
19651
|
+
expression: z23.string().optional(),
|
|
19553
19652
|
__alias: JsonValueSchema.optional(),
|
|
19554
|
-
callbackFromWorker:
|
|
19653
|
+
callbackFromWorker: z23.boolean().optional(),
|
|
19555
19654
|
caseExpression: JsonValueSchema.optional(),
|
|
19556
|
-
caseValueParam:
|
|
19557
|
-
dependencies:
|
|
19558
|
-
description:
|
|
19559
|
-
dynamicTaskNameParam:
|
|
19560
|
-
joinMode:
|
|
19561
|
-
permissive:
|
|
19655
|
+
caseValueParam: z23.string().optional(),
|
|
19656
|
+
dependencies: z23.array(JsonValueSchema).optional(),
|
|
19657
|
+
description: z23.string().optional(),
|
|
19658
|
+
dynamicTaskNameParam: z23.string().optional(),
|
|
19659
|
+
joinMode: z23.string().optional(),
|
|
19660
|
+
permissive: z23.boolean().optional(),
|
|
19562
19661
|
joinTaskRef: ContractIdentifierSchema.optional(),
|
|
19563
19662
|
forkTaskRef: ContractIdentifierSchema.optional()
|
|
19564
19663
|
}).strict().superRefine((task, context) => {
|
|
@@ -19572,29 +19671,29 @@ var ConductorTaskDefinitionSchema = z22.lazy(
|
|
|
19572
19671
|
}
|
|
19573
19672
|
})
|
|
19574
19673
|
);
|
|
19575
|
-
var ConductorWorkflowDefinitionSchema =
|
|
19576
|
-
ownerApp:
|
|
19577
|
-
createTime:
|
|
19578
|
-
updateTime:
|
|
19579
|
-
createdBy:
|
|
19580
|
-
updatedBy:
|
|
19674
|
+
var ConductorWorkflowDefinitionSchema = z23.object({
|
|
19675
|
+
ownerApp: z23.string().optional(),
|
|
19676
|
+
createTime: z23.number().int().nonnegative().optional(),
|
|
19677
|
+
updateTime: z23.number().int().nonnegative().optional(),
|
|
19678
|
+
createdBy: z23.string().optional(),
|
|
19679
|
+
updatedBy: z23.string().optional(),
|
|
19581
19680
|
name: ContractIdentifierSchema,
|
|
19582
|
-
description:
|
|
19583
|
-
version:
|
|
19584
|
-
tasks:
|
|
19585
|
-
inputParameters:
|
|
19586
|
-
outputParameters:
|
|
19681
|
+
description: z23.string().optional(),
|
|
19682
|
+
version: z23.number().int().positive(),
|
|
19683
|
+
tasks: z23.array(ConductorTaskDefinitionSchema),
|
|
19684
|
+
inputParameters: z23.array(ContractIdentifierSchema),
|
|
19685
|
+
outputParameters: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
19587
19686
|
failureWorkflow: ContractIdentifierSchema.optional(),
|
|
19588
|
-
schemaVersion:
|
|
19589
|
-
restartable:
|
|
19590
|
-
workflowStatusListenerEnabled:
|
|
19591
|
-
ownerEmail:
|
|
19592
|
-
timeoutPolicy:
|
|
19593
|
-
timeoutSeconds:
|
|
19594
|
-
variables:
|
|
19595
|
-
inputTemplate:
|
|
19596
|
-
}).strict();
|
|
19597
|
-
var WorkflowParameterTypeSchema =
|
|
19687
|
+
schemaVersion: z23.number().int().positive().optional(),
|
|
19688
|
+
restartable: z23.boolean().optional(),
|
|
19689
|
+
workflowStatusListenerEnabled: z23.boolean().optional(),
|
|
19690
|
+
ownerEmail: z23.string().email().optional(),
|
|
19691
|
+
timeoutPolicy: z23.enum(["TIME_OUT_WF", "ALERT_ONLY"]).optional(),
|
|
19692
|
+
timeoutSeconds: z23.number().int().nonnegative(),
|
|
19693
|
+
variables: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
19694
|
+
inputTemplate: z23.record(z23.string(), JsonValueSchema).optional()
|
|
19695
|
+
}).strict();
|
|
19696
|
+
var WorkflowParameterTypeSchema = z23.enum([
|
|
19598
19697
|
"string",
|
|
19599
19698
|
"file",
|
|
19600
19699
|
"number",
|
|
@@ -19604,214 +19703,214 @@ var WorkflowParameterTypeSchema = z22.enum([
|
|
|
19604
19703
|
"notice",
|
|
19605
19704
|
"canvas-assist"
|
|
19606
19705
|
]);
|
|
19607
|
-
var WorkflowConditionalStateSchema =
|
|
19608
|
-
conditions:
|
|
19609
|
-
|
|
19610
|
-
field:
|
|
19611
|
-
operator:
|
|
19706
|
+
var WorkflowConditionalStateSchema = z23.object({
|
|
19707
|
+
conditions: z23.array(
|
|
19708
|
+
z23.object({
|
|
19709
|
+
field: z23.string(),
|
|
19710
|
+
operator: z23.enum(["is", "isNot", "isGreaterThan", "isLessThan", "isGreaterThanOrEqual", "isLessThanOrEqual", "in", "notIn"]),
|
|
19612
19711
|
value: JsonValueSchema
|
|
19613
19712
|
}).strict()
|
|
19614
19713
|
),
|
|
19615
|
-
logic:
|
|
19616
|
-
}).strict();
|
|
19617
|
-
var ImageSelectMappingAppearanceSchema =
|
|
19618
|
-
columns:
|
|
19619
|
-
cardSize:
|
|
19620
|
-
imageAspectRatio:
|
|
19621
|
-
gap:
|
|
19622
|
-
radius:
|
|
19623
|
-
borderStyle:
|
|
19624
|
-
borderWidth:
|
|
19625
|
-
enableScroll:
|
|
19626
|
-
maxHeight:
|
|
19627
|
-
enableCollapse:
|
|
19628
|
-
visibleRows:
|
|
19629
|
-
hideLabel:
|
|
19630
|
-
hideDescription:
|
|
19631
|
-
hideValue:
|
|
19632
|
-
}).strict();
|
|
19633
|
-
var ComfyWorkflowPortBindingSchema =
|
|
19634
|
-
node:
|
|
19635
|
-
key:
|
|
19636
|
-
}).strict();
|
|
19637
|
-
var WorkflowParameterTypeOptionsSchema =
|
|
19638
|
-
editor:
|
|
19639
|
-
editorLanguage:
|
|
19640
|
-
maxValue:
|
|
19641
|
-
minValue:
|
|
19642
|
-
max:
|
|
19643
|
-
min:
|
|
19644
|
-
multipleValues:
|
|
19645
|
-
numberPrecision:
|
|
19646
|
-
password:
|
|
19647
|
-
rows:
|
|
19648
|
-
assetType:
|
|
19649
|
-
accept:
|
|
19650
|
-
maxSize:
|
|
19651
|
-
fileType:
|
|
19652
|
-
aiMultiShotMainImageField:
|
|
19653
|
-
aiMultiShotWorkflowAppId:
|
|
19654
|
-
aiMultiShotWorkflowId:
|
|
19655
|
-
allowCustomInput:
|
|
19656
|
-
allowUploadVideo:
|
|
19657
|
-
aspectRatioField:
|
|
19658
|
-
assemblyValueType:
|
|
19659
|
-
autoAnalyzeDesignImage:
|
|
19660
|
-
autoDetectAspectRatio:
|
|
19661
|
-
autoIncrementId:
|
|
19714
|
+
logic: z23.enum(["AND", "OR"]).optional()
|
|
19715
|
+
}).strict();
|
|
19716
|
+
var ImageSelectMappingAppearanceSchema = z23.object({
|
|
19717
|
+
columns: z23.number().int().min(1).max(4).optional(),
|
|
19718
|
+
cardSize: z23.enum(["sm", "md", "lg"]).optional(),
|
|
19719
|
+
imageAspectRatio: z23.enum(["square", "4:5", "3:4", "16:9"]).optional(),
|
|
19720
|
+
gap: z23.enum(["sm", "md", "lg"]).optional(),
|
|
19721
|
+
radius: z23.enum(["sm", "md", "lg", "xl"]).optional(),
|
|
19722
|
+
borderStyle: z23.enum(["none", "soft", "strong"]).optional(),
|
|
19723
|
+
borderWidth: z23.union([z23.literal(0), z23.literal(1), z23.literal(2)]).optional(),
|
|
19724
|
+
enableScroll: z23.boolean().optional(),
|
|
19725
|
+
maxHeight: z23.number().int().min(160).max(1200).optional(),
|
|
19726
|
+
enableCollapse: z23.boolean().optional(),
|
|
19727
|
+
visibleRows: z23.number().int().min(1).max(6).optional(),
|
|
19728
|
+
hideLabel: z23.boolean().optional(),
|
|
19729
|
+
hideDescription: z23.boolean().optional(),
|
|
19730
|
+
hideValue: z23.boolean().optional()
|
|
19731
|
+
}).strict();
|
|
19732
|
+
var ComfyWorkflowPortBindingSchema = z23.object({
|
|
19733
|
+
node: z23.union([z23.string(), z23.number()]),
|
|
19734
|
+
key: z23.string().optional()
|
|
19735
|
+
}).strict();
|
|
19736
|
+
var WorkflowParameterTypeOptionsSchema = z23.object({
|
|
19737
|
+
editor: z23.enum(["code", "codeNodeEditor", "htmlEditor", "sqlEditor", "json"]).optional(),
|
|
19738
|
+
editorLanguage: z23.enum(["javaScript", "json", "python", "sql"]).optional(),
|
|
19739
|
+
maxValue: z23.number().optional(),
|
|
19740
|
+
minValue: z23.number().optional(),
|
|
19741
|
+
max: z23.number().optional(),
|
|
19742
|
+
min: z23.number().optional(),
|
|
19743
|
+
multipleValues: z23.boolean().optional(),
|
|
19744
|
+
numberPrecision: z23.number().nonnegative().optional(),
|
|
19745
|
+
password: z23.boolean().optional(),
|
|
19746
|
+
rows: z23.number().int().positive().optional(),
|
|
19747
|
+
assetType: z23.string().optional(),
|
|
19748
|
+
accept: z23.string().optional(),
|
|
19749
|
+
maxSize: z23.number().positive().optional(),
|
|
19750
|
+
fileType: z23.string().optional(),
|
|
19751
|
+
aiMultiShotMainImageField: z23.string().optional(),
|
|
19752
|
+
aiMultiShotWorkflowAppId: z23.string().optional(),
|
|
19753
|
+
aiMultiShotWorkflowId: z23.string().optional(),
|
|
19754
|
+
allowCustomInput: z23.boolean().optional(),
|
|
19755
|
+
allowUploadVideo: z23.boolean().optional(),
|
|
19756
|
+
aspectRatioField: z23.string().optional(),
|
|
19757
|
+
assemblyValueType: z23.string().optional(),
|
|
19758
|
+
autoAnalyzeDesignImage: z23.boolean().optional(),
|
|
19759
|
+
autoDetectAspectRatio: z23.boolean().optional(),
|
|
19760
|
+
autoIncrementId: z23.boolean().optional(),
|
|
19662
19761
|
comfyOptions: ComfyWorkflowPortBindingSchema.optional(),
|
|
19663
|
-
comfyuiModelServerId:
|
|
19664
|
-
comfyuiModelTypeName:
|
|
19762
|
+
comfyuiModelServerId: z23.string().optional(),
|
|
19763
|
+
comfyuiModelTypeName: z23.string().optional(),
|
|
19665
19764
|
defaultCustomInput: JsonValueSchema.optional(),
|
|
19666
|
-
descriptionAlert:
|
|
19667
|
-
disabled:
|
|
19668
|
-
editable:
|
|
19669
|
-
enableAiMultiShot:
|
|
19670
|
-
enableBooleanSwitchMode:
|
|
19671
|
-
enableClear:
|
|
19672
|
-
enableExpand:
|
|
19673
|
-
enableImageCrop:
|
|
19674
|
-
enableImageMask:
|
|
19675
|
-
enableImageOverlay:
|
|
19676
|
-
enablePopupEditor:
|
|
19677
|
-
enablePromptFontSize:
|
|
19678
|
-
enableReset:
|
|
19679
|
-
enableSelectItemIcon:
|
|
19680
|
-
enableSelectList:
|
|
19681
|
-
enableSelectSearch:
|
|
19682
|
-
enableSliderEnterMode:
|
|
19683
|
-
enableVoice:
|
|
19684
|
-
expandButtonText:
|
|
19685
|
-
foldUp:
|
|
19686
|
-
hidden:
|
|
19687
|
-
hideRequiredDot:
|
|
19688
|
-
inlineTitleWithSelect:
|
|
19689
|
-
knowledgeGraphButtonText:
|
|
19690
|
-
identifyAttributeCount:
|
|
19691
|
-
identifyAttributes:
|
|
19692
|
-
identifyMaxVariants:
|
|
19693
|
-
identifySourceField:
|
|
19694
|
-
imageOverlayBaseField:
|
|
19695
|
-
imageOverlayOverlayField:
|
|
19765
|
+
descriptionAlert: z23.boolean().optional(),
|
|
19766
|
+
disabled: z23.union([z23.boolean(), WorkflowConditionalStateSchema]).optional(),
|
|
19767
|
+
editable: z23.union([z23.boolean(), WorkflowConditionalStateSchema]).optional(),
|
|
19768
|
+
enableAiMultiShot: z23.boolean().optional(),
|
|
19769
|
+
enableBooleanSwitchMode: z23.boolean().optional(),
|
|
19770
|
+
enableClear: z23.boolean().optional(),
|
|
19771
|
+
enableExpand: z23.boolean().optional(),
|
|
19772
|
+
enableImageCrop: z23.boolean().optional(),
|
|
19773
|
+
enableImageMask: z23.boolean().optional(),
|
|
19774
|
+
enableImageOverlay: z23.boolean().optional(),
|
|
19775
|
+
enablePopupEditor: z23.boolean().optional(),
|
|
19776
|
+
enablePromptFontSize: z23.boolean().optional(),
|
|
19777
|
+
enableReset: z23.boolean().optional(),
|
|
19778
|
+
enableSelectItemIcon: z23.boolean().optional(),
|
|
19779
|
+
enableSelectList: z23.boolean().optional(),
|
|
19780
|
+
enableSelectSearch: z23.boolean().optional(),
|
|
19781
|
+
enableSliderEnterMode: z23.boolean().optional(),
|
|
19782
|
+
enableVoice: z23.boolean().optional(),
|
|
19783
|
+
expandButtonText: z23.string().optional(),
|
|
19784
|
+
foldUp: z23.boolean().optional(),
|
|
19785
|
+
hidden: z23.boolean().optional(),
|
|
19786
|
+
hideRequiredDot: z23.boolean().optional(),
|
|
19787
|
+
inlineTitleWithSelect: z23.boolean().optional(),
|
|
19788
|
+
knowledgeGraphButtonText: z23.string().optional(),
|
|
19789
|
+
identifyAttributeCount: z23.union([z23.number().nonnegative(), z23.string().min(1), z23.object({ min: z23.number().nonnegative().optional(), max: z23.number().nonnegative().optional() }).strict()]).optional(),
|
|
19790
|
+
identifyAttributes: z23.array(JsonValueSchema).optional(),
|
|
19791
|
+
identifyMaxVariants: z23.number().int().nonnegative().optional(),
|
|
19792
|
+
identifySourceField: z23.string().optional(),
|
|
19793
|
+
imageOverlayBaseField: z23.string().optional(),
|
|
19794
|
+
imageOverlayOverlayField: z23.string().optional(),
|
|
19696
19795
|
imageSelectMappingAppearance: ImageSelectMappingAppearanceSchema.optional(),
|
|
19697
|
-
imageSelectMappingColumns:
|
|
19698
|
-
imageSelectMappingEnableCustomUpload:
|
|
19699
|
-
imageSelectMappingHideLabel:
|
|
19700
|
-
imageSelectMappingHideLink:
|
|
19701
|
-
imageSelectMappingHideMeta:
|
|
19702
|
-
imageSelectMappingInlineUseLargeUploadBox:
|
|
19703
|
-
imageSelectMappingPromptField:
|
|
19704
|
-
imageSelectMappingTabOrder:
|
|
19705
|
-
imageSelectMappingTabWidthMode:
|
|
19796
|
+
imageSelectMappingColumns: z23.number().int().min(1).max(4).optional(),
|
|
19797
|
+
imageSelectMappingEnableCustomUpload: z23.boolean().optional(),
|
|
19798
|
+
imageSelectMappingHideLabel: z23.boolean().optional(),
|
|
19799
|
+
imageSelectMappingHideLink: z23.boolean().optional(),
|
|
19800
|
+
imageSelectMappingHideMeta: z23.boolean().optional(),
|
|
19801
|
+
imageSelectMappingInlineUseLargeUploadBox: z23.boolean().optional(),
|
|
19802
|
+
imageSelectMappingPromptField: z23.string().optional(),
|
|
19803
|
+
imageSelectMappingTabOrder: z23.enum(["template-first", "upload-first"]).optional(),
|
|
19804
|
+
imageSelectMappingTabWidthMode: z23.enum(["content", "fill"]).optional(),
|
|
19706
19805
|
imageSelectMappingTemplatePrompt: LocalizedTextSchema.optional(),
|
|
19707
19806
|
imageSelectMappingTemplateTabTitle: LocalizedTextSchema.optional(),
|
|
19708
|
-
imageSelectMappingUploadMode:
|
|
19807
|
+
imageSelectMappingUploadMode: z23.enum(["tabs", "inline"]).optional(),
|
|
19709
19808
|
imageSelectMappingUploadPrompt: LocalizedTextSchema.optional(),
|
|
19710
19809
|
imageSelectMappingUploadTabTitle: LocalizedTextSchema.optional(),
|
|
19711
|
-
endpoints:
|
|
19712
|
-
examples:
|
|
19810
|
+
endpoints: z23.array(JsonValueSchema).optional(),
|
|
19811
|
+
examples: z23.array(JsonValueSchema).optional(),
|
|
19713
19812
|
extraData: JsonValueSchema.optional(),
|
|
19714
19813
|
layer: JsonValueSchema.optional(),
|
|
19715
19814
|
map: JsonValueSchema.optional(),
|
|
19716
|
-
multiline:
|
|
19717
|
-
options:
|
|
19718
|
-
originalFiles:
|
|
19815
|
+
multiline: z23.boolean().optional(),
|
|
19816
|
+
options: z23.array(JsonValueSchema).optional(),
|
|
19817
|
+
originalFiles: z23.array(JsonValueSchema).optional(),
|
|
19719
19818
|
placeholder: LocalizedTextSchema.optional(),
|
|
19720
|
-
preserveSelectListOrder:
|
|
19819
|
+
preserveSelectListOrder: z23.boolean().optional(),
|
|
19721
19820
|
promptDictionary: JsonValueSchema.optional(),
|
|
19722
|
-
promptFontSize:
|
|
19821
|
+
promptFontSize: z23.number().optional(),
|
|
19723
19822
|
promptModeToggle: JsonValueSchema.optional(),
|
|
19724
|
-
requireActiveSelectFilter:
|
|
19725
|
-
restoreDefaultOnEmptyEnter:
|
|
19726
|
-
search:
|
|
19727
|
-
selectButtonEnableCollapse:
|
|
19728
|
-
selectButtonVisibleRows:
|
|
19729
|
-
selectList:
|
|
19730
|
-
selectListDisplayMode:
|
|
19731
|
-
selectPromptField:
|
|
19732
|
-
showAddLocalFileButton:
|
|
19733
|
-
singleColumn:
|
|
19734
|
-
singleFrameForMultiple:
|
|
19735
|
-
textSingleLine:
|
|
19736
|
-
textareaMiniHeight:
|
|
19823
|
+
requireActiveSelectFilter: z23.boolean().optional(),
|
|
19824
|
+
restoreDefaultOnEmptyEnter: z23.boolean().optional(),
|
|
19825
|
+
search: z23.boolean().optional(),
|
|
19826
|
+
selectButtonEnableCollapse: z23.boolean().optional(),
|
|
19827
|
+
selectButtonVisibleRows: z23.number().int().positive().optional(),
|
|
19828
|
+
selectList: z23.array(JsonValueSchema).optional(),
|
|
19829
|
+
selectListDisplayMode: z23.string().optional(),
|
|
19830
|
+
selectPromptField: z23.string().optional(),
|
|
19831
|
+
showAddLocalFileButton: z23.boolean().optional(),
|
|
19832
|
+
singleColumn: z23.boolean().optional(),
|
|
19833
|
+
singleFrameForMultiple: z23.boolean().optional(),
|
|
19834
|
+
textSingleLine: z23.boolean().optional(),
|
|
19835
|
+
textareaMiniHeight: z23.number().nonnegative().optional(),
|
|
19737
19836
|
tips: LocalizedTextSchema.optional(),
|
|
19738
19837
|
visibility: JsonValueSchema.optional(),
|
|
19739
|
-
voiceButtonText:
|
|
19740
|
-
designAnalysisFields:
|
|
19741
|
-
designAnalysisFillStrategy:
|
|
19742
|
-
designAnalysisMaxFields:
|
|
19743
|
-
designAnalysisType:
|
|
19744
|
-
designAnalysisFieldPrefix:
|
|
19745
|
-
}).strict();
|
|
19746
|
-
var WorkflowParameterSchema =
|
|
19747
|
-
() =>
|
|
19838
|
+
voiceButtonText: z23.string().optional(),
|
|
19839
|
+
designAnalysisFields: z23.array(JsonValueSchema).optional(),
|
|
19840
|
+
designAnalysisFillStrategy: z23.string().optional(),
|
|
19841
|
+
designAnalysisMaxFields: z23.number().int().nonnegative().optional(),
|
|
19842
|
+
designAnalysisType: z23.string().optional(),
|
|
19843
|
+
designAnalysisFieldPrefix: z23.string().optional()
|
|
19844
|
+
}).strict();
|
|
19845
|
+
var WorkflowParameterSchema = z23.lazy(
|
|
19846
|
+
() => z23.object({
|
|
19748
19847
|
displayName: LocalizedTextSchema,
|
|
19749
19848
|
name: ContractIdentifierSchema,
|
|
19750
19849
|
type: WorkflowParameterTypeSchema,
|
|
19751
19850
|
typeOptions: WorkflowParameterTypeOptionsSchema.optional(),
|
|
19752
19851
|
default: JsonValueSchema.optional(),
|
|
19753
19852
|
description: LocalizedTextSchema.optional(),
|
|
19754
|
-
hint:
|
|
19755
|
-
displayOptions:
|
|
19756
|
-
hide:
|
|
19757
|
-
show:
|
|
19853
|
+
hint: z23.string().optional(),
|
|
19854
|
+
displayOptions: z23.object({
|
|
19855
|
+
hide: z23.record(z23.string(), z23.array(JsonValueSchema)).optional(),
|
|
19856
|
+
show: z23.record(z23.string(), z23.array(JsonValueSchema)).optional()
|
|
19758
19857
|
}).strict().optional(),
|
|
19759
|
-
options:
|
|
19760
|
-
|
|
19858
|
+
options: z23.array(z23.union([
|
|
19859
|
+
z23.object({ name: LocalizedTextSchema, value: z23.union([z23.string(), z23.number(), z23.boolean()]), action: z23.string().optional(), description: LocalizedTextSchema.optional() }).strict(),
|
|
19761
19860
|
WorkflowParameterSchema,
|
|
19762
|
-
|
|
19861
|
+
z23.object({ displayName: z23.string(), name: ContractIdentifierSchema, values: z23.array(WorkflowParameterSchema) }).strict()
|
|
19763
19862
|
])).optional(),
|
|
19764
19863
|
placeholder: LocalizedTextSchema.optional(),
|
|
19765
|
-
isNodeSetting:
|
|
19766
|
-
noDataExpression:
|
|
19767
|
-
required:
|
|
19768
|
-
example:
|
|
19769
|
-
extractValue:
|
|
19770
|
-
properties:
|
|
19771
|
-
assetType:
|
|
19772
|
-
flag:
|
|
19773
|
-
enableExpand:
|
|
19774
|
-
enableVoice:
|
|
19775
|
-
expandButtonText:
|
|
19776
|
-
knowledgeGraphButtonText:
|
|
19777
|
-
selectListDisplayMode:
|
|
19778
|
-
voiceButtonText:
|
|
19864
|
+
isNodeSetting: z23.boolean().optional(),
|
|
19865
|
+
noDataExpression: z23.boolean().optional(),
|
|
19866
|
+
required: z23.boolean().optional(),
|
|
19867
|
+
example: z23.string().optional(),
|
|
19868
|
+
extractValue: z23.object({ type: z23.literal("regex"), regex: z23.string() }).strict().optional(),
|
|
19869
|
+
properties: z23.array(WorkflowParameterSchema).optional(),
|
|
19870
|
+
assetType: z23.string().optional(),
|
|
19871
|
+
flag: z23.boolean().optional(),
|
|
19872
|
+
enableExpand: z23.boolean().optional(),
|
|
19873
|
+
enableVoice: z23.boolean().optional(),
|
|
19874
|
+
expandButtonText: z23.string().optional(),
|
|
19875
|
+
knowledgeGraphButtonText: z23.string().optional(),
|
|
19876
|
+
selectListDisplayMode: z23.string().optional(),
|
|
19877
|
+
voiceButtonText: z23.string().optional()
|
|
19779
19878
|
}).strict()
|
|
19780
19879
|
);
|
|
19781
|
-
var WorkflowOutputBindingSchema =
|
|
19782
|
-
var WorkflowNodeSchema =
|
|
19880
|
+
var WorkflowOutputBindingSchema = z23.object({ key: ContractIdentifierSchema, value: z23.string() }).strict();
|
|
19881
|
+
var WorkflowNodeSchema = z23.object({
|
|
19783
19882
|
id: ContractIdentifierSchema,
|
|
19784
19883
|
referenceName: ContractIdentifierSchema,
|
|
19785
19884
|
capabilityRef: ContractIdentifierSchema,
|
|
19786
19885
|
capabilityVersion: ContractIdentifierSchema.optional(),
|
|
19787
|
-
inputBindings:
|
|
19788
|
-
configuration:
|
|
19886
|
+
inputBindings: z23.record(z23.string(), JsonValueSchema).default({}),
|
|
19887
|
+
configuration: z23.object({ executor: z23.literal("conductor"), task: ConductorTaskDefinitionSchema }).strict()
|
|
19789
19888
|
}).strict().superRefine((node, context) => {
|
|
19790
19889
|
if (node.configuration.task.taskReferenceName !== node.referenceName) context.addIssue({ code: "custom", path: ["configuration", "task", "taskReferenceName"], message: "Conductor task reference must match node referenceName." });
|
|
19791
19890
|
if (node.configuration.task.name !== node.capabilityRef) context.addIssue({ code: "custom", path: ["configuration", "task", "name"], message: "Conductor task name must match node capabilityRef." });
|
|
19792
19891
|
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." });
|
|
19793
19892
|
});
|
|
19794
|
-
var WorkflowEdgeSchema =
|
|
19893
|
+
var WorkflowEdgeSchema = z23.object({
|
|
19795
19894
|
from: ContractIdentifierSchema,
|
|
19796
19895
|
to: ContractIdentifierSchema,
|
|
19797
19896
|
outputPort: ContractIdentifierSchema.optional(),
|
|
19798
19897
|
inputPort: ContractIdentifierSchema.optional(),
|
|
19799
|
-
condition:
|
|
19898
|
+
condition: z23.string().optional()
|
|
19800
19899
|
}).strict();
|
|
19801
|
-
var WorkflowTriggerSchema =
|
|
19900
|
+
var WorkflowTriggerSchema = z23.object({
|
|
19802
19901
|
id: ContractIdentifierSchema,
|
|
19803
|
-
type:
|
|
19804
|
-
enabled:
|
|
19805
|
-
schedule:
|
|
19806
|
-
webhook:
|
|
19807
|
-
path:
|
|
19808
|
-
method:
|
|
19809
|
-
auth:
|
|
19810
|
-
basicAuth:
|
|
19811
|
-
headerAuth:
|
|
19812
|
-
responseUntil:
|
|
19902
|
+
type: z23.enum(["manual", "schedule", "webhook", "event", "api"]),
|
|
19903
|
+
enabled: z23.boolean(),
|
|
19904
|
+
schedule: z23.object({ cron: z23.string().trim().min(1) }).strict().optional(),
|
|
19905
|
+
webhook: z23.object({
|
|
19906
|
+
path: z23.string().trim().min(1).optional(),
|
|
19907
|
+
method: z23.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"]),
|
|
19908
|
+
auth: z23.enum(["NONE", "BASIC", "CUSTOM_HEADER"]),
|
|
19909
|
+
basicAuth: z23.object({ username: z23.string(), password: z23.string() }).strict().optional(),
|
|
19910
|
+
headerAuth: z23.object({ name: z23.string().trim().min(1), value: z23.string() }).strict().optional(),
|
|
19911
|
+
responseUntil: z23.enum(["WORKFLOW_STARTED", "WORKFLOW_COMPLETED_OR_FINISHED"])
|
|
19813
19912
|
}).strict().optional(),
|
|
19814
|
-
event:
|
|
19913
|
+
event: z23.object({
|
|
19815
19914
|
eventType: ContractIdentifierSchema,
|
|
19816
19915
|
configuration: JsonValueSchema.optional()
|
|
19817
19916
|
}).strict().optional()
|
|
@@ -19820,63 +19919,63 @@ var WorkflowTriggerSchema = z22.object({
|
|
|
19820
19919
|
if (trigger.type === "webhook" && !trigger.webhook) context.addIssue({ code: "custom", path: ["webhook"], message: "Webhook trigger requires webhook configuration." });
|
|
19821
19920
|
if (trigger.type === "event" && !trigger.event) context.addIssue({ code: "custom", path: ["event"], message: "Event trigger requires event configuration." });
|
|
19822
19921
|
});
|
|
19823
|
-
var WorkflowValidationIssueSchema =
|
|
19922
|
+
var WorkflowValidationIssueSchema = z23.object({
|
|
19824
19923
|
taskReferenceName: ContractIdentifierSchema,
|
|
19825
|
-
issueType:
|
|
19826
|
-
detailReason:
|
|
19827
|
-
humanMessage:
|
|
19924
|
+
issueType: z23.enum(["ERROR", "WARNING"]),
|
|
19925
|
+
detailReason: z23.object({ type: ContractIdentifierSchema, name: ContractIdentifierSchema, detailInformation: JsonValueSchema.optional() }).strict(),
|
|
19926
|
+
humanMessage: z23.object({ en: z23.string(), zh: z23.string() }).strict()
|
|
19828
19927
|
}).strict();
|
|
19829
|
-
var WorkflowDefinitionSchema =
|
|
19830
|
-
contract:
|
|
19928
|
+
var WorkflowDefinitionSchema = z23.object({
|
|
19929
|
+
contract: z23.literal("WorkflowDefinition"),
|
|
19831
19930
|
metadata: ContractMetadataSchema.omit({ name: true, description: true, labels: true }).extend({
|
|
19832
19931
|
name: LocalizedTextSchema,
|
|
19833
19932
|
description: LocalizedTextSchema.optional(),
|
|
19834
|
-
role:
|
|
19933
|
+
role: z23.enum(["workflow", "template"]),
|
|
19835
19934
|
teamId: ContractIdentifierSchema,
|
|
19836
19935
|
creatorRef: EntityRefSchema,
|
|
19837
|
-
tags:
|
|
19936
|
+
tags: z23.array(ContractIdentifierSchema).default([])
|
|
19838
19937
|
}).strict(),
|
|
19839
|
-
revision:
|
|
19840
|
-
kind:
|
|
19841
|
-
recordVersion:
|
|
19842
|
-
sourceVersion:
|
|
19938
|
+
revision: z23.object({
|
|
19939
|
+
kind: z23.enum(["release", "backup"]),
|
|
19940
|
+
recordVersion: z23.number().int().positive(),
|
|
19941
|
+
sourceVersion: z23.number().int().positive().optional()
|
|
19843
19942
|
}).strict().superRefine((revision, context) => {
|
|
19844
19943
|
if (revision.kind === "backup" && revision.sourceVersion === void 0) context.addIssue({ code: "custom", path: ["sourceVersion"], message: "Backup revisions require a sourceVersion." });
|
|
19845
19944
|
}),
|
|
19846
|
-
presentation:
|
|
19847
|
-
ports:
|
|
19848
|
-
parameters:
|
|
19849
|
-
graph:
|
|
19850
|
-
execution:
|
|
19851
|
-
timeoutMs:
|
|
19852
|
-
retries:
|
|
19853
|
-
concurrencyLimit:
|
|
19854
|
-
idempotency:
|
|
19855
|
-
rateLimit:
|
|
19945
|
+
presentation: z23.object({ iconUrl: z23.string().optional(), thumbnail: z23.string().optional() }).strict(),
|
|
19946
|
+
ports: z23.object({ inputs: z23.array(ContractPortSchema).default([]), outputs: z23.array(ContractPortSchema).default([]) }).strict(),
|
|
19947
|
+
parameters: z23.object({ variables: z23.array(WorkflowParameterSchema).default([]), outputs: z23.array(WorkflowOutputBindingSchema).default([]) }).strict(),
|
|
19948
|
+
graph: z23.object({ nodes: z23.array(WorkflowNodeSchema), edges: z23.array(WorkflowEdgeSchema).default([]) }).strict(),
|
|
19949
|
+
execution: z23.object({
|
|
19950
|
+
timeoutMs: z23.number().int().positive().optional(),
|
|
19951
|
+
retries: z23.number().int().nonnegative().default(0),
|
|
19952
|
+
concurrencyLimit: z23.number().int().positive().optional(),
|
|
19953
|
+
idempotency: z23.enum(["required", "supported", "none"]),
|
|
19954
|
+
rateLimit: z23.object({ enabled: z23.boolean(), max: z23.number().int().nonnegative(), windowMs: z23.number().int().nonnegative() }).strict().superRefine((rateLimit, context) => {
|
|
19856
19955
|
if (rateLimit.enabled && (rateLimit.max === 0 || rateLimit.windowMs === 0)) context.addIssue({ code: "custom", message: "Enabled rate limit requires positive max and windowMs." });
|
|
19857
19956
|
}).optional(),
|
|
19858
|
-
conductor:
|
|
19859
|
-
ownerApp:
|
|
19860
|
-
createTime:
|
|
19861
|
-
updateTime:
|
|
19862
|
-
createdBy:
|
|
19863
|
-
updatedBy:
|
|
19957
|
+
conductor: z23.object({
|
|
19958
|
+
ownerApp: z23.string().optional(),
|
|
19959
|
+
createTime: z23.number().int().nonnegative().optional(),
|
|
19960
|
+
updateTime: z23.number().int().nonnegative().optional(),
|
|
19961
|
+
createdBy: z23.string().optional(),
|
|
19962
|
+
updatedBy: z23.string().optional(),
|
|
19864
19963
|
failureWorkflow: ContractIdentifierSchema.optional(),
|
|
19865
|
-
schemaVersion:
|
|
19866
|
-
restartable:
|
|
19867
|
-
workflowStatusListenerEnabled:
|
|
19868
|
-
ownerEmail:
|
|
19869
|
-
timeoutPolicy:
|
|
19870
|
-
variables:
|
|
19871
|
-
inputTemplate:
|
|
19964
|
+
schemaVersion: z23.number().int().positive().optional(),
|
|
19965
|
+
restartable: z23.boolean().optional(),
|
|
19966
|
+
workflowStatusListenerEnabled: z23.boolean().optional(),
|
|
19967
|
+
ownerEmail: z23.string().email().optional(),
|
|
19968
|
+
timeoutPolicy: z23.enum(["TIME_OUT_WF", "ALERT_ONLY"]).optional(),
|
|
19969
|
+
variables: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
19970
|
+
inputTemplate: z23.record(z23.string(), JsonValueSchema).optional()
|
|
19872
19971
|
}).strict()
|
|
19873
19972
|
}).strict(),
|
|
19874
|
-
triggers:
|
|
19875
|
-
views:
|
|
19876
|
-
dataContracts:
|
|
19877
|
-
governance:
|
|
19878
|
-
interfaces:
|
|
19879
|
-
openai:
|
|
19973
|
+
triggers: z23.array(WorkflowTriggerSchema).default([]),
|
|
19974
|
+
views: z23.array(z23.object({ pageRef: ContractIdentifierSchema, placement: ContractIdentifierSchema.optional() }).strict()).default([]),
|
|
19975
|
+
dataContracts: z23.object({ reads: z23.array(ContractIdentifierSchema).default([]), writes: z23.array(ContractIdentifierSchema).default([]), emits: z23.array(ContractIdentifierSchema).default([]) }).strict(),
|
|
19976
|
+
governance: z23.object({ activated: z23.boolean(), validated: z23.boolean(), validationIssues: z23.array(WorkflowValidationIssueSchema).default([]), hidden: z23.boolean().optional() }).strict(),
|
|
19977
|
+
interfaces: z23.object({
|
|
19978
|
+
openai: z23.object({ enabled: z23.boolean(), modelName: z23.string().trim().min(1).optional() }).strict(),
|
|
19880
19979
|
shortcutRef: EntityRefSchema.optional(),
|
|
19881
19980
|
preferredAppId: ContractIdentifierSchema.optional()
|
|
19882
19981
|
}).strict().superRefine((interfaces, context) => {
|
|
@@ -19895,76 +19994,76 @@ var WorkflowDefinitionSchema = z22.object({
|
|
|
19895
19994
|
});
|
|
19896
19995
|
|
|
19897
19996
|
// src/contracts/workflow-column.ts
|
|
19898
|
-
import { z as
|
|
19899
|
-
var WorkflowColumnFieldRefSchema =
|
|
19997
|
+
import { z as z24 } from "zod";
|
|
19998
|
+
var WorkflowColumnFieldRefSchema = z24.object({
|
|
19900
19999
|
ontologyId: ContractIdentifierSchema,
|
|
19901
20000
|
fieldKey: ContractIdentifierSchema
|
|
19902
20001
|
}).strict();
|
|
19903
|
-
var WorkflowColumnInputSchema =
|
|
19904
|
-
|
|
19905
|
-
|
|
19906
|
-
|
|
19907
|
-
|
|
19908
|
-
kind:
|
|
19909
|
-
field:
|
|
20002
|
+
var WorkflowColumnInputSchema = z24.discriminatedUnion("kind", [
|
|
20003
|
+
z24.object({ kind: z24.literal("default") }).strict(),
|
|
20004
|
+
z24.object({ kind: z24.literal("constant"), value: JsonValueSchema }).strict(),
|
|
20005
|
+
z24.object({ kind: z24.literal("field"), field: WorkflowColumnFieldRefSchema }).strict(),
|
|
20006
|
+
z24.object({
|
|
20007
|
+
kind: z24.literal("context"),
|
|
20008
|
+
field: z24.enum(["assetId", "teamId", "ontologyId", "columnId"])
|
|
19910
20009
|
}).strict()
|
|
19911
20010
|
]);
|
|
19912
|
-
var WorkflowColumnDependencySchema =
|
|
19913
|
-
|
|
19914
|
-
|
|
19915
|
-
kind:
|
|
20011
|
+
var WorkflowColumnDependencySchema = z24.discriminatedUnion("kind", [
|
|
20012
|
+
z24.object({ kind: z24.literal("field"), field: WorkflowColumnFieldRefSchema }).strict(),
|
|
20013
|
+
z24.object({
|
|
20014
|
+
kind: z24.literal("relation"),
|
|
19916
20015
|
relation: WorkflowColumnFieldRefSchema,
|
|
19917
|
-
direction:
|
|
19918
|
-
fields:
|
|
20016
|
+
direction: z24.enum(["incoming", "outgoing"]),
|
|
20017
|
+
fields: z24.array(WorkflowColumnFieldRefSchema).max(100)
|
|
19919
20018
|
}).strict()
|
|
19920
20019
|
]);
|
|
19921
|
-
var WorkflowColumnOutputPathSchema =
|
|
19922
|
-
var WorkflowColumnOutputSchema =
|
|
19923
|
-
type:
|
|
20020
|
+
var WorkflowColumnOutputPathSchema = z24.array(z24.string().min(1).max(256)).max(20);
|
|
20021
|
+
var WorkflowColumnOutputSchema = z24.object({
|
|
20022
|
+
type: z24.enum(["number", "text", "json"]),
|
|
19924
20023
|
path: WorkflowColumnOutputPathSchema,
|
|
19925
|
-
nullable:
|
|
19926
|
-
}).strict();
|
|
19927
|
-
var WorkflowColumnBindingSchema =
|
|
19928
|
-
contract:
|
|
19929
|
-
version:
|
|
19930
|
-
enabled:
|
|
19931
|
-
paused:
|
|
19932
|
-
workflow:
|
|
20024
|
+
nullable: z24.boolean().default(false)
|
|
20025
|
+
}).strict();
|
|
20026
|
+
var WorkflowColumnBindingSchema = z24.object({
|
|
20027
|
+
contract: z24.literal("WorkflowColumnBinding"),
|
|
20028
|
+
version: z24.literal(1),
|
|
20029
|
+
enabled: z24.boolean(),
|
|
20030
|
+
paused: z24.boolean().default(false),
|
|
20031
|
+
workflow: z24.object({
|
|
19933
20032
|
id: ContractIdentifierSchema,
|
|
19934
|
-
version:
|
|
20033
|
+
version: z24.number().int().positive(),
|
|
19935
20034
|
inputSchemaHash: Sha256Schema
|
|
19936
20035
|
}).strict(),
|
|
19937
|
-
inputs:
|
|
19938
|
-
dependencies:
|
|
20036
|
+
inputs: z24.record(z24.string().min(1).max(128), WorkflowColumnInputSchema),
|
|
20037
|
+
dependencies: z24.array(WorkflowColumnDependencySchema).max(100).default([]),
|
|
19939
20038
|
output: WorkflowColumnOutputSchema,
|
|
19940
|
-
policy:
|
|
19941
|
-
debounceMs:
|
|
19942
|
-
maxDelayMs:
|
|
19943
|
-
concurrency:
|
|
20039
|
+
policy: z24.object({
|
|
20040
|
+
debounceMs: z24.number().int().min(0).max(3e4).default(5e3),
|
|
20041
|
+
maxDelayMs: z24.number().int().min(0).max(3e4).default(3e4),
|
|
20042
|
+
concurrency: z24.number().int().min(1).max(32).default(2),
|
|
19944
20043
|
// Indexed queries need visible projections of their declared sources before execution.
|
|
19945
|
-
requireSearchProjection:
|
|
20044
|
+
requireSearchProjection: z24.boolean().optional()
|
|
19946
20045
|
}).strict().default({ debounceMs: 5e3, maxDelayMs: 3e4, concurrency: 2 }),
|
|
19947
20046
|
// The workflow supplies an ISO datetime with offset for one future expiry.
|
|
19948
20047
|
// Scheduling infrastructure needs no knowledge of months or business periods.
|
|
19949
|
-
expiry:
|
|
20048
|
+
expiry: z24.object({ path: WorkflowColumnOutputPathSchema }).strict().optional()
|
|
19950
20049
|
}).strict();
|
|
19951
20050
|
|
|
19952
20051
|
// src/contracts/workflow-runtime.ts
|
|
19953
|
-
import { z as
|
|
19954
|
-
var WorkflowCatalogEntrySchema =
|
|
19955
|
-
contract:
|
|
20052
|
+
import { z as z25 } from "zod";
|
|
20053
|
+
var WorkflowCatalogEntrySchema = z25.object({
|
|
20054
|
+
contract: z25.literal("WorkflowCatalogEntry"),
|
|
19956
20055
|
workflowId: ContractIdentifierSchema,
|
|
19957
20056
|
teamId: ContractIdentifierSchema,
|
|
19958
20057
|
creatorRef: EntityRefSchema,
|
|
19959
20058
|
currentDefinitionRef: EntityRefSchema,
|
|
19960
|
-
lifecycle:
|
|
19961
|
-
asset:
|
|
19962
|
-
preset:
|
|
19963
|
-
marketplacePublished:
|
|
20059
|
+
lifecycle: z25.enum(["ACTIVE", "DELETED"]),
|
|
20060
|
+
asset: z25.object({
|
|
20061
|
+
preset: z25.boolean(),
|
|
20062
|
+
marketplacePublished: z25.boolean(),
|
|
19964
20063
|
publishConfig: JsonObjectSchema.optional(),
|
|
19965
|
-
sort:
|
|
20064
|
+
sort: z25.number().int(),
|
|
19966
20065
|
forkFromRef: EntityRefSchema.optional(),
|
|
19967
|
-
notAuthorized:
|
|
20066
|
+
notAuthorized: z25.boolean()
|
|
19968
20067
|
}).strict(),
|
|
19969
20068
|
createdAt: IsoDateTimeSchema,
|
|
19970
20069
|
updatedAt: IsoDateTimeSchema,
|
|
@@ -19999,17 +20098,17 @@ var WorkflowCatalogEntrySchema = z24.object({
|
|
|
19999
20098
|
});
|
|
20000
20099
|
}
|
|
20001
20100
|
});
|
|
20002
|
-
var WorkflowPublicationSchema =
|
|
20003
|
-
contract:
|
|
20101
|
+
var WorkflowPublicationSchema = z25.object({
|
|
20102
|
+
contract: z25.literal("WorkflowPublication"),
|
|
20004
20103
|
publicationId: ContractIdentifierSchema,
|
|
20005
20104
|
definitionRef: EntityRefSchema,
|
|
20006
20105
|
runtimeDefinitionRef: EntityRefSchema,
|
|
20007
20106
|
sourceHash: Sha256Schema,
|
|
20008
20107
|
compiledHash: Sha256Schema,
|
|
20009
|
-
status:
|
|
20108
|
+
status: z25.enum(["PENDING", "PUBLISHED", "FAILED", "RETIRED"]),
|
|
20010
20109
|
publisherRef: EntityRefSchema,
|
|
20011
20110
|
publishedAt: IsoDateTimeSchema.optional(),
|
|
20012
|
-
failureReason:
|
|
20111
|
+
failureReason: z25.string().trim().min(1).optional()
|
|
20013
20112
|
}).strict().superRefine((publication, context) => {
|
|
20014
20113
|
if (publication.definitionRef.kind !== "workflow-definition") {
|
|
20015
20114
|
context.addIssue({
|
|
@@ -20040,12 +20139,12 @@ var WorkflowPublicationSchema = z24.object({
|
|
|
20040
20139
|
});
|
|
20041
20140
|
}
|
|
20042
20141
|
});
|
|
20043
|
-
var WorkflowCompletionCommitSchema =
|
|
20044
|
-
contract:
|
|
20142
|
+
var WorkflowCompletionCommitSchema = z25.object({
|
|
20143
|
+
contract: z25.literal("WorkflowCompletionCommit"),
|
|
20045
20144
|
commitId: ContractIdentifierSchema,
|
|
20046
20145
|
run: ApplicationRunSchema,
|
|
20047
|
-
outputs:
|
|
20048
|
-
artifacts:
|
|
20146
|
+
outputs: z25.array(OutputRecordSchema),
|
|
20147
|
+
artifacts: z25.array(ArtifactManifestSchema),
|
|
20049
20148
|
lineage: LineageRecordSchema,
|
|
20050
20149
|
completedAt: IsoDateTimeSchema
|
|
20051
20150
|
}).strict().superRefine((commit, context) => {
|
|
@@ -20087,15 +20186,15 @@ var WorkflowCompletionCommitSchema = z24.object({
|
|
|
20087
20186
|
}
|
|
20088
20187
|
});
|
|
20089
20188
|
});
|
|
20090
|
-
var WorkflowCompletionReceiptSchema =
|
|
20091
|
-
contract:
|
|
20189
|
+
var WorkflowCompletionReceiptSchema = z25.object({
|
|
20190
|
+
contract: z25.literal("WorkflowCompletionReceipt"),
|
|
20092
20191
|
commitId: ContractIdentifierSchema,
|
|
20093
20192
|
runRef: EntityRefSchema,
|
|
20094
|
-
outputRefs:
|
|
20095
|
-
artifactRefs:
|
|
20193
|
+
outputRefs: z25.array(EntityRefSchema),
|
|
20194
|
+
artifactRefs: z25.array(EntityRefSchema),
|
|
20096
20195
|
contentHash: Sha256Schema,
|
|
20097
20196
|
committedAt: IsoDateTimeSchema,
|
|
20098
|
-
idempotentReplay:
|
|
20197
|
+
idempotentReplay: z25.boolean()
|
|
20099
20198
|
}).strict().superRefine((receipt, context) => {
|
|
20100
20199
|
if (receipt.runRef.kind !== "application-run") {
|
|
20101
20200
|
context.addIssue({
|
|
@@ -20125,44 +20224,44 @@ var WorkflowCompletionReceiptSchema = z24.object({
|
|
|
20125
20224
|
});
|
|
20126
20225
|
|
|
20127
20226
|
// src/contracts/component-assembly.ts
|
|
20128
|
-
import { z as
|
|
20129
|
-
var member =
|
|
20227
|
+
import { z as z26 } from "zod";
|
|
20228
|
+
var member = z26.string().min(1).max(256).refine(
|
|
20130
20229
|
(value) => !["__proto__", "prototype", "constructor"].includes(value),
|
|
20131
20230
|
"Unsafe component member."
|
|
20132
20231
|
);
|
|
20133
|
-
var ComponentEventArgumentSchema =
|
|
20134
|
-
argument:
|
|
20135
|
-
path:
|
|
20232
|
+
var ComponentEventArgumentSchema = z26.object({
|
|
20233
|
+
argument: z26.number().int().min(0).max(31),
|
|
20234
|
+
path: z26.array(member).max(16).default([])
|
|
20136
20235
|
}).strict();
|
|
20137
|
-
var ComponentEventBindingSchema =
|
|
20236
|
+
var ComponentEventBindingSchema = z26.object({
|
|
20138
20237
|
port: ContractIdentifierSchema,
|
|
20139
|
-
arguments:
|
|
20140
|
-
preventDefault:
|
|
20141
|
-
stopPropagation:
|
|
20238
|
+
arguments: z26.array(ComponentEventArgumentSchema).max(32).default([]),
|
|
20239
|
+
preventDefault: z26.boolean().default(false),
|
|
20240
|
+
stopPropagation: z26.boolean().default(false)
|
|
20142
20241
|
}).strict();
|
|
20143
|
-
var ComponentMessageSchema =
|
|
20242
|
+
var ComponentMessageSchema = z26.union([
|
|
20144
20243
|
ContractIdentifierSchema,
|
|
20145
|
-
|
|
20146
|
-
|
|
20244
|
+
z26.object({ textI18n: I18nTextSchema }).strict(),
|
|
20245
|
+
z26.object({ key: ContractIdentifierSchema, values: z26.record(member, z26.union([z26.string(), z26.number().finite(), z26.boolean()])).default({}) }).strict()
|
|
20147
20246
|
]);
|
|
20148
|
-
var ComponentMessageBindingSchema =
|
|
20149
|
-
path:
|
|
20247
|
+
var ComponentMessageBindingSchema = z26.object({
|
|
20248
|
+
path: z26.array(z26.union([
|
|
20150
20249
|
member.refine((value) => !/[\u0000-\u001f\u007f-\u009f]/.test(value), "Invalid component path member."),
|
|
20151
|
-
|
|
20250
|
+
z26.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER)
|
|
20152
20251
|
])).min(1).max(16),
|
|
20153
20252
|
message: ComponentMessageSchema
|
|
20154
20253
|
}).strict();
|
|
20155
|
-
var ComponentAssemblySchema =
|
|
20156
|
-
contract:
|
|
20157
|
-
schemaVersion:
|
|
20254
|
+
var ComponentAssemblySchema = z26.object({
|
|
20255
|
+
contract: z26.literal("ComponentAssembly"),
|
|
20256
|
+
schemaVersion: z26.literal(1),
|
|
20158
20257
|
props: JsonObjectSchema.default({}),
|
|
20159
|
-
events:
|
|
20258
|
+
events: z26.record(member, ComponentEventBindingSchema).default({}),
|
|
20160
20259
|
// Each name remains an explicit RenderTree slot; array order controls composition.
|
|
20161
|
-
slots:
|
|
20162
|
-
renderers:
|
|
20163
|
-
hosts:
|
|
20164
|
-
messages:
|
|
20165
|
-
messageBindings:
|
|
20260
|
+
slots: z26.record(member, z26.union([ContractIdentifierSchema, z26.array(ContractIdentifierSchema).min(1).max(256).refine((names) => new Set(names).size === names.length, "Component slot names must be unique.")])).default({}),
|
|
20261
|
+
renderers: z26.record(member, ContractIdentifierSchema).default({}),
|
|
20262
|
+
hosts: z26.record(member, ContractIdentifierSchema).default({}),
|
|
20263
|
+
messages: z26.record(member, ComponentMessageSchema).default({}),
|
|
20264
|
+
messageBindings: z26.array(ComponentMessageBindingSchema).max(256).optional()
|
|
20166
20265
|
}).strict().superRefine((value, context) => {
|
|
20167
20266
|
const paths = value.messageBindings?.map((binding) => binding.path) ?? [];
|
|
20168
20267
|
for (const [index, path] of paths.entries()) {
|
|
@@ -20182,75 +20281,75 @@ var ComponentAssemblySchema = z25.object({
|
|
|
20182
20281
|
});
|
|
20183
20282
|
|
|
20184
20283
|
// src/contracts/record-editor-draft.ts
|
|
20185
|
-
import { z as
|
|
20186
|
-
var member2 =
|
|
20187
|
-
var RecordEditorPathSchema =
|
|
20188
|
-
var RecordEditorFieldErrorSchema =
|
|
20189
|
-
var RecordEditorDraftSchema =
|
|
20190
|
-
revision:
|
|
20284
|
+
import { z as z27 } from "zod";
|
|
20285
|
+
var member2 = z27.string().min(1).max(256).refine((value) => !["__proto__", "prototype", "constructor"].includes(value), "Unsafe editor path.");
|
|
20286
|
+
var RecordEditorPathSchema = z27.array(z27.union([member2, z27.object({ itemId: z27.string().min(1).max(256), idKey: member2.default("id") }).strict()])).max(32);
|
|
20287
|
+
var RecordEditorFieldErrorSchema = z27.object({ path: RecordEditorPathSchema, code: z27.string().min(1).max(256) }).strict();
|
|
20288
|
+
var RecordEditorDraftSchema = z27.object({
|
|
20289
|
+
revision: z27.string().min(1).max(256),
|
|
20191
20290
|
original: JsonObjectSchema,
|
|
20192
20291
|
value: JsonObjectSchema,
|
|
20193
|
-
touched:
|
|
20194
|
-
errors:
|
|
20195
|
-
}).strict();
|
|
20196
|
-
var RecordEditorDraftOperationSchema =
|
|
20197
|
-
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20292
|
+
touched: z27.array(RecordEditorPathSchema).max(4096),
|
|
20293
|
+
errors: z27.array(RecordEditorFieldErrorSchema).max(4096)
|
|
20294
|
+
}).strict();
|
|
20295
|
+
var RecordEditorDraftOperationSchema = z27.discriminatedUnion("kind", [
|
|
20296
|
+
z27.object({ kind: z27.literal("set"), path: RecordEditorPathSchema, value: JsonValueSchema }).strict(),
|
|
20297
|
+
z27.object({ kind: z27.literal("touch"), path: RecordEditorPathSchema }).strict(),
|
|
20298
|
+
z27.object({ kind: z27.literal("reset"), revision: z27.string().min(1).max(256), value: JsonObjectSchema }).strict(),
|
|
20299
|
+
z27.object({ kind: z27.literal("insert"), path: RecordEditorPathSchema, idKey: member2.default("id"), value: JsonObjectSchema, beforeId: z27.string().min(1).optional() }).strict(),
|
|
20300
|
+
z27.object({ kind: z27.literal("remove"), path: RecordEditorPathSchema, idKey: member2.default("id"), itemId: z27.string().min(1) }).strict(),
|
|
20301
|
+
z27.object({ kind: z27.literal("move"), path: RecordEditorPathSchema, idKey: member2.default("id"), itemId: z27.string().min(1), beforeId: z27.string().min(1).optional() }).strict()
|
|
20203
20302
|
]);
|
|
20204
|
-
var RecordEditorValidationDetailsSchema =
|
|
20205
|
-
contract:
|
|
20206
|
-
schemaVersion:
|
|
20207
|
-
errors:
|
|
20303
|
+
var RecordEditorValidationDetailsSchema = z27.object({
|
|
20304
|
+
contract: z27.literal("RecordEditorValidation"),
|
|
20305
|
+
schemaVersion: z27.literal(1),
|
|
20306
|
+
errors: z27.array(RecordEditorFieldErrorSchema).min(1).max(256)
|
|
20208
20307
|
}).strict();
|
|
20209
|
-
var RecordEditorSubmissionSnapshotSchema =
|
|
20210
|
-
revision:
|
|
20308
|
+
var RecordEditorSubmissionSnapshotSchema = z27.object({
|
|
20309
|
+
revision: z27.string().min(1).max(256),
|
|
20211
20310
|
value: JsonObjectSchema
|
|
20212
20311
|
}).strict();
|
|
20213
20312
|
|
|
20214
20313
|
// src/contracts/page-stream.ts
|
|
20215
|
-
import { z as
|
|
20314
|
+
import { z as z28 } from "zod";
|
|
20216
20315
|
var PAGE_STREAM_MAX_FRAME_BYTES = 256 * 1024;
|
|
20217
20316
|
var PAGE_STREAM_MAX_BUFFER_BYTES = 2 * 1024 * 1024;
|
|
20218
20317
|
var PAGE_STREAM_MAX_BUFFER_EVENTS = 2048;
|
|
20219
20318
|
var PAGE_STREAM_MAX_CURSOR_LENGTH = 2048;
|
|
20220
20319
|
var PAGE_STREAM_MAX_INPUT_BYTES = 8192;
|
|
20221
20320
|
var PAGE_STREAM_MAX_EVENT_ITEMS = 256;
|
|
20222
|
-
var StreamIdSchema =
|
|
20223
|
-
var CursorSchema =
|
|
20224
|
-
var SequenceSchema =
|
|
20225
|
-
var PageStreamDescriptorSchema =
|
|
20226
|
-
contract:
|
|
20227
|
-
schemaVersion:
|
|
20321
|
+
var StreamIdSchema = z28.string().min(1).max(256).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
20322
|
+
var CursorSchema = z28.string().min(1).max(PAGE_STREAM_MAX_CURSOR_LENGTH).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
20323
|
+
var SequenceSchema = z28.number().int().min(1).max(Number.MAX_SAFE_INTEGER);
|
|
20324
|
+
var PageStreamDescriptorSchema = z28.object({
|
|
20325
|
+
contract: z28.literal("PageStreamDescriptor"),
|
|
20326
|
+
schemaVersion: z28.literal(1),
|
|
20228
20327
|
streamId: StreamIdSchema,
|
|
20229
20328
|
expiresAt: IsoDateTimeSchema,
|
|
20230
|
-
channel:
|
|
20329
|
+
channel: z28.enum(["terminal", "events"]),
|
|
20231
20330
|
cursor: CursorSchema.optional()
|
|
20232
20331
|
}).strict();
|
|
20233
|
-
var PageStreamConnectSchema =
|
|
20332
|
+
var PageStreamConnectSchema = z28.object({ cursor: CursorSchema.optional() }).strict();
|
|
20234
20333
|
var base = {
|
|
20235
|
-
contract:
|
|
20236
|
-
schemaVersion:
|
|
20334
|
+
contract: z28.literal("PageStreamEvent"),
|
|
20335
|
+
schemaVersion: z28.literal(1),
|
|
20237
20336
|
streamId: StreamIdSchema,
|
|
20238
20337
|
sequence: SequenceSchema,
|
|
20239
20338
|
cursor: CursorSchema
|
|
20240
20339
|
};
|
|
20241
|
-
var PageStreamEventSchema =
|
|
20242
|
-
|
|
20243
|
-
|
|
20244
|
-
|
|
20245
|
-
|
|
20340
|
+
var PageStreamEventSchema = z28.discriminatedUnion("type", [
|
|
20341
|
+
z28.object({ ...base, type: z28.literal("snapshot"), payload: z28.object({ model: JsonObjectSchema }).strict() }).strict(),
|
|
20342
|
+
z28.object({ ...base, type: z28.literal("delta"), payload: z28.object({ events: z28.array(JsonObjectSchema).max(PAGE_STREAM_MAX_EVENT_ITEMS) }).strict() }).strict(),
|
|
20343
|
+
z28.object({ ...base, type: z28.literal("end"), payload: z28.object({}).strict() }).strict(),
|
|
20344
|
+
z28.object({ ...base, type: z28.literal("error"), payload: z28.object({ code: z28.string().min(1).max(128), retryable: z28.boolean() }).strict() }).strict()
|
|
20246
20345
|
]).superRefine((value, context) => {
|
|
20247
20346
|
if (new TextEncoder().encode(JSON.stringify(value)).byteLength > PAGE_STREAM_MAX_FRAME_BYTES)
|
|
20248
20347
|
context.addIssue({ code: "custom", message: "Page stream frame exceeds the UTF-8 byte limit." });
|
|
20249
20348
|
});
|
|
20250
|
-
var PageStreamControlSchema =
|
|
20251
|
-
|
|
20252
|
-
|
|
20253
|
-
|
|
20349
|
+
var PageStreamControlSchema = z28.discriminatedUnion("port", [
|
|
20350
|
+
z28.object({ requestId: z28.string().uuid(), port: z28.literal("terminal.input"), payload: z28.object({ data: z28.string().min(1).max(PAGE_STREAM_MAX_INPUT_BYTES) }).strict() }).strict(),
|
|
20351
|
+
z28.object({ requestId: z28.string().uuid(), port: z28.literal("terminal.resize"), payload: z28.object({ columns: z28.number().int().min(1).max(1e3), rows: z28.number().int().min(1).max(1e3) }).strict() }).strict(),
|
|
20352
|
+
z28.object({ requestId: z28.string().uuid(), port: z28.literal("stream.disconnect"), payload: z28.object({}).strict() }).strict()
|
|
20254
20353
|
]).superRefine((value, context) => {
|
|
20255
20354
|
if (value.port === "terminal.input" && new TextEncoder().encode(value.payload.data).byteLength > PAGE_STREAM_MAX_INPUT_BYTES)
|
|
20256
20355
|
context.addIssue({ code: "custom", path: ["payload", "data"], message: "Terminal input exceeds the UTF-8 byte limit." });
|
|
@@ -20266,7 +20365,7 @@ var pageStreamRoutes = {
|
|
|
20266
20365
|
terminal: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/terminal`,
|
|
20267
20366
|
control: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/control`
|
|
20268
20367
|
};
|
|
20269
|
-
var PageStreamControlResultSchema =
|
|
20368
|
+
var PageStreamControlResultSchema = z28.object({ requestId: z28.string().uuid(), accepted: z28.literal(true) }).strict();
|
|
20270
20369
|
export {
|
|
20271
20370
|
AGENT_MODE_CAPABILITIES,
|
|
20272
20371
|
AGENT_SESSION_CAPABILITY_EVIDENCE,
|
|
@@ -20440,6 +20539,10 @@ export {
|
|
|
20440
20539
|
DeclarativeCreateTemplateChoiceSchema,
|
|
20441
20540
|
DeclarativeCreateTemplateRegistrationSchema,
|
|
20442
20541
|
DeclarativeDefaultPolicyRegistrationSchema,
|
|
20542
|
+
DeclarativeDocumentImportIntentSchema,
|
|
20543
|
+
DeclarativeDocumentImportPlanSchema,
|
|
20544
|
+
DeclarativeDocumentImportRequestSchema,
|
|
20545
|
+
DeclarativeDocumentImportResultSchema,
|
|
20443
20546
|
DeclarativeDocumentSchema,
|
|
20444
20547
|
DeclarativeDocumentSummarySchema,
|
|
20445
20548
|
DeclarativeDomainCommandDefinitionRegistrationSchema,
|
|
@@ -20448,6 +20551,7 @@ export {
|
|
|
20448
20551
|
DeclarativeEnvironmentChoiceSchema,
|
|
20449
20552
|
DeclarativeEnvironmentResourceDocumentSchema,
|
|
20450
20553
|
DeclarativeErrorEnvelopeSchema,
|
|
20554
|
+
DeclarativeImportDocumentSchema,
|
|
20451
20555
|
DeclarativeLayoutPolicyResourceDocumentSchema,
|
|
20452
20556
|
DeclarativeLegacyWorkbenchSummarySchema,
|
|
20453
20557
|
DeclarativeLifecycleSchema,
|