@company-semantics/contracts 89.0.0 → 89.2.0

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.
@@ -1675,7 +1675,7 @@ export interface paths {
1675
1675
  };
1676
1676
  /**
1677
1677
  * Read one analysis workflow’s generic lifecycle envelope
1678
- * @description The domain-agnostic projection a client polls: identity, registered type, activity-free lifecycle state, start and completion times, the opaque domain progress and result payloads (null until the domain adapter supplies them), a closed failure class on a failed workflow, and the capabilities the surface may offer — canStop from the generic layer, canContinue as the domain declares it. Org-scoped: a workflow in another workspace answers 404.
1678
+ * @description The domain-agnostic projection a client polls: identity, registered type, activity-free lifecycle state, start and completion times, the opaque domain progress and result payloads (null until the domain adapter supplies them), a closed failure class on a failed workflow, the frozen typed outcome of the current execution epoch once it settles (null until then), and the capabilities the surface may offer — canStop from the generic layer, canContinue as the domain declares it. Org-scoped: a workflow in another workspace answers 404.
1679
1679
  */
1680
1680
  get: operations["getAnalysisWorkflow"];
1681
1681
  put?: never;
@@ -1706,6 +1706,26 @@ export interface paths {
1706
1706
  patch?: never;
1707
1707
  trace?: never;
1708
1708
  };
1709
+ "/api/analysis-workflows/{id}/settlement": {
1710
+ parameters: {
1711
+ query?: never;
1712
+ header?: never;
1713
+ path?: never;
1714
+ cookie?: never;
1715
+ };
1716
+ get?: never;
1717
+ put?: never;
1718
+ /**
1719
+ * Deliver a settled analysis workflow’s outcome into its launching conversation now
1720
+ * @description An ACCELERATOR, never required for correctness (control ADR-CTRL-540): every terminal transition records a settlement that the server delivers on its own — immediately after settling, and on the reconciler sweep. The app calls this when its poll sees the current execution epoch settle, so the settlement turn appears without waiting. Idempotent: a second call for the same epoch answers skipped or delivered and writes nothing new. Answers not_settled while the epoch is still moving. Org-scoped: a workflow in another workspace answers 404.
1721
+ */
1722
+ post: operations["deliverAnalysisWorkflowSettlement"];
1723
+ delete?: never;
1724
+ options?: never;
1725
+ head?: never;
1726
+ patch?: never;
1727
+ trace?: never;
1728
+ };
1709
1729
  "/api/company-md/tree": {
1710
1730
  parameters: {
1711
1731
  query?: never;
@@ -3908,6 +3928,26 @@ export interface paths {
3908
3928
  patch?: never;
3909
3929
  trace?: never;
3910
3930
  };
3931
+ "/api/factory/quality/corpus": {
3932
+ parameters: {
3933
+ query?: never;
3934
+ header?: never;
3935
+ path?: never;
3936
+ cookie?: never;
3937
+ };
3938
+ /**
3939
+ * Export the accepted production cases of one capability for a CI evaluation run
3940
+ * @description The current revision of every production case a person accepted for the capability: anonymized input, human-written expected behavior and optional rubric, never lineage. Authenticated by the dedicated corpus export bearer (QUALITY_CORPUS_EXPORT_SECRET), never the Floor machine bearer; unset, every request is refused.
3941
+ */
3942
+ get: operations["getQualityCorpus"];
3943
+ put?: never;
3944
+ post?: never;
3945
+ delete?: never;
3946
+ options?: never;
3947
+ head?: never;
3948
+ patch?: never;
3949
+ trace?: never;
3950
+ };
3911
3951
  "/api/internal-admin/impersonate/start": {
3912
3952
  parameters: {
3913
3953
  query?: never;
@@ -3959,6 +3999,278 @@ export interface paths {
3959
3999
  patch?: never;
3960
4000
  trace?: never;
3961
4001
  };
4002
+ "/api/internal-admin/quality/subjects": {
4003
+ parameters: {
4004
+ query?: never;
4005
+ header?: never;
4006
+ path?: never;
4007
+ cookie?: never;
4008
+ };
4009
+ /** Every quality subject with its live references and latest decision */
4010
+ get: operations["listQualitySubjects"];
4011
+ put?: never;
4012
+ post?: never;
4013
+ delete?: never;
4014
+ options?: never;
4015
+ head?: never;
4016
+ patch?: never;
4017
+ trace?: never;
4018
+ };
4019
+ "/api/internal-admin/quality/subjects/{subjectKind}/{subjectKey}/timeline": {
4020
+ parameters: {
4021
+ query?: never;
4022
+ header?: never;
4023
+ path?: never;
4024
+ cookie?: never;
4025
+ };
4026
+ /** A subject's explained timeline: changes, plans, runs, decisions and actions */
4027
+ get: operations["getQualitySubjectTimeline"];
4028
+ put?: never;
4029
+ post?: never;
4030
+ delete?: never;
4031
+ options?: never;
4032
+ head?: never;
4033
+ patch?: never;
4034
+ trace?: never;
4035
+ };
4036
+ "/api/internal-admin/quality/escalations": {
4037
+ parameters: {
4038
+ query?: never;
4039
+ header?: never;
4040
+ path?: never;
4041
+ cookie?: never;
4042
+ };
4043
+ /** Quality escalations in one state, oldest first */
4044
+ get: operations["listQualityEscalations"];
4045
+ put?: never;
4046
+ post?: never;
4047
+ delete?: never;
4048
+ options?: never;
4049
+ head?: never;
4050
+ patch?: never;
4051
+ trace?: never;
4052
+ };
4053
+ "/api/internal-admin/quality/blocked": {
4054
+ parameters: {
4055
+ query?: never;
4056
+ header?: never;
4057
+ path?: never;
4058
+ cookie?: never;
4059
+ };
4060
+ /** Blocked quality runs that still hold an evaluation up, longest blocked first */
4061
+ get: operations["listQualityBlockedRuns"];
4062
+ put?: never;
4063
+ post?: never;
4064
+ delete?: never;
4065
+ options?: never;
4066
+ head?: never;
4067
+ patch?: never;
4068
+ trace?: never;
4069
+ };
4070
+ "/api/internal-admin/quality/spend": {
4071
+ parameters: {
4072
+ query?: never;
4073
+ header?: never;
4074
+ path?: never;
4075
+ cookie?: never;
4076
+ };
4077
+ /** Evaluation spend in a month against the monthly cap */
4078
+ get: operations["getQualitySpend"];
4079
+ put?: never;
4080
+ post?: never;
4081
+ delete?: never;
4082
+ options?: never;
4083
+ head?: never;
4084
+ patch?: never;
4085
+ trace?: never;
4086
+ };
4087
+ "/api/internal-admin/quality/plans/{planId}/status": {
4088
+ parameters: {
4089
+ query?: never;
4090
+ header?: never;
4091
+ path?: never;
4092
+ cookie?: never;
4093
+ };
4094
+ /** Where a plan's evaluation stands and, once decided, its decision */
4095
+ get: operations["getQualityPlanStatus"];
4096
+ put?: never;
4097
+ post?: never;
4098
+ delete?: never;
4099
+ options?: never;
4100
+ head?: never;
4101
+ patch?: never;
4102
+ trace?: never;
4103
+ };
4104
+ "/api/internal-admin/quality/escalations/{id}/resolve": {
4105
+ parameters: {
4106
+ query?: never;
4107
+ header?: never;
4108
+ path?: never;
4109
+ cookie?: never;
4110
+ };
4111
+ get?: never;
4112
+ put?: never;
4113
+ /** Settle an escalation with a person's superseding decision (promote or reject) */
4114
+ post: operations["resolveQualityEscalation"];
4115
+ delete?: never;
4116
+ options?: never;
4117
+ head?: never;
4118
+ patch?: never;
4119
+ trace?: never;
4120
+ };
4121
+ "/api/internal-admin/quality/references/floor": {
4122
+ parameters: {
4123
+ query?: never;
4124
+ header?: never;
4125
+ path?: never;
4126
+ cookie?: never;
4127
+ };
4128
+ get?: never;
4129
+ /** Pin a completed run as its subject's floor reference */
4130
+ put: operations["pinQualityFloorReference"];
4131
+ post?: never;
4132
+ delete?: never;
4133
+ options?: never;
4134
+ head?: never;
4135
+ patch?: never;
4136
+ trace?: never;
4137
+ };
4138
+ "/api/internal-admin/quality/changes/manual": {
4139
+ parameters: {
4140
+ query?: never;
4141
+ header?: never;
4142
+ path?: never;
4143
+ cookie?: never;
4144
+ };
4145
+ get?: never;
4146
+ put?: never;
4147
+ /** Record a manual evaluation of a subject, plan it and ask for its runs */
4148
+ post: operations["createQualityManualChange"];
4149
+ delete?: never;
4150
+ options?: never;
4151
+ head?: never;
4152
+ patch?: never;
4153
+ trace?: never;
4154
+ };
4155
+ "/api/internal-admin/quality/candidates": {
4156
+ parameters: {
4157
+ query?: never;
4158
+ header?: never;
4159
+ path?: never;
4160
+ cookie?: never;
4161
+ };
4162
+ /** The candidate review queue: candidates ready for review or parked */
4163
+ get: operations["listQualityCandidates"];
4164
+ put?: never;
4165
+ post?: never;
4166
+ delete?: never;
4167
+ options?: never;
4168
+ head?: never;
4169
+ patch?: never;
4170
+ trace?: never;
4171
+ };
4172
+ "/api/internal-admin/quality/candidates/{id}": {
4173
+ parameters: {
4174
+ query?: never;
4175
+ header?: never;
4176
+ path?: never;
4177
+ cookie?: never;
4178
+ };
4179
+ /** A candidate's redacted material, suggestion, usefulness breakdown and accepted case */
4180
+ get: operations["getQualityCandidate"];
4181
+ put?: never;
4182
+ post?: never;
4183
+ delete?: never;
4184
+ options?: never;
4185
+ head?: never;
4186
+ patch?: never;
4187
+ trace?: never;
4188
+ };
4189
+ "/api/internal-admin/quality/candidates/{id}/accept": {
4190
+ parameters: {
4191
+ query?: never;
4192
+ header?: never;
4193
+ path?: never;
4194
+ cookie?: never;
4195
+ };
4196
+ get?: never;
4197
+ put?: never;
4198
+ /** Accept a candidate as a production case with a human-written expected behavior, and plan its reproduction check */
4199
+ post: operations["acceptQualityCandidate"];
4200
+ delete?: never;
4201
+ options?: never;
4202
+ head?: never;
4203
+ patch?: never;
4204
+ trace?: never;
4205
+ };
4206
+ "/api/internal-admin/quality/candidates/{id}/reject": {
4207
+ parameters: {
4208
+ query?: never;
4209
+ header?: never;
4210
+ path?: never;
4211
+ cookie?: never;
4212
+ };
4213
+ get?: never;
4214
+ put?: never;
4215
+ /** Reject a candidate, with why */
4216
+ post: operations["rejectQualityCandidate"];
4217
+ delete?: never;
4218
+ options?: never;
4219
+ head?: never;
4220
+ patch?: never;
4221
+ trace?: never;
4222
+ };
4223
+ "/api/internal-admin/quality/graders": {
4224
+ parameters: {
4225
+ query?: never;
4226
+ header?: never;
4227
+ path?: never;
4228
+ cookie?: never;
4229
+ };
4230
+ /** Every grader version with its calibration and the severities it may gate */
4231
+ get: operations["listQualityGraders"];
4232
+ put?: never;
4233
+ post?: never;
4234
+ delete?: never;
4235
+ options?: never;
4236
+ head?: never;
4237
+ patch?: never;
4238
+ trace?: never;
4239
+ };
4240
+ "/api/internal-admin/quality/graders/{id}/label-queue": {
4241
+ parameters: {
4242
+ query?: never;
4243
+ header?: never;
4244
+ path?: never;
4245
+ cookie?: never;
4246
+ };
4247
+ /** A judge's unlabeled samples with their case content; the judge's verdict is hidden */
4248
+ get: operations["getQualityGraderLabelQueue"];
4249
+ put?: never;
4250
+ post?: never;
4251
+ delete?: never;
4252
+ options?: never;
4253
+ head?: never;
4254
+ patch?: never;
4255
+ trace?: never;
4256
+ };
4257
+ "/api/internal-admin/quality/graders/{id}/labels": {
4258
+ parameters: {
4259
+ query?: never;
4260
+ header?: never;
4261
+ path?: never;
4262
+ cookie?: never;
4263
+ };
4264
+ get?: never;
4265
+ put?: never;
4266
+ /** Label a judged sample, then recalibrate the judge; reveals the judge's verdict */
4267
+ post: operations["submitQualityGraderLabel"];
4268
+ delete?: never;
4269
+ options?: never;
4270
+ head?: never;
4271
+ patch?: never;
4272
+ trace?: never;
4273
+ };
3962
4274
  "/api/comments": {
3963
4275
  parameters: {
3964
4276
  query?: never;
@@ -4807,6 +5119,30 @@ export interface paths {
4807
5119
  patch?: never;
4808
5120
  trace?: never;
4809
5121
  };
5122
+ "/api/org/improve-with-usage": {
5123
+ parameters: {
5124
+ query?: never;
5125
+ header?: never;
5126
+ path?: never;
5127
+ cookie?: never;
5128
+ };
5129
+ /**
5130
+ * Read whether the org consents to improve-with-usage
5131
+ * @description Whether de-identified conversations from the org may be used to evaluate and improve the product, and who last changed it and when. Off until an owner or admin turns it on.
5132
+ */
5133
+ get: operations["getImproveWithUsage"];
5134
+ /**
5135
+ * Switch improve-with-usage consent on or off for the org
5136
+ * @description On permits de-identified conversations from the org to enter the quality corpus. Off withdraws consent. The caller is recorded as the person who changed it, and each actual change is audited.
5137
+ */
5138
+ put: operations["putImproveWithUsage"];
5139
+ post?: never;
5140
+ delete?: never;
5141
+ options?: never;
5142
+ head?: never;
5143
+ patch?: never;
5144
+ trace?: never;
5145
+ };
4810
5146
  }
4811
5147
  export type webhooks = Record<string, never>;
4812
5148
  export interface components {
@@ -6650,6 +6986,7 @@ export interface components {
6650
6986
  completedAt: string | null;
6651
6987
  progress: unknown | null;
6652
6988
  result: unknown | null;
6989
+ outcome: unknown | null;
6653
6990
  error?: string;
6654
6991
  capabilities: {
6655
6992
  canStop: boolean;
@@ -6669,6 +7006,10 @@ export interface components {
6669
7006
  /** @constant */
6670
7007
  reason: "not_running";
6671
7008
  };
7009
+ DeliverWorkflowSettlementResponse: {
7010
+ /** @enum {string} */
7011
+ result: "delivered" | "deferred" | "busy" | "skipped" | "not_settled";
7012
+ };
6672
7013
  CompanyMdListResponse: {
6673
7014
  items: {
6674
7015
  id: string;
@@ -8410,6 +8751,22 @@ export interface components {
8410
8751
  } | null;
8411
8752
  surfaces: string[];
8412
8753
  };
8754
+ QualityCorpusResponse: {
8755
+ capability: string;
8756
+ cases: {
8757
+ caseId: string;
8758
+ revision: string;
8759
+ /** @enum {string} */
8760
+ severity: "critical" | "major" | "minor";
8761
+ weight: number;
8762
+ invariantKey: string | null;
8763
+ body: {
8764
+ input: unknown;
8765
+ expect: string;
8766
+ rubric?: string;
8767
+ };
8768
+ }[];
8769
+ };
8413
8770
  ImpersonationSessionResponse: {
8414
8771
  session: {
8415
8772
  impersonationSessionId: string;
@@ -9811,6 +10168,14 @@ export interface components {
9811
10168
  SourceSyncPutSettingsRequest: {
9812
10169
  enabled: boolean;
9813
10170
  };
10171
+ ImproveWithUsageResponse: {
10172
+ enabled: boolean;
10173
+ changedAt: string | null;
10174
+ changedByName: string | null;
10175
+ };
10176
+ PutImproveWithUsageRequest: {
10177
+ enabled: boolean;
10178
+ };
9814
10179
  /** @description Server-enforced collaboration size limits, published so clients can pre-check. */
9815
10180
  CollabSyncLimits: {
9816
10181
  maxUpdateBytes: number;
@@ -12713,6 +13078,42 @@ export interface operations {
12713
13078
  };
12714
13079
  };
12715
13080
  };
13081
+ deliverAnalysisWorkflowSettlement: {
13082
+ parameters: {
13083
+ query?: never;
13084
+ header?: never;
13085
+ path: {
13086
+ id: string;
13087
+ };
13088
+ cookie?: never;
13089
+ };
13090
+ requestBody?: never;
13091
+ responses: {
13092
+ /** @description What the delivery attempt did */
13093
+ 200: {
13094
+ headers: {
13095
+ [name: string]: unknown;
13096
+ };
13097
+ content: {
13098
+ "application/json": components["schemas"]["DeliverWorkflowSettlementResponse"];
13099
+ };
13100
+ };
13101
+ /** @description The workflow id is not a uuid */
13102
+ 400: {
13103
+ headers: {
13104
+ [name: string]: unknown;
13105
+ };
13106
+ content?: never;
13107
+ };
13108
+ /** @description No such workflow in this workspace */
13109
+ 404: {
13110
+ headers: {
13111
+ [name: string]: unknown;
13112
+ };
13113
+ content?: never;
13114
+ };
13115
+ };
13116
+ };
12716
13117
  getCompanyMdTree: {
12717
13118
  parameters: {
12718
13119
  query?: {
@@ -16786,6 +17187,42 @@ export interface operations {
16786
17187
  };
16787
17188
  };
16788
17189
  };
17190
+ getQualityCorpus: {
17191
+ parameters: {
17192
+ query: {
17193
+ capability: string;
17194
+ };
17195
+ header?: never;
17196
+ path?: never;
17197
+ cookie?: never;
17198
+ };
17199
+ requestBody?: never;
17200
+ responses: {
17201
+ /** @description Every accepted case of the capability, sorted by case id */
17202
+ 200: {
17203
+ headers: {
17204
+ [name: string]: unknown;
17205
+ };
17206
+ content: {
17207
+ "application/json": components["schemas"]["QualityCorpusResponse"];
17208
+ };
17209
+ };
17210
+ /** @description Query invalid, or not a cataloged capability */
17211
+ 400: {
17212
+ headers: {
17213
+ [name: string]: unknown;
17214
+ };
17215
+ content?: never;
17216
+ };
17217
+ /** @description Missing or invalid corpus export bearer token */
17218
+ 401: {
17219
+ headers: {
17220
+ [name: string]: unknown;
17221
+ };
17222
+ content?: never;
17223
+ };
17224
+ };
17225
+ };
16789
17226
  startImpersonation: {
16790
17227
  parameters: {
16791
17228
  query?: never;
@@ -16846,37 +17283,24 @@ export interface operations {
16846
17283
  };
16847
17284
  };
16848
17285
  };
16849
- listCommentThreads: {
17286
+ listQualitySubjects: {
16850
17287
  parameters: {
16851
- query: {
16852
- subjectType: "company_md" | "strategy_doc" | "work_item" | "meeting_recording";
16853
- subjectId: string;
16854
- status?: "open" | "resolved";
16855
- };
17288
+ query?: never;
16856
17289
  header?: never;
16857
17290
  path?: never;
16858
17291
  cookie?: never;
16859
17292
  };
16860
17293
  requestBody?: never;
16861
17294
  responses: {
16862
- /** @description Every thread on the subject with its comments oldest-first */
17295
+ /** @description Subjects with references (and pass rates) and latest decision */
16863
17296
  200: {
16864
- headers: {
16865
- [name: string]: unknown;
16866
- };
16867
- content: {
16868
- "application/json": components["schemas"]["CommentThreadListResponse"];
16869
- };
16870
- };
16871
- /** @description Invalid query parameters */
16872
- 400: {
16873
17297
  headers: {
16874
17298
  [name: string]: unknown;
16875
17299
  };
16876
17300
  content?: never;
16877
17301
  };
16878
- /** @description Subject not found, or the caller may not read it */
16879
- 404: {
17302
+ /** @description Not an internal admin, or missing internal.manage_quality */
17303
+ 403: {
16880
17304
  headers: {
16881
17305
  [name: string]: unknown;
16882
17306
  };
@@ -16884,36 +17308,42 @@ export interface operations {
16884
17308
  };
16885
17309
  };
16886
17310
  };
16887
- createCommentThread: {
17311
+ getQualitySubjectTimeline: {
16888
17312
  parameters: {
16889
- query?: never;
17313
+ query?: {
17314
+ limit?: number;
17315
+ };
16890
17316
  header?: never;
16891
- path?: never;
16892
- cookie?: never;
16893
- };
16894
- requestBody: {
16895
- content: {
16896
- "application/json": components["schemas"]["CreateCommentThreadRequest"];
17317
+ path: {
17318
+ subjectKind: string;
17319
+ subjectKey: string;
16897
17320
  };
17321
+ cookie?: never;
16898
17322
  };
17323
+ requestBody?: never;
16899
17324
  responses: {
16900
- /** @description Thread created with its opening comment (one transaction) */
16901
- 201: {
17325
+ /** @description The subject, its live references and its timeline, newest first */
17326
+ 200: {
16902
17327
  headers: {
16903
17328
  [name: string]: unknown;
16904
17329
  };
16905
- content: {
16906
- "application/json": components["schemas"]["CommentThreadResponse"];
16907
- };
17330
+ content?: never;
16908
17331
  };
16909
- /** @description Invalid body (including every anchor-corpus reject case) */
17332
+ /** @description Validation error */
16910
17333
  400: {
16911
17334
  headers: {
16912
17335
  [name: string]: unknown;
16913
17336
  };
16914
17337
  content?: never;
16915
17338
  };
16916
- /** @description Subject not found, or the caller may not comment on it */
17339
+ /** @description Not an internal admin, or missing internal.manage_quality */
17340
+ 403: {
17341
+ headers: {
17342
+ [name: string]: unknown;
17343
+ };
17344
+ content?: never;
17345
+ };
17346
+ /** @description No such subject */
16917
17347
  404: {
16918
17348
  headers: {
16919
17349
  [name: string]: unknown;
@@ -16922,39 +17352,34 @@ export interface operations {
16922
17352
  };
16923
17353
  };
16924
17354
  };
16925
- replyToCommentThread: {
17355
+ listQualityEscalations: {
16926
17356
  parameters: {
16927
- query?: never;
16928
- header?: never;
16929
- path: {
16930
- threadId: string;
17357
+ query?: {
17358
+ state?: "open" | "resolved";
17359
+ limit?: number;
16931
17360
  };
17361
+ header?: never;
17362
+ path?: never;
16932
17363
  cookie?: never;
16933
17364
  };
16934
- requestBody: {
16935
- content: {
16936
- "application/json": components["schemas"]["CommentReplyRequest"];
16937
- };
16938
- };
17365
+ requestBody?: never;
16939
17366
  responses: {
16940
- /** @description Reply written; reopened=true when it auto-reopened a resolved thread */
16941
- 201: {
17367
+ /** @description Escalations with their decision reason codes and subjects */
17368
+ 200: {
16942
17369
  headers: {
16943
17370
  [name: string]: unknown;
16944
17371
  };
16945
- content: {
16946
- "application/json": components["schemas"]["CommentReplyResponse"];
16947
- };
17372
+ content?: never;
16948
17373
  };
16949
- /** @description Invalid body */
17374
+ /** @description Validation error */
16950
17375
  400: {
16951
17376
  headers: {
16952
17377
  [name: string]: unknown;
16953
17378
  };
16954
17379
  content?: never;
16955
17380
  };
16956
- /** @description Thread not found, or the caller may not comment on its subject */
16957
- 404: {
17381
+ /** @description Not an internal admin, or missing internal.manage_quality */
17382
+ 403: {
16958
17383
  headers: {
16959
17384
  [name: string]: unknown;
16960
17385
  };
@@ -16962,28 +17387,33 @@ export interface operations {
16962
17387
  };
16963
17388
  };
16964
17389
  };
16965
- deleteComment: {
17390
+ listQualityBlockedRuns: {
16966
17391
  parameters: {
16967
- query?: never;
16968
- header?: never;
16969
- path: {
16970
- commentId: string;
17392
+ query?: {
17393
+ limit?: number;
16971
17394
  };
17395
+ header?: never;
17396
+ path?: never;
16972
17397
  cookie?: never;
16973
17398
  };
16974
17399
  requestBody?: never;
16975
17400
  responses: {
16976
- /** @description Comment soft-deleted; response carries the redacted projection */
17401
+ /** @description Blocked runs with their block reason and since when */
16977
17402
  200: {
16978
17403
  headers: {
16979
17404
  [name: string]: unknown;
16980
17405
  };
16981
- content: {
16982
- "application/json": components["schemas"]["CommentResponse"];
17406
+ content?: never;
17407
+ };
17408
+ /** @description Validation error */
17409
+ 400: {
17410
+ headers: {
17411
+ [name: string]: unknown;
16983
17412
  };
17413
+ content?: never;
16984
17414
  };
16985
- /** @description Comment not found, already deleted, or the caller may not delete it */
16986
- 404: {
17415
+ /** @description Not an internal admin, or missing internal.manage_quality */
17416
+ 403: {
16987
17417
  headers: {
16988
17418
  [name: string]: unknown;
16989
17419
  };
@@ -16991,39 +17421,33 @@ export interface operations {
16991
17421
  };
16992
17422
  };
16993
17423
  };
16994
- editComment: {
17424
+ getQualitySpend: {
16995
17425
  parameters: {
16996
- query?: never;
16997
- header?: never;
16998
- path: {
16999
- commentId: string;
17426
+ query?: {
17427
+ month?: string;
17000
17428
  };
17429
+ header?: never;
17430
+ path?: never;
17001
17431
  cookie?: never;
17002
17432
  };
17003
- requestBody: {
17004
- content: {
17005
- "application/json": components["schemas"]["EditCommentRequest"];
17006
- };
17007
- };
17433
+ requestBody?: never;
17008
17434
  responses: {
17009
- /** @description Comment updated with edited_at stamped */
17435
+ /** @description Month, spend, cap and remaining, in USD */
17010
17436
  200: {
17011
17437
  headers: {
17012
17438
  [name: string]: unknown;
17013
17439
  };
17014
- content: {
17015
- "application/json": components["schemas"]["CommentResponse"];
17016
- };
17440
+ content?: never;
17017
17441
  };
17018
- /** @description Invalid body */
17442
+ /** @description Validation error */
17019
17443
  400: {
17020
17444
  headers: {
17021
17445
  [name: string]: unknown;
17022
17446
  };
17023
17447
  content?: never;
17024
17448
  };
17025
- /** @description Comment not found, deleted, or the caller is not its author */
17026
- 404: {
17449
+ /** @description Not an internal admin, or missing internal.manage_quality */
17450
+ 403: {
17027
17451
  headers: {
17028
17452
  [name: string]: unknown;
17029
17453
  };
@@ -17031,35 +17455,40 @@ export interface operations {
17031
17455
  };
17032
17456
  };
17033
17457
  };
17034
- resolveCommentThread: {
17458
+ getQualityPlanStatus: {
17035
17459
  parameters: {
17036
17460
  query?: never;
17037
17461
  header?: never;
17038
17462
  path: {
17039
- threadId: string;
17463
+ planId: string;
17040
17464
  };
17041
17465
  cookie?: never;
17042
17466
  };
17043
17467
  requestBody?: never;
17044
17468
  responses: {
17045
- /** @description Thread resolved with resolved_at + resolved_by stamped */
17469
+ /** @description Evaluation state, block reason, decision and successor plan */
17046
17470
  200: {
17047
17471
  headers: {
17048
17472
  [name: string]: unknown;
17049
17473
  };
17050
- content: {
17051
- "application/json": components["schemas"]["CommentThreadSummaryResponse"];
17474
+ content?: never;
17475
+ };
17476
+ /** @description Validation error */
17477
+ 400: {
17478
+ headers: {
17479
+ [name: string]: unknown;
17052
17480
  };
17481
+ content?: never;
17053
17482
  };
17054
- /** @description Thread not found, or the caller may not comment on its subject */
17055
- 404: {
17483
+ /** @description Not an internal admin, or missing internal.manage_quality */
17484
+ 403: {
17056
17485
  headers: {
17057
17486
  [name: string]: unknown;
17058
17487
  };
17059
17488
  content?: never;
17060
17489
  };
17061
- /** @description Not a comment thread: a suggestion is decided via accept or reject, never resolved */
17062
- 409: {
17490
+ /** @description No such plan */
17491
+ 404: {
17063
17492
  headers: {
17064
17493
  [name: string]: unknown;
17065
17494
  };
@@ -17067,35 +17496,742 @@ export interface operations {
17067
17496
  };
17068
17497
  };
17069
17498
  };
17070
- reopenCommentThread: {
17499
+ resolveQualityEscalation: {
17071
17500
  parameters: {
17072
17501
  query?: never;
17073
17502
  header?: never;
17074
17503
  path: {
17075
- threadId: string;
17504
+ id: string;
17076
17505
  };
17077
17506
  cookie?: never;
17078
17507
  };
17079
- requestBody?: never;
17508
+ requestBody: {
17509
+ content: {
17510
+ "application/json": {
17511
+ /** @enum {string} */
17512
+ outcome: "promote" | "reject";
17513
+ reason: string;
17514
+ };
17515
+ };
17516
+ };
17080
17517
  responses: {
17081
- /** @description Thread reopened with the resolution stamp cleared */
17518
+ /** @description The superseding decision, its action and the resolved escalation */
17082
17519
  200: {
17083
17520
  headers: {
17084
17521
  [name: string]: unknown;
17085
17522
  };
17086
- content: {
17087
- "application/json": components["schemas"]["CommentThreadSummaryResponse"];
17523
+ content?: never;
17524
+ };
17525
+ /** @description Validation error (outcome, or a reason under 10 characters) */
17526
+ 400: {
17527
+ headers: {
17528
+ [name: string]: unknown;
17088
17529
  };
17530
+ content?: never;
17089
17531
  };
17090
- /** @description Thread not found, or the caller may not comment on its subject */
17091
- 404: {
17532
+ /** @description Not an internal admin, missing internal.manage_quality, or no CSRF token */
17533
+ 403: {
17092
17534
  headers: {
17093
17535
  [name: string]: unknown;
17094
17536
  };
17095
17537
  content?: never;
17096
17538
  };
17097
- /** @description Not a comment thread: a decided suggestion is terminal and never reopens */
17098
- 409: {
17539
+ /** @description No such escalation */
17540
+ 404: {
17541
+ headers: {
17542
+ [name: string]: unknown;
17543
+ };
17544
+ content?: never;
17545
+ };
17546
+ /** @description Already resolved, names no decision, or the decision was overridden */
17547
+ 409: {
17548
+ headers: {
17549
+ [name: string]: unknown;
17550
+ };
17551
+ content?: never;
17552
+ };
17553
+ };
17554
+ };
17555
+ pinQualityFloorReference: {
17556
+ parameters: {
17557
+ query?: never;
17558
+ header?: never;
17559
+ path?: never;
17560
+ cookie?: never;
17561
+ };
17562
+ requestBody: {
17563
+ content: {
17564
+ "application/json": {
17565
+ /** Format: uuid */
17566
+ runId: string;
17567
+ reason: string;
17568
+ };
17569
+ };
17570
+ };
17571
+ responses: {
17572
+ /** @description The new live floor reference */
17573
+ 200: {
17574
+ headers: {
17575
+ [name: string]: unknown;
17576
+ };
17577
+ content?: never;
17578
+ };
17579
+ /** @description Validation error */
17580
+ 400: {
17581
+ headers: {
17582
+ [name: string]: unknown;
17583
+ };
17584
+ content?: never;
17585
+ };
17586
+ /** @description Not an internal admin, missing internal.manage_quality, or no CSRF token */
17587
+ 403: {
17588
+ headers: {
17589
+ [name: string]: unknown;
17590
+ };
17591
+ content?: never;
17592
+ };
17593
+ /** @description No such run */
17594
+ 404: {
17595
+ headers: {
17596
+ [name: string]: unknown;
17597
+ };
17598
+ content?: never;
17599
+ };
17600
+ /** @description The run is not complete */
17601
+ 409: {
17602
+ headers: {
17603
+ [name: string]: unknown;
17604
+ };
17605
+ content?: never;
17606
+ };
17607
+ };
17608
+ };
17609
+ createQualityManualChange: {
17610
+ parameters: {
17611
+ query?: never;
17612
+ header?: never;
17613
+ path?: never;
17614
+ cookie?: never;
17615
+ };
17616
+ requestBody: {
17617
+ content: {
17618
+ "application/json": {
17619
+ subjectKind: string;
17620
+ subjectKey: string;
17621
+ suites?: string[];
17622
+ samples: number;
17623
+ model?: string;
17624
+ };
17625
+ };
17626
+ };
17627
+ responses: {
17628
+ /** @description The change and plan, and whether its runs were dispatched or blocked */
17629
+ 201: {
17630
+ headers: {
17631
+ [name: string]: unknown;
17632
+ };
17633
+ content?: never;
17634
+ };
17635
+ /** @description Validation error, or a suite with no case of the subject */
17636
+ 400: {
17637
+ headers: {
17638
+ [name: string]: unknown;
17639
+ };
17640
+ content?: never;
17641
+ };
17642
+ /** @description Not an internal admin, missing internal.manage_quality, or no CSRF token */
17643
+ 403: {
17644
+ headers: {
17645
+ [name: string]: unknown;
17646
+ };
17647
+ content?: never;
17648
+ };
17649
+ /** @description No such subject */
17650
+ 404: {
17651
+ headers: {
17652
+ [name: string]: unknown;
17653
+ };
17654
+ content?: never;
17655
+ };
17656
+ /** @description The subject has no suite to run */
17657
+ 409: {
17658
+ headers: {
17659
+ [name: string]: unknown;
17660
+ };
17661
+ content?: never;
17662
+ };
17663
+ };
17664
+ };
17665
+ listQualityCandidates: {
17666
+ parameters: {
17667
+ query?: {
17668
+ state?: "ready_for_review" | "parked";
17669
+ limit?: number;
17670
+ };
17671
+ header?: never;
17672
+ path?: never;
17673
+ cookie?: never;
17674
+ };
17675
+ requestBody?: never;
17676
+ responses: {
17677
+ /** @description Candidates in that state with their usefulness score; never lineage */
17678
+ 200: {
17679
+ headers: {
17680
+ [name: string]: unknown;
17681
+ };
17682
+ content?: never;
17683
+ };
17684
+ /** @description Validation error */
17685
+ 400: {
17686
+ headers: {
17687
+ [name: string]: unknown;
17688
+ };
17689
+ content?: never;
17690
+ };
17691
+ /** @description Not an internal admin, or missing internal.manage_quality */
17692
+ 403: {
17693
+ headers: {
17694
+ [name: string]: unknown;
17695
+ };
17696
+ content?: never;
17697
+ };
17698
+ };
17699
+ };
17700
+ getQualityCandidate: {
17701
+ parameters: {
17702
+ query?: never;
17703
+ header?: never;
17704
+ path: {
17705
+ id: string;
17706
+ };
17707
+ cookie?: never;
17708
+ };
17709
+ requestBody?: never;
17710
+ responses: {
17711
+ /** @description Redacted material, the proposal as a suggestion (not ground truth), the usefulness breakdown, nearest cases and the accepted case with its reproduction check */
17712
+ 200: {
17713
+ headers: {
17714
+ [name: string]: unknown;
17715
+ };
17716
+ content?: never;
17717
+ };
17718
+ /** @description Validation error */
17719
+ 400: {
17720
+ headers: {
17721
+ [name: string]: unknown;
17722
+ };
17723
+ content?: never;
17724
+ };
17725
+ /** @description Not an internal admin, or missing internal.manage_quality */
17726
+ 403: {
17727
+ headers: {
17728
+ [name: string]: unknown;
17729
+ };
17730
+ content?: never;
17731
+ };
17732
+ /** @description No such candidate */
17733
+ 404: {
17734
+ headers: {
17735
+ [name: string]: unknown;
17736
+ };
17737
+ content?: never;
17738
+ };
17739
+ };
17740
+ };
17741
+ acceptQualityCandidate: {
17742
+ parameters: {
17743
+ query?: never;
17744
+ header?: never;
17745
+ path: {
17746
+ id: string;
17747
+ };
17748
+ cookie?: never;
17749
+ };
17750
+ requestBody: {
17751
+ content: {
17752
+ "application/json": {
17753
+ /** @enum {string} */
17754
+ capability: "grounded_doc_qa" | "context_doc_summary" | "org_structure_inference" | "source_discovery_relevance";
17755
+ /** @enum {string} */
17756
+ severity: "critical" | "major" | "minor";
17757
+ weight: number;
17758
+ /** @enum {string} */
17759
+ invariantKey?: "ABSENCE_CLAIM_REQUIRES_SUFFICIENT_EVIDENCE" | "WITHHELD_CONTENT_MUST_NOT_BE_INFERRED" | "OWNER_METADATA_MUST_BE_CONSIDERED" | "MUTATION_REQUIRES_AUTHORIZATION" | "ARTIFACT_RELATIVE_CLAIMS_REQUIRE_THE_ARTIFACT" | "NO_NARRATED_PERCEPTION" | "SOURCE_DISCOVERY_HARD_NEGATIVE_NEVER_SHOWN" | "SOURCE_DISCOVERY_MUST_FIND_NEVER_DROPPED" | "SOURCE_DISCOVERY_NONEXECUTION_NEVER_DROPS";
17760
+ input: unknown;
17761
+ expect: string;
17762
+ rubric?: string;
17763
+ };
17764
+ };
17765
+ };
17766
+ responses: {
17767
+ /** @description The production case, its revision, and the change and plan that check it */
17768
+ 200: {
17769
+ headers: {
17770
+ [name: string]: unknown;
17771
+ };
17772
+ content?: never;
17773
+ };
17774
+ /** @description Validation error: no expected behavior, too short, or the suggestion copied verbatim */
17775
+ 400: {
17776
+ headers: {
17777
+ [name: string]: unknown;
17778
+ };
17779
+ content?: never;
17780
+ };
17781
+ /** @description Not an internal admin, missing internal.manage_quality, or no CSRF token */
17782
+ 403: {
17783
+ headers: {
17784
+ [name: string]: unknown;
17785
+ };
17786
+ content?: never;
17787
+ };
17788
+ /** @description No such candidate */
17789
+ 404: {
17790
+ headers: {
17791
+ [name: string]: unknown;
17792
+ };
17793
+ content?: never;
17794
+ };
17795
+ /** @description The candidate is not ready for review or parked */
17796
+ 409: {
17797
+ headers: {
17798
+ [name: string]: unknown;
17799
+ };
17800
+ content?: never;
17801
+ };
17802
+ };
17803
+ };
17804
+ rejectQualityCandidate: {
17805
+ parameters: {
17806
+ query?: never;
17807
+ header?: never;
17808
+ path: {
17809
+ id: string;
17810
+ };
17811
+ cookie?: never;
17812
+ };
17813
+ requestBody: {
17814
+ content: {
17815
+ "application/json": {
17816
+ reason: string;
17817
+ };
17818
+ };
17819
+ };
17820
+ responses: {
17821
+ /** @description The candidate is rejected */
17822
+ 200: {
17823
+ headers: {
17824
+ [name: string]: unknown;
17825
+ };
17826
+ content?: never;
17827
+ };
17828
+ /** @description Validation error */
17829
+ 400: {
17830
+ headers: {
17831
+ [name: string]: unknown;
17832
+ };
17833
+ content?: never;
17834
+ };
17835
+ /** @description Not an internal admin, missing internal.manage_quality, or no CSRF token */
17836
+ 403: {
17837
+ headers: {
17838
+ [name: string]: unknown;
17839
+ };
17840
+ content?: never;
17841
+ };
17842
+ /** @description No such candidate */
17843
+ 404: {
17844
+ headers: {
17845
+ [name: string]: unknown;
17846
+ };
17847
+ content?: never;
17848
+ };
17849
+ /** @description The candidate is not ready for review or parked */
17850
+ 409: {
17851
+ headers: {
17852
+ [name: string]: unknown;
17853
+ };
17854
+ content?: never;
17855
+ };
17856
+ };
17857
+ };
17858
+ listQualityGraders: {
17859
+ parameters: {
17860
+ query?: never;
17861
+ header?: never;
17862
+ path?: never;
17863
+ cookie?: never;
17864
+ };
17865
+ requestBody?: never;
17866
+ responses: {
17867
+ /** @description Grader versions with confusion matrices by severity and failure kind */
17868
+ 200: {
17869
+ headers: {
17870
+ [name: string]: unknown;
17871
+ };
17872
+ content?: never;
17873
+ };
17874
+ /** @description Not an internal admin, or missing internal.manage_quality */
17875
+ 403: {
17876
+ headers: {
17877
+ [name: string]: unknown;
17878
+ };
17879
+ content?: never;
17880
+ };
17881
+ };
17882
+ };
17883
+ getQualityGraderLabelQueue: {
17884
+ parameters: {
17885
+ query?: {
17886
+ limit?: number;
17887
+ };
17888
+ header?: never;
17889
+ path: {
17890
+ id: string;
17891
+ };
17892
+ cookie?: never;
17893
+ };
17894
+ requestBody?: never;
17895
+ responses: {
17896
+ /** @description Samples waiting for a label, newest run first, without verdicts */
17897
+ 200: {
17898
+ headers: {
17899
+ [name: string]: unknown;
17900
+ };
17901
+ content?: never;
17902
+ };
17903
+ /** @description Validation error */
17904
+ 400: {
17905
+ headers: {
17906
+ [name: string]: unknown;
17907
+ };
17908
+ content?: never;
17909
+ };
17910
+ /** @description Not an internal admin, or missing internal.manage_quality */
17911
+ 403: {
17912
+ headers: {
17913
+ [name: string]: unknown;
17914
+ };
17915
+ content?: never;
17916
+ };
17917
+ /** @description No such judge */
17918
+ 404: {
17919
+ headers: {
17920
+ [name: string]: unknown;
17921
+ };
17922
+ content?: never;
17923
+ };
17924
+ };
17925
+ };
17926
+ submitQualityGraderLabel: {
17927
+ parameters: {
17928
+ query?: never;
17929
+ header?: never;
17930
+ path: {
17931
+ id: string;
17932
+ };
17933
+ cookie?: never;
17934
+ };
17935
+ requestBody: {
17936
+ content: {
17937
+ "application/json": {
17938
+ /** Format: uuid */
17939
+ runId: string;
17940
+ caseId: string;
17941
+ sample: number;
17942
+ humanPassed: boolean;
17943
+ humanFailureKind?: string | null;
17944
+ };
17945
+ };
17946
+ };
17947
+ responses: {
17948
+ /** @description The label, the judge's verdict and the recomputed calibration */
17949
+ 200: {
17950
+ headers: {
17951
+ [name: string]: unknown;
17952
+ };
17953
+ content?: never;
17954
+ };
17955
+ /** @description Validation error */
17956
+ 400: {
17957
+ headers: {
17958
+ [name: string]: unknown;
17959
+ };
17960
+ content?: never;
17961
+ };
17962
+ /** @description Not an internal admin, missing internal.manage_quality, or no CSRF token */
17963
+ 403: {
17964
+ headers: {
17965
+ [name: string]: unknown;
17966
+ };
17967
+ content?: never;
17968
+ };
17969
+ /** @description No such judge, or the judge graded no such sample */
17970
+ 404: {
17971
+ headers: {
17972
+ [name: string]: unknown;
17973
+ };
17974
+ content?: never;
17975
+ };
17976
+ /** @description The sample is already labeled, or the judge gave no valid verdict */
17977
+ 409: {
17978
+ headers: {
17979
+ [name: string]: unknown;
17980
+ };
17981
+ content?: never;
17982
+ };
17983
+ };
17984
+ };
17985
+ listCommentThreads: {
17986
+ parameters: {
17987
+ query: {
17988
+ subjectType: "company_md" | "strategy_doc" | "work_item" | "meeting_recording";
17989
+ subjectId: string;
17990
+ status?: "open" | "resolved";
17991
+ };
17992
+ header?: never;
17993
+ path?: never;
17994
+ cookie?: never;
17995
+ };
17996
+ requestBody?: never;
17997
+ responses: {
17998
+ /** @description Every thread on the subject with its comments oldest-first */
17999
+ 200: {
18000
+ headers: {
18001
+ [name: string]: unknown;
18002
+ };
18003
+ content: {
18004
+ "application/json": components["schemas"]["CommentThreadListResponse"];
18005
+ };
18006
+ };
18007
+ /** @description Invalid query parameters */
18008
+ 400: {
18009
+ headers: {
18010
+ [name: string]: unknown;
18011
+ };
18012
+ content?: never;
18013
+ };
18014
+ /** @description Subject not found, or the caller may not read it */
18015
+ 404: {
18016
+ headers: {
18017
+ [name: string]: unknown;
18018
+ };
18019
+ content?: never;
18020
+ };
18021
+ };
18022
+ };
18023
+ createCommentThread: {
18024
+ parameters: {
18025
+ query?: never;
18026
+ header?: never;
18027
+ path?: never;
18028
+ cookie?: never;
18029
+ };
18030
+ requestBody: {
18031
+ content: {
18032
+ "application/json": components["schemas"]["CreateCommentThreadRequest"];
18033
+ };
18034
+ };
18035
+ responses: {
18036
+ /** @description Thread created with its opening comment (one transaction) */
18037
+ 201: {
18038
+ headers: {
18039
+ [name: string]: unknown;
18040
+ };
18041
+ content: {
18042
+ "application/json": components["schemas"]["CommentThreadResponse"];
18043
+ };
18044
+ };
18045
+ /** @description Invalid body (including every anchor-corpus reject case) */
18046
+ 400: {
18047
+ headers: {
18048
+ [name: string]: unknown;
18049
+ };
18050
+ content?: never;
18051
+ };
18052
+ /** @description Subject not found, or the caller may not comment on it */
18053
+ 404: {
18054
+ headers: {
18055
+ [name: string]: unknown;
18056
+ };
18057
+ content?: never;
18058
+ };
18059
+ };
18060
+ };
18061
+ replyToCommentThread: {
18062
+ parameters: {
18063
+ query?: never;
18064
+ header?: never;
18065
+ path: {
18066
+ threadId: string;
18067
+ };
18068
+ cookie?: never;
18069
+ };
18070
+ requestBody: {
18071
+ content: {
18072
+ "application/json": components["schemas"]["CommentReplyRequest"];
18073
+ };
18074
+ };
18075
+ responses: {
18076
+ /** @description Reply written; reopened=true when it auto-reopened a resolved thread */
18077
+ 201: {
18078
+ headers: {
18079
+ [name: string]: unknown;
18080
+ };
18081
+ content: {
18082
+ "application/json": components["schemas"]["CommentReplyResponse"];
18083
+ };
18084
+ };
18085
+ /** @description Invalid body */
18086
+ 400: {
18087
+ headers: {
18088
+ [name: string]: unknown;
18089
+ };
18090
+ content?: never;
18091
+ };
18092
+ /** @description Thread not found, or the caller may not comment on its subject */
18093
+ 404: {
18094
+ headers: {
18095
+ [name: string]: unknown;
18096
+ };
18097
+ content?: never;
18098
+ };
18099
+ };
18100
+ };
18101
+ deleteComment: {
18102
+ parameters: {
18103
+ query?: never;
18104
+ header?: never;
18105
+ path: {
18106
+ commentId: string;
18107
+ };
18108
+ cookie?: never;
18109
+ };
18110
+ requestBody?: never;
18111
+ responses: {
18112
+ /** @description Comment soft-deleted; response carries the redacted projection */
18113
+ 200: {
18114
+ headers: {
18115
+ [name: string]: unknown;
18116
+ };
18117
+ content: {
18118
+ "application/json": components["schemas"]["CommentResponse"];
18119
+ };
18120
+ };
18121
+ /** @description Comment not found, already deleted, or the caller may not delete it */
18122
+ 404: {
18123
+ headers: {
18124
+ [name: string]: unknown;
18125
+ };
18126
+ content?: never;
18127
+ };
18128
+ };
18129
+ };
18130
+ editComment: {
18131
+ parameters: {
18132
+ query?: never;
18133
+ header?: never;
18134
+ path: {
18135
+ commentId: string;
18136
+ };
18137
+ cookie?: never;
18138
+ };
18139
+ requestBody: {
18140
+ content: {
18141
+ "application/json": components["schemas"]["EditCommentRequest"];
18142
+ };
18143
+ };
18144
+ responses: {
18145
+ /** @description Comment updated with edited_at stamped */
18146
+ 200: {
18147
+ headers: {
18148
+ [name: string]: unknown;
18149
+ };
18150
+ content: {
18151
+ "application/json": components["schemas"]["CommentResponse"];
18152
+ };
18153
+ };
18154
+ /** @description Invalid body */
18155
+ 400: {
18156
+ headers: {
18157
+ [name: string]: unknown;
18158
+ };
18159
+ content?: never;
18160
+ };
18161
+ /** @description Comment not found, deleted, or the caller is not its author */
18162
+ 404: {
18163
+ headers: {
18164
+ [name: string]: unknown;
18165
+ };
18166
+ content?: never;
18167
+ };
18168
+ };
18169
+ };
18170
+ resolveCommentThread: {
18171
+ parameters: {
18172
+ query?: never;
18173
+ header?: never;
18174
+ path: {
18175
+ threadId: string;
18176
+ };
18177
+ cookie?: never;
18178
+ };
18179
+ requestBody?: never;
18180
+ responses: {
18181
+ /** @description Thread resolved with resolved_at + resolved_by stamped */
18182
+ 200: {
18183
+ headers: {
18184
+ [name: string]: unknown;
18185
+ };
18186
+ content: {
18187
+ "application/json": components["schemas"]["CommentThreadSummaryResponse"];
18188
+ };
18189
+ };
18190
+ /** @description Thread not found, or the caller may not comment on its subject */
18191
+ 404: {
18192
+ headers: {
18193
+ [name: string]: unknown;
18194
+ };
18195
+ content?: never;
18196
+ };
18197
+ /** @description Not a comment thread: a suggestion is decided via accept or reject, never resolved */
18198
+ 409: {
18199
+ headers: {
18200
+ [name: string]: unknown;
18201
+ };
18202
+ content?: never;
18203
+ };
18204
+ };
18205
+ };
18206
+ reopenCommentThread: {
18207
+ parameters: {
18208
+ query?: never;
18209
+ header?: never;
18210
+ path: {
18211
+ threadId: string;
18212
+ };
18213
+ cookie?: never;
18214
+ };
18215
+ requestBody?: never;
18216
+ responses: {
18217
+ /** @description Thread reopened with the resolution stamp cleared */
18218
+ 200: {
18219
+ headers: {
18220
+ [name: string]: unknown;
18221
+ };
18222
+ content: {
18223
+ "application/json": components["schemas"]["CommentThreadSummaryResponse"];
18224
+ };
18225
+ };
18226
+ /** @description Thread not found, or the caller may not comment on its subject */
18227
+ 404: {
18228
+ headers: {
18229
+ [name: string]: unknown;
18230
+ };
18231
+ content?: never;
18232
+ };
18233
+ /** @description Not a comment thread: a decided suggestion is terminal and never reopens */
18234
+ 409: {
17099
18235
  headers: {
17100
18236
  [name: string]: unknown;
17101
18237
  };
@@ -18885,4 +20021,62 @@ export interface operations {
18885
20021
  };
18886
20022
  };
18887
20023
  };
20024
+ getImproveWithUsage: {
20025
+ parameters: {
20026
+ query?: never;
20027
+ header?: never;
20028
+ path?: never;
20029
+ cookie?: never;
20030
+ };
20031
+ requestBody?: never;
20032
+ responses: {
20033
+ /** @description The org’s improve-with-usage consent */
20034
+ 200: {
20035
+ headers: {
20036
+ [name: string]: unknown;
20037
+ };
20038
+ content: {
20039
+ "application/json": components["schemas"]["ImproveWithUsageResponse"];
20040
+ };
20041
+ };
20042
+ };
20043
+ };
20044
+ putImproveWithUsage: {
20045
+ parameters: {
20046
+ query?: never;
20047
+ header?: never;
20048
+ path?: never;
20049
+ cookie?: never;
20050
+ };
20051
+ requestBody: {
20052
+ content: {
20053
+ "application/json": components["schemas"]["PutImproveWithUsageRequest"];
20054
+ };
20055
+ };
20056
+ responses: {
20057
+ /** @description The consent as it now stands */
20058
+ 200: {
20059
+ headers: {
20060
+ [name: string]: unknown;
20061
+ };
20062
+ content: {
20063
+ "application/json": components["schemas"]["ImproveWithUsageResponse"];
20064
+ };
20065
+ };
20066
+ /** @description Invalid body */
20067
+ 400: {
20068
+ headers: {
20069
+ [name: string]: unknown;
20070
+ };
20071
+ content?: never;
20072
+ };
20073
+ /** @description The caller may not manage integrations, or is impersonating */
20074
+ 403: {
20075
+ headers: {
20076
+ [name: string]: unknown;
20077
+ };
20078
+ content?: never;
20079
+ };
20080
+ };
20081
+ };
18888
20082
  }