@inf-monkeys-tech/monkeys 1.1.22 → 1.1.23

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/esm/index.mjs CHANGED
@@ -11452,6 +11452,9 @@ var QueryBindingSchema = z16.object({
11452
11452
  draftRetention: z16.object({
11453
11453
  identityParameters: z16.array(ContractIdentifierSchema).min(1).max(32)
11454
11454
  }).strict().optional(),
11455
+ queryRetention: z16.object({
11456
+ identityParameters: z16.array(ContractIdentifierSchema).max(32)
11457
+ }).strict().optional(),
11455
11458
  resultStateBindings: z16.array(QueryResultStateBindingSchema).max(32).optional(),
11456
11459
  execution: z16.enum(["server", "local-state"]).default("server"),
11457
11460
  pagination: z16.enum(["none", "cursor", "offset"]),
@@ -11475,6 +11478,18 @@ var QueryBindingSchema = z16.object({
11475
11478
  });
11476
11479
  }
11477
11480
  }
11481
+ if (value.queryRetention) {
11482
+ const names = value.queryRetention.identityParameters;
11483
+ if (value.execution !== "server" || new Set(names).size !== names.length || names.some(
11484
+ (name) => !Object.prototype.hasOwnProperty.call(value.parameters, name)
11485
+ )) {
11486
+ context.addIssue({
11487
+ code: "custom",
11488
+ path: ["queryRetention"],
11489
+ message: "Query retention requires distinct declared Server query identity parameters."
11490
+ });
11491
+ }
11492
+ }
11478
11493
  if (value.targetProjection) {
11479
11494
  if (value.targetProjection.schemaRevisionRef.kind !== "schema")
11480
11495
  context.addIssue({