@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.
@@ -15485,11 +15485,6 @@ var DeclarativeAuthoringActionSchema = z14.enum([
15485
15485
  "publish",
15486
15486
  "rollback"
15487
15487
  ]);
15488
- var DeclarativeLegacyMigrationKindSchema = z14.enum([
15489
- "page",
15490
- "page-data-assets",
15491
- "workbench"
15492
- ]);
15493
15488
  var DeclarativeErrorEnvelopeSchema = z14.object({
15494
15489
  code: z14.string().trim().min(1),
15495
15490
  message: z14.string().trim().min(1),
@@ -16971,73 +16966,6 @@ var DeclarativePublicationResultSchema = z14.union([
16971
16966
  DeclarativeDirectPublicationResultSchema,
16972
16967
  DeclarativeAtomicPublicationPlanResultSchema
16973
16968
  ]);
16974
- var DeclarativeMigrationDiffEntrySchema = z14.object({
16975
- path: z14.string().trim().startsWith("/").max(1024),
16976
- status: z14.enum(["added", "changed", "removed", "unchanged"]),
16977
- legacyValueHash: Sha256Schema.optional(),
16978
- declarativeValueHash: Sha256Schema.optional()
16979
- }).strict();
16980
- var DeclarativeMigrationBlockerSchema = z14.object({
16981
- code: ContractIdentifierSchema,
16982
- path: z14.string().trim().max(1024).optional(),
16983
- message: z14.string().trim().min(1).max(4096)
16984
- }).strict();
16985
- var DeclarativeLegacyMigrationInspectionSchema = z14.object({
16986
- contract: z14.literal("DeclarativeLegacyMigrationInspection"),
16987
- schemaVersion: z14.literal(1),
16988
- migrationKind: DeclarativeLegacyMigrationKindSchema,
16989
- legacyResourceId: ContractIdentifierSchema,
16990
- sourceRevisionRef: RevisionRefSchema,
16991
- sourceContentHash: Sha256Schema,
16992
- legacyAdapterRevisionRef: RevisionRefSchema,
16993
- targetResourceRef: StableRefSchema,
16994
- environmentRevisionRef: RevisionRefSchema,
16995
- routeSpaceRevisionRef: RevisionRefSchema,
16996
- normalizedPath: z14.string().trim().startsWith("/").max(2048),
16997
- takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
16998
- diff: z14.array(DeclarativeMigrationDiffEntrySchema).max(256),
16999
- blockers: z14.array(DeclarativeMigrationBlockerSchema).max(128),
17000
- canCreateDraft: z14.boolean(),
17001
- inspectionFingerprint: Sha256Schema
17002
- }).strict().superRefine((value, context) => {
17003
- const expectedKind = value.migrationKind === "workbench" ? "workbench" : "page";
17004
- if (value.targetResourceRef.kind !== expectedKind) {
17005
- context.addIssue({
17006
- code: "custom",
17007
- path: ["targetResourceRef", "kind"],
17008
- message: `A ${value.migrationKind} migration must target ${expectedKind}.`
17009
- });
17010
- }
17011
- 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) {
17012
- context.addIssue({
17013
- code: "custom",
17014
- path: ["takeoverAuthorization"],
17015
- message: "The takeover authority must bind the exact inspected source, path and target."
17016
- });
17017
- }
17018
- if (value.canCreateDraft !== (value.blockers.length === 0)) {
17019
- context.addIssue({
17020
- code: "custom",
17021
- path: ["canCreateDraft"],
17022
- message: "Draft creation is allowed exactly when inspection has no blockers."
17023
- });
17024
- }
17025
- });
17026
- var DeclarativeLegacyMigrationCreateDraftIntentSchema = z14.object({
17027
- inspectionFingerprint: Sha256Schema,
17028
- expectedSourceRevisionRef: RevisionRefSchema,
17029
- expectedSourceContentHash: Sha256Schema,
17030
- idempotencyKey: z14.string().trim().min(1).max(256)
17031
- }).strict();
17032
- var DeclarativeLegacyMigrationCreateDraftResultSchema = z14.object({
17033
- migrationKind: DeclarativeLegacyMigrationKindSchema,
17034
- legacyResourceId: ContractIdentifierSchema,
17035
- inspectionFingerprint: Sha256Schema,
17036
- sourceRevisionRef: RevisionRefSchema,
17037
- sourceContentHash: Sha256Schema,
17038
- takeoverAuthorization: LegacyRouteTakeoverAuthorizationSchema,
17039
- draft: DeclarativeDraftResultSchema
17040
- }).strict();
17041
16969
  var DeclarativeRetireResultSchema = z14.object({
17042
16970
  action: z14.literal("retire"),
17043
16971
  resourceKind: DeclarativeResourceKindSchema,