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.
@@ -13,7 +13,7 @@ import { Project, getCompilerOptionsFromTsConfig } from 'ts-morph';
13
13
  import * as path from 'node:path';
14
14
  import ts from 'typescript';
15
15
  import * as fs from 'node:fs';
16
- import { DenoProject, findDenoConfig, fileConfigPath, findServiceTsconfig, referenceRedirectOf, serviceConfigPath, sidecarCompilerOptions, untrustedReadBound, } from './capture/index.js';
16
+ import { DenoProject, findDenoConfig, findServiceTsconfig, GoverningConfigs, referenceRedirectOf, sidecarCompilerOptions, untrustedReadBound, } from './capture/index.js';
17
17
  import { moduleFormatResolutionHost } from './module-format.js';
18
18
  import { ExternalImports, registerExternalImports } from './origin.js';
19
19
  import { pinProgramRoots } from './program-files.js';
@@ -141,17 +141,12 @@ export class ProjectLoader {
141
141
  /** The tsconfig the service names, when the project is built from one. */
142
142
  namedTsconfigPath;
143
143
  /**
144
- * Set when the service has no config at or above its root: each file is then
145
- * typed under the nearest `tsconfig.json`/`jsconfig.json` on its way up to
146
- * the service root (carrick#1604), and the default project holds the rest.
144
+ * The config each file is typed under (carrick#1604, carrick#3497): set for
145
+ * a service built from a tsconfig, with it as the fallback, and for one
146
+ * with no config at or above its root, with none. Unset (a snapshot or a
147
+ * Deno project), every file is the default project's.
147
148
  */
148
- inferredService = false;
149
- /** The per-directory answers of `fileConfigPath` for this service. */
150
- fileConfigs = new Map();
151
- /** The reference owner rule of each config a file was found under. */
152
- ownerRules = new Map();
153
- /** Each file's owning config (carrick#1604), resolved on first use. */
154
- configPathFor;
149
+ governing;
155
150
  /** Programs built for owning projects other than the named tsconfig. */
156
151
  ownerProjects = new Map();
157
152
  repoRoot;
@@ -253,11 +248,12 @@ export class ProjectLoader {
253
248
  else if (tsconfigPath) {
254
249
  this.log(`Project will load with tsconfig: ${tsconfigPath}`);
255
250
  this.namedTsconfigPath = tsconfigPath;
251
+ this.governing = new GoverningConfigs(this.repoRoot, tsconfigPath, (d) => this.logError(d));
256
252
  this.buildProject = (kind) => this.projectFromConfig(tsconfigPath, kind);
257
253
  }
258
254
  else {
259
255
  this.log('No tsconfig.json found, using default compiler options');
260
- this.inferredService = true;
256
+ this.governing = new GoverningConfigs(this.repoRoot, undefined, (d) => this.logError(d));
261
257
  this.buildProject = (kind) => {
262
258
  const project = new Project({
263
259
  ...this.fileSystemOption(),
@@ -379,7 +375,7 @@ export class ProjectLoader {
379
375
  // TypeScript reads a `jsconfig.json` with an implicit depth of 2, which
380
376
  // loads the JavaScript sources of installed packages; every other program
381
377
  // here reads 0. A depth the config states is kept (carrick#1604).
382
- if (this.inferredService && path.basename(configPath) === 'jsconfig.json' && !statesJsDepth(configPath)) {
378
+ if (configPath !== this.namedTsconfigPath && path.basename(configPath) === 'jsconfig.json' && !statesJsDepth(configPath)) {
383
379
  options.maxNodeModuleJsDepth = 0;
384
380
  }
385
381
  const project = new Project({
@@ -403,42 +399,19 @@ export class ProjectLoader {
403
399
  return project;
404
400
  }
405
401
  /**
406
- * Which project types `file` (carrick#1604): the key of its owning
407
- * project's program, or `''` for the default one. In a tsconfig that
408
- * references other projects, a file belongs to the first project in search
409
- * order (the named config, then its references depth-first, in declared
410
- * order) that lists it while none of its own references does (carrick#2418),
411
- * and is typed under that project's options. A file no project includes, and every request that
412
- * names no file, uses the default project, built from the named tsconfig
413
- * as before.
402
+ * Which project types `file` (carrick#1604, carrick#3497): the key of its
403
+ * owning project's program, or `''` for the default one. The owner is the
404
+ * config `GoverningConfigs` picks: the nearest config inside the service
405
+ * whose program, or a project it references (carrick#2418's search order),
406
+ * lists the file, else the service's tsconfig. The service's own tsconfig,
407
+ * every request that names no file, and a file no config governs use the
408
+ * default project.
414
409
  */
415
410
  projectKeyFor(file) {
416
- if (this.inferredService)
417
- return this.inferredKeyFor(file);
418
- if (!this.namedTsconfigPath || file === undefined)
411
+ if (file === undefined || this.governing === undefined)
419
412
  return '';
420
- this.configPathFor ??= serviceConfigPath(this.namedTsconfigPath, (d) => this.logError(d));
421
- const config = this.configPathFor(path.resolve(this.repoRoot, file));
422
- return config === this.namedTsconfigPath ? '' : config;
423
- }
424
- /**
425
- * `projectKeyFor` for a service with no config at its root: the owner of the
426
- * nearest config on the file's way up to the service root, or `''` (the
427
- * default project, under the inferred options) for a file with none.
428
- */
429
- inferredKeyFor(file) {
430
- if (file === undefined)
431
- return '';
432
- const absolute = path.resolve(this.repoRoot, file);
433
- const config = fileConfigPath(absolute, this.repoRoot, this.fileConfigs);
434
- if (config === undefined)
435
- return '';
436
- let owner = this.ownerRules.get(config);
437
- if (!owner) {
438
- owner = serviceConfigPath(config, (d) => this.logError(d));
439
- this.ownerRules.set(config, owner);
440
- }
441
- return owner(absolute);
413
+ const config = this.governing.configFor(path.resolve(this.repoRoot, file));
414
+ return config === undefined || config === this.namedTsconfigPath ? '' : config;
442
415
  }
443
416
  /**
444
417
  * The project behind a key from `projectKeyFor`, built on first use and
@@ -566,16 +566,32 @@ export interface NameParts {
566
566
  export interface NameLiteral {
567
567
  literal: string;
568
568
  }
569
+ /** A `first` entry (amendment 8): a plain slot, or the decorated method's name. */
570
+ export type NameEntry = {
571
+ arg: number;
572
+ key?: string;
573
+ } | {
574
+ bound: 'decorated';
575
+ };
576
+ /**
577
+ * The first entry the call fills names the op, read in order (amendment 8):
578
+ * two to four entries, `{ bound: 'decorated' }` only last, on a decorate
579
+ * receive.
580
+ */
581
+ export interface NameFirst {
582
+ first: NameEntry[];
583
+ }
569
584
  /** Where an op's name comes from. */
570
- export type OpNameSource = BoundName | NameParts | NameLiteral | NameSlot;
585
+ export type OpNameSource = BoundName | NameParts | NameLiteral | NameFirst | NameSlot;
571
586
  /**
572
587
  * A name the call does not carry: the one the maker's `name` slot bound to
573
588
  * the instance (`maker`), the one the scope member bound (`scope`), or the
574
589
  * key path the op's value sits under in a `collects` object (`key`, #2474
575
- * R6a).
590
+ * R6a), or the name of the class member a decorator is applied to
591
+ * (`decorated`, amendment 8).
576
592
  */
577
593
  export interface BoundName {
578
- bound: 'maker' | 'scope' | 'key' | 'path' | 'export' | 'subscribed';
594
+ bound: 'maker' | 'scope' | 'key' | 'path' | 'export' | 'subscribed' | 'decorated';
579
595
  /** `path`: the property names walked on the receiver are joined by this (amendment 7). */
580
596
  join?: string;
581
597
  /** `subscribed`: the handler parameter that is handed the name. */
@@ -1479,8 +1479,8 @@ export declare const VerifyClientSemanticsRequestSchema: z.ZodObject<{
1479
1479
  }, "strip", z.ZodTypeAny, {
1480
1480
  receiver: string;
1481
1481
  export: string;
1482
- claim_id: string;
1483
1482
  package: string;
1483
+ claim_id: string;
1484
1484
  claim: {
1485
1485
  kind: "factory";
1486
1486
  member: string;
@@ -1511,8 +1511,8 @@ export declare const VerifyClientSemanticsRequestSchema: z.ZodObject<{
1511
1511
  }, {
1512
1512
  receiver: string;
1513
1513
  export: string;
1514
- claim_id: string;
1515
1514
  package: string;
1515
+ claim_id: string;
1516
1516
  claim: {
1517
1517
  kind: "factory";
1518
1518
  member: string;
@@ -1549,8 +1549,8 @@ export declare const VerifyClientSemanticsRequestSchema: z.ZodObject<{
1549
1549
  checks: {
1550
1550
  receiver: string;
1551
1551
  export: string;
1552
- claim_id: string;
1553
1552
  package: string;
1553
+ claim_id: string;
1554
1554
  claim: {
1555
1555
  kind: "factory";
1556
1556
  member: string;
@@ -1587,8 +1587,8 @@ export declare const VerifyClientSemanticsRequestSchema: z.ZodObject<{
1587
1587
  checks: {
1588
1588
  receiver: string;
1589
1589
  export: string;
1590
- claim_id: string;
1591
1590
  package: string;
1591
+ claim_id: string;
1592
1592
  claim: {
1593
1593
  kind: "factory";
1594
1594
  member: string;
@@ -2111,17 +2111,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2111
2111
  } | undefined;
2112
2112
  }>>;
2113
2113
  name: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2114
- bound: z.ZodEnum<["maker", "scope", "key", "path", "export", "subscribed"]>;
2114
+ bound: z.ZodEnum<["maker", "scope", "key", "path", "export", "subscribed", "decorated"]>;
2115
2115
  join: z.ZodOptional<z.ZodString>;
2116
2116
  param: z.ZodOptional<z.ZodNumber>;
2117
2117
  at: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2118
2118
  }, "strict", z.ZodTypeAny, {
2119
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2119
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2120
2120
  join?: string | undefined;
2121
2121
  at?: string[] | undefined;
2122
2122
  param?: number | undefined;
2123
2123
  }, {
2124
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2124
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2125
2125
  join?: string | undefined;
2126
2126
  at?: string[] | undefined;
2127
2127
  param?: number | undefined;
@@ -2165,6 +2165,37 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2165
2165
  literal: string;
2166
2166
  }, {
2167
2167
  literal: string;
2168
+ }>, z.ZodObject<{
2169
+ first: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2170
+ arg: z.ZodNumber;
2171
+ key: z.ZodOptional<z.ZodString>;
2172
+ }, "strict", z.ZodTypeAny, {
2173
+ arg: number;
2174
+ key?: string | undefined;
2175
+ }, {
2176
+ arg: number;
2177
+ key?: string | undefined;
2178
+ }>, z.ZodObject<{
2179
+ bound: z.ZodLiteral<"decorated">;
2180
+ }, "strict", z.ZodTypeAny, {
2181
+ bound: "decorated";
2182
+ }, {
2183
+ bound: "decorated";
2184
+ }>]>, "many">;
2185
+ }, "strict", z.ZodTypeAny, {
2186
+ first: ({
2187
+ arg: number;
2188
+ key?: string | undefined;
2189
+ } | {
2190
+ bound: "decorated";
2191
+ })[];
2192
+ }, {
2193
+ first: ({
2194
+ arg: number;
2195
+ key?: string | undefined;
2196
+ } | {
2197
+ bound: "decorated";
2198
+ })[];
2168
2199
  }>, z.ZodObject<{
2169
2200
  arg: z.ZodNumber;
2170
2201
  key: z.ZodOptional<z.ZodString>;
@@ -2387,10 +2418,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2387
2418
  } | {
2388
2419
  literal: string;
2389
2420
  } | {
2390
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2421
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2391
2422
  join?: string | undefined;
2392
2423
  at?: string[] | undefined;
2393
2424
  param?: number | undefined;
2425
+ } | {
2426
+ first: ({
2427
+ arg: number;
2428
+ key?: string | undefined;
2429
+ } | {
2430
+ bound: "decorated";
2431
+ })[];
2394
2432
  } | undefined;
2395
2433
  request?: {
2396
2434
  param: number;
@@ -2502,10 +2540,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2502
2540
  } | {
2503
2541
  literal: string;
2504
2542
  } | {
2505
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2543
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2506
2544
  join?: string | undefined;
2507
2545
  at?: string[] | undefined;
2508
2546
  param?: number | undefined;
2547
+ } | {
2548
+ first: ({
2549
+ arg: number;
2550
+ key?: string | undefined;
2551
+ } | {
2552
+ bound: "decorated";
2553
+ })[];
2509
2554
  } | undefined;
2510
2555
  request?: {
2511
2556
  param: number;
@@ -2680,8 +2725,8 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2680
2725
  }, "strict", z.ZodTypeAny, {
2681
2726
  receiver: string;
2682
2727
  export: string;
2683
- claim_id: string;
2684
2728
  package: string;
2729
+ claim_id: string;
2685
2730
  claim: {
2686
2731
  kind: "make";
2687
2732
  member: string | null;
@@ -2797,10 +2842,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2797
2842
  } | {
2798
2843
  literal: string;
2799
2844
  } | {
2800
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2845
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
2801
2846
  join?: string | undefined;
2802
2847
  at?: string[] | undefined;
2803
2848
  param?: number | undefined;
2849
+ } | {
2850
+ first: ({
2851
+ arg: number;
2852
+ key?: string | undefined;
2853
+ } | {
2854
+ bound: "decorated";
2855
+ })[];
2804
2856
  } | undefined;
2805
2857
  request?: {
2806
2858
  param: number;
@@ -2918,8 +2970,8 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
2918
2970
  }, {
2919
2971
  receiver: string;
2920
2972
  export: string;
2921
- claim_id: string;
2922
2973
  package: string;
2974
+ claim_id: string;
2923
2975
  claim: {
2924
2976
  kind: "make";
2925
2977
  member: string | null;
@@ -3035,10 +3087,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
3035
3087
  } | {
3036
3088
  literal: string;
3037
3089
  } | {
3038
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
3090
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
3039
3091
  join?: string | undefined;
3040
3092
  at?: string[] | undefined;
3041
3093
  param?: number | undefined;
3094
+ } | {
3095
+ first: ({
3096
+ arg: number;
3097
+ key?: string | undefined;
3098
+ } | {
3099
+ bound: "decorated";
3100
+ })[];
3042
3101
  } | undefined;
3043
3102
  request?: {
3044
3103
  param: number;
@@ -3162,8 +3221,8 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
3162
3221
  checks: {
3163
3222
  receiver: string;
3164
3223
  export: string;
3165
- claim_id: string;
3166
3224
  package: string;
3225
+ claim_id: string;
3167
3226
  claim: {
3168
3227
  kind: "make";
3169
3228
  member: string | null;
@@ -3279,10 +3338,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
3279
3338
  } | {
3280
3339
  literal: string;
3281
3340
  } | {
3282
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
3341
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
3283
3342
  join?: string | undefined;
3284
3343
  at?: string[] | undefined;
3285
3344
  param?: number | undefined;
3345
+ } | {
3346
+ first: ({
3347
+ arg: number;
3348
+ key?: string | undefined;
3349
+ } | {
3350
+ bound: "decorated";
3351
+ })[];
3286
3352
  } | undefined;
3287
3353
  request?: {
3288
3354
  param: number;
@@ -3407,8 +3473,8 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
3407
3473
  checks: {
3408
3474
  receiver: string;
3409
3475
  export: string;
3410
- claim_id: string;
3411
3476
  package: string;
3477
+ claim_id: string;
3412
3478
  claim: {
3413
3479
  kind: "make";
3414
3480
  member: string | null;
@@ -3524,10 +3590,17 @@ export declare const VerifyLibraryClaimsRequestSchema: z.ZodObject<{
3524
3590
  } | {
3525
3591
  literal: string;
3526
3592
  } | {
3527
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
3593
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
3528
3594
  join?: string | undefined;
3529
3595
  at?: string[] | undefined;
3530
3596
  param?: number | undefined;
3597
+ } | {
3598
+ first: ({
3599
+ arg: number;
3600
+ key?: string | undefined;
3601
+ } | {
3602
+ bound: "decorated";
3603
+ })[];
3531
3604
  } | undefined;
3532
3605
  request?: {
3533
3606
  param: number;
@@ -4775,8 +4848,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
4775
4848
  }, "strip", z.ZodTypeAny, {
4776
4849
  receiver: string;
4777
4850
  export: string;
4778
- claim_id: string;
4779
4851
  package: string;
4852
+ claim_id: string;
4780
4853
  claim: {
4781
4854
  kind: "factory";
4782
4855
  member: string;
@@ -4807,8 +4880,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
4807
4880
  }, {
4808
4881
  receiver: string;
4809
4882
  export: string;
4810
- claim_id: string;
4811
4883
  package: string;
4884
+ claim_id: string;
4812
4885
  claim: {
4813
4886
  kind: "factory";
4814
4887
  member: string;
@@ -4845,8 +4918,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
4845
4918
  checks: {
4846
4919
  receiver: string;
4847
4920
  export: string;
4848
- claim_id: string;
4849
4921
  package: string;
4922
+ claim_id: string;
4850
4923
  claim: {
4851
4924
  kind: "factory";
4852
4925
  member: string;
@@ -4883,8 +4956,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
4883
4956
  checks: {
4884
4957
  receiver: string;
4885
4958
  export: string;
4886
- claim_id: string;
4887
4959
  package: string;
4960
+ claim_id: string;
4888
4961
  claim: {
4889
4962
  kind: "factory";
4890
4963
  member: string;
@@ -5397,17 +5470,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
5397
5470
  } | undefined;
5398
5471
  }>>;
5399
5472
  name: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5400
- bound: z.ZodEnum<["maker", "scope", "key", "path", "export", "subscribed"]>;
5473
+ bound: z.ZodEnum<["maker", "scope", "key", "path", "export", "subscribed", "decorated"]>;
5401
5474
  join: z.ZodOptional<z.ZodString>;
5402
5475
  param: z.ZodOptional<z.ZodNumber>;
5403
5476
  at: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5404
5477
  }, "strict", z.ZodTypeAny, {
5405
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5478
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5406
5479
  join?: string | undefined;
5407
5480
  at?: string[] | undefined;
5408
5481
  param?: number | undefined;
5409
5482
  }, {
5410
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5483
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5411
5484
  join?: string | undefined;
5412
5485
  at?: string[] | undefined;
5413
5486
  param?: number | undefined;
@@ -5451,6 +5524,37 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
5451
5524
  literal: string;
5452
5525
  }, {
5453
5526
  literal: string;
5527
+ }>, z.ZodObject<{
5528
+ first: z.ZodArray<z.ZodUnion<[z.ZodObject<{
5529
+ arg: z.ZodNumber;
5530
+ key: z.ZodOptional<z.ZodString>;
5531
+ }, "strict", z.ZodTypeAny, {
5532
+ arg: number;
5533
+ key?: string | undefined;
5534
+ }, {
5535
+ arg: number;
5536
+ key?: string | undefined;
5537
+ }>, z.ZodObject<{
5538
+ bound: z.ZodLiteral<"decorated">;
5539
+ }, "strict", z.ZodTypeAny, {
5540
+ bound: "decorated";
5541
+ }, {
5542
+ bound: "decorated";
5543
+ }>]>, "many">;
5544
+ }, "strict", z.ZodTypeAny, {
5545
+ first: ({
5546
+ arg: number;
5547
+ key?: string | undefined;
5548
+ } | {
5549
+ bound: "decorated";
5550
+ })[];
5551
+ }, {
5552
+ first: ({
5553
+ arg: number;
5554
+ key?: string | undefined;
5555
+ } | {
5556
+ bound: "decorated";
5557
+ })[];
5454
5558
  }>, z.ZodObject<{
5455
5559
  arg: z.ZodNumber;
5456
5560
  key: z.ZodOptional<z.ZodString>;
@@ -5673,10 +5777,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
5673
5777
  } | {
5674
5778
  literal: string;
5675
5779
  } | {
5676
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5780
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5677
5781
  join?: string | undefined;
5678
5782
  at?: string[] | undefined;
5679
5783
  param?: number | undefined;
5784
+ } | {
5785
+ first: ({
5786
+ arg: number;
5787
+ key?: string | undefined;
5788
+ } | {
5789
+ bound: "decorated";
5790
+ })[];
5680
5791
  } | undefined;
5681
5792
  request?: {
5682
5793
  param: number;
@@ -5788,10 +5899,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
5788
5899
  } | {
5789
5900
  literal: string;
5790
5901
  } | {
5791
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5902
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
5792
5903
  join?: string | undefined;
5793
5904
  at?: string[] | undefined;
5794
5905
  param?: number | undefined;
5906
+ } | {
5907
+ first: ({
5908
+ arg: number;
5909
+ key?: string | undefined;
5910
+ } | {
5911
+ bound: "decorated";
5912
+ })[];
5795
5913
  } | undefined;
5796
5914
  request?: {
5797
5915
  param: number;
@@ -5966,8 +6084,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
5966
6084
  }, "strict", z.ZodTypeAny, {
5967
6085
  receiver: string;
5968
6086
  export: string;
5969
- claim_id: string;
5970
6087
  package: string;
6088
+ claim_id: string;
5971
6089
  claim: {
5972
6090
  kind: "make";
5973
6091
  member: string | null;
@@ -6083,10 +6201,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6083
6201
  } | {
6084
6202
  literal: string;
6085
6203
  } | {
6086
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6204
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6087
6205
  join?: string | undefined;
6088
6206
  at?: string[] | undefined;
6089
6207
  param?: number | undefined;
6208
+ } | {
6209
+ first: ({
6210
+ arg: number;
6211
+ key?: string | undefined;
6212
+ } | {
6213
+ bound: "decorated";
6214
+ })[];
6090
6215
  } | undefined;
6091
6216
  request?: {
6092
6217
  param: number;
@@ -6204,8 +6329,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6204
6329
  }, {
6205
6330
  receiver: string;
6206
6331
  export: string;
6207
- claim_id: string;
6208
6332
  package: string;
6333
+ claim_id: string;
6209
6334
  claim: {
6210
6335
  kind: "make";
6211
6336
  member: string | null;
@@ -6321,10 +6446,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6321
6446
  } | {
6322
6447
  literal: string;
6323
6448
  } | {
6324
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6449
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6325
6450
  join?: string | undefined;
6326
6451
  at?: string[] | undefined;
6327
6452
  param?: number | undefined;
6453
+ } | {
6454
+ first: ({
6455
+ arg: number;
6456
+ key?: string | undefined;
6457
+ } | {
6458
+ bound: "decorated";
6459
+ })[];
6328
6460
  } | undefined;
6329
6461
  request?: {
6330
6462
  param: number;
@@ -6448,8 +6580,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6448
6580
  checks: {
6449
6581
  receiver: string;
6450
6582
  export: string;
6451
- claim_id: string;
6452
6583
  package: string;
6584
+ claim_id: string;
6453
6585
  claim: {
6454
6586
  kind: "make";
6455
6587
  member: string | null;
@@ -6565,10 +6697,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6565
6697
  } | {
6566
6698
  literal: string;
6567
6699
  } | {
6568
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6700
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6569
6701
  join?: string | undefined;
6570
6702
  at?: string[] | undefined;
6571
6703
  param?: number | undefined;
6704
+ } | {
6705
+ first: ({
6706
+ arg: number;
6707
+ key?: string | undefined;
6708
+ } | {
6709
+ bound: "decorated";
6710
+ })[];
6572
6711
  } | undefined;
6573
6712
  request?: {
6574
6713
  param: number;
@@ -6693,8 +6832,8 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6693
6832
  checks: {
6694
6833
  receiver: string;
6695
6834
  export: string;
6696
- claim_id: string;
6697
6835
  package: string;
6836
+ claim_id: string;
6698
6837
  claim: {
6699
6838
  kind: "make";
6700
6839
  member: string | null;
@@ -6810,10 +6949,17 @@ export declare const SidecarRequestSchema: z.ZodDiscriminatedUnion<"action", [z.
6810
6949
  } | {
6811
6950
  literal: string;
6812
6951
  } | {
6813
- bound: "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6952
+ bound: "decorated" | "maker" | "scope" | "key" | "path" | "export" | "subscribed";
6814
6953
  join?: string | undefined;
6815
6954
  at?: string[] | undefined;
6816
6955
  param?: number | undefined;
6956
+ } | {
6957
+ first: ({
6958
+ arg: number;
6959
+ key?: string | undefined;
6960
+ } | {
6961
+ bound: "decorated";
6962
+ })[];
6817
6963
  } | undefined;
6818
6964
  request?: {
6819
6965
  param: number;