@distilled.cloud/vanta 1.0.0-rc.15 → 1.0.0-rc.17

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.
Files changed (64) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -39
  8. package/lib/errors.d.ts +15 -15
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -26
  11. package/lib/index.d.ts +1 -1
  12. package/lib/index.js +0 -15
  13. package/lib/index.lazy.js +7 -0
  14. package/lib/pagination.d.ts +1 -1
  15. package/lib/pagination.js +1 -8
  16. package/lib/protocol.d.ts.map +1 -1
  17. package/lib/protocol.js +1 -41
  18. package/lib/retry.d.ts +1 -1
  19. package/lib/retry.d.ts.map +1 -1
  20. package/lib/retry.js +1 -32
  21. package/lib/services/auditor_api.d.ts +18 -325
  22. package/lib/services/auditor_api.d.ts.map +1 -1
  23. package/lib/services/auditor_api.js +71 -1887
  24. package/lib/services/auditor_api.js.map +1 -1
  25. package/lib/services/build_integrations.d.ts +1 -230
  26. package/lib/services/build_integrations.d.ts.map +1 -1
  27. package/lib/services/build_integrations.js +47 -1185
  28. package/lib/services/build_integrations.js.map +1 -1
  29. package/lib/services/index.js +0 -2
  30. package/lib/services/manage_vanta.d.ts +18 -1088
  31. package/lib/services/manage_vanta.d.ts.map +1 -1
  32. package/lib/services/manage_vanta.js +332 -6930
  33. package/lib/services/manage_vanta.js.map +1 -1
  34. package/lib/services/webhooks.d.ts +6 -105
  35. package/lib/services/webhooks.d.ts.map +1 -1
  36. package/lib/services/webhooks.js +35 -542
  37. package/lib/services/webhooks.js.map +1 -1
  38. package/lib/services.lazy/auditor_api.js +3 -0
  39. package/lib/services.lazy/build_integrations.js +3 -0
  40. package/lib/services.lazy/index.js +3 -0
  41. package/lib/services.lazy/manage_vanta.js +3 -0
  42. package/lib/services.lazy/webhooks.js +3 -0
  43. package/lib/traits.d.ts +1 -1
  44. package/lib/traits.js +1 -11
  45. package/package.json +9 -7
  46. package/src/credentials.ts +5 -6
  47. package/src/errors.ts +14 -15
  48. package/src/index.ts +1 -1
  49. package/src/pagination.ts +1 -1
  50. package/src/protocol.ts +6 -9
  51. package/src/retry.ts +6 -4
  52. package/src/services/auditor_api.ts +2040 -2476
  53. package/src/services/build_integrations.ts +937 -1664
  54. package/src/services/manage_vanta.ts +7230 -8522
  55. package/src/services/webhooks.ts +432 -638
  56. package/src/traits.ts +1 -1
  57. package/lib/credentials.js.map +0 -1
  58. package/lib/errors.js.map +0 -1
  59. package/lib/pagination.js.map +0 -1
  60. package/lib/protocol.js.map +0 -1
  61. package/lib/retry.js.map +0 -1
  62. package/lib/services/index.js.map +0 -1
  63. package/lib/traits.js.map +0 -1
  64. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -1,10 +1,13 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import { UnknownVantaError } from "../errors.ts";
5
6
  import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
6
7
  import * as Retry from "../retry.ts";
7
8
  import * as T from "../traits.ts";
9
+ // Schema table, filled on first reach (see __S at the end).
10
+ const __s: any[] = [];
8
11
 
9
12
  export type { VantaOpError, VantaOpContext };
10
13
 
@@ -14,245 +17,79 @@ export interface V1ControlCommentCreatedRequestControl {
14
17
  /** The unique identifier of the audit the control belongs to. */
15
18
  auditId: string;
16
19
  }
17
- export const V1ControlCommentCreatedRequestControl = /*@__PURE__*/ S.suspend(() =>
18
- S.Struct({
19
- id: S.String,
20
- auditId: S.String,
21
- }),
22
- ).annotate({
23
- identifier: "V1ControlCommentCreatedRequestControl",
24
- }) as any as S.Schema<V1ControlCommentCreatedRequestControl>;
25
-
26
20
  export interface V1ControlCommentCreatedRequestComment {
27
21
  /** The unique identifier of the comment. */
28
22
  id: string;
29
23
  }
30
- export const V1ControlCommentCreatedRequestComment = /*@__PURE__*/ S.suspend(() =>
31
- S.Struct({
32
- id: S.String,
33
- }),
34
- ).annotate({
35
- identifier: "V1ControlCommentCreatedRequestComment",
36
- }) as any as S.Schema<V1ControlCommentCreatedRequestComment>;
37
-
38
24
  export interface V1ControlCommentCreatedRequest {
39
25
  control: V1ControlCommentCreatedRequestControl;
40
26
  comment: V1ControlCommentCreatedRequestComment;
41
27
  }
42
- export const V1ControlCommentCreatedRequest = /*@__PURE__*/ S.suspend(() =>
43
- S.Struct({
44
- control: V1ControlCommentCreatedRequestControl,
45
- comment: V1ControlCommentCreatedRequestComment,
46
- }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.created", code: 200 })),
47
- ).annotate({
48
- identifier: "V1ControlCommentCreatedRequest",
49
- }) as any as S.Schema<V1ControlCommentCreatedRequest>;
50
-
51
28
  export interface V1ControlCommentCreatedResponse {}
52
- export const V1ControlCommentCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
53
- { identifier: "V1ControlCommentCreatedResponse" },
54
- ) as any as S.Schema<V1ControlCommentCreatedResponse>;
55
-
56
29
  export interface V1ControlCommentDeletedRequestControl {
57
30
  /** The unique identifier of the control the comment was deleted from. */
58
31
  id: string;
59
32
  /** The unique identifier of the audit the control belongs to. */
60
33
  auditId: string;
61
34
  }
62
- export const V1ControlCommentDeletedRequestControl = /*@__PURE__*/ S.suspend(() =>
63
- S.Struct({
64
- id: S.String,
65
- auditId: S.String,
66
- }),
67
- ).annotate({
68
- identifier: "V1ControlCommentDeletedRequestControl",
69
- }) as any as S.Schema<V1ControlCommentDeletedRequestControl>;
70
-
71
35
  export type V1ControlCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
72
- export const V1ControlCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
73
-
74
36
  export interface V1ControlCommentDeletedRequest {
75
37
  control: V1ControlCommentDeletedRequestControl;
76
38
  comment: V1ControlCommentCreatedRequestComment;
77
39
  }
78
- export const V1ControlCommentDeletedRequest = /*@__PURE__*/ S.suspend(() =>
79
- S.Struct({
80
- control: V1ControlCommentDeletedRequestControl,
81
- comment: V1ControlCommentCreatedRequestComment,
82
- }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.deleted", code: 200 })),
83
- ).annotate({
84
- identifier: "V1ControlCommentDeletedRequest",
85
- }) as any as S.Schema<V1ControlCommentDeletedRequest>;
86
-
87
40
  export interface V1ControlCommentDeletedResponse {}
88
- export const V1ControlCommentDeletedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
89
- { identifier: "V1ControlCommentDeletedResponse" },
90
- ) as any as S.Schema<V1ControlCommentDeletedResponse>;
91
-
92
41
  export interface V1ControlCommentUpdatedRequestControl {
93
42
  /** The unique identifier of the control the comment belongs to. */
94
43
  id: string;
95
44
  /** The unique identifier of the audit the control belongs to. */
96
45
  auditId: string;
97
46
  }
98
- export const V1ControlCommentUpdatedRequestControl = /*@__PURE__*/ S.suspend(() =>
99
- S.Struct({
100
- id: S.String,
101
- auditId: S.String,
102
- }),
103
- ).annotate({
104
- identifier: "V1ControlCommentUpdatedRequestControl",
105
- }) as any as S.Schema<V1ControlCommentUpdatedRequestControl>;
106
-
107
47
  export type V1ControlCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
108
- export const V1ControlCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
109
-
110
48
  export interface V1ControlCommentUpdatedRequest {
111
49
  control: V1ControlCommentUpdatedRequestControl;
112
50
  comment: V1ControlCommentCreatedRequestComment;
113
51
  }
114
- export const V1ControlCommentUpdatedRequest = /*@__PURE__*/ S.suspend(() =>
115
- S.Struct({
116
- control: V1ControlCommentUpdatedRequestControl,
117
- comment: V1ControlCommentCreatedRequestComment,
118
- }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.updated", code: 200 })),
119
- ).annotate({
120
- identifier: "V1ControlCommentUpdatedRequest",
121
- }) as any as S.Schema<V1ControlCommentUpdatedRequest>;
122
-
123
52
  export interface V1ControlCommentUpdatedResponse {}
124
- export const V1ControlCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
125
- { identifier: "V1ControlCommentUpdatedResponse" },
126
- ) as any as S.Schema<V1ControlCommentUpdatedResponse>;
127
-
128
53
  export interface V1EvidenceCommentCreatedRequestEvidence {
129
54
  /** The unique identifier of the evidence. */
130
55
  id: string;
131
56
  /** The unique identifier of the audit the evidence belongs to. */
132
57
  auditId: string;
133
58
  }
134
- export const V1EvidenceCommentCreatedRequestEvidence = /*@__PURE__*/ S.suspend(() =>
135
- S.Struct({
136
- id: S.String,
137
- auditId: S.String,
138
- }),
139
- ).annotate({
140
- identifier: "V1EvidenceCommentCreatedRequestEvidence",
141
- }) as any as S.Schema<V1EvidenceCommentCreatedRequestEvidence>;
142
-
143
59
  export type V1EvidenceCommentCreatedRequestComment = V1ControlCommentCreatedRequestComment;
144
- export const V1EvidenceCommentCreatedRequestComment = V1ControlCommentCreatedRequestComment;
145
-
146
60
  export interface V1EvidenceCommentCreatedRequest {
147
61
  evidence: V1EvidenceCommentCreatedRequestEvidence;
148
62
  comment: V1ControlCommentCreatedRequestComment;
149
63
  }
150
- export const V1EvidenceCommentCreatedRequest = /*@__PURE__*/ S.suspend(() =>
151
- S.Struct({
152
- evidence: V1EvidenceCommentCreatedRequestEvidence,
153
- comment: V1ControlCommentCreatedRequestComment,
154
- }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.created", code: 200 })),
155
- ).annotate({
156
- identifier: "V1EvidenceCommentCreatedRequest",
157
- }) as any as S.Schema<V1EvidenceCommentCreatedRequest>;
158
-
159
64
  export interface V1EvidenceCommentCreatedResponse {}
160
- export const V1EvidenceCommentCreatedResponse = /*@__PURE__*/ S.suspend(() =>
161
- S.Struct({}),
162
- ).annotate({
163
- identifier: "V1EvidenceCommentCreatedResponse",
164
- }) as any as S.Schema<V1EvidenceCommentCreatedResponse>;
165
-
166
65
  export type V1EvidenceCommentDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
167
- export const V1EvidenceCommentDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
168
-
169
66
  export type V1EvidenceCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
170
- export const V1EvidenceCommentDeletedRequestComment = V1ControlCommentCreatedRequestComment;
171
-
172
67
  export interface V1EvidenceCommentDeletedRequest {
173
68
  evidence: V1EvidenceCommentCreatedRequestEvidence;
174
69
  comment: V1ControlCommentCreatedRequestComment;
175
70
  }
176
- export const V1EvidenceCommentDeletedRequest = /*@__PURE__*/ S.suspend(() =>
177
- S.Struct({
178
- evidence: V1EvidenceCommentCreatedRequestEvidence,
179
- comment: V1ControlCommentCreatedRequestComment,
180
- }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.deleted", code: 200 })),
181
- ).annotate({
182
- identifier: "V1EvidenceCommentDeletedRequest",
183
- }) as any as S.Schema<V1EvidenceCommentDeletedRequest>;
184
-
185
71
  export interface V1EvidenceCommentDeletedResponse {}
186
- export const V1EvidenceCommentDeletedResponse = /*@__PURE__*/ S.suspend(() =>
187
- S.Struct({}),
188
- ).annotate({
189
- identifier: "V1EvidenceCommentDeletedResponse",
190
- }) as any as S.Schema<V1EvidenceCommentDeletedResponse>;
191
-
192
72
  export type V1EvidenceCommentUpdatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
193
- export const V1EvidenceCommentUpdatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
194
-
195
73
  export type V1EvidenceCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
196
- export const V1EvidenceCommentUpdatedRequestComment = V1ControlCommentCreatedRequestComment;
197
-
198
74
  export interface V1EvidenceCommentUpdatedRequest {
199
75
  evidence: V1EvidenceCommentCreatedRequestEvidence;
200
76
  comment: V1ControlCommentCreatedRequestComment;
201
77
  }
202
- export const V1EvidenceCommentUpdatedRequest = /*@__PURE__*/ S.suspend(() =>
203
- S.Struct({
204
- evidence: V1EvidenceCommentCreatedRequestEvidence,
205
- comment: V1ControlCommentCreatedRequestComment,
206
- }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.updated", code: 200 })),
207
- ).annotate({
208
- identifier: "V1EvidenceCommentUpdatedRequest",
209
- }) as any as S.Schema<V1EvidenceCommentUpdatedRequest>;
210
-
211
78
  export interface V1EvidenceCommentUpdatedResponse {}
212
- export const V1EvidenceCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() =>
213
- S.Struct({}),
214
- ).annotate({
215
- identifier: "V1EvidenceCommentUpdatedResponse",
216
- }) as any as S.Schema<V1EvidenceCommentUpdatedResponse>;
217
-
218
79
  /** The evidence item that came into scope for the audit. */
219
80
  export type V1EvidenceCreatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
220
- export const V1EvidenceCreatedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
221
-
222
81
  export interface V1EvidenceCreatedRequest {
223
82
  /** The evidence item that came into scope for the audit. */
224
83
  evidence: V1EvidenceCommentCreatedRequestEvidence;
225
84
  }
226
- export const V1EvidenceCreatedRequest = /*@__PURE__*/ S.suspend(() =>
227
- S.Struct({
228
- evidence: V1EvidenceCommentCreatedRequestEvidence,
229
- }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.created", code: 200 })),
230
- ).annotate({ identifier: "V1EvidenceCreatedRequest" }) as any as S.Schema<V1EvidenceCreatedRequest>;
231
-
232
85
  export interface V1EvidenceCreatedResponse {}
233
- export const V1EvidenceCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
234
- identifier: "V1EvidenceCreatedResponse",
235
- }) as any as S.Schema<V1EvidenceCreatedResponse>;
236
-
237
86
  /** The evidence item that left scope for the audit. */
238
87
  export type V1EvidenceDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
239
- export const V1EvidenceDeletedRequestEvidence = V1EvidenceCommentCreatedRequestEvidence;
240
-
241
88
  export interface V1EvidenceDeletedRequest {
242
89
  /** The evidence item that left scope for the audit. */
243
90
  evidence: V1EvidenceCommentCreatedRequestEvidence;
244
91
  }
245
- export const V1EvidenceDeletedRequest = /*@__PURE__*/ S.suspend(() =>
246
- S.Struct({
247
- evidence: V1EvidenceCommentCreatedRequestEvidence,
248
- }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.deleted", code: 200 })),
249
- ).annotate({ identifier: "V1EvidenceDeletedRequest" }) as any as S.Schema<V1EvidenceDeletedRequest>;
250
-
251
92
  export interface V1EvidenceDeletedResponse {}
252
- export const V1EvidenceDeletedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
253
- identifier: "V1EvidenceDeletedResponse",
254
- }) as any as S.Schema<V1EvidenceDeletedResponse>;
255
-
256
93
  /** The status the evidence item was in before the change. `INITIALIZED` is an internal status and is never delivered. */
257
94
  export type V1EvidenceStatusChangedRequestEvidenceOldStatus =
258
95
  | "ACCEPTED"
@@ -261,8 +98,6 @@ export type V1EvidenceStatusChangedRequestEvidenceOldStatus =
261
98
  | "NA"
262
99
  | "NOT_READY_FOR_AUDIT"
263
100
  | "READY_FOR_AUDIT";
264
- export const V1EvidenceStatusChangedRequestEvidenceOldStatus = S.String;
265
-
266
101
  /** The status the evidence item is in after the change. A value of `READY_FOR_AUDIT` means the customer has provided evidence for the item and it is ready for the auditor to review. `INITIALIZED` is an internal status and is never delivered. */
267
102
  export type V1EvidenceStatusChangedRequestEvidenceNewStatus =
268
103
  | "ACCEPTED"
@@ -271,8 +106,6 @@ export type V1EvidenceStatusChangedRequestEvidenceNewStatus =
271
106
  | "NA"
272
107
  | "NOT_READY_FOR_AUDIT"
273
108
  | "READY_FOR_AUDIT";
274
- export const V1EvidenceStatusChangedRequestEvidenceNewStatus = S.String;
275
-
276
109
  export interface V1EvidenceStatusChangedRequestEvidence {
277
110
  /** The unique identifier of the evidence. */
278
111
  id: string;
@@ -283,217 +116,73 @@ export interface V1EvidenceStatusChangedRequestEvidence {
283
116
  /** The status the evidence item is in after the change. A value of `READY_FOR_AUDIT` means the customer has provided evidence for the item and it is ready for the auditor to review. `INITIALIZED` is an internal status and is never delivered. */
284
117
  newStatus: V1EvidenceStatusChangedRequestEvidenceNewStatus | (string & {});
285
118
  }
286
- export const V1EvidenceStatusChangedRequestEvidence = /*@__PURE__*/ S.suspend(() =>
287
- S.Struct({
288
- id: S.String,
289
- auditId: S.String,
290
- oldStatus: V1EvidenceStatusChangedRequestEvidenceOldStatus,
291
- newStatus: V1EvidenceStatusChangedRequestEvidenceNewStatus,
292
- }),
293
- ).annotate({
294
- identifier: "V1EvidenceStatusChangedRequestEvidence",
295
- }) as any as S.Schema<V1EvidenceStatusChangedRequestEvidence>;
296
-
297
119
  export interface V1EvidenceStatusChangedRequest {
298
120
  evidence: V1EvidenceStatusChangedRequestEvidence;
299
121
  }
300
- export const V1EvidenceStatusChangedRequest = /*@__PURE__*/ S.suspend(() =>
301
- S.Struct({
302
- evidence: V1EvidenceStatusChangedRequestEvidence,
303
- }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.status-changed", code: 200 })),
304
- ).annotate({
305
- identifier: "V1EvidenceStatusChangedRequest",
306
- }) as any as S.Schema<V1EvidenceStatusChangedRequest>;
307
-
308
122
  export interface V1EvidenceStatusChangedResponse {}
309
- export const V1EvidenceStatusChangedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
310
- { identifier: "V1EvidenceStatusChangedResponse" },
311
- ) as any as S.Schema<V1EvidenceStatusChangedResponse>;
312
-
313
123
  export interface V1InformationRequestCommentCreatedRequestInformationRequest {
314
124
  /** The unique identifier of the information request. */
315
125
  id: string;
316
126
  /** The unique identifier of the audit the information request belongs to. */
317
127
  auditId: string;
318
128
  }
319
- export const V1InformationRequestCommentCreatedRequestInformationRequest = /*@__PURE__*/ S.suspend(
320
- () =>
321
- S.Struct({
322
- id: S.String,
323
- auditId: S.String,
324
- }),
325
- ).annotate({
326
- identifier: "V1InformationRequestCommentCreatedRequestInformationRequest",
327
- }) as any as S.Schema<V1InformationRequestCommentCreatedRequestInformationRequest>;
328
-
329
129
  export type V1InformationRequestCommentCreatedRequestComment =
330
130
  V1ControlCommentCreatedRequestComment;
331
- export const V1InformationRequestCommentCreatedRequestComment =
332
- V1ControlCommentCreatedRequestComment;
333
-
334
131
  export interface V1InformationRequestCommentCreatedRequest {
335
132
  informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
336
133
  comment: V1ControlCommentCreatedRequestComment;
337
134
  }
338
- export const V1InformationRequestCommentCreatedRequest = /*@__PURE__*/ S.suspend(() =>
339
- S.Struct({
340
- informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
341
- comment: V1ControlCommentCreatedRequestComment,
342
- }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.comment.created", code: 200 })),
343
- ).annotate({
344
- identifier: "V1InformationRequestCommentCreatedRequest",
345
- }) as any as S.Schema<V1InformationRequestCommentCreatedRequest>;
346
-
347
135
  export interface V1InformationRequestCommentCreatedResponse {}
348
- export const V1InformationRequestCommentCreatedResponse = /*@__PURE__*/ S.suspend(() =>
349
- S.Struct({}),
350
- ).annotate({
351
- identifier: "V1InformationRequestCommentCreatedResponse",
352
- }) as any as S.Schema<V1InformationRequestCommentCreatedResponse>;
353
-
354
136
  export type V1InformationRequestCommentDeletedRequestInformationRequest =
355
137
  V1InformationRequestCommentCreatedRequestInformationRequest;
356
- export const V1InformationRequestCommentDeletedRequestInformationRequest =
357
- V1InformationRequestCommentCreatedRequestInformationRequest;
358
-
359
138
  export type V1InformationRequestCommentDeletedRequestComment =
360
139
  V1ControlCommentCreatedRequestComment;
361
- export const V1InformationRequestCommentDeletedRequestComment =
362
- V1ControlCommentCreatedRequestComment;
363
-
364
140
  export interface V1InformationRequestCommentDeletedRequest {
365
141
  informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
366
142
  comment: V1ControlCommentCreatedRequestComment;
367
143
  }
368
- export const V1InformationRequestCommentDeletedRequest = /*@__PURE__*/ S.suspend(() =>
369
- S.Struct({
370
- informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
371
- comment: V1ControlCommentCreatedRequestComment,
372
- }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.comment.deleted", code: 200 })),
373
- ).annotate({
374
- identifier: "V1InformationRequestCommentDeletedRequest",
375
- }) as any as S.Schema<V1InformationRequestCommentDeletedRequest>;
376
-
377
144
  export interface V1InformationRequestCommentDeletedResponse {}
378
- export const V1InformationRequestCommentDeletedResponse = /*@__PURE__*/ S.suspend(() =>
379
- S.Struct({}),
380
- ).annotate({
381
- identifier: "V1InformationRequestCommentDeletedResponse",
382
- }) as any as S.Schema<V1InformationRequestCommentDeletedResponse>;
383
-
384
145
  export type V1InformationRequestCommentUpdatedRequestInformationRequest =
385
146
  V1InformationRequestCommentCreatedRequestInformationRequest;
386
- export const V1InformationRequestCommentUpdatedRequestInformationRequest =
387
- V1InformationRequestCommentCreatedRequestInformationRequest;
388
-
389
147
  export type V1InformationRequestCommentUpdatedRequestComment =
390
148
  V1ControlCommentCreatedRequestComment;
391
- export const V1InformationRequestCommentUpdatedRequestComment =
392
- V1ControlCommentCreatedRequestComment;
393
-
394
149
  export interface V1InformationRequestCommentUpdatedRequest {
395
150
  informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
396
151
  comment: V1ControlCommentCreatedRequestComment;
397
152
  }
398
- export const V1InformationRequestCommentUpdatedRequest = /*@__PURE__*/ S.suspend(() =>
399
- S.Struct({
400
- informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
401
- comment: V1ControlCommentCreatedRequestComment,
402
- }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.comment.updated", code: 200 })),
403
- ).annotate({
404
- identifier: "V1InformationRequestCommentUpdatedRequest",
405
- }) as any as S.Schema<V1InformationRequestCommentUpdatedRequest>;
406
-
407
153
  export interface V1InformationRequestCommentUpdatedResponse {}
408
- export const V1InformationRequestCommentUpdatedResponse = /*@__PURE__*/ S.suspend(() =>
409
- S.Struct({}),
410
- ).annotate({
411
- identifier: "V1InformationRequestCommentUpdatedResponse",
412
- }) as any as S.Schema<V1InformationRequestCommentUpdatedResponse>;
413
-
414
154
  export type V1InformationRequestEvidenceCreatedRequestInformationRequest =
415
155
  V1InformationRequestCommentCreatedRequestInformationRequest;
416
- export const V1InformationRequestEvidenceCreatedRequestInformationRequest =
417
- V1InformationRequestCommentCreatedRequestInformationRequest;
418
-
419
156
  export interface V1InformationRequestEvidenceCreatedRequestEvidence {
420
157
  /** The unique identifier of the evidence. */
421
158
  id: string;
422
159
  }
423
- export const V1InformationRequestEvidenceCreatedRequestEvidence = /*@__PURE__*/ S.suspend(() =>
424
- S.Struct({
425
- id: S.String,
426
- }),
427
- ).annotate({
428
- identifier: "V1InformationRequestEvidenceCreatedRequestEvidence",
429
- }) as any as S.Schema<V1InformationRequestEvidenceCreatedRequestEvidence>;
430
-
431
160
  export interface V1InformationRequestEvidenceCreatedRequest {
432
161
  informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
433
162
  evidence: V1InformationRequestEvidenceCreatedRequestEvidence;
434
163
  }
435
- export const V1InformationRequestEvidenceCreatedRequest = /*@__PURE__*/ S.suspend(() =>
436
- S.Struct({
437
- informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
438
- evidence: V1InformationRequestEvidenceCreatedRequestEvidence,
439
- }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.evidence.created", code: 200 })),
440
- ).annotate({
441
- identifier: "V1InformationRequestEvidenceCreatedRequest",
442
- }) as any as S.Schema<V1InformationRequestEvidenceCreatedRequest>;
443
-
444
164
  export interface V1InformationRequestEvidenceCreatedResponse {}
445
- export const V1InformationRequestEvidenceCreatedResponse = /*@__PURE__*/ S.suspend(() =>
446
- S.Struct({}),
447
- ).annotate({
448
- identifier: "V1InformationRequestEvidenceCreatedResponse",
449
- }) as any as S.Schema<V1InformationRequestEvidenceCreatedResponse>;
450
-
451
165
  export type V1InformationRequestEvidenceDeletedRequestInformationRequest =
452
166
  V1InformationRequestCommentCreatedRequestInformationRequest;
453
- export const V1InformationRequestEvidenceDeletedRequestInformationRequest =
454
- V1InformationRequestCommentCreatedRequestInformationRequest;
455
-
456
167
  export type V1InformationRequestEvidenceDeletedRequestEvidence =
457
168
  V1InformationRequestEvidenceCreatedRequestEvidence;
458
- export const V1InformationRequestEvidenceDeletedRequestEvidence =
459
- V1InformationRequestEvidenceCreatedRequestEvidence;
460
-
461
169
  export interface V1InformationRequestEvidenceDeletedRequest {
462
170
  informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest;
463
171
  evidence: V1InformationRequestEvidenceCreatedRequestEvidence;
464
172
  }
465
- export const V1InformationRequestEvidenceDeletedRequest = /*@__PURE__*/ S.suspend(() =>
466
- S.Struct({
467
- informationRequest: V1InformationRequestCommentCreatedRequestInformationRequest,
468
- evidence: V1InformationRequestEvidenceCreatedRequestEvidence,
469
- }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.evidence.deleted", code: 200 })),
470
- ).annotate({
471
- identifier: "V1InformationRequestEvidenceDeletedRequest",
472
- }) as any as S.Schema<V1InformationRequestEvidenceDeletedRequest>;
473
-
474
173
  export interface V1InformationRequestEvidenceDeletedResponse {}
475
- export const V1InformationRequestEvidenceDeletedResponse = /*@__PURE__*/ S.suspend(() =>
476
- S.Struct({}),
477
- ).annotate({
478
- identifier: "V1InformationRequestEvidenceDeletedResponse",
479
- }) as any as S.Schema<V1InformationRequestEvidenceDeletedResponse>;
480
-
481
174
  /** The status the information request was in before the change. */
482
175
  export type V1InformationRequestStatusChangedRequestInformationRequestOldStatus =
483
176
  | "NEEDS_EVIDENCE"
484
177
  | "READY_FOR_AUDIT"
485
178
  | "AUDITOR_APPROVED"
486
179
  | "AUDITOR_FLAGGED";
487
- export const V1InformationRequestStatusChangedRequestInformationRequestOldStatus = S.String;
488
-
489
180
  /** The status the information request is in after the change. A value of `READY_FOR_AUDIT` means the customer has submitted the request and it is ready for the auditor to review. */
490
181
  export type V1InformationRequestStatusChangedRequestInformationRequestNewStatus =
491
182
  | "NEEDS_EVIDENCE"
492
183
  | "READY_FOR_AUDIT"
493
184
  | "AUDITOR_APPROVED"
494
185
  | "AUDITOR_FLAGGED";
495
- export const V1InformationRequestStatusChangedRequestInformationRequestNewStatus = S.String;
496
-
497
186
  export interface V1InformationRequestStatusChangedRequestInformationRequest {
498
187
  /** The unique identifier of the information request. */
499
188
  id: string;
@@ -504,100 +193,29 @@ export interface V1InformationRequestStatusChangedRequestInformationRequest {
504
193
  /** The status the information request is in after the change. A value of `READY_FOR_AUDIT` means the customer has submitted the request and it is ready for the auditor to review. */
505
194
  newStatus: V1InformationRequestStatusChangedRequestInformationRequestNewStatus | (string & {});
506
195
  }
507
- export const V1InformationRequestStatusChangedRequestInformationRequest = /*@__PURE__*/ S.suspend(
508
- () =>
509
- S.Struct({
510
- id: S.String,
511
- auditId: S.String,
512
- oldStatus: V1InformationRequestStatusChangedRequestInformationRequestOldStatus,
513
- newStatus: V1InformationRequestStatusChangedRequestInformationRequestNewStatus,
514
- }),
515
- ).annotate({
516
- identifier: "V1InformationRequestStatusChangedRequestInformationRequest",
517
- }) as any as S.Schema<V1InformationRequestStatusChangedRequestInformationRequest>;
518
-
519
196
  export interface V1InformationRequestStatusChangedRequest {
520
197
  informationRequest: V1InformationRequestStatusChangedRequestInformationRequest;
521
198
  }
522
- export const V1InformationRequestStatusChangedRequest = /*@__PURE__*/ S.suspend(() =>
523
- S.Struct({
524
- informationRequest: V1InformationRequestStatusChangedRequestInformationRequest,
525
- }).pipe(T.Http({ method: "POST", uri: "/v1.information-request.status-changed", code: 200 })),
526
- ).annotate({
527
- identifier: "V1InformationRequestStatusChangedRequest",
528
- }) as any as S.Schema<V1InformationRequestStatusChangedRequest>;
529
-
530
199
  export interface V1InformationRequestStatusChangedResponse {}
531
- export const V1InformationRequestStatusChangedResponse = /*@__PURE__*/ S.suspend(() =>
532
- S.Struct({}),
533
- ).annotate({
534
- identifier: "V1InformationRequestStatusChangedResponse",
535
- }) as any as S.Schema<V1InformationRequestStatusChangedResponse>;
536
-
537
200
  export interface V1QuestionnaireCreatedRequestQuestionnaire {
538
201
  /** The questionnaire ID. */
539
202
  id: string;
540
203
  }
541
- export const V1QuestionnaireCreatedRequestQuestionnaire = /*@__PURE__*/ S.suspend(() =>
542
- S.Struct({
543
- id: S.String,
544
- }),
545
- ).annotate({
546
- identifier: "V1QuestionnaireCreatedRequestQuestionnaire",
547
- }) as any as S.Schema<V1QuestionnaireCreatedRequestQuestionnaire>;
548
-
549
204
  export interface V1QuestionnaireCreatedRequest {
550
205
  questionnaire: V1QuestionnaireCreatedRequestQuestionnaire;
551
206
  }
552
- export const V1QuestionnaireCreatedRequest = /*@__PURE__*/ S.suspend(() =>
553
- S.Struct({
554
- questionnaire: V1QuestionnaireCreatedRequestQuestionnaire,
555
- }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.created", code: 200 })),
556
- ).annotate({
557
- identifier: "V1QuestionnaireCreatedRequest",
558
- }) as any as S.Schema<V1QuestionnaireCreatedRequest>;
559
-
560
207
  export interface V1QuestionnaireCreatedResponse {}
561
- export const V1QuestionnaireCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
562
- identifier: "V1QuestionnaireCreatedResponse",
563
- }) as any as S.Schema<V1QuestionnaireCreatedResponse>;
564
-
565
208
  export type V1QuestionnaireDeletedRequestQuestionnaire = V1QuestionnaireCreatedRequestQuestionnaire;
566
- export const V1QuestionnaireDeletedRequestQuestionnaire =
567
- V1QuestionnaireCreatedRequestQuestionnaire;
568
-
569
209
  export interface V1QuestionnaireDeletedRequest {
570
210
  questionnaire: V1QuestionnaireCreatedRequestQuestionnaire;
571
211
  }
572
- export const V1QuestionnaireDeletedRequest = /*@__PURE__*/ S.suspend(() =>
573
- S.Struct({
574
- questionnaire: V1QuestionnaireCreatedRequestQuestionnaire,
575
- }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.deleted", code: 200 })),
576
- ).annotate({
577
- identifier: "V1QuestionnaireDeletedRequest",
578
- }) as any as S.Schema<V1QuestionnaireDeletedRequest>;
579
-
580
212
  export interface V1QuestionnaireDeletedResponse {}
581
- export const V1QuestionnaireDeletedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
582
- identifier: "V1QuestionnaireDeletedResponse",
583
- }) as any as S.Schema<V1QuestionnaireDeletedResponse>;
584
-
585
213
  export interface V1QuestionnaireExportCompletedRequestQuestionnaire {
586
214
  /** The unique identifier of the questionnaire. */
587
215
  id: string;
588
216
  }
589
- export const V1QuestionnaireExportCompletedRequestQuestionnaire = /*@__PURE__*/ S.suspend(() =>
590
- S.Struct({
591
- id: S.String,
592
- }),
593
- ).annotate({
594
- identifier: "V1QuestionnaireExportCompletedRequestQuestionnaire",
595
- }) as any as S.Schema<V1QuestionnaireExportCompletedRequestQuestionnaire>;
596
-
597
217
  /** The export format. */
598
218
  export type V1QuestionnaireExportCompletedRequestExportFormat = "original" | "csv";
599
- export const V1QuestionnaireExportCompletedRequestExportFormat = S.String;
600
-
601
219
  export interface V1QuestionnaireExportCompletedRequestExport {
602
220
  /** The unique identifier of the export job. */
603
221
  id: string;
@@ -608,46 +226,15 @@ export interface V1QuestionnaireExportCompletedRequestExport {
608
226
  /** When the export finished (ISO 8601). */
609
227
  completedAt: string;
610
228
  }
611
- export const V1QuestionnaireExportCompletedRequestExport = /*@__PURE__*/ S.suspend(() =>
612
- S.Struct({
613
- id: S.String,
614
- format: V1QuestionnaireExportCompletedRequestExportFormat,
615
- requestedAt: S.String,
616
- completedAt: S.String,
617
- }),
618
- ).annotate({
619
- identifier: "V1QuestionnaireExportCompletedRequestExport",
620
- }) as any as S.Schema<V1QuestionnaireExportCompletedRequestExport>;
621
-
622
229
  export interface V1QuestionnaireExportCompletedRequest {
623
230
  questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire;
624
231
  export: V1QuestionnaireExportCompletedRequestExport;
625
232
  }
626
- export const V1QuestionnaireExportCompletedRequest = /*@__PURE__*/ S.suspend(() =>
627
- S.Struct({
628
- questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire,
629
- export: V1QuestionnaireExportCompletedRequestExport,
630
- }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-completed", code: 200 })),
631
- ).annotate({
632
- identifier: "V1QuestionnaireExportCompletedRequest",
633
- }) as any as S.Schema<V1QuestionnaireExportCompletedRequest>;
634
-
635
233
  export interface V1QuestionnaireExportCompletedResponse {}
636
- export const V1QuestionnaireExportCompletedResponse = /*@__PURE__*/ S.suspend(() =>
637
- S.Struct({}),
638
- ).annotate({
639
- identifier: "V1QuestionnaireExportCompletedResponse",
640
- }) as any as S.Schema<V1QuestionnaireExportCompletedResponse>;
641
-
642
234
  export type V1QuestionnaireExportFailedRequestQuestionnaire =
643
235
  V1QuestionnaireExportCompletedRequestQuestionnaire;
644
- export const V1QuestionnaireExportFailedRequestQuestionnaire =
645
- V1QuestionnaireExportCompletedRequestQuestionnaire;
646
-
647
236
  /** The export format. */
648
237
  export type V1QuestionnaireExportFailedRequestExportFormat = "original" | "csv";
649
- export const V1QuestionnaireExportFailedRequestExportFormat = S.String;
650
-
651
238
  export interface V1QuestionnaireExportFailedRequestExport {
652
239
  /** The unique identifier of the export job. */
653
240
  id: string;
@@ -660,38 +247,11 @@ export interface V1QuestionnaireExportFailedRequestExport {
660
247
  /** The reason for the export failure. */
661
248
  reason: string;
662
249
  }
663
- export const V1QuestionnaireExportFailedRequestExport = /*@__PURE__*/ S.suspend(() =>
664
- S.Struct({
665
- id: S.String,
666
- format: V1QuestionnaireExportFailedRequestExportFormat,
667
- requestedAt: S.String,
668
- failedAt: S.String,
669
- reason: S.String,
670
- }),
671
- ).annotate({
672
- identifier: "V1QuestionnaireExportFailedRequestExport",
673
- }) as any as S.Schema<V1QuestionnaireExportFailedRequestExport>;
674
-
675
250
  export interface V1QuestionnaireExportFailedRequest {
676
251
  questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire;
677
252
  export: V1QuestionnaireExportFailedRequestExport;
678
253
  }
679
- export const V1QuestionnaireExportFailedRequest = /*@__PURE__*/ S.suspend(() =>
680
- S.Struct({
681
- questionnaire: V1QuestionnaireExportCompletedRequestQuestionnaire,
682
- export: V1QuestionnaireExportFailedRequestExport,
683
- }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-failed", code: 200 })),
684
- ).annotate({
685
- identifier: "V1QuestionnaireExportFailedRequest",
686
- }) as any as S.Schema<V1QuestionnaireExportFailedRequest>;
687
-
688
254
  export interface V1QuestionnaireExportFailedResponse {}
689
- export const V1QuestionnaireExportFailedResponse = /*@__PURE__*/ S.suspend(() =>
690
- S.Struct({}),
691
- ).annotate({
692
- identifier: "V1QuestionnaireExportFailedResponse",
693
- }) as any as S.Schema<V1QuestionnaireExportFailedResponse>;
694
-
695
255
  /** The new questionnaire status. */
696
256
  export type V1QuestionnaireStatusChangedRequestQuestionnaireStatus =
697
257
  | "APPROVED"
@@ -711,166 +271,57 @@ export type V1QuestionnaireStatusChangedRequestQuestionnaireStatus =
711
271
  | "DETECTING_COLUMNS"
712
272
  | "ON_HOLD"
713
273
  | "NO_LONGER_NEEDED";
714
- export const V1QuestionnaireStatusChangedRequestQuestionnaireStatus = S.String;
715
-
716
274
  export interface V1QuestionnaireStatusChangedRequestQuestionnaire {
717
275
  /** The questionnaire ID. */
718
276
  id: string;
719
277
  /** The new questionnaire status. */
720
278
  status: V1QuestionnaireStatusChangedRequestQuestionnaireStatus | (string & {});
721
279
  }
722
- export const V1QuestionnaireStatusChangedRequestQuestionnaire = /*@__PURE__*/ S.suspend(() =>
723
- S.Struct({
724
- id: S.String,
725
- status: V1QuestionnaireStatusChangedRequestQuestionnaireStatus,
726
- }),
727
- ).annotate({
728
- identifier: "V1QuestionnaireStatusChangedRequestQuestionnaire",
729
- }) as any as S.Schema<V1QuestionnaireStatusChangedRequestQuestionnaire>;
730
-
731
280
  export interface V1QuestionnaireStatusChangedRequest {
732
281
  questionnaire: V1QuestionnaireStatusChangedRequestQuestionnaire;
733
282
  }
734
- export const V1QuestionnaireStatusChangedRequest = /*@__PURE__*/ S.suspend(() =>
735
- S.Struct({
736
- questionnaire: V1QuestionnaireStatusChangedRequestQuestionnaire,
737
- }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.status-changed", code: 200 })),
738
- ).annotate({
739
- identifier: "V1QuestionnaireStatusChangedRequest",
740
- }) as any as S.Schema<V1QuestionnaireStatusChangedRequest>;
741
-
742
283
  export interface V1QuestionnaireStatusChangedResponse {}
743
- export const V1QuestionnaireStatusChangedResponse = /*@__PURE__*/ S.suspend(() =>
744
- S.Struct({}),
745
- ).annotate({
746
- identifier: "V1QuestionnaireStatusChangedResponse",
747
- }) as any as S.Schema<V1QuestionnaireStatusChangedResponse>;
748
-
749
284
  export interface V1TrustCenterAccessRequestApprovedRequestTrustCenter {
750
285
  /** The Trust Center slug ID. */
751
286
  slugId: string;
752
287
  }
753
- export const V1TrustCenterAccessRequestApprovedRequestTrustCenter = /*@__PURE__*/ S.suspend(() =>
754
- S.Struct({
755
- slugId: S.String,
756
- }),
757
- ).annotate({
758
- identifier: "V1TrustCenterAccessRequestApprovedRequestTrustCenter",
759
- }) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestTrustCenter>;
760
-
761
288
  export interface V1TrustCenterAccessRequestApprovedRequestAccessRequest {
762
289
  /** The access request ID. */
763
290
  id: string;
764
291
  }
765
- export const V1TrustCenterAccessRequestApprovedRequestAccessRequest = /*@__PURE__*/ S.suspend(() =>
766
- S.Struct({
767
- id: S.String,
768
- }),
769
- ).annotate({
770
- identifier: "V1TrustCenterAccessRequestApprovedRequestAccessRequest",
771
- }) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestAccessRequest>;
772
-
773
292
  export interface V1TrustCenterAccessRequestApprovedRequestViewer {
774
293
  /** The viewer ID granted access. */
775
294
  id: string;
776
295
  }
777
- export const V1TrustCenterAccessRequestApprovedRequestViewer = /*@__PURE__*/ S.suspend(() =>
778
- S.Struct({
779
- id: S.String,
780
- }),
781
- ).annotate({
782
- identifier: "V1TrustCenterAccessRequestApprovedRequestViewer",
783
- }) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequestViewer>;
784
-
785
296
  export interface V1TrustCenterAccessRequestApprovedRequest {
786
297
  trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter;
787
298
  accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest;
788
299
  viewer: V1TrustCenterAccessRequestApprovedRequestViewer;
789
300
  }
790
- export const V1TrustCenterAccessRequestApprovedRequest = /*@__PURE__*/ S.suspend(() =>
791
- S.Struct({
792
- trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter,
793
- accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest,
794
- viewer: V1TrustCenterAccessRequestApprovedRequestViewer,
795
- }).pipe(T.Http({ method: "POST", uri: "/v1.trust-center.access-request.approved", code: 200 })),
796
- ).annotate({
797
- identifier: "V1TrustCenterAccessRequestApprovedRequest",
798
- }) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequest>;
799
-
800
301
  export interface V1TrustCenterAccessRequestApprovedResponse {}
801
- export const V1TrustCenterAccessRequestApprovedResponse = /*@__PURE__*/ S.suspend(() =>
802
- S.Struct({}),
803
- ).annotate({
804
- identifier: "V1TrustCenterAccessRequestApprovedResponse",
805
- }) as any as S.Schema<V1TrustCenterAccessRequestApprovedResponse>;
806
-
807
302
  export type V1TrustCenterAccessRequestDeniedRequestTrustCenter =
808
303
  V1TrustCenterAccessRequestApprovedRequestTrustCenter;
809
- export const V1TrustCenterAccessRequestDeniedRequestTrustCenter =
810
- V1TrustCenterAccessRequestApprovedRequestTrustCenter;
811
-
812
304
  export type V1TrustCenterAccessRequestDeniedRequestAccessRequest =
813
305
  V1TrustCenterAccessRequestApprovedRequestAccessRequest;
814
- export const V1TrustCenterAccessRequestDeniedRequestAccessRequest =
815
- V1TrustCenterAccessRequestApprovedRequestAccessRequest;
816
-
817
306
  export interface V1TrustCenterAccessRequestDeniedRequest {
818
307
  trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter;
819
308
  accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest;
820
309
  }
821
- export const V1TrustCenterAccessRequestDeniedRequest = /*@__PURE__*/ S.suspend(() =>
822
- S.Struct({
823
- trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter,
824
- accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest,
825
- }).pipe(T.Http({ method: "POST", uri: "/v1.trust-center.access-request.denied", code: 200 })),
826
- ).annotate({
827
- identifier: "V1TrustCenterAccessRequestDeniedRequest",
828
- }) as any as S.Schema<V1TrustCenterAccessRequestDeniedRequest>;
829
-
830
310
  export interface V1TrustCenterAccessRequestDeniedResponse {}
831
- export const V1TrustCenterAccessRequestDeniedResponse = /*@__PURE__*/ S.suspend(() =>
832
- S.Struct({}),
833
- ).annotate({
834
- identifier: "V1TrustCenterAccessRequestDeniedResponse",
835
- }) as any as S.Schema<V1TrustCenterAccessRequestDeniedResponse>;
836
-
837
311
  export type V1TrustCenterAccessRequestReceivedRequestTrustCenter =
838
312
  V1TrustCenterAccessRequestApprovedRequestTrustCenter;
839
- export const V1TrustCenterAccessRequestReceivedRequestTrustCenter =
840
- V1TrustCenterAccessRequestApprovedRequestTrustCenter;
841
-
842
313
  export type V1TrustCenterAccessRequestReceivedRequestAccessRequest =
843
314
  V1TrustCenterAccessRequestApprovedRequestAccessRequest;
844
- export const V1TrustCenterAccessRequestReceivedRequestAccessRequest =
845
- V1TrustCenterAccessRequestApprovedRequestAccessRequest;
846
-
847
315
  export interface V1TrustCenterAccessRequestReceivedRequest {
848
316
  trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter;
849
317
  accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest;
850
318
  }
851
- export const V1TrustCenterAccessRequestReceivedRequest = /*@__PURE__*/ S.suspend(() =>
852
- S.Struct({
853
- trustCenter: V1TrustCenterAccessRequestApprovedRequestTrustCenter,
854
- accessRequest: V1TrustCenterAccessRequestApprovedRequestAccessRequest,
855
- }).pipe(T.Http({ method: "POST", uri: "/v1.trust-center.access-request.received", code: 200 })),
856
- ).annotate({
857
- identifier: "V1TrustCenterAccessRequestReceivedRequest",
858
- }) as any as S.Schema<V1TrustCenterAccessRequestReceivedRequest>;
859
-
860
319
  export interface V1TrustCenterAccessRequestReceivedResponse {}
861
- export const V1TrustCenterAccessRequestReceivedResponse = /*@__PURE__*/ S.suspend(() =>
862
- S.Struct({}),
863
- ).annotate({
864
- identifier: "V1TrustCenterAccessRequestReceivedResponse",
865
- }) as any as S.Schema<V1TrustCenterAccessRequestReceivedResponse>;
866
-
867
320
  /** The vendor decision status. */
868
321
  export type V1VendorDecisionCreatedRequestVendorDecisionStatus =
869
322
  | "APPROVED"
870
323
  | "CONDITIONALLY_APPROVED"
871
324
  | "NOT_APPROVED";
872
- export const V1VendorDecisionCreatedRequestVendorDecisionStatus = S.String;
873
-
874
325
  export interface V1VendorDecisionCreatedRequestVendorDecision {
875
326
  /** The vendor decision status. */
876
327
  status: V1VendorDecisionCreatedRequestVendorDecisionStatus | (string & {});
@@ -879,86 +330,55 @@ export interface V1VendorDecisionCreatedRequestVendorDecision {
879
330
  /** Optional comments on the decision. */
880
331
  comments?: string;
881
332
  }
882
- export const V1VendorDecisionCreatedRequestVendorDecision = /*@__PURE__*/ S.suspend(() =>
883
- S.Struct({
884
- status: V1VendorDecisionCreatedRequestVendorDecisionStatus,
885
- lastUpdatedAt: S.String,
886
- comments: S.optional(S.String),
887
- }),
888
- ).annotate({
889
- identifier: "V1VendorDecisionCreatedRequestVendorDecision",
890
- }) as any as S.Schema<V1VendorDecisionCreatedRequestVendorDecision>;
891
-
892
333
  export interface V1VendorDecisionCreatedRequestVendor {
893
334
  /** The vendor ID. */
894
335
  id: string;
895
336
  decision: V1VendorDecisionCreatedRequestVendorDecision;
896
337
  }
897
- export const V1VendorDecisionCreatedRequestVendor = /*@__PURE__*/ S.suspend(() =>
898
- S.Struct({
899
- id: S.String,
900
- decision: V1VendorDecisionCreatedRequestVendorDecision,
901
- }),
902
- ).annotate({
903
- identifier: "V1VendorDecisionCreatedRequestVendor",
904
- }) as any as S.Schema<V1VendorDecisionCreatedRequestVendor>;
905
-
906
338
  export interface V1VendorDecisionCreatedRequest {
907
339
  vendor: V1VendorDecisionCreatedRequestVendor;
908
340
  }
909
- export const V1VendorDecisionCreatedRequest = /*@__PURE__*/ S.suspend(() =>
910
- S.Struct({
911
- vendor: V1VendorDecisionCreatedRequestVendor,
912
- }).pipe(T.Http({ method: "POST", uri: "/v1.vendor.decision.created", code: 200 })),
913
- ).annotate({
914
- identifier: "V1VendorDecisionCreatedRequest",
915
- }) as any as S.Schema<V1VendorDecisionCreatedRequest>;
916
-
917
341
  export interface V1VendorDecisionCreatedResponse {}
918
- export const V1VendorDecisionCreatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
919
- { identifier: "V1VendorDecisionCreatedResponse" },
920
- ) as any as S.Schema<V1VendorDecisionCreatedResponse>;
921
-
922
342
  export type V1ControlCommentCreatedError = VantaOpError;
923
- /** Control comment created An external comment was created on an audit control. Fires once per comment. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature — reach out to your Vanta contact to enable it. The payload contains only identifiers. Fetch the comment body from `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
343
+ /** Control comment created An external comment was created on an audit control. Fires once per comment. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature -- reach out to your Vanta contact to enable it. The payload contains only identifiers. Fetch the comment body from `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
924
344
  export const v1ControlCommentCreated: API.OperationMethod<
925
345
  V1ControlCommentCreatedRequest,
926
346
  V1ControlCommentCreatedResponse,
927
347
  V1ControlCommentCreatedError,
928
348
  VantaOpContext
929
349
  > = /*@__PURE__*/ API.make(() => ({
930
- input: V1ControlCommentCreatedRequest,
931
- output: V1ControlCommentCreatedResponse,
350
+ input: __S(0, __c0, 0) as any as S.Schema<V1ControlCommentCreatedRequest>,
351
+ output: __S(4, __c1, 0) as any as S.Schema<V1ControlCommentCreatedResponse>,
932
352
  errors: [UnknownVantaError],
933
353
  protocol: VantaProtocol,
934
354
  retry: Retry.Retry,
935
355
  }));
936
356
 
937
357
  export type V1ControlCommentDeletedError = VantaOpError;
938
- /** Control comment deleted An external comment was deleted from an audit control. Fires once per comment deletion. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature — reach out to your Vanta contact to enable it. The payload contains only identifiers. The deleted comment no longer appears in `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
358
+ /** Control comment deleted An external comment was deleted from an audit control. Fires once per comment deletion. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature -- reach out to your Vanta contact to enable it. The payload contains only identifiers. The deleted comment no longer appears in `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
939
359
  export const v1ControlCommentDeleted: API.OperationMethod<
940
360
  V1ControlCommentDeletedRequest,
941
361
  V1ControlCommentDeletedResponse,
942
362
  V1ControlCommentDeletedError,
943
363
  VantaOpContext
944
364
  > = /*@__PURE__*/ API.make(() => ({
945
- input: V1ControlCommentDeletedRequest,
946
- output: V1ControlCommentDeletedResponse,
365
+ input: __S(16, __c4, 0) as any as S.Schema<V1ControlCommentDeletedRequest>,
366
+ output: __S(4, __c1, 0) as any as S.Schema<V1ControlCommentDeletedResponse>,
947
367
  errors: [UnknownVantaError],
948
368
  protocol: VantaProtocol,
949
369
  retry: Retry.Retry,
950
370
  }));
951
371
 
952
372
  export type V1ControlCommentUpdatedError = VantaOpError;
953
- /** Control comment updated An external comment on an audit control was updated. Fires once per comment update. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature — reach out to your Vanta contact to enable it. The payload contains only identifiers. Fetch the current comment body from `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
373
+ /** Control comment updated An external comment on an audit control was updated. Fires once per comment update. This event is delivered only to [Audit Partner](/reference/audits/overview) accounts and is gated by the early-access `audit_control_comment_webhook` feature -- reach out to your Vanta contact to enable it. The payload contains only identifiers. Fetch the current comment body from `GET /v1/audits/{auditId}/controls/{controlId}/comments`. */
954
374
  export const v1ControlCommentUpdated: API.OperationMethod<
955
375
  V1ControlCommentUpdatedRequest,
956
376
  V1ControlCommentUpdatedResponse,
957
377
  V1ControlCommentUpdatedError,
958
378
  VantaOpContext
959
379
  > = /*@__PURE__*/ API.make(() => ({
960
- input: V1ControlCommentUpdatedRequest,
961
- output: V1ControlCommentUpdatedResponse,
380
+ input: __S(60, __c15, 0) as any as S.Schema<V1ControlCommentUpdatedRequest>,
381
+ output: __S(4, __c1, 0) as any as S.Schema<V1ControlCommentUpdatedResponse>,
962
382
  errors: [UnknownVantaError],
963
383
  protocol: VantaProtocol,
964
384
  retry: Retry.Retry,
@@ -972,8 +392,8 @@ export const v1EvidenceCommentCreated: API.OperationMethod<
972
392
  V1EvidenceCommentCreatedError,
973
393
  VantaOpContext
974
394
  > = /*@__PURE__*/ API.make(() => ({
975
- input: V1EvidenceCommentCreatedRequest,
976
- output: V1EvidenceCommentCreatedResponse,
395
+ input: __S(84, __c21, 0) as any as S.Schema<V1EvidenceCommentCreatedRequest>,
396
+ output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCommentCreatedResponse>,
977
397
  errors: [UnknownVantaError],
978
398
  protocol: VantaProtocol,
979
399
  retry: Retry.Retry,
@@ -987,8 +407,8 @@ export const v1EvidenceCommentDeleted: API.OperationMethod<
987
407
  V1EvidenceCommentDeletedError,
988
408
  VantaOpContext
989
409
  > = /*@__PURE__*/ API.make(() => ({
990
- input: V1EvidenceCommentDeletedRequest,
991
- output: V1EvidenceCommentDeletedResponse,
410
+ input: __S(88, __c22, 0) as any as S.Schema<V1EvidenceCommentDeletedRequest>,
411
+ output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCommentDeletedResponse>,
992
412
  errors: [UnknownVantaError],
993
413
  protocol: VantaProtocol,
994
414
  retry: Retry.Retry,
@@ -1002,8 +422,8 @@ export const v1EvidenceCommentUpdated: API.OperationMethod<
1002
422
  V1EvidenceCommentUpdatedError,
1003
423
  VantaOpContext
1004
424
  > = /*@__PURE__*/ API.make(() => ({
1005
- input: V1EvidenceCommentUpdatedRequest,
1006
- output: V1EvidenceCommentUpdatedResponse,
425
+ input: __S(92, __c23, 0) as any as S.Schema<V1EvidenceCommentUpdatedRequest>,
426
+ output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCommentUpdatedResponse>,
1007
427
  errors: [UnknownVantaError],
1008
428
  protocol: VantaProtocol,
1009
429
  retry: Retry.Retry,
@@ -1017,8 +437,8 @@ export const v1EvidenceCreated: API.OperationMethod<
1017
437
  V1EvidenceCreatedError,
1018
438
  VantaOpContext
1019
439
  > = /*@__PURE__*/ API.make(() => ({
1020
- input: V1EvidenceCreatedRequest,
1021
- output: V1EvidenceCreatedResponse,
440
+ input: __S(96, __c24, 0) as any as S.Schema<V1EvidenceCreatedRequest>,
441
+ output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceCreatedResponse>,
1022
442
  errors: [UnknownVantaError],
1023
443
  protocol: VantaProtocol,
1024
444
  retry: Retry.Retry,
@@ -1032,23 +452,23 @@ export const v1EvidenceDeleted: API.OperationMethod<
1032
452
  V1EvidenceDeletedError,
1033
453
  VantaOpContext
1034
454
  > = /*@__PURE__*/ API.make(() => ({
1035
- input: V1EvidenceDeletedRequest,
1036
- output: V1EvidenceDeletedResponse,
455
+ input: __S(100, __c25, 0) as any as S.Schema<V1EvidenceDeletedRequest>,
456
+ output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceDeletedResponse>,
1037
457
  errors: [UnknownVantaError],
1038
458
  protocol: VantaProtocol,
1039
459
  retry: Retry.Retry,
1040
460
  }));
1041
461
 
1042
462
  export type V1EvidenceStatusChangedError = VantaOpError;
1043
- /** Evidence status changed Fires when an existing audit evidence item changes status. `oldStatus` and `newStatus` always describe a transition of an item that already exists. See [`v1.evidence.created`](/api-reference/evidence/evidence-created) for the event that fires when an item first comes into scope for an audit. **Ready-to-review signal:** a `newStatus` of `READY_FOR_AUDIT` means the customer has provided evidence for the item and it is ready for the auditor to review. **When it fires:** once per evidence item, each time its status changes. Status can also change on its own as the customer's compliance posture changes, so an item may move from `READY_FOR_AUDIT` back to `NOT_READY_FOR_AUDIT` without an explicit auditor action. `oldStatus` and `newStatus` can be equal. A newly detected document re-fires this event with both fields set to the item's current status (for example, `READY_FOR_AUDIT`, `ACCEPTED`, or `FLAGGED`). Treat that as a signal that the item's files may have changed and re-fetch its URLs. Do not discard events where the status is unchanged. **Status values:** - `NOT_READY_FOR_AUDIT` — the item is not yet ready for the auditor; required evidence is missing or does not meet the requirement. - `READY_FOR_AUDIT` — the customer has provided the evidence and it is ready for the auditor to review. - `ACCEPTED` — the auditor reviewed the item and accepted it. - `FLAGGED` — the auditor reviewed the item and flagged an issue for the customer to address; once the customer addresses it the item returns to `READY_FOR_AUDIT`. - `NA` — the item is not applicable to this audit. A typical lifecycle is `NOT_READY_FOR_AUDIT → READY_FOR_AUDIT → ACCEPTED` (or `→ FLAGGED`, which returns to `READY_FOR_AUDIT` once the customer addresses the issue). `INITIALIZED` is an internal status and is never delivered — `oldStatus` and `newStatus` are always one of the values above. */
463
+ /** Evidence status changed Fires when an existing audit evidence item changes status. `oldStatus` and `newStatus` always describe a transition of an item that already exists. See [`v1.evidence.created`](/api-reference/evidence/evidence-created) for the event that fires when an item first comes into scope for an audit. **Ready-to-review signal:** a `newStatus` of `READY_FOR_AUDIT` means the customer has provided evidence for the item and it is ready for the auditor to review. **When it fires:** once per evidence item, each time its status changes. Status can also change on its own as the customer's compliance posture changes, so an item may move from `READY_FOR_AUDIT` back to `NOT_READY_FOR_AUDIT` without an explicit auditor action. `oldStatus` and `newStatus` can be equal. A newly detected document re-fires this event with both fields set to the item's current status (for example, `READY_FOR_AUDIT`, `ACCEPTED`, or `FLAGGED`). Treat that as a signal that the item's files may have changed and re-fetch its URLs. Do not discard events where the status is unchanged. **Status values:** - `NOT_READY_FOR_AUDIT` -- the item is not yet ready for the auditor; required evidence is missing or does not meet the requirement. - `READY_FOR_AUDIT` -- the customer has provided the evidence and it is ready for the auditor to review. - `ACCEPTED` -- the auditor reviewed the item and accepted it. - `FLAGGED` -- the auditor reviewed the item and flagged an issue for the customer to address; once the customer addresses it the item returns to `READY_FOR_AUDIT`. - `NA` -- the item is not applicable to this audit. A typical lifecycle is `NOT_READY_FOR_AUDIT -> READY_FOR_AUDIT -> ACCEPTED` (or `-> FLAGGED`, which returns to `READY_FOR_AUDIT` once the customer addresses the issue). `INITIALIZED` is an internal status and is never delivered -- `oldStatus` and `newStatus` are always one of the values above. */
1044
464
  export const v1EvidenceStatusChanged: API.OperationMethod<
1045
465
  V1EvidenceStatusChangedRequest,
1046
466
  V1EvidenceStatusChangedResponse,
1047
467
  V1EvidenceStatusChangedError,
1048
468
  VantaOpContext
1049
469
  > = /*@__PURE__*/ API.make(() => ({
1050
- input: V1EvidenceStatusChangedRequest,
1051
- output: V1EvidenceStatusChangedResponse,
470
+ input: __S(104, __c26, 0) as any as S.Schema<V1EvidenceStatusChangedRequest>,
471
+ output: __S(4, __c1, 0) as any as S.Schema<V1EvidenceStatusChangedResponse>,
1052
472
  errors: [UnknownVantaError],
1053
473
  protocol: VantaProtocol,
1054
474
  retry: Retry.Retry,
@@ -1062,8 +482,8 @@ export const v1InformationRequestCommentCreated: API.OperationMethod<
1062
482
  V1InformationRequestCommentCreatedError,
1063
483
  VantaOpContext
1064
484
  > = /*@__PURE__*/ API.make(() => ({
1065
- input: V1InformationRequestCommentCreatedRequest,
1066
- output: V1InformationRequestCommentCreatedResponse,
485
+ input: __S(112, __c28, 0) as any as S.Schema<V1InformationRequestCommentCreatedRequest>,
486
+ output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestCommentCreatedResponse>,
1067
487
  errors: [UnknownVantaError],
1068
488
  protocol: VantaProtocol,
1069
489
  retry: Retry.Retry,
@@ -1077,8 +497,8 @@ export const v1InformationRequestCommentDeleted: API.OperationMethod<
1077
497
  V1InformationRequestCommentDeletedError,
1078
498
  VantaOpContext
1079
499
  > = /*@__PURE__*/ API.make(() => ({
1080
- input: V1InformationRequestCommentDeletedRequest,
1081
- output: V1InformationRequestCommentDeletedResponse,
500
+ input: __S(20, __c5, 0) as any as S.Schema<V1InformationRequestCommentDeletedRequest>,
501
+ output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestCommentDeletedResponse>,
1082
502
  errors: [UnknownVantaError],
1083
503
  protocol: VantaProtocol,
1084
504
  retry: Retry.Retry,
@@ -1092,23 +512,23 @@ export const v1InformationRequestCommentUpdated: API.OperationMethod<
1092
512
  V1InformationRequestCommentUpdatedError,
1093
513
  VantaOpContext
1094
514
  > = /*@__PURE__*/ API.make(() => ({
1095
- input: V1InformationRequestCommentUpdatedRequest,
1096
- output: V1InformationRequestCommentUpdatedResponse,
515
+ input: __S(24, __c6, 0) as any as S.Schema<V1InformationRequestCommentUpdatedRequest>,
516
+ output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestCommentUpdatedResponse>,
1097
517
  errors: [UnknownVantaError],
1098
518
  protocol: VantaProtocol,
1099
519
  retry: Retry.Retry,
1100
520
  }));
1101
521
 
1102
522
  export type V1InformationRequestEvidenceCreatedError = VantaOpError;
1103
- /** Information request evidence created Fires when a piece of evidence is added to an information request. Fires once per piece of evidence — if several pieces are added in a single action, you receive one event per piece. These `v1.information-request.evidence.*` events belong to the Information Request experience and are unrelated to the `v1.evidence.*` classic audit evidence events. */
523
+ /** Information request evidence created Fires when a piece of evidence is added to an information request. Fires once per piece of evidence -- if several pieces are added in a single action, you receive one event per piece. These `v1.information-request.evidence.*` events belong to the Information Request experience and are unrelated to the `v1.evidence.*` classic audit evidence events. */
1104
524
  export const v1InformationRequestEvidenceCreated: API.OperationMethod<
1105
525
  V1InformationRequestEvidenceCreatedRequest,
1106
526
  V1InformationRequestEvidenceCreatedResponse,
1107
527
  V1InformationRequestEvidenceCreatedError,
1108
528
  VantaOpContext
1109
529
  > = /*@__PURE__*/ API.make(() => ({
1110
- input: V1InformationRequestEvidenceCreatedRequest,
1111
- output: V1InformationRequestEvidenceCreatedResponse,
530
+ input: __S(28, __c7, 0) as any as S.Schema<V1InformationRequestEvidenceCreatedRequest>,
531
+ output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestEvidenceCreatedResponse>,
1112
532
  errors: [UnknownVantaError],
1113
533
  protocol: VantaProtocol,
1114
534
  retry: Retry.Retry,
@@ -1122,23 +542,23 @@ export const v1InformationRequestEvidenceDeleted: API.OperationMethod<
1122
542
  V1InformationRequestEvidenceDeletedError,
1123
543
  VantaOpContext
1124
544
  > = /*@__PURE__*/ API.make(() => ({
1125
- input: V1InformationRequestEvidenceDeletedRequest,
1126
- output: V1InformationRequestEvidenceDeletedResponse,
545
+ input: __S(32, __c8, 0) as any as S.Schema<V1InformationRequestEvidenceDeletedRequest>,
546
+ output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestEvidenceDeletedResponse>,
1127
547
  errors: [UnknownVantaError],
1128
548
  protocol: VantaProtocol,
1129
549
  retry: Retry.Retry,
1130
550
  }));
1131
551
 
1132
552
  export type V1InformationRequestStatusChangedError = VantaOpError;
1133
- /** Information request status changed Fires when an information request's approval status changes. This is a status-change event. **Ready-to-review signal:** a `newStatus` of `READY_FOR_AUDIT` means the customer has submitted the information request and it is ready for the auditor to review. **When it fires:** once per information request, each time its status changes between the values below. Not every status transition emits an event. **Status values:** - `NEEDS_EVIDENCE` — the request still needs work from the customer; it is not yet ready for the auditor. - `READY_FOR_AUDIT` — the customer has submitted the request and it is ready for the auditor to review. - `AUDITOR_APPROVED` — the auditor reviewed the request and approved it. - `AUDITOR_FLAGGED` — the auditor flagged the request for the customer to address. A typical lifecycle is `NEEDS_EVIDENCE → READY_FOR_AUDIT → AUDITOR_APPROVED` (or `→ AUDITOR_FLAGGED`). A request can also move from `READY_FOR_AUDIT` back to `NEEDS_EVIDENCE` when the customer takes it back to continue working on it. */
553
+ /** Information request status changed Fires when an information request's approval status changes. This is a status-change event. **Ready-to-review signal:** a `newStatus` of `READY_FOR_AUDIT` means the customer has submitted the information request and it is ready for the auditor to review. **When it fires:** once per information request, each time its status changes between the values below. Not every status transition emits an event. **Status values:** - `NEEDS_EVIDENCE` -- the request still needs work from the customer; it is not yet ready for the auditor. - `READY_FOR_AUDIT` -- the customer has submitted the request and it is ready for the auditor to review. - `AUDITOR_APPROVED` -- the auditor reviewed the request and approved it. - `AUDITOR_FLAGGED` -- the auditor flagged the request for the customer to address. A typical lifecycle is `NEEDS_EVIDENCE -> READY_FOR_AUDIT -> AUDITOR_APPROVED` (or `-> AUDITOR_FLAGGED`). A request can also move from `READY_FOR_AUDIT` back to `NEEDS_EVIDENCE` when the customer takes it back to continue working on it. */
1134
554
  export const v1InformationRequestStatusChanged: API.OperationMethod<
1135
555
  V1InformationRequestStatusChangedRequest,
1136
556
  V1InformationRequestStatusChangedResponse,
1137
557
  V1InformationRequestStatusChangedError,
1138
558
  VantaOpContext
1139
559
  > = /*@__PURE__*/ API.make(() => ({
1140
- input: V1InformationRequestStatusChangedRequest,
1141
- output: V1InformationRequestStatusChangedResponse,
560
+ input: __S(36, __c9, 0) as any as S.Schema<V1InformationRequestStatusChangedRequest>,
561
+ output: __S(4, __c1, 0) as any as S.Schema<V1InformationRequestStatusChangedResponse>,
1142
562
  errors: [UnknownVantaError],
1143
563
  protocol: VantaProtocol,
1144
564
  retry: Retry.Retry,
@@ -1152,8 +572,8 @@ export const v1QuestionnaireCreated: API.OperationMethod<
1152
572
  V1QuestionnaireCreatedError,
1153
573
  VantaOpContext
1154
574
  > = /*@__PURE__*/ API.make(() => ({
1155
- input: V1QuestionnaireCreatedRequest,
1156
- output: V1QuestionnaireCreatedResponse,
575
+ input: __S(40, __c10, 0) as any as S.Schema<V1QuestionnaireCreatedRequest>,
576
+ output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireCreatedResponse>,
1157
577
  errors: [UnknownVantaError],
1158
578
  protocol: VantaProtocol,
1159
579
  retry: Retry.Retry,
@@ -1167,8 +587,8 @@ export const v1QuestionnaireDeleted: API.OperationMethod<
1167
587
  V1QuestionnaireDeletedError,
1168
588
  VantaOpContext
1169
589
  > = /*@__PURE__*/ API.make(() => ({
1170
- input: V1QuestionnaireDeletedRequest,
1171
- output: V1QuestionnaireDeletedResponse,
590
+ input: __S(44, __c11, 0) as any as S.Schema<V1QuestionnaireDeletedRequest>,
591
+ output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireDeletedResponse>,
1172
592
  errors: [UnknownVantaError],
1173
593
  protocol: VantaProtocol,
1174
594
  retry: Retry.Retry,
@@ -1182,8 +602,8 @@ export const v1QuestionnaireExportCompleted: API.OperationMethod<
1182
602
  V1QuestionnaireExportCompletedError,
1183
603
  VantaOpContext
1184
604
  > = /*@__PURE__*/ API.make(() => ({
1185
- input: V1QuestionnaireExportCompletedRequest,
1186
- output: V1QuestionnaireExportCompletedResponse,
605
+ input: __S(49, __c12, 1) as any as S.Schema<V1QuestionnaireExportCompletedRequest>,
606
+ output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireExportCompletedResponse>,
1187
607
  errors: [UnknownVantaError],
1188
608
  protocol: VantaProtocol,
1189
609
  retry: Retry.Retry,
@@ -1197,8 +617,8 @@ export const v1QuestionnaireExportFailed: API.OperationMethod<
1197
617
  V1QuestionnaireExportFailedError,
1198
618
  VantaOpContext
1199
619
  > = /*@__PURE__*/ API.make(() => ({
1200
- input: V1QuestionnaireExportFailedRequest,
1201
- output: V1QuestionnaireExportFailedResponse,
620
+ input: __S(53, __c13, 1) as any as S.Schema<V1QuestionnaireExportFailedRequest>,
621
+ output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireExportFailedResponse>,
1202
622
  errors: [UnknownVantaError],
1203
623
  protocol: VantaProtocol,
1204
624
  retry: Retry.Retry,
@@ -1212,8 +632,8 @@ export const v1QuestionnaireStatusChanged: API.OperationMethod<
1212
632
  V1QuestionnaireStatusChangedError,
1213
633
  VantaOpContext
1214
634
  > = /*@__PURE__*/ API.make(() => ({
1215
- input: V1QuestionnaireStatusChangedRequest,
1216
- output: V1QuestionnaireStatusChangedResponse,
635
+ input: __S(57, __c14, 1) as any as S.Schema<V1QuestionnaireStatusChangedRequest>,
636
+ output: __S(4, __c1, 0) as any as S.Schema<V1QuestionnaireStatusChangedResponse>,
1217
637
  errors: [UnknownVantaError],
1218
638
  protocol: VantaProtocol,
1219
639
  retry: Retry.Retry,
@@ -1227,8 +647,8 @@ export const v1TrustCenterAccessRequestApproved: API.OperationMethod<
1227
647
  V1TrustCenterAccessRequestApprovedError,
1228
648
  VantaOpContext
1229
649
  > = /*@__PURE__*/ API.make(() => ({
1230
- input: V1TrustCenterAccessRequestApprovedRequest,
1231
- output: V1TrustCenterAccessRequestApprovedResponse,
650
+ input: __S(64, __c16, 0) as any as S.Schema<V1TrustCenterAccessRequestApprovedRequest>,
651
+ output: __S(4, __c1, 0) as any as S.Schema<V1TrustCenterAccessRequestApprovedResponse>,
1232
652
  errors: [UnknownVantaError],
1233
653
  protocol: VantaProtocol,
1234
654
  retry: Retry.Retry,
@@ -1242,8 +662,8 @@ export const v1TrustCenterAccessRequestDenied: API.OperationMethod<
1242
662
  V1TrustCenterAccessRequestDeniedError,
1243
663
  VantaOpContext
1244
664
  > = /*@__PURE__*/ API.make(() => ({
1245
- input: V1TrustCenterAccessRequestDeniedRequest,
1246
- output: V1TrustCenterAccessRequestDeniedResponse,
665
+ input: __S(72, __c18, 0) as any as S.Schema<V1TrustCenterAccessRequestDeniedRequest>,
666
+ output: __S(4, __c1, 0) as any as S.Schema<V1TrustCenterAccessRequestDeniedResponse>,
1247
667
  errors: [UnknownVantaError],
1248
668
  protocol: VantaProtocol,
1249
669
  retry: Retry.Retry,
@@ -1257,8 +677,8 @@ export const v1TrustCenterAccessRequestReceived: API.OperationMethod<
1257
677
  V1TrustCenterAccessRequestReceivedError,
1258
678
  VantaOpContext
1259
679
  > = /*@__PURE__*/ API.make(() => ({
1260
- input: V1TrustCenterAccessRequestReceivedRequest,
1261
- output: V1TrustCenterAccessRequestReceivedResponse,
680
+ input: __S(76, __c19, 0) as any as S.Schema<V1TrustCenterAccessRequestReceivedRequest>,
681
+ output: __S(4, __c1, 0) as any as S.Schema<V1TrustCenterAccessRequestReceivedResponse>,
1262
682
  errors: [UnknownVantaError],
1263
683
  protocol: VantaProtocol,
1264
684
  retry: Retry.Retry,
@@ -1272,9 +692,383 @@ export const v1VendorDecisionCreated: API.OperationMethod<
1272
692
  V1VendorDecisionCreatedError,
1273
693
  VantaOpContext
1274
694
  > = /*@__PURE__*/ API.make(() => ({
1275
- input: V1VendorDecisionCreatedRequest,
1276
- output: V1VendorDecisionCreatedResponse,
695
+ input: __S(82, __c20, 2) as any as S.Schema<V1VendorDecisionCreatedRequest>,
696
+ output: __S(4, __c1, 0) as any as S.Schema<V1VendorDecisionCreatedResponse>,
1277
697
  errors: [UnknownVantaError],
1278
698
  protocol: VantaProtocol,
1279
699
  retry: Retry.Retry,
1280
700
  }));
701
+
702
+ // Schema builders: each runs one schema initializer, on that schema's first use.
703
+ function __c0(j: number): any {
704
+ switch (j) {
705
+ case 0:
706
+ return S.suspend(() =>
707
+ S.Struct({
708
+ control: __S(8, __c2, 0),
709
+ comment: __S(12, __c3, 0),
710
+ }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.created", code: 200 })),
711
+ ).annotate({ identifier: "V1ControlCommentCreatedRequest" });
712
+ }
713
+ }
714
+ function __c1(j: number): any {
715
+ switch (j) {
716
+ case 0:
717
+ return S.suspend(() => S.Struct({})).annotate({
718
+ identifier: "V1ControlCommentCreatedResponse",
719
+ });
720
+ }
721
+ }
722
+ function __c2(j: number): any {
723
+ switch (j) {
724
+ case 0:
725
+ return S.suspend(() =>
726
+ S.Struct({
727
+ id: S.String,
728
+ auditId: S.String,
729
+ }),
730
+ ).annotate({ identifier: "V1ControlCommentCreatedRequestControl" });
731
+ }
732
+ }
733
+ function __c3(j: number): any {
734
+ switch (j) {
735
+ case 0:
736
+ return S.suspend(() =>
737
+ S.Struct({
738
+ id: S.String,
739
+ }),
740
+ ).annotate({ identifier: "V1ControlCommentCreatedRequestComment" });
741
+ }
742
+ }
743
+ function __c4(j: number): any {
744
+ switch (j) {
745
+ case 0:
746
+ return S.suspend(() =>
747
+ S.Struct({
748
+ control: __S(8, __c2, 0),
749
+ comment: __S(12, __c3, 0),
750
+ }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.deleted", code: 200 })),
751
+ ).annotate({ identifier: "V1ControlCommentDeletedRequest" });
752
+ }
753
+ }
754
+ function __c5(j: number): any {
755
+ switch (j) {
756
+ case 0:
757
+ return S.suspend(() =>
758
+ S.Struct({
759
+ informationRequest: __S(8, __c2, 0),
760
+ comment: __S(12, __c3, 0),
761
+ }).pipe(
762
+ T.Http({ method: "POST", uri: "/v1.information-request.comment.deleted", code: 200 }),
763
+ ),
764
+ ).annotate({ identifier: "V1InformationRequestCommentDeletedRequest" });
765
+ }
766
+ }
767
+ function __c6(j: number): any {
768
+ switch (j) {
769
+ case 0:
770
+ return S.suspend(() =>
771
+ S.Struct({
772
+ informationRequest: __S(8, __c2, 0),
773
+ comment: __S(12, __c3, 0),
774
+ }).pipe(
775
+ T.Http({ method: "POST", uri: "/v1.information-request.comment.updated", code: 200 }),
776
+ ),
777
+ ).annotate({ identifier: "V1InformationRequestCommentUpdatedRequest" });
778
+ }
779
+ }
780
+ function __c7(j: number): any {
781
+ switch (j) {
782
+ case 0:
783
+ return S.suspend(() =>
784
+ S.Struct({
785
+ informationRequest: __S(8, __c2, 0),
786
+ evidence: __S(12, __c3, 0),
787
+ }).pipe(
788
+ T.Http({ method: "POST", uri: "/v1.information-request.evidence.created", code: 200 }),
789
+ ),
790
+ ).annotate({ identifier: "V1InformationRequestEvidenceCreatedRequest" });
791
+ }
792
+ }
793
+ function __c8(j: number): any {
794
+ switch (j) {
795
+ case 0:
796
+ return S.suspend(() =>
797
+ S.Struct({
798
+ informationRequest: __S(8, __c2, 0),
799
+ evidence: __S(12, __c3, 0),
800
+ }).pipe(
801
+ T.Http({ method: "POST", uri: "/v1.information-request.evidence.deleted", code: 200 }),
802
+ ),
803
+ ).annotate({ identifier: "V1InformationRequestEvidenceDeletedRequest" });
804
+ }
805
+ }
806
+ function __c9(j: number): any {
807
+ switch (j) {
808
+ case 0:
809
+ return S.suspend(() =>
810
+ S.Struct({
811
+ informationRequest: __S(108, __c27, 0),
812
+ }).pipe(
813
+ T.Http({ method: "POST", uri: "/v1.information-request.status-changed", code: 200 }),
814
+ ),
815
+ ).annotate({ identifier: "V1InformationRequestStatusChangedRequest" });
816
+ }
817
+ }
818
+ function __c10(j: number): any {
819
+ switch (j) {
820
+ case 0:
821
+ return S.suspend(() =>
822
+ S.Struct({
823
+ questionnaire: __S(12, __c3, 0),
824
+ }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.created", code: 200 })),
825
+ ).annotate({ identifier: "V1QuestionnaireCreatedRequest" });
826
+ }
827
+ }
828
+ function __c11(j: number): any {
829
+ switch (j) {
830
+ case 0:
831
+ return S.suspend(() =>
832
+ S.Struct({
833
+ questionnaire: __S(12, __c3, 0),
834
+ }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.deleted", code: 200 })),
835
+ ).annotate({ identifier: "V1QuestionnaireDeletedRequest" });
836
+ }
837
+ }
838
+ function __c12(j: number): any {
839
+ switch (j) {
840
+ case 0:
841
+ return S.suspend(() =>
842
+ S.Struct({
843
+ id: S.String,
844
+ format: S.String,
845
+ requestedAt: S.String,
846
+ completedAt: S.String,
847
+ }),
848
+ ).annotate({ identifier: "V1QuestionnaireExportCompletedRequestExport" });
849
+ case 1:
850
+ return S.suspend(() =>
851
+ S.Struct({
852
+ questionnaire: __S(12, __c3, 0),
853
+ export: __S(48, __c12, 0),
854
+ }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-completed", code: 200 })),
855
+ ).annotate({ identifier: "V1QuestionnaireExportCompletedRequest" });
856
+ }
857
+ }
858
+ function __c13(j: number): any {
859
+ switch (j) {
860
+ case 0:
861
+ return S.suspend(() =>
862
+ S.Struct({
863
+ id: S.String,
864
+ format: S.String,
865
+ requestedAt: S.String,
866
+ failedAt: S.String,
867
+ reason: S.String,
868
+ }),
869
+ ).annotate({ identifier: "V1QuestionnaireExportFailedRequestExport" });
870
+ case 1:
871
+ return S.suspend(() =>
872
+ S.Struct({
873
+ questionnaire: __S(12, __c3, 0),
874
+ export: __S(52, __c13, 0),
875
+ }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.export-failed", code: 200 })),
876
+ ).annotate({ identifier: "V1QuestionnaireExportFailedRequest" });
877
+ }
878
+ }
879
+ function __c14(j: number): any {
880
+ switch (j) {
881
+ case 0:
882
+ return S.suspend(() =>
883
+ S.Struct({
884
+ id: S.String,
885
+ status: S.String,
886
+ }),
887
+ ).annotate({ identifier: "V1QuestionnaireStatusChangedRequestQuestionnaire" });
888
+ case 1:
889
+ return S.suspend(() =>
890
+ S.Struct({
891
+ questionnaire: __S(56, __c14, 0),
892
+ }).pipe(T.Http({ method: "POST", uri: "/v1.questionnaire.status-changed", code: 200 })),
893
+ ).annotate({ identifier: "V1QuestionnaireStatusChangedRequest" });
894
+ }
895
+ }
896
+ function __c15(j: number): any {
897
+ switch (j) {
898
+ case 0:
899
+ return S.suspend(() =>
900
+ S.Struct({
901
+ control: __S(8, __c2, 0),
902
+ comment: __S(12, __c3, 0),
903
+ }).pipe(T.Http({ method: "POST", uri: "/v1.control.comment.updated", code: 200 })),
904
+ ).annotate({ identifier: "V1ControlCommentUpdatedRequest" });
905
+ }
906
+ }
907
+ function __c16(j: number): any {
908
+ switch (j) {
909
+ case 0:
910
+ return S.suspend(() =>
911
+ S.Struct({
912
+ trustCenter: __S(68, __c17, 0),
913
+ accessRequest: __S(12, __c3, 0),
914
+ viewer: __S(12, __c3, 0),
915
+ }).pipe(
916
+ T.Http({ method: "POST", uri: "/v1.trust-center.access-request.approved", code: 200 }),
917
+ ),
918
+ ).annotate({ identifier: "V1TrustCenterAccessRequestApprovedRequest" });
919
+ }
920
+ }
921
+ function __c17(j: number): any {
922
+ switch (j) {
923
+ case 0:
924
+ return S.suspend(() =>
925
+ S.Struct({
926
+ slugId: S.String,
927
+ }),
928
+ ).annotate({ identifier: "V1TrustCenterAccessRequestApprovedRequestTrustCenter" });
929
+ }
930
+ }
931
+ function __c18(j: number): any {
932
+ switch (j) {
933
+ case 0:
934
+ return S.suspend(() =>
935
+ S.Struct({
936
+ trustCenter: __S(68, __c17, 0),
937
+ accessRequest: __S(12, __c3, 0),
938
+ }).pipe(
939
+ T.Http({ method: "POST", uri: "/v1.trust-center.access-request.denied", code: 200 }),
940
+ ),
941
+ ).annotate({ identifier: "V1TrustCenterAccessRequestDeniedRequest" });
942
+ }
943
+ }
944
+ function __c19(j: number): any {
945
+ switch (j) {
946
+ case 0:
947
+ return S.suspend(() =>
948
+ S.Struct({
949
+ trustCenter: __S(68, __c17, 0),
950
+ accessRequest: __S(12, __c3, 0),
951
+ }).pipe(
952
+ T.Http({ method: "POST", uri: "/v1.trust-center.access-request.received", code: 200 }),
953
+ ),
954
+ ).annotate({ identifier: "V1TrustCenterAccessRequestReceivedRequest" });
955
+ }
956
+ }
957
+ function __c20(j: number): any {
958
+ switch (j) {
959
+ case 0:
960
+ return S.suspend(() =>
961
+ S.Struct({
962
+ status: S.String,
963
+ lastUpdatedAt: S.String,
964
+ comments: S.optional(S.String),
965
+ }),
966
+ ).annotate({ identifier: "V1VendorDecisionCreatedRequestVendorDecision" });
967
+ case 1:
968
+ return S.suspend(() =>
969
+ S.Struct({
970
+ id: S.String,
971
+ decision: __S(80, __c20, 0),
972
+ }),
973
+ ).annotate({ identifier: "V1VendorDecisionCreatedRequestVendor" });
974
+ case 2:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ vendor: __S(81, __c20, 1),
978
+ }).pipe(T.Http({ method: "POST", uri: "/v1.vendor.decision.created", code: 200 })),
979
+ ).annotate({ identifier: "V1VendorDecisionCreatedRequest" });
980
+ }
981
+ }
982
+ function __c21(j: number): any {
983
+ switch (j) {
984
+ case 0:
985
+ return S.suspend(() =>
986
+ S.Struct({
987
+ evidence: __S(8, __c2, 0),
988
+ comment: __S(12, __c3, 0),
989
+ }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.created", code: 200 })),
990
+ ).annotate({ identifier: "V1EvidenceCommentCreatedRequest" });
991
+ }
992
+ }
993
+ function __c22(j: number): any {
994
+ switch (j) {
995
+ case 0:
996
+ return S.suspend(() =>
997
+ S.Struct({
998
+ evidence: __S(8, __c2, 0),
999
+ comment: __S(12, __c3, 0),
1000
+ }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.deleted", code: 200 })),
1001
+ ).annotate({ identifier: "V1EvidenceCommentDeletedRequest" });
1002
+ }
1003
+ }
1004
+ function __c23(j: number): any {
1005
+ switch (j) {
1006
+ case 0:
1007
+ return S.suspend(() =>
1008
+ S.Struct({
1009
+ evidence: __S(8, __c2, 0),
1010
+ comment: __S(12, __c3, 0),
1011
+ }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.comment.updated", code: 200 })),
1012
+ ).annotate({ identifier: "V1EvidenceCommentUpdatedRequest" });
1013
+ }
1014
+ }
1015
+ function __c24(j: number): any {
1016
+ switch (j) {
1017
+ case 0:
1018
+ return S.suspend(() =>
1019
+ S.Struct({
1020
+ evidence: __S(8, __c2, 0),
1021
+ }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.created", code: 200 })),
1022
+ ).annotate({ identifier: "V1EvidenceCreatedRequest" });
1023
+ }
1024
+ }
1025
+ function __c25(j: number): any {
1026
+ switch (j) {
1027
+ case 0:
1028
+ return S.suspend(() =>
1029
+ S.Struct({
1030
+ evidence: __S(8, __c2, 0),
1031
+ }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.deleted", code: 200 })),
1032
+ ).annotate({ identifier: "V1EvidenceDeletedRequest" });
1033
+ }
1034
+ }
1035
+ function __c26(j: number): any {
1036
+ switch (j) {
1037
+ case 0:
1038
+ return S.suspend(() =>
1039
+ S.Struct({
1040
+ evidence: __S(108, __c27, 0),
1041
+ }).pipe(T.Http({ method: "POST", uri: "/v1.evidence.status-changed", code: 200 })),
1042
+ ).annotate({ identifier: "V1EvidenceStatusChangedRequest" });
1043
+ }
1044
+ }
1045
+ function __c27(j: number): any {
1046
+ switch (j) {
1047
+ case 0:
1048
+ return S.suspend(() =>
1049
+ S.Struct({
1050
+ id: S.String,
1051
+ auditId: S.String,
1052
+ oldStatus: S.String,
1053
+ newStatus: S.String,
1054
+ }),
1055
+ ).annotate({ identifier: "V1EvidenceStatusChangedRequestEvidence" });
1056
+ }
1057
+ }
1058
+ function __c28(j: number): any {
1059
+ switch (j) {
1060
+ case 0:
1061
+ return S.suspend(() =>
1062
+ S.Struct({
1063
+ informationRequest: __S(8, __c2, 0),
1064
+ comment: __S(12, __c3, 0),
1065
+ }).pipe(
1066
+ T.Http({ method: "POST", uri: "/v1.information-request.comment.created", code: 200 }),
1067
+ ),
1068
+ ).annotate({ identifier: "V1InformationRequestCommentCreatedRequest" });
1069
+ }
1070
+ }
1071
+ // Schema table: entry i is schema j of builder f, made on first reach.
1072
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1073
+ return (__s[i] ??= __L.at(f, j));
1074
+ }