@inf-monkeys-tech/monkeys 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/contracts/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 +1065 -961
- package/lib/esm/index.mjs.map +1 -1
- 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/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
package/lib/esm/index.mjs
CHANGED
|
@@ -15009,6 +15009,8 @@ var DeclarativeAuthoringActionSchema = z18.enum([
|
|
|
15009
15009
|
]);
|
|
15010
15010
|
var encodePath = (value) => encodeURIComponent(value);
|
|
15011
15011
|
var declarativeControlRoutes = {
|
|
15012
|
+
prepareDocumentImport: (kind) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/documents/${kind}/prepare`,
|
|
15013
|
+
importDocument: (kind) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/documents/${kind}/import`,
|
|
15012
15014
|
validate: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/validate`,
|
|
15013
15015
|
preview: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/preview`,
|
|
15014
15016
|
publish: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/publish`,
|
|
@@ -16969,11 +16971,108 @@ var DeclarativeRuntimeRouteOwnerSchema = z18.object({
|
|
|
16969
16971
|
}).strict();
|
|
16970
16972
|
var DeclarativeRouteClaimIntentSchema = RouteClaimSchema;
|
|
16971
16973
|
|
|
16974
|
+
// src/contracts/declarative-document-import.ts
|
|
16975
|
+
import { z as z19 } from "zod";
|
|
16976
|
+
var sameScope = (left, right) => ["tenantRef", "dataSpaceRef", "teamRef"].every(
|
|
16977
|
+
(key) => left[key]?.kind === right[key]?.kind && left[key]?.id === right[key]?.id && left[key]?.ownerRepo === right[key]?.ownerRepo
|
|
16978
|
+
);
|
|
16979
|
+
var DeclarativeImportDocumentSchema = z19.union([
|
|
16980
|
+
PageSchema,
|
|
16981
|
+
NavigationSchema
|
|
16982
|
+
]);
|
|
16983
|
+
var requestShape = {
|
|
16984
|
+
document: DeclarativeImportDocumentSchema,
|
|
16985
|
+
surface: ProductSurfaceSchema,
|
|
16986
|
+
environmentId: ContractIdentifierSchema.optional()
|
|
16987
|
+
};
|
|
16988
|
+
function supportsSurface(value) {
|
|
16989
|
+
return value.document.contract === "Page" ? value.document.surface === value.surface : value.document.supportedSurfaces.includes(value.surface);
|
|
16990
|
+
}
|
|
16991
|
+
var DeclarativeDocumentImportRequestSchema = z19.object(requestShape).strict().refine(supportsSurface, {
|
|
16992
|
+
path: ["surface"],
|
|
16993
|
+
message: "The document does not support the selected surface."
|
|
16994
|
+
});
|
|
16995
|
+
var DeclarativeDocumentImportIntentSchema = z19.object({
|
|
16996
|
+
...requestShape,
|
|
16997
|
+
expectedVersion: z19.number().int().nonnegative(),
|
|
16998
|
+
expectedPlanHash: Sha256Schema,
|
|
16999
|
+
idempotencyKey: z19.string().trim().min(1).max(256)
|
|
17000
|
+
}).strict().refine(supportsSurface, {
|
|
17001
|
+
path: ["surface"],
|
|
17002
|
+
message: "The document does not support the selected surface."
|
|
17003
|
+
});
|
|
17004
|
+
var DeclarativeDocumentImportPlanSchema = z19.object({
|
|
17005
|
+
contract: z19.literal("DeclarativeDocumentImportPlan"),
|
|
17006
|
+
schemaVersion: z19.literal(1),
|
|
17007
|
+
resourceKind: z19.enum(["page", "navigation"]),
|
|
17008
|
+
resourceId: ContractIdentifierSchema,
|
|
17009
|
+
surface: ProductSurfaceSchema,
|
|
17010
|
+
sourceContentHash: Sha256Schema,
|
|
17011
|
+
environmentRevisionRef: RevisionRefSchema,
|
|
17012
|
+
document: DeclarativeImportDocumentSchema,
|
|
17013
|
+
tenantScope: TenantScopeSchema.nullable(),
|
|
17014
|
+
requiresInitialization: z19.boolean(),
|
|
17015
|
+
expectedVersion: z19.number().int().nonnegative(),
|
|
17016
|
+
currentContentHash: Sha256Schema.nullable(),
|
|
17017
|
+
changed: z19.boolean(),
|
|
17018
|
+
diagnostics: z19.array(
|
|
17019
|
+
z19.object({
|
|
17020
|
+
code: z19.string().min(1),
|
|
17021
|
+
path: z19.string(),
|
|
17022
|
+
message: z19.string(),
|
|
17023
|
+
blocking: z19.boolean()
|
|
17024
|
+
}).strict()
|
|
17025
|
+
),
|
|
17026
|
+
dependencyContentHash: Sha256Schema,
|
|
17027
|
+
planHash: Sha256Schema
|
|
17028
|
+
}).strict().superRefine((value, context) => {
|
|
17029
|
+
const kind = value.document.contract === "Page" ? "page" : "navigation";
|
|
17030
|
+
const id = value.document.contract === "Page" ? value.document.pageId : value.document.navigationId;
|
|
17031
|
+
if (kind !== value.resourceKind || id !== value.resourceId || !supportsSurface(value))
|
|
17032
|
+
context.addIssue({
|
|
17033
|
+
code: "custom",
|
|
17034
|
+
path: ["document"],
|
|
17035
|
+
message: "The plan must identify its document and supported surface."
|
|
17036
|
+
});
|
|
17037
|
+
if (value.requiresInitialization !== (value.tenantScope === null))
|
|
17038
|
+
context.addIssue({
|
|
17039
|
+
code: "custom",
|
|
17040
|
+
path: ["requiresInitialization"],
|
|
17041
|
+
message: "Only an uninitialized target may omit tenantScope."
|
|
17042
|
+
});
|
|
17043
|
+
if (value.environmentRevisionRef.kind !== "environment")
|
|
17044
|
+
context.addIssue({
|
|
17045
|
+
code: "custom",
|
|
17046
|
+
path: ["environmentRevisionRef"],
|
|
17047
|
+
message: "The import plan must pin an environment revision."
|
|
17048
|
+
});
|
|
17049
|
+
if (value.tenantScope && !sameScope(value.tenantScope, value.document.tenantScope))
|
|
17050
|
+
context.addIssue({
|
|
17051
|
+
code: "custom",
|
|
17052
|
+
path: ["tenantScope"],
|
|
17053
|
+
message: "The plan and bound document must belong to the same scope."
|
|
17054
|
+
});
|
|
17055
|
+
});
|
|
17056
|
+
var DeclarativeDocumentImportResultSchema = z19.object({
|
|
17057
|
+
action: z19.literal("import"),
|
|
17058
|
+
changed: z19.boolean(),
|
|
17059
|
+
plan: DeclarativeDocumentImportPlanSchema,
|
|
17060
|
+
revisionRef: RevisionRefSchema
|
|
17061
|
+
}).strict().superRefine((value, context) => {
|
|
17062
|
+
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)) {
|
|
17063
|
+
context.addIssue({
|
|
17064
|
+
code: "custom",
|
|
17065
|
+
path: ["revisionRef"],
|
|
17066
|
+
message: "The import result must identify the exact saved or unchanged draft revision."
|
|
17067
|
+
});
|
|
17068
|
+
}
|
|
17069
|
+
});
|
|
17070
|
+
|
|
16972
17071
|
// src/contracts/tenant.ts
|
|
16973
|
-
import { z as
|
|
17072
|
+
import { z as z21 } from "zod";
|
|
16974
17073
|
|
|
16975
17074
|
// src/contracts/theme.ts
|
|
16976
|
-
import { z as
|
|
17075
|
+
import { z as z20 } from "zod";
|
|
16977
17076
|
|
|
16978
17077
|
// src/theme-tokens/core.ts
|
|
16979
17078
|
var import_ajv = __toESM(require_ajv());
|
|
@@ -19200,20 +19299,20 @@ function assertMonkeysThemeTokensComplete(input) {
|
|
|
19200
19299
|
}
|
|
19201
19300
|
|
|
19202
19301
|
// src/contracts/theme.ts
|
|
19203
|
-
var ThemeTokenTypeSchema =
|
|
19204
|
-
var ThemeTokenSchema =
|
|
19302
|
+
var ThemeTokenTypeSchema = z20.enum(THEME_TOKEN_TYPES);
|
|
19303
|
+
var ThemeTokenSchema = z20.record(z20.string(), z20.unknown()).superRefine((input, context) => {
|
|
19205
19304
|
const issues = validateThemeTokensDocumentStructure({ token: input });
|
|
19206
19305
|
for (const issue of issues) {
|
|
19207
19306
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
19208
19307
|
}
|
|
19209
19308
|
});
|
|
19210
|
-
var ThemeTokenGroupSchema =
|
|
19309
|
+
var ThemeTokenGroupSchema = z20.record(z20.string(), z20.unknown()).superRefine((input, context) => {
|
|
19211
19310
|
const issues = validateThemeTokensDocumentStructure(input);
|
|
19212
19311
|
for (const issue of issues) {
|
|
19213
19312
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
19214
19313
|
}
|
|
19215
19314
|
});
|
|
19216
|
-
var ThemeTokensSchema =
|
|
19315
|
+
var ThemeTokensSchema = z20.record(z20.string(), z20.unknown()).superRefine((input, context) => {
|
|
19217
19316
|
const issues = validateThemeTokensDocument(input);
|
|
19218
19317
|
for (const issue of issues) {
|
|
19219
19318
|
context.addIssue({ code: "custom", message: `${issue.path} ${issue.message}` });
|
|
@@ -19240,9 +19339,9 @@ var ResolvedThemeTokensSchema = ThemeTokensSchema.superRefine((input, context) =
|
|
|
19240
19339
|
});
|
|
19241
19340
|
|
|
19242
19341
|
// src/contracts/tenant.ts
|
|
19243
|
-
var DesignTokenFileSourceSchema =
|
|
19244
|
-
type:
|
|
19245
|
-
path:
|
|
19342
|
+
var DesignTokenFileSourceSchema = z21.object({
|
|
19343
|
+
type: z21.literal("file"),
|
|
19344
|
+
path: z21.string().trim().min(1).superRefine((source, context) => {
|
|
19246
19345
|
const isWindowsDrivePath = /^[a-z]:[\\/]/i.test(source);
|
|
19247
19346
|
if (!isWindowsDrivePath && /^[a-z][a-z\d+.-]*:/i.test(source)) {
|
|
19248
19347
|
context.addIssue({
|
|
@@ -19252,9 +19351,9 @@ var DesignTokenFileSourceSchema = z20.object({
|
|
|
19252
19351
|
}
|
|
19253
19352
|
})
|
|
19254
19353
|
}).strict();
|
|
19255
|
-
var DesignTokenUrlSourceSchema =
|
|
19256
|
-
type:
|
|
19257
|
-
url:
|
|
19354
|
+
var DesignTokenUrlSourceSchema = z21.object({
|
|
19355
|
+
type: z21.literal("url"),
|
|
19356
|
+
url: z21.string().trim().min(1).superRefine((source, context) => {
|
|
19258
19357
|
if (!/^https?:\/\//i.test(source)) {
|
|
19259
19358
|
context.addIssue({
|
|
19260
19359
|
code: "custom",
|
|
@@ -19263,45 +19362,45 @@ var DesignTokenUrlSourceSchema = z20.object({
|
|
|
19263
19362
|
}
|
|
19264
19363
|
})
|
|
19265
19364
|
}).strict();
|
|
19266
|
-
var DesignTokenInlineSourceSchema =
|
|
19267
|
-
type:
|
|
19365
|
+
var DesignTokenInlineSourceSchema = z21.object({
|
|
19366
|
+
type: z21.literal("inline"),
|
|
19268
19367
|
document: ThemeTokensSchema
|
|
19269
19368
|
}).strict();
|
|
19270
|
-
var DesignTokenSourceSchema =
|
|
19271
|
-
var TenantDesignTokensConfigSchema =
|
|
19369
|
+
var DesignTokenSourceSchema = z21.discriminatedUnion("type", [DesignTokenFileSourceSchema, DesignTokenUrlSourceSchema, DesignTokenInlineSourceSchema]);
|
|
19370
|
+
var TenantDesignTokensConfigSchema = z21.object({
|
|
19272
19371
|
/** Ordered tenant overrides. The backend always applies the product default first. */
|
|
19273
|
-
tokenSources:
|
|
19372
|
+
tokenSources: z21.array(DesignTokenSourceSchema)
|
|
19274
19373
|
}).strict();
|
|
19275
|
-
var TenantAuthBindingSchema =
|
|
19276
|
-
kind:
|
|
19374
|
+
var TenantAuthBindingSchema = z21.object({
|
|
19375
|
+
kind: z21.literal("auth-provider"),
|
|
19277
19376
|
providerId: ContractIdentifierSchema,
|
|
19278
19377
|
policyRef: ContractIdentifierSchema.optional()
|
|
19279
19378
|
}).strict();
|
|
19280
|
-
var TenantDataBindingSchema =
|
|
19281
|
-
|
|
19282
|
-
kind:
|
|
19379
|
+
var TenantDataBindingSchema = z21.discriminatedUnion("kind", [
|
|
19380
|
+
z21.object({
|
|
19381
|
+
kind: z21.literal("data-provider"),
|
|
19283
19382
|
providerId: ContractIdentifierSchema,
|
|
19284
19383
|
domainRef: ContractIdentifierSchema.optional()
|
|
19285
19384
|
}).strict(),
|
|
19286
|
-
|
|
19287
|
-
kind:
|
|
19385
|
+
z21.object({
|
|
19386
|
+
kind: z21.literal("projection"),
|
|
19288
19387
|
projectionRef: ContractIdentifierSchema,
|
|
19289
19388
|
domainRef: ContractIdentifierSchema.optional()
|
|
19290
19389
|
}).strict()
|
|
19291
19390
|
]);
|
|
19292
|
-
var TenantAuthBindingsSchema =
|
|
19293
|
-
var TenantDataBindingsSchema =
|
|
19294
|
-
var TenantTrendRadarSourceSchema =
|
|
19391
|
+
var TenantAuthBindingsSchema = z21.record(ContractIdentifierSchema, TenantAuthBindingSchema);
|
|
19392
|
+
var TenantDataBindingsSchema = z21.record(ContractIdentifierSchema, TenantDataBindingSchema);
|
|
19393
|
+
var TenantTrendRadarSourceSchema = z21.object({
|
|
19295
19394
|
ontologyId: ContractIdentifierSchema,
|
|
19296
19395
|
viewId: ContractIdentifierSchema
|
|
19297
19396
|
}).strict();
|
|
19298
|
-
var TenantTrendRadarCollectionTargetSchema =
|
|
19397
|
+
var TenantTrendRadarCollectionTargetSchema = z21.object({
|
|
19299
19398
|
ontologyId: ContractIdentifierSchema
|
|
19300
19399
|
}).strict();
|
|
19301
|
-
var TenantTrendRadarEvaluationSchema =
|
|
19400
|
+
var TenantTrendRadarEvaluationSchema = z21.object({
|
|
19302
19401
|
workflowId: ContractIdentifierSchema
|
|
19303
19402
|
}).strict();
|
|
19304
|
-
var TenantTrendRadarDerivedMetricsSchema =
|
|
19403
|
+
var TenantTrendRadarDerivedMetricsSchema = z21.object({
|
|
19305
19404
|
productCountFieldKey: ContractIdentifierSchema,
|
|
19306
19405
|
salesValueCountFieldKey: ContractIdentifierSchema,
|
|
19307
19406
|
salesSumFieldKey: ContractIdentifierSchema
|
|
@@ -19309,7 +19408,7 @@ var TenantTrendRadarDerivedMetricsSchema = z20.object({
|
|
|
19309
19408
|
({ productCountFieldKey, salesValueCountFieldKey, salesSumFieldKey }) => (/* @__PURE__ */ new Set([productCountFieldKey, salesValueCountFieldKey, salesSumFieldKey])).size === 3,
|
|
19310
19409
|
{ message: "Trend Radar derived metric Field Keys must be distinct." }
|
|
19311
19410
|
);
|
|
19312
|
-
var TenantTrendRadarSourcesSchema =
|
|
19411
|
+
var TenantTrendRadarSourcesSchema = z21.object({
|
|
19313
19412
|
products: TenantTrendRadarSourceSchema.optional(),
|
|
19314
19413
|
hotwords: TenantTrendRadarSourceSchema.optional(),
|
|
19315
19414
|
brands: TenantTrendRadarSourceSchema.optional(),
|
|
@@ -19317,54 +19416,54 @@ var TenantTrendRadarSourcesSchema = z20.object({
|
|
|
19317
19416
|
derivedMetrics: TenantTrendRadarDerivedMetricsSchema.optional(),
|
|
19318
19417
|
evaluation: TenantTrendRadarEvaluationSchema.optional()
|
|
19319
19418
|
}).strict();
|
|
19320
|
-
var AssetVariantsSchema =
|
|
19321
|
-
light:
|
|
19322
|
-
dark:
|
|
19419
|
+
var AssetVariantsSchema = z21.object({
|
|
19420
|
+
light: z21.string().optional(),
|
|
19421
|
+
dark: z21.string().optional()
|
|
19323
19422
|
}).strict();
|
|
19324
|
-
var TenantAgentThemeConfigSchema =
|
|
19423
|
+
var TenantAgentThemeConfigSchema = z21.object({
|
|
19325
19424
|
logo: AssetVariantsSchema.optional(),
|
|
19326
|
-
brandDisplayMode:
|
|
19327
|
-
density:
|
|
19425
|
+
brandDisplayMode: z21.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
19426
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional(),
|
|
19328
19427
|
sidebar: AgentWorkbenchSidebarConfigSchema.optional(),
|
|
19329
19428
|
/** @deprecated Use sidebar.navigationMode. */
|
|
19330
|
-
navigationMode:
|
|
19429
|
+
navigationMode: z21.enum(["default", "session", "trend"]).optional(),
|
|
19331
19430
|
/** @deprecated Use sidebar.quickStartEnabled. */
|
|
19332
|
-
quickStartEnabled:
|
|
19431
|
+
quickStartEnabled: z21.boolean().optional()
|
|
19333
19432
|
}).strict();
|
|
19334
19433
|
var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
|
|
19335
19434
|
var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
|
|
19336
19435
|
var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
|
|
19337
|
-
var CurrentUserMenuIdentifierSchema =
|
|
19338
|
-
var CurrentUserMenuDisplayTextSchema =
|
|
19339
|
-
|
|
19340
|
-
|
|
19436
|
+
var CurrentUserMenuIdentifierSchema = z21.string().trim().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/, "Expected a stable current-user menu identifier.");
|
|
19437
|
+
var CurrentUserMenuDisplayTextSchema = z21.union([
|
|
19438
|
+
z21.string().trim().min(1),
|
|
19439
|
+
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.")
|
|
19341
19440
|
]);
|
|
19342
|
-
var CurrentUserMenuNavigationItemSchema =
|
|
19441
|
+
var CurrentUserMenuNavigationItemSchema = z21.object({
|
|
19343
19442
|
id: CurrentUserMenuIdentifierSchema,
|
|
19344
|
-
kind:
|
|
19443
|
+
kind: z21.literal("navigation"),
|
|
19345
19444
|
ref: CurrentUserMenuIdentifierSchema
|
|
19346
19445
|
}).strict();
|
|
19347
|
-
var CurrentUserMenuControlItemSchema =
|
|
19446
|
+
var CurrentUserMenuControlItemSchema = z21.object({
|
|
19348
19447
|
id: CurrentUserMenuIdentifierSchema,
|
|
19349
|
-
kind:
|
|
19350
|
-
ref:
|
|
19448
|
+
kind: z21.literal("control"),
|
|
19449
|
+
ref: z21.enum(CURRENT_USER_MENU_CONTROL_REFS)
|
|
19351
19450
|
}).strict();
|
|
19352
|
-
var CurrentUserMenuActionItemSchema =
|
|
19451
|
+
var CurrentUserMenuActionItemSchema = z21.object({
|
|
19353
19452
|
id: CurrentUserMenuIdentifierSchema,
|
|
19354
|
-
kind:
|
|
19355
|
-
ref:
|
|
19356
|
-
tone:
|
|
19453
|
+
kind: z21.literal("action"),
|
|
19454
|
+
ref: z21.enum(CURRENT_USER_MENU_ACTION_REFS),
|
|
19455
|
+
tone: z21.enum(["default", "danger"]).optional()
|
|
19357
19456
|
}).strict();
|
|
19358
|
-
var CurrentUserMenuItemSchema =
|
|
19359
|
-
var CurrentUserMenuSectionSchema =
|
|
19457
|
+
var CurrentUserMenuItemSchema = z21.discriminatedUnion("kind", [CurrentUserMenuNavigationItemSchema, CurrentUserMenuControlItemSchema, CurrentUserMenuActionItemSchema]);
|
|
19458
|
+
var CurrentUserMenuSectionSchema = z21.object({
|
|
19360
19459
|
id: CurrentUserMenuIdentifierSchema,
|
|
19361
19460
|
label: CurrentUserMenuDisplayTextSchema.optional(),
|
|
19362
|
-
dividerBefore:
|
|
19363
|
-
items:
|
|
19461
|
+
dividerBefore: z21.boolean().optional(),
|
|
19462
|
+
items: z21.array(CurrentUserMenuItemSchema)
|
|
19364
19463
|
}).strict();
|
|
19365
|
-
var CurrentUserMenuConfigSchema =
|
|
19366
|
-
version:
|
|
19367
|
-
sections:
|
|
19464
|
+
var CurrentUserMenuConfigSchema = z21.object({
|
|
19465
|
+
version: z21.literal(1),
|
|
19466
|
+
sections: z21.array(CurrentUserMenuSectionSchema).max(20)
|
|
19368
19467
|
}).strict().superRefine((value, context) => {
|
|
19369
19468
|
const sectionIds = /* @__PURE__ */ new Set();
|
|
19370
19469
|
const itemIds = /* @__PURE__ */ new Set();
|
|
@@ -19398,7 +19497,7 @@ var CurrentUserMenuConfigSchema = z20.object({
|
|
|
19398
19497
|
});
|
|
19399
19498
|
}
|
|
19400
19499
|
});
|
|
19401
|
-
var LegacyCurrentUserMenuProfileSchema =
|
|
19500
|
+
var LegacyCurrentUserMenuProfileSchema = z21.array(z21.enum(LEGACY_CURRENT_USER_MENU_ITEM_IDS)).superRefine((value, context) => {
|
|
19402
19501
|
const seen = /* @__PURE__ */ new Set();
|
|
19403
19502
|
value.forEach((item, index) => {
|
|
19404
19503
|
if (seen.has(item)) {
|
|
@@ -19411,69 +19510,69 @@ var LegacyCurrentUserMenuProfileSchema = z20.array(z20.enum(LEGACY_CURRENT_USER_
|
|
|
19411
19510
|
seen.add(item);
|
|
19412
19511
|
});
|
|
19413
19512
|
});
|
|
19414
|
-
var CurrentUserMenuProfileSchema =
|
|
19415
|
-
var ThemeHeadbarSchema =
|
|
19416
|
-
theme:
|
|
19417
|
-
navPosition:
|
|
19418
|
-
actions:
|
|
19513
|
+
var CurrentUserMenuProfileSchema = z21.union([z21.literal("*"), LegacyCurrentUserMenuProfileSchema, CurrentUserMenuConfigSchema]);
|
|
19514
|
+
var ThemeHeadbarSchema = z21.object({
|
|
19515
|
+
theme: z21.enum(["card", "glassy", "ghost"]).optional(),
|
|
19516
|
+
navPosition: z21.enum(["left", "center", "right"]).optional(),
|
|
19517
|
+
actions: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]).optional(),
|
|
19419
19518
|
profile: CurrentUserMenuProfileSchema.optional(),
|
|
19420
|
-
showTeamQuota:
|
|
19519
|
+
showTeamQuota: z21.boolean().optional()
|
|
19421
19520
|
}).strict();
|
|
19422
|
-
var TenantHeadbarModuleLeafSchema =
|
|
19521
|
+
var TenantHeadbarModuleLeafSchema = z21.object({
|
|
19423
19522
|
id: ContractIdentifierSchema,
|
|
19424
|
-
extraInfo:
|
|
19425
|
-
displayName:
|
|
19426
|
-
visible:
|
|
19427
|
-
disabled:
|
|
19428
|
-
icon:
|
|
19429
|
-
showQuickSwitcher:
|
|
19430
|
-
showSidebar:
|
|
19431
|
-
showContentFrame:
|
|
19523
|
+
extraInfo: z21.boolean().optional(),
|
|
19524
|
+
displayName: z21.union([z21.string(), z21.record(LocaleIdentifierSchema, z21.string())]).optional(),
|
|
19525
|
+
visible: z21.boolean().optional(),
|
|
19526
|
+
disabled: z21.boolean().optional(),
|
|
19527
|
+
icon: z21.string().optional(),
|
|
19528
|
+
showQuickSwitcher: z21.boolean().optional(),
|
|
19529
|
+
showSidebar: z21.boolean().optional(),
|
|
19530
|
+
showContentFrame: z21.boolean().optional()
|
|
19432
19531
|
}).strict();
|
|
19433
19532
|
var TenantHeadbarModuleItemSchema = TenantHeadbarModuleLeafSchema.extend({
|
|
19434
|
-
children:
|
|
19435
|
-
}).strict();
|
|
19436
|
-
var KernelHeadbarSchema =
|
|
19437
|
-
theme:
|
|
19438
|
-
layoutMode:
|
|
19439
|
-
heightPx:
|
|
19440
|
-
navPosition:
|
|
19441
|
-
brandTitle:
|
|
19442
|
-
menuRadius:
|
|
19443
|
-
}).strict();
|
|
19444
|
-
var CustomIconSchema =
|
|
19445
|
-
color:
|
|
19446
|
-
url:
|
|
19447
|
-
type:
|
|
19448
|
-
hintTextColor:
|
|
19449
|
-
}).strict();
|
|
19450
|
-
var WorkbenchCustomerToolSchema =
|
|
19533
|
+
children: z21.array(TenantHeadbarModuleLeafSchema).optional()
|
|
19534
|
+
}).strict();
|
|
19535
|
+
var KernelHeadbarSchema = z21.object({
|
|
19536
|
+
theme: z21.literal("card").optional(),
|
|
19537
|
+
layoutMode: z21.enum(["boxed", "full-bleed"]).optional(),
|
|
19538
|
+
heightPx: z21.number().positive().optional(),
|
|
19539
|
+
navPosition: z21.enum(["left", "center", "right"]).optional(),
|
|
19540
|
+
brandTitle: z21.string().optional(),
|
|
19541
|
+
menuRadius: z21.enum(["default", "none", "sm", "md", "lg", "xl", "full"]).optional()
|
|
19542
|
+
}).strict();
|
|
19543
|
+
var CustomIconSchema = z21.object({
|
|
19544
|
+
color: z21.string().optional(),
|
|
19545
|
+
url: z21.string().optional(),
|
|
19546
|
+
type: z21.enum(["svg", "image"]).optional(),
|
|
19547
|
+
hintTextColor: z21.string().optional()
|
|
19548
|
+
}).strict();
|
|
19549
|
+
var WorkbenchCustomerToolSchema = z21.object({
|
|
19451
19550
|
id: ContractIdentifierSchema,
|
|
19452
|
-
label:
|
|
19453
|
-
fixed:
|
|
19551
|
+
label: z21.union([z21.string(), z21.record(LocaleIdentifierSchema, z21.string())]).optional(),
|
|
19552
|
+
fixed: z21.boolean().optional()
|
|
19454
19553
|
}).strict();
|
|
19455
|
-
var WorkbenchStudioOverrideSchema =
|
|
19456
|
-
studioName:
|
|
19457
|
-
dropdownToolsDefault:
|
|
19458
|
-
existingToolsDefault:
|
|
19459
|
-
historyColumnsDefault:
|
|
19554
|
+
var WorkbenchStudioOverrideSchema = z21.object({
|
|
19555
|
+
studioName: z21.string().trim().min(1),
|
|
19556
|
+
dropdownToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
19557
|
+
existingToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
19558
|
+
historyColumnsDefault: z21.number().int().min(1).max(6).optional()
|
|
19460
19559
|
}).strict();
|
|
19461
|
-
var TenantWorkbenchPageContextSchema =
|
|
19560
|
+
var TenantWorkbenchPageContextSchema = z21.object({
|
|
19462
19561
|
workflow: JsonObjectSchema.optional(),
|
|
19463
19562
|
agent: JsonObjectSchema.optional(),
|
|
19464
19563
|
agentId: ContractIdentifierSchema.optional(),
|
|
19465
19564
|
designProject: JsonObjectSchema.optional(),
|
|
19466
19565
|
designMetadataId: ContractIdentifierSchema.optional(),
|
|
19467
|
-
iframeUrl:
|
|
19468
|
-
info:
|
|
19566
|
+
iframeUrl: z21.string().trim().min(1).optional(),
|
|
19567
|
+
info: z21.object({
|
|
19469
19568
|
displayName: LocalizedTextSchema.optional(),
|
|
19470
19569
|
description: LocalizedTextSchema.optional(),
|
|
19471
|
-
iconUrl:
|
|
19570
|
+
iconUrl: z21.string().trim().min(1).optional()
|
|
19472
19571
|
}).strict().optional(),
|
|
19473
|
-
isBuiltinPinned:
|
|
19474
|
-
isBuiltinReadonly:
|
|
19572
|
+
isBuiltinPinned: z21.boolean().optional(),
|
|
19573
|
+
isBuiltinReadonly: z21.boolean().optional()
|
|
19475
19574
|
}).strict();
|
|
19476
|
-
var TenantWorkbenchPageEnvelopeSchema =
|
|
19575
|
+
var TenantWorkbenchPageEnvelopeSchema = z21.object({
|
|
19477
19576
|
definition: PageDefinitionSchema,
|
|
19478
19577
|
context: TenantWorkbenchPageContextSchema
|
|
19479
19578
|
}).strict().superRefine(({ definition }, context) => {
|
|
@@ -19506,59 +19605,59 @@ var TenantWorkbenchPageEnvelopeSchema = z20.object({
|
|
|
19506
19605
|
});
|
|
19507
19606
|
}
|
|
19508
19607
|
});
|
|
19509
|
-
var TenantWorkbenchPageGroupSchema =
|
|
19608
|
+
var TenantWorkbenchPageGroupSchema = z21.object({
|
|
19510
19609
|
id: ContractIdentifierSchema,
|
|
19511
|
-
pageIds:
|
|
19610
|
+
pageIds: z21.array(ContractIdentifierSchema),
|
|
19512
19611
|
displayName: LocalizedTextSchema,
|
|
19513
|
-
isBuiltIn:
|
|
19514
|
-
iconUrl:
|
|
19515
|
-
sortIndex:
|
|
19612
|
+
isBuiltIn: z21.boolean(),
|
|
19613
|
+
iconUrl: z21.string().optional(),
|
|
19614
|
+
sortIndex: z21.number().int().nullable().optional(),
|
|
19516
19615
|
presetRelationId: ContractIdentifierSchema.optional(),
|
|
19517
19616
|
relationKey: ContractIdentifierSchema.nullable().optional(),
|
|
19518
19617
|
studioId: ContractIdentifierSchema.optional()
|
|
19519
19618
|
}).strict();
|
|
19520
|
-
var TenantWorkbenchConfigSchema =
|
|
19521
|
-
pages:
|
|
19522
|
-
pageGroups:
|
|
19523
|
-
catalog:
|
|
19524
|
-
enabled:
|
|
19525
|
-
defaultEntry:
|
|
19619
|
+
var TenantWorkbenchConfigSchema = z21.object({
|
|
19620
|
+
pages: z21.array(TenantWorkbenchPageEnvelopeSchema),
|
|
19621
|
+
pageGroups: z21.array(TenantWorkbenchPageGroupSchema),
|
|
19622
|
+
catalog: z21.object({
|
|
19623
|
+
enabled: z21.boolean().optional(),
|
|
19624
|
+
defaultEntry: z21.boolean().optional()
|
|
19526
19625
|
}).strict().optional(),
|
|
19527
|
-
quickSwitcherMaxItems:
|
|
19528
|
-
defaultOrder:
|
|
19529
|
-
groups:
|
|
19530
|
-
pages:
|
|
19626
|
+
quickSwitcherMaxItems: z21.number().int().nonnegative().optional(),
|
|
19627
|
+
defaultOrder: z21.object({
|
|
19628
|
+
groups: z21.array(ContractIdentifierSchema),
|
|
19629
|
+
pages: z21.record(ContractIdentifierSchema, z21.array(ContractIdentifierSchema))
|
|
19531
19630
|
}).strict().optional(),
|
|
19532
|
-
customers:
|
|
19533
|
-
dropdownToolsDefault:
|
|
19534
|
-
layoutManagerTools:
|
|
19535
|
-
studioTabsMode:
|
|
19536
|
-
historyWatermark:
|
|
19537
|
-
svgUrl:
|
|
19538
|
-
coverage:
|
|
19539
|
-
maxLongEdgeRatio:
|
|
19540
|
-
sizing:
|
|
19631
|
+
customers: z21.object({
|
|
19632
|
+
dropdownToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
19633
|
+
layoutManagerTools: z21.array(WorkbenchCustomerToolSchema).optional(),
|
|
19634
|
+
studioTabsMode: z21.enum(["dropdown", "tabs"]).optional(),
|
|
19635
|
+
historyWatermark: z21.object({
|
|
19636
|
+
svgUrl: z21.string().optional(),
|
|
19637
|
+
coverage: z21.array(z21.enum(["list", "detail", "download"])).optional(),
|
|
19638
|
+
maxLongEdgeRatio: z21.number().positive().optional(),
|
|
19639
|
+
sizing: z21.object({
|
|
19541
19640
|
mode: ContractIdentifierSchema,
|
|
19542
|
-
heightRatio:
|
|
19543
|
-
minHeightPx:
|
|
19544
|
-
maxHeightPx:
|
|
19641
|
+
heightRatio: z21.number().positive().optional(),
|
|
19642
|
+
minHeightPx: z21.number().nonnegative().optional(),
|
|
19643
|
+
maxHeightPx: z21.number().nonnegative().optional()
|
|
19545
19644
|
}).strict().optional(),
|
|
19546
|
-
enhance:
|
|
19547
|
-
enabled:
|
|
19548
|
-
backgroundLumaThreshold:
|
|
19549
|
-
stroke:
|
|
19550
|
-
color:
|
|
19551
|
-
opacity:
|
|
19552
|
-
widthRatio:
|
|
19553
|
-
blurRatio:
|
|
19554
|
-
steps:
|
|
19645
|
+
enhance: z21.object({
|
|
19646
|
+
enabled: z21.boolean().optional(),
|
|
19647
|
+
backgroundLumaThreshold: z21.number().min(0).max(1).optional(),
|
|
19648
|
+
stroke: z21.object({
|
|
19649
|
+
color: z21.string().optional(),
|
|
19650
|
+
opacity: z21.number().min(0).max(1).optional(),
|
|
19651
|
+
widthRatio: z21.number().nonnegative().optional(),
|
|
19652
|
+
blurRatio: z21.number().nonnegative().optional(),
|
|
19653
|
+
steps: z21.number().int().positive().optional()
|
|
19555
19654
|
}).strict().optional()
|
|
19556
19655
|
}).strict().optional()
|
|
19557
19656
|
}).strict().optional(),
|
|
19558
|
-
layoutManagerEnabled:
|
|
19559
|
-
existingToolsDefault:
|
|
19560
|
-
historyColumnsDefault:
|
|
19561
|
-
studioOverrides:
|
|
19657
|
+
layoutManagerEnabled: z21.boolean().optional(),
|
|
19658
|
+
existingToolsDefault: z21.array(ContractIdentifierSchema).optional(),
|
|
19659
|
+
historyColumnsDefault: z21.number().int().min(1).max(6).optional(),
|
|
19660
|
+
studioOverrides: z21.array(WorkbenchStudioOverrideSchema).optional()
|
|
19562
19661
|
}).strict().optional()
|
|
19563
19662
|
}).strict().superRefine(({ pages, pageGroups }, context) => {
|
|
19564
19663
|
const pageIds = pages.map(({ definition }) => definition.pageId);
|
|
@@ -19590,41 +19689,41 @@ var TenantWorkbenchConfigSchema = z20.object({
|
|
|
19590
19689
|
});
|
|
19591
19690
|
});
|
|
19592
19691
|
});
|
|
19593
|
-
var LoginPageSchema =
|
|
19594
|
-
background:
|
|
19595
|
-
imageUrl:
|
|
19596
|
-
gradient:
|
|
19692
|
+
var LoginPageSchema = z21.object({
|
|
19693
|
+
background: z21.object({
|
|
19694
|
+
imageUrl: z21.string().optional(),
|
|
19695
|
+
gradient: z21.string().optional()
|
|
19597
19696
|
}).strict().optional(),
|
|
19598
|
-
logo:
|
|
19599
|
-
url:
|
|
19600
|
-
lightUrl:
|
|
19601
|
-
darkUrl:
|
|
19602
|
-
position:
|
|
19603
|
-
scale:
|
|
19697
|
+
logo: z21.object({
|
|
19698
|
+
url: z21.string().optional(),
|
|
19699
|
+
lightUrl: z21.string().optional(),
|
|
19700
|
+
darkUrl: z21.string().optional(),
|
|
19701
|
+
position: z21.enum(["top", "middle", "bottom"]).optional(),
|
|
19702
|
+
scale: z21.number().positive().optional()
|
|
19604
19703
|
}).strict().optional(),
|
|
19605
|
-
customCss:
|
|
19704
|
+
customCss: z21.string().optional()
|
|
19606
19705
|
}).strict();
|
|
19607
19706
|
var LandingPageHeadbarConfigShape = {
|
|
19608
|
-
headbarMode:
|
|
19707
|
+
headbarMode: z21.enum(["shared", "hidden"]).optional()
|
|
19609
19708
|
};
|
|
19610
|
-
var LandingPageDefaultConfigSchema =
|
|
19611
|
-
mode:
|
|
19709
|
+
var LandingPageDefaultConfigSchema = z21.object({
|
|
19710
|
+
mode: z21.literal("default"),
|
|
19612
19711
|
...LandingPageHeadbarConfigShape
|
|
19613
19712
|
}).strict();
|
|
19614
|
-
var LandingPageMarkdownConfigSchema =
|
|
19615
|
-
mode:
|
|
19616
|
-
content:
|
|
19713
|
+
var LandingPageMarkdownConfigSchema = z21.object({
|
|
19714
|
+
mode: z21.literal("markdown"),
|
|
19715
|
+
content: z21.string(),
|
|
19617
19716
|
...LandingPageHeadbarConfigShape
|
|
19618
19717
|
}).strict();
|
|
19619
|
-
var LandingPageHtmlConfigSchema =
|
|
19620
|
-
mode:
|
|
19621
|
-
content:
|
|
19718
|
+
var LandingPageHtmlConfigSchema = z21.object({
|
|
19719
|
+
mode: z21.literal("html"),
|
|
19720
|
+
content: z21.string(),
|
|
19622
19721
|
...LandingPageHeadbarConfigShape
|
|
19623
19722
|
}).strict();
|
|
19624
|
-
var LandingPageIframeConfigSchema =
|
|
19625
|
-
mode:
|
|
19723
|
+
var LandingPageIframeConfigSchema = z21.object({
|
|
19724
|
+
mode: z21.literal("iframe"),
|
|
19626
19725
|
...LandingPageHeadbarConfigShape,
|
|
19627
|
-
url:
|
|
19726
|
+
url: z21.string().refine((value) => {
|
|
19628
19727
|
if (/^\/(?!\/)/.test(value)) {
|
|
19629
19728
|
return !value.includes("\\");
|
|
19630
19729
|
}
|
|
@@ -19636,13 +19735,13 @@ var LandingPageIframeConfigSchema = z20.object({
|
|
|
19636
19735
|
}
|
|
19637
19736
|
}, "Landing page iframe URL must use a root-relative path or HTTP(S) without embedded credentials.")
|
|
19638
19737
|
}).strict();
|
|
19639
|
-
var TenantLandingPageConfigSchema =
|
|
19738
|
+
var TenantLandingPageConfigSchema = z21.discriminatedUnion("mode", [
|
|
19640
19739
|
LandingPageDefaultConfigSchema,
|
|
19641
19740
|
LandingPageMarkdownConfigSchema,
|
|
19642
19741
|
LandingPageHtmlConfigSchema,
|
|
19643
19742
|
LandingPageIframeConfigSchema
|
|
19644
19743
|
]);
|
|
19645
|
-
var ListFooterPageSizeOptionsSchema =
|
|
19744
|
+
var ListFooterPageSizeOptionsSchema = z21.array(z21.number().int().positive().max(1e3)).min(1).max(10).superRefine((options, context) => {
|
|
19646
19745
|
const seen = /* @__PURE__ */ new Set();
|
|
19647
19746
|
options.forEach((option, index) => {
|
|
19648
19747
|
if (seen.has(option)) {
|
|
@@ -19655,578 +19754,578 @@ var ListFooterPageSizeOptionsSchema = z20.array(z20.number().int().positive().ma
|
|
|
19655
19754
|
seen.add(option);
|
|
19656
19755
|
});
|
|
19657
19756
|
});
|
|
19658
|
-
var TenantListFooterConfigSchema =
|
|
19659
|
-
showTotal:
|
|
19660
|
-
showPageSize:
|
|
19757
|
+
var TenantListFooterConfigSchema = z21.object({
|
|
19758
|
+
showTotal: z21.boolean().optional(),
|
|
19759
|
+
showPageSize: z21.boolean().optional(),
|
|
19661
19760
|
pageSizeOptions: ListFooterPageSizeOptionsSchema.optional(),
|
|
19662
|
-
paginationMode:
|
|
19663
|
-
alignment:
|
|
19664
|
-
density:
|
|
19665
|
-
}).strict();
|
|
19666
|
-
var TenantApplicationConfigSchema =
|
|
19667
|
-
theme:
|
|
19668
|
-
id:
|
|
19669
|
-
name:
|
|
19670
|
-
title:
|
|
19761
|
+
paginationMode: z21.enum(["auto", "pages", "compact"]).optional(),
|
|
19762
|
+
alignment: z21.enum(["start", "end", "space-between"]).optional(),
|
|
19763
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional()
|
|
19764
|
+
}).strict();
|
|
19765
|
+
var TenantApplicationConfigSchema = z21.object({
|
|
19766
|
+
theme: z21.object({
|
|
19767
|
+
id: z21.string().optional(),
|
|
19768
|
+
name: z21.string().optional(),
|
|
19769
|
+
title: z21.string().optional(),
|
|
19671
19770
|
favicon: AssetVariantsSchema.optional(),
|
|
19672
19771
|
logo: AssetVariantsSchema.optional(),
|
|
19673
|
-
pwaIcon:
|
|
19674
|
-
form:
|
|
19675
|
-
toast:
|
|
19676
|
-
position:
|
|
19772
|
+
pwaIcon: z21.string().optional(),
|
|
19773
|
+
form: z21.object({ variant: z21.enum(["bento", "ghost"]) }).strict().optional(),
|
|
19774
|
+
toast: z21.object({
|
|
19775
|
+
position: z21.enum(["top-right", "top-left", "bottom-right", "bottom-left", "top-center", "bottom-center"])
|
|
19677
19776
|
}).strict().optional(),
|
|
19678
|
-
icons:
|
|
19777
|
+
icons: z21.object({
|
|
19679
19778
|
error: CustomIconSchema.optional(),
|
|
19680
19779
|
empty: CustomIconSchema.optional()
|
|
19681
19780
|
}).strict().optional(),
|
|
19682
|
-
views:
|
|
19683
|
-
form:
|
|
19684
|
-
toast:
|
|
19685
|
-
afterCreate:
|
|
19686
|
-
afterDelete:
|
|
19781
|
+
views: z21.object({
|
|
19782
|
+
form: z21.object({
|
|
19783
|
+
toast: z21.object({
|
|
19784
|
+
afterCreate: z21.boolean(),
|
|
19785
|
+
afterDelete: z21.boolean()
|
|
19687
19786
|
}).strict(),
|
|
19688
|
-
progress:
|
|
19689
|
-
onlyResult:
|
|
19690
|
-
tabular:
|
|
19787
|
+
progress: z21.enum(["estimate", "infinite"]),
|
|
19788
|
+
onlyResult: z21.boolean(),
|
|
19789
|
+
tabular: z21.object({ theme: z21.enum(["default", "tentiary", "primary"]) }).strict()
|
|
19691
19790
|
}).strict()
|
|
19692
19791
|
}).strict().optional(),
|
|
19693
19792
|
loginPage: LoginPageSchema.optional(),
|
|
19694
|
-
extraLanguageURL:
|
|
19695
|
-
hideSpaceHeader:
|
|
19696
|
-
showSidebarTeamSelector:
|
|
19697
|
-
showWorkbenchSidebar:
|
|
19698
|
-
workbenchViewTheme:
|
|
19699
|
-
defaults:
|
|
19700
|
-
showFormInImageDetail:
|
|
19701
|
-
darkMode:
|
|
19702
|
-
language:
|
|
19703
|
-
showDarkModeToggle:
|
|
19704
|
-
showLanguageToggle:
|
|
19793
|
+
extraLanguageURL: z21.record(z21.string(), z21.string()).optional(),
|
|
19794
|
+
hideSpaceHeader: z21.boolean().optional(),
|
|
19795
|
+
showSidebarTeamSelector: z21.boolean().optional(),
|
|
19796
|
+
showWorkbenchSidebar: z21.boolean().optional(),
|
|
19797
|
+
workbenchViewTheme: z21.enum(["default", "bsd-blue"]).optional(),
|
|
19798
|
+
defaults: z21.object({
|
|
19799
|
+
showFormInImageDetail: z21.boolean().optional(),
|
|
19800
|
+
darkMode: z21.enum(["light", "dark", "auto"]).optional(),
|
|
19801
|
+
language: z21.enum(["en-US", "zh-CN", "ja-JP"]).optional(),
|
|
19802
|
+
showDarkModeToggle: z21.boolean().optional(),
|
|
19803
|
+
showLanguageToggle: z21.boolean().optional()
|
|
19705
19804
|
}).strict().optional(),
|
|
19706
|
-
modules:
|
|
19707
|
-
monkeysSpaceSidebar:
|
|
19708
|
-
monkeysSpaceHeadbar:
|
|
19709
|
-
settingsSidebar:
|
|
19805
|
+
modules: z21.object({
|
|
19806
|
+
monkeysSpaceSidebar: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]).optional(),
|
|
19807
|
+
monkeysSpaceHeadbar: z21.union([z21.literal("*"), z21.array(TenantHeadbarModuleItemSchema)]).optional(),
|
|
19808
|
+
settingsSidebar: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]).optional()
|
|
19710
19809
|
}).strict().optional(),
|
|
19711
19810
|
headbar: ThemeHeadbarSchema.optional(),
|
|
19712
|
-
kernelLayout:
|
|
19713
|
-
navigationMode:
|
|
19714
|
-
allowNavigationModeSwitch:
|
|
19811
|
+
kernelLayout: z21.object({
|
|
19812
|
+
navigationMode: z21.enum(["sidebar", "topbar"]).optional(),
|
|
19813
|
+
allowNavigationModeSwitch: z21.boolean().optional(),
|
|
19715
19814
|
headbar: KernelHeadbarSchema.optional()
|
|
19716
19815
|
}).strict().optional(),
|
|
19717
|
-
paginationPosition:
|
|
19816
|
+
paginationPosition: z21.enum(["left", "right"]).optional(),
|
|
19718
19817
|
listFooter: TenantListFooterConfigSchema.optional(),
|
|
19719
|
-
ugcViewIconOnlyMode:
|
|
19720
|
-
workflowPreviewExecutionGrid:
|
|
19721
|
-
selectionModeDisplayType:
|
|
19722
|
-
clickBehavior:
|
|
19723
|
-
showErrorFilter:
|
|
19724
|
-
displayType:
|
|
19725
|
-
showDetailButton:
|
|
19726
|
-
aspectRatio:
|
|
19818
|
+
ugcViewIconOnlyMode: z21.boolean().optional(),
|
|
19819
|
+
workflowPreviewExecutionGrid: z21.object({
|
|
19820
|
+
selectionModeDisplayType: z21.enum(["operation-button", "dropdown-menu"]).optional(),
|
|
19821
|
+
clickBehavior: z21.enum(["preview", "select", "fill-form", "none"]).optional(),
|
|
19822
|
+
showErrorFilter: z21.boolean().optional(),
|
|
19823
|
+
displayType: z21.enum(["grid", "masonry"]).optional(),
|
|
19824
|
+
showDetailButton: z21.boolean().optional(),
|
|
19825
|
+
aspectRatio: z21.enum(["1:1", "4:3", "3:4", "16:9", "9:16"]).optional()
|
|
19727
19826
|
}).strict().optional(),
|
|
19728
|
-
workbenchSidebarDefaultOpen:
|
|
19729
|
-
workbenchSidebarMoreAction:
|
|
19730
|
-
workbenchSidebarApart:
|
|
19731
|
-
workbenchSidebarToggleGroupDetail:
|
|
19732
|
-
workbenchSidebarViewType:
|
|
19733
|
-
workbenchSidebarFormViewEmbed:
|
|
19734
|
-
workbenchSidebarModernMode:
|
|
19735
|
-
ugc:
|
|
19736
|
-
onItemClick:
|
|
19737
|
-
subtitle:
|
|
19827
|
+
workbenchSidebarDefaultOpen: z21.boolean().optional(),
|
|
19828
|
+
workbenchSidebarMoreAction: z21.boolean().optional(),
|
|
19829
|
+
workbenchSidebarApart: z21.boolean().optional(),
|
|
19830
|
+
workbenchSidebarToggleGroupDetail: z21.boolean().optional(),
|
|
19831
|
+
workbenchSidebarViewType: z21.boolean().optional(),
|
|
19832
|
+
workbenchSidebarFormViewEmbed: z21.boolean().optional(),
|
|
19833
|
+
workbenchSidebarModernMode: z21.boolean().optional(),
|
|
19834
|
+
ugc: z21.object({
|
|
19835
|
+
onItemClick: z21.boolean(),
|
|
19836
|
+
subtitle: z21.boolean().optional()
|
|
19738
19837
|
}).strict().optional(),
|
|
19739
|
-
uniImagePreview:
|
|
19740
|
-
imagePreviewStyle:
|
|
19741
|
-
teamAsUser:
|
|
19742
|
-
themeMode:
|
|
19743
|
-
density:
|
|
19744
|
-
statusStates:
|
|
19745
|
-
loading:
|
|
19746
|
-
empty:
|
|
19747
|
-
error:
|
|
19748
|
-
permission:
|
|
19749
|
-
density:
|
|
19838
|
+
uniImagePreview: z21.boolean().optional(),
|
|
19839
|
+
imagePreviewStyle: z21.union([z21.literal(false), z21.enum(["simple", "normal", "uni"])]).optional(),
|
|
19840
|
+
teamAsUser: z21.boolean().optional(),
|
|
19841
|
+
themeMode: z21.enum(["shadow", "border"]).optional(),
|
|
19842
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional(),
|
|
19843
|
+
statusStates: z21.object({
|
|
19844
|
+
loading: z21.object({ variant: z21.enum(["spinner", "skeleton"]).optional() }).strict().optional(),
|
|
19845
|
+
empty: z21.object({ variant: z21.enum(["default", "compact"]).optional() }).strict().optional(),
|
|
19846
|
+
error: z21.object({ showRetry: z21.boolean().optional() }).strict().optional(),
|
|
19847
|
+
permission: z21.object({ showRequestAccess: z21.boolean().optional() }).strict().optional(),
|
|
19848
|
+
density: z21.enum(["compact", "default", "comfortable"]).optional()
|
|
19750
19849
|
}).strict().optional(),
|
|
19751
|
-
pageZoom:
|
|
19752
|
-
miniMode:
|
|
19753
|
-
workflow:
|
|
19754
|
-
historyResult:
|
|
19755
|
-
uploader:
|
|
19756
|
-
orientation:
|
|
19757
|
-
pasteButton:
|
|
19758
|
-
statusText:
|
|
19850
|
+
pageZoom: z21.number().positive().optional(),
|
|
19851
|
+
miniMode: z21.object({ showPreviewViewExecutionResultGrid: z21.boolean() }).strict().optional(),
|
|
19852
|
+
workflow: z21.object({ allowConcurrentRuns: z21.boolean() }).strict().optional(),
|
|
19853
|
+
historyResult: z21.object({ display: z21.boolean() }).strict().optional(),
|
|
19854
|
+
uploader: z21.object({
|
|
19855
|
+
orientation: z21.enum(["vertical", "horizontal"]),
|
|
19856
|
+
pasteButton: z21.boolean(),
|
|
19857
|
+
statusText: z21.boolean()
|
|
19759
19858
|
}).strict().optional(),
|
|
19760
|
-
designProjects:
|
|
19761
|
-
oneOnOne:
|
|
19762
|
-
newTabOpenBoard:
|
|
19763
|
-
defaultShowGrid:
|
|
19764
|
-
createDefaultFrame:
|
|
19765
|
-
showPageMenu:
|
|
19766
|
-
showMainMenu:
|
|
19767
|
-
showStylePanel:
|
|
19768
|
-
showToolbar:
|
|
19769
|
-
toolbarPosition:
|
|
19770
|
-
showContextMenu:
|
|
19771
|
-
showActionsMenu:
|
|
19772
|
-
showPageAndLayerSidebar:
|
|
19773
|
-
showBoardOperationSidebar:
|
|
19774
|
-
showMiniToolsToolbar:
|
|
19775
|
-
showRightSidebar:
|
|
19776
|
-
showRealtimeDrawing:
|
|
19777
|
-
showWorkflow:
|
|
19778
|
-
showVersionManager:
|
|
19779
|
-
showAgent:
|
|
19780
|
-
AgentTools:
|
|
19859
|
+
designProjects: z21.object({
|
|
19860
|
+
oneOnOne: z21.boolean(),
|
|
19861
|
+
newTabOpenBoard: z21.boolean(),
|
|
19862
|
+
defaultShowGrid: z21.boolean().optional(),
|
|
19863
|
+
createDefaultFrame: z21.boolean(),
|
|
19864
|
+
showPageMenu: z21.boolean(),
|
|
19865
|
+
showMainMenu: z21.boolean(),
|
|
19866
|
+
showStylePanel: z21.boolean(),
|
|
19867
|
+
showToolbar: z21.boolean(),
|
|
19868
|
+
toolbarPosition: z21.enum(["bottom", "left"]).optional(),
|
|
19869
|
+
showContextMenu: z21.boolean(),
|
|
19870
|
+
showActionsMenu: z21.boolean(),
|
|
19871
|
+
showPageAndLayerSidebar: z21.boolean().optional(),
|
|
19872
|
+
showBoardOperationSidebar: z21.boolean().optional(),
|
|
19873
|
+
showMiniToolsToolbar: z21.boolean().optional(),
|
|
19874
|
+
showRightSidebar: z21.boolean().optional(),
|
|
19875
|
+
showRealtimeDrawing: z21.boolean().optional(),
|
|
19876
|
+
showWorkflow: z21.boolean().optional(),
|
|
19877
|
+
showVersionManager: z21.boolean().optional(),
|
|
19878
|
+
showAgent: z21.boolean().optional(),
|
|
19879
|
+
AgentTools: z21.array(ContractIdentifierSchema).optional()
|
|
19781
19880
|
}).strict().optional(),
|
|
19782
19881
|
workbench: TenantWorkbenchConfigSchema.optional(),
|
|
19783
|
-
visionProWorkflows:
|
|
19784
|
-
initTeam:
|
|
19785
|
-
imageThumbnail:
|
|
19786
|
-
pages:
|
|
19787
|
-
allowPageKeys:
|
|
19882
|
+
visionProWorkflows: z21.array(ContractIdentifierSchema).optional(),
|
|
19883
|
+
initTeam: z21.boolean().optional(),
|
|
19884
|
+
imageThumbnail: z21.boolean().optional(),
|
|
19885
|
+
pages: z21.object({
|
|
19886
|
+
allowPageKeys: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]),
|
|
19788
19887
|
defaultPageKey: ContractIdentifierSchema.optional(),
|
|
19789
|
-
homeEntryEnabled:
|
|
19888
|
+
homeEntryEnabled: z21.boolean().optional()
|
|
19790
19889
|
}).strict().optional(),
|
|
19791
19890
|
agent: TenantAgentThemeConfigSchema.optional()
|
|
19792
19891
|
}).strict(),
|
|
19793
19892
|
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
19794
|
-
auth:
|
|
19795
|
-
enabled:
|
|
19796
|
-
oidc:
|
|
19797
|
-
buttonText:
|
|
19798
|
-
autoSignin:
|
|
19893
|
+
auth: z21.object({
|
|
19894
|
+
enabled: z21.array(ContractIdentifierSchema).default([]),
|
|
19895
|
+
oidc: z21.object({
|
|
19896
|
+
buttonText: z21.string().optional(),
|
|
19897
|
+
autoSignin: z21.boolean().optional()
|
|
19799
19898
|
}).strict().optional(),
|
|
19800
|
-
password:
|
|
19801
|
-
registrationEnabled:
|
|
19802
|
-
disableAutoRegister:
|
|
19899
|
+
password: z21.object({
|
|
19900
|
+
registrationEnabled: z21.boolean().optional(),
|
|
19901
|
+
disableAutoRegister: z21.boolean().optional()
|
|
19803
19902
|
}).strict().optional(),
|
|
19804
|
-
registrationApproval:
|
|
19805
|
-
enabled:
|
|
19903
|
+
registrationApproval: z21.object({
|
|
19904
|
+
enabled: z21.boolean().optional()
|
|
19806
19905
|
}).strict().optional(),
|
|
19807
|
-
hideAuthToast:
|
|
19808
|
-
autoReload:
|
|
19809
|
-
defaultOtherTeam:
|
|
19906
|
+
hideAuthToast: z21.boolean().optional(),
|
|
19907
|
+
autoReload: z21.boolean().optional(),
|
|
19908
|
+
defaultOtherTeam: z21.boolean().optional()
|
|
19810
19909
|
}).strict(),
|
|
19811
|
-
endpoints:
|
|
19812
|
-
module:
|
|
19813
|
-
behavior:
|
|
19814
|
-
clearWorkflowFormStorageAfterUpdate:
|
|
19815
|
-
autoApproveOAuth:
|
|
19816
|
-
rememberWorkflowModelSelection:
|
|
19910
|
+
endpoints: z21.record(ContractIdentifierSchema, z21.string()),
|
|
19911
|
+
module: z21.union([z21.literal("*"), z21.array(ContractIdentifierSchema)]),
|
|
19912
|
+
behavior: z21.object({
|
|
19913
|
+
clearWorkflowFormStorageAfterUpdate: z21.boolean().optional(),
|
|
19914
|
+
autoApproveOAuth: z21.boolean().optional(),
|
|
19915
|
+
rememberWorkflowModelSelection: z21.boolean().optional()
|
|
19817
19916
|
}).strict(),
|
|
19818
|
-
dataManagement:
|
|
19819
|
-
favoriteOntologyId:
|
|
19820
|
-
pairedOntologyId:
|
|
19821
|
-
galleryOntologyIds:
|
|
19822
|
-
galleryOntologyId:
|
|
19823
|
-
dataBrowserDefaultOntologyId:
|
|
19824
|
-
workflowResultOntologyId:
|
|
19825
|
-
homeAdvertisement:
|
|
19917
|
+
dataManagement: z21.object({
|
|
19918
|
+
favoriteOntologyId: z21.string().optional(),
|
|
19919
|
+
pairedOntologyId: z21.string().optional(),
|
|
19920
|
+
galleryOntologyIds: z21.array(ContractIdentifierSchema).max(20).optional(),
|
|
19921
|
+
galleryOntologyId: z21.string().optional(),
|
|
19922
|
+
dataBrowserDefaultOntologyId: z21.string().optional(),
|
|
19923
|
+
workflowResultOntologyId: z21.string().optional(),
|
|
19924
|
+
homeAdvertisement: z21.object({
|
|
19826
19925
|
ontologyId: ContractIdentifierSchema,
|
|
19827
19926
|
viewId: ContractIdentifierSchema.optional(),
|
|
19828
|
-
viewType:
|
|
19927
|
+
viewType: z21.enum(["filter", "container", "share_link"]).optional(),
|
|
19829
19928
|
teamId: ContractIdentifierSchema.optional(),
|
|
19830
|
-
teamOnly:
|
|
19831
|
-
pageSize:
|
|
19832
|
-
sortBy:
|
|
19833
|
-
sortOrder:
|
|
19834
|
-
fieldMap:
|
|
19835
|
-
columnIds:
|
|
19929
|
+
teamOnly: z21.boolean().optional(),
|
|
19930
|
+
pageSize: z21.number().int().positive().optional(),
|
|
19931
|
+
sortBy: z21.enum(["pin_order", "asset_id", "updated_timestamp", "created_timestamp"]).optional(),
|
|
19932
|
+
sortOrder: z21.enum(["asc", "desc"]).optional(),
|
|
19933
|
+
fieldMap: z21.record(z21.string(), z21.string()).optional(),
|
|
19934
|
+
columnIds: z21.record(z21.string(), z21.string()).optional()
|
|
19836
19935
|
}).strict().optional(),
|
|
19837
|
-
homeShortcutBackground:
|
|
19936
|
+
homeShortcutBackground: z21.object({
|
|
19838
19937
|
ontologyId: ContractIdentifierSchema,
|
|
19839
19938
|
viewId: ContractIdentifierSchema.optional(),
|
|
19840
|
-
viewType:
|
|
19939
|
+
viewType: z21.enum(["filter", "container", "share_link"]).optional(),
|
|
19841
19940
|
teamId: ContractIdentifierSchema.optional(),
|
|
19842
|
-
teamOnly:
|
|
19843
|
-
pageSize:
|
|
19844
|
-
sortBy:
|
|
19845
|
-
sortOrder:
|
|
19846
|
-
fieldMap:
|
|
19847
|
-
columnIds:
|
|
19941
|
+
teamOnly: z21.boolean().optional(),
|
|
19942
|
+
pageSize: z21.number().int().positive().optional(),
|
|
19943
|
+
sortBy: z21.enum(["pin_order", "asset_id", "updated_timestamp"]).optional(),
|
|
19944
|
+
sortOrder: z21.enum(["asc", "desc"]).optional(),
|
|
19945
|
+
fieldMap: z21.record(z21.string(), z21.string()).optional(),
|
|
19946
|
+
columnIds: z21.record(z21.string(), z21.string()).optional()
|
|
19848
19947
|
}).strict().optional(),
|
|
19849
|
-
homeTrendAssistant:
|
|
19948
|
+
homeTrendAssistant: z21.object({
|
|
19850
19949
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
19851
19950
|
viewId: ContractIdentifierSchema.optional(),
|
|
19852
19951
|
viewInstanceId: ContractIdentifierSchema.optional(),
|
|
19853
|
-
viewName:
|
|
19952
|
+
viewName: z21.string().optional(),
|
|
19854
19953
|
teamId: ContractIdentifierSchema.optional(),
|
|
19855
19954
|
designOptionsWorkflowId: ContractIdentifierSchema.optional(),
|
|
19856
|
-
tep:
|
|
19857
|
-
baseUrl:
|
|
19858
|
-
timeoutMs:
|
|
19955
|
+
tep: z21.object({
|
|
19956
|
+
baseUrl: z21.string().optional(),
|
|
19957
|
+
timeoutMs: z21.number().int().positive().optional()
|
|
19859
19958
|
}).strict().optional(),
|
|
19860
|
-
runtime:
|
|
19959
|
+
runtime: z21.object({
|
|
19861
19960
|
appId: ContractIdentifierSchema,
|
|
19862
|
-
tepBaseUrlConfigured:
|
|
19863
|
-
tepAuthorizationConfigured:
|
|
19864
|
-
tepCookieConfigured:
|
|
19961
|
+
tepBaseUrlConfigured: z21.boolean(),
|
|
19962
|
+
tepAuthorizationConfigured: z21.boolean(),
|
|
19963
|
+
tepCookieConfigured: z21.boolean()
|
|
19865
19964
|
}).strict().optional()
|
|
19866
19965
|
}).strict().optional(),
|
|
19867
|
-
staticTrendReport:
|
|
19966
|
+
staticTrendReport: z21.object({
|
|
19868
19967
|
ontologyId: ContractIdentifierSchema,
|
|
19869
19968
|
viewId: ContractIdentifierSchema.optional(),
|
|
19870
19969
|
teamId: ContractIdentifierSchema.optional()
|
|
19871
19970
|
}).strict().optional(),
|
|
19872
19971
|
trendRadar: TenantTrendRadarSourcesSchema.optional(),
|
|
19873
|
-
sharing:
|
|
19874
|
-
silentViewLinks:
|
|
19875
|
-
enabled:
|
|
19876
|
-
placement:
|
|
19877
|
-
mode:
|
|
19972
|
+
sharing: z21.object({
|
|
19973
|
+
silentViewLinks: z21.object({
|
|
19974
|
+
enabled: z21.boolean().optional(),
|
|
19975
|
+
placement: z21.object({
|
|
19976
|
+
mode: z21.enum(["sourceOntology", "ontology"]).optional(),
|
|
19878
19977
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
19879
19978
|
parentId: ContractIdentifierSchema.optional(),
|
|
19880
19979
|
navId: ContractIdentifierSchema.optional()
|
|
19881
19980
|
}).strict().optional()
|
|
19882
19981
|
}).strict().optional(),
|
|
19883
|
-
shareAccess:
|
|
19884
|
-
publicLinksEnabled:
|
|
19885
|
-
passwordGateEnabled:
|
|
19886
|
-
passwordAccessTtlSeconds:
|
|
19887
|
-
defaultViewTreeDelivery:
|
|
19982
|
+
shareAccess: z21.object({
|
|
19983
|
+
publicLinksEnabled: z21.boolean().optional(),
|
|
19984
|
+
passwordGateEnabled: z21.boolean().optional(),
|
|
19985
|
+
passwordAccessTtlSeconds: z21.number().int().positive().optional(),
|
|
19986
|
+
defaultViewTreeDelivery: z21.enum(["manual", "auto"]).optional()
|
|
19888
19987
|
}).strict().optional(),
|
|
19889
|
-
shareDialog:
|
|
19890
|
-
uiVersion:
|
|
19891
|
-
audience:
|
|
19892
|
-
enabled:
|
|
19893
|
-
allowed:
|
|
19894
|
-
default:
|
|
19988
|
+
shareDialog: z21.object({
|
|
19989
|
+
uiVersion: z21.enum(["legacy", "simplified"]).optional(),
|
|
19990
|
+
audience: z21.object({
|
|
19991
|
+
enabled: z21.boolean().optional(),
|
|
19992
|
+
allowed: z21.array(z21.enum(["user", "team", "public"])).optional(),
|
|
19993
|
+
default: z21.enum(["user", "team", "public"]).optional()
|
|
19895
19994
|
}).strict().optional(),
|
|
19896
|
-
accessLevel:
|
|
19897
|
-
enabled:
|
|
19898
|
-
allowed:
|
|
19899
|
-
default:
|
|
19995
|
+
accessLevel: z21.object({
|
|
19996
|
+
enabled: z21.boolean().optional(),
|
|
19997
|
+
allowed: z21.array(z21.enum(["read", "write"])).optional(),
|
|
19998
|
+
default: z21.enum(["read", "write"]).optional()
|
|
19900
19999
|
}).strict().optional(),
|
|
19901
|
-
viewTreeDelivery:
|
|
19902
|
-
enabled:
|
|
19903
|
-
allowed:
|
|
19904
|
-
default:
|
|
20000
|
+
viewTreeDelivery: z21.object({
|
|
20001
|
+
enabled: z21.boolean().optional(),
|
|
20002
|
+
allowed: z21.array(z21.enum(["manual", "auto"])).optional(),
|
|
20003
|
+
default: z21.enum(["manual", "auto"]).optional()
|
|
19905
20004
|
}).strict().optional()
|
|
19906
20005
|
}).strict().optional(),
|
|
19907
|
-
personalNotifications:
|
|
20006
|
+
personalNotifications: z21.object({ supported: z21.boolean() }).strict().optional()
|
|
19908
20007
|
}).strict().optional()
|
|
19909
20008
|
}).strict().optional(),
|
|
19910
|
-
kernelRuntime:
|
|
19911
|
-
integrations:
|
|
19912
|
-
harbor:
|
|
19913
|
-
endpoint:
|
|
19914
|
-
projectScopes:
|
|
19915
|
-
authMode:
|
|
19916
|
-
principal:
|
|
19917
|
-
autoSync:
|
|
19918
|
-
proxyUrl:
|
|
20009
|
+
kernelRuntime: z21.object({
|
|
20010
|
+
integrations: z21.object({
|
|
20011
|
+
harbor: z21.object({
|
|
20012
|
+
endpoint: z21.string().optional(),
|
|
20013
|
+
projectScopes: z21.array(z21.string()).optional(),
|
|
20014
|
+
authMode: z21.string().optional(),
|
|
20015
|
+
principal: z21.string().optional(),
|
|
20016
|
+
autoSync: z21.boolean().optional(),
|
|
20017
|
+
proxyUrl: z21.string().optional()
|
|
19919
20018
|
}).strict().optional(),
|
|
19920
|
-
gitlab:
|
|
19921
|
-
baseUrl:
|
|
19922
|
-
groupScopes:
|
|
19923
|
-
tokenMode:
|
|
19924
|
-
deployProjectPath:
|
|
19925
|
-
deploymentReportsEnabled:
|
|
19926
|
-
proxyUrl:
|
|
20019
|
+
gitlab: z21.object({
|
|
20020
|
+
baseUrl: z21.string().optional(),
|
|
20021
|
+
groupScopes: z21.array(z21.string()).optional(),
|
|
20022
|
+
tokenMode: z21.string().optional(),
|
|
20023
|
+
deployProjectPath: z21.string().optional(),
|
|
20024
|
+
deploymentReportsEnabled: z21.boolean().optional(),
|
|
20025
|
+
proxyUrl: z21.string().optional()
|
|
19927
20026
|
}).strict().optional(),
|
|
19928
|
-
kubernetes:
|
|
19929
|
-
accessMode:
|
|
19930
|
-
clusterAlias:
|
|
19931
|
-
agentProjectPath:
|
|
19932
|
-
agentName:
|
|
19933
|
-
namespaceScopes:
|
|
19934
|
-
rolloutObserverEnabled:
|
|
19935
|
-
proxyUrl:
|
|
20027
|
+
kubernetes: z21.object({
|
|
20028
|
+
accessMode: z21.string().optional(),
|
|
20029
|
+
clusterAlias: z21.string().optional(),
|
|
20030
|
+
agentProjectPath: z21.string().optional(),
|
|
20031
|
+
agentName: z21.string().optional(),
|
|
20032
|
+
namespaceScopes: z21.array(z21.string()).optional(),
|
|
20033
|
+
rolloutObserverEnabled: z21.boolean().optional(),
|
|
20034
|
+
proxyUrl: z21.string().optional()
|
|
19936
20035
|
}).strict().optional()
|
|
19937
20036
|
}).strict().optional()
|
|
19938
20037
|
}).strict().optional(),
|
|
19939
|
-
data:
|
|
19940
|
-
storage:
|
|
19941
|
-
presignMode:
|
|
19942
|
-
presign:
|
|
19943
|
-
expiresInSeconds:
|
|
19944
|
-
buckets:
|
|
19945
|
-
|
|
20038
|
+
data: z21.object({}).strict().optional(),
|
|
20039
|
+
storage: z21.object({
|
|
20040
|
+
presignMode: z21.enum(["frontend", "backend", "both"]).optional(),
|
|
20041
|
+
presign: z21.object({
|
|
20042
|
+
expiresInSeconds: z21.number().int().positive(),
|
|
20043
|
+
buckets: z21.array(
|
|
20044
|
+
z21.object({
|
|
19946
20045
|
id: ContractIdentifierSchema,
|
|
19947
20046
|
provider: ContractIdentifierSchema,
|
|
19948
20047
|
preferredUrlPatternId: ContractIdentifierSchema,
|
|
19949
|
-
urlPatterns:
|
|
19950
|
-
|
|
20048
|
+
urlPatterns: z21.array(
|
|
20049
|
+
z21.object({
|
|
19951
20050
|
id: ContractIdentifierSchema,
|
|
19952
|
-
type:
|
|
19953
|
-
hostname:
|
|
19954
|
-
preferred:
|
|
19955
|
-
bucketSegment:
|
|
20051
|
+
type: z21.enum(["bucket-hostname", "provider-hostname"]),
|
|
20052
|
+
hostname: z21.string().trim().min(1),
|
|
20053
|
+
preferred: z21.boolean().optional(),
|
|
20054
|
+
bucketSegment: z21.string().optional()
|
|
19956
20055
|
}).strict()
|
|
19957
20056
|
)
|
|
19958
20057
|
}).strict()
|
|
19959
20058
|
)
|
|
19960
20059
|
}).strict().optional()
|
|
19961
20060
|
}).strict().optional(),
|
|
19962
|
-
monkeyData:
|
|
20061
|
+
monkeyData: z21.object({ baseUrl: z21.string().optional() }).strict().optional()
|
|
19963
20062
|
}).strict();
|
|
19964
|
-
var DeclarativeRuntimeRolloutCapabilitySchema =
|
|
19965
|
-
contract:
|
|
19966
|
-
schemaVersion:
|
|
19967
|
-
state:
|
|
20063
|
+
var DeclarativeRuntimeRolloutCapabilitySchema = z21.object({
|
|
20064
|
+
contract: z21.literal("DeclarativeRuntimeRolloutCapability"),
|
|
20065
|
+
schemaVersion: z21.literal(1),
|
|
20066
|
+
state: z21.enum(["disabled", "enabled"]),
|
|
19968
20067
|
apiVersion: ContractIdentifierSchema,
|
|
19969
|
-
enabledSurfaces:
|
|
19970
|
-
generation:
|
|
19971
|
-
etag:
|
|
20068
|
+
enabledSurfaces: z21.array(z21.enum(["studio", "kernel"])),
|
|
20069
|
+
generation: z21.number().int().nonnegative(),
|
|
20070
|
+
etag: z21.string().trim().min(1)
|
|
19972
20071
|
}).strict();
|
|
19973
|
-
var TenantProductConfigSchema =
|
|
19974
|
-
contract:
|
|
20072
|
+
var TenantProductConfigSchema = z21.object({
|
|
20073
|
+
contract: z21.literal("TenantProductConfig"),
|
|
19975
20074
|
tenantId: ContractIdentifierSchema,
|
|
19976
20075
|
appId: ContractIdentifierSchema,
|
|
19977
20076
|
environment: ContractIdentifierSchema,
|
|
19978
20077
|
designTokens: TenantDesignTokensConfigSchema,
|
|
19979
|
-
moduleRefs:
|
|
19980
|
-
pageRefs:
|
|
19981
|
-
featureFlags:
|
|
20078
|
+
moduleRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
20079
|
+
pageRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
20080
|
+
featureFlags: z21.record(z21.string(), z21.boolean()).default({}),
|
|
19982
20081
|
authBinding: TenantAuthBindingsSchema,
|
|
19983
20082
|
dataBinding: TenantDataBindingsSchema,
|
|
19984
|
-
sourceMap:
|
|
19985
|
-
warnings:
|
|
20083
|
+
sourceMap: z21.record(z21.string(), ContractIdentifierSchema),
|
|
20084
|
+
warnings: z21.array(z21.string()).default([]),
|
|
19986
20085
|
menus: MenuDefinitionSetSchema.optional(),
|
|
19987
20086
|
applicationConfig: TenantApplicationConfigSchema,
|
|
19988
20087
|
declarativeRuntime: DeclarativeRuntimeRolloutCapabilitySchema.optional()
|
|
19989
20088
|
}).strict();
|
|
19990
|
-
var TenantRuntimeConfigSchema =
|
|
19991
|
-
contract:
|
|
20089
|
+
var TenantRuntimeConfigSchema = z21.object({
|
|
20090
|
+
contract: z21.literal("TenantRuntimeConfig"),
|
|
19992
20091
|
tenantId: ContractIdentifierSchema,
|
|
19993
20092
|
appId: ContractIdentifierSchema,
|
|
19994
20093
|
environment: ContractIdentifierSchema,
|
|
19995
20094
|
designTokens: ResolvedThemeTokensSchema,
|
|
19996
|
-
moduleRefs:
|
|
19997
|
-
pageRefs:
|
|
19998
|
-
featureFlags:
|
|
20095
|
+
moduleRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
20096
|
+
pageRefs: z21.array(ContractIdentifierSchema).default([]),
|
|
20097
|
+
featureFlags: z21.record(z21.string(), z21.boolean()).default({}),
|
|
19999
20098
|
authBinding: TenantAuthBindingsSchema,
|
|
20000
20099
|
dataBinding: TenantDataBindingsSchema,
|
|
20001
|
-
sourceMap:
|
|
20002
|
-
warnings:
|
|
20100
|
+
sourceMap: z21.record(z21.string(), ContractIdentifierSchema),
|
|
20101
|
+
warnings: z21.array(z21.string()).default([]),
|
|
20003
20102
|
menuBundle: MenuRuntimeBundleSchema.optional(),
|
|
20004
20103
|
applicationConfig: TenantApplicationConfigSchema,
|
|
20005
20104
|
declarativeRuntime: DeclarativeRuntimeRolloutCapabilitySchema.optional()
|
|
20006
20105
|
}).strict();
|
|
20007
20106
|
|
|
20008
20107
|
// src/contracts/trend.ts
|
|
20009
|
-
import { z as
|
|
20010
|
-
var RadarDecisionMetricsSchema =
|
|
20011
|
-
currentSales:
|
|
20012
|
-
forecastSales:
|
|
20013
|
-
searchHeat:
|
|
20014
|
-
socialHeat:
|
|
20015
|
-
confidence:
|
|
20016
|
-
}).strict();
|
|
20017
|
-
var TrendSourceSchema =
|
|
20108
|
+
import { z as z22 } from "zod";
|
|
20109
|
+
var RadarDecisionMetricsSchema = z22.object({
|
|
20110
|
+
currentSales: z22.number().finite(),
|
|
20111
|
+
forecastSales: z22.number().finite(),
|
|
20112
|
+
searchHeat: z22.number().finite(),
|
|
20113
|
+
socialHeat: z22.number().finite(),
|
|
20114
|
+
confidence: z22.number().min(0).max(1)
|
|
20115
|
+
}).strict();
|
|
20116
|
+
var TrendSourceSchema = z22.object({
|
|
20018
20117
|
sourceId: ContractIdentifierSchema,
|
|
20019
20118
|
provider: ContractIdentifierSchema,
|
|
20020
|
-
channel:
|
|
20119
|
+
channel: z22.enum(["trend", "ecommerce", "social", "search", "internal"]),
|
|
20021
20120
|
collectedAt: IsoDateTimeSchema,
|
|
20022
|
-
sourceUrl:
|
|
20023
|
-
evidenceRefs:
|
|
20121
|
+
sourceUrl: z22.string().url().optional(),
|
|
20122
|
+
evidenceRefs: z22.array(EntityRefSchema).default([])
|
|
20024
20123
|
}).strict();
|
|
20025
|
-
var TrendIngestRunSchema =
|
|
20026
|
-
contract:
|
|
20124
|
+
var TrendIngestRunSchema = z22.object({
|
|
20125
|
+
contract: z22.literal("TrendIngestRun"),
|
|
20027
20126
|
ingestRunId: ContractIdentifierSchema,
|
|
20028
20127
|
sourceId: ContractIdentifierSchema,
|
|
20029
20128
|
requestId: ContractIdentifierSchema,
|
|
20030
20129
|
idempotencyKey: ContractIdentifierSchema,
|
|
20031
|
-
status:
|
|
20032
|
-
recordCount:
|
|
20033
|
-
errorCount:
|
|
20130
|
+
status: z22.enum(["RUNNING", "SUCCEEDED", "FAILED", "PARTIAL"]),
|
|
20131
|
+
recordCount: z22.number().int().nonnegative(),
|
|
20132
|
+
errorCount: z22.number().int().nonnegative(),
|
|
20034
20133
|
startedAt: IsoDateTimeSchema,
|
|
20035
20134
|
completedAt: IsoDateTimeSchema.optional()
|
|
20036
20135
|
}).strict();
|
|
20037
|
-
var TrendSourceRecordSchema =
|
|
20038
|
-
contract:
|
|
20136
|
+
var TrendSourceRecordSchema = z22.object({
|
|
20137
|
+
contract: z22.literal("TrendSourceRecord"),
|
|
20039
20138
|
sourceRecordId: ContractIdentifierSchema,
|
|
20040
20139
|
source: TrendSourceSchema,
|
|
20041
20140
|
ingestRunRef: EntityRefSchema,
|
|
20042
|
-
recordVersion:
|
|
20141
|
+
recordVersion: z22.number().int().positive(),
|
|
20043
20142
|
contentHash: Sha256Schema,
|
|
20044
20143
|
payload: JsonValueSchema,
|
|
20045
20144
|
idempotencyKey: ContractIdentifierSchema,
|
|
20046
20145
|
collectedAt: IsoDateTimeSchema
|
|
20047
20146
|
}).strict();
|
|
20048
|
-
var HotwordBodySchema =
|
|
20049
|
-
contract:
|
|
20147
|
+
var HotwordBodySchema = z22.object({
|
|
20148
|
+
contract: z22.literal("HotwordBody"),
|
|
20050
20149
|
hotwordId: ContractIdentifierSchema,
|
|
20051
|
-
label:
|
|
20052
|
-
normalizedLabel:
|
|
20053
|
-
categories:
|
|
20054
|
-
sourceRefs:
|
|
20055
|
-
relationRefs:
|
|
20150
|
+
label: z22.string().trim().min(1),
|
|
20151
|
+
normalizedLabel: z22.string().trim().min(1),
|
|
20152
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
20153
|
+
sourceRefs: z22.array(TrendSourceSchema).min(1),
|
|
20154
|
+
relationRefs: z22.array(EntityRefSchema).default([]),
|
|
20056
20155
|
createdAt: IsoDateTimeSchema,
|
|
20057
20156
|
updatedAt: IsoDateTimeSchema
|
|
20058
20157
|
}).strict();
|
|
20059
20158
|
var CommerceBodyFieldsSchema = {
|
|
20060
|
-
displayName:
|
|
20061
|
-
normalizedName:
|
|
20062
|
-
categories:
|
|
20063
|
-
sourceRefs:
|
|
20064
|
-
relationRefs:
|
|
20159
|
+
displayName: z22.string().trim().min(1),
|
|
20160
|
+
normalizedName: z22.string().trim().min(1),
|
|
20161
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
20162
|
+
sourceRefs: z22.array(EntityRefSchema).min(1),
|
|
20163
|
+
relationRefs: z22.array(EntityRefSchema).default([]),
|
|
20065
20164
|
createdAt: IsoDateTimeSchema,
|
|
20066
20165
|
updatedAt: IsoDateTimeSchema
|
|
20067
20166
|
};
|
|
20068
|
-
var BrandBodySchema =
|
|
20069
|
-
contract:
|
|
20167
|
+
var BrandBodySchema = z22.object({
|
|
20168
|
+
contract: z22.literal("BrandBody"),
|
|
20070
20169
|
brandId: ContractIdentifierSchema,
|
|
20071
20170
|
...CommerceBodyFieldsSchema
|
|
20072
20171
|
}).strict();
|
|
20073
|
-
var ProductBodySchema =
|
|
20074
|
-
contract:
|
|
20172
|
+
var ProductBodySchema = z22.object({
|
|
20173
|
+
contract: z22.literal("ProductBody"),
|
|
20075
20174
|
productId: ContractIdentifierSchema,
|
|
20076
20175
|
brandRef: EntityRefSchema.optional(),
|
|
20077
20176
|
...CommerceBodyFieldsSchema
|
|
20078
20177
|
}).strict();
|
|
20079
|
-
var TrendMetricSnapshotSchema =
|
|
20080
|
-
contract:
|
|
20178
|
+
var TrendMetricSnapshotSchema = z22.object({
|
|
20179
|
+
contract: z22.literal("TrendMetricSnapshot"),
|
|
20081
20180
|
snapshotId: ContractIdentifierSchema,
|
|
20082
20181
|
subjectRef: EntityRefSchema,
|
|
20083
20182
|
observedAt: IsoDateTimeSchema,
|
|
20084
|
-
metrics:
|
|
20085
|
-
confidence:
|
|
20086
|
-
evidenceRefs:
|
|
20183
|
+
metrics: z22.record(z22.string(), z22.number().finite()),
|
|
20184
|
+
confidence: z22.number().min(0).max(1),
|
|
20185
|
+
evidenceRefs: z22.array(EntityRefSchema).min(1)
|
|
20087
20186
|
}).strict();
|
|
20088
|
-
var RadarScoreModelBodySchema =
|
|
20089
|
-
contract:
|
|
20187
|
+
var RadarScoreModelBodySchema = z22.object({
|
|
20188
|
+
contract: z22.literal("RadarScoreModelBody"),
|
|
20090
20189
|
modelId: ContractIdentifierSchema,
|
|
20091
|
-
version:
|
|
20190
|
+
version: z22.number().int().positive(),
|
|
20092
20191
|
weights: RadarDecisionMetricsSchema,
|
|
20093
|
-
thresholds:
|
|
20094
|
-
explanationRules:
|
|
20192
|
+
thresholds: z22.record(z22.string(), z22.number().finite()).default({}),
|
|
20193
|
+
explanationRules: z22.record(z22.string(), z22.string().trim().min(1)).default({}),
|
|
20095
20194
|
createdAt: IsoDateTimeSchema
|
|
20096
20195
|
}).strict();
|
|
20097
|
-
var RadarScoreProjectionSchema =
|
|
20098
|
-
contract:
|
|
20196
|
+
var RadarScoreProjectionSchema = z22.object({
|
|
20197
|
+
contract: z22.literal("RadarScoreProjection"),
|
|
20099
20198
|
projectionId: ContractIdentifierSchema,
|
|
20100
20199
|
subjectRef: EntityRefSchema,
|
|
20101
20200
|
modelRef: EntityRefSchema,
|
|
20102
|
-
totalScore:
|
|
20201
|
+
totalScore: z22.number().finite(),
|
|
20103
20202
|
dimensions: RadarDecisionMetricsSchema,
|
|
20104
|
-
evidenceRefs:
|
|
20203
|
+
evidenceRefs: z22.array(EntityRefSchema).min(1),
|
|
20105
20204
|
freshnessAt: IsoDateTimeSchema
|
|
20106
20205
|
}).strict();
|
|
20107
|
-
var RadarPanoramaNodeSchema =
|
|
20206
|
+
var RadarPanoramaNodeSchema = z22.object({
|
|
20108
20207
|
ref: EntityRefSchema,
|
|
20109
|
-
label:
|
|
20110
|
-
categories:
|
|
20111
|
-
score:
|
|
20208
|
+
label: z22.string().trim().min(1),
|
|
20209
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
20210
|
+
score: z22.number().finite().optional(),
|
|
20112
20211
|
freshnessAt: IsoDateTimeSchema.optional()
|
|
20113
20212
|
}).strict();
|
|
20114
|
-
var RadarPanoramaEdgeSchema =
|
|
20213
|
+
var RadarPanoramaEdgeSchema = z22.object({
|
|
20115
20214
|
sourceRef: EntityRefSchema,
|
|
20116
20215
|
targetRef: EntityRefSchema,
|
|
20117
20216
|
relation: ContractIdentifierSchema,
|
|
20118
|
-
evidenceRefs:
|
|
20217
|
+
evidenceRefs: z22.array(EntityRefSchema).default([])
|
|
20119
20218
|
}).strict();
|
|
20120
|
-
var RadarPanoramaSchema =
|
|
20121
|
-
contract:
|
|
20122
|
-
nodes:
|
|
20123
|
-
edges:
|
|
20219
|
+
var RadarPanoramaSchema = z22.object({
|
|
20220
|
+
contract: z22.literal("RadarPanorama"),
|
|
20221
|
+
nodes: z22.array(RadarPanoramaNodeSchema),
|
|
20222
|
+
edges: z22.array(RadarPanoramaEdgeSchema),
|
|
20124
20223
|
generatedAt: IsoDateTimeSchema
|
|
20125
20224
|
}).strict();
|
|
20126
|
-
var BrandGeneticsProfileSchema =
|
|
20127
|
-
contract:
|
|
20225
|
+
var BrandGeneticsProfileSchema = z22.object({
|
|
20226
|
+
contract: z22.literal("BrandGeneticsProfile"),
|
|
20128
20227
|
brandRef: EntityRefSchema,
|
|
20129
|
-
categories:
|
|
20130
|
-
signature:
|
|
20131
|
-
relatedRefs:
|
|
20132
|
-
evidenceRefs:
|
|
20228
|
+
categories: z22.array(ContractIdentifierSchema).default([]),
|
|
20229
|
+
signature: z22.record(ContractIdentifierSchema, z22.number().finite()),
|
|
20230
|
+
relatedRefs: z22.array(EntityRefSchema).default([]),
|
|
20231
|
+
evidenceRefs: z22.array(EntityRefSchema).default([]),
|
|
20133
20232
|
computedAt: IsoDateTimeSchema
|
|
20134
20233
|
}).strict();
|
|
20135
|
-
var RadarOpportunityMatrixPointSchema =
|
|
20234
|
+
var RadarOpportunityMatrixPointSchema = z22.object({
|
|
20136
20235
|
subjectRef: EntityRefSchema,
|
|
20137
|
-
label:
|
|
20138
|
-
x:
|
|
20139
|
-
y:
|
|
20140
|
-
score:
|
|
20141
|
-
evidenceRefs:
|
|
20142
|
-
}).strict();
|
|
20143
|
-
var RadarOpportunityMatrixSchema =
|
|
20144
|
-
contract:
|
|
20145
|
-
xMetric:
|
|
20146
|
-
yMetric:
|
|
20147
|
-
points:
|
|
20236
|
+
label: z22.string().trim().min(1),
|
|
20237
|
+
x: z22.number().finite(),
|
|
20238
|
+
y: z22.number().finite(),
|
|
20239
|
+
score: z22.number().finite(),
|
|
20240
|
+
evidenceRefs: z22.array(EntityRefSchema).default([])
|
|
20241
|
+
}).strict();
|
|
20242
|
+
var RadarOpportunityMatrixSchema = z22.object({
|
|
20243
|
+
contract: z22.literal("RadarOpportunityMatrix"),
|
|
20244
|
+
xMetric: z22.enum(["currentSales", "forecastSales", "searchHeat", "socialHeat", "confidence"]),
|
|
20245
|
+
yMetric: z22.enum(["currentSales", "forecastSales", "searchHeat", "socialHeat", "confidence"]),
|
|
20246
|
+
points: z22.array(RadarOpportunityMatrixPointSchema),
|
|
20148
20247
|
computedAt: IsoDateTimeSchema
|
|
20149
20248
|
}).strict();
|
|
20150
|
-
var RadarQueryBodySchema =
|
|
20151
|
-
contract:
|
|
20249
|
+
var RadarQueryBodySchema = z22.object({
|
|
20250
|
+
contract: z22.literal("RadarQueryBody"),
|
|
20152
20251
|
queryId: ContractIdentifierSchema,
|
|
20153
|
-
filters:
|
|
20154
|
-
sort:
|
|
20252
|
+
filters: z22.record(z22.string(), JsonValueSchema).default({}),
|
|
20253
|
+
sort: z22.object({
|
|
20155
20254
|
field: ContractIdentifierSchema,
|
|
20156
|
-
direction:
|
|
20255
|
+
direction: z22.enum(["asc", "desc"])
|
|
20157
20256
|
}).strict(),
|
|
20158
|
-
pageSize:
|
|
20257
|
+
pageSize: z22.number().int().min(1).max(200),
|
|
20159
20258
|
updatedAt: IsoDateTimeSchema
|
|
20160
20259
|
}).strict();
|
|
20161
|
-
var SavedRadarQuerySchema =
|
|
20162
|
-
contract:
|
|
20260
|
+
var SavedRadarQuerySchema = z22.object({
|
|
20261
|
+
contract: z22.literal("SavedRadarQuery"),
|
|
20163
20262
|
savedQueryId: ContractIdentifierSchema,
|
|
20164
20263
|
teamId: ContractIdentifierSchema,
|
|
20165
20264
|
ownerRef: EntityRefSchema,
|
|
20166
|
-
name:
|
|
20265
|
+
name: z22.string().trim().min(1),
|
|
20167
20266
|
queryRef: EntityRefSchema,
|
|
20168
|
-
expectedVersion:
|
|
20267
|
+
expectedVersion: z22.number().int().nonnegative(),
|
|
20169
20268
|
updatedAt: IsoDateTimeSchema
|
|
20170
20269
|
}).strict();
|
|
20171
|
-
var RadarSelectionSchema =
|
|
20172
|
-
contract:
|
|
20270
|
+
var RadarSelectionSchema = z22.object({
|
|
20271
|
+
contract: z22.literal("RadarSelection"),
|
|
20173
20272
|
selectionId: ContractIdentifierSchema,
|
|
20174
20273
|
teamId: ContractIdentifierSchema,
|
|
20175
20274
|
ownerRef: EntityRefSchema,
|
|
20176
|
-
subjectRefs:
|
|
20177
|
-
status:
|
|
20178
|
-
note:
|
|
20179
|
-
expectedVersion:
|
|
20275
|
+
subjectRefs: z22.array(EntityRefSchema),
|
|
20276
|
+
status: z22.enum(["stashed", "selected", "rejected", "archived"]),
|
|
20277
|
+
note: z22.string().optional(),
|
|
20278
|
+
expectedVersion: z22.number().int().nonnegative(),
|
|
20180
20279
|
updatedAt: IsoDateTimeSchema
|
|
20181
20280
|
}).strict();
|
|
20182
20281
|
var versionedRefFields = {
|
|
20183
20282
|
id: ContractIdentifierSchema,
|
|
20184
|
-
version:
|
|
20283
|
+
version: z22.union([z22.number().int().positive(), z22.string().trim().min(1)]).optional(),
|
|
20185
20284
|
ownerRepo: ContractIdentifierSchema.optional()
|
|
20186
20285
|
};
|
|
20187
|
-
var TrendRadarCollectionAssetRefSchema =
|
|
20188
|
-
kind:
|
|
20286
|
+
var TrendRadarCollectionAssetRefSchema = z22.object({
|
|
20287
|
+
kind: z22.literal("asset"),
|
|
20189
20288
|
...versionedRefFields
|
|
20190
20289
|
}).strict();
|
|
20191
|
-
var TrendRadarCollectionSelectionRefSchema =
|
|
20192
|
-
kind:
|
|
20290
|
+
var TrendRadarCollectionSelectionRefSchema = z22.object({
|
|
20291
|
+
kind: z22.literal("radar-selection"),
|
|
20193
20292
|
...versionedRefFields
|
|
20194
20293
|
}).strict();
|
|
20195
|
-
var TrendRadarCollectionRunRefSchema =
|
|
20196
|
-
kind:
|
|
20294
|
+
var TrendRadarCollectionRunRefSchema = z22.object({
|
|
20295
|
+
kind: z22.literal("radar-analysis-run"),
|
|
20197
20296
|
...versionedRefFields
|
|
20198
20297
|
}).strict();
|
|
20199
|
-
var TrendRadarCollectionSubjectRefSchema =
|
|
20200
|
-
kind:
|
|
20298
|
+
var TrendRadarCollectionSubjectRefSchema = z22.object({
|
|
20299
|
+
kind: z22.literal("hotword"),
|
|
20201
20300
|
...versionedRefFields
|
|
20202
20301
|
}).strict();
|
|
20203
|
-
var TrendRadarCollectionArtifactRefSchema =
|
|
20204
|
-
kind:
|
|
20302
|
+
var TrendRadarCollectionArtifactRefSchema = z22.object({
|
|
20303
|
+
kind: z22.literal("artifact"),
|
|
20205
20304
|
...versionedRefFields
|
|
20206
20305
|
}).strict();
|
|
20207
|
-
var TrendRadarCollectionRecipeEntrySchema =
|
|
20306
|
+
var TrendRadarCollectionRecipeEntrySchema = z22.object({
|
|
20208
20307
|
subjectRef: TrendRadarCollectionSubjectRefSchema,
|
|
20209
|
-
label:
|
|
20308
|
+
label: z22.string().trim().min(1).max(200)
|
|
20210
20309
|
}).strict();
|
|
20211
|
-
var TrendRadarCollectionRecipeSchema =
|
|
20212
|
-
category:
|
|
20213
|
-
design:
|
|
20214
|
-
audience:
|
|
20310
|
+
var TrendRadarCollectionRecipeSchema = z22.object({
|
|
20311
|
+
category: z22.array(TrendRadarCollectionRecipeEntrySchema),
|
|
20312
|
+
design: z22.array(TrendRadarCollectionRecipeEntrySchema),
|
|
20313
|
+
audience: z22.array(TrendRadarCollectionRecipeEntrySchema)
|
|
20215
20314
|
}).strict().refine(
|
|
20216
20315
|
(recipe) => recipe.category.length + recipe.design.length + recipe.audience.length > 0,
|
|
20217
20316
|
"A Trend Radar collection recipe must contain at least one subject."
|
|
20218
20317
|
);
|
|
20219
|
-
var TrendRadarCollectionDecisionAxisSchema =
|
|
20318
|
+
var TrendRadarCollectionDecisionAxisSchema = z22.object({
|
|
20220
20319
|
key: ContractIdentifierSchema,
|
|
20221
|
-
label:
|
|
20222
|
-
value:
|
|
20223
|
-
}).strict();
|
|
20224
|
-
var TrendRadarCollectionDecisionProjectionSchema =
|
|
20225
|
-
axes:
|
|
20226
|
-
overallScore:
|
|
20227
|
-
itemRank:
|
|
20228
|
-
sourceRefs:
|
|
20229
|
-
outputRefs:
|
|
20320
|
+
label: z22.string().trim().min(1).max(200).optional(),
|
|
20321
|
+
value: z22.number().finite()
|
|
20322
|
+
}).strict();
|
|
20323
|
+
var TrendRadarCollectionDecisionProjectionSchema = z22.object({
|
|
20324
|
+
axes: z22.array(TrendRadarCollectionDecisionAxisSchema).max(32).optional(),
|
|
20325
|
+
overallScore: z22.number().finite().optional(),
|
|
20326
|
+
itemRank: z22.number().finite().optional(),
|
|
20327
|
+
sourceRefs: z22.array(EntityRefSchema).optional(),
|
|
20328
|
+
outputRefs: z22.array(EntityRefSchema).optional()
|
|
20230
20329
|
}).strict().superRefine((projection, context) => {
|
|
20231
20330
|
const hasProjection = Boolean(
|
|
20232
20331
|
projection.axes?.length || projection.overallScore !== void 0 || projection.itemRank !== void 0 || projection.sourceRefs?.length || projection.outputRefs?.length
|
|
@@ -20249,20 +20348,20 @@ var TrendRadarCollectionDecisionProjectionSchema = z21.object({
|
|
|
20249
20348
|
seenAxisKeys.add(axis.key);
|
|
20250
20349
|
});
|
|
20251
20350
|
});
|
|
20252
|
-
var TrendRadarCollectionArtifactProjectionSchema =
|
|
20351
|
+
var TrendRadarCollectionArtifactProjectionSchema = z22.object({
|
|
20253
20352
|
artifactRef: TrendRadarCollectionArtifactRefSchema,
|
|
20254
|
-
url:
|
|
20255
|
-
thumbnailUrl:
|
|
20256
|
-
mimeType:
|
|
20353
|
+
url: z22.string().url().optional(),
|
|
20354
|
+
thumbnailUrl: z22.string().url().optional(),
|
|
20355
|
+
mimeType: z22.string().trim().min(1).optional(),
|
|
20257
20356
|
metadata: JsonObjectSchema.optional()
|
|
20258
20357
|
}).strict();
|
|
20259
|
-
var TrendRadarCollectionProjectionWritebackSchema =
|
|
20260
|
-
status:
|
|
20358
|
+
var TrendRadarCollectionProjectionWritebackSchema = z22.object({
|
|
20359
|
+
status: z22.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
20261
20360
|
updatedAt: IsoDateTimeSchema,
|
|
20262
|
-
error:
|
|
20361
|
+
error: z22.object({
|
|
20263
20362
|
code: ContractIdentifierSchema,
|
|
20264
|
-
message:
|
|
20265
|
-
retryable:
|
|
20363
|
+
message: z22.string().trim().min(1),
|
|
20364
|
+
retryable: z22.boolean()
|
|
20266
20365
|
}).strict().optional()
|
|
20267
20366
|
}).strict().superRefine((writeback, context) => {
|
|
20268
20367
|
if (writeback.status === "FAILED" && !writeback.error) {
|
|
@@ -20280,12 +20379,12 @@ var TrendRadarCollectionProjectionWritebackSchema = z21.object({
|
|
|
20280
20379
|
});
|
|
20281
20380
|
}
|
|
20282
20381
|
});
|
|
20283
|
-
var TrendRadarCollectionItemSchema =
|
|
20284
|
-
contract:
|
|
20285
|
-
schemaVersion:
|
|
20382
|
+
var TrendRadarCollectionItemSchema = z22.object({
|
|
20383
|
+
contract: z22.literal("TrendRadarCollectionItem"),
|
|
20384
|
+
schemaVersion: z22.literal(1),
|
|
20286
20385
|
selectionRef: TrendRadarCollectionSelectionRefSchema,
|
|
20287
20386
|
recipe: TrendRadarCollectionRecipeSchema,
|
|
20288
|
-
status:
|
|
20387
|
+
status: z22.enum(["SAVED", "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
20289
20388
|
latestRunRef: TrendRadarCollectionRunRefSchema.optional(),
|
|
20290
20389
|
decisionProjection: TrendRadarCollectionDecisionProjectionSchema.optional(),
|
|
20291
20390
|
artifactProjection: TrendRadarCollectionArtifactProjectionSchema.optional(),
|
|
@@ -20293,8 +20392,8 @@ var TrendRadarCollectionItemSchema = z21.object({
|
|
|
20293
20392
|
updatedAt: IsoDateTimeSchema,
|
|
20294
20393
|
generatedAt: IsoDateTimeSchema.optional()
|
|
20295
20394
|
}).strict();
|
|
20296
|
-
var RadarAnalysisRunSchema =
|
|
20297
|
-
contract:
|
|
20395
|
+
var RadarAnalysisRunSchema = z22.object({
|
|
20396
|
+
contract: z22.literal("RadarAnalysisRun"),
|
|
20298
20397
|
runId: ContractIdentifierSchema,
|
|
20299
20398
|
teamId: ContractIdentifierSchema,
|
|
20300
20399
|
selectionRef: EntityRefSchema,
|
|
@@ -20305,66 +20404,66 @@ var RadarAnalysisRunSchema = z21.object({
|
|
|
20305
20404
|
collectionAssetRef: TrendRadarCollectionAssetRefSchema.optional(),
|
|
20306
20405
|
collectionProjectionWriteback: TrendRadarCollectionProjectionWritebackSchema.optional(),
|
|
20307
20406
|
workflowDefinitionTeamId: ContractIdentifierSchema.optional(),
|
|
20308
|
-
workflowInput:
|
|
20309
|
-
createDesignProject:
|
|
20310
|
-
designProjectName:
|
|
20407
|
+
workflowInput: z22.record(z22.string(), JsonValueSchema).default({}),
|
|
20408
|
+
createDesignProject: z22.boolean().default(true),
|
|
20409
|
+
designProjectName: z22.string().trim().min(1).max(200).optional(),
|
|
20311
20410
|
modelRef: EntityRefSchema,
|
|
20312
20411
|
requestId: ContractIdentifierSchema,
|
|
20313
20412
|
idempotencyKey: ContractIdentifierSchema,
|
|
20314
|
-
status:
|
|
20315
|
-
outputRefs:
|
|
20316
|
-
error:
|
|
20413
|
+
status: z22.enum(["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED", "PARTIAL"]),
|
|
20414
|
+
outputRefs: z22.array(EntityRefSchema).default([]),
|
|
20415
|
+
error: z22.object({
|
|
20317
20416
|
code: ContractIdentifierSchema,
|
|
20318
|
-
message:
|
|
20319
|
-
retryable:
|
|
20417
|
+
message: z22.string().trim().min(1),
|
|
20418
|
+
retryable: z22.boolean()
|
|
20320
20419
|
}).strict().optional(),
|
|
20321
20420
|
startedAt: IsoDateTimeSchema.optional(),
|
|
20322
20421
|
completedAt: IsoDateTimeSchema.optional(),
|
|
20323
20422
|
createdAt: IsoDateTimeSchema
|
|
20324
20423
|
}).strict();
|
|
20325
|
-
var RadarAnalysisAssetSchema =
|
|
20424
|
+
var RadarAnalysisAssetSchema = z22.object({
|
|
20326
20425
|
artifactRef: EntityRefSchema,
|
|
20327
20426
|
kind: ContractIdentifierSchema,
|
|
20328
|
-
mimeType:
|
|
20329
|
-
url:
|
|
20330
|
-
metadata:
|
|
20427
|
+
mimeType: z22.string().trim().min(1).optional(),
|
|
20428
|
+
url: z22.string().url(),
|
|
20429
|
+
metadata: z22.record(z22.string(), JsonValueSchema).default({}),
|
|
20331
20430
|
createdAt: IsoDateTimeSchema
|
|
20332
20431
|
}).strict();
|
|
20333
|
-
var RadarAnalysisDetailSchema =
|
|
20334
|
-
contract:
|
|
20432
|
+
var RadarAnalysisDetailSchema = z22.object({
|
|
20433
|
+
contract: z22.literal("RadarAnalysisDetail"),
|
|
20335
20434
|
run: RadarAnalysisRunSchema,
|
|
20336
|
-
runVersion:
|
|
20435
|
+
runVersion: z22.number().int().positive(),
|
|
20337
20436
|
selection: RadarSelectionSchema,
|
|
20338
|
-
outputs:
|
|
20339
|
-
assets:
|
|
20340
|
-
lineage:
|
|
20437
|
+
outputs: z22.array(OutputRecordSchema),
|
|
20438
|
+
assets: z22.array(RadarAnalysisAssetSchema),
|
|
20439
|
+
lineage: z22.array(LineageRecordSchema)
|
|
20341
20440
|
}).strict();
|
|
20342
|
-
var RadarActionRecordSchema =
|
|
20343
|
-
contract:
|
|
20441
|
+
var RadarActionRecordSchema = z22.object({
|
|
20442
|
+
contract: z22.literal("RadarActionRecord"),
|
|
20344
20443
|
actionId: ContractIdentifierSchema,
|
|
20345
20444
|
teamId: ContractIdentifierSchema,
|
|
20346
20445
|
actorRef: EntityRefSchema,
|
|
20347
|
-
action:
|
|
20446
|
+
action: z22.enum(["stash", "select", "reject", "archive", "launch", "retry", "replay", "rollback"]),
|
|
20348
20447
|
targetRef: EntityRefSchema,
|
|
20349
20448
|
requestId: ContractIdentifierSchema,
|
|
20350
20449
|
idempotencyKey: ContractIdentifierSchema,
|
|
20351
|
-
expectedVersion:
|
|
20450
|
+
expectedVersion: z22.number().int().nonnegative(),
|
|
20352
20451
|
occurredAt: IsoDateTimeSchema
|
|
20353
20452
|
}).strict();
|
|
20354
|
-
var RadarWritebackRecordSchema =
|
|
20355
|
-
contract:
|
|
20453
|
+
var RadarWritebackRecordSchema = z22.object({
|
|
20454
|
+
contract: z22.literal("RadarWritebackRecord"),
|
|
20356
20455
|
writebackId: ContractIdentifierSchema,
|
|
20357
20456
|
actionRef: EntityRefSchema,
|
|
20358
20457
|
targetRef: EntityRefSchema,
|
|
20359
|
-
status:
|
|
20360
|
-
resultingVersion:
|
|
20361
|
-
error:
|
|
20458
|
+
status: z22.enum(["PENDING", "APPLIED", "FAILED"]),
|
|
20459
|
+
resultingVersion: z22.number().int().nonnegative().optional(),
|
|
20460
|
+
error: z22.string().trim().min(1).optional(),
|
|
20362
20461
|
recordedAt: IsoDateTimeSchema
|
|
20363
20462
|
}).strict();
|
|
20364
20463
|
|
|
20365
20464
|
// src/contracts/workflow-definition.ts
|
|
20366
|
-
import { z as
|
|
20367
|
-
var ConductorTaskTypeSchema =
|
|
20465
|
+
import { z as z23 } from "zod";
|
|
20466
|
+
var ConductorTaskTypeSchema = z23.enum([
|
|
20368
20467
|
"SIMPLE",
|
|
20369
20468
|
"DYNAMIC",
|
|
20370
20469
|
"FORK_JOIN",
|
|
@@ -20413,46 +20512,46 @@ var requiredTaskFields = {
|
|
|
20413
20512
|
WAIT: ["inputParameters"],
|
|
20414
20513
|
TERMINATE: ["inputParameters"]
|
|
20415
20514
|
};
|
|
20416
|
-
var ConductorTaskDefinitionSchema =
|
|
20417
|
-
() =>
|
|
20515
|
+
var ConductorTaskDefinitionSchema = z23.lazy(
|
|
20516
|
+
() => z23.object({
|
|
20418
20517
|
name: ContractIdentifierSchema,
|
|
20419
20518
|
taskReferenceName: ContractIdentifierSchema,
|
|
20420
20519
|
type: ConductorTaskTypeSchema,
|
|
20421
|
-
inputParameters:
|
|
20422
|
-
startDelay:
|
|
20423
|
-
optional:
|
|
20424
|
-
asyncComplete:
|
|
20425
|
-
rateLimited:
|
|
20426
|
-
retryCount:
|
|
20427
|
-
taskDefinition:
|
|
20428
|
-
loopCondition:
|
|
20429
|
-
loopOver:
|
|
20430
|
-
sink:
|
|
20431
|
-
forkTasks:
|
|
20432
|
-
joinOn:
|
|
20433
|
-
defaultExclusiveJoinTask:
|
|
20434
|
-
dynamicForkTasksParam:
|
|
20435
|
-
dynamicForkTasksInputParamName:
|
|
20436
|
-
subWorkflowParam:
|
|
20437
|
-
$ref:
|
|
20520
|
+
inputParameters: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
20521
|
+
startDelay: z23.number().int().nonnegative().optional(),
|
|
20522
|
+
optional: z23.boolean().optional(),
|
|
20523
|
+
asyncComplete: z23.boolean().optional(),
|
|
20524
|
+
rateLimited: z23.boolean().optional(),
|
|
20525
|
+
retryCount: z23.number().int().nonnegative().optional(),
|
|
20526
|
+
taskDefinition: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
20527
|
+
loopCondition: z23.string().optional(),
|
|
20528
|
+
loopOver: z23.array(ConductorTaskDefinitionSchema).optional(),
|
|
20529
|
+
sink: z23.string().optional(),
|
|
20530
|
+
forkTasks: z23.array(z23.array(ConductorTaskDefinitionSchema)).optional(),
|
|
20531
|
+
joinOn: z23.array(ContractIdentifierSchema).optional(),
|
|
20532
|
+
defaultExclusiveJoinTask: z23.array(ContractIdentifierSchema).optional(),
|
|
20533
|
+
dynamicForkTasksParam: z23.string().optional(),
|
|
20534
|
+
dynamicForkTasksInputParamName: z23.string().optional(),
|
|
20535
|
+
subWorkflowParam: z23.object({
|
|
20536
|
+
$ref: z23.string().optional(),
|
|
20438
20537
|
name: ContractIdentifierSchema,
|
|
20439
|
-
version:
|
|
20440
|
-
taskToDomain:
|
|
20441
|
-
workflowDefinition:
|
|
20538
|
+
version: z23.number().int().positive().optional(),
|
|
20539
|
+
taskToDomain: z23.record(z23.string(), z23.string()).optional(),
|
|
20540
|
+
workflowDefinition: z23.record(z23.string(), JsonValueSchema).optional()
|
|
20442
20541
|
}).strict().optional(),
|
|
20443
|
-
decisionCases:
|
|
20444
|
-
defaultCase:
|
|
20445
|
-
evaluatorType:
|
|
20446
|
-
expression:
|
|
20542
|
+
decisionCases: z23.record(z23.string(), z23.array(ConductorTaskDefinitionSchema)).optional(),
|
|
20543
|
+
defaultCase: z23.array(ConductorTaskDefinitionSchema).optional(),
|
|
20544
|
+
evaluatorType: z23.enum(["value-param", "javascript", "graaljs"]).optional(),
|
|
20545
|
+
expression: z23.string().optional(),
|
|
20447
20546
|
__alias: JsonValueSchema.optional(),
|
|
20448
|
-
callbackFromWorker:
|
|
20547
|
+
callbackFromWorker: z23.boolean().optional(),
|
|
20449
20548
|
caseExpression: JsonValueSchema.optional(),
|
|
20450
|
-
caseValueParam:
|
|
20451
|
-
dependencies:
|
|
20452
|
-
description:
|
|
20453
|
-
dynamicTaskNameParam:
|
|
20454
|
-
joinMode:
|
|
20455
|
-
permissive:
|
|
20549
|
+
caseValueParam: z23.string().optional(),
|
|
20550
|
+
dependencies: z23.array(JsonValueSchema).optional(),
|
|
20551
|
+
description: z23.string().optional(),
|
|
20552
|
+
dynamicTaskNameParam: z23.string().optional(),
|
|
20553
|
+
joinMode: z23.string().optional(),
|
|
20554
|
+
permissive: z23.boolean().optional(),
|
|
20456
20555
|
joinTaskRef: ContractIdentifierSchema.optional(),
|
|
20457
20556
|
forkTaskRef: ContractIdentifierSchema.optional()
|
|
20458
20557
|
}).strict().superRefine((task, context) => {
|
|
@@ -20466,29 +20565,29 @@ var ConductorTaskDefinitionSchema = z22.lazy(
|
|
|
20466
20565
|
}
|
|
20467
20566
|
})
|
|
20468
20567
|
);
|
|
20469
|
-
var ConductorWorkflowDefinitionSchema =
|
|
20470
|
-
ownerApp:
|
|
20471
|
-
createTime:
|
|
20472
|
-
updateTime:
|
|
20473
|
-
createdBy:
|
|
20474
|
-
updatedBy:
|
|
20568
|
+
var ConductorWorkflowDefinitionSchema = z23.object({
|
|
20569
|
+
ownerApp: z23.string().optional(),
|
|
20570
|
+
createTime: z23.number().int().nonnegative().optional(),
|
|
20571
|
+
updateTime: z23.number().int().nonnegative().optional(),
|
|
20572
|
+
createdBy: z23.string().optional(),
|
|
20573
|
+
updatedBy: z23.string().optional(),
|
|
20475
20574
|
name: ContractIdentifierSchema,
|
|
20476
|
-
description:
|
|
20477
|
-
version:
|
|
20478
|
-
tasks:
|
|
20479
|
-
inputParameters:
|
|
20480
|
-
outputParameters:
|
|
20575
|
+
description: z23.string().optional(),
|
|
20576
|
+
version: z23.number().int().positive(),
|
|
20577
|
+
tasks: z23.array(ConductorTaskDefinitionSchema),
|
|
20578
|
+
inputParameters: z23.array(ContractIdentifierSchema),
|
|
20579
|
+
outputParameters: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
20481
20580
|
failureWorkflow: ContractIdentifierSchema.optional(),
|
|
20482
|
-
schemaVersion:
|
|
20483
|
-
restartable:
|
|
20484
|
-
workflowStatusListenerEnabled:
|
|
20485
|
-
ownerEmail:
|
|
20486
|
-
timeoutPolicy:
|
|
20487
|
-
timeoutSeconds:
|
|
20488
|
-
variables:
|
|
20489
|
-
inputTemplate:
|
|
20490
|
-
}).strict();
|
|
20491
|
-
var WorkflowParameterTypeSchema =
|
|
20581
|
+
schemaVersion: z23.number().int().positive().optional(),
|
|
20582
|
+
restartable: z23.boolean().optional(),
|
|
20583
|
+
workflowStatusListenerEnabled: z23.boolean().optional(),
|
|
20584
|
+
ownerEmail: z23.string().email().optional(),
|
|
20585
|
+
timeoutPolicy: z23.enum(["TIME_OUT_WF", "ALERT_ONLY"]).optional(),
|
|
20586
|
+
timeoutSeconds: z23.number().int().nonnegative(),
|
|
20587
|
+
variables: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
20588
|
+
inputTemplate: z23.record(z23.string(), JsonValueSchema).optional()
|
|
20589
|
+
}).strict();
|
|
20590
|
+
var WorkflowParameterTypeSchema = z23.enum([
|
|
20492
20591
|
"string",
|
|
20493
20592
|
"file",
|
|
20494
20593
|
"number",
|
|
@@ -20498,214 +20597,214 @@ var WorkflowParameterTypeSchema = z22.enum([
|
|
|
20498
20597
|
"notice",
|
|
20499
20598
|
"canvas-assist"
|
|
20500
20599
|
]);
|
|
20501
|
-
var WorkflowConditionalStateSchema =
|
|
20502
|
-
conditions:
|
|
20503
|
-
|
|
20504
|
-
field:
|
|
20505
|
-
operator:
|
|
20600
|
+
var WorkflowConditionalStateSchema = z23.object({
|
|
20601
|
+
conditions: z23.array(
|
|
20602
|
+
z23.object({
|
|
20603
|
+
field: z23.string(),
|
|
20604
|
+
operator: z23.enum(["is", "isNot", "isGreaterThan", "isLessThan", "isGreaterThanOrEqual", "isLessThanOrEqual", "in", "notIn"]),
|
|
20506
20605
|
value: JsonValueSchema
|
|
20507
20606
|
}).strict()
|
|
20508
20607
|
),
|
|
20509
|
-
logic:
|
|
20510
|
-
}).strict();
|
|
20511
|
-
var ImageSelectMappingAppearanceSchema =
|
|
20512
|
-
columns:
|
|
20513
|
-
cardSize:
|
|
20514
|
-
imageAspectRatio:
|
|
20515
|
-
gap:
|
|
20516
|
-
radius:
|
|
20517
|
-
borderStyle:
|
|
20518
|
-
borderWidth:
|
|
20519
|
-
enableScroll:
|
|
20520
|
-
maxHeight:
|
|
20521
|
-
enableCollapse:
|
|
20522
|
-
visibleRows:
|
|
20523
|
-
hideLabel:
|
|
20524
|
-
hideDescription:
|
|
20525
|
-
hideValue:
|
|
20526
|
-
}).strict();
|
|
20527
|
-
var ComfyWorkflowPortBindingSchema =
|
|
20528
|
-
node:
|
|
20529
|
-
key:
|
|
20530
|
-
}).strict();
|
|
20531
|
-
var WorkflowParameterTypeOptionsSchema =
|
|
20532
|
-
editor:
|
|
20533
|
-
editorLanguage:
|
|
20534
|
-
maxValue:
|
|
20535
|
-
minValue:
|
|
20536
|
-
max:
|
|
20537
|
-
min:
|
|
20538
|
-
multipleValues:
|
|
20539
|
-
numberPrecision:
|
|
20540
|
-
password:
|
|
20541
|
-
rows:
|
|
20542
|
-
assetType:
|
|
20543
|
-
accept:
|
|
20544
|
-
maxSize:
|
|
20545
|
-
fileType:
|
|
20546
|
-
aiMultiShotMainImageField:
|
|
20547
|
-
aiMultiShotWorkflowAppId:
|
|
20548
|
-
aiMultiShotWorkflowId:
|
|
20549
|
-
allowCustomInput:
|
|
20550
|
-
allowUploadVideo:
|
|
20551
|
-
aspectRatioField:
|
|
20552
|
-
assemblyValueType:
|
|
20553
|
-
autoAnalyzeDesignImage:
|
|
20554
|
-
autoDetectAspectRatio:
|
|
20555
|
-
autoIncrementId:
|
|
20608
|
+
logic: z23.enum(["AND", "OR"]).optional()
|
|
20609
|
+
}).strict();
|
|
20610
|
+
var ImageSelectMappingAppearanceSchema = z23.object({
|
|
20611
|
+
columns: z23.number().int().min(1).max(4).optional(),
|
|
20612
|
+
cardSize: z23.enum(["sm", "md", "lg"]).optional(),
|
|
20613
|
+
imageAspectRatio: z23.enum(["square", "4:5", "3:4", "16:9"]).optional(),
|
|
20614
|
+
gap: z23.enum(["sm", "md", "lg"]).optional(),
|
|
20615
|
+
radius: z23.enum(["sm", "md", "lg", "xl"]).optional(),
|
|
20616
|
+
borderStyle: z23.enum(["none", "soft", "strong"]).optional(),
|
|
20617
|
+
borderWidth: z23.union([z23.literal(0), z23.literal(1), z23.literal(2)]).optional(),
|
|
20618
|
+
enableScroll: z23.boolean().optional(),
|
|
20619
|
+
maxHeight: z23.number().int().min(160).max(1200).optional(),
|
|
20620
|
+
enableCollapse: z23.boolean().optional(),
|
|
20621
|
+
visibleRows: z23.number().int().min(1).max(6).optional(),
|
|
20622
|
+
hideLabel: z23.boolean().optional(),
|
|
20623
|
+
hideDescription: z23.boolean().optional(),
|
|
20624
|
+
hideValue: z23.boolean().optional()
|
|
20625
|
+
}).strict();
|
|
20626
|
+
var ComfyWorkflowPortBindingSchema = z23.object({
|
|
20627
|
+
node: z23.union([z23.string(), z23.number()]),
|
|
20628
|
+
key: z23.string().optional()
|
|
20629
|
+
}).strict();
|
|
20630
|
+
var WorkflowParameterTypeOptionsSchema = z23.object({
|
|
20631
|
+
editor: z23.enum(["code", "codeNodeEditor", "htmlEditor", "sqlEditor", "json"]).optional(),
|
|
20632
|
+
editorLanguage: z23.enum(["javaScript", "json", "python", "sql"]).optional(),
|
|
20633
|
+
maxValue: z23.number().optional(),
|
|
20634
|
+
minValue: z23.number().optional(),
|
|
20635
|
+
max: z23.number().optional(),
|
|
20636
|
+
min: z23.number().optional(),
|
|
20637
|
+
multipleValues: z23.boolean().optional(),
|
|
20638
|
+
numberPrecision: z23.number().nonnegative().optional(),
|
|
20639
|
+
password: z23.boolean().optional(),
|
|
20640
|
+
rows: z23.number().int().positive().optional(),
|
|
20641
|
+
assetType: z23.string().optional(),
|
|
20642
|
+
accept: z23.string().optional(),
|
|
20643
|
+
maxSize: z23.number().positive().optional(),
|
|
20644
|
+
fileType: z23.string().optional(),
|
|
20645
|
+
aiMultiShotMainImageField: z23.string().optional(),
|
|
20646
|
+
aiMultiShotWorkflowAppId: z23.string().optional(),
|
|
20647
|
+
aiMultiShotWorkflowId: z23.string().optional(),
|
|
20648
|
+
allowCustomInput: z23.boolean().optional(),
|
|
20649
|
+
allowUploadVideo: z23.boolean().optional(),
|
|
20650
|
+
aspectRatioField: z23.string().optional(),
|
|
20651
|
+
assemblyValueType: z23.string().optional(),
|
|
20652
|
+
autoAnalyzeDesignImage: z23.boolean().optional(),
|
|
20653
|
+
autoDetectAspectRatio: z23.boolean().optional(),
|
|
20654
|
+
autoIncrementId: z23.boolean().optional(),
|
|
20556
20655
|
comfyOptions: ComfyWorkflowPortBindingSchema.optional(),
|
|
20557
|
-
comfyuiModelServerId:
|
|
20558
|
-
comfyuiModelTypeName:
|
|
20656
|
+
comfyuiModelServerId: z23.string().optional(),
|
|
20657
|
+
comfyuiModelTypeName: z23.string().optional(),
|
|
20559
20658
|
defaultCustomInput: JsonValueSchema.optional(),
|
|
20560
|
-
descriptionAlert:
|
|
20561
|
-
disabled:
|
|
20562
|
-
editable:
|
|
20563
|
-
enableAiMultiShot:
|
|
20564
|
-
enableBooleanSwitchMode:
|
|
20565
|
-
enableClear:
|
|
20566
|
-
enableExpand:
|
|
20567
|
-
enableImageCrop:
|
|
20568
|
-
enableImageMask:
|
|
20569
|
-
enableImageOverlay:
|
|
20570
|
-
enablePopupEditor:
|
|
20571
|
-
enablePromptFontSize:
|
|
20572
|
-
enableReset:
|
|
20573
|
-
enableSelectItemIcon:
|
|
20574
|
-
enableSelectList:
|
|
20575
|
-
enableSelectSearch:
|
|
20576
|
-
enableSliderEnterMode:
|
|
20577
|
-
enableVoice:
|
|
20578
|
-
expandButtonText:
|
|
20579
|
-
foldUp:
|
|
20580
|
-
hidden:
|
|
20581
|
-
hideRequiredDot:
|
|
20582
|
-
inlineTitleWithSelect:
|
|
20583
|
-
knowledgeGraphButtonText:
|
|
20584
|
-
identifyAttributeCount:
|
|
20585
|
-
identifyAttributes:
|
|
20586
|
-
identifyMaxVariants:
|
|
20587
|
-
identifySourceField:
|
|
20588
|
-
imageOverlayBaseField:
|
|
20589
|
-
imageOverlayOverlayField:
|
|
20659
|
+
descriptionAlert: z23.boolean().optional(),
|
|
20660
|
+
disabled: z23.union([z23.boolean(), WorkflowConditionalStateSchema]).optional(),
|
|
20661
|
+
editable: z23.union([z23.boolean(), WorkflowConditionalStateSchema]).optional(),
|
|
20662
|
+
enableAiMultiShot: z23.boolean().optional(),
|
|
20663
|
+
enableBooleanSwitchMode: z23.boolean().optional(),
|
|
20664
|
+
enableClear: z23.boolean().optional(),
|
|
20665
|
+
enableExpand: z23.boolean().optional(),
|
|
20666
|
+
enableImageCrop: z23.boolean().optional(),
|
|
20667
|
+
enableImageMask: z23.boolean().optional(),
|
|
20668
|
+
enableImageOverlay: z23.boolean().optional(),
|
|
20669
|
+
enablePopupEditor: z23.boolean().optional(),
|
|
20670
|
+
enablePromptFontSize: z23.boolean().optional(),
|
|
20671
|
+
enableReset: z23.boolean().optional(),
|
|
20672
|
+
enableSelectItemIcon: z23.boolean().optional(),
|
|
20673
|
+
enableSelectList: z23.boolean().optional(),
|
|
20674
|
+
enableSelectSearch: z23.boolean().optional(),
|
|
20675
|
+
enableSliderEnterMode: z23.boolean().optional(),
|
|
20676
|
+
enableVoice: z23.boolean().optional(),
|
|
20677
|
+
expandButtonText: z23.string().optional(),
|
|
20678
|
+
foldUp: z23.boolean().optional(),
|
|
20679
|
+
hidden: z23.boolean().optional(),
|
|
20680
|
+
hideRequiredDot: z23.boolean().optional(),
|
|
20681
|
+
inlineTitleWithSelect: z23.boolean().optional(),
|
|
20682
|
+
knowledgeGraphButtonText: z23.string().optional(),
|
|
20683
|
+
identifyAttributeCount: z23.union([z23.number().nonnegative(), z23.string().min(1), z23.object({ min: z23.number().nonnegative().optional(), max: z23.number().nonnegative().optional() }).strict()]).optional(),
|
|
20684
|
+
identifyAttributes: z23.array(JsonValueSchema).optional(),
|
|
20685
|
+
identifyMaxVariants: z23.number().int().nonnegative().optional(),
|
|
20686
|
+
identifySourceField: z23.string().optional(),
|
|
20687
|
+
imageOverlayBaseField: z23.string().optional(),
|
|
20688
|
+
imageOverlayOverlayField: z23.string().optional(),
|
|
20590
20689
|
imageSelectMappingAppearance: ImageSelectMappingAppearanceSchema.optional(),
|
|
20591
|
-
imageSelectMappingColumns:
|
|
20592
|
-
imageSelectMappingEnableCustomUpload:
|
|
20593
|
-
imageSelectMappingHideLabel:
|
|
20594
|
-
imageSelectMappingHideLink:
|
|
20595
|
-
imageSelectMappingHideMeta:
|
|
20596
|
-
imageSelectMappingInlineUseLargeUploadBox:
|
|
20597
|
-
imageSelectMappingPromptField:
|
|
20598
|
-
imageSelectMappingTabOrder:
|
|
20599
|
-
imageSelectMappingTabWidthMode:
|
|
20690
|
+
imageSelectMappingColumns: z23.number().int().min(1).max(4).optional(),
|
|
20691
|
+
imageSelectMappingEnableCustomUpload: z23.boolean().optional(),
|
|
20692
|
+
imageSelectMappingHideLabel: z23.boolean().optional(),
|
|
20693
|
+
imageSelectMappingHideLink: z23.boolean().optional(),
|
|
20694
|
+
imageSelectMappingHideMeta: z23.boolean().optional(),
|
|
20695
|
+
imageSelectMappingInlineUseLargeUploadBox: z23.boolean().optional(),
|
|
20696
|
+
imageSelectMappingPromptField: z23.string().optional(),
|
|
20697
|
+
imageSelectMappingTabOrder: z23.enum(["template-first", "upload-first"]).optional(),
|
|
20698
|
+
imageSelectMappingTabWidthMode: z23.enum(["content", "fill"]).optional(),
|
|
20600
20699
|
imageSelectMappingTemplatePrompt: LocalizedTextSchema.optional(),
|
|
20601
20700
|
imageSelectMappingTemplateTabTitle: LocalizedTextSchema.optional(),
|
|
20602
|
-
imageSelectMappingUploadMode:
|
|
20701
|
+
imageSelectMappingUploadMode: z23.enum(["tabs", "inline"]).optional(),
|
|
20603
20702
|
imageSelectMappingUploadPrompt: LocalizedTextSchema.optional(),
|
|
20604
20703
|
imageSelectMappingUploadTabTitle: LocalizedTextSchema.optional(),
|
|
20605
|
-
endpoints:
|
|
20606
|
-
examples:
|
|
20704
|
+
endpoints: z23.array(JsonValueSchema).optional(),
|
|
20705
|
+
examples: z23.array(JsonValueSchema).optional(),
|
|
20607
20706
|
extraData: JsonValueSchema.optional(),
|
|
20608
20707
|
layer: JsonValueSchema.optional(),
|
|
20609
20708
|
map: JsonValueSchema.optional(),
|
|
20610
|
-
multiline:
|
|
20611
|
-
options:
|
|
20612
|
-
originalFiles:
|
|
20709
|
+
multiline: z23.boolean().optional(),
|
|
20710
|
+
options: z23.array(JsonValueSchema).optional(),
|
|
20711
|
+
originalFiles: z23.array(JsonValueSchema).optional(),
|
|
20613
20712
|
placeholder: LocalizedTextSchema.optional(),
|
|
20614
|
-
preserveSelectListOrder:
|
|
20713
|
+
preserveSelectListOrder: z23.boolean().optional(),
|
|
20615
20714
|
promptDictionary: JsonValueSchema.optional(),
|
|
20616
|
-
promptFontSize:
|
|
20715
|
+
promptFontSize: z23.number().optional(),
|
|
20617
20716
|
promptModeToggle: JsonValueSchema.optional(),
|
|
20618
|
-
requireActiveSelectFilter:
|
|
20619
|
-
restoreDefaultOnEmptyEnter:
|
|
20620
|
-
search:
|
|
20621
|
-
selectButtonEnableCollapse:
|
|
20622
|
-
selectButtonVisibleRows:
|
|
20623
|
-
selectList:
|
|
20624
|
-
selectListDisplayMode:
|
|
20625
|
-
selectPromptField:
|
|
20626
|
-
showAddLocalFileButton:
|
|
20627
|
-
singleColumn:
|
|
20628
|
-
singleFrameForMultiple:
|
|
20629
|
-
textSingleLine:
|
|
20630
|
-
textareaMiniHeight:
|
|
20717
|
+
requireActiveSelectFilter: z23.boolean().optional(),
|
|
20718
|
+
restoreDefaultOnEmptyEnter: z23.boolean().optional(),
|
|
20719
|
+
search: z23.boolean().optional(),
|
|
20720
|
+
selectButtonEnableCollapse: z23.boolean().optional(),
|
|
20721
|
+
selectButtonVisibleRows: z23.number().int().positive().optional(),
|
|
20722
|
+
selectList: z23.array(JsonValueSchema).optional(),
|
|
20723
|
+
selectListDisplayMode: z23.string().optional(),
|
|
20724
|
+
selectPromptField: z23.string().optional(),
|
|
20725
|
+
showAddLocalFileButton: z23.boolean().optional(),
|
|
20726
|
+
singleColumn: z23.boolean().optional(),
|
|
20727
|
+
singleFrameForMultiple: z23.boolean().optional(),
|
|
20728
|
+
textSingleLine: z23.boolean().optional(),
|
|
20729
|
+
textareaMiniHeight: z23.number().nonnegative().optional(),
|
|
20631
20730
|
tips: LocalizedTextSchema.optional(),
|
|
20632
20731
|
visibility: JsonValueSchema.optional(),
|
|
20633
|
-
voiceButtonText:
|
|
20634
|
-
designAnalysisFields:
|
|
20635
|
-
designAnalysisFillStrategy:
|
|
20636
|
-
designAnalysisMaxFields:
|
|
20637
|
-
designAnalysisType:
|
|
20638
|
-
designAnalysisFieldPrefix:
|
|
20639
|
-
}).strict();
|
|
20640
|
-
var WorkflowParameterSchema =
|
|
20641
|
-
() =>
|
|
20732
|
+
voiceButtonText: z23.string().optional(),
|
|
20733
|
+
designAnalysisFields: z23.array(JsonValueSchema).optional(),
|
|
20734
|
+
designAnalysisFillStrategy: z23.string().optional(),
|
|
20735
|
+
designAnalysisMaxFields: z23.number().int().nonnegative().optional(),
|
|
20736
|
+
designAnalysisType: z23.string().optional(),
|
|
20737
|
+
designAnalysisFieldPrefix: z23.string().optional()
|
|
20738
|
+
}).strict();
|
|
20739
|
+
var WorkflowParameterSchema = z23.lazy(
|
|
20740
|
+
() => z23.object({
|
|
20642
20741
|
displayName: LocalizedTextSchema,
|
|
20643
20742
|
name: ContractIdentifierSchema,
|
|
20644
20743
|
type: WorkflowParameterTypeSchema,
|
|
20645
20744
|
typeOptions: WorkflowParameterTypeOptionsSchema.optional(),
|
|
20646
20745
|
default: JsonValueSchema.optional(),
|
|
20647
20746
|
description: LocalizedTextSchema.optional(),
|
|
20648
|
-
hint:
|
|
20649
|
-
displayOptions:
|
|
20650
|
-
hide:
|
|
20651
|
-
show:
|
|
20747
|
+
hint: z23.string().optional(),
|
|
20748
|
+
displayOptions: z23.object({
|
|
20749
|
+
hide: z23.record(z23.string(), z23.array(JsonValueSchema)).optional(),
|
|
20750
|
+
show: z23.record(z23.string(), z23.array(JsonValueSchema)).optional()
|
|
20652
20751
|
}).strict().optional(),
|
|
20653
|
-
options:
|
|
20654
|
-
|
|
20752
|
+
options: z23.array(z23.union([
|
|
20753
|
+
z23.object({ name: LocalizedTextSchema, value: z23.union([z23.string(), z23.number(), z23.boolean()]), action: z23.string().optional(), description: LocalizedTextSchema.optional() }).strict(),
|
|
20655
20754
|
WorkflowParameterSchema,
|
|
20656
|
-
|
|
20755
|
+
z23.object({ displayName: z23.string(), name: ContractIdentifierSchema, values: z23.array(WorkflowParameterSchema) }).strict()
|
|
20657
20756
|
])).optional(),
|
|
20658
20757
|
placeholder: LocalizedTextSchema.optional(),
|
|
20659
|
-
isNodeSetting:
|
|
20660
|
-
noDataExpression:
|
|
20661
|
-
required:
|
|
20662
|
-
example:
|
|
20663
|
-
extractValue:
|
|
20664
|
-
properties:
|
|
20665
|
-
assetType:
|
|
20666
|
-
flag:
|
|
20667
|
-
enableExpand:
|
|
20668
|
-
enableVoice:
|
|
20669
|
-
expandButtonText:
|
|
20670
|
-
knowledgeGraphButtonText:
|
|
20671
|
-
selectListDisplayMode:
|
|
20672
|
-
voiceButtonText:
|
|
20758
|
+
isNodeSetting: z23.boolean().optional(),
|
|
20759
|
+
noDataExpression: z23.boolean().optional(),
|
|
20760
|
+
required: z23.boolean().optional(),
|
|
20761
|
+
example: z23.string().optional(),
|
|
20762
|
+
extractValue: z23.object({ type: z23.literal("regex"), regex: z23.string() }).strict().optional(),
|
|
20763
|
+
properties: z23.array(WorkflowParameterSchema).optional(),
|
|
20764
|
+
assetType: z23.string().optional(),
|
|
20765
|
+
flag: z23.boolean().optional(),
|
|
20766
|
+
enableExpand: z23.boolean().optional(),
|
|
20767
|
+
enableVoice: z23.boolean().optional(),
|
|
20768
|
+
expandButtonText: z23.string().optional(),
|
|
20769
|
+
knowledgeGraphButtonText: z23.string().optional(),
|
|
20770
|
+
selectListDisplayMode: z23.string().optional(),
|
|
20771
|
+
voiceButtonText: z23.string().optional()
|
|
20673
20772
|
}).strict()
|
|
20674
20773
|
);
|
|
20675
|
-
var WorkflowOutputBindingSchema =
|
|
20676
|
-
var WorkflowNodeSchema =
|
|
20774
|
+
var WorkflowOutputBindingSchema = z23.object({ key: ContractIdentifierSchema, value: z23.string() }).strict();
|
|
20775
|
+
var WorkflowNodeSchema = z23.object({
|
|
20677
20776
|
id: ContractIdentifierSchema,
|
|
20678
20777
|
referenceName: ContractIdentifierSchema,
|
|
20679
20778
|
capabilityRef: ContractIdentifierSchema,
|
|
20680
20779
|
capabilityVersion: ContractIdentifierSchema.optional(),
|
|
20681
|
-
inputBindings:
|
|
20682
|
-
configuration:
|
|
20780
|
+
inputBindings: z23.record(z23.string(), JsonValueSchema).default({}),
|
|
20781
|
+
configuration: z23.object({ executor: z23.literal("conductor"), task: ConductorTaskDefinitionSchema }).strict()
|
|
20683
20782
|
}).strict().superRefine((node, context) => {
|
|
20684
20783
|
if (node.configuration.task.taskReferenceName !== node.referenceName) context.addIssue({ code: "custom", path: ["configuration", "task", "taskReferenceName"], message: "Conductor task reference must match node referenceName." });
|
|
20685
20784
|
if (node.configuration.task.name !== node.capabilityRef) context.addIssue({ code: "custom", path: ["configuration", "task", "name"], message: "Conductor task name must match node capabilityRef." });
|
|
20686
20785
|
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." });
|
|
20687
20786
|
});
|
|
20688
|
-
var WorkflowEdgeSchema =
|
|
20787
|
+
var WorkflowEdgeSchema = z23.object({
|
|
20689
20788
|
from: ContractIdentifierSchema,
|
|
20690
20789
|
to: ContractIdentifierSchema,
|
|
20691
20790
|
outputPort: ContractIdentifierSchema.optional(),
|
|
20692
20791
|
inputPort: ContractIdentifierSchema.optional(),
|
|
20693
|
-
condition:
|
|
20792
|
+
condition: z23.string().optional()
|
|
20694
20793
|
}).strict();
|
|
20695
|
-
var WorkflowTriggerSchema =
|
|
20794
|
+
var WorkflowTriggerSchema = z23.object({
|
|
20696
20795
|
id: ContractIdentifierSchema,
|
|
20697
|
-
type:
|
|
20698
|
-
enabled:
|
|
20699
|
-
schedule:
|
|
20700
|
-
webhook:
|
|
20701
|
-
path:
|
|
20702
|
-
method:
|
|
20703
|
-
auth:
|
|
20704
|
-
basicAuth:
|
|
20705
|
-
headerAuth:
|
|
20706
|
-
responseUntil:
|
|
20796
|
+
type: z23.enum(["manual", "schedule", "webhook", "event", "api"]),
|
|
20797
|
+
enabled: z23.boolean(),
|
|
20798
|
+
schedule: z23.object({ cron: z23.string().trim().min(1) }).strict().optional(),
|
|
20799
|
+
webhook: z23.object({
|
|
20800
|
+
path: z23.string().trim().min(1).optional(),
|
|
20801
|
+
method: z23.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"]),
|
|
20802
|
+
auth: z23.enum(["NONE", "BASIC", "CUSTOM_HEADER"]),
|
|
20803
|
+
basicAuth: z23.object({ username: z23.string(), password: z23.string() }).strict().optional(),
|
|
20804
|
+
headerAuth: z23.object({ name: z23.string().trim().min(1), value: z23.string() }).strict().optional(),
|
|
20805
|
+
responseUntil: z23.enum(["WORKFLOW_STARTED", "WORKFLOW_COMPLETED_OR_FINISHED"])
|
|
20707
20806
|
}).strict().optional(),
|
|
20708
|
-
event:
|
|
20807
|
+
event: z23.object({
|
|
20709
20808
|
eventType: ContractIdentifierSchema,
|
|
20710
20809
|
configuration: JsonValueSchema.optional()
|
|
20711
20810
|
}).strict().optional()
|
|
@@ -20714,63 +20813,63 @@ var WorkflowTriggerSchema = z22.object({
|
|
|
20714
20813
|
if (trigger.type === "webhook" && !trigger.webhook) context.addIssue({ code: "custom", path: ["webhook"], message: "Webhook trigger requires webhook configuration." });
|
|
20715
20814
|
if (trigger.type === "event" && !trigger.event) context.addIssue({ code: "custom", path: ["event"], message: "Event trigger requires event configuration." });
|
|
20716
20815
|
});
|
|
20717
|
-
var WorkflowValidationIssueSchema =
|
|
20816
|
+
var WorkflowValidationIssueSchema = z23.object({
|
|
20718
20817
|
taskReferenceName: ContractIdentifierSchema,
|
|
20719
|
-
issueType:
|
|
20720
|
-
detailReason:
|
|
20721
|
-
humanMessage:
|
|
20818
|
+
issueType: z23.enum(["ERROR", "WARNING"]),
|
|
20819
|
+
detailReason: z23.object({ type: ContractIdentifierSchema, name: ContractIdentifierSchema, detailInformation: JsonValueSchema.optional() }).strict(),
|
|
20820
|
+
humanMessage: z23.object({ en: z23.string(), zh: z23.string() }).strict()
|
|
20722
20821
|
}).strict();
|
|
20723
|
-
var WorkflowDefinitionSchema =
|
|
20724
|
-
contract:
|
|
20822
|
+
var WorkflowDefinitionSchema = z23.object({
|
|
20823
|
+
contract: z23.literal("WorkflowDefinition"),
|
|
20725
20824
|
metadata: ContractMetadataSchema.omit({ name: true, description: true, labels: true }).extend({
|
|
20726
20825
|
name: LocalizedTextSchema,
|
|
20727
20826
|
description: LocalizedTextSchema.optional(),
|
|
20728
|
-
role:
|
|
20827
|
+
role: z23.enum(["workflow", "template"]),
|
|
20729
20828
|
teamId: ContractIdentifierSchema,
|
|
20730
20829
|
creatorRef: EntityRefSchema,
|
|
20731
|
-
tags:
|
|
20830
|
+
tags: z23.array(ContractIdentifierSchema).default([])
|
|
20732
20831
|
}).strict(),
|
|
20733
|
-
revision:
|
|
20734
|
-
kind:
|
|
20735
|
-
recordVersion:
|
|
20736
|
-
sourceVersion:
|
|
20832
|
+
revision: z23.object({
|
|
20833
|
+
kind: z23.enum(["release", "backup"]),
|
|
20834
|
+
recordVersion: z23.number().int().positive(),
|
|
20835
|
+
sourceVersion: z23.number().int().positive().optional()
|
|
20737
20836
|
}).strict().superRefine((revision, context) => {
|
|
20738
20837
|
if (revision.kind === "backup" && revision.sourceVersion === void 0) context.addIssue({ code: "custom", path: ["sourceVersion"], message: "Backup revisions require a sourceVersion." });
|
|
20739
20838
|
}),
|
|
20740
|
-
presentation:
|
|
20741
|
-
ports:
|
|
20742
|
-
parameters:
|
|
20743
|
-
graph:
|
|
20744
|
-
execution:
|
|
20745
|
-
timeoutMs:
|
|
20746
|
-
retries:
|
|
20747
|
-
concurrencyLimit:
|
|
20748
|
-
idempotency:
|
|
20749
|
-
rateLimit:
|
|
20839
|
+
presentation: z23.object({ iconUrl: z23.string().optional(), thumbnail: z23.string().optional() }).strict(),
|
|
20840
|
+
ports: z23.object({ inputs: z23.array(ContractPortSchema).default([]), outputs: z23.array(ContractPortSchema).default([]) }).strict(),
|
|
20841
|
+
parameters: z23.object({ variables: z23.array(WorkflowParameterSchema).default([]), outputs: z23.array(WorkflowOutputBindingSchema).default([]) }).strict(),
|
|
20842
|
+
graph: z23.object({ nodes: z23.array(WorkflowNodeSchema), edges: z23.array(WorkflowEdgeSchema).default([]) }).strict(),
|
|
20843
|
+
execution: z23.object({
|
|
20844
|
+
timeoutMs: z23.number().int().positive().optional(),
|
|
20845
|
+
retries: z23.number().int().nonnegative().default(0),
|
|
20846
|
+
concurrencyLimit: z23.number().int().positive().optional(),
|
|
20847
|
+
idempotency: z23.enum(["required", "supported", "none"]),
|
|
20848
|
+
rateLimit: z23.object({ enabled: z23.boolean(), max: z23.number().int().nonnegative(), windowMs: z23.number().int().nonnegative() }).strict().superRefine((rateLimit, context) => {
|
|
20750
20849
|
if (rateLimit.enabled && (rateLimit.max === 0 || rateLimit.windowMs === 0)) context.addIssue({ code: "custom", message: "Enabled rate limit requires positive max and windowMs." });
|
|
20751
20850
|
}).optional(),
|
|
20752
|
-
conductor:
|
|
20753
|
-
ownerApp:
|
|
20754
|
-
createTime:
|
|
20755
|
-
updateTime:
|
|
20756
|
-
createdBy:
|
|
20757
|
-
updatedBy:
|
|
20851
|
+
conductor: z23.object({
|
|
20852
|
+
ownerApp: z23.string().optional(),
|
|
20853
|
+
createTime: z23.number().int().nonnegative().optional(),
|
|
20854
|
+
updateTime: z23.number().int().nonnegative().optional(),
|
|
20855
|
+
createdBy: z23.string().optional(),
|
|
20856
|
+
updatedBy: z23.string().optional(),
|
|
20758
20857
|
failureWorkflow: ContractIdentifierSchema.optional(),
|
|
20759
|
-
schemaVersion:
|
|
20760
|
-
restartable:
|
|
20761
|
-
workflowStatusListenerEnabled:
|
|
20762
|
-
ownerEmail:
|
|
20763
|
-
timeoutPolicy:
|
|
20764
|
-
variables:
|
|
20765
|
-
inputTemplate:
|
|
20858
|
+
schemaVersion: z23.number().int().positive().optional(),
|
|
20859
|
+
restartable: z23.boolean().optional(),
|
|
20860
|
+
workflowStatusListenerEnabled: z23.boolean().optional(),
|
|
20861
|
+
ownerEmail: z23.string().email().optional(),
|
|
20862
|
+
timeoutPolicy: z23.enum(["TIME_OUT_WF", "ALERT_ONLY"]).optional(),
|
|
20863
|
+
variables: z23.record(z23.string(), JsonValueSchema).optional(),
|
|
20864
|
+
inputTemplate: z23.record(z23.string(), JsonValueSchema).optional()
|
|
20766
20865
|
}).strict()
|
|
20767
20866
|
}).strict(),
|
|
20768
|
-
triggers:
|
|
20769
|
-
views:
|
|
20770
|
-
dataContracts:
|
|
20771
|
-
governance:
|
|
20772
|
-
interfaces:
|
|
20773
|
-
openai:
|
|
20867
|
+
triggers: z23.array(WorkflowTriggerSchema).default([]),
|
|
20868
|
+
views: z23.array(z23.object({ pageRef: ContractIdentifierSchema, placement: ContractIdentifierSchema.optional() }).strict()).default([]),
|
|
20869
|
+
dataContracts: z23.object({ reads: z23.array(ContractIdentifierSchema).default([]), writes: z23.array(ContractIdentifierSchema).default([]), emits: z23.array(ContractIdentifierSchema).default([]) }).strict(),
|
|
20870
|
+
governance: z23.object({ activated: z23.boolean(), validated: z23.boolean(), validationIssues: z23.array(WorkflowValidationIssueSchema).default([]), hidden: z23.boolean().optional() }).strict(),
|
|
20871
|
+
interfaces: z23.object({
|
|
20872
|
+
openai: z23.object({ enabled: z23.boolean(), modelName: z23.string().trim().min(1).optional() }).strict(),
|
|
20774
20873
|
shortcutRef: EntityRefSchema.optional(),
|
|
20775
20874
|
preferredAppId: ContractIdentifierSchema.optional()
|
|
20776
20875
|
}).strict().superRefine((interfaces, context) => {
|
|
@@ -20789,76 +20888,76 @@ var WorkflowDefinitionSchema = z22.object({
|
|
|
20789
20888
|
});
|
|
20790
20889
|
|
|
20791
20890
|
// src/contracts/workflow-column.ts
|
|
20792
|
-
import { z as
|
|
20793
|
-
var WorkflowColumnFieldRefSchema =
|
|
20891
|
+
import { z as z24 } from "zod";
|
|
20892
|
+
var WorkflowColumnFieldRefSchema = z24.object({
|
|
20794
20893
|
ontologyId: ContractIdentifierSchema,
|
|
20795
20894
|
fieldKey: ContractIdentifierSchema
|
|
20796
20895
|
}).strict();
|
|
20797
|
-
var WorkflowColumnInputSchema =
|
|
20798
|
-
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
kind:
|
|
20803
|
-
field:
|
|
20896
|
+
var WorkflowColumnInputSchema = z24.discriminatedUnion("kind", [
|
|
20897
|
+
z24.object({ kind: z24.literal("default") }).strict(),
|
|
20898
|
+
z24.object({ kind: z24.literal("constant"), value: JsonValueSchema }).strict(),
|
|
20899
|
+
z24.object({ kind: z24.literal("field"), field: WorkflowColumnFieldRefSchema }).strict(),
|
|
20900
|
+
z24.object({
|
|
20901
|
+
kind: z24.literal("context"),
|
|
20902
|
+
field: z24.enum(["assetId", "teamId", "ontologyId", "columnId"])
|
|
20804
20903
|
}).strict()
|
|
20805
20904
|
]);
|
|
20806
|
-
var WorkflowColumnDependencySchema =
|
|
20807
|
-
|
|
20808
|
-
|
|
20809
|
-
kind:
|
|
20905
|
+
var WorkflowColumnDependencySchema = z24.discriminatedUnion("kind", [
|
|
20906
|
+
z24.object({ kind: z24.literal("field"), field: WorkflowColumnFieldRefSchema }).strict(),
|
|
20907
|
+
z24.object({
|
|
20908
|
+
kind: z24.literal("relation"),
|
|
20810
20909
|
relation: WorkflowColumnFieldRefSchema,
|
|
20811
|
-
direction:
|
|
20812
|
-
fields:
|
|
20910
|
+
direction: z24.enum(["incoming", "outgoing"]),
|
|
20911
|
+
fields: z24.array(WorkflowColumnFieldRefSchema).max(100)
|
|
20813
20912
|
}).strict()
|
|
20814
20913
|
]);
|
|
20815
|
-
var WorkflowColumnOutputPathSchema =
|
|
20816
|
-
var WorkflowColumnOutputSchema =
|
|
20817
|
-
type:
|
|
20914
|
+
var WorkflowColumnOutputPathSchema = z24.array(z24.string().min(1).max(256)).max(20);
|
|
20915
|
+
var WorkflowColumnOutputSchema = z24.object({
|
|
20916
|
+
type: z24.enum(["number", "text", "json"]),
|
|
20818
20917
|
path: WorkflowColumnOutputPathSchema,
|
|
20819
|
-
nullable:
|
|
20820
|
-
}).strict();
|
|
20821
|
-
var WorkflowColumnBindingSchema =
|
|
20822
|
-
contract:
|
|
20823
|
-
version:
|
|
20824
|
-
enabled:
|
|
20825
|
-
paused:
|
|
20826
|
-
workflow:
|
|
20918
|
+
nullable: z24.boolean().default(false)
|
|
20919
|
+
}).strict();
|
|
20920
|
+
var WorkflowColumnBindingSchema = z24.object({
|
|
20921
|
+
contract: z24.literal("WorkflowColumnBinding"),
|
|
20922
|
+
version: z24.literal(1),
|
|
20923
|
+
enabled: z24.boolean(),
|
|
20924
|
+
paused: z24.boolean().default(false),
|
|
20925
|
+
workflow: z24.object({
|
|
20827
20926
|
id: ContractIdentifierSchema,
|
|
20828
|
-
version:
|
|
20927
|
+
version: z24.number().int().positive(),
|
|
20829
20928
|
inputSchemaHash: Sha256Schema
|
|
20830
20929
|
}).strict(),
|
|
20831
|
-
inputs:
|
|
20832
|
-
dependencies:
|
|
20930
|
+
inputs: z24.record(z24.string().min(1).max(128), WorkflowColumnInputSchema),
|
|
20931
|
+
dependencies: z24.array(WorkflowColumnDependencySchema).max(100).default([]),
|
|
20833
20932
|
output: WorkflowColumnOutputSchema,
|
|
20834
|
-
policy:
|
|
20835
|
-
debounceMs:
|
|
20836
|
-
maxDelayMs:
|
|
20837
|
-
concurrency:
|
|
20933
|
+
policy: z24.object({
|
|
20934
|
+
debounceMs: z24.number().int().min(0).max(3e4).default(5e3),
|
|
20935
|
+
maxDelayMs: z24.number().int().min(0).max(3e4).default(3e4),
|
|
20936
|
+
concurrency: z24.number().int().min(1).max(32).default(2),
|
|
20838
20937
|
// Indexed queries need visible projections of their declared sources before execution.
|
|
20839
|
-
requireSearchProjection:
|
|
20938
|
+
requireSearchProjection: z24.boolean().optional()
|
|
20840
20939
|
}).strict().default({ debounceMs: 5e3, maxDelayMs: 3e4, concurrency: 2 }),
|
|
20841
20940
|
// The workflow supplies an ISO datetime with offset for one future expiry.
|
|
20842
20941
|
// Scheduling infrastructure needs no knowledge of months or business periods.
|
|
20843
|
-
expiry:
|
|
20942
|
+
expiry: z24.object({ path: WorkflowColumnOutputPathSchema }).strict().optional()
|
|
20844
20943
|
}).strict();
|
|
20845
20944
|
|
|
20846
20945
|
// src/contracts/workflow-runtime.ts
|
|
20847
|
-
import { z as
|
|
20848
|
-
var WorkflowCatalogEntrySchema =
|
|
20849
|
-
contract:
|
|
20946
|
+
import { z as z25 } from "zod";
|
|
20947
|
+
var WorkflowCatalogEntrySchema = z25.object({
|
|
20948
|
+
contract: z25.literal("WorkflowCatalogEntry"),
|
|
20850
20949
|
workflowId: ContractIdentifierSchema,
|
|
20851
20950
|
teamId: ContractIdentifierSchema,
|
|
20852
20951
|
creatorRef: EntityRefSchema,
|
|
20853
20952
|
currentDefinitionRef: EntityRefSchema,
|
|
20854
|
-
lifecycle:
|
|
20855
|
-
asset:
|
|
20856
|
-
preset:
|
|
20857
|
-
marketplacePublished:
|
|
20953
|
+
lifecycle: z25.enum(["ACTIVE", "DELETED"]),
|
|
20954
|
+
asset: z25.object({
|
|
20955
|
+
preset: z25.boolean(),
|
|
20956
|
+
marketplacePublished: z25.boolean(),
|
|
20858
20957
|
publishConfig: JsonObjectSchema.optional(),
|
|
20859
|
-
sort:
|
|
20958
|
+
sort: z25.number().int(),
|
|
20860
20959
|
forkFromRef: EntityRefSchema.optional(),
|
|
20861
|
-
notAuthorized:
|
|
20960
|
+
notAuthorized: z25.boolean()
|
|
20862
20961
|
}).strict(),
|
|
20863
20962
|
createdAt: IsoDateTimeSchema,
|
|
20864
20963
|
updatedAt: IsoDateTimeSchema,
|
|
@@ -20893,17 +20992,17 @@ var WorkflowCatalogEntrySchema = z24.object({
|
|
|
20893
20992
|
});
|
|
20894
20993
|
}
|
|
20895
20994
|
});
|
|
20896
|
-
var WorkflowPublicationSchema =
|
|
20897
|
-
contract:
|
|
20995
|
+
var WorkflowPublicationSchema = z25.object({
|
|
20996
|
+
contract: z25.literal("WorkflowPublication"),
|
|
20898
20997
|
publicationId: ContractIdentifierSchema,
|
|
20899
20998
|
definitionRef: EntityRefSchema,
|
|
20900
20999
|
runtimeDefinitionRef: EntityRefSchema,
|
|
20901
21000
|
sourceHash: Sha256Schema,
|
|
20902
21001
|
compiledHash: Sha256Schema,
|
|
20903
|
-
status:
|
|
21002
|
+
status: z25.enum(["PENDING", "PUBLISHED", "FAILED", "RETIRED"]),
|
|
20904
21003
|
publisherRef: EntityRefSchema,
|
|
20905
21004
|
publishedAt: IsoDateTimeSchema.optional(),
|
|
20906
|
-
failureReason:
|
|
21005
|
+
failureReason: z25.string().trim().min(1).optional()
|
|
20907
21006
|
}).strict().superRefine((publication, context) => {
|
|
20908
21007
|
if (publication.definitionRef.kind !== "workflow-definition") {
|
|
20909
21008
|
context.addIssue({
|
|
@@ -20934,12 +21033,12 @@ var WorkflowPublicationSchema = z24.object({
|
|
|
20934
21033
|
});
|
|
20935
21034
|
}
|
|
20936
21035
|
});
|
|
20937
|
-
var WorkflowCompletionCommitSchema =
|
|
20938
|
-
contract:
|
|
21036
|
+
var WorkflowCompletionCommitSchema = z25.object({
|
|
21037
|
+
contract: z25.literal("WorkflowCompletionCommit"),
|
|
20939
21038
|
commitId: ContractIdentifierSchema,
|
|
20940
21039
|
run: ApplicationRunSchema,
|
|
20941
|
-
outputs:
|
|
20942
|
-
artifacts:
|
|
21040
|
+
outputs: z25.array(OutputRecordSchema),
|
|
21041
|
+
artifacts: z25.array(ArtifactManifestSchema),
|
|
20943
21042
|
lineage: LineageRecordSchema,
|
|
20944
21043
|
completedAt: IsoDateTimeSchema
|
|
20945
21044
|
}).strict().superRefine((commit, context) => {
|
|
@@ -20981,15 +21080,15 @@ var WorkflowCompletionCommitSchema = z24.object({
|
|
|
20981
21080
|
}
|
|
20982
21081
|
});
|
|
20983
21082
|
});
|
|
20984
|
-
var WorkflowCompletionReceiptSchema =
|
|
20985
|
-
contract:
|
|
21083
|
+
var WorkflowCompletionReceiptSchema = z25.object({
|
|
21084
|
+
contract: z25.literal("WorkflowCompletionReceipt"),
|
|
20986
21085
|
commitId: ContractIdentifierSchema,
|
|
20987
21086
|
runRef: EntityRefSchema,
|
|
20988
|
-
outputRefs:
|
|
20989
|
-
artifactRefs:
|
|
21087
|
+
outputRefs: z25.array(EntityRefSchema),
|
|
21088
|
+
artifactRefs: z25.array(EntityRefSchema),
|
|
20990
21089
|
contentHash: Sha256Schema,
|
|
20991
21090
|
committedAt: IsoDateTimeSchema,
|
|
20992
|
-
idempotentReplay:
|
|
21091
|
+
idempotentReplay: z25.boolean()
|
|
20993
21092
|
}).strict().superRefine((receipt, context) => {
|
|
20994
21093
|
if (receipt.runRef.kind !== "application-run") {
|
|
20995
21094
|
context.addIssue({
|
|
@@ -21019,44 +21118,44 @@ var WorkflowCompletionReceiptSchema = z24.object({
|
|
|
21019
21118
|
});
|
|
21020
21119
|
|
|
21021
21120
|
// src/contracts/component-assembly.ts
|
|
21022
|
-
import { z as
|
|
21023
|
-
var member =
|
|
21121
|
+
import { z as z26 } from "zod";
|
|
21122
|
+
var member = z26.string().min(1).max(256).refine(
|
|
21024
21123
|
(value) => !["__proto__", "prototype", "constructor"].includes(value),
|
|
21025
21124
|
"Unsafe component member."
|
|
21026
21125
|
);
|
|
21027
|
-
var ComponentEventArgumentSchema =
|
|
21028
|
-
argument:
|
|
21029
|
-
path:
|
|
21126
|
+
var ComponentEventArgumentSchema = z26.object({
|
|
21127
|
+
argument: z26.number().int().min(0).max(31),
|
|
21128
|
+
path: z26.array(member).max(16).default([])
|
|
21030
21129
|
}).strict();
|
|
21031
|
-
var ComponentEventBindingSchema =
|
|
21130
|
+
var ComponentEventBindingSchema = z26.object({
|
|
21032
21131
|
port: ContractIdentifierSchema,
|
|
21033
|
-
arguments:
|
|
21034
|
-
preventDefault:
|
|
21035
|
-
stopPropagation:
|
|
21132
|
+
arguments: z26.array(ComponentEventArgumentSchema).max(32).default([]),
|
|
21133
|
+
preventDefault: z26.boolean().default(false),
|
|
21134
|
+
stopPropagation: z26.boolean().default(false)
|
|
21036
21135
|
}).strict();
|
|
21037
|
-
var ComponentMessageSchema =
|
|
21136
|
+
var ComponentMessageSchema = z26.union([
|
|
21038
21137
|
ContractIdentifierSchema,
|
|
21039
|
-
|
|
21040
|
-
|
|
21138
|
+
z26.object({ textI18n: I18nTextSchema }).strict(),
|
|
21139
|
+
z26.object({ key: ContractIdentifierSchema, values: z26.record(member, z26.union([z26.string(), z26.number().finite(), z26.boolean()])).default({}) }).strict()
|
|
21041
21140
|
]);
|
|
21042
|
-
var ComponentMessageBindingSchema =
|
|
21043
|
-
path:
|
|
21141
|
+
var ComponentMessageBindingSchema = z26.object({
|
|
21142
|
+
path: z26.array(z26.union([
|
|
21044
21143
|
member.refine((value) => !/[\u0000-\u001f\u007f-\u009f]/.test(value), "Invalid component path member."),
|
|
21045
|
-
|
|
21144
|
+
z26.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER)
|
|
21046
21145
|
])).min(1).max(16),
|
|
21047
21146
|
message: ComponentMessageSchema
|
|
21048
21147
|
}).strict();
|
|
21049
|
-
var ComponentAssemblySchema =
|
|
21050
|
-
contract:
|
|
21051
|
-
schemaVersion:
|
|
21148
|
+
var ComponentAssemblySchema = z26.object({
|
|
21149
|
+
contract: z26.literal("ComponentAssembly"),
|
|
21150
|
+
schemaVersion: z26.literal(1),
|
|
21052
21151
|
props: JsonObjectSchema.default({}),
|
|
21053
|
-
events:
|
|
21152
|
+
events: z26.record(member, ComponentEventBindingSchema).default({}),
|
|
21054
21153
|
// Each name remains an explicit RenderTree slot; array order controls composition.
|
|
21055
|
-
slots:
|
|
21056
|
-
renderers:
|
|
21057
|
-
hosts:
|
|
21058
|
-
messages:
|
|
21059
|
-
messageBindings:
|
|
21154
|
+
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({}),
|
|
21155
|
+
renderers: z26.record(member, ContractIdentifierSchema).default({}),
|
|
21156
|
+
hosts: z26.record(member, ContractIdentifierSchema).default({}),
|
|
21157
|
+
messages: z26.record(member, ComponentMessageSchema).default({}),
|
|
21158
|
+
messageBindings: z26.array(ComponentMessageBindingSchema).max(256).optional()
|
|
21060
21159
|
}).strict().superRefine((value, context) => {
|
|
21061
21160
|
const paths = value.messageBindings?.map((binding) => binding.path) ?? [];
|
|
21062
21161
|
for (const [index, path] of paths.entries()) {
|
|
@@ -21076,75 +21175,75 @@ var ComponentAssemblySchema = z25.object({
|
|
|
21076
21175
|
});
|
|
21077
21176
|
|
|
21078
21177
|
// src/contracts/record-editor-draft.ts
|
|
21079
|
-
import { z as
|
|
21080
|
-
var member2 =
|
|
21081
|
-
var RecordEditorPathSchema =
|
|
21082
|
-
var RecordEditorFieldErrorSchema =
|
|
21083
|
-
var RecordEditorDraftSchema =
|
|
21084
|
-
revision:
|
|
21178
|
+
import { z as z27 } from "zod";
|
|
21179
|
+
var member2 = z27.string().min(1).max(256).refine((value) => !["__proto__", "prototype", "constructor"].includes(value), "Unsafe editor path.");
|
|
21180
|
+
var RecordEditorPathSchema = z27.array(z27.union([member2, z27.object({ itemId: z27.string().min(1).max(256), idKey: member2.default("id") }).strict()])).max(32);
|
|
21181
|
+
var RecordEditorFieldErrorSchema = z27.object({ path: RecordEditorPathSchema, code: z27.string().min(1).max(256) }).strict();
|
|
21182
|
+
var RecordEditorDraftSchema = z27.object({
|
|
21183
|
+
revision: z27.string().min(1).max(256),
|
|
21085
21184
|
original: JsonObjectSchema,
|
|
21086
21185
|
value: JsonObjectSchema,
|
|
21087
|
-
touched:
|
|
21088
|
-
errors:
|
|
21089
|
-
}).strict();
|
|
21090
|
-
var RecordEditorDraftOperationSchema =
|
|
21091
|
-
|
|
21092
|
-
|
|
21093
|
-
|
|
21094
|
-
|
|
21095
|
-
|
|
21096
|
-
|
|
21186
|
+
touched: z27.array(RecordEditorPathSchema).max(4096),
|
|
21187
|
+
errors: z27.array(RecordEditorFieldErrorSchema).max(4096)
|
|
21188
|
+
}).strict();
|
|
21189
|
+
var RecordEditorDraftOperationSchema = z27.discriminatedUnion("kind", [
|
|
21190
|
+
z27.object({ kind: z27.literal("set"), path: RecordEditorPathSchema, value: JsonValueSchema }).strict(),
|
|
21191
|
+
z27.object({ kind: z27.literal("touch"), path: RecordEditorPathSchema }).strict(),
|
|
21192
|
+
z27.object({ kind: z27.literal("reset"), revision: z27.string().min(1).max(256), value: JsonObjectSchema }).strict(),
|
|
21193
|
+
z27.object({ kind: z27.literal("insert"), path: RecordEditorPathSchema, idKey: member2.default("id"), value: JsonObjectSchema, beforeId: z27.string().min(1).optional() }).strict(),
|
|
21194
|
+
z27.object({ kind: z27.literal("remove"), path: RecordEditorPathSchema, idKey: member2.default("id"), itemId: z27.string().min(1) }).strict(),
|
|
21195
|
+
z27.object({ kind: z27.literal("move"), path: RecordEditorPathSchema, idKey: member2.default("id"), itemId: z27.string().min(1), beforeId: z27.string().min(1).optional() }).strict()
|
|
21097
21196
|
]);
|
|
21098
|
-
var RecordEditorValidationDetailsSchema =
|
|
21099
|
-
contract:
|
|
21100
|
-
schemaVersion:
|
|
21101
|
-
errors:
|
|
21197
|
+
var RecordEditorValidationDetailsSchema = z27.object({
|
|
21198
|
+
contract: z27.literal("RecordEditorValidation"),
|
|
21199
|
+
schemaVersion: z27.literal(1),
|
|
21200
|
+
errors: z27.array(RecordEditorFieldErrorSchema).min(1).max(256)
|
|
21102
21201
|
}).strict();
|
|
21103
|
-
var RecordEditorSubmissionSnapshotSchema =
|
|
21104
|
-
revision:
|
|
21202
|
+
var RecordEditorSubmissionSnapshotSchema = z27.object({
|
|
21203
|
+
revision: z27.string().min(1).max(256),
|
|
21105
21204
|
value: JsonObjectSchema
|
|
21106
21205
|
}).strict();
|
|
21107
21206
|
|
|
21108
21207
|
// src/contracts/page-stream.ts
|
|
21109
|
-
import { z as
|
|
21208
|
+
import { z as z28 } from "zod";
|
|
21110
21209
|
var PAGE_STREAM_MAX_FRAME_BYTES = 256 * 1024;
|
|
21111
21210
|
var PAGE_STREAM_MAX_BUFFER_BYTES = 2 * 1024 * 1024;
|
|
21112
21211
|
var PAGE_STREAM_MAX_BUFFER_EVENTS = 2048;
|
|
21113
21212
|
var PAGE_STREAM_MAX_CURSOR_LENGTH = 2048;
|
|
21114
21213
|
var PAGE_STREAM_MAX_INPUT_BYTES = 8192;
|
|
21115
21214
|
var PAGE_STREAM_MAX_EVENT_ITEMS = 256;
|
|
21116
|
-
var StreamIdSchema =
|
|
21117
|
-
var CursorSchema =
|
|
21118
|
-
var SequenceSchema =
|
|
21119
|
-
var PageStreamDescriptorSchema =
|
|
21120
|
-
contract:
|
|
21121
|
-
schemaVersion:
|
|
21215
|
+
var StreamIdSchema = z28.string().min(1).max(256).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
21216
|
+
var CursorSchema = z28.string().min(1).max(PAGE_STREAM_MAX_CURSOR_LENGTH).regex(/^[^\u0000-\u001f\u007f]+$/);
|
|
21217
|
+
var SequenceSchema = z28.number().int().min(1).max(Number.MAX_SAFE_INTEGER);
|
|
21218
|
+
var PageStreamDescriptorSchema = z28.object({
|
|
21219
|
+
contract: z28.literal("PageStreamDescriptor"),
|
|
21220
|
+
schemaVersion: z28.literal(1),
|
|
21122
21221
|
streamId: StreamIdSchema,
|
|
21123
21222
|
expiresAt: IsoDateTimeSchema,
|
|
21124
|
-
channel:
|
|
21223
|
+
channel: z28.enum(["terminal", "events"]),
|
|
21125
21224
|
cursor: CursorSchema.optional()
|
|
21126
21225
|
}).strict();
|
|
21127
|
-
var PageStreamConnectSchema =
|
|
21226
|
+
var PageStreamConnectSchema = z28.object({ cursor: CursorSchema.optional() }).strict();
|
|
21128
21227
|
var base = {
|
|
21129
|
-
contract:
|
|
21130
|
-
schemaVersion:
|
|
21228
|
+
contract: z28.literal("PageStreamEvent"),
|
|
21229
|
+
schemaVersion: z28.literal(1),
|
|
21131
21230
|
streamId: StreamIdSchema,
|
|
21132
21231
|
sequence: SequenceSchema,
|
|
21133
21232
|
cursor: CursorSchema
|
|
21134
21233
|
};
|
|
21135
|
-
var PageStreamEventSchema =
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21234
|
+
var PageStreamEventSchema = z28.discriminatedUnion("type", [
|
|
21235
|
+
z28.object({ ...base, type: z28.literal("snapshot"), payload: z28.object({ model: JsonObjectSchema }).strict() }).strict(),
|
|
21236
|
+
z28.object({ ...base, type: z28.literal("delta"), payload: z28.object({ events: z28.array(JsonObjectSchema).max(PAGE_STREAM_MAX_EVENT_ITEMS) }).strict() }).strict(),
|
|
21237
|
+
z28.object({ ...base, type: z28.literal("end"), payload: z28.object({}).strict() }).strict(),
|
|
21238
|
+
z28.object({ ...base, type: z28.literal("error"), payload: z28.object({ code: z28.string().min(1).max(128), retryable: z28.boolean() }).strict() }).strict()
|
|
21140
21239
|
]).superRefine((value, context) => {
|
|
21141
21240
|
if (new TextEncoder().encode(JSON.stringify(value)).byteLength > PAGE_STREAM_MAX_FRAME_BYTES)
|
|
21142
21241
|
context.addIssue({ code: "custom", message: "Page stream frame exceeds the UTF-8 byte limit." });
|
|
21143
21242
|
});
|
|
21144
|
-
var PageStreamControlSchema =
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21243
|
+
var PageStreamControlSchema = z28.discriminatedUnion("port", [
|
|
21244
|
+
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(),
|
|
21245
|
+
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(),
|
|
21246
|
+
z28.object({ requestId: z28.string().uuid(), port: z28.literal("stream.disconnect"), payload: z28.object({}).strict() }).strict()
|
|
21148
21247
|
]).superRefine((value, context) => {
|
|
21149
21248
|
if (value.port === "terminal.input" && new TextEncoder().encode(value.payload.data).byteLength > PAGE_STREAM_MAX_INPUT_BYTES)
|
|
21150
21249
|
context.addIssue({ code: "custom", path: ["payload", "data"], message: "Terminal input exceeds the UTF-8 byte limit." });
|
|
@@ -21160,7 +21259,7 @@ var pageStreamRoutes = {
|
|
|
21160
21259
|
terminal: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/terminal`,
|
|
21161
21260
|
control: (releaseSlotId, bindingId, streamId) => `${route(releaseSlotId, bindingId, streamId)}/control`
|
|
21162
21261
|
};
|
|
21163
|
-
var PageStreamControlResultSchema =
|
|
21262
|
+
var PageStreamControlResultSchema = z28.object({ requestId: z28.string().uuid(), accepted: z28.literal(true) }).strict();
|
|
21164
21263
|
|
|
21165
21264
|
// src/schemas/index.ts
|
|
21166
21265
|
var canonicalContractSchemas = {
|
|
@@ -26824,6 +26923,10 @@ export {
|
|
|
26824
26923
|
DeclarativeCreateTemplateChoiceSchema,
|
|
26825
26924
|
DeclarativeCreateTemplateRegistrationSchema,
|
|
26826
26925
|
DeclarativeDefaultPolicyRegistrationSchema,
|
|
26926
|
+
DeclarativeDocumentImportIntentSchema,
|
|
26927
|
+
DeclarativeDocumentImportPlanSchema,
|
|
26928
|
+
DeclarativeDocumentImportRequestSchema,
|
|
26929
|
+
DeclarativeDocumentImportResultSchema,
|
|
26827
26930
|
DeclarativeDocumentSchema,
|
|
26828
26931
|
DeclarativeDocumentSummarySchema,
|
|
26829
26932
|
DeclarativeDomainCommandDefinitionRegistrationSchema,
|
|
@@ -26832,6 +26935,7 @@ export {
|
|
|
26832
26935
|
DeclarativeEnvironmentChoiceSchema,
|
|
26833
26936
|
DeclarativeEnvironmentResourceDocumentSchema,
|
|
26834
26937
|
DeclarativeErrorEnvelopeSchema,
|
|
26938
|
+
DeclarativeImportDocumentSchema,
|
|
26835
26939
|
DeclarativeLayoutPolicyResourceDocumentSchema,
|
|
26836
26940
|
DeclarativeLegacyWorkbenchSummarySchema,
|
|
26837
26941
|
DeclarativeLifecycleSchema,
|