carrick 0.3.148 → 0.3.150

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.
@@ -443,12 +443,26 @@ const NamePartsSchema = z
443
443
  const NameLiteralSchema = z.object({ literal: z.string().min(1) }).strict();
444
444
  const BoundNameSchema = z
445
445
  .object({
446
- bound: z.enum(['maker', 'scope', 'key', 'path', 'export', 'subscribed']),
446
+ bound: z.enum(['maker', 'scope', 'key', 'path', 'export', 'subscribed', 'decorated']),
447
447
  join: z.string().min(1).optional(),
448
448
  param: z.number().int().nonnegative().optional(),
449
449
  at: z.array(z.string().min(1)).optional(),
450
450
  })
451
451
  .strict();
452
+ /**
453
+ * Amendment 8: the first entry the call fills names the op, read in order. An
454
+ * entry is a plain slot or the decorated method's name. How many entries,
455
+ * their order and duplicates are the verifier's verdict, since one element
456
+ * this schema refuses fails the whole request.
457
+ */
458
+ const NameFirstSchema = z
459
+ .object({
460
+ first: z.array(z.union([
461
+ z.object({ arg: z.number().int().nonnegative(), key: z.string().min(1).optional() }).strict(),
462
+ z.object({ bound: z.literal('decorated') }).strict(),
463
+ ])),
464
+ })
465
+ .strict();
452
466
  /** Procedure routers (#2474 R6a): where a router member takes its procedures, and how nested keys join. */
453
467
  const CollectsSchema = z
454
468
  .object({
@@ -557,7 +571,7 @@ const LibraryClaimSchema = z.discriminatedUnion('kind', [
557
571
  .strict()
558
572
  .optional(),
559
573
  returns: z.object({ result: ResultShapeSchema.optional() }).strict().optional(),
560
- name: z.union([BoundNameSchema, NamePartsSchema, NameLiteralSchema, NameSlotSchema]).optional(),
574
+ name: z.union([BoundNameSchema, NamePartsSchema, NameLiteralSchema, NameFirstSchema, NameSlotSchema]).optional(),
561
575
  payload: ClaimSlotSchema.optional(),
562
576
  handler: ClaimSlotSchema.optional(),
563
577
  ack: ClaimSlotSchema.optional(),