@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
package/lib/esm/index.mjs
CHANGED
|
@@ -15007,11 +15007,6 @@ var DeclarativeAuthoringActionSchema = z18.enum([
|
|
|
15007
15007
|
"publish",
|
|
15008
15008
|
"rollback"
|
|
15009
15009
|
]);
|
|
15010
|
-
var DeclarativeLegacyMigrationKindSchema = z18.enum([
|
|
15011
|
-
"page",
|
|
15012
|
-
"page-data-assets",
|
|
15013
|
-
"workbench"
|
|
15014
|
-
]);
|
|
15015
15010
|
var encodePath = (value) => encodeURIComponent(value);
|
|
15016
15011
|
var declarativeControlRoutes = {
|
|
15017
15012
|
validate: (kind, resourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/resources/${kind}/${encodePath(resourceId)}/validate`,
|
|
@@ -15032,10 +15027,6 @@ var declarativeControlRoutes = {
|
|
|
15032
15027
|
navigationPlacements: () => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/navigation/placements`,
|
|
15033
15028
|
navigationImport: (placement) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/navigation/placements/${encodePath(placement)}/import`,
|
|
15034
15029
|
navigationSeedMigration: (placement) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/navigation/placements/${encodePath(placement)}/seed-migration`,
|
|
15035
|
-
migrationInspect: (kind, legacyResourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/migrations/${kind}/${encodePath(legacyResourceId)}/inspect`,
|
|
15036
|
-
migrationCreateDraft: (kind, legacyResourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/migrations/${kind}/${encodePath(legacyResourceId)}/draft`,
|
|
15037
|
-
migrationCutover: (kind, targetResourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/resources/${kind === "workbench" ? "workbench" : "page"}/${encodePath(targetResourceId)}/publish`,
|
|
15038
|
-
migrationRollback: (kind, targetResourceId) => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/resources/${kind === "workbench" ? "workbench" : "page"}/${encodePath(targetResourceId)}/rollback`,
|
|
15039
15030
|
publicationPlan: () => `${DECLARATIVE_CONTROL_API_PREFIX}/authoring/publication-plans`,
|
|
15040
15031
|
runtimeResolve: () => `${DECLARATIVE_CONTROL_API_PREFIX}/runtime/resolve`,
|
|
15041
15032
|
runtimeNavigationBootstrap: () => `${DECLARATIVE_CONTROL_API_PREFIX}/runtime/navigations/bootstrap`,
|
|
@@ -16531,73 +16522,6 @@ var DeclarativePublicationResultSchema = z18.union([
|
|
|
16531
16522
|
DeclarativeDirectPublicationResultSchema,
|
|
16532
16523
|
DeclarativeAtomicPublicationPlanResultSchema
|
|
16533
16524
|
]);
|
|
16534
|
-
var DeclarativeMigrationDiffEntrySchema = z18.object({
|
|
16535
|
-
path: z18.string().trim().startsWith("/").max(1024),
|
|
16536
|
-
status: z18.enum(["added", "changed", "removed", "unchanged"]),
|
|
16537
|
-
legacyValueHash: Sha256Schema.optional(),
|
|
16538
|
-
declarativeValueHash: Sha256Schema.optional()
|
|
16539
|
-
}).strict();
|
|
16540
|
-
var DeclarativeMigrationBlockerSchema = z18.object({
|
|
16541
|
-
code: ContractIdentifierSchema,
|
|
16542
|
-
path: z18.string().trim().max(1024).optional(),
|
|
16543
|
-
message: z18.string().trim().min(1).max(4096)
|
|
16544
|
-
}).strict();
|
|
16545
|
-
var DeclarativeLegacyMigrationInspectionSchema = z18.object({
|
|
16546
|
-
contract: z18.literal("DeclarativeLegacyMigrationInspection"),
|
|
16547
|
-
schemaVersion: z18.literal(1),
|
|
16548
|
-
migrationKind: DeclarativeLegacyMigrationKindSchema,
|
|
16549
|
-
legacyResourceId: ContractIdentifierSchema,
|
|
16550
|
-
sourceRevisionRef: RevisionRefSchema,
|
|
16551
|
-
sourceContentHash: Sha256Schema,
|
|
16552
|
-
legacyAdapterRevisionRef: RevisionRefSchema,
|
|
16553
|
-
targetResourceRef: StableRefSchema,
|
|
16554
|
-
environmentRevisionRef: RevisionRefSchema,
|
|
16555
|
-
routeSpaceRevisionRef: RevisionRefSchema,
|
|
16556
|
-
normalizedPath: z18.string().trim().startsWith("/").max(2048),
|
|
16557
|
-
takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
|
|
16558
|
-
diff: z18.array(DeclarativeMigrationDiffEntrySchema).max(256),
|
|
16559
|
-
blockers: z18.array(DeclarativeMigrationBlockerSchema).max(128),
|
|
16560
|
-
canCreateDraft: z18.boolean(),
|
|
16561
|
-
inspectionFingerprint: Sha256Schema
|
|
16562
|
-
}).strict().superRefine((value, context) => {
|
|
16563
|
-
const expectedKind = value.migrationKind === "workbench" ? "workbench" : "page";
|
|
16564
|
-
if (value.targetResourceRef.kind !== expectedKind) {
|
|
16565
|
-
context.addIssue({
|
|
16566
|
-
code: "custom",
|
|
16567
|
-
path: ["targetResourceRef", "kind"],
|
|
16568
|
-
message: `A ${value.migrationKind} migration must target ${expectedKind}.`
|
|
16569
|
-
});
|
|
16570
|
-
}
|
|
16571
|
-
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) {
|
|
16572
|
-
context.addIssue({
|
|
16573
|
-
code: "custom",
|
|
16574
|
-
path: ["takeoverAuthorization"],
|
|
16575
|
-
message: "The takeover authority must bind the exact inspected source, path and target."
|
|
16576
|
-
});
|
|
16577
|
-
}
|
|
16578
|
-
if (value.canCreateDraft !== (value.blockers.length === 0)) {
|
|
16579
|
-
context.addIssue({
|
|
16580
|
-
code: "custom",
|
|
16581
|
-
path: ["canCreateDraft"],
|
|
16582
|
-
message: "Draft creation is allowed exactly when inspection has no blockers."
|
|
16583
|
-
});
|
|
16584
|
-
}
|
|
16585
|
-
});
|
|
16586
|
-
var DeclarativeLegacyMigrationCreateDraftIntentSchema = z18.object({
|
|
16587
|
-
inspectionFingerprint: Sha256Schema,
|
|
16588
|
-
expectedSourceRevisionRef: RevisionRefSchema,
|
|
16589
|
-
expectedSourceContentHash: Sha256Schema,
|
|
16590
|
-
idempotencyKey: z18.string().trim().min(1).max(256)
|
|
16591
|
-
}).strict();
|
|
16592
|
-
var DeclarativeLegacyMigrationCreateDraftResultSchema = z18.object({
|
|
16593
|
-
migrationKind: DeclarativeLegacyMigrationKindSchema,
|
|
16594
|
-
legacyResourceId: ContractIdentifierSchema,
|
|
16595
|
-
inspectionFingerprint: Sha256Schema,
|
|
16596
|
-
sourceRevisionRef: RevisionRefSchema,
|
|
16597
|
-
sourceContentHash: Sha256Schema,
|
|
16598
|
-
takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
|
|
16599
|
-
draft: DeclarativeDraftResultSchema
|
|
16600
|
-
}).strict();
|
|
16601
16525
|
var DECLARATIVE_MIGRATION_ERROR_CODES = {
|
|
16602
16526
|
sourceChanged: "DECLARATIVE_LEGACY_SOURCE_CHANGED",
|
|
16603
16527
|
reservedTakeoverForbidden: "DECLARATIVE_RESERVED_ROUTE_TAKEOVER_FORBIDDEN",
|
|
@@ -26859,14 +26783,8 @@ export {
|
|
|
26859
26783
|
DeclarativeEnvironmentResourceDocumentSchema,
|
|
26860
26784
|
DeclarativeErrorEnvelopeSchema,
|
|
26861
26785
|
DeclarativeLayoutPolicyResourceDocumentSchema,
|
|
26862
|
-
DeclarativeLegacyMigrationCreateDraftIntentSchema,
|
|
26863
|
-
DeclarativeLegacyMigrationCreateDraftResultSchema,
|
|
26864
|
-
DeclarativeLegacyMigrationInspectionSchema,
|
|
26865
|
-
DeclarativeLegacyMigrationKindSchema,
|
|
26866
26786
|
DeclarativeLegacyWorkbenchSummarySchema,
|
|
26867
26787
|
DeclarativeLifecycleSchema,
|
|
26868
|
-
DeclarativeMigrationBlockerSchema,
|
|
26869
|
-
DeclarativeMigrationDiffEntrySchema,
|
|
26870
26788
|
DeclarativeNativeDownloadSchema,
|
|
26871
26789
|
DeclarativeNavigationImportIntentSchema,
|
|
26872
26790
|
DeclarativeNavigationImportResultSchema,
|