@distilled.cloud/vanta 1.0.0-rc.12 → 1.0.0-rc.14

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 (46) hide show
  1. package/README.md +34 -0
  2. package/lib/credentials.d.ts +2 -2
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +3 -3
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +1 -1
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +3 -3
  10. package/lib/index.d.ts.map +1 -1
  11. package/lib/index.js +3 -3
  12. package/lib/index.js.map +1 -1
  13. package/lib/protocol.d.ts +5 -5
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +4 -7
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +1 -1
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/auditor_api.d.ts +97 -63
  22. package/lib/services/auditor_api.d.ts.map +1 -1
  23. package/lib/services/auditor_api.js +160 -373
  24. package/lib/services/auditor_api.js.map +1 -1
  25. package/lib/services/build_integrations.d.ts +82 -82
  26. package/lib/services/build_integrations.d.ts.map +1 -1
  27. package/lib/services/build_integrations.js +168 -309
  28. package/lib/services/build_integrations.js.map +1 -1
  29. package/lib/services/manage_vanta.d.ts +340 -38
  30. package/lib/services/manage_vanta.d.ts.map +1 -1
  31. package/lib/services/manage_vanta.js +676 -1287
  32. package/lib/services/manage_vanta.js.map +1 -1
  33. package/lib/services/webhooks.d.ts +7 -7
  34. package/lib/services/webhooks.d.ts.map +1 -1
  35. package/lib/services/webhooks.js +54 -142
  36. package/lib/services/webhooks.js.map +1 -1
  37. package/package.json +13 -11
  38. package/src/credentials.ts +7 -8
  39. package/src/errors.ts +5 -8
  40. package/src/index.ts +3 -7
  41. package/src/protocol.ts +28 -32
  42. package/src/retry.ts +2 -8
  43. package/src/services/auditor_api.ts +721 -1022
  44. package/src/services/build_integrations.ts +788 -1094
  45. package/src/services/manage_vanta.ts +2504 -3322
  46. package/src/services/webhooks.ts +309 -483
@@ -1,10 +1,10 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
2
3
  import * as S from "@distilled.cloud/core/schema";
3
- import * as API from "@distilled.cloud/core/api";
4
- import * as T from "../traits.js";
5
- import { VantaProtocol, } from "../protocol.js";
6
4
  import { UnknownVantaError } from "../errors.js";
5
+ import { VantaProtocol } from "../protocol.js";
7
6
  import * as Retry from "../retry.js";
7
+ import * as T from "../traits.js";
8
8
  export const AcceptInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
9
  auditId: S.String.pipe(T.Label()),
10
10
  requestId: S.String.pipe(T.Label()),
@@ -17,34 +17,34 @@ export const AcceptInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend((
17
17
  identifier: "AcceptInformationRequestEvidenceRequest",
18
18
  });
19
19
  export const InformationRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(S.String);
20
+ export const InformationRequestLinkedControlIdsList = /*@__PURE__*/ S.Array(S.String);
20
21
  export const InformationRequestApprovalStatus = S.String;
21
22
  export const InformationRequestCadence = S.String;
22
23
  export const InformationRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
24
+ export const InformationRequestSegmentIdsList = /*@__PURE__*/ S.Array(S.String);
23
25
  export const InformationRequestType = S.String;
24
26
  export const ResourceOwnerCase0Type = S.String;
25
27
  export const ResourceOwnerCase0 = /*@__PURE__*/ S.suspend(() => S.Struct({
26
28
  displayName: S.String,
27
29
  id: S.String,
28
30
  type: ResourceOwnerCase0Type,
29
- })).annotate({
30
- identifier: "ResourceOwnerCase0",
31
- });
31
+ })).annotate({ identifier: "ResourceOwnerCase0" });
32
32
  export const ResourceOwnerCase1Type = S.String;
33
33
  export const ResourceOwnerCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
34
34
  displayName: S.String,
35
35
  id: S.String,
36
36
  type: ResourceOwnerCase1Type,
37
- })).annotate({
38
- identifier: "ResourceOwnerCase1",
39
- });
37
+ })).annotate({ identifier: "ResourceOwnerCase1" });
40
38
  export const ResourceOwner = S.Unknown;
41
39
  export const InformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
42
40
  id: S.String,
43
41
  uniqueId: S.String,
44
42
  additionalControlIds: InformationRequestAdditionalControlIdsList,
43
+ linkedControlIds: InformationRequestLinkedControlIdsList,
45
44
  approvalStatus: InformationRequestApprovalStatus,
46
45
  cadence: S.NullOr(InformationRequestCadence),
47
46
  frameworkCodes: InformationRequestFrameworkCodesList,
47
+ segmentIds: InformationRequestSegmentIdsList,
48
48
  description: S.NullOr(S.String),
49
49
  dueDate: S.NullOr(S.String),
50
50
  evidenceCaptureDate: S.NullOr(S.String),
@@ -55,16 +55,12 @@ export const InformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
55
55
  modificationDate: S.String,
56
56
  deletionDate: S.NullOr(S.String),
57
57
  ownerAssignment: S.NullOr(ResourceOwner),
58
- })).annotate({
59
- identifier: "InformationRequest",
60
- });
58
+ })).annotate({ identifier: "InformationRequest" });
61
59
  export const CreateAuditorRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
62
60
  email: S.String,
63
61
  givenName: S.String,
64
62
  familyName: S.String,
65
- }).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 }))).annotate({
66
- identifier: "CreateAuditorRequest",
67
- });
63
+ }).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 }))).annotate({ identifier: "CreateAuditorRequest" });
68
64
  export const Auditor = /*@__PURE__*/ S.suspend(() => S.Struct({
69
65
  id: S.String,
70
66
  organizationId: S.String,
@@ -101,11 +97,7 @@ export const CreateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.St
101
97
  text: S.String,
102
98
  email: S.String,
103
99
  creationDate: S.String,
104
- }).pipe(T.Http({
105
- method: "POST",
106
- uri: "/audits/{auditId}/controls/{controlId}/comments",
107
- code: 200,
108
- }))).annotate({
100
+ }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/controls/{controlId}/comments", code: 200 }))).annotate({
109
101
  identifier: "CreateCommentForControlRequest",
110
102
  });
111
103
  export const AuditControlComment = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -116,11 +108,8 @@ export const AuditControlComment = /*@__PURE__*/ S.suspend(() => S.Struct({
116
108
  deletionDate: S.NullOr(S.String),
117
109
  email: S.NullOr(S.String),
118
110
  authorName: S.NullOr(S.String),
119
- })).annotate({
120
- identifier: "AuditControlComment",
121
- });
122
- export const CreateCommentForInformationRequestRequest =
123
- /*@__PURE__*/ S.suspend(() => S.Struct({
111
+ })).annotate({ identifier: "AuditControlComment" });
112
+ export const CreateCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
124
113
  auditId: S.String.pipe(T.Label()),
125
114
  requestId: S.String.pipe(T.Label()),
126
115
  text: S.String,
@@ -150,9 +139,7 @@ export const FrameworkSectionFrameworkId = S.Unknown;
150
139
  export const FrameworkSection = /*@__PURE__*/ S.suspend(() => S.Struct({
151
140
  frameworkId: FrameworkSectionFrameworkId,
152
141
  sectionId: S.String,
153
- })).annotate({
154
- identifier: "FrameworkSection",
155
- });
142
+ })).annotate({ identifier: "FrameworkSection" });
156
143
  export const CreateCustomControlRequestSectionsList = /*@__PURE__*/ S.Array(FrameworkSection);
157
144
  export const GdprRole = S.String;
158
145
  export const CreateCustomControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -164,15 +151,11 @@ export const CreateCustomControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct
164
151
  category: ControlDomain,
165
152
  sections: S.optional(S.NullOr(CreateCustomControlRequestSectionsList)),
166
153
  role: S.optional(S.NullOr(GdprRole)),
167
- }).pipe(T.Http({
168
- method: "POST",
169
- uri: "/audits/{auditId}/controls/custom-controls",
170
- code: 200,
171
- }))).annotate({
154
+ }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/controls/custom-controls", code: 200 }))).annotate({
172
155
  identifier: "CreateCustomControlRequest",
173
156
  });
174
157
  export const ControlSource = S.String;
175
- export const ControlDomainsList = /*@__PURE__*/ S.Array(S.String);
158
+ export const AuditorApiControlDomainsList = /*@__PURE__*/ S.Array(S.String);
176
159
  export const Owner = /*@__PURE__*/ S.suspend(() => S.Struct({
177
160
  id: S.String,
178
161
  displayName: S.String,
@@ -184,22 +167,21 @@ export const CustomField = /*@__PURE__*/ S.suspend(() => S.Struct({
184
167
  label: S.String,
185
168
  value: CustomFieldValue,
186
169
  })).annotate({ identifier: "CustomField" });
187
- export const ControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
188
- export const Control = /*@__PURE__*/ S.suspend(() => S.Struct({
170
+ export const AuditorApiControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
171
+ export const AuditorApiControl = /*@__PURE__*/ S.suspend(() => S.Struct({
189
172
  id: S.String,
190
173
  externalId: S.NullOr(S.String),
191
174
  name: S.String,
192
175
  description: S.String,
193
176
  source: ControlSource,
194
- domains: ControlDomainsList,
177
+ domains: AuditorApiControlDomainsList,
195
178
  owner: S.NullOr(Owner),
196
179
  role: S.optional(S.NullOr(S.String)),
197
- customFields: ControlCustomFieldsList,
180
+ customFields: AuditorApiControlCustomFieldsList,
198
181
  creationDate: S.NullOr(S.String),
199
182
  modificationDate: S.NullOr(S.String),
200
- })).annotate({ identifier: "Control" });
201
- export const CreateCustomEvidenceRequestRequestControlIdsList =
202
- /*@__PURE__*/ S.Array(S.String);
183
+ })).annotate({ identifier: "AuditorApiControl" });
184
+ export const CreateCustomEvidenceRequestRequestControlIdsList = /*@__PURE__*/ S.Array(S.String);
203
185
  export const RecurrenceDuration = S.String;
204
186
  export const CreateCustomEvidenceRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
205
187
  auditId: S.String.pipe(T.Label()),
@@ -226,13 +208,9 @@ export const CustomEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
226
208
  cadence: RecurrenceDuration,
227
209
  reminderWindow: RecurrenceDuration,
228
210
  isRestricted: S.Boolean,
229
- })).annotate({
230
- identifier: "CustomEvidenceRequest",
231
- });
232
- export const CreateInformationRequestRequestFrameworkCodesList =
233
- /*@__PURE__*/ S.Array(S.String);
234
- export const CreateInformationRequestRequestAdditionalControlIdsList =
235
- /*@__PURE__*/ S.Array(S.String);
211
+ })).annotate({ identifier: "CustomEvidenceRequest" });
212
+ export const CreateInformationRequestRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
213
+ export const CreateInformationRequestRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(S.String);
236
214
  export const CreateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
237
215
  auditId: S.String.pipe(T.Label()),
238
216
  uniqueId: S.String,
@@ -244,11 +222,7 @@ export const CreateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.S
244
222
  dueDate: S.optional(S.NullOr(S.String)),
245
223
  evidenceCaptureDate: S.optional(S.NullOr(S.String)),
246
224
  additionalControlIds: S.optional(CreateInformationRequestRequestAdditionalControlIdsList),
247
- }).pipe(T.Http({
248
- method: "POST",
249
- uri: "/audits/{auditId}/information-requests",
250
- code: 200,
251
- }))).annotate({
225
+ }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/information-requests", code: 200 }))).annotate({
252
226
  identifier: "CreateInformationRequestRequest",
253
227
  });
254
228
  export const DeleteCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -263,11 +237,8 @@ export const DeleteCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.St
263
237
  }))).annotate({
264
238
  identifier: "DeleteCommentForControlRequest",
265
239
  });
266
- export const DeleteCommentForControlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
267
- identifier: "DeleteCommentForControlResponse",
268
- });
269
- export const DeleteCommentForInformationRequestRequest =
270
- /*@__PURE__*/ S.suspend(() => S.Struct({
240
+ export const DeleteCommentForControlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteCommentForControlResponse" });
241
+ export const DeleteCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
271
242
  auditId: S.String.pipe(T.Label()),
272
243
  requestId: S.String.pipe(T.Label()),
273
244
  commentId: S.String.pipe(T.Label()),
@@ -279,8 +250,7 @@ export const DeleteCommentForInformationRequestRequest =
279
250
  }))).annotate({
280
251
  identifier: "DeleteCommentForInformationRequestRequest",
281
252
  });
282
- export const DeleteCommentForInformationRequestResponse =
283
- /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
253
+ export const DeleteCommentForInformationRequestResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
284
254
  identifier: "DeleteCommentForInformationRequestResponse",
285
255
  });
286
256
  export const DeleteInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -304,11 +274,10 @@ export const DuplicateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
304
274
  auditEndDate: S.String,
305
275
  earlyAccessStartsAt: S.String,
306
276
  allowAuditorEmails: DuplicateRequestAllowAuditorEmailsList,
307
- }).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 }))).annotate({
308
- identifier: "DuplicateRequest",
309
- });
277
+ }).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 }))).annotate({ identifier: "DuplicateRequest" });
310
278
  export const AuditAllowAuditorEmailsList = /*@__PURE__*/ S.Array(S.String);
311
279
  export const AuditFocus = S.String;
280
+ export const AuditIrlGenerationStatus = S.String;
312
281
  export const AuditAuditorRequestListMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
313
282
  requestsSharedWithCustomer: S.NullOr(S.String),
314
283
  })).annotate({
@@ -316,27 +285,19 @@ export const AuditAuditorRequestListMetadata = /*@__PURE__*/ S.suspend(() => S.S
316
285
  });
317
286
  export const AuditSegmentKind = S.String;
318
287
  export const AuditSegmentFramework = /*@__PURE__*/ S.suspend(() => S.Struct({
319
- id: S.String,
320
288
  displayName: S.String,
321
- shortName: S.String,
322
- })).annotate({
323
- identifier: "AuditSegmentFramework",
324
- });
289
+ })).annotate({ identifier: "AuditSegmentFramework" });
325
290
  export const AuditSegmentAssociation = /*@__PURE__*/ S.suspend(() => S.Struct({
326
291
  id: S.String,
327
292
  displayName: S.String,
328
- })).annotate({
329
- identifier: "AuditSegmentAssociation",
330
- });
293
+ })).annotate({ identifier: "AuditSegmentAssociation" });
331
294
  export const AuditSoc2ReportType = S.String;
332
295
  export const AuditSoc2Tsc = S.String;
333
296
  export const AuditSoc2DeliverableTscsList = /*@__PURE__*/ S.Array(AuditSoc2Tsc);
334
297
  export const AuditSoc2Deliverable = /*@__PURE__*/ S.suspend(() => S.Struct({
335
298
  reportType: AuditSoc2ReportType,
336
299
  tscs: AuditSoc2DeliverableTscsList,
337
- })).annotate({
338
- identifier: "AuditSoc2Deliverable",
339
- });
300
+ })).annotate({ identifier: "AuditSoc2Deliverable" });
340
301
  export const AuditSegment = /*@__PURE__*/ S.suspend(() => S.Struct({
341
302
  id: S.String,
342
303
  kind: AuditSegmentKind,
@@ -364,6 +325,7 @@ export const Audit = /*@__PURE__*/ S.suspend(() => S.Struct({
364
325
  modificationDate: S.NullOr(S.String),
365
326
  completionDate: S.NullOr(S.String),
366
327
  auditFocus: AuditFocus,
328
+ irlGenerationStatus: S.NullOr(AuditIrlGenerationStatus),
367
329
  auditorRequestListMetadata: S.optional(AuditAuditorRequestListMetadata),
368
330
  segments: AuditSegmentsList,
369
331
  })).annotate({ identifier: "Audit" });
@@ -381,28 +343,18 @@ export const FlagInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(()
381
343
  });
382
344
  export const GetAuditRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
383
345
  auditId: S.String.pipe(T.Label()),
384
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}", code: 200 }))).annotate({
385
- identifier: "GetAuditRequest",
386
- });
346
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}", code: 200 }))).annotate({ identifier: "GetAuditRequest" });
387
347
  export const GetAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
388
348
  auditId: S.String.pipe(T.Label()),
389
349
  auditEvidenceId: S.String.pipe(T.Label()),
390
- }).pipe(T.Http({
391
- method: "GET",
392
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}",
393
- code: 200,
394
- }))).annotate({
395
- identifier: "GetAuditEvidenceRequest",
396
- });
350
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence/{auditEvidenceId}", code: 200 }))).annotate({ identifier: "GetAuditEvidenceRequest" });
397
351
  export const AuditEvidenceState = S.String;
398
352
  export const AuditEvidenceType = S.String;
399
353
  export const EvidenceControlSectionNamesList = /*@__PURE__*/ S.Array(S.String);
400
354
  export const EvidenceControl = /*@__PURE__*/ S.suspend(() => S.Struct({
401
355
  name: S.String,
402
356
  sectionNames: EvidenceControlSectionNamesList,
403
- })).annotate({
404
- identifier: "EvidenceControl",
405
- });
357
+ })).annotate({ identifier: "EvidenceControl" });
406
358
  export const EvidenceRelatedControlsList = /*@__PURE__*/ S.Array(EvidenceControl);
407
359
  export const Evidence = /*@__PURE__*/ S.suspend(() => S.Struct({
408
360
  id: S.String,
@@ -442,25 +394,24 @@ export const GetCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(()
442
394
  });
443
395
  export const GetFrameworkCodesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
444
396
  auditId: S.String.pipe(T.Label()),
445
- }).pipe(T.Http({
446
- method: "GET",
447
- uri: "/audits/{auditId}/framework-codes",
448
- code: 200,
449
- }))).annotate({
450
- identifier: "GetFrameworkCodesRequest",
451
- });
397
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/framework-codes", code: 200 }))).annotate({ identifier: "GetFrameworkCodesRequest" });
452
398
  export const FrameworkCodesFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
399
+ export const FrameworkCodesByFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
400
+ export const FrameworkCodesByFramework = /*@__PURE__*/ S.suspend(() => S.Struct({
401
+ framework: S.String,
402
+ codes: FrameworkCodesByFrameworkCodesList,
403
+ })).annotate({
404
+ identifier: "FrameworkCodesByFramework",
405
+ });
406
+ export const FrameworkCodesCodesByFrameworkList = /*@__PURE__*/ S.Array(FrameworkCodesByFramework);
453
407
  export const FrameworkCodes = /*@__PURE__*/ S.suspend(() => S.Struct({
454
408
  frameworkCodes: FrameworkCodesFrameworkCodesList,
409
+ codesByFramework: FrameworkCodesCodesByFrameworkList,
455
410
  })).annotate({ identifier: "FrameworkCodes" });
456
411
  export const GetInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
457
412
  auditId: S.String.pipe(T.Label()),
458
413
  requestId: S.String.pipe(T.Label()),
459
- }).pipe(T.Http({
460
- method: "GET",
461
- uri: "/audits/{auditId}/information-requests/{requestId}",
462
- code: 200,
463
- }))).annotate({
414
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests/{requestId}", code: 200 }))).annotate({
464
415
  identifier: "GetInformationRequestRequest",
465
416
  });
466
417
  export const GetInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -480,9 +431,7 @@ export const UploadedDocumentEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
480
431
  filename: S.optional(S.String),
481
432
  mimeType: S.String,
482
433
  url: S.String,
483
- })).annotate({
484
- identifier: "UploadedDocumentEvidence",
485
- });
434
+ })).annotate({ identifier: "UploadedDocumentEvidence" });
486
435
  export const LinkEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
487
436
  title: S.String,
488
437
  description: S.optional(S.String),
@@ -490,9 +439,7 @@ export const LinkEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
490
439
  })).annotate({ identifier: "LinkEvidence" });
491
440
  export const ObservationEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
492
441
  observationDetails: S.String,
493
- })).annotate({
494
- identifier: "ObservationEvidence",
495
- });
442
+ })).annotate({ identifier: "ObservationEvidence" });
496
443
  export const VantaDocumentEvidenceAddedBy = /*@__PURE__*/ S.suspend(() => S.Struct({
497
444
  email: S.String,
498
445
  name: S.String,
@@ -525,9 +472,7 @@ export const VantaDocumentEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
525
472
  addedBy: S.optional(VantaDocumentEvidenceAddedBy),
526
473
  documentVersionId: S.String,
527
474
  file: VantaDocumentEvidenceFile,
528
- })).annotate({
529
- identifier: "VantaDocumentEvidence",
530
- });
475
+ })).annotate({ identifier: "VantaDocumentEvidence" });
531
476
  export const VantaPolicyEvidenceLastEditedBy = VantaDocumentEvidenceAddedBy;
532
477
  export const VantaPolicyEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
533
478
  effectiveOrCreationDate: S.String,
@@ -536,9 +481,7 @@ export const VantaPolicyEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
536
481
  mimeType: S.String,
537
482
  filename: S.optional(S.String),
538
483
  id: S.String,
539
- })).annotate({
540
- identifier: "VantaPolicyEvidenceFile",
541
- });
484
+ })).annotate({ identifier: "VantaPolicyEvidenceFile" });
542
485
  export const VantaPolicyEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
543
486
  title: S.String,
544
487
  description: S.optional(S.String),
@@ -548,17 +491,13 @@ export const VantaPolicyEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
548
491
  policyVersionId: S.String,
549
492
  policyVersionFileId: S.String,
550
493
  file: VantaPolicyEvidenceFile,
551
- })).annotate({
552
- identifier: "VantaPolicyEvidence",
553
- });
494
+ })).annotate({ identifier: "VantaPolicyEvidence" });
554
495
  export const VantaTestRunStatus = S.String;
555
496
  export const VantaTestFileType = S.String;
556
497
  export const VantaTestEvidenceFile = /*@__PURE__*/ S.suspend(() => S.Struct({
557
498
  mimeType: S.String,
558
499
  url: S.String,
559
- })).annotate({
560
- identifier: "VantaTestEvidenceFile",
561
- });
500
+ })).annotate({ identifier: "VantaTestEvidenceFile" });
562
501
  export const VantaTestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
563
502
  title: S.String,
564
503
  testId: S.String,
@@ -567,9 +506,7 @@ export const VantaTestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
567
506
  executedAt: S.String,
568
507
  fileType: VantaTestFileType,
569
508
  file: VantaTestEvidenceFile,
570
- })).annotate({
571
- identifier: "VantaTestEvidence",
572
- });
509
+ })).annotate({ identifier: "VantaTestEvidence" });
573
510
  export const VantaTestSnapshotEvidenceTestRunStatus = S.String;
574
511
  export const VantaTestSnapshotEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
575
512
  snapshotId: S.String,
@@ -593,8 +530,7 @@ export const InformationRequestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct
593
530
  })).annotate({
594
531
  identifier: "InformationRequestEvidence",
595
532
  });
596
- export const GetInformationRequestTestSnapshotEvidenceDetailRequest =
597
- /*@__PURE__*/ S.suspend(() => S.Struct({
533
+ export const GetInformationRequestTestSnapshotEvidenceDetailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
598
534
  auditId: S.String.pipe(T.Label()),
599
535
  requestId: S.String.pipe(T.Label()),
600
536
  evidenceId: S.String.pipe(T.Label()),
@@ -611,8 +547,7 @@ export const VantaTestSnapshotIntegration = /*@__PURE__*/ S.suspend(() => S.Stru
611
547
  })).annotate({
612
548
  identifier: "VantaTestSnapshotIntegration",
613
549
  });
614
- export const VantaTestSnapshotEvidenceDetailIntegrationsList =
615
- /*@__PURE__*/ S.Array(VantaTestSnapshotIntegration);
550
+ export const VantaTestSnapshotEvidenceDetailIntegrationsList = /*@__PURE__*/ S.Array(VantaTestSnapshotIntegration);
616
551
  export const VantaTestSnapshotSlaRemediationSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
617
552
  numericValue: S.Number,
618
553
  unit: S.NullOr(S.String),
@@ -632,26 +567,22 @@ export const VantaTestSnapshotRawTestDataRow = /*@__PURE__*/ S.suspend(() => S.S
632
567
  })).annotate({
633
568
  identifier: "VantaTestSnapshotRawTestDataRow",
634
569
  });
635
- export const VantaTestSnapshotEvidenceDetailRawTestDataList =
636
- /*@__PURE__*/ S.Array(VantaTestSnapshotRawTestDataRow);
570
+ export const VantaTestSnapshotEvidenceDetailRawTestDataList = /*@__PURE__*/ S.Array(VantaTestSnapshotRawTestDataRow);
637
571
  export const VantaTestSnapshotExcludedItem = /*@__PURE__*/ S.suspend(() => S.Struct({
638
572
  id: S.String,
639
573
  displayName: S.NullOr(S.String),
640
574
  })).annotate({
641
575
  identifier: "VantaTestSnapshotExcludedItem",
642
576
  });
643
- export const VantaTestSnapshotExcludedItemGroupEntitiesList =
644
- /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItem);
577
+ export const VantaTestSnapshotExcludedItemGroupEntitiesList = /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItem);
645
578
  export const VantaTestSnapshotExcludedItemGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
646
579
  reason: S.String,
647
580
  entities: VantaTestSnapshotExcludedItemGroupEntitiesList,
648
581
  })).annotate({
649
582
  identifier: "VantaTestSnapshotExcludedItemGroup",
650
583
  });
651
- export const VantaTestSnapshotOutOfScopeResourcesTestLevelList =
652
- /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
653
- export const VantaTestSnapshotFrameworkExclusionGroupedByReasonList =
654
- /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
584
+ export const VantaTestSnapshotOutOfScopeResourcesTestLevelList = /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
585
+ export const VantaTestSnapshotFrameworkExclusionGroupedByReasonList = /*@__PURE__*/ S.Array(VantaTestSnapshotExcludedItemGroup);
655
586
  export const VantaTestSnapshotFrameworkExclusion = /*@__PURE__*/ S.suspend(() => S.Struct({
656
587
  frameworkId: S.String,
657
588
  frameworkName: S.String,
@@ -659,8 +590,7 @@ export const VantaTestSnapshotFrameworkExclusion = /*@__PURE__*/ S.suspend(() =>
659
590
  })).annotate({
660
591
  identifier: "VantaTestSnapshotFrameworkExclusion",
661
592
  });
662
- export const VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList =
663
- /*@__PURE__*/ S.Array(VantaTestSnapshotFrameworkExclusion);
593
+ export const VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList = /*@__PURE__*/ S.Array(VantaTestSnapshotFrameworkExclusion);
664
594
  export const VantaTestSnapshotOutOfScopeResources = /*@__PURE__*/ S.suspend(() => S.Struct({
665
595
  testLevel: VantaTestSnapshotOutOfScopeResourcesTestLevelList,
666
596
  frameworkLevel: VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList,
@@ -679,8 +609,7 @@ export const VantaTestSnapshotApiRequest = /*@__PURE__*/ S.suspend(() => S.Struc
679
609
  })).annotate({
680
610
  identifier: "VantaTestSnapshotApiRequest",
681
611
  });
682
- export const VantaTestSnapshotEvidenceDetailApiRequestsList =
683
- /*@__PURE__*/ S.Array(VantaTestSnapshotApiRequest);
612
+ export const VantaTestSnapshotEvidenceDetailApiRequestsList = /*@__PURE__*/ S.Array(VantaTestSnapshotApiRequest);
684
613
  export const VantaTestSnapshotEvidenceDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
685
614
  testId: S.String,
686
615
  testName: S.String,
@@ -696,11 +625,7 @@ export const VantaTestSnapshotEvidenceDetail = /*@__PURE__*/ S.suspend(() => S.S
696
625
  });
697
626
  export const GetOrganizationInformationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
698
627
  auditId: S.String.pipe(T.Label()),
699
- }).pipe(T.Http({
700
- method: "GET",
701
- uri: "/audits/{auditId}/organization/information",
702
- code: 200,
703
- }))).annotate({
628
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/organization/information", code: 200 }))).annotate({
704
629
  identifier: "GetOrganizationInformationRequest",
705
630
  });
706
631
  export const AuditOrganizationCompanyLogo = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -722,17 +647,11 @@ export const AuditOrganizationInformation = /*@__PURE__*/ S.suspend(() => S.Stru
722
647
  });
723
648
  export const GetOrganizationNotificationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
724
649
  auditId: S.String.pipe(T.Label()),
725
- }).pipe(T.Http({
726
- method: "GET",
727
- uri: "/audits/{auditId}/organization/notifications",
728
- code: 200,
729
- }))).annotate({
650
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/organization/notifications", code: 200 }))).annotate({
730
651
  identifier: "GetOrganizationNotificationsRequest",
731
652
  });
732
- export const AuditOrganizationNotificationsSubscribedChannelTypesList =
733
- /*@__PURE__*/ S.Array(S.String);
734
- export const AuditOrganizationNotificationSubscription =
735
- /*@__PURE__*/ S.suspend(() => S.Struct({
653
+ export const AuditOrganizationNotificationsSubscribedChannelTypesList = /*@__PURE__*/ S.Array(S.String);
654
+ export const AuditOrganizationNotificationSubscription = /*@__PURE__*/ S.suspend(() => S.Struct({
736
655
  id: S.String,
737
656
  address: S.String,
738
657
  cadence: S.NullOr(S.String),
@@ -741,8 +660,7 @@ export const AuditOrganizationNotificationSubscription =
741
660
  })).annotate({
742
661
  identifier: "AuditOrganizationNotificationSubscription",
743
662
  });
744
- export const AuditOrganizationNotificationsExternalNotificationsList =
745
- /*@__PURE__*/ S.Array(AuditOrganizationNotificationSubscription);
663
+ export const AuditOrganizationNotificationsExternalNotificationsList = /*@__PURE__*/ S.Array(AuditOrganizationNotificationSubscription);
746
664
  export const AuditOrganizationNotifications = /*@__PURE__*/ S.suspend(() => S.Struct({
747
665
  id: S.String,
748
666
  preferredTimeZone: S.optional(S.NullOr(S.String)),
@@ -768,19 +686,15 @@ export const AccountAccessService = /*@__PURE__*/ S.suspend(() => S.Struct({
768
686
  credentialDisplayName: S.String,
769
687
  service: S.String,
770
688
  subAccountId: S.NullOr(S.String),
771
- })).annotate({
772
- identifier: "AccountAccessService",
773
- });
774
- export const PaginatedResponseAccountAccessServiceResultsDataList =
775
- /*@__PURE__*/ S.Array(AccountAccessService);
689
+ })).annotate({ identifier: "AccountAccessService" });
690
+ export const PaginatedResponseAccountAccessServiceResultsDataList = /*@__PURE__*/ S.Array(AccountAccessService);
776
691
  export const PageInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
777
692
  endCursor: S.NullOr(S.String),
778
693
  hasNextPage: S.Boolean,
779
694
  hasPreviousPage: S.Boolean,
780
695
  startCursor: S.NullOr(S.String),
781
696
  })).annotate({ identifier: "PageInfo" });
782
- export const PaginatedResponseAccountAccessServiceResults =
783
- /*@__PURE__*/ S.suspend(() => S.Struct({
697
+ export const PaginatedResponseAccountAccessServiceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
784
698
  data: PaginatedResponseAccountAccessServiceResultsDataList,
785
699
  pageInfo: PageInfo,
786
700
  })).annotate({
@@ -796,9 +710,7 @@ export const ListAuditCommentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
796
710
  pageSize: S.optional(S.Number.pipe(T.Query())),
797
711
  pageCursor: S.optional(S.String.pipe(T.Query())),
798
712
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
799
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 }))).annotate({
800
- identifier: "ListAuditCommentsRequest",
801
- });
713
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 }))).annotate({ identifier: "ListAuditCommentsRequest" });
802
714
  export const PaginatedResponseCommentResultsDataList = /*@__PURE__*/ S.Array(Comment);
803
715
  export const PaginatedResponseCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
804
716
  data: PaginatedResponseCommentResultsDataList,
@@ -808,27 +720,20 @@ export const PaginatedResponseCommentResults = /*@__PURE__*/ S.suspend(() => S.S
808
720
  });
809
721
  export const PaginatedResponseComment = /*@__PURE__*/ S.suspend(() => S.Struct({
810
722
  results: PaginatedResponseCommentResults,
811
- })).annotate({
812
- identifier: "PaginatedResponseComment",
813
- });
814
- export const ListAuditControlsRequestExternalIdMatchesAnyList =
815
- /*@__PURE__*/ S.Array(S.String);
723
+ })).annotate({ identifier: "PaginatedResponseComment" });
724
+ export const ListAuditControlsRequestExternalIdMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
816
725
  export const ListAuditControlsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
817
726
  auditId: S.String.pipe(T.Label()),
818
727
  pageSize: S.optional(S.Number.pipe(T.Query())),
819
728
  pageCursor: S.optional(S.String.pipe(T.Query())),
820
729
  externalIdMatchesAny: S.optional(ListAuditControlsRequestExternalIdMatchesAnyList.pipe(T.Query())),
821
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 }))).annotate({
822
- identifier: "ListAuditControlsRequest",
823
- });
730
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 }))).annotate({ identifier: "ListAuditControlsRequest" });
824
731
  export const AuditorControlDomainsList = /*@__PURE__*/ S.Array(S.String);
825
732
  export const AuditorControlCustomFieldsList = /*@__PURE__*/ S.Array(CustomField);
826
733
  export const SectionPrinciple = /*@__PURE__*/ S.suspend(() => S.Struct({
827
734
  id: S.String,
828
735
  name: S.String,
829
- })).annotate({
830
- identifier: "SectionPrinciple",
831
- });
736
+ })).annotate({ identifier: "SectionPrinciple" });
832
737
  export const Section = /*@__PURE__*/ S.suspend(() => S.Struct({
833
738
  name: S.String,
834
739
  framework: S.String,
@@ -841,9 +746,7 @@ export const AuditControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
841
746
  segmentId: S.String,
842
747
  assessmentState: AuditControlAssessmentState,
843
748
  justification: S.NullOr(S.String),
844
- })).annotate({
845
- identifier: "AuditControlAssessment",
846
- });
749
+ })).annotate({ identifier: "AuditControlAssessment" });
847
750
  export const AuditorControlAssessmentsList = /*@__PURE__*/ S.Array(AuditControlAssessment);
848
751
  export const AuditorControl = /*@__PURE__*/ S.suspend(() => S.Struct({
849
752
  id: S.String,
@@ -862,8 +765,7 @@ export const AuditorControl = /*@__PURE__*/ S.suspend(() => S.Struct({
862
765
  inScopeSegmentIds: AuditorControlInScopeSegmentIdsList,
863
766
  assessments: AuditorControlAssessmentsList,
864
767
  })).annotate({ identifier: "AuditorControl" });
865
- export const PaginatedResponseAuditorControlResultsDataList =
866
- /*@__PURE__*/ S.Array(AuditorControl);
768
+ export const PaginatedResponseAuditorControlResultsDataList = /*@__PURE__*/ S.Array(AuditorControl);
867
769
  export const PaginatedResponseAuditorControlResults = /*@__PURE__*/ S.suspend(() => S.Struct({
868
770
  data: PaginatedResponseAuditorControlResultsDataList,
869
771
  pageInfo: PageInfo,
@@ -880,9 +782,7 @@ export const ListAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
880
782
  pageSize: S.optional(S.Number.pipe(T.Query())),
881
783
  pageCursor: S.optional(S.String.pipe(T.Query())),
882
784
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
883
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 }))).annotate({
884
- identifier: "ListAuditEvidenceRequest",
885
- });
785
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 }))).annotate({ identifier: "ListAuditEvidenceRequest" });
886
786
  export const PaginatedResponseEvidenceResultsDataList = /*@__PURE__*/ S.Array(Evidence);
887
787
  export const PaginatedResponseEvidenceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
888
788
  data: PaginatedResponseEvidenceResultsDataList,
@@ -900,11 +800,7 @@ export const ListAuditEvidenceUrlsRequest = /*@__PURE__*/ S.suspend(() => S.Stru
900
800
  auditEvidenceId: S.String.pipe(T.Label()),
901
801
  pageSize: S.optional(S.Number.pipe(T.Query())),
902
802
  pageCursor: S.optional(S.String.pipe(T.Query())),
903
- }).pipe(T.Http({
904
- method: "GET",
905
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}/urls",
906
- code: 200,
907
- }))).annotate({
803
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence/{auditEvidenceId}/urls", code: 200 }))).annotate({
908
804
  identifier: "ListAuditEvidenceUrlsRequest",
909
805
  });
910
806
  export const EvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -914,8 +810,7 @@ export const EvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
914
810
  isDownloadable: S.Boolean,
915
811
  mimeType: S.NullOr(S.String),
916
812
  })).annotate({ identifier: "EvidenceUrl" });
917
- export const PaginatedResponseEvidenceUrlResultsDataList =
918
- /*@__PURE__*/ S.Array(EvidenceUrl);
813
+ export const PaginatedResponseEvidenceUrlResultsDataList = /*@__PURE__*/ S.Array(EvidenceUrl);
919
814
  export const PaginatedResponseEvidenceUrlResults = /*@__PURE__*/ S.suspend(() => S.Struct({
920
815
  data: PaginatedResponseEvidenceUrlResultsDataList,
921
816
  pageInfo: PageInfo,
@@ -927,8 +822,7 @@ export const PaginatedResponseEvidenceUrl = /*@__PURE__*/ S.suspend(() => S.Stru
927
822
  })).annotate({
928
823
  identifier: "PaginatedResponseEvidenceUrl",
929
824
  });
930
- export const ListAuditIssuesRequestSnapshotIdMatchesAnyList =
931
- /*@__PURE__*/ S.Array(S.String);
825
+ export const ListAuditIssuesRequestSnapshotIdMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
932
826
  export const IssueSnapshotItemOrderBy = S.String;
933
827
  export const OrderDirection = S.String;
934
828
  export const ListAuditIssuesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -943,9 +837,7 @@ export const ListAuditIssuesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
943
837
  detectedBeforeDate: S.optional(S.String.pipe(T.Query())),
944
838
  orderBy: S.optional(IssueSnapshotItemOrderBy.pipe(T.Query())),
945
839
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
946
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/items", code: 200 }))).annotate({
947
- identifier: "ListAuditIssuesRequest",
948
- });
840
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/items", code: 200 }))).annotate({ identifier: "ListAuditIssuesRequest" });
949
841
  export const IssueStatusTypeForSnapshot = S.String;
950
842
  export const IssueSnapshotItemApprovalProgress = /*@__PURE__*/ S.suspend(() => S.Struct({
951
843
  approvedCount: S.Number,
@@ -966,13 +858,9 @@ export const IssueSnapshotItem = /*@__PURE__*/ S.suspend(() => S.Struct({
966
858
  lastModifiedAt: S.optional(S.String),
967
859
  createdAt: S.optional(S.String),
968
860
  detectedAt: S.optional(S.String),
969
- })).annotate({
970
- identifier: "IssueSnapshotItem",
971
- });
972
- export const PaginatedResponseIssueSnapshotItemResultsDataList =
973
- /*@__PURE__*/ S.Array(IssueSnapshotItem);
974
- export const PaginatedResponseIssueSnapshotItemResults =
975
- /*@__PURE__*/ S.suspend(() => S.Struct({
861
+ })).annotate({ identifier: "IssueSnapshotItem" });
862
+ export const PaginatedResponseIssueSnapshotItemResultsDataList = /*@__PURE__*/ S.Array(IssueSnapshotItem);
863
+ export const PaginatedResponseIssueSnapshotItemResults = /*@__PURE__*/ S.suspend(() => S.Struct({
976
864
  data: PaginatedResponseIssueSnapshotItemResultsDataList,
977
865
  pageInfo: PageInfo,
978
866
  })).annotate({
@@ -992,13 +880,7 @@ export const ListAuditRisksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
992
880
  search: S.optional(S.String.pipe(T.Query())),
993
881
  orderBy: S.optional(RiskOrderBy.pipe(T.Query())),
994
882
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
995
- }).pipe(T.Http({
996
- method: "GET",
997
- uri: "/audits/{auditId}/risks/{snapshotId}",
998
- code: 200,
999
- }))).annotate({
1000
- identifier: "ListAuditRisksRequest",
1001
- });
883
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/risks/{snapshotId}", code: 200 }))).annotate({ identifier: "ListAuditRisksRequest" });
1002
884
  export const AuditRiskTreatment = S.String;
1003
885
  export const AuditRiskTreatmentStatus = S.String;
1004
886
  export const AuditRiskReviewStatus = S.String;
@@ -1044,9 +926,7 @@ export const ListAuditsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1044
926
  pageCursor: S.optional(S.String.pipe(T.Query())),
1045
927
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
1046
928
  isActiveAudit: S.optional(S.Boolean.pipe(T.Query())),
1047
- }).pipe(T.Http({ method: "GET", uri: "/audits", code: 200 }))).annotate({
1048
- identifier: "ListAuditsRequest",
1049
- });
929
+ }).pipe(T.Http({ method: "GET", uri: "/audits", code: 200 }))).annotate({ identifier: "ListAuditsRequest" });
1050
930
  export const PaginatedResponseAuditResultsDataList = /*@__PURE__*/ S.Array(Audit);
1051
931
  export const PaginatedResponseAuditResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1052
932
  data: PaginatedResponseAuditResultsDataList,
@@ -1056,19 +936,13 @@ export const PaginatedResponseAuditResults = /*@__PURE__*/ S.suspend(() => S.Str
1056
936
  });
1057
937
  export const PaginatedResponseAudit = /*@__PURE__*/ S.suspend(() => S.Struct({
1058
938
  results: PaginatedResponseAuditResults,
1059
- })).annotate({
1060
- identifier: "PaginatedResponseAudit",
1061
- });
939
+ })).annotate({ identifier: "PaginatedResponseAudit" });
1062
940
  export const ListAuditSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1063
941
  auditId: S.String.pipe(T.Label()),
1064
942
  pageSize: S.optional(S.Number.pipe(T.Query())),
1065
943
  pageCursor: S.optional(S.String.pipe(T.Query())),
1066
944
  search: S.optional(S.String.pipe(T.Query())),
1067
- }).pipe(T.Http({
1068
- method: "GET",
1069
- uri: "/audits/{auditId}/issues/snapshots",
1070
- code: 200,
1071
- }))).annotate({
945
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/snapshots", code: 200 }))).annotate({
1072
946
  identifier: "ListAuditSnapshotsRequest",
1073
947
  });
1074
948
  export const IssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1076,13 +950,9 @@ export const IssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
1076
950
  title: S.optional(S.String),
1077
951
  description: S.optional(S.String),
1078
952
  createdAt: S.optional(S.String),
1079
- })).annotate({
1080
- identifier: "IssueSnapshotMetadata",
1081
- });
1082
- export const PaginatedResponseIssueSnapshotMetadataResultsDataList =
1083
- /*@__PURE__*/ S.Array(IssueSnapshotMetadata);
1084
- export const PaginatedResponseIssueSnapshotMetadataResults =
1085
- /*@__PURE__*/ S.suspend(() => S.Struct({
953
+ })).annotate({ identifier: "IssueSnapshotMetadata" });
954
+ export const PaginatedResponseIssueSnapshotMetadataResultsDataList = /*@__PURE__*/ S.Array(IssueSnapshotMetadata);
955
+ export const PaginatedResponseIssueSnapshotMetadataResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1086
956
  data: PaginatedResponseIssueSnapshotMetadataResultsDataList,
1087
957
  pageInfo: PageInfo,
1088
958
  })).annotate({
@@ -1094,8 +964,7 @@ export const PaginatedResponseIssueSnapshotMetadata = /*@__PURE__*/ S.suspend(()
1094
964
  identifier: "PaginatedResponseIssueSnapshotMetadata",
1095
965
  });
1096
966
  export const ApiCodeChangeSource = S.String;
1097
- export const ListCodeChangesRequestSourcesMatchesAnyList =
1098
- /*@__PURE__*/ S.Array(ApiCodeChangeSource);
967
+ export const ListCodeChangesRequestSourcesMatchesAnyList = /*@__PURE__*/ S.Array(ApiCodeChangeSource);
1099
968
  export const ListCodeChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1100
969
  auditId: S.String.pipe(T.Label()),
1101
970
  pageSize: S.optional(S.Number.pipe(T.Query())),
@@ -1104,13 +973,7 @@ export const ListCodeChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1104
973
  sourcesMatchesAny: S.optional(ListCodeChangesRequestSourcesMatchesAnyList.pipe(T.Query())),
1105
974
  closedAfterDate: S.optional(S.String.pipe(T.Query())),
1106
975
  closedBeforeDate: S.optional(S.String.pipe(T.Query())),
1107
- }).pipe(T.Http({
1108
- method: "GET",
1109
- uri: "/audits/{auditId}/assets/code-changes",
1110
- code: 200,
1111
- }))).annotate({
1112
- identifier: "ListCodeChangesRequest",
1113
- });
976
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/assets/code-changes", code: 200 }))).annotate({ identifier: "ListCodeChangesRequest" });
1114
977
  export const CodeChange = /*@__PURE__*/ S.suspend(() => S.Struct({
1115
978
  id: S.String,
1116
979
  codeChange: S.String,
@@ -1138,17 +1001,11 @@ export const ListCommentsForControlRequest = /*@__PURE__*/ S.suspend(() => S.Str
1138
1001
  pageSize: S.optional(S.Number.pipe(T.Query())),
1139
1002
  pageCursor: S.optional(S.String.pipe(T.Query())),
1140
1003
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
1141
- }).pipe(T.Http({
1142
- method: "GET",
1143
- uri: "/audits/{auditId}/controls/{controlId}/comments",
1144
- code: 200,
1145
- }))).annotate({
1004
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls/{controlId}/comments", code: 200 }))).annotate({
1146
1005
  identifier: "ListCommentsForControlRequest",
1147
1006
  });
1148
- export const PaginatedResponseAuditControlCommentResultsDataList =
1149
- /*@__PURE__*/ S.Array(AuditControlComment);
1150
- export const PaginatedResponseAuditControlCommentResults =
1151
- /*@__PURE__*/ S.suspend(() => S.Struct({
1007
+ export const PaginatedResponseAuditControlCommentResultsDataList = /*@__PURE__*/ S.Array(AuditControlComment);
1008
+ export const PaginatedResponseAuditControlCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1152
1009
  data: PaginatedResponseAuditControlCommentResultsDataList,
1153
1010
  pageInfo: PageInfo,
1154
1011
  })).annotate({
@@ -1172,17 +1029,14 @@ export const ListCommentsForInformationRequestRequest = /*@__PURE__*/ S.suspend(
1172
1029
  }))).annotate({
1173
1030
  identifier: "ListCommentsForInformationRequestRequest",
1174
1031
  });
1175
- export const PaginatedResponseInformationRequestCommentResultsDataList =
1176
- /*@__PURE__*/ S.Array(InformationRequestComment);
1177
- export const PaginatedResponseInformationRequestCommentResults =
1178
- /*@__PURE__*/ S.suspend(() => S.Struct({
1032
+ export const PaginatedResponseInformationRequestCommentResultsDataList = /*@__PURE__*/ S.Array(InformationRequestComment);
1033
+ export const PaginatedResponseInformationRequestCommentResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1179
1034
  data: PaginatedResponseInformationRequestCommentResultsDataList,
1180
1035
  pageInfo: PageInfo,
1181
1036
  })).annotate({
1182
1037
  identifier: "PaginatedResponseInformationRequestCommentResults",
1183
1038
  });
1184
- export const PaginatedResponseInformationRequestComment =
1185
- /*@__PURE__*/ S.suspend(() => S.Struct({
1039
+ export const PaginatedResponseInformationRequestComment = /*@__PURE__*/ S.suspend(() => S.Struct({
1186
1040
  results: PaginatedResponseInformationRequestCommentResults,
1187
1041
  })).annotate({
1188
1042
  identifier: "PaginatedResponseInformationRequestComment",
@@ -1218,17 +1072,14 @@ export const InformationRequestActivityLog = /*@__PURE__*/ S.suspend(() => S.Str
1218
1072
  })).annotate({
1219
1073
  identifier: "InformationRequestActivityLog",
1220
1074
  });
1221
- export const PaginatedResponseInformationRequestActivityLogResultsDataList =
1222
- /*@__PURE__*/ S.Array(InformationRequestActivityLog);
1223
- export const PaginatedResponseInformationRequestActivityLogResults =
1224
- /*@__PURE__*/ S.suspend(() => S.Struct({
1075
+ export const PaginatedResponseInformationRequestActivityLogResultsDataList = /*@__PURE__*/ S.Array(InformationRequestActivityLog);
1076
+ export const PaginatedResponseInformationRequestActivityLogResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1225
1077
  data: PaginatedResponseInformationRequestActivityLogResultsDataList,
1226
1078
  pageInfo: PageInfo,
1227
1079
  })).annotate({
1228
1080
  identifier: "PaginatedResponseInformationRequestActivityLogResults",
1229
1081
  });
1230
- export const PaginatedResponseInformationRequestActivityLog =
1231
- /*@__PURE__*/ S.suspend(() => S.Struct({
1082
+ export const PaginatedResponseInformationRequestActivityLog = /*@__PURE__*/ S.suspend(() => S.Struct({
1232
1083
  results: PaginatedResponseInformationRequestActivityLogResults,
1233
1084
  })).annotate({
1234
1085
  identifier: "PaginatedResponseInformationRequestActivityLog",
@@ -1249,37 +1100,30 @@ export const ListInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(()
1249
1100
  }))).annotate({
1250
1101
  identifier: "ListInformationRequestEvidenceRequest",
1251
1102
  });
1252
- export const PaginatedResponseInformationRequestEvidenceResultsDataList =
1253
- /*@__PURE__*/ S.Array(InformationRequestEvidence);
1254
- export const PaginatedResponseInformationRequestEvidenceResults =
1255
- /*@__PURE__*/ S.suspend(() => S.Struct({
1103
+ export const PaginatedResponseInformationRequestEvidenceResultsDataList = /*@__PURE__*/ S.Array(InformationRequestEvidence);
1104
+ export const PaginatedResponseInformationRequestEvidenceResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1256
1105
  data: PaginatedResponseInformationRequestEvidenceResultsDataList,
1257
1106
  pageInfo: PageInfo,
1258
1107
  })).annotate({
1259
1108
  identifier: "PaginatedResponseInformationRequestEvidenceResults",
1260
1109
  });
1261
- export const PaginatedResponseInformationRequestEvidence =
1262
- /*@__PURE__*/ S.suspend(() => S.Struct({
1110
+ export const PaginatedResponseInformationRequestEvidence = /*@__PURE__*/ S.suspend(() => S.Struct({
1263
1111
  results: PaginatedResponseInformationRequestEvidenceResults,
1264
1112
  })).annotate({
1265
1113
  identifier: "PaginatedResponseInformationRequestEvidence",
1266
1114
  });
1115
+ export const ListInformationRequestsRequestSegmentIdsMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
1267
1116
  export const ListInformationRequestsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1268
1117
  auditId: S.String.pipe(T.Label()),
1269
1118
  pageSize: S.optional(S.Number.pipe(T.Query())),
1270
1119
  pageCursor: S.optional(S.String.pipe(T.Query())),
1271
1120
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
1272
- }).pipe(T.Http({
1273
- method: "GET",
1274
- uri: "/audits/{auditId}/information-requests",
1275
- code: 200,
1276
- }))).annotate({
1121
+ segmentIdsMatchesAny: S.optional(ListInformationRequestsRequestSegmentIdsMatchesAnyList.pipe(T.Query())),
1122
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests", code: 200 }))).annotate({
1277
1123
  identifier: "ListInformationRequestsRequest",
1278
1124
  });
1279
- export const PaginatedResponseInformationRequestResultsDataList =
1280
- /*@__PURE__*/ S.Array(InformationRequest);
1281
- export const PaginatedResponseInformationRequestResults =
1282
- /*@__PURE__*/ S.suspend(() => S.Struct({
1125
+ export const PaginatedResponseInformationRequestResultsDataList = /*@__PURE__*/ S.Array(InformationRequest);
1126
+ export const PaginatedResponseInformationRequestResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1283
1127
  data: PaginatedResponseInformationRequestResultsDataList,
1284
1128
  pageInfo: PageInfo,
1285
1129
  })).annotate({
@@ -1305,8 +1149,7 @@ export const ListInformationRequestsForControlRequest = /*@__PURE__*/ S.suspend(
1305
1149
  export const AuditIntegrationTag = S.String;
1306
1150
  export const ListIntegrationsRequestTagsMatchesAnyList = /*@__PURE__*/ S.Array(AuditIntegrationTag);
1307
1151
  export const AuditIntegrationCategory = S.String;
1308
- export const ListIntegrationsRequestCategoriesMatchesAnyList =
1309
- /*@__PURE__*/ S.Array(AuditIntegrationCategory);
1152
+ export const ListIntegrationsRequestCategoriesMatchesAnyList = /*@__PURE__*/ S.Array(AuditIntegrationCategory);
1310
1153
  export const ListIntegrationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1311
1154
  auditId: S.String.pipe(T.Label()),
1312
1155
  pageSize: S.optional(S.Number.pipe(T.Query())),
@@ -1314,9 +1157,7 @@ export const ListIntegrationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1314
1157
  search: S.optional(S.String.pipe(T.Query())),
1315
1158
  tagsMatchesAny: S.optional(ListIntegrationsRequestTagsMatchesAnyList.pipe(T.Query())),
1316
1159
  categoriesMatchesAny: S.optional(ListIntegrationsRequestCategoriesMatchesAnyList.pipe(T.Query())),
1317
- }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 }))).annotate({
1318
- identifier: "ListIntegrationsRequest",
1319
- });
1160
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 }))).annotate({ identifier: "ListIntegrationsRequest" });
1320
1161
  export const AuditIntegrationTagsList = /*@__PURE__*/ S.Array(S.String);
1321
1162
  export const AuditIntegrationCategoriesList = /*@__PURE__*/ S.Array(S.String);
1322
1163
  export const AuditIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1324,11 +1165,8 @@ export const AuditIntegration = /*@__PURE__*/ S.suspend(() => S.Struct({
1324
1165
  name: S.String,
1325
1166
  tags: S.optional(AuditIntegrationTagsList),
1326
1167
  categories: S.optional(AuditIntegrationCategoriesList),
1327
- })).annotate({
1328
- identifier: "AuditIntegration",
1329
- });
1330
- export const PaginatedResponseAuditIntegrationResultsDataList =
1331
- /*@__PURE__*/ S.Array(AuditIntegration);
1168
+ })).annotate({ identifier: "AuditIntegration" });
1169
+ export const PaginatedResponseAuditIntegrationResultsDataList = /*@__PURE__*/ S.Array(AuditIntegration);
1332
1170
  export const PaginatedResponseAuditIntegrationResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1333
1171
  data: PaginatedResponseAuditIntegrationResultsDataList,
1334
1172
  pageInfo: PageInfo,
@@ -1366,8 +1204,7 @@ export const AccountAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
1366
1204
  createdDate: S.optional(S.NullOr(S.String)),
1367
1205
  deactivatedDate: S.optional(S.NullOr(S.String)),
1368
1206
  })).annotate({ identifier: "AccountAccess" });
1369
- export const PaginatedResponseAccountAccessResultsDataList =
1370
- /*@__PURE__*/ S.Array(AccountAccess);
1207
+ export const PaginatedResponseAccountAccessResultsDataList = /*@__PURE__*/ S.Array(AccountAccess);
1371
1208
  export const PaginatedResponseAccountAccessResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1372
1209
  data: PaginatedResponseAccountAccessResultsDataList,
1373
1210
  pageInfo: PageInfo,
@@ -1379,8 +1216,7 @@ export const PaginatedResponseAccountAccess = /*@__PURE__*/ S.suspend(() => S.St
1379
1216
  })).annotate({
1380
1217
  identifier: "PaginatedResponseAccountAccess",
1381
1218
  });
1382
- export const ListPersonnelGroupsRequestSourcesMatchesAnyList =
1383
- /*@__PURE__*/ S.Array(S.String);
1219
+ export const ListPersonnelGroupsRequestSourcesMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
1384
1220
  export const GroupOrderBy = S.String;
1385
1221
  export const ListPersonnelGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1386
1222
  auditId: S.String.pipe(T.Label()),
@@ -1390,18 +1226,12 @@ export const ListPersonnelGroupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct
1390
1226
  sourcesMatchesAny: S.optional(ListPersonnelGroupsRequestSourcesMatchesAnyList.pipe(T.Query())),
1391
1227
  orderBy: S.optional(GroupOrderBy.pipe(T.Query())),
1392
1228
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
1393
- }).pipe(T.Http({
1394
- method: "GET",
1395
- uri: "/audits/{auditId}/personnel/groups",
1396
- code: 200,
1397
- }))).annotate({
1229
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/groups", code: 200 }))).annotate({
1398
1230
  identifier: "ListPersonnelGroupsRequest",
1399
1231
  });
1400
1232
  export const PersonnelGroupTask = /*@__PURE__*/ S.suspend(() => S.Struct({
1401
1233
  name: S.String,
1402
- })).annotate({
1403
- identifier: "PersonnelGroupTask",
1404
- });
1234
+ })).annotate({ identifier: "PersonnelGroupTask" });
1405
1235
  export const PersonnelGroupTasksList = /*@__PURE__*/ S.Array(PersonnelGroupTask);
1406
1236
  export const PersonnelGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
1407
1237
  id: S.String,
@@ -1412,8 +1242,7 @@ export const PersonnelGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
1412
1242
  tasksLastUpdated: S.optional(S.NullOr(S.String)),
1413
1243
  pointOfContact: S.optional(S.NullOr(S.String)),
1414
1244
  })).annotate({ identifier: "PersonnelGroup" });
1415
- export const PaginatedResponsePersonnelGroupResultsDataList =
1416
- /*@__PURE__*/ S.Array(PersonnelGroup);
1245
+ export const PaginatedResponsePersonnelGroupResultsDataList = /*@__PURE__*/ S.Array(PersonnelGroup);
1417
1246
  export const PaginatedResponsePersonnelGroupResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1418
1247
  data: PaginatedResponsePersonnelGroupResultsDataList,
1419
1248
  pageInfo: PageInfo,
@@ -1426,8 +1255,7 @@ export const PaginatedResponsePersonnelGroup = /*@__PURE__*/ S.suspend(() => S.S
1426
1255
  identifier: "PaginatedResponsePersonnelGroup",
1427
1256
  });
1428
1257
  export const PeopleEmploymentStatus = S.String;
1429
- export const ListPersonnelPeopleRequestGroupsMatchesAnyList =
1430
- /*@__PURE__*/ S.Array(S.String);
1258
+ export const ListPersonnelPeopleRequestGroupsMatchesAnyList = /*@__PURE__*/ S.Array(S.String);
1431
1259
  export const PeopleOrderBy = S.String;
1432
1260
  export const ListPersonnelPeopleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1433
1261
  auditId: S.String.pipe(T.Label()),
@@ -1438,11 +1266,7 @@ export const ListPersonnelPeopleRequest = /*@__PURE__*/ S.suspend(() => S.Struct
1438
1266
  groupsMatchesAny: S.optional(ListPersonnelPeopleRequestGroupsMatchesAnyList.pipe(T.Query())),
1439
1267
  orderBy: S.optional(PeopleOrderBy.pipe(T.Query())),
1440
1268
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
1441
- }).pipe(T.Http({
1442
- method: "GET",
1443
- uri: "/audits/{auditId}/personnel/people",
1444
- code: 200,
1445
- }))).annotate({
1269
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/people", code: 200 }))).annotate({
1446
1270
  identifier: "ListPersonnelPeopleRequest",
1447
1271
  });
1448
1272
  export const PersonnelPersonGroupsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1454,9 +1278,7 @@ export const PersonnelPersonGroupsList = /*@__PURE__*/ S.Array(PersonnelPersonGr
1454
1278
  export const PeopleSourceInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1455
1279
  mainSource: S.String,
1456
1280
  supplementarySource: S.NullOr(S.String),
1457
- })).annotate({
1458
- identifier: "PeopleSourceInfo",
1459
- });
1281
+ })).annotate({ identifier: "PeopleSourceInfo" });
1460
1282
  export const PeopleTaskStatus = S.String;
1461
1283
  export const PeopleTaskStatusInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1462
1284
  status: PeopleTaskStatus,
@@ -1465,9 +1287,7 @@ export const PeopleTaskStatusInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1465
1287
  numTasksCompleted: S.NullOr(S.Number),
1466
1288
  numTasksOverdue: S.NullOr(S.Number),
1467
1289
  numTasksDueSoon: S.NullOr(S.Number),
1468
- })).annotate({
1469
- identifier: "PeopleTaskStatusInfo",
1470
- });
1290
+ })).annotate({ identifier: "PeopleTaskStatusInfo" });
1471
1291
  export const PeopleSecurityTaskStatus = S.String;
1472
1292
  export const PeopleSecurityTaskDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
1473
1293
  status: PeopleSecurityTaskStatus,
@@ -1494,11 +1314,8 @@ export const PersonnelPerson = /*@__PURE__*/ S.suspend(() => S.Struct({
1494
1314
  deviceMonitoring: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1495
1315
  customOnboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1496
1316
  customOffboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
1497
- })).annotate({
1498
- identifier: "PersonnelPerson",
1499
- });
1500
- export const PaginatedResponsePersonnelPersonResultsDataList =
1501
- /*@__PURE__*/ S.Array(PersonnelPerson);
1317
+ })).annotate({ identifier: "PersonnelPerson" });
1318
+ export const PaginatedResponsePersonnelPersonResultsDataList = /*@__PURE__*/ S.Array(PersonnelPerson);
1502
1319
  export const PaginatedResponsePersonnelPersonResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1503
1320
  data: PaginatedResponsePersonnelPersonResultsDataList,
1504
1321
  pageInfo: PageInfo,
@@ -1514,19 +1331,12 @@ export const ListRiskSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1514
1331
  auditId: S.String.pipe(T.Label()),
1515
1332
  pageSize: S.optional(S.Number.pipe(T.Query())),
1516
1333
  pageCursor: S.optional(S.String.pipe(T.Query())),
1517
- }).pipe(T.Http({
1518
- method: "GET",
1519
- uri: "/audits/{auditId}/risks/snapshots",
1520
- code: 200,
1521
- }))).annotate({
1522
- identifier: "ListRiskSnapshotsRequest",
1523
- });
1334
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/risks/snapshots", code: 200 }))).annotate({ identifier: "ListRiskSnapshotsRequest" });
1524
1335
  export const RiskSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
1525
1336
  id: S.String,
1526
1337
  createdAt: S.String,
1527
1338
  })).annotate({ identifier: "RiskSnapshot" });
1528
- export const PaginatedResponseRiskSnapshotResultsDataList =
1529
- /*@__PURE__*/ S.Array(RiskSnapshot);
1339
+ export const PaginatedResponseRiskSnapshotResultsDataList = /*@__PURE__*/ S.Array(RiskSnapshot);
1530
1340
  export const PaginatedResponseRiskSnapshotResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1531
1341
  data: PaginatedResponseRiskSnapshotResultsDataList,
1532
1342
  pageInfo: PageInfo,
@@ -1540,19 +1350,13 @@ export const PaginatedResponseRiskSnapshot = /*@__PURE__*/ S.suspend(() => S.Str
1540
1350
  });
1541
1351
  export const ListShareInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1542
1352
  auditId: S.String.pipe(T.Label()),
1543
- }).pipe(T.Http({
1544
- method: "POST",
1545
- uri: "/audits/{auditId}/share-information-request-list",
1546
- code: 200,
1547
- }))).annotate({
1353
+ }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/share-information-request-list", code: 200 }))).annotate({
1548
1354
  identifier: "ListShareInformationRequestRequest",
1549
1355
  });
1550
1356
  export const AuditVendorStatus = S.String;
1551
- export const ListVendorsRequestVendorStatusesMatchesAnyList =
1552
- /*@__PURE__*/ S.Array(AuditVendorStatus);
1357
+ export const ListVendorsRequestVendorStatusesMatchesAnyList = /*@__PURE__*/ S.Array(AuditVendorStatus);
1553
1358
  export const AuditVendorRiskLevel = S.String;
1554
- export const ListVendorsRequestInherentRiskMatchesAnyList =
1555
- /*@__PURE__*/ S.Array(AuditVendorRiskLevel);
1359
+ export const ListVendorsRequestInherentRiskMatchesAnyList = /*@__PURE__*/ S.Array(AuditVendorRiskLevel);
1556
1360
  export const VendorOrderBy = S.String;
1557
1361
  export const ListVendorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1558
1362
  auditId: S.String.pipe(T.Label()),
@@ -1563,13 +1367,7 @@ export const ListVendorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1563
1367
  inherentRiskMatchesAny: S.optional(ListVendorsRequestInherentRiskMatchesAnyList.pipe(T.Query())),
1564
1368
  orderBy: S.optional(VendorOrderBy.pipe(T.Query())),
1565
1369
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
1566
- }).pipe(T.Http({
1567
- method: "GET",
1568
- uri: "/audits/{auditId}/managed-vendors",
1569
- code: 200,
1570
- }))).annotate({
1571
- identifier: "ListVendorsRequest",
1572
- });
1370
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/managed-vendors", code: 200 }))).annotate({ identifier: "ListVendorsRequest" });
1573
1371
  export const AuditVendorDataAgreements = /*@__PURE__*/ S.suspend(() => S.Struct({
1574
1372
  total: S.Number,
1575
1373
  complete: S.Number,
@@ -1588,8 +1386,7 @@ export const AuditVendor = /*@__PURE__*/ S.suspend(() => S.Struct({
1588
1386
  residualRisk: S.optional(S.NullOr(AuditVendorRiskLevel)),
1589
1387
  dataAgreements: S.optional(S.NullOr(AuditVendorDataAgreements)),
1590
1388
  })).annotate({ identifier: "AuditVendor" });
1591
- export const PaginatedResponseAuditVendorResultsDataList =
1592
- /*@__PURE__*/ S.Array(AuditVendor);
1389
+ export const PaginatedResponseAuditVendorResultsDataList = /*@__PURE__*/ S.Array(AuditVendor);
1593
1390
  export const PaginatedResponseAuditVendorResults = /*@__PURE__*/ S.suspend(() => S.Struct({
1594
1391
  data: PaginatedResponseAuditVendorResultsDataList,
1595
1392
  pageInfo: PageInfo,
@@ -1612,11 +1409,7 @@ export const UpdateAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() => S.Struct
1612
1409
  auditId: S.String.pipe(T.Label()),
1613
1410
  auditEvidenceId: S.String.pipe(T.Label()),
1614
1411
  statusUpdate: S.optional(UpdateAuditEvidenceRequestStatusUpdate),
1615
- }).pipe(T.Http({
1616
- method: "PATCH",
1617
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}",
1618
- code: 200,
1619
- }))).annotate({
1412
+ }).pipe(T.Http({ method: "PATCH", uri: "/audits/{auditId}/evidence/{auditEvidenceId}", code: 200 }))).annotate({
1620
1413
  identifier: "UpdateAuditEvidenceRequest",
1621
1414
  });
1622
1415
  export const UpdateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1632,8 +1425,7 @@ export const UpdateCommentForControlRequest = /*@__PURE__*/ S.suspend(() => S.St
1632
1425
  }))).annotate({
1633
1426
  identifier: "UpdateCommentForControlRequest",
1634
1427
  });
1635
- export const UpdateCommentForInformationRequestRequest =
1636
- /*@__PURE__*/ S.suspend(() => S.Struct({
1428
+ export const UpdateCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1637
1429
  auditId: S.String.pipe(T.Label()),
1638
1430
  requestId: S.String.pipe(T.Label()),
1639
1431
  commentId: S.String.pipe(T.Label()),
@@ -1646,10 +1438,9 @@ export const UpdateCommentForInformationRequestRequest =
1646
1438
  }))).annotate({
1647
1439
  identifier: "UpdateCommentForInformationRequestRequest",
1648
1440
  });
1649
- export const UpdateInformationRequestRequestFrameworkCodesList =
1650
- /*@__PURE__*/ S.Array(S.String);
1651
- export const UpdateInformationRequestRequestAdditionalControlIdsList =
1652
- /*@__PURE__*/ S.Array(S.String);
1441
+ export const UpdateInformationRequestRequestFrameworkCodesList = /*@__PURE__*/ S.Array(S.String);
1442
+ export const UpdateInformationRequestRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(S.String);
1443
+ export const UpdateInformationRequestRequestLinkedControlIdsList = /*@__PURE__*/ S.Array(S.String);
1653
1444
  export const UpdateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1654
1445
  auditId: S.String.pipe(T.Label()),
1655
1446
  requestId: S.String.pipe(T.Label()),
@@ -1661,6 +1452,7 @@ export const UpdateInformationRequestRequest = /*@__PURE__*/ S.suspend(() => S.S
1661
1452
  title: S.optional(S.String),
1662
1453
  cadence: S.optional(InformationRequestCadence),
1663
1454
  additionalControlIds: S.optional(UpdateInformationRequestRequestAdditionalControlIdsList),
1455
+ linkedControlIds: S.optional(UpdateInformationRequestRequestLinkedControlIdsList),
1664
1456
  }).pipe(T.Http({
1665
1457
  method: "PATCH",
1666
1458
  uri: "/audits/{auditId}/information-requests/{requestId}",
@@ -1675,11 +1467,7 @@ export const UpsertAssessmentForControlRequest = /*@__PURE__*/ S.suspend(() => S
1675
1467
  assessmentState: AuditControlAssessmentState,
1676
1468
  justification: S.String,
1677
1469
  auditorEmail: S.String,
1678
- }).pipe(T.Http({
1679
- method: "PUT",
1680
- uri: "/audits/{auditId}/controls/{controlId}/assessment",
1681
- code: 200,
1682
- }))).annotate({
1470
+ }).pipe(T.Http({ method: "PUT", uri: "/audits/{auditId}/controls/{controlId}/assessment", code: 200 }))).annotate({
1683
1471
  identifier: "UpsertAssessmentForControlRequest",
1684
1472
  });
1685
1473
  export const AuditorControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1687,9 +1475,7 @@ export const AuditorControlAssessment = /*@__PURE__*/ S.suspend(() => S.Struct({
1687
1475
  segmentId: S.String,
1688
1476
  assessmentState: AuditControlAssessmentState,
1689
1477
  justification: S.String,
1690
- })).annotate({
1691
- identifier: "AuditorControlAssessment",
1692
- });
1478
+ })).annotate({ identifier: "AuditorControlAssessment" });
1693
1479
  /** Accept evidence for an information request Accepts evidence for an information request, confirming that all submitted evidence meets audit requirements. This action changes the request's approvalStatus to an approved state and creates an activity log entry. Acceptance workflow: 1. Auditor reviews submitted evidence 2. If evidence is satisfactory, auditor calls this endpoint 3. Request status changes to approved state and is considered complete for this audit cycle Use this endpoint when: - All required evidence has been submitted - Evidence quality meets audit standards - Evidence addresses all specified framework codes - No additional information is needed Rate limit: 50 requests / minute. */
1694
1480
  export const acceptInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1695
1481
  input: AcceptInformationRequestEvidenceRequest,
@@ -1733,7 +1519,7 @@ export const createCommentForInformationRequest = /*@__PURE__*/ API.make(() => (
1733
1519
  /** Create a custom control for an audit Create a custom control for an audit. This endpoint supports classic audits only. Audits that use information request lists (IRL) are not supported and return a 422 error. Rate limit: 10 requests / minute. */
1734
1520
  export const createCustomControl = /*@__PURE__*/ API.make(() => ({
1735
1521
  input: CreateCustomControlRequest,
1736
- output: Control,
1522
+ output: AuditorApiControl,
1737
1523
  errors: [UnknownVantaError],
1738
1524
  protocol: VantaProtocol,
1739
1525
  retry: Retry.Retry,
@@ -1770,7 +1556,7 @@ export const deleteCommentForInformationRequest = /*@__PURE__*/ API.make(() => (
1770
1556
  protocol: VantaProtocol,
1771
1557
  retry: Retry.Retry,
1772
1558
  }));
1773
- /** Delete an information request for an audit Deletes an information request for an audit. This performs a soft delete, marking the request as deleted (setting `deletionDate`) while preserving it in the system for audit history and compliance tracking. Soft deletion allows: - Maintaining complete audit trail of all requests ever created - Retrieving deleted requests via `changedSinceDate` for synchronization After deletion: - The request will not appear in normal list responses (without `changedSinceDate`) - The request's `deletionDate` field will be populated Rate limit: 50 requests / minute. */
1559
+ /** Delete an information request for an audit Deletes an information request for an audit. This performs a soft delete, marking the request as deleted (setting `deletionDate`) while preserving it in the system for audit history and compliance tracking. Soft deletion allows: - Maintaining complete audit trail of all requests ever created - Retrieving deleted requests via `changedSinceDate` for synchronization After deletion: - The request remains in list responses with `deletionDate` set, even when `changedSinceDate` is omitted Rate limit: 50 requests / minute. */
1774
1560
  export const deleteInformationRequest = /*@__PURE__*/ API.make(() => ({
1775
1561
  input: DeleteInformationRequestRequest,
1776
1562
  output: DeleteInformationRequestResponse,
@@ -1794,8 +1580,9 @@ export const flagInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1794
1580
  protocol: VantaProtocol,
1795
1581
  retry: Retry.Retry,
1796
1582
  }));
1797
- /** Get audit by ID Returns a single audit by ID, scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. The response includes `segments`, the audit's scope. A live single-framework audit has one entry; a live multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. The top-level `framework` field is deprecated; use `segments` for framework identity. Rate limit: 250 requests / minute. */
1798
- export const getAudit = /*@__PURE__*/ API.make(() => ({
1583
+ /** Get audit by ID Returns a single audit by ID, scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. The response includes `segments`, the audit's scope. It returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. The top-level `framework` field is deprecated; use `segments` for in-scope frameworks. This endpoint returns 404 for a soft-deleted audit. Rate limit: 250 requests / minute. */
1584
+ export const getAudit =
1585
+ /*@__PURE__*/ API.make(() => ({
1799
1586
  input: GetAuditRequest,
1800
1587
  output: Audit,
1801
1588
  errors: [UnknownVantaError],
@@ -1818,7 +1605,7 @@ export const getAuditEvidenceComment = /*@__PURE__*/ API.make(() => ({
1818
1605
  protocol: VantaProtocol,
1819
1606
  retry: Retry.Retry,
1820
1607
  }));
1821
- /** Get an information request comment by ID Retrieves a single comment on an information request by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/information-requests/{requestId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments remain fetchable when the parent information request has been soft-deleted, so delayed webhook consumers can still resolve a comment ID after the request is deleted. Rate limit: 50 requests / minute. */
1608
+ /** Get an information request comment by ID Retrieves a single comment on an information request by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/information-requests/{requestId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments are only resolvable while their information request exists. Once the request itself is deleted, this endpoint returns a 4xx HTTP error instead of the comment. Check the request's `deletionDate` using `GET /audits/{auditId}/information-requests` before treating its comments as deleted too. Rate limit: 50 requests / minute. */
1822
1609
  export const getCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
1823
1610
  input: GetCommentForInformationRequestRequest,
1824
1611
  output: InformationRequestComment,
@@ -1826,7 +1613,7 @@ export const getCommentForInformationRequest = /*@__PURE__*/ API.make(() => ({
1826
1613
  protocol: VantaProtocol,
1827
1614
  retry: Retry.Retry,
1828
1615
  }));
1829
- /** Get framework codes for an audit Retrieves all valid framework codes for the specified audit. This endpoint helps users discover which framework codes are available for creating and updating information requests for this audit. Use this endpoint to: - Discover available framework codes before creating information requests - Validate framework codes against the audit's framework - Get context about what framework codes are available for the audit type Rate limit: 50 requests / minute. */
1616
+ /** Get framework codes for an audit Retrieves all valid framework codes for the specified audit. This endpoint helps users discover which framework codes are available for creating and updating information requests for this audit. Use this endpoint to: - Discover available framework codes (`frameworkCodes`, the original flat list) - Validate framework codes against the audit's frameworks - See which codes belong to which in-scope framework (`codesByFramework`) Rate limit: 50 requests / minute. */
1830
1617
  export const getFrameworkCodes = /*@__PURE__*/ API.make(() => ({
1831
1618
  input: GetFrameworkCodesRequest,
1832
1619
  output: FrameworkCodes,
@@ -1834,7 +1621,7 @@ export const getFrameworkCodes = /*@__PURE__*/ API.make(() => ({
1834
1621
  protocol: VantaProtocol,
1835
1622
  retry: Retry.Retry,
1836
1623
  }));
1837
- /** Get an information request by ID Retrieves a single information request by its ID for an audit, allowing external audit management systems to fetch the latest state of a specific request without paginating through the full list. Soft-deleted records (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the request has been deleted. Rate limit: 50 requests / minute. */
1624
+ /** Get an information request by ID Retrieves a single information request by its ID for an audit, allowing external audit management systems to fetch the latest state of a specific request without paginating through the full list. This endpoint returns a 4xx HTTP error for a soft-deleted information request. To confirm deletion, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted requests with `deletionDate` set. Rate limit: 50 requests / minute. */
1838
1625
  export const getInformationRequest = /*@__PURE__*/ API.make(() => ({
1839
1626
  input: GetInformationRequestRequest,
1840
1627
  output: InformationRequest,
@@ -1842,7 +1629,7 @@ export const getInformationRequest = /*@__PURE__*/ API.make(() => ({
1842
1629
  protocol: VantaProtocol,
1843
1630
  retry: Retry.Retry,
1844
1631
  }));
1845
- /** Get information request evidence by ID Retrieves a single evidence item attached to an information request by its ID. This endpoint always includes soft-deleted evidence (where `deletionDate !== null`), so an evidence ID surfaced by a `changedSinceDate` delta sync stays fetchable after the evidence is deleted. Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. Evidence is only resolvable while its information request exists. Once the request itself is deleted, this endpoint reports the request as not found — matching `GET /audits/{auditId}/information-requests/{requestId}/evidence`. Clients reconciling a deleted request should treat its evidence as gone with it. Evidence that the customer has not shared with the auditor is reported as not found, rather than distinguishing it from an ID that does not exist. Rate limit: 250 requests / minute. */
1632
+ /** Get information request evidence by ID Retrieves a single evidence item attached to an information request by its ID. This endpoint always includes soft-deleted evidence (where `deletionDate !== null`), so an evidence ID surfaced by a `changedSinceDate` delta sync stays fetchable after the evidence is deleted. Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. Evidence is only resolvable while its information request exists. Once the request itself is deleted, this endpoint returns a 4xx HTTP error instead of the evidence. Check the request's `deletionDate` using `GET /audits/{auditId}/information-requests` before treating its evidence as deleted too. Evidence that the customer has not shared with the auditor is reported as not found, rather than distinguishing it from an ID that does not exist. Rate limit: 250 requests / minute. */
1846
1633
  export const getInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1847
1634
  input: GetInformationRequestEvidenceRequest,
1848
1635
  output: InformationRequestEvidence,
@@ -1930,7 +1717,7 @@ export const listAuditRisks = /*@__PURE__*/ API.make(() => ({
1930
1717
  protocol: VantaProtocol,
1931
1718
  retry: Retry.Retry,
1932
1719
  }));
1933
- /** List audits Returns a paginated list of audits scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. Each audit includes `segments`, the audit's scope. A live single-framework audit has one entry; a live multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. The top-level `framework` field is deprecated; use `segments` for framework identity. Rate limit: 250 requests / minute. */
1720
+ /** List audits Returns a paginated list of audits scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. Each audit includes `segments`, the audit's scope. A live audit returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. The top-level `framework` field is deprecated; use `segments` for in-scope frameworks. This list may include soft-deleted audits so clients can reconcile deletions. Check `deletionDate`; a deleted audit has an empty `segments` list. Rate limit: 250 requests / minute. */
1934
1721
  export const listAudits = /*@__PURE__*/ API.make(() => ({
1935
1722
  input: ListAuditsRequest,
1936
1723
  output: PaginatedResponseAudit,
@@ -1962,7 +1749,7 @@ export const listCommentsForControl = /*@__PURE__*/ API.make(() => ({
1962
1749
  protocol: VantaProtocol,
1963
1750
  retry: Retry.Retry,
1964
1751
  }));
1965
- /** List comments for an information request Retrieves a paginated list of comments for an information request, enabling auditors to view communication history and collaborate with customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1752
+ /** List comments for an information request Retrieves a paginated list of comments for an information request, enabling auditors to view communication history and collaborate with customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. If the information request itself has been deleted, this endpoint returns a 4xx HTTP error instead of its comments. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1966
1753
  export const listCommentsForInformationRequest = /*@__PURE__*/ API.make(() => ({
1967
1754
  input: ListCommentsForInformationRequestRequest,
1968
1755
  output: PaginatedResponseInformationRequestComment,
@@ -1970,7 +1757,7 @@ export const listCommentsForInformationRequest = /*@__PURE__*/ API.make(() => ({
1970
1757
  protocol: VantaProtocol,
1971
1758
  retry: Retry.Retry,
1972
1759
  }));
1973
- /** List information request activity Retrieves a paginated list of activity logs for an information request, providing a complete audit trail of all changes and actions. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only activity created since that timestamp is returned 4. Process updates to track all changes to the information request 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1760
+ /** List information request activity Retrieves a paginated list of activity logs for an information request, providing an audit trail of the changes and actions taken on it. Activity recording Vanta's automated preparation of a request is never returned by this endpoint, so `fillOutcome` is always null here. Some internal status transitions are also withheld, and those are removed after a page is selected, so a page can contain fewer entries than `pageSize` — or none at all — while more pages remain. Follow `results.pageInfo.hasNextPage` rather than treating a short or empty page as the end of the list. If the information request has been deleted, this endpoint returns a 4xx HTTP error instead of its activity. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only activity created since that timestamp is returned 4. Process updates to track all changes to the information request 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1974
1761
  export const listInformationRequestActivity = /*@__PURE__*/ API.make(() => ({
1975
1762
  input: ListInformationRequestActivityRequest,
1976
1763
  output: PaginatedResponseInformationRequestActivityLog,
@@ -1978,7 +1765,7 @@ export const listInformationRequestActivity = /*@__PURE__*/ API.make(() => ({
1978
1765
  protocol: VantaProtocol,
1979
1766
  retry: Retry.Retry,
1980
1767
  }));
1981
- /** List evidence for an information request Retrieves a paginated list of all evidence attached to an information request, enabling auditors to review evidence submitted by customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only evidence created, modified, shared, or deleted since that timestamp is returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1768
+ /** List evidence for an information request Retrieves a paginated list of all evidence attached to an information request, enabling auditors to review evidence submitted by customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. If the information request itself has been deleted, this endpoint returns a 4xx HTTP error instead of its evidence. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only evidence created, modified, shared, or deleted since that timestamp is returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1982
1769
  export const listInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1983
1770
  input: ListInformationRequestEvidenceRequest,
1984
1771
  output: PaginatedResponseInformationRequestEvidence,
@@ -1986,7 +1773,7 @@ export const listInformationRequestEvidence = /*@__PURE__*/ API.make(() => ({
1986
1773
  protocol: VantaProtocol,
1987
1774
  retry: Retry.Retry,
1988
1775
  }));
1989
- /** List information requests for an audit Retrieves a paginated list of all information requests for an audit, enabling external audit management systems to display and track evidence requests. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only requests created, modified, or deleted since that timestamp are returned 4. Process updates and soft-deletes by checking the `deletionDate` field 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
1776
+ /** List information requests for an audit Retrieves a paginated list of all information requests for an audit, enabling external audit management systems to display and track evidence requests. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This is the only endpoint that returns a deleted information request. No webhook fires when a request is deleted. Endpoints under `/audits/{auditId}/information-requests/{requestId}` return a 4xx HTTP error for a deleted request. To confirm deletion, check the request's `deletionDate` in this list. Deleting a request does not set `deletionDate` on its comments or evidence or send delete events for them. Once this list confirms the request was deleted, treat its comments and evidence as deleted too. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only requests created, modified, or deleted since that timestamp are returned 4. Process updates and soft-deletes by checking the `deletionDate` field 5. Update your last sync timestamp to the current time `segmentIds` on each returned request is resolved against the audit's current scope. A scope-only change (a segment leaving or joining the audit without the request row being written) is not a delta-sync event. Re-fetch without `changedSinceDate`, or GET by id, to see the current projection. Rate limit: 50 requests / minute. */
1990
1777
  export const listInformationRequests = /*@__PURE__*/ API.make(() => ({
1991
1778
  input: ListInformationRequestsRequest,
1992
1779
  output: PaginatedResponseInformationRequest,
@@ -1994,7 +1781,7 @@ export const listInformationRequests = /*@__PURE__*/ API.make(() => ({
1994
1781
  protocol: VantaProtocol,
1995
1782
  retry: Retry.Retry,
1996
1783
  }));
1997
- /** List information requests linked to a control within an audit Returns a paginated list of active information requests linked to a specific control within an IRL audit. An information request is linked to a control either via its framework codes (`criteriaIds`) or via a direct association (`additionalControlIds`). Soft-deleted information requests are not included in the response. To synchronize deletions, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted records. Returns 404 when the control is not part of the audit. Returns an empty page when the control is part of the audit but has no active IRLs linked to it. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Rate limit: 50 requests / minute. */
1784
+ /** List information requests linked to a control within an audit Returns a paginated list of active information requests linked to a specific control within an IRL audit. Only links saved on the audit's current control rows are included. Soft-deleted information requests are not included in the response. To synchronize deletions, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted records. Returns 404 when the control is not part of the audit. Returns an empty page when the control is part of the audit but has no active IRLs linked to it. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Rate limit: 50 requests / minute. */
1998
1785
  export const listInformationRequestsForControl = /*@__PURE__*/ API.make(() => ({
1999
1786
  input: ListInformationRequestsForControlRequest,
2000
1787
  output: PaginatedResponseInformationRequest,
@@ -2090,7 +1877,7 @@ export const updateInformationRequest = /*@__PURE__*/ API.make(() => ({
2090
1877
  protocol: VantaProtocol,
2091
1878
  retry: Retry.Retry,
2092
1879
  }));
2093
- /** Upsert a control's assessment within an audit Records (upserts) an auditor's assessment state and justification for a control within an IRL audit — the API equivalent of assessing a control in the web app. Overwrites the single assessment for this control in the audit's program segment. The `assessmentState` must be valid for the segment's framework (the request is rejected otherwise). The acting auditor is identified by `auditorEmail`, which must belong to the audit firm making the request. Returns 404 when the control is not part of the audit or the auditor email does not resolve to a firm user. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Applies to both Full and Controlled Audit View audits. Rate limit: 10 requests / minute. */
1880
+ /** Upsert a control's assessment within an audit Records (upserts) an auditor's assessment state and justification for a control within an IRL audit — the API equivalent of assessing a control in the web app. Overwrites the assessment for this control in the chosen audit segment. `segmentId` may be any segment on the audit, `PROGRAM` or `SYSTEM` (see `segments` on the audit). It may be omitted only when the audit has exactly one segment. The `assessmentState` must be valid for that segment's framework (the request is rejected otherwise). The acting auditor is identified by `auditorEmail`, which must belong to the audit firm making the request. Returns 404 when the control is not part of the audit or the auditor email does not resolve to a firm user. Returns 422 when `segmentId` is omitted on an audit with more than one segment, when `segmentId` is not a segment on this audit, or when the control is not assigned to that segment for this audit. Applies to both Full and Controlled Audit View audits. Rate limit: 10 requests / minute. */
2094
1881
  export const upsertAssessmentForControl = /*@__PURE__*/ API.make(() => ({
2095
1882
  input: UpsertAssessmentForControlRequest,
2096
1883
  output: AuditorControlAssessment,