@inf-monkeys-tech/monkeys 1.1.6 → 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 +0 -7281
- 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/esm/contracts/index.mjs +0 -82
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +0 -82
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +0 -72
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +0 -72
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -14066,11 +14066,6 @@ var DeclarativeAuthoringActionSchema = z18.enum([
|
|
|
14066
14066
|
"publish",
|
|
14067
14067
|
"rollback"
|
|
14068
14068
|
]);
|
|
14069
|
-
var DeclarativeLegacyMigrationKindSchema = z18.enum([
|
|
14070
|
-
"page",
|
|
14071
|
-
"page-data-assets",
|
|
14072
|
-
"workbench"
|
|
14073
|
-
]);
|
|
14074
14069
|
var DeclarativeErrorEnvelopeSchema = z18.object({
|
|
14075
14070
|
code: z18.string().trim().min(1),
|
|
14076
14071
|
message: z18.string().trim().min(1),
|
|
@@ -15552,73 +15547,6 @@ var DeclarativePublicationResultSchema = z18.union([
|
|
|
15552
15547
|
DeclarativeDirectPublicationResultSchema,
|
|
15553
15548
|
DeclarativeAtomicPublicationPlanResultSchema
|
|
15554
15549
|
]);
|
|
15555
|
-
var DeclarativeMigrationDiffEntrySchema = z18.object({
|
|
15556
|
-
path: z18.string().trim().startsWith("/").max(1024),
|
|
15557
|
-
status: z18.enum(["added", "changed", "removed", "unchanged"]),
|
|
15558
|
-
legacyValueHash: Sha256Schema.optional(),
|
|
15559
|
-
declarativeValueHash: Sha256Schema.optional()
|
|
15560
|
-
}).strict();
|
|
15561
|
-
var DeclarativeMigrationBlockerSchema = z18.object({
|
|
15562
|
-
code: ContractIdentifierSchema,
|
|
15563
|
-
path: z18.string().trim().max(1024).optional(),
|
|
15564
|
-
message: z18.string().trim().min(1).max(4096)
|
|
15565
|
-
}).strict();
|
|
15566
|
-
var DeclarativeLegacyMigrationInspectionSchema = z18.object({
|
|
15567
|
-
contract: z18.literal("DeclarativeLegacyMigrationInspection"),
|
|
15568
|
-
schemaVersion: z18.literal(1),
|
|
15569
|
-
migrationKind: DeclarativeLegacyMigrationKindSchema,
|
|
15570
|
-
legacyResourceId: ContractIdentifierSchema,
|
|
15571
|
-
sourceRevisionRef: RevisionRefSchema,
|
|
15572
|
-
sourceContentHash: Sha256Schema,
|
|
15573
|
-
legacyAdapterRevisionRef: RevisionRefSchema,
|
|
15574
|
-
targetResourceRef: StableRefSchema,
|
|
15575
|
-
environmentRevisionRef: RevisionRefSchema,
|
|
15576
|
-
routeSpaceRevisionRef: RevisionRefSchema,
|
|
15577
|
-
normalizedPath: z18.string().trim().startsWith("/").max(2048),
|
|
15578
|
-
takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
|
|
15579
|
-
diff: z18.array(DeclarativeMigrationDiffEntrySchema).max(256),
|
|
15580
|
-
blockers: z18.array(DeclarativeMigrationBlockerSchema).max(128),
|
|
15581
|
-
canCreateDraft: z18.boolean(),
|
|
15582
|
-
inspectionFingerprint: Sha256Schema
|
|
15583
|
-
}).strict().superRefine((value, context) => {
|
|
15584
|
-
const expectedKind = value.migrationKind === "workbench" ? "workbench" : "page";
|
|
15585
|
-
if (value.targetResourceRef.kind !== expectedKind) {
|
|
15586
|
-
context.addIssue({
|
|
15587
|
-
code: "custom",
|
|
15588
|
-
path: ["targetResourceRef", "kind"],
|
|
15589
|
-
message: `A ${value.migrationKind} migration must target ${expectedKind}.`
|
|
15590
|
-
});
|
|
15591
|
-
}
|
|
15592
|
-
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) {
|
|
15593
|
-
context.addIssue({
|
|
15594
|
-
code: "custom",
|
|
15595
|
-
path: ["takeoverAuthorization"],
|
|
15596
|
-
message: "The takeover authority must bind the exact inspected source, path and target."
|
|
15597
|
-
});
|
|
15598
|
-
}
|
|
15599
|
-
if (value.canCreateDraft !== (value.blockers.length === 0)) {
|
|
15600
|
-
context.addIssue({
|
|
15601
|
-
code: "custom",
|
|
15602
|
-
path: ["canCreateDraft"],
|
|
15603
|
-
message: "Draft creation is allowed exactly when inspection has no blockers."
|
|
15604
|
-
});
|
|
15605
|
-
}
|
|
15606
|
-
});
|
|
15607
|
-
var DeclarativeLegacyMigrationCreateDraftIntentSchema = z18.object({
|
|
15608
|
-
inspectionFingerprint: Sha256Schema,
|
|
15609
|
-
expectedSourceRevisionRef: RevisionRefSchema,
|
|
15610
|
-
expectedSourceContentHash: Sha256Schema,
|
|
15611
|
-
idempotencyKey: z18.string().trim().min(1).max(256)
|
|
15612
|
-
}).strict();
|
|
15613
|
-
var DeclarativeLegacyMigrationCreateDraftResultSchema = z18.object({
|
|
15614
|
-
migrationKind: DeclarativeLegacyMigrationKindSchema,
|
|
15615
|
-
legacyResourceId: ContractIdentifierSchema,
|
|
15616
|
-
inspectionFingerprint: Sha256Schema,
|
|
15617
|
-
sourceRevisionRef: RevisionRefSchema,
|
|
15618
|
-
sourceContentHash: Sha256Schema,
|
|
15619
|
-
takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
|
|
15620
|
-
draft: DeclarativeDraftResultSchema
|
|
15621
|
-
}).strict();
|
|
15622
15550
|
var DeclarativeRetireResultSchema = z18.object({
|
|
15623
15551
|
action: z18.literal("retire"),
|
|
15624
15552
|
resourceKind: DeclarativeResourceKindSchema,
|