@maycombhq/sdk 2.0.0-beta.10 → 2.0.0-beta.12

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/npm/core/api.d.ts CHANGED
@@ -109,8 +109,27 @@ import { z } from "zod";
109
109
  * And (J1) a link joined by a Kubernetes Service's bare name with no
110
110
  * cited namespace of the caller's the same is a guess: `LINK_HOWS` gains `service-name`, and
111
111
  * `JOIN_GUESS_FLAGS` `joined-by-service-name`. Additive only.
112
+ * 2.45.0 (ADR 0162, plan item F8): GET /api/questions/{id}/targets, the "Another repo…" picker of a
113
+ * targets question (every repo of the manifest, read or not, every system of the profiles, every
114
+ * team in roles.yaml, a team with no system saying the one naming it adds); POST
115
+ * /api/questions/{id}/answer takes `target` (any of them) with `addSystem` and `name` (a vendor
116
+ * or a team's system written into the profile, for review) and returns `system`; a question's
117
+ * `reopened` (question schema 4). Additive only.
118
+ * 2.47.0 (ADR 0164, plan item F7): the contract check on every link. GET /api/contracts (the
119
+ * Mismatches page: every link checked, each mismatch and unconfirmed difference with both
120
+ * ends' lines and the mappings it went through); `TrustView.contracts` (the counts, for the
121
+ * Trust tab); and an outside system's view gains `contracts` (the calls to it against its
122
+ * newest intaken spec, and which findings that spec brings that the one before didn't).
123
+ * Additive only.
124
+ * 2.48.0 (ADR 0163): the organisation's terms a repo writes. `terms` on a repo in GET
125
+ * /api/trust: each term fact's term, value, role and line, with the line giving it its role
126
+ * and the note it rests on. Additive only.
127
+ * 2.49.0 (ADR 0168): GET /api/questions' `about[id].rule`, for an open targets question whose
128
+ * calls share a path prefix or host with other open targets questions of its repo: the rule
129
+ * (`/accounts/**`) one answer could take to cover them all, the questions it covers and their
130
+ * calls. Additive only.
112
131
  */
113
- export declare const API_VERSION = "2.44.0";
132
+ export declare const API_VERSION = "2.49.0";
114
133
  export declare const DEFAULT_PORT = 4321;
115
134
  /** RFC 9457 problem details, used for every error. */
116
135
  export declare const Problem: z.ZodObject<{
@@ -2195,6 +2214,19 @@ export declare const TrustRepo: z.ZodObject<{
2195
2214
  cite: z.ZodString;
2196
2215
  gap: z.ZodOptional<z.ZodString>;
2197
2216
  }, z.core.$strip>>>;
2217
+ terms: z.ZodOptional<z.ZodArray<z.ZodObject<{
2218
+ term: z.ZodString;
2219
+ value: z.ZodString;
2220
+ role: z.ZodEnum<{
2221
+ unknown: "unknown";
2222
+ owner: "owner";
2223
+ none: "none";
2224
+ consumer: "consumer";
2225
+ }>;
2226
+ cite: z.ZodString;
2227
+ meaning: z.ZodOptional<z.ZodString>;
2228
+ note: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2229
+ }, z.core.$strip>>>;
2198
2230
  lists: z.ZodOptional<z.ZodObject<{
2199
2231
  rejected: z.ZodArray<z.ZodObject<{
2200
2232
  fact: z.ZodOptional<z.ZodString>;
@@ -2254,6 +2286,13 @@ export declare const TrustRepo: z.ZodObject<{
2254
2286
  }, z.core.$strip>;
2255
2287
  }, z.core.$strip>>;
2256
2288
  }, z.core.$strip>;
2289
+ /** 2.47.0 (ADR 0164): the contract check's counts. */
2290
+ export declare const ContractCounts: z.ZodObject<{
2291
+ links: z.ZodNumber;
2292
+ compared: z.ZodNumber;
2293
+ mismatches: z.ZodNumber;
2294
+ unconfirmed: z.ZodNumber;
2295
+ }, z.core.$strip>;
2257
2296
  export declare const TrustView: z.ZodObject<{
2258
2297
  factsDir: z.ZodString;
2259
2298
  repos: z.ZodArray<z.ZodObject<{
@@ -2317,6 +2356,19 @@ export declare const TrustView: z.ZodObject<{
2317
2356
  cite: z.ZodString;
2318
2357
  gap: z.ZodOptional<z.ZodString>;
2319
2358
  }, z.core.$strip>>>;
2359
+ terms: z.ZodOptional<z.ZodArray<z.ZodObject<{
2360
+ term: z.ZodString;
2361
+ value: z.ZodString;
2362
+ role: z.ZodEnum<{
2363
+ unknown: "unknown";
2364
+ owner: "owner";
2365
+ none: "none";
2366
+ consumer: "consumer";
2367
+ }>;
2368
+ cite: z.ZodString;
2369
+ meaning: z.ZodOptional<z.ZodString>;
2370
+ note: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2371
+ }, z.core.$strip>>>;
2320
2372
  lists: z.ZodOptional<z.ZodObject<{
2321
2373
  rejected: z.ZodArray<z.ZodObject<{
2322
2374
  fact: z.ZodOptional<z.ZodString>;
@@ -2376,6 +2428,12 @@ export declare const TrustView: z.ZodObject<{
2376
2428
  }, z.core.$strip>;
2377
2429
  }, z.core.$strip>>;
2378
2430
  }, z.core.$strip>>;
2431
+ contracts: z.ZodOptional<z.ZodObject<{
2432
+ links: z.ZodNumber;
2433
+ compared: z.ZodNumber;
2434
+ mismatches: z.ZodNumber;
2435
+ unconfirmed: z.ZodNumber;
2436
+ }, z.core.$strip>>;
2379
2437
  problems: z.ZodArray<z.ZodObject<{
2380
2438
  file: z.ZodString;
2381
2439
  message: z.ZodString;
@@ -2777,6 +2835,7 @@ export declare const FactCiteView: z.ZodObject<{
2777
2835
  kind: z.ZodEnum<{
2778
2836
  config: "config";
2779
2837
  field: "field";
2838
+ term: "term";
2780
2839
  framework: "framework";
2781
2840
  entry: "entry";
2782
2841
  store: "store";
@@ -2840,6 +2899,7 @@ export declare const RepoFactsView: z.ZodObject<{
2840
2899
  kind: z.ZodEnum<{
2841
2900
  config: "config";
2842
2901
  field: "field";
2902
+ term: "term";
2843
2903
  framework: "framework";
2844
2904
  entry: "entry";
2845
2905
  store: "store";
@@ -2897,6 +2957,7 @@ export declare const FactCorrectionResult: z.ZodObject<{
2897
2957
  kind: z.ZodEnum<{
2898
2958
  config: "config";
2899
2959
  field: "field";
2960
+ term: "term";
2900
2961
  framework: "framework";
2901
2962
  entry: "entry";
2902
2963
  store: "store";
@@ -2934,8 +2995,8 @@ export declare const NextStepView: z.ZodObject<{
2934
2995
  push: "push";
2935
2996
  branch: "branch";
2936
2997
  pr: "pr";
2937
- verify: "verify";
2938
2998
  add: "add";
2999
+ verify: "verify";
2939
3000
  }>;
2940
3001
  command: z.ZodOptional<z.ZodString>;
2941
3002
  }, z.core.$strip>;
@@ -2963,8 +3024,8 @@ export declare const VerifyPreviewView: z.ZodObject<{
2963
3024
  push: "push";
2964
3025
  branch: "branch";
2965
3026
  pr: "pr";
2966
- verify: "verify";
2967
3027
  add: "add";
3028
+ verify: "verify";
2968
3029
  }>;
2969
3030
  command: z.ZodOptional<z.ZodString>;
2970
3031
  }, z.core.$strip>>;
@@ -3245,6 +3306,209 @@ export declare const AuditAnswerResult: z.ZodObject<{
3245
3306
  export type AuditItemViewT = z.infer<typeof AuditItemView>;
3246
3307
  export type AuditSampleViewT = z.infer<typeof AuditSampleView>;
3247
3308
  export type AuditAnswerResultT = z.infer<typeof AuditAnswerResult>;
3309
+ /**
3310
+ * 2.47.0 (ADR 0164, F7): one difference the contract check found between the two sides of a
3311
+ * link: what each side says and its line, the mappings it went through, and whether it is a
3312
+ * mismatch or unconfirmed (a mapping on the way nobody traced).
3313
+ */
3314
+ export declare const ContractEndView: z.ZodObject<{
3315
+ repo: z.ZodOptional<z.ZodString>;
3316
+ system: z.ZodOptional<z.ZodString>;
3317
+ what: z.ZodString;
3318
+ value: z.ZodOptional<z.ZodString>;
3319
+ at: z.ZodOptional<z.ZodString>;
3320
+ }, z.core.$strip>;
3321
+ export declare const ContractFactEnd: z.ZodObject<{
3322
+ repo: z.ZodString;
3323
+ fact: z.ZodString;
3324
+ component: z.ZodString;
3325
+ at: z.ZodString;
3326
+ }, z.core.$strip>;
3327
+ export declare const ContractMismatchView: z.ZodObject<{
3328
+ id: z.ZodString;
3329
+ interface: z.ZodOptional<z.ZodString>;
3330
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3331
+ call: z.ZodObject<{
3332
+ repo: z.ZodString;
3333
+ fact: z.ZodString;
3334
+ component: z.ZodString;
3335
+ at: z.ZodString;
3336
+ }, z.core.$strip>;
3337
+ entry: z.ZodOptional<z.ZodObject<{
3338
+ repo: z.ZodString;
3339
+ fact: z.ZodString;
3340
+ component: z.ZodString;
3341
+ at: z.ZodString;
3342
+ }, z.core.$strip>>;
3343
+ system: z.ZodOptional<z.ZodString>;
3344
+ status: z.ZodEnum<{
3345
+ unconfirmed: "unconfirmed";
3346
+ mismatch: "mismatch";
3347
+ }>;
3348
+ kind: z.ZodEnum<{
3349
+ "field-missing": "field-missing";
3350
+ "field-extra": "field-extra";
3351
+ "field-not-sent": "field-not-sent";
3352
+ "field-required": "field-required";
3353
+ "field-type": "field-type";
3354
+ "field-number": "field-number";
3355
+ "error-unlisted": "error-unlisted";
3356
+ "error-unanswered": "error-unanswered";
3357
+ }>;
3358
+ side: z.ZodOptional<z.ZodEnum<{
3359
+ message: "message";
3360
+ request: "request";
3361
+ response: "response";
3362
+ }>>;
3363
+ field: z.ZodOptional<z.ZodString>;
3364
+ error: z.ZodOptional<z.ZodString>;
3365
+ sender: z.ZodObject<{
3366
+ repo: z.ZodOptional<z.ZodString>;
3367
+ system: z.ZodOptional<z.ZodString>;
3368
+ what: z.ZodString;
3369
+ value: z.ZodOptional<z.ZodString>;
3370
+ at: z.ZodOptional<z.ZodString>;
3371
+ }, z.core.$strip>;
3372
+ receiver: z.ZodObject<{
3373
+ repo: z.ZodOptional<z.ZodString>;
3374
+ system: z.ZodOptional<z.ZodString>;
3375
+ what: z.ZodString;
3376
+ value: z.ZodOptional<z.ZodString>;
3377
+ at: z.ZodOptional<z.ZodString>;
3378
+ }, z.core.$strip>;
3379
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3380
+ untraced: z.ZodOptional<z.ZodString>;
3381
+ message: z.ZodString;
3382
+ }, z.core.$strip>;
3383
+ export declare const ContractLinkView: z.ZodObject<{
3384
+ key: z.ZodString;
3385
+ interface: z.ZodOptional<z.ZodString>;
3386
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3387
+ call: z.ZodObject<{
3388
+ repo: z.ZodString;
3389
+ fact: z.ZodString;
3390
+ component: z.ZodString;
3391
+ at: z.ZodString;
3392
+ }, z.core.$strip>;
3393
+ entry: z.ZodOptional<z.ZodObject<{
3394
+ repo: z.ZodString;
3395
+ fact: z.ZodString;
3396
+ component: z.ZodString;
3397
+ at: z.ZodString;
3398
+ }, z.core.$strip>>;
3399
+ system: z.ZodOptional<z.ZodString>;
3400
+ kind: z.ZodEnum<{
3401
+ rest: "rest";
3402
+ topic: "topic";
3403
+ outside: "outside";
3404
+ }>;
3405
+ method: z.ZodOptional<z.ZodString>;
3406
+ path: z.ZodString;
3407
+ through: z.ZodArray<z.ZodString>;
3408
+ specs: z.ZodArray<z.ZodString>;
3409
+ compared: z.ZodNumber;
3410
+ mismatches: z.ZodNumber;
3411
+ unconfirmed: z.ZodNumber;
3412
+ }, z.core.$strip>;
3413
+ /** GET /api/contracts (2.47.0, ADR 0164): the estate's contract check. */
3414
+ export declare const ContractsView: z.ZodObject<{
3415
+ links: z.ZodArray<z.ZodObject<{
3416
+ key: z.ZodString;
3417
+ interface: z.ZodOptional<z.ZodString>;
3418
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3419
+ call: z.ZodObject<{
3420
+ repo: z.ZodString;
3421
+ fact: z.ZodString;
3422
+ component: z.ZodString;
3423
+ at: z.ZodString;
3424
+ }, z.core.$strip>;
3425
+ entry: z.ZodOptional<z.ZodObject<{
3426
+ repo: z.ZodString;
3427
+ fact: z.ZodString;
3428
+ component: z.ZodString;
3429
+ at: z.ZodString;
3430
+ }, z.core.$strip>>;
3431
+ system: z.ZodOptional<z.ZodString>;
3432
+ kind: z.ZodEnum<{
3433
+ rest: "rest";
3434
+ topic: "topic";
3435
+ outside: "outside";
3436
+ }>;
3437
+ method: z.ZodOptional<z.ZodString>;
3438
+ path: z.ZodString;
3439
+ through: z.ZodArray<z.ZodString>;
3440
+ specs: z.ZodArray<z.ZodString>;
3441
+ compared: z.ZodNumber;
3442
+ mismatches: z.ZodNumber;
3443
+ unconfirmed: z.ZodNumber;
3444
+ }, z.core.$strip>>;
3445
+ findings: z.ZodArray<z.ZodObject<{
3446
+ id: z.ZodString;
3447
+ interface: z.ZodOptional<z.ZodString>;
3448
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3449
+ call: z.ZodObject<{
3450
+ repo: z.ZodString;
3451
+ fact: z.ZodString;
3452
+ component: z.ZodString;
3453
+ at: z.ZodString;
3454
+ }, z.core.$strip>;
3455
+ entry: z.ZodOptional<z.ZodObject<{
3456
+ repo: z.ZodString;
3457
+ fact: z.ZodString;
3458
+ component: z.ZodString;
3459
+ at: z.ZodString;
3460
+ }, z.core.$strip>>;
3461
+ system: z.ZodOptional<z.ZodString>;
3462
+ status: z.ZodEnum<{
3463
+ unconfirmed: "unconfirmed";
3464
+ mismatch: "mismatch";
3465
+ }>;
3466
+ kind: z.ZodEnum<{
3467
+ "field-missing": "field-missing";
3468
+ "field-extra": "field-extra";
3469
+ "field-not-sent": "field-not-sent";
3470
+ "field-required": "field-required";
3471
+ "field-type": "field-type";
3472
+ "field-number": "field-number";
3473
+ "error-unlisted": "error-unlisted";
3474
+ "error-unanswered": "error-unanswered";
3475
+ }>;
3476
+ side: z.ZodOptional<z.ZodEnum<{
3477
+ message: "message";
3478
+ request: "request";
3479
+ response: "response";
3480
+ }>>;
3481
+ field: z.ZodOptional<z.ZodString>;
3482
+ error: z.ZodOptional<z.ZodString>;
3483
+ sender: z.ZodObject<{
3484
+ repo: z.ZodOptional<z.ZodString>;
3485
+ system: z.ZodOptional<z.ZodString>;
3486
+ what: z.ZodString;
3487
+ value: z.ZodOptional<z.ZodString>;
3488
+ at: z.ZodOptional<z.ZodString>;
3489
+ }, z.core.$strip>;
3490
+ receiver: z.ZodObject<{
3491
+ repo: z.ZodOptional<z.ZodString>;
3492
+ system: z.ZodOptional<z.ZodString>;
3493
+ what: z.ZodString;
3494
+ value: z.ZodOptional<z.ZodString>;
3495
+ at: z.ZodOptional<z.ZodString>;
3496
+ }, z.core.$strip>;
3497
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3498
+ untraced: z.ZodOptional<z.ZodString>;
3499
+ message: z.ZodString;
3500
+ }, z.core.$strip>>;
3501
+ counts: z.ZodObject<{
3502
+ links: z.ZodNumber;
3503
+ compared: z.ZodNumber;
3504
+ mismatches: z.ZodNumber;
3505
+ unconfirmed: z.ZodNumber;
3506
+ }, z.core.$strip>;
3507
+ notes: z.ZodArray<z.ZodString>;
3508
+ }, z.core.$strip>;
3509
+ export type ContractMismatchViewT = z.infer<typeof ContractMismatchView>;
3510
+ export type ContractLinkViewT = z.infer<typeof ContractLinkView>;
3511
+ export type ContractsViewT = z.infer<typeof ContractsView>;
3248
3512
  /**
3249
3513
  * 2.42.0 (ADR 0149, O4): the systems outside the estate (every profile system no estate repo
3250
3514
  * belongs to: vendors and other teams), each with who calls it, the operations its intaken spec
@@ -3423,6 +3687,65 @@ export declare const OutsideSystemView: z.ZodObject<{
3423
3687
  message: z.ZodString;
3424
3688
  }, z.core.$strip>>;
3425
3689
  }, z.core.$strip>>;
3690
+ contracts: z.ZodOptional<z.ZodObject<{
3691
+ findings: z.ZodArray<z.ZodObject<{
3692
+ id: z.ZodString;
3693
+ interface: z.ZodOptional<z.ZodString>;
3694
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3695
+ call: z.ZodObject<{
3696
+ repo: z.ZodString;
3697
+ fact: z.ZodString;
3698
+ component: z.ZodString;
3699
+ at: z.ZodString;
3700
+ }, z.core.$strip>;
3701
+ entry: z.ZodOptional<z.ZodObject<{
3702
+ repo: z.ZodString;
3703
+ fact: z.ZodString;
3704
+ component: z.ZodString;
3705
+ at: z.ZodString;
3706
+ }, z.core.$strip>>;
3707
+ system: z.ZodOptional<z.ZodString>;
3708
+ status: z.ZodEnum<{
3709
+ unconfirmed: "unconfirmed";
3710
+ mismatch: "mismatch";
3711
+ }>;
3712
+ kind: z.ZodEnum<{
3713
+ "field-missing": "field-missing";
3714
+ "field-extra": "field-extra";
3715
+ "field-not-sent": "field-not-sent";
3716
+ "field-required": "field-required";
3717
+ "field-type": "field-type";
3718
+ "field-number": "field-number";
3719
+ "error-unlisted": "error-unlisted";
3720
+ "error-unanswered": "error-unanswered";
3721
+ }>;
3722
+ side: z.ZodOptional<z.ZodEnum<{
3723
+ message: "message";
3724
+ request: "request";
3725
+ response: "response";
3726
+ }>>;
3727
+ field: z.ZodOptional<z.ZodString>;
3728
+ error: z.ZodOptional<z.ZodString>;
3729
+ sender: z.ZodObject<{
3730
+ repo: z.ZodOptional<z.ZodString>;
3731
+ system: z.ZodOptional<z.ZodString>;
3732
+ what: z.ZodString;
3733
+ value: z.ZodOptional<z.ZodString>;
3734
+ at: z.ZodOptional<z.ZodString>;
3735
+ }, z.core.$strip>;
3736
+ receiver: z.ZodObject<{
3737
+ repo: z.ZodOptional<z.ZodString>;
3738
+ system: z.ZodOptional<z.ZodString>;
3739
+ what: z.ZodString;
3740
+ value: z.ZodOptional<z.ZodString>;
3741
+ at: z.ZodOptional<z.ZodString>;
3742
+ }, z.core.$strip>;
3743
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3744
+ untraced: z.ZodOptional<z.ZodString>;
3745
+ message: z.ZodString;
3746
+ }, z.core.$strip>>;
3747
+ new: z.ZodOptional<z.ZodArray<z.ZodString>>;
3748
+ }, z.core.$strip>>;
3426
3749
  }, z.core.$strip>;
3427
3750
  export declare const OutsideView: z.ZodObject<{
3428
3751
  systems: z.ZodArray<z.ZodObject<{
@@ -3572,6 +3895,65 @@ export declare const OutsideView: z.ZodObject<{
3572
3895
  message: z.ZodString;
3573
3896
  }, z.core.$strip>>;
3574
3897
  }, z.core.$strip>>;
3898
+ contracts: z.ZodOptional<z.ZodObject<{
3899
+ findings: z.ZodArray<z.ZodObject<{
3900
+ id: z.ZodString;
3901
+ interface: z.ZodOptional<z.ZodString>;
3902
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3903
+ call: z.ZodObject<{
3904
+ repo: z.ZodString;
3905
+ fact: z.ZodString;
3906
+ component: z.ZodString;
3907
+ at: z.ZodString;
3908
+ }, z.core.$strip>;
3909
+ entry: z.ZodOptional<z.ZodObject<{
3910
+ repo: z.ZodString;
3911
+ fact: z.ZodString;
3912
+ component: z.ZodString;
3913
+ at: z.ZodString;
3914
+ }, z.core.$strip>>;
3915
+ system: z.ZodOptional<z.ZodString>;
3916
+ status: z.ZodEnum<{
3917
+ unconfirmed: "unconfirmed";
3918
+ mismatch: "mismatch";
3919
+ }>;
3920
+ kind: z.ZodEnum<{
3921
+ "field-missing": "field-missing";
3922
+ "field-extra": "field-extra";
3923
+ "field-not-sent": "field-not-sent";
3924
+ "field-required": "field-required";
3925
+ "field-type": "field-type";
3926
+ "field-number": "field-number";
3927
+ "error-unlisted": "error-unlisted";
3928
+ "error-unanswered": "error-unanswered";
3929
+ }>;
3930
+ side: z.ZodOptional<z.ZodEnum<{
3931
+ message: "message";
3932
+ request: "request";
3933
+ response: "response";
3934
+ }>>;
3935
+ field: z.ZodOptional<z.ZodString>;
3936
+ error: z.ZodOptional<z.ZodString>;
3937
+ sender: z.ZodObject<{
3938
+ repo: z.ZodOptional<z.ZodString>;
3939
+ system: z.ZodOptional<z.ZodString>;
3940
+ what: z.ZodString;
3941
+ value: z.ZodOptional<z.ZodString>;
3942
+ at: z.ZodOptional<z.ZodString>;
3943
+ }, z.core.$strip>;
3944
+ receiver: z.ZodObject<{
3945
+ repo: z.ZodOptional<z.ZodString>;
3946
+ system: z.ZodOptional<z.ZodString>;
3947
+ what: z.ZodString;
3948
+ value: z.ZodOptional<z.ZodString>;
3949
+ at: z.ZodOptional<z.ZodString>;
3950
+ }, z.core.$strip>;
3951
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3952
+ untraced: z.ZodOptional<z.ZodString>;
3953
+ message: z.ZodString;
3954
+ }, z.core.$strip>>;
3955
+ new: z.ZodOptional<z.ZodArray<z.ZodString>>;
3956
+ }, z.core.$strip>>;
3575
3957
  }, z.core.$strip>>;
3576
3958
  notes: z.ZodArray<z.ZodString>;
3577
3959
  }, z.core.$strip>;
@@ -3883,7 +4265,7 @@ export declare const StageReviewView: z.ZodObject<{
3883
4265
  }, z.core.$strip>>;
3884
4266
  }, z.core.$strip>>;
3885
4267
  questions: z.ZodArray<z.ZodObject<{
3886
- schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
4268
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
3887
4269
  id: z.ZodString;
3888
4270
  askedBy: z.ZodObject<{
3889
4271
  step: z.ZodString;
@@ -3949,6 +4331,35 @@ export declare const StageReviewView: z.ZodObject<{
3949
4331
  why: z.ZodString;
3950
4332
  replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
3951
4333
  }, z.core.$strict>>;
4334
+ reopened: z.ZodOptional<z.ZodObject<{
4335
+ at: z.ZodISODateTime;
4336
+ why: z.ZodString;
4337
+ answer: z.ZodObject<{
4338
+ option: z.ZodOptional<z.ZodNumber>;
4339
+ text: z.ZodOptional<z.ZodString>;
4340
+ by: z.ZodString;
4341
+ at: z.ZodISODateTime;
4342
+ scope: z.ZodObject<{
4343
+ level: z.ZodEnum<{
4344
+ repo: "repo";
4345
+ "repo-type": "repo-type";
4346
+ }>;
4347
+ id: z.ZodString;
4348
+ }, z.core.$strict>;
4349
+ skill: z.ZodOptional<z.ZodString>;
4350
+ match: z.ZodOptional<z.ZodString>;
4351
+ proposal: z.ZodOptional<z.ZodObject<{
4352
+ by: z.ZodString;
4353
+ at: z.ZodISODateTime;
4354
+ cites: z.ZodArray<z.ZodObject<{
4355
+ repo: z.ZodOptional<z.ZodString>;
4356
+ file: z.ZodString;
4357
+ line: z.ZodNumber;
4358
+ quote: z.ZodString;
4359
+ }, z.core.$strict>>;
4360
+ }, z.core.$strict>>;
4361
+ }, z.core.$strict>;
4362
+ }, z.core.$strict>>;
3952
4363
  related: z.ZodOptional<z.ZodArray<z.ZodObject<{
3953
4364
  id: z.ZodString;
3954
4365
  verdict: z.ZodEnum<{
@@ -5429,8 +5840,8 @@ export declare const PrototypeDifferenceView: z.ZodObject<{
5429
5840
  kind: z.ZodEnum<{
5430
5841
  auth: "auth";
5431
5842
  "field-missing": "field-missing";
5432
- "field-type": "field-type";
5433
5843
  "field-required": "field-required";
5844
+ "field-type": "field-type";
5434
5845
  "field-enum": "field-enum";
5435
5846
  "header-missing": "header-missing";
5436
5847
  "header-required": "header-required";
@@ -5521,8 +5932,8 @@ export declare const PrototypeCallView: z.ZodObject<{
5521
5932
  kind: z.ZodEnum<{
5522
5933
  auth: "auth";
5523
5934
  "field-missing": "field-missing";
5524
- "field-type": "field-type";
5525
5935
  "field-required": "field-required";
5936
+ "field-type": "field-type";
5526
5937
  "field-enum": "field-enum";
5527
5938
  "header-missing": "header-missing";
5528
5939
  "header-required": "header-required";
@@ -5622,8 +6033,8 @@ export declare const PrototypeComparisonView: z.ZodObject<{
5622
6033
  kind: z.ZodEnum<{
5623
6034
  auth: "auth";
5624
6035
  "field-missing": "field-missing";
5625
- "field-type": "field-type";
5626
6036
  "field-required": "field-required";
6037
+ "field-type": "field-type";
5627
6038
  "field-enum": "field-enum";
5628
6039
  "header-missing": "header-missing";
5629
6040
  "header-required": "header-required";
@@ -5753,8 +6164,8 @@ export declare const ChangePrototype: z.ZodObject<{
5753
6164
  kind: z.ZodEnum<{
5754
6165
  auth: "auth";
5755
6166
  "field-missing": "field-missing";
5756
- "field-type": "field-type";
5757
6167
  "field-required": "field-required";
6168
+ "field-type": "field-type";
5758
6169
  "field-enum": "field-enum";
5759
6170
  "header-missing": "header-missing";
5760
6171
  "header-required": "header-required";
@@ -5882,8 +6293,8 @@ export declare const ChangePrototypeList: z.ZodObject<{
5882
6293
  kind: z.ZodEnum<{
5883
6294
  auth: "auth";
5884
6295
  "field-missing": "field-missing";
5885
- "field-type": "field-type";
5886
6296
  "field-required": "field-required";
6297
+ "field-type": "field-type";
5887
6298
  "field-enum": "field-enum";
5888
6299
  "header-missing": "header-missing";
5889
6300
  "header-required": "header-required";
@@ -6062,7 +6473,7 @@ export declare const ReconcileRequest: z.ZodObject<{
6062
6473
  /** ADR 0078: the questions in questions/, and the files that aren't valid questions. */
6063
6474
  export declare const QuestionList: z.ZodObject<{
6064
6475
  questions: z.ZodArray<z.ZodObject<{
6065
- schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6476
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
6066
6477
  id: z.ZodString;
6067
6478
  askedBy: z.ZodObject<{
6068
6479
  step: z.ZodString;
@@ -6128,6 +6539,35 @@ export declare const QuestionList: z.ZodObject<{
6128
6539
  why: z.ZodString;
6129
6540
  replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
6130
6541
  }, z.core.$strict>>;
6542
+ reopened: z.ZodOptional<z.ZodObject<{
6543
+ at: z.ZodISODateTime;
6544
+ why: z.ZodString;
6545
+ answer: z.ZodObject<{
6546
+ option: z.ZodOptional<z.ZodNumber>;
6547
+ text: z.ZodOptional<z.ZodString>;
6548
+ by: z.ZodString;
6549
+ at: z.ZodISODateTime;
6550
+ scope: z.ZodObject<{
6551
+ level: z.ZodEnum<{
6552
+ repo: "repo";
6553
+ "repo-type": "repo-type";
6554
+ }>;
6555
+ id: z.ZodString;
6556
+ }, z.core.$strict>;
6557
+ skill: z.ZodOptional<z.ZodString>;
6558
+ match: z.ZodOptional<z.ZodString>;
6559
+ proposal: z.ZodOptional<z.ZodObject<{
6560
+ by: z.ZodString;
6561
+ at: z.ZodISODateTime;
6562
+ cites: z.ZodArray<z.ZodObject<{
6563
+ repo: z.ZodOptional<z.ZodString>;
6564
+ file: z.ZodString;
6565
+ line: z.ZodNumber;
6566
+ quote: z.ZodString;
6567
+ }, z.core.$strict>>;
6568
+ }, z.core.$strict>>;
6569
+ }, z.core.$strict>;
6570
+ }, z.core.$strict>>;
6131
6571
  related: z.ZodOptional<z.ZodArray<z.ZodObject<{
6132
6572
  id: z.ZodString;
6133
6573
  verdict: z.ZodEnum<{
@@ -6169,6 +6609,11 @@ export declare const QuestionList: z.ZodObject<{
6169
6609
  at: z.ZodString;
6170
6610
  file: z.ZodString;
6171
6611
  }, z.core.$strip>>;
6612
+ rule: z.ZodOptional<z.ZodObject<{
6613
+ match: z.ZodString;
6614
+ ids: z.ZodArray<z.ZodString>;
6615
+ calls: z.ZodNumber;
6616
+ }, z.core.$strip>>;
6172
6617
  }, z.core.$strip>>>;
6173
6618
  me: z.ZodOptional<z.ZodObject<{
6174
6619
  handle: z.ZodString;
@@ -6190,11 +6635,17 @@ export declare const AnswerQuestionRequest: z.ZodObject<{
6190
6635
  repoType: z.ZodOptional<z.ZodString>;
6191
6636
  acceptProposal: z.ZodOptional<z.ZodLiteral<true>>;
6192
6637
  match: z.ZodOptional<z.ZodString>;
6638
+ target: z.ZodOptional<z.ZodString>;
6639
+ addSystem: z.ZodOptional<z.ZodEnum<{
6640
+ internal: "internal";
6641
+ vendor: "vendor";
6642
+ }>>;
6643
+ name: z.ZodOptional<z.ZodString>;
6193
6644
  }, z.core.$strict>;
6194
6645
  /** ADR 0078: the answered question, the command to run next and, for a repo type, its skill file. */
6195
6646
  export declare const AnsweredQuestion: z.ZodObject<{
6196
6647
  question: z.ZodObject<{
6197
- schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6648
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
6198
6649
  id: z.ZodString;
6199
6650
  askedBy: z.ZodObject<{
6200
6651
  step: z.ZodString;
@@ -6260,6 +6711,35 @@ export declare const AnsweredQuestion: z.ZodObject<{
6260
6711
  why: z.ZodString;
6261
6712
  replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
6262
6713
  }, z.core.$strict>>;
6714
+ reopened: z.ZodOptional<z.ZodObject<{
6715
+ at: z.ZodISODateTime;
6716
+ why: z.ZodString;
6717
+ answer: z.ZodObject<{
6718
+ option: z.ZodOptional<z.ZodNumber>;
6719
+ text: z.ZodOptional<z.ZodString>;
6720
+ by: z.ZodString;
6721
+ at: z.ZodISODateTime;
6722
+ scope: z.ZodObject<{
6723
+ level: z.ZodEnum<{
6724
+ repo: "repo";
6725
+ "repo-type": "repo-type";
6726
+ }>;
6727
+ id: z.ZodString;
6728
+ }, z.core.$strict>;
6729
+ skill: z.ZodOptional<z.ZodString>;
6730
+ match: z.ZodOptional<z.ZodString>;
6731
+ proposal: z.ZodOptional<z.ZodObject<{
6732
+ by: z.ZodString;
6733
+ at: z.ZodISODateTime;
6734
+ cites: z.ZodArray<z.ZodObject<{
6735
+ repo: z.ZodOptional<z.ZodString>;
6736
+ file: z.ZodString;
6737
+ line: z.ZodNumber;
6738
+ quote: z.ZodString;
6739
+ }, z.core.$strict>>;
6740
+ }, z.core.$strict>>;
6741
+ }, z.core.$strict>;
6742
+ }, z.core.$strict>>;
6263
6743
  related: z.ZodOptional<z.ZodArray<z.ZodObject<{
6264
6744
  id: z.ZodString;
6265
6745
  verdict: z.ZodEnum<{
@@ -6274,7 +6754,38 @@ export declare const AnsweredQuestion: z.ZodObject<{
6274
6754
  path: z.ZodString;
6275
6755
  written: z.ZodBoolean;
6276
6756
  }, z.core.$strip>>;
6757
+ system: z.ZodOptional<z.ZodObject<{
6758
+ id: z.ZodString;
6759
+ profile: z.ZodString;
6760
+ added: z.ZodBoolean;
6761
+ boundary: z.ZodEnum<{
6762
+ internal: "internal";
6763
+ vendor: "vendor";
6764
+ }>;
6765
+ owner: z.ZodOptional<z.ZodString>;
6766
+ }, z.core.$strip>>;
6767
+ }, z.core.$strip>;
6768
+ /** 2.45.0 (ADR 0162, F8): the "Another repo…" picker of a targets question. */
6769
+ export declare const TargetPickList: z.ZodObject<{
6770
+ picks: z.ZodArray<z.ZodObject<{
6771
+ id: z.ZodString;
6772
+ kind: z.ZodEnum<{
6773
+ repo: "repo";
6774
+ system: "system";
6775
+ team: "team";
6776
+ }>;
6777
+ name: z.ZodString;
6778
+ read: z.ZodOptional<z.ZodBoolean>;
6779
+ boundary: z.ZodOptional<z.ZodString>;
6780
+ adds: z.ZodOptional<z.ZodObject<{
6781
+ id: z.ZodString;
6782
+ name: z.ZodString;
6783
+ boundary: z.ZodLiteral<"internal">;
6784
+ owner: z.ZodString;
6785
+ }, z.core.$strip>>;
6786
+ }, z.core.$strip>>;
6277
6787
  }, z.core.$strip>;
6788
+ export type TargetPickListT = z.infer<typeof TargetPickList>;
6278
6789
  /** The wiki types sources.yaml takes (C6). */
6279
6790
  export declare const WIKI_TYPES: readonly ["confluence", "ado-wiki", "sharepoint", "markdown-folder", "git", "confluence-export", "sharepoint-export"];
6280
6791
  /** A person's review of a knowledge item (ADR 0101); stale: its page changed since. */