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

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,23 @@ 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.
112
127
  */
113
- export declare const API_VERSION = "2.44.0";
128
+ export declare const API_VERSION = "2.48.0";
114
129
  export declare const DEFAULT_PORT = 4321;
115
130
  /** RFC 9457 problem details, used for every error. */
116
131
  export declare const Problem: z.ZodObject<{
@@ -2195,6 +2210,19 @@ export declare const TrustRepo: z.ZodObject<{
2195
2210
  cite: z.ZodString;
2196
2211
  gap: z.ZodOptional<z.ZodString>;
2197
2212
  }, z.core.$strip>>>;
2213
+ terms: z.ZodOptional<z.ZodArray<z.ZodObject<{
2214
+ term: z.ZodString;
2215
+ value: z.ZodString;
2216
+ role: z.ZodEnum<{
2217
+ unknown: "unknown";
2218
+ owner: "owner";
2219
+ none: "none";
2220
+ consumer: "consumer";
2221
+ }>;
2222
+ cite: z.ZodString;
2223
+ meaning: z.ZodOptional<z.ZodString>;
2224
+ note: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2225
+ }, z.core.$strip>>>;
2198
2226
  lists: z.ZodOptional<z.ZodObject<{
2199
2227
  rejected: z.ZodArray<z.ZodObject<{
2200
2228
  fact: z.ZodOptional<z.ZodString>;
@@ -2254,6 +2282,13 @@ export declare const TrustRepo: z.ZodObject<{
2254
2282
  }, z.core.$strip>;
2255
2283
  }, z.core.$strip>>;
2256
2284
  }, z.core.$strip>;
2285
+ /** 2.47.0 (ADR 0164): the contract check's counts. */
2286
+ export declare const ContractCounts: z.ZodObject<{
2287
+ links: z.ZodNumber;
2288
+ compared: z.ZodNumber;
2289
+ mismatches: z.ZodNumber;
2290
+ unconfirmed: z.ZodNumber;
2291
+ }, z.core.$strip>;
2257
2292
  export declare const TrustView: z.ZodObject<{
2258
2293
  factsDir: z.ZodString;
2259
2294
  repos: z.ZodArray<z.ZodObject<{
@@ -2317,6 +2352,19 @@ export declare const TrustView: z.ZodObject<{
2317
2352
  cite: z.ZodString;
2318
2353
  gap: z.ZodOptional<z.ZodString>;
2319
2354
  }, z.core.$strip>>>;
2355
+ terms: z.ZodOptional<z.ZodArray<z.ZodObject<{
2356
+ term: z.ZodString;
2357
+ value: z.ZodString;
2358
+ role: z.ZodEnum<{
2359
+ unknown: "unknown";
2360
+ owner: "owner";
2361
+ none: "none";
2362
+ consumer: "consumer";
2363
+ }>;
2364
+ cite: z.ZodString;
2365
+ meaning: z.ZodOptional<z.ZodString>;
2366
+ note: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2367
+ }, z.core.$strip>>>;
2320
2368
  lists: z.ZodOptional<z.ZodObject<{
2321
2369
  rejected: z.ZodArray<z.ZodObject<{
2322
2370
  fact: z.ZodOptional<z.ZodString>;
@@ -2376,6 +2424,12 @@ export declare const TrustView: z.ZodObject<{
2376
2424
  }, z.core.$strip>;
2377
2425
  }, z.core.$strip>>;
2378
2426
  }, z.core.$strip>>;
2427
+ contracts: z.ZodOptional<z.ZodObject<{
2428
+ links: z.ZodNumber;
2429
+ compared: z.ZodNumber;
2430
+ mismatches: z.ZodNumber;
2431
+ unconfirmed: z.ZodNumber;
2432
+ }, z.core.$strip>>;
2379
2433
  problems: z.ZodArray<z.ZodObject<{
2380
2434
  file: z.ZodString;
2381
2435
  message: z.ZodString;
@@ -2777,6 +2831,7 @@ export declare const FactCiteView: z.ZodObject<{
2777
2831
  kind: z.ZodEnum<{
2778
2832
  config: "config";
2779
2833
  field: "field";
2834
+ term: "term";
2780
2835
  framework: "framework";
2781
2836
  entry: "entry";
2782
2837
  store: "store";
@@ -2840,6 +2895,7 @@ export declare const RepoFactsView: z.ZodObject<{
2840
2895
  kind: z.ZodEnum<{
2841
2896
  config: "config";
2842
2897
  field: "field";
2898
+ term: "term";
2843
2899
  framework: "framework";
2844
2900
  entry: "entry";
2845
2901
  store: "store";
@@ -2897,6 +2953,7 @@ export declare const FactCorrectionResult: z.ZodObject<{
2897
2953
  kind: z.ZodEnum<{
2898
2954
  config: "config";
2899
2955
  field: "field";
2956
+ term: "term";
2900
2957
  framework: "framework";
2901
2958
  entry: "entry";
2902
2959
  store: "store";
@@ -2934,8 +2991,8 @@ export declare const NextStepView: z.ZodObject<{
2934
2991
  push: "push";
2935
2992
  branch: "branch";
2936
2993
  pr: "pr";
2937
- verify: "verify";
2938
2994
  add: "add";
2995
+ verify: "verify";
2939
2996
  }>;
2940
2997
  command: z.ZodOptional<z.ZodString>;
2941
2998
  }, z.core.$strip>;
@@ -2963,8 +3020,8 @@ export declare const VerifyPreviewView: z.ZodObject<{
2963
3020
  push: "push";
2964
3021
  branch: "branch";
2965
3022
  pr: "pr";
2966
- verify: "verify";
2967
3023
  add: "add";
3024
+ verify: "verify";
2968
3025
  }>;
2969
3026
  command: z.ZodOptional<z.ZodString>;
2970
3027
  }, z.core.$strip>>;
@@ -3245,6 +3302,209 @@ export declare const AuditAnswerResult: z.ZodObject<{
3245
3302
  export type AuditItemViewT = z.infer<typeof AuditItemView>;
3246
3303
  export type AuditSampleViewT = z.infer<typeof AuditSampleView>;
3247
3304
  export type AuditAnswerResultT = z.infer<typeof AuditAnswerResult>;
3305
+ /**
3306
+ * 2.47.0 (ADR 0164, F7): one difference the contract check found between the two sides of a
3307
+ * link: what each side says and its line, the mappings it went through, and whether it is a
3308
+ * mismatch or unconfirmed (a mapping on the way nobody traced).
3309
+ */
3310
+ export declare const ContractEndView: z.ZodObject<{
3311
+ repo: z.ZodOptional<z.ZodString>;
3312
+ system: z.ZodOptional<z.ZodString>;
3313
+ what: z.ZodString;
3314
+ value: z.ZodOptional<z.ZodString>;
3315
+ at: z.ZodOptional<z.ZodString>;
3316
+ }, z.core.$strip>;
3317
+ export declare const ContractFactEnd: z.ZodObject<{
3318
+ repo: z.ZodString;
3319
+ fact: z.ZodString;
3320
+ component: z.ZodString;
3321
+ at: z.ZodString;
3322
+ }, z.core.$strip>;
3323
+ export declare const ContractMismatchView: z.ZodObject<{
3324
+ id: z.ZodString;
3325
+ interface: z.ZodOptional<z.ZodString>;
3326
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3327
+ call: z.ZodObject<{
3328
+ repo: z.ZodString;
3329
+ fact: z.ZodString;
3330
+ component: z.ZodString;
3331
+ at: z.ZodString;
3332
+ }, z.core.$strip>;
3333
+ entry: z.ZodOptional<z.ZodObject<{
3334
+ repo: z.ZodString;
3335
+ fact: z.ZodString;
3336
+ component: z.ZodString;
3337
+ at: z.ZodString;
3338
+ }, z.core.$strip>>;
3339
+ system: z.ZodOptional<z.ZodString>;
3340
+ status: z.ZodEnum<{
3341
+ unconfirmed: "unconfirmed";
3342
+ mismatch: "mismatch";
3343
+ }>;
3344
+ kind: z.ZodEnum<{
3345
+ "field-missing": "field-missing";
3346
+ "field-extra": "field-extra";
3347
+ "field-not-sent": "field-not-sent";
3348
+ "field-required": "field-required";
3349
+ "field-type": "field-type";
3350
+ "field-number": "field-number";
3351
+ "error-unlisted": "error-unlisted";
3352
+ "error-unanswered": "error-unanswered";
3353
+ }>;
3354
+ side: z.ZodOptional<z.ZodEnum<{
3355
+ message: "message";
3356
+ request: "request";
3357
+ response: "response";
3358
+ }>>;
3359
+ field: z.ZodOptional<z.ZodString>;
3360
+ error: z.ZodOptional<z.ZodString>;
3361
+ sender: z.ZodObject<{
3362
+ repo: z.ZodOptional<z.ZodString>;
3363
+ system: z.ZodOptional<z.ZodString>;
3364
+ what: z.ZodString;
3365
+ value: z.ZodOptional<z.ZodString>;
3366
+ at: z.ZodOptional<z.ZodString>;
3367
+ }, z.core.$strip>;
3368
+ receiver: z.ZodObject<{
3369
+ repo: z.ZodOptional<z.ZodString>;
3370
+ system: z.ZodOptional<z.ZodString>;
3371
+ what: z.ZodString;
3372
+ value: z.ZodOptional<z.ZodString>;
3373
+ at: z.ZodOptional<z.ZodString>;
3374
+ }, z.core.$strip>;
3375
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3376
+ untraced: z.ZodOptional<z.ZodString>;
3377
+ message: z.ZodString;
3378
+ }, z.core.$strip>;
3379
+ export declare const ContractLinkView: z.ZodObject<{
3380
+ key: z.ZodString;
3381
+ interface: z.ZodOptional<z.ZodString>;
3382
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3383
+ call: z.ZodObject<{
3384
+ repo: z.ZodString;
3385
+ fact: z.ZodString;
3386
+ component: z.ZodString;
3387
+ at: z.ZodString;
3388
+ }, z.core.$strip>;
3389
+ entry: z.ZodOptional<z.ZodObject<{
3390
+ repo: z.ZodString;
3391
+ fact: z.ZodString;
3392
+ component: z.ZodString;
3393
+ at: z.ZodString;
3394
+ }, z.core.$strip>>;
3395
+ system: z.ZodOptional<z.ZodString>;
3396
+ kind: z.ZodEnum<{
3397
+ rest: "rest";
3398
+ topic: "topic";
3399
+ outside: "outside";
3400
+ }>;
3401
+ method: z.ZodOptional<z.ZodString>;
3402
+ path: z.ZodString;
3403
+ through: z.ZodArray<z.ZodString>;
3404
+ specs: z.ZodArray<z.ZodString>;
3405
+ compared: z.ZodNumber;
3406
+ mismatches: z.ZodNumber;
3407
+ unconfirmed: z.ZodNumber;
3408
+ }, z.core.$strip>;
3409
+ /** GET /api/contracts (2.47.0, ADR 0164): the estate's contract check. */
3410
+ export declare const ContractsView: z.ZodObject<{
3411
+ links: z.ZodArray<z.ZodObject<{
3412
+ key: z.ZodString;
3413
+ interface: z.ZodOptional<z.ZodString>;
3414
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3415
+ call: z.ZodObject<{
3416
+ repo: z.ZodString;
3417
+ fact: z.ZodString;
3418
+ component: z.ZodString;
3419
+ at: z.ZodString;
3420
+ }, z.core.$strip>;
3421
+ entry: z.ZodOptional<z.ZodObject<{
3422
+ repo: z.ZodString;
3423
+ fact: z.ZodString;
3424
+ component: z.ZodString;
3425
+ at: z.ZodString;
3426
+ }, z.core.$strip>>;
3427
+ system: z.ZodOptional<z.ZodString>;
3428
+ kind: z.ZodEnum<{
3429
+ rest: "rest";
3430
+ topic: "topic";
3431
+ outside: "outside";
3432
+ }>;
3433
+ method: z.ZodOptional<z.ZodString>;
3434
+ path: z.ZodString;
3435
+ through: z.ZodArray<z.ZodString>;
3436
+ specs: z.ZodArray<z.ZodString>;
3437
+ compared: z.ZodNumber;
3438
+ mismatches: z.ZodNumber;
3439
+ unconfirmed: z.ZodNumber;
3440
+ }, z.core.$strip>>;
3441
+ findings: z.ZodArray<z.ZodObject<{
3442
+ id: z.ZodString;
3443
+ interface: z.ZodOptional<z.ZodString>;
3444
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3445
+ call: z.ZodObject<{
3446
+ repo: z.ZodString;
3447
+ fact: z.ZodString;
3448
+ component: z.ZodString;
3449
+ at: z.ZodString;
3450
+ }, z.core.$strip>;
3451
+ entry: z.ZodOptional<z.ZodObject<{
3452
+ repo: z.ZodString;
3453
+ fact: z.ZodString;
3454
+ component: z.ZodString;
3455
+ at: z.ZodString;
3456
+ }, z.core.$strip>>;
3457
+ system: z.ZodOptional<z.ZodString>;
3458
+ status: z.ZodEnum<{
3459
+ unconfirmed: "unconfirmed";
3460
+ mismatch: "mismatch";
3461
+ }>;
3462
+ kind: z.ZodEnum<{
3463
+ "field-missing": "field-missing";
3464
+ "field-extra": "field-extra";
3465
+ "field-not-sent": "field-not-sent";
3466
+ "field-required": "field-required";
3467
+ "field-type": "field-type";
3468
+ "field-number": "field-number";
3469
+ "error-unlisted": "error-unlisted";
3470
+ "error-unanswered": "error-unanswered";
3471
+ }>;
3472
+ side: z.ZodOptional<z.ZodEnum<{
3473
+ message: "message";
3474
+ request: "request";
3475
+ response: "response";
3476
+ }>>;
3477
+ field: z.ZodOptional<z.ZodString>;
3478
+ error: z.ZodOptional<z.ZodString>;
3479
+ sender: z.ZodObject<{
3480
+ repo: z.ZodOptional<z.ZodString>;
3481
+ system: z.ZodOptional<z.ZodString>;
3482
+ what: z.ZodString;
3483
+ value: z.ZodOptional<z.ZodString>;
3484
+ at: z.ZodOptional<z.ZodString>;
3485
+ }, z.core.$strip>;
3486
+ receiver: z.ZodObject<{
3487
+ repo: z.ZodOptional<z.ZodString>;
3488
+ system: z.ZodOptional<z.ZodString>;
3489
+ what: z.ZodString;
3490
+ value: z.ZodOptional<z.ZodString>;
3491
+ at: z.ZodOptional<z.ZodString>;
3492
+ }, z.core.$strip>;
3493
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3494
+ untraced: z.ZodOptional<z.ZodString>;
3495
+ message: z.ZodString;
3496
+ }, z.core.$strip>>;
3497
+ counts: z.ZodObject<{
3498
+ links: z.ZodNumber;
3499
+ compared: z.ZodNumber;
3500
+ mismatches: z.ZodNumber;
3501
+ unconfirmed: z.ZodNumber;
3502
+ }, z.core.$strip>;
3503
+ notes: z.ZodArray<z.ZodString>;
3504
+ }, z.core.$strip>;
3505
+ export type ContractMismatchViewT = z.infer<typeof ContractMismatchView>;
3506
+ export type ContractLinkViewT = z.infer<typeof ContractLinkView>;
3507
+ export type ContractsViewT = z.infer<typeof ContractsView>;
3248
3508
  /**
3249
3509
  * 2.42.0 (ADR 0149, O4): the systems outside the estate (every profile system no estate repo
3250
3510
  * belongs to: vendors and other teams), each with who calls it, the operations its intaken spec
@@ -3423,6 +3683,65 @@ export declare const OutsideSystemView: z.ZodObject<{
3423
3683
  message: z.ZodString;
3424
3684
  }, z.core.$strip>>;
3425
3685
  }, z.core.$strip>>;
3686
+ contracts: z.ZodOptional<z.ZodObject<{
3687
+ findings: z.ZodArray<z.ZodObject<{
3688
+ id: z.ZodString;
3689
+ interface: z.ZodOptional<z.ZodString>;
3690
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3691
+ call: z.ZodObject<{
3692
+ repo: z.ZodString;
3693
+ fact: z.ZodString;
3694
+ component: z.ZodString;
3695
+ at: z.ZodString;
3696
+ }, z.core.$strip>;
3697
+ entry: z.ZodOptional<z.ZodObject<{
3698
+ repo: z.ZodString;
3699
+ fact: z.ZodString;
3700
+ component: z.ZodString;
3701
+ at: z.ZodString;
3702
+ }, z.core.$strip>>;
3703
+ system: z.ZodOptional<z.ZodString>;
3704
+ status: z.ZodEnum<{
3705
+ unconfirmed: "unconfirmed";
3706
+ mismatch: "mismatch";
3707
+ }>;
3708
+ kind: z.ZodEnum<{
3709
+ "field-missing": "field-missing";
3710
+ "field-extra": "field-extra";
3711
+ "field-not-sent": "field-not-sent";
3712
+ "field-required": "field-required";
3713
+ "field-type": "field-type";
3714
+ "field-number": "field-number";
3715
+ "error-unlisted": "error-unlisted";
3716
+ "error-unanswered": "error-unanswered";
3717
+ }>;
3718
+ side: z.ZodOptional<z.ZodEnum<{
3719
+ message: "message";
3720
+ request: "request";
3721
+ response: "response";
3722
+ }>>;
3723
+ field: z.ZodOptional<z.ZodString>;
3724
+ error: z.ZodOptional<z.ZodString>;
3725
+ sender: z.ZodObject<{
3726
+ repo: z.ZodOptional<z.ZodString>;
3727
+ system: z.ZodOptional<z.ZodString>;
3728
+ what: z.ZodString;
3729
+ value: z.ZodOptional<z.ZodString>;
3730
+ at: z.ZodOptional<z.ZodString>;
3731
+ }, z.core.$strip>;
3732
+ receiver: z.ZodObject<{
3733
+ repo: z.ZodOptional<z.ZodString>;
3734
+ system: z.ZodOptional<z.ZodString>;
3735
+ what: z.ZodString;
3736
+ value: z.ZodOptional<z.ZodString>;
3737
+ at: z.ZodOptional<z.ZodString>;
3738
+ }, z.core.$strip>;
3739
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3740
+ untraced: z.ZodOptional<z.ZodString>;
3741
+ message: z.ZodString;
3742
+ }, z.core.$strip>>;
3743
+ new: z.ZodOptional<z.ZodArray<z.ZodString>>;
3744
+ }, z.core.$strip>>;
3426
3745
  }, z.core.$strip>;
3427
3746
  export declare const OutsideView: z.ZodObject<{
3428
3747
  systems: z.ZodArray<z.ZodObject<{
@@ -3572,6 +3891,65 @@ export declare const OutsideView: z.ZodObject<{
3572
3891
  message: z.ZodString;
3573
3892
  }, z.core.$strip>>;
3574
3893
  }, z.core.$strip>>;
3894
+ contracts: z.ZodOptional<z.ZodObject<{
3895
+ findings: z.ZodArray<z.ZodObject<{
3896
+ id: z.ZodString;
3897
+ interface: z.ZodOptional<z.ZodString>;
3898
+ interfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3899
+ call: z.ZodObject<{
3900
+ repo: z.ZodString;
3901
+ fact: z.ZodString;
3902
+ component: z.ZodString;
3903
+ at: z.ZodString;
3904
+ }, z.core.$strip>;
3905
+ entry: z.ZodOptional<z.ZodObject<{
3906
+ repo: z.ZodString;
3907
+ fact: z.ZodString;
3908
+ component: z.ZodString;
3909
+ at: z.ZodString;
3910
+ }, z.core.$strip>>;
3911
+ system: z.ZodOptional<z.ZodString>;
3912
+ status: z.ZodEnum<{
3913
+ unconfirmed: "unconfirmed";
3914
+ mismatch: "mismatch";
3915
+ }>;
3916
+ kind: z.ZodEnum<{
3917
+ "field-missing": "field-missing";
3918
+ "field-extra": "field-extra";
3919
+ "field-not-sent": "field-not-sent";
3920
+ "field-required": "field-required";
3921
+ "field-type": "field-type";
3922
+ "field-number": "field-number";
3923
+ "error-unlisted": "error-unlisted";
3924
+ "error-unanswered": "error-unanswered";
3925
+ }>;
3926
+ side: z.ZodOptional<z.ZodEnum<{
3927
+ message: "message";
3928
+ request: "request";
3929
+ response: "response";
3930
+ }>>;
3931
+ field: z.ZodOptional<z.ZodString>;
3932
+ error: z.ZodOptional<z.ZodString>;
3933
+ sender: z.ZodObject<{
3934
+ repo: z.ZodOptional<z.ZodString>;
3935
+ system: z.ZodOptional<z.ZodString>;
3936
+ what: z.ZodString;
3937
+ value: z.ZodOptional<z.ZodString>;
3938
+ at: z.ZodOptional<z.ZodString>;
3939
+ }, z.core.$strip>;
3940
+ receiver: z.ZodObject<{
3941
+ repo: z.ZodOptional<z.ZodString>;
3942
+ system: z.ZodOptional<z.ZodString>;
3943
+ what: z.ZodString;
3944
+ value: z.ZodOptional<z.ZodString>;
3945
+ at: z.ZodOptional<z.ZodString>;
3946
+ }, z.core.$strip>;
3947
+ via: z.ZodOptional<z.ZodArray<z.ZodString>>;
3948
+ untraced: z.ZodOptional<z.ZodString>;
3949
+ message: z.ZodString;
3950
+ }, z.core.$strip>>;
3951
+ new: z.ZodOptional<z.ZodArray<z.ZodString>>;
3952
+ }, z.core.$strip>>;
3575
3953
  }, z.core.$strip>>;
3576
3954
  notes: z.ZodArray<z.ZodString>;
3577
3955
  }, z.core.$strip>;
@@ -3883,7 +4261,7 @@ export declare const StageReviewView: z.ZodObject<{
3883
4261
  }, z.core.$strip>>;
3884
4262
  }, z.core.$strip>>;
3885
4263
  questions: z.ZodArray<z.ZodObject<{
3886
- schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
4264
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
3887
4265
  id: z.ZodString;
3888
4266
  askedBy: z.ZodObject<{
3889
4267
  step: z.ZodString;
@@ -3949,6 +4327,35 @@ export declare const StageReviewView: z.ZodObject<{
3949
4327
  why: z.ZodString;
3950
4328
  replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
3951
4329
  }, z.core.$strict>>;
4330
+ reopened: z.ZodOptional<z.ZodObject<{
4331
+ at: z.ZodISODateTime;
4332
+ why: z.ZodString;
4333
+ answer: z.ZodObject<{
4334
+ option: z.ZodOptional<z.ZodNumber>;
4335
+ text: z.ZodOptional<z.ZodString>;
4336
+ by: z.ZodString;
4337
+ at: z.ZodISODateTime;
4338
+ scope: z.ZodObject<{
4339
+ level: z.ZodEnum<{
4340
+ repo: "repo";
4341
+ "repo-type": "repo-type";
4342
+ }>;
4343
+ id: z.ZodString;
4344
+ }, z.core.$strict>;
4345
+ skill: z.ZodOptional<z.ZodString>;
4346
+ match: z.ZodOptional<z.ZodString>;
4347
+ proposal: z.ZodOptional<z.ZodObject<{
4348
+ by: z.ZodString;
4349
+ at: z.ZodISODateTime;
4350
+ cites: z.ZodArray<z.ZodObject<{
4351
+ repo: z.ZodOptional<z.ZodString>;
4352
+ file: z.ZodString;
4353
+ line: z.ZodNumber;
4354
+ quote: z.ZodString;
4355
+ }, z.core.$strict>>;
4356
+ }, z.core.$strict>>;
4357
+ }, z.core.$strict>;
4358
+ }, z.core.$strict>>;
3952
4359
  related: z.ZodOptional<z.ZodArray<z.ZodObject<{
3953
4360
  id: z.ZodString;
3954
4361
  verdict: z.ZodEnum<{
@@ -5429,8 +5836,8 @@ export declare const PrototypeDifferenceView: z.ZodObject<{
5429
5836
  kind: z.ZodEnum<{
5430
5837
  auth: "auth";
5431
5838
  "field-missing": "field-missing";
5432
- "field-type": "field-type";
5433
5839
  "field-required": "field-required";
5840
+ "field-type": "field-type";
5434
5841
  "field-enum": "field-enum";
5435
5842
  "header-missing": "header-missing";
5436
5843
  "header-required": "header-required";
@@ -5521,8 +5928,8 @@ export declare const PrototypeCallView: z.ZodObject<{
5521
5928
  kind: z.ZodEnum<{
5522
5929
  auth: "auth";
5523
5930
  "field-missing": "field-missing";
5524
- "field-type": "field-type";
5525
5931
  "field-required": "field-required";
5932
+ "field-type": "field-type";
5526
5933
  "field-enum": "field-enum";
5527
5934
  "header-missing": "header-missing";
5528
5935
  "header-required": "header-required";
@@ -5622,8 +6029,8 @@ export declare const PrototypeComparisonView: z.ZodObject<{
5622
6029
  kind: z.ZodEnum<{
5623
6030
  auth: "auth";
5624
6031
  "field-missing": "field-missing";
5625
- "field-type": "field-type";
5626
6032
  "field-required": "field-required";
6033
+ "field-type": "field-type";
5627
6034
  "field-enum": "field-enum";
5628
6035
  "header-missing": "header-missing";
5629
6036
  "header-required": "header-required";
@@ -5753,8 +6160,8 @@ export declare const ChangePrototype: z.ZodObject<{
5753
6160
  kind: z.ZodEnum<{
5754
6161
  auth: "auth";
5755
6162
  "field-missing": "field-missing";
5756
- "field-type": "field-type";
5757
6163
  "field-required": "field-required";
6164
+ "field-type": "field-type";
5758
6165
  "field-enum": "field-enum";
5759
6166
  "header-missing": "header-missing";
5760
6167
  "header-required": "header-required";
@@ -5882,8 +6289,8 @@ export declare const ChangePrototypeList: z.ZodObject<{
5882
6289
  kind: z.ZodEnum<{
5883
6290
  auth: "auth";
5884
6291
  "field-missing": "field-missing";
5885
- "field-type": "field-type";
5886
6292
  "field-required": "field-required";
6293
+ "field-type": "field-type";
5887
6294
  "field-enum": "field-enum";
5888
6295
  "header-missing": "header-missing";
5889
6296
  "header-required": "header-required";
@@ -6062,7 +6469,7 @@ export declare const ReconcileRequest: z.ZodObject<{
6062
6469
  /** ADR 0078: the questions in questions/, and the files that aren't valid questions. */
6063
6470
  export declare const QuestionList: z.ZodObject<{
6064
6471
  questions: z.ZodArray<z.ZodObject<{
6065
- schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6472
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
6066
6473
  id: z.ZodString;
6067
6474
  askedBy: z.ZodObject<{
6068
6475
  step: z.ZodString;
@@ -6128,6 +6535,35 @@ export declare const QuestionList: z.ZodObject<{
6128
6535
  why: z.ZodString;
6129
6536
  replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
6130
6537
  }, z.core.$strict>>;
6538
+ reopened: z.ZodOptional<z.ZodObject<{
6539
+ at: z.ZodISODateTime;
6540
+ why: z.ZodString;
6541
+ answer: z.ZodObject<{
6542
+ option: z.ZodOptional<z.ZodNumber>;
6543
+ text: z.ZodOptional<z.ZodString>;
6544
+ by: z.ZodString;
6545
+ at: z.ZodISODateTime;
6546
+ scope: z.ZodObject<{
6547
+ level: z.ZodEnum<{
6548
+ repo: "repo";
6549
+ "repo-type": "repo-type";
6550
+ }>;
6551
+ id: z.ZodString;
6552
+ }, z.core.$strict>;
6553
+ skill: z.ZodOptional<z.ZodString>;
6554
+ match: z.ZodOptional<z.ZodString>;
6555
+ proposal: z.ZodOptional<z.ZodObject<{
6556
+ by: z.ZodString;
6557
+ at: z.ZodISODateTime;
6558
+ cites: z.ZodArray<z.ZodObject<{
6559
+ repo: z.ZodOptional<z.ZodString>;
6560
+ file: z.ZodString;
6561
+ line: z.ZodNumber;
6562
+ quote: z.ZodString;
6563
+ }, z.core.$strict>>;
6564
+ }, z.core.$strict>>;
6565
+ }, z.core.$strict>;
6566
+ }, z.core.$strict>>;
6131
6567
  related: z.ZodOptional<z.ZodArray<z.ZodObject<{
6132
6568
  id: z.ZodString;
6133
6569
  verdict: z.ZodEnum<{
@@ -6190,11 +6626,17 @@ export declare const AnswerQuestionRequest: z.ZodObject<{
6190
6626
  repoType: z.ZodOptional<z.ZodString>;
6191
6627
  acceptProposal: z.ZodOptional<z.ZodLiteral<true>>;
6192
6628
  match: z.ZodOptional<z.ZodString>;
6629
+ target: z.ZodOptional<z.ZodString>;
6630
+ addSystem: z.ZodOptional<z.ZodEnum<{
6631
+ internal: "internal";
6632
+ vendor: "vendor";
6633
+ }>>;
6634
+ name: z.ZodOptional<z.ZodString>;
6193
6635
  }, z.core.$strict>;
6194
6636
  /** ADR 0078: the answered question, the command to run next and, for a repo type, its skill file. */
6195
6637
  export declare const AnsweredQuestion: z.ZodObject<{
6196
6638
  question: z.ZodObject<{
6197
- schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
6639
+ schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
6198
6640
  id: z.ZodString;
6199
6641
  askedBy: z.ZodObject<{
6200
6642
  step: z.ZodString;
@@ -6260,6 +6702,35 @@ export declare const AnsweredQuestion: z.ZodObject<{
6260
6702
  why: z.ZodString;
6261
6703
  replacedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
6262
6704
  }, z.core.$strict>>;
6705
+ reopened: z.ZodOptional<z.ZodObject<{
6706
+ at: z.ZodISODateTime;
6707
+ why: z.ZodString;
6708
+ answer: z.ZodObject<{
6709
+ option: z.ZodOptional<z.ZodNumber>;
6710
+ text: z.ZodOptional<z.ZodString>;
6711
+ by: z.ZodString;
6712
+ at: z.ZodISODateTime;
6713
+ scope: z.ZodObject<{
6714
+ level: z.ZodEnum<{
6715
+ repo: "repo";
6716
+ "repo-type": "repo-type";
6717
+ }>;
6718
+ id: z.ZodString;
6719
+ }, z.core.$strict>;
6720
+ skill: z.ZodOptional<z.ZodString>;
6721
+ match: z.ZodOptional<z.ZodString>;
6722
+ proposal: z.ZodOptional<z.ZodObject<{
6723
+ by: z.ZodString;
6724
+ at: z.ZodISODateTime;
6725
+ cites: z.ZodArray<z.ZodObject<{
6726
+ repo: z.ZodOptional<z.ZodString>;
6727
+ file: z.ZodString;
6728
+ line: z.ZodNumber;
6729
+ quote: z.ZodString;
6730
+ }, z.core.$strict>>;
6731
+ }, z.core.$strict>>;
6732
+ }, z.core.$strict>;
6733
+ }, z.core.$strict>>;
6263
6734
  related: z.ZodOptional<z.ZodArray<z.ZodObject<{
6264
6735
  id: z.ZodString;
6265
6736
  verdict: z.ZodEnum<{
@@ -6274,7 +6745,38 @@ export declare const AnsweredQuestion: z.ZodObject<{
6274
6745
  path: z.ZodString;
6275
6746
  written: z.ZodBoolean;
6276
6747
  }, z.core.$strip>>;
6748
+ system: z.ZodOptional<z.ZodObject<{
6749
+ id: z.ZodString;
6750
+ profile: z.ZodString;
6751
+ added: z.ZodBoolean;
6752
+ boundary: z.ZodEnum<{
6753
+ internal: "internal";
6754
+ vendor: "vendor";
6755
+ }>;
6756
+ owner: z.ZodOptional<z.ZodString>;
6757
+ }, z.core.$strip>>;
6758
+ }, z.core.$strip>;
6759
+ /** 2.45.0 (ADR 0162, F8): the "Another repo…" picker of a targets question. */
6760
+ export declare const TargetPickList: z.ZodObject<{
6761
+ picks: z.ZodArray<z.ZodObject<{
6762
+ id: z.ZodString;
6763
+ kind: z.ZodEnum<{
6764
+ repo: "repo";
6765
+ system: "system";
6766
+ team: "team";
6767
+ }>;
6768
+ name: z.ZodString;
6769
+ read: z.ZodOptional<z.ZodBoolean>;
6770
+ boundary: z.ZodOptional<z.ZodString>;
6771
+ adds: z.ZodOptional<z.ZodObject<{
6772
+ id: z.ZodString;
6773
+ name: z.ZodString;
6774
+ boundary: z.ZodLiteral<"internal">;
6775
+ owner: z.ZodString;
6776
+ }, z.core.$strip>>;
6777
+ }, z.core.$strip>>;
6277
6778
  }, z.core.$strip>;
6779
+ export type TargetPickListT = z.infer<typeof TargetPickList>;
6278
6780
  /** The wiki types sources.yaml takes (C6). */
6279
6781
  export declare const WIKI_TYPES: readonly ["confluence", "ado-wiki", "sharepoint", "markdown-folder", "git", "confluence-export", "sharepoint-export"];
6280
6782
  /** A person's review of a knowledge item (ADR 0101); stale: its page changed since. */