@inf-monkeys-tech/monkeys 1.1.5 → 1.1.7
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 +251 -7451
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +2 -102
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +12 -0
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +9 -0
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/page-expression.d.ts +1 -0
- package/lib/contracts/page-expression.d.ts.map +1 -1
- package/lib/contracts/page-expression.js +1 -1
- package/lib/contracts/page-expression.js.map +1 -1
- package/lib/esm/contracts/index.mjs +11 -83
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +20 -84
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +20 -74
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +11 -73
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/overlay-node.schema.json +2 -1
- package/lib/json-schema/page-runtime-bundle.schema.json +21 -1
- package/lib/json-schema/page.schema.json +21 -1
- package/lib/json-schema/render-node.schema.json +2 -1
- package/lib/json-schema/render-tree.schema.json +2 -1
- package/lib/runtime/page-expression.d.ts.map +1 -1
- package/lib/runtime/page-expression.js +11 -1
- package/lib/runtime/page-expression.js.map +1 -1
- package/lib/schemas/index.d.ts +3 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6838,7 +6838,8 @@ var PageOperatorSchema = z5.enum([
|
|
|
6838
6838
|
"slice",
|
|
6839
6839
|
"trim",
|
|
6840
6840
|
"fixed",
|
|
6841
|
-
"number-format"
|
|
6841
|
+
"number-format",
|
|
6842
|
+
"encode-uri-component"
|
|
6842
6843
|
]);
|
|
6843
6844
|
var RecursivePageExpressionSchema = z5.lazy(() => z5.discriminatedUnion("kind", [
|
|
6844
6845
|
z5.object({ kind: z5.literal("literal"), value: JsonValueSchema }).strict(),
|
|
@@ -10443,6 +10444,9 @@ var QueryBindingSchema = z14.object({
|
|
|
10443
10444
|
).max(32).optional(),
|
|
10444
10445
|
queryWhen: PageStateActivationSchema.optional(),
|
|
10445
10446
|
accessFailure: z14.literal("render-forbidden").optional(),
|
|
10447
|
+
draftRetention: z14.object({
|
|
10448
|
+
identityParameters: z14.array(ContractIdentifierSchema).min(1).max(32)
|
|
10449
|
+
}).strict().optional(),
|
|
10446
10450
|
resultStateBindings: z14.array(QueryResultStateBindingSchema).max(32).optional(),
|
|
10447
10451
|
execution: z14.enum(["server", "local-state"]).default("server"),
|
|
10448
10452
|
pagination: z14.enum(["none", "cursor", "offset"]),
|
|
@@ -10454,6 +10458,12 @@ var QueryBindingSchema = z14.object({
|
|
|
10454
10458
|
when: PageExpressionSchema.optional()
|
|
10455
10459
|
}).strict().optional()
|
|
10456
10460
|
}).strict().superRefine((value, context) => {
|
|
10461
|
+
if (value.draftRetention) {
|
|
10462
|
+
const names = value.draftRetention.identityParameters;
|
|
10463
|
+
if (value.execution !== "server" || new Set(names).size !== names.length || names.some((name) => !Object.prototype.hasOwnProperty.call(value.parameters, name))) {
|
|
10464
|
+
context.addIssue({ code: "custom", path: ["draftRetention"], message: "Draft retention requires distinct declared Server query identity parameters." });
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10457
10467
|
if (value.targetProjection) {
|
|
10458
10468
|
if (value.targetProjection.schemaRevisionRef.kind !== "schema")
|
|
10459
10469
|
context.addIssue({
|
|
@@ -14056,11 +14066,6 @@ var DeclarativeAuthoringActionSchema = z18.enum([
|
|
|
14056
14066
|
"publish",
|
|
14057
14067
|
"rollback"
|
|
14058
14068
|
]);
|
|
14059
|
-
var DeclarativeLegacyMigrationKindSchema = z18.enum([
|
|
14060
|
-
"page",
|
|
14061
|
-
"page-data-assets",
|
|
14062
|
-
"workbench"
|
|
14063
|
-
]);
|
|
14064
14069
|
var DeclarativeErrorEnvelopeSchema = z18.object({
|
|
14065
14070
|
code: z18.string().trim().min(1),
|
|
14066
14071
|
message: z18.string().trim().min(1),
|
|
@@ -15542,73 +15547,6 @@ var DeclarativePublicationResultSchema = z18.union([
|
|
|
15542
15547
|
DeclarativeDirectPublicationResultSchema,
|
|
15543
15548
|
DeclarativeAtomicPublicationPlanResultSchema
|
|
15544
15549
|
]);
|
|
15545
|
-
var DeclarativeMigrationDiffEntrySchema = z18.object({
|
|
15546
|
-
path: z18.string().trim().startsWith("/").max(1024),
|
|
15547
|
-
status: z18.enum(["added", "changed", "removed", "unchanged"]),
|
|
15548
|
-
legacyValueHash: Sha256Schema.optional(),
|
|
15549
|
-
declarativeValueHash: Sha256Schema.optional()
|
|
15550
|
-
}).strict();
|
|
15551
|
-
var DeclarativeMigrationBlockerSchema = z18.object({
|
|
15552
|
-
code: ContractIdentifierSchema,
|
|
15553
|
-
path: z18.string().trim().max(1024).optional(),
|
|
15554
|
-
message: z18.string().trim().min(1).max(4096)
|
|
15555
|
-
}).strict();
|
|
15556
|
-
var DeclarativeLegacyMigrationInspectionSchema = z18.object({
|
|
15557
|
-
contract: z18.literal("DeclarativeLegacyMigrationInspection"),
|
|
15558
|
-
schemaVersion: z18.literal(1),
|
|
15559
|
-
migrationKind: DeclarativeLegacyMigrationKindSchema,
|
|
15560
|
-
legacyResourceId: ContractIdentifierSchema,
|
|
15561
|
-
sourceRevisionRef: RevisionRefSchema,
|
|
15562
|
-
sourceContentHash: Sha256Schema,
|
|
15563
|
-
legacyAdapterRevisionRef: RevisionRefSchema,
|
|
15564
|
-
targetResourceRef: StableRefSchema,
|
|
15565
|
-
environmentRevisionRef: RevisionRefSchema,
|
|
15566
|
-
routeSpaceRevisionRef: RevisionRefSchema,
|
|
15567
|
-
normalizedPath: z18.string().trim().startsWith("/").max(2048),
|
|
15568
|
-
takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
|
|
15569
|
-
diff: z18.array(DeclarativeMigrationDiffEntrySchema).max(256),
|
|
15570
|
-
blockers: z18.array(DeclarativeMigrationBlockerSchema).max(128),
|
|
15571
|
-
canCreateDraft: z18.boolean(),
|
|
15572
|
-
inspectionFingerprint: Sha256Schema
|
|
15573
|
-
}).strict().superRefine((value, context) => {
|
|
15574
|
-
const expectedKind = value.migrationKind === "workbench" ? "workbench" : "page";
|
|
15575
|
-
if (value.targetResourceRef.kind !== expectedKind) {
|
|
15576
|
-
context.addIssue({
|
|
15577
|
-
code: "custom",
|
|
15578
|
-
path: ["targetResourceRef", "kind"],
|
|
15579
|
-
message: `A ${value.migrationKind} migration must target ${expectedKind}.`
|
|
15580
|
-
});
|
|
15581
|
-
}
|
|
15582
|
-
if (value.takeoverAuthorization.inspectedSourceContentHash !== value.sourceContentHash || value.takeoverAuthorization.normalizedPath !== value.normalizedPath || value.takeoverAuthorization.targetResourceRef.kind !== value.targetResourceRef.kind || value.takeoverAuthorization.targetResourceRef.id !== value.targetResourceRef.id || value.takeoverAuthorization.targetResourceRef.ownerRepo !== value.targetResourceRef.ownerRepo) {
|
|
15583
|
-
context.addIssue({
|
|
15584
|
-
code: "custom",
|
|
15585
|
-
path: ["takeoverAuthorization"],
|
|
15586
|
-
message: "The takeover authority must bind the exact inspected source, path and target."
|
|
15587
|
-
});
|
|
15588
|
-
}
|
|
15589
|
-
if (value.canCreateDraft !== (value.blockers.length === 0)) {
|
|
15590
|
-
context.addIssue({
|
|
15591
|
-
code: "custom",
|
|
15592
|
-
path: ["canCreateDraft"],
|
|
15593
|
-
message: "Draft creation is allowed exactly when inspection has no blockers."
|
|
15594
|
-
});
|
|
15595
|
-
}
|
|
15596
|
-
});
|
|
15597
|
-
var DeclarativeLegacyMigrationCreateDraftIntentSchema = z18.object({
|
|
15598
|
-
inspectionFingerprint: Sha256Schema,
|
|
15599
|
-
expectedSourceRevisionRef: RevisionRefSchema,
|
|
15600
|
-
expectedSourceContentHash: Sha256Schema,
|
|
15601
|
-
idempotencyKey: z18.string().trim().min(1).max(256)
|
|
15602
|
-
}).strict();
|
|
15603
|
-
var DeclarativeLegacyMigrationCreateDraftResultSchema = z18.object({
|
|
15604
|
-
migrationKind: DeclarativeLegacyMigrationKindSchema,
|
|
15605
|
-
legacyResourceId: ContractIdentifierSchema,
|
|
15606
|
-
inspectionFingerprint: Sha256Schema,
|
|
15607
|
-
sourceRevisionRef: RevisionRefSchema,
|
|
15608
|
-
sourceContentHash: Sha256Schema,
|
|
15609
|
-
takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
|
|
15610
|
-
draft: DeclarativeDraftResultSchema
|
|
15611
|
-
}).strict();
|
|
15612
15550
|
var DeclarativeRetireResultSchema = z18.object({
|
|
15613
15551
|
action: z18.literal("retire"),
|
|
15614
15552
|
resourceKind: DeclarativeResourceKindSchema,
|