@inf-monkeys-tech/monkeys 1.1.5 → 1.1.6

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.
@@ -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({