@distilled.cloud/vanta 1.0.0-rc.13 → 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 (50) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +3 -3
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +1 -1
  7. package/lib/errors.js.map +1 -1
  8. package/lib/index.d.ts +1 -1
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +1 -1
  11. package/lib/index.js.map +1 -1
  12. package/lib/protocol.d.ts +3 -3
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +2 -6
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +1 -1
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +1 -1
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/auditor_api.d.ts +97 -63
  21. package/lib/services/auditor_api.d.ts.map +1 -1
  22. package/lib/services/auditor_api.js +160 -373
  23. package/lib/services/auditor_api.js.map +1 -1
  24. package/lib/services/build_integrations.d.ts +82 -82
  25. package/lib/services/build_integrations.d.ts.map +1 -1
  26. package/lib/services/build_integrations.js +168 -309
  27. package/lib/services/build_integrations.js.map +1 -1
  28. package/lib/services/manage_vanta.d.ts +340 -38
  29. package/lib/services/manage_vanta.d.ts.map +1 -1
  30. package/lib/services/manage_vanta.js +676 -1287
  31. package/lib/services/manage_vanta.js.map +1 -1
  32. package/lib/services/webhooks.d.ts +7 -7
  33. package/lib/services/webhooks.d.ts.map +1 -1
  34. package/lib/services/webhooks.js +54 -142
  35. package/lib/services/webhooks.js.map +1 -1
  36. package/package.json +12 -10
  37. package/src/credentials.ts +7 -8
  38. package/src/errors.ts +5 -8
  39. package/src/index.ts +1 -5
  40. package/src/protocol.ts +25 -31
  41. package/src/retry.ts +2 -8
  42. package/src/services/auditor_api.ts +721 -1022
  43. package/src/services/build_integrations.ts +788 -1094
  44. package/src/services/manage_vanta.ts +2504 -3322
  45. package/src/services/webhooks.ts +309 -483
  46. package/lib/response-validation.test.d.ts +0 -4
  47. package/lib/response-validation.test.d.ts.map +0 -1
  48. package/lib/response-validation.test.js +0 -42
  49. package/lib/response-validation.test.js.map +0 -1
  50. package/src/response-validation.test.ts +0 -56
@@ -1,14 +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.ts";
5
- import {
6
- VantaProtocol,
7
- type VantaOpError,
8
- type VantaOpContext,
9
- } from "../protocol.ts";
10
4
  import { UnknownVantaError } from "../errors.ts";
5
+ import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
11
6
  import * as Retry from "../retry.ts";
7
+ import * as T from "../traits.ts";
12
8
 
13
9
  export type { VantaOpError, VantaOpContext };
14
10
 
@@ -18,29 +14,34 @@ export interface AcceptInformationRequestEvidenceRequest {
18
14
  /** Email of the auditor accepting the evidence. Must match an existing Vanta user who belongs to the audit firm making the API request. */
19
15
  auditorEmail: string;
20
16
  }
21
- export const AcceptInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(
22
- () =>
23
- S.Struct({
24
- auditId: S.String.pipe(T.Label()),
25
- requestId: S.String.pipe(T.Label()),
26
- auditorEmail: S.String,
27
- }).pipe(
28
- T.Http({
29
- method: "POST",
30
- uri: "/audits/{auditId}/information-requests/{requestId}/accept-evidence",
31
- code: 200,
32
- }),
33
- ),
17
+ export const AcceptInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
18
+ S.Struct({
19
+ auditId: S.String.pipe(T.Label()),
20
+ requestId: S.String.pipe(T.Label()),
21
+ auditorEmail: S.String,
22
+ }).pipe(
23
+ T.Http({
24
+ method: "POST",
25
+ uri: "/audits/{auditId}/information-requests/{requestId}/accept-evidence",
26
+ code: 200,
27
+ }),
28
+ ),
34
29
  ).annotate({
35
30
  identifier: "AcceptInformationRequestEvidenceRequest",
36
31
  }) as any as S.Schema<AcceptInformationRequestEvidenceRequest>;
37
32
 
38
- /** Additional control IDs beyond those automatically mapped from framework codes. Allows manual association with specific controls when automatic mapping is insufficient. Each ID should reference a valid control in your audit framework. */
33
+ /** Deprecated control-linkage field retained for response compatibility. It may contain control IDs supplied directly to the request, but it is not a complete or guaranteed-current list of controls linked to the request. Use `linkedControlIds` for the complete current list. */
39
34
  export type InformationRequestAdditionalControlIdsList = Array<string>;
40
35
  export const InformationRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(
41
36
  S.String,
42
37
  ) as any as S.Schema<InformationRequestAdditionalControlIdsList>;
43
38
 
39
+ /** The complete current set of control IDs linked to this request, including controls linked through framework codes and controls added directly. Each ID is returned by the audit controls endpoint. */
40
+ export type InformationRequestLinkedControlIdsList = Array<string>;
41
+ export const InformationRequestLinkedControlIdsList = /*@__PURE__*/ S.Array(
42
+ S.String,
43
+ ) as any as S.Schema<InformationRequestLinkedControlIdsList>;
44
+
44
45
  /** Current approval status of the information request, tracking its lifecycle through the audit process. The status progresses through the workflow: initial state → awaiting review → approved or flagged. Status can move between awaiting review and flagged states as evidence is reviewed and resubmitted. */
45
46
  export type InformationRequestApprovalStatus =
46
47
  | "NEEDS_EVIDENCE"
@@ -50,19 +51,21 @@ export type InformationRequestApprovalStatus =
50
51
  export const InformationRequestApprovalStatus = S.String;
51
52
 
52
53
  /** Frequency cadence for the information request, indicating how often it recurs. */
53
- export type InformationRequestCadence =
54
- | "ANNUALLY"
55
- | "BIANNUALLY"
56
- | "MONTHLY"
57
- | "QUARTERLY";
54
+ export type InformationRequestCadence = "ANNUALLY" | "BIANNUALLY" | "MONTHLY" | "QUARTERLY";
58
55
  export const InformationRequestCadence = S.String;
59
56
 
60
- /** The framework codes this request addresses. Links the request to specific compliance requirements. Can be an empty array if no framework codes are associated. These codes correspond to standards like SOC 2, ISO 27001, etc. */
57
+ /** Always empty on read. Use `linkedControlIds` for control linkage and `segmentIds` for request assignment. */
61
58
  export type InformationRequestFrameworkCodesList = Array<string>;
62
59
  export const InformationRequestFrameworkCodesList = /*@__PURE__*/ S.Array(
63
60
  S.String,
64
61
  ) as any as S.Schema<InformationRequestFrameworkCodesList>;
65
62
 
63
+ /** Audit segments this request is assigned to. Empty means unassigned. Resolved against the current audit scope — stale IDs are dropped. This field is a current-scope projection, not a stored watermark. An audit-scope change that drops or adds IDs here does not update creationDate, modificationDate, or deletionDate, so it does not appear in `changedSinceDate` delta sync on its own. Re-fetch the list without that parameter, or GET the request by id, to see the current projection. */
64
+ export type InformationRequestSegmentIdsList = Array<string>;
65
+ export const InformationRequestSegmentIdsList = /*@__PURE__*/ S.Array(
66
+ S.String,
67
+ ) as any as S.Schema<InformationRequestSegmentIdsList>;
68
+
66
69
  /** Type of information request, defining what scope of evidence is needed. - POINT_IN_TIME: Evidence for a specific moment (e.g., current state of a policy) - POPULATION: Evidence covering all items in a category (e.g., all employees) - SAMPLE: Evidence for a representative sample (e.g., 10 random customer records) */
67
70
  export type InformationRequestType = "POINT_IN_TIME" | "POPULATION" | "SAMPLE";
68
71
  export const InformationRequestType = S.String;
@@ -81,9 +84,7 @@ export const ResourceOwnerCase0 = /*@__PURE__*/ S.suspend(() =>
81
84
  id: S.String,
82
85
  type: ResourceOwnerCase0Type,
83
86
  }),
84
- ).annotate({
85
- identifier: "ResourceOwnerCase0",
86
- }) as any as S.Schema<ResourceOwnerCase0>;
87
+ ).annotate({ identifier: "ResourceOwnerCase0" }) as any as S.Schema<ResourceOwnerCase0>;
87
88
 
88
89
  export type ResourceOwnerCase1Type = "team";
89
90
  export const ResourceOwnerCase1Type = S.String;
@@ -99,9 +100,7 @@ export const ResourceOwnerCase1 = /*@__PURE__*/ S.suspend(() =>
99
100
  id: S.String,
100
101
  type: ResourceOwnerCase1Type,
101
102
  }),
102
- ).annotate({
103
- identifier: "ResourceOwnerCase1",
104
- }) as any as S.Schema<ResourceOwnerCase1>;
103
+ ).annotate({ identifier: "ResourceOwnerCase1" }) as any as S.Schema<ResourceOwnerCase1>;
105
104
 
106
105
  /** Represents either a user or a team owning a resource. */
107
106
  export type ResourceOwner = ResourceOwnerCase0 | ResourceOwnerCase1;
@@ -113,14 +112,18 @@ export interface InformationRequest {
113
112
  id: string;
114
113
  /** External unique ID to prevent duplicates across different audit systems. Used for idempotency when syncing data between external audit management systems and Vanta. Unlike `id`, this value is provided by the external system. */
115
114
  uniqueId: string;
116
- /** Additional control IDs beyond those automatically mapped from framework codes. Allows manual association with specific controls when automatic mapping is insufficient. Each ID should reference a valid control in your audit framework. */
115
+ /** Deprecated control-linkage field retained for response compatibility. It may contain control IDs supplied directly to the request, but it is not a complete or guaranteed-current list of controls linked to the request. Use `linkedControlIds` for the complete current list. */
117
116
  additionalControlIds: InformationRequestAdditionalControlIdsList;
117
+ /** The complete current set of control IDs linked to this request, including controls linked through framework codes and controls added directly. Each ID is returned by the audit controls endpoint. */
118
+ linkedControlIds: InformationRequestLinkedControlIdsList;
118
119
  /** Current approval status tracking the request's lifecycle through evidence submission and auditor review. */
119
120
  approvalStatus: InformationRequestApprovalStatus;
120
121
  /** How frequently this information request recurs (e.g., annual password policy reviews). Null for one-time requests. */
121
122
  cadence: InformationRequestCadence | null;
122
- /** The framework codes this request addresses. Links the request to specific compliance requirements. Can be an empty array if no framework codes are associated. These codes correspond to standards like SOC 2, ISO 27001, etc. */
123
+ /** Always empty on read. Use `linkedControlIds` for control linkage and `segmentIds` for request assignment. */
123
124
  frameworkCodes: InformationRequestFrameworkCodesList;
125
+ /** Audit segments this request is assigned to. Empty means unassigned. Resolved against the current audit scope — stale IDs are dropped. This field is a current-scope projection, not a stored watermark. An audit-scope change that drops or adds IDs here does not update creationDate, modificationDate, or deletionDate, so it does not appear in `changedSinceDate` delta sync on its own. Re-fetch the list without that parameter, or GET the request by id, to see the current projection. */
126
+ segmentIds: InformationRequestSegmentIdsList;
124
127
  /** Detailed description explaining what evidence is needed and why. Should provide clear instructions to help the customer understand what to submit. */
125
128
  description: string | null;
126
129
  /** The deadline by which the customer must fulfill this request. Null if no specific deadline is set. Format: ISO 8601 UTC timestamp. */
@@ -147,9 +150,11 @@ export const InformationRequest = /*@__PURE__*/ S.suspend(() =>
147
150
  id: S.String,
148
151
  uniqueId: S.String,
149
152
  additionalControlIds: InformationRequestAdditionalControlIdsList,
153
+ linkedControlIds: InformationRequestLinkedControlIdsList,
150
154
  approvalStatus: InformationRequestApprovalStatus,
151
155
  cadence: S.NullOr(InformationRequestCadence),
152
156
  frameworkCodes: InformationRequestFrameworkCodesList,
157
+ segmentIds: InformationRequestSegmentIdsList,
153
158
  description: S.NullOr(S.String),
154
159
  dueDate: S.NullOr(S.String),
155
160
  evidenceCaptureDate: S.NullOr(S.String),
@@ -161,9 +166,7 @@ export const InformationRequest = /*@__PURE__*/ S.suspend(() =>
161
166
  deletionDate: S.NullOr(S.String),
162
167
  ownerAssignment: S.NullOr(ResourceOwner),
163
168
  }),
164
- ).annotate({
165
- identifier: "InformationRequest",
166
- }) as any as S.Schema<InformationRequest>;
169
+ ).annotate({ identifier: "InformationRequest" }) as any as S.Schema<InformationRequest>;
167
170
 
168
171
  export interface CreateAuditorRequest {
169
172
  /** Email of the new user. */
@@ -179,9 +182,7 @@ export const CreateAuditorRequest = /*@__PURE__*/ S.suspend(() =>
179
182
  givenName: S.String,
180
183
  familyName: S.String,
181
184
  }).pipe(T.Http({ method: "POST", uri: "/auditors", code: 200 })),
182
- ).annotate({
183
- identifier: "CreateAuditorRequest",
184
- }) as any as S.Schema<CreateAuditorRequest>;
185
+ ).annotate({ identifier: "CreateAuditorRequest" }) as any as S.Schema<CreateAuditorRequest>;
185
186
 
186
187
  export interface Auditor {
187
188
  id: string;
@@ -214,21 +215,20 @@ export interface CreateCommentForAuditEvidenceRequest {
214
215
  /** When the comment was created in the external system */
215
216
  creationDate: string;
216
217
  }
217
- export const CreateCommentForAuditEvidenceRequest = /*@__PURE__*/ S.suspend(
218
- () =>
219
- S.Struct({
220
- auditId: S.String.pipe(T.Label()),
221
- auditEvidenceId: S.String.pipe(T.Label()),
222
- text: S.String,
223
- email: S.String,
224
- creationDate: S.String,
225
- }).pipe(
226
- T.Http({
227
- method: "POST",
228
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments",
229
- code: 200,
230
- }),
231
- ),
218
+ export const CreateCommentForAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
219
+ S.Struct({
220
+ auditId: S.String.pipe(T.Label()),
221
+ auditEvidenceId: S.String.pipe(T.Label()),
222
+ text: S.String,
223
+ email: S.String,
224
+ creationDate: S.String,
225
+ }).pipe(
226
+ T.Http({
227
+ method: "POST",
228
+ uri: "/audits/{auditId}/evidence/{auditEvidenceId}/comments",
229
+ code: 200,
230
+ }),
231
+ ),
232
232
  ).annotate({
233
233
  identifier: "CreateCommentForAuditEvidenceRequest",
234
234
  }) as any as S.Schema<CreateCommentForAuditEvidenceRequest>;
@@ -282,11 +282,7 @@ export const CreateCommentForControlRequest = /*@__PURE__*/ S.suspend(() =>
282
282
  email: S.String,
283
283
  creationDate: S.String,
284
284
  }).pipe(
285
- T.Http({
286
- method: "POST",
287
- uri: "/audits/{auditId}/controls/{controlId}/comments",
288
- code: 200,
289
- }),
285
+ T.Http({ method: "POST", uri: "/audits/{auditId}/controls/{controlId}/comments", code: 200 }),
290
286
  ),
291
287
  ).annotate({
292
288
  identifier: "CreateCommentForControlRequest",
@@ -319,9 +315,7 @@ export const AuditControlComment = /*@__PURE__*/ S.suspend(() =>
319
315
  email: S.NullOr(S.String),
320
316
  authorName: S.NullOr(S.String),
321
317
  }),
322
- ).annotate({
323
- identifier: "AuditControlComment",
324
- }) as any as S.Schema<AuditControlComment>;
318
+ ).annotate({ identifier: "AuditControlComment" }) as any as S.Schema<AuditControlComment>;
325
319
 
326
320
  export interface CreateCommentForInformationRequestRequest {
327
321
  auditId: string;
@@ -333,24 +327,23 @@ export interface CreateCommentForInformationRequestRequest {
333
327
  /** Timestamp when the comment was created in the external audit management system. This allows synchronizing comment timestamps from external systems. Format: ISO 8601 UTC timestamp. */
334
328
  creationDate: string;
335
329
  }
336
- export const CreateCommentForInformationRequestRequest =
337
- /*@__PURE__*/ S.suspend(() =>
338
- S.Struct({
339
- auditId: S.String.pipe(T.Label()),
340
- requestId: S.String.pipe(T.Label()),
341
- text: S.String,
342
- email: S.String,
343
- creationDate: S.String,
344
- }).pipe(
345
- T.Http({
346
- method: "POST",
347
- uri: "/audits/{auditId}/information-requests/{requestId}/comments",
348
- code: 200,
349
- }),
350
- ),
351
- ).annotate({
352
- identifier: "CreateCommentForInformationRequestRequest",
353
- }) as any as S.Schema<CreateCommentForInformationRequestRequest>;
330
+ export const CreateCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
331
+ S.Struct({
332
+ auditId: S.String.pipe(T.Label()),
333
+ requestId: S.String.pipe(T.Label()),
334
+ text: S.String,
335
+ email: S.String,
336
+ creationDate: S.String,
337
+ }).pipe(
338
+ T.Http({
339
+ method: "POST",
340
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments",
341
+ code: 200,
342
+ }),
343
+ ),
344
+ ).annotate({
345
+ identifier: "CreateCommentForInformationRequestRequest",
346
+ }) as any as S.Schema<CreateCommentForInformationRequestRequest>;
354
347
 
355
348
  /** A comment on an information request enables communication between auditors and customers regarding evidence requirements and submissions. These threaded discussions help clarify requests, explain or resolve questions about evidence, and are always visible to both parties once created. */
356
349
  export interface InformationRequestComment {
@@ -476,9 +469,7 @@ export const FrameworkSection = /*@__PURE__*/ S.suspend(() =>
476
469
  frameworkId: FrameworkSectionFrameworkId,
477
470
  sectionId: S.String,
478
471
  }),
479
- ).annotate({
480
- identifier: "FrameworkSection",
481
- }) as any as S.Schema<FrameworkSection>;
472
+ ).annotate({ identifier: "FrameworkSection" }) as any as S.Schema<FrameworkSection>;
482
473
 
483
474
  /** Framework sections that the control should be mapped to. */
484
475
  export type CreateCustomControlRequestSectionsList = Array<FrameworkSection>;
@@ -516,13 +507,7 @@ export const CreateCustomControlRequest = /*@__PURE__*/ S.suspend(() =>
516
507
  category: ControlDomain,
517
508
  sections: S.optional(S.NullOr(CreateCustomControlRequestSectionsList)),
518
509
  role: S.optional(S.NullOr(GdprRole)),
519
- }).pipe(
520
- T.Http({
521
- method: "POST",
522
- uri: "/audits/{auditId}/controls/custom-controls",
523
- code: 200,
524
- }),
525
- ),
510
+ }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/controls/custom-controls", code: 200 })),
526
511
  ).annotate({
527
512
  identifier: "CreateCustomControlRequest",
528
513
  }) as any as S.Schema<CreateCustomControlRequest>;
@@ -531,10 +516,10 @@ export type ControlSource = "Vanta" | "Custom";
531
516
  export const ControlSource = S.String;
532
517
 
533
518
  /** The security domains that the control belongs to. */
534
- export type ControlDomainsList = Array<string>;
535
- export const ControlDomainsList = /*@__PURE__*/ S.Array(
519
+ export type AuditorApiControlDomainsList = Array<string>;
520
+ export const AuditorApiControlDomainsList = /*@__PURE__*/ S.Array(
536
521
  S.String,
537
- ) as any as S.Schema<ControlDomainsList>;
522
+ ) as any as S.Schema<AuditorApiControlDomainsList>;
538
523
 
539
524
  export interface Owner {
540
525
  /** Unique identifier for the person. */
@@ -572,12 +557,12 @@ export const CustomField = /*@__PURE__*/ S.suspend(() =>
572
557
  ).annotate({ identifier: "CustomField" }) as any as S.Schema<CustomField>;
573
558
 
574
559
  /** The control's custom field values, if control custom fields is included in your Vanta instance. */
575
- export type ControlCustomFieldsList = Array<CustomField>;
576
- export const ControlCustomFieldsList = /*@__PURE__*/ S.Array(
560
+ export type AuditorApiControlCustomFieldsList = Array<CustomField>;
561
+ export const AuditorApiControlCustomFieldsList = /*@__PURE__*/ S.Array(
577
562
  CustomField,
578
- ) as any as S.Schema<ControlCustomFieldsList>;
563
+ ) as any as S.Schema<AuditorApiControlCustomFieldsList>;
579
564
 
580
- export interface Control {
565
+ export interface AuditorApiControl {
581
566
  /** The control's unique ID. */
582
567
  id: string;
583
568
  /** The control's external ID. */
@@ -589,50 +574,41 @@ export interface Control {
589
574
  /** The control's source, either "VANTA" or "CUSTOM". */
590
575
  source: ControlSource;
591
576
  /** The security domains that the control belongs to. */
592
- domains: ControlDomainsList;
577
+ domains: AuditorApiControlDomainsList;
593
578
  /** The control's owner. */
594
579
  owner: Owner | null;
595
580
  /** The control's GDPR role, if the control is a GDPR control. */
596
581
  role?: string | null;
597
582
  /** The control's custom field values, if control custom fields is included in your Vanta instance. */
598
- customFields: ControlCustomFieldsList;
583
+ customFields: AuditorApiControlCustomFieldsList;
599
584
  /** When the control was created. Returns null for Vanta library controls. */
600
585
  creationDate: string | null;
601
586
  /** When the control was last modified. Returns null for Vanta library controls. */
602
587
  modificationDate: string | null;
603
588
  }
604
- export const Control = /*@__PURE__*/ S.suspend(() =>
589
+ export const AuditorApiControl = /*@__PURE__*/ S.suspend(() =>
605
590
  S.Struct({
606
591
  id: S.String,
607
592
  externalId: S.NullOr(S.String),
608
593
  name: S.String,
609
594
  description: S.String,
610
595
  source: ControlSource,
611
- domains: ControlDomainsList,
596
+ domains: AuditorApiControlDomainsList,
612
597
  owner: S.NullOr(Owner),
613
598
  role: S.optional(S.NullOr(S.String)),
614
- customFields: ControlCustomFieldsList,
599
+ customFields: AuditorApiControlCustomFieldsList,
615
600
  creationDate: S.NullOr(S.String),
616
601
  modificationDate: S.NullOr(S.String),
617
602
  }),
618
- ).annotate({ identifier: "Control" }) as any as S.Schema<Control>;
603
+ ).annotate({ identifier: "AuditorApiControl" }) as any as S.Schema<AuditorApiControl>;
619
604
 
620
605
  /** A set of controls, referenced by id, to map the evidence to */
621
606
  export type CreateCustomEvidenceRequestRequestControlIdsList = Array<string>;
622
- export const CreateCustomEvidenceRequestRequestControlIdsList =
623
- /*@__PURE__*/ S.Array(
624
- S.String,
625
- ) as any as S.Schema<CreateCustomEvidenceRequestRequestControlIdsList>;
626
-
627
- export type RecurrenceDuration =
628
- | "P0D"
629
- | "P1D"
630
- | "P1W"
631
- | "P1M"
632
- | "P3M"
633
- | "P6M"
634
- | "P1Y"
635
- | "P2Y";
607
+ export const CreateCustomEvidenceRequestRequestControlIdsList = /*@__PURE__*/ S.Array(
608
+ S.String,
609
+ ) as any as S.Schema<CreateCustomEvidenceRequestRequestControlIdsList>;
610
+
611
+ export type RecurrenceDuration = "P0D" | "P1D" | "P1W" | "P1M" | "P3M" | "P6M" | "P1Y" | "P2Y";
636
612
  export const RecurrenceDuration = S.String;
637
613
 
638
614
  export interface CreateCustomEvidenceRequestRequest {
@@ -705,24 +681,19 @@ export const CustomEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
705
681
  reminderWindow: RecurrenceDuration,
706
682
  isRestricted: S.Boolean,
707
683
  }),
708
- ).annotate({
709
- identifier: "CustomEvidenceRequest",
710
- }) as any as S.Schema<CustomEvidenceRequest>;
684
+ ).annotate({ identifier: "CustomEvidenceRequest" }) as any as S.Schema<CustomEvidenceRequest>;
711
685
 
712
686
  /** Framework codes this request addresses. An empty array if no framework codes are associated. */
713
687
  export type CreateInformationRequestRequestFrameworkCodesList = Array<string>;
714
- export const CreateInformationRequestRequestFrameworkCodesList =
715
- /*@__PURE__*/ S.Array(
716
- S.String,
717
- ) as any as S.Schema<CreateInformationRequestRequestFrameworkCodesList>;
688
+ export const CreateInformationRequestRequestFrameworkCodesList = /*@__PURE__*/ S.Array(
689
+ S.String,
690
+ ) as any as S.Schema<CreateInformationRequestRequestFrameworkCodesList>;
718
691
 
719
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. Omit or pass an empty array for no direct control links. */
720
- export type CreateInformationRequestRequestAdditionalControlIdsList =
721
- Array<string>;
722
- export const CreateInformationRequestRequestAdditionalControlIdsList =
723
- /*@__PURE__*/ S.Array(
724
- S.String,
725
- ) as any as S.Schema<CreateInformationRequestRequestAdditionalControlIdsList>;
692
+ /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). Unknown IDs and controls without an active mapping to a framework in the audit are skipped. Omit or pass an empty array for no direct control links. */
693
+ export type CreateInformationRequestRequestAdditionalControlIdsList = Array<string>;
694
+ export const CreateInformationRequestRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(
695
+ S.String,
696
+ ) as any as S.Schema<CreateInformationRequestRequestAdditionalControlIdsList>;
726
697
 
727
698
  export interface CreateInformationRequestRequest {
728
699
  auditId: string;
@@ -742,7 +713,7 @@ export interface CreateInformationRequestRequest {
742
713
  dueDate?: string | null;
743
714
  /** Start date of the audit period. Evidence before this date may not be accepted. Null or omitted if not restricted. Format: ISO 8601 UTC timestamp. */
744
715
  evidenceCaptureDate?: string | null;
745
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. Omit or pass an empty array for no direct control links. */
716
+ /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). Unknown IDs and controls without an active mapping to a framework in the audit are skipped. Omit or pass an empty array for no direct control links. */
746
717
  additionalControlIds?: CreateInformationRequestRequestAdditionalControlIdsList;
747
718
  }
748
719
  export const CreateInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
@@ -756,16 +727,8 @@ export const CreateInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
756
727
  cadence: S.optional(S.NullOr(InformationRequestCadence)),
757
728
  dueDate: S.optional(S.NullOr(S.String)),
758
729
  evidenceCaptureDate: S.optional(S.NullOr(S.String)),
759
- additionalControlIds: S.optional(
760
- CreateInformationRequestRequestAdditionalControlIdsList,
761
- ),
762
- }).pipe(
763
- T.Http({
764
- method: "POST",
765
- uri: "/audits/{auditId}/information-requests",
766
- code: 200,
767
- }),
768
- ),
730
+ additionalControlIds: S.optional(CreateInformationRequestRequestAdditionalControlIdsList),
731
+ }).pipe(T.Http({ method: "POST", uri: "/audits/{auditId}/information-requests", code: 200 })),
769
732
  ).annotate({
770
733
  identifier: "CreateInformationRequestRequest",
771
734
  }) as any as S.Schema<CreateInformationRequestRequest>;
@@ -795,11 +758,9 @@ export const DeleteCommentForControlRequest = /*@__PURE__*/ S.suspend(() =>
795
758
  }) as any as S.Schema<DeleteCommentForControlRequest>;
796
759
 
797
760
  export interface DeleteCommentForControlResponse {}
798
- export const DeleteCommentForControlResponse = /*@__PURE__*/ S.suspend(() =>
799
- S.Struct({}),
800
- ).annotate({
801
- identifier: "DeleteCommentForControlResponse",
802
- }) as any as S.Schema<DeleteCommentForControlResponse>;
761
+ export const DeleteCommentForControlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate(
762
+ { identifier: "DeleteCommentForControlResponse" },
763
+ ) as any as S.Schema<DeleteCommentForControlResponse>;
803
764
 
804
765
  export interface DeleteCommentForInformationRequestRequest {
805
766
  auditId: string;
@@ -808,29 +769,29 @@ export interface DeleteCommentForInformationRequestRequest {
808
769
  /** Email address of the comment author. Must match an existing Vanta user who belongs to the audit firm making the API request. This email uniquely identifies the author across systems. */
809
770
  email: string;
810
771
  }
811
- export const DeleteCommentForInformationRequestRequest =
812
- /*@__PURE__*/ S.suspend(() =>
813
- S.Struct({
814
- auditId: S.String.pipe(T.Label()),
815
- requestId: S.String.pipe(T.Label()),
816
- commentId: S.String.pipe(T.Label()),
817
- email: S.String,
818
- }).pipe(
819
- T.Http({
820
- method: "DELETE",
821
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
822
- code: 200,
823
- }),
824
- ),
825
- ).annotate({
826
- identifier: "DeleteCommentForInformationRequestRequest",
827
- }) as any as S.Schema<DeleteCommentForInformationRequestRequest>;
772
+ export const DeleteCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
773
+ S.Struct({
774
+ auditId: S.String.pipe(T.Label()),
775
+ requestId: S.String.pipe(T.Label()),
776
+ commentId: S.String.pipe(T.Label()),
777
+ email: S.String,
778
+ }).pipe(
779
+ T.Http({
780
+ method: "DELETE",
781
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
782
+ code: 200,
783
+ }),
784
+ ),
785
+ ).annotate({
786
+ identifier: "DeleteCommentForInformationRequestRequest",
787
+ }) as any as S.Schema<DeleteCommentForInformationRequestRequest>;
828
788
 
829
789
  export interface DeleteCommentForInformationRequestResponse {}
830
- export const DeleteCommentForInformationRequestResponse =
831
- /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
832
- identifier: "DeleteCommentForInformationRequestResponse",
833
- }) as any as S.Schema<DeleteCommentForInformationRequestResponse>;
790
+ export const DeleteCommentForInformationRequestResponse = /*@__PURE__*/ S.suspend(() =>
791
+ S.Struct({}),
792
+ ).annotate({
793
+ identifier: "DeleteCommentForInformationRequestResponse",
794
+ }) as any as S.Schema<DeleteCommentForInformationRequestResponse>;
834
795
 
835
796
  export interface DeleteInformationRequestRequest {
836
797
  auditId: string;
@@ -887,9 +848,7 @@ export const DuplicateRequest = /*@__PURE__*/ S.suspend(() =>
887
848
  earlyAccessStartsAt: S.String,
888
849
  allowAuditorEmails: DuplicateRequestAllowAuditorEmailsList,
889
850
  }).pipe(T.Http({ method: "POST", uri: "/audits/duplicate", code: 200 })),
890
- ).annotate({
891
- identifier: "DuplicateRequest",
892
- }) as any as S.Schema<DuplicateRequest>;
851
+ ).annotate({ identifier: "DuplicateRequest" }) as any as S.Schema<DuplicateRequest>;
893
852
 
894
853
  /** Emails of auditors with access to audit */
895
854
  export type AuditAllowAuditorEmailsList = Array<string>;
@@ -900,6 +859,9 @@ export const AuditAllowAuditorEmailsList = /*@__PURE__*/ S.Array(
900
859
  export type AuditFocus = "EXTERNAL" | "INTERNAL";
901
860
  export const AuditFocus = S.String;
902
861
 
862
+ export type AuditIrlGenerationStatus = "PENDING" | "RUNNING" | "READY" | "FAILED";
863
+ export const AuditIrlGenerationStatus = S.String;
864
+
903
865
  /** Metadata about the auditor request list. This field is only present for IRL (Information Request List) based audits and will be undefined for standard audits. Use the presence of this field to differentiate between IRL and non-IRL audits. */
904
866
  export interface AuditAuditorRequestListMetadata {
905
867
  /** Timestamp when information requests were shared with the customer. Null if not shared. */
@@ -916,24 +878,16 @@ export const AuditAuditorRequestListMetadata = /*@__PURE__*/ S.suspend(() =>
916
878
  export type AuditSegmentKind = "PROGRAM" | "SYSTEM";
917
879
  export const AuditSegmentKind = S.String;
918
880
 
919
- /** The framework reached through a segment. */
881
+ /** The framework this segment is in. */
920
882
  export interface AuditSegmentFramework {
921
- /** The stable identifier of the framework (for example `soc2`). */
922
- id: string;
923
- /** The human-readable framework name. */
883
+ /** Display name of the framework. */
924
884
  displayName: string;
925
- /** The short framework name used in compact UI. */
926
- shortName: string;
927
885
  }
928
886
  export const AuditSegmentFramework = /*@__PURE__*/ S.suspend(() =>
929
887
  S.Struct({
930
- id: S.String,
931
888
  displayName: S.String,
932
- shortName: S.String,
933
889
  }),
934
- ).annotate({
935
- identifier: "AuditSegmentFramework",
936
- }) as any as S.Schema<AuditSegmentFramework>;
890
+ ).annotate({ identifier: "AuditSegmentFramework" }) as any as S.Schema<AuditSegmentFramework>;
937
891
 
938
892
  /** A business unit or information-system association on an audit segment. */
939
893
  export interface AuditSegmentAssociation {
@@ -947,9 +901,7 @@ export const AuditSegmentAssociation = /*@__PURE__*/ S.suspend(() =>
947
901
  id: S.String,
948
902
  displayName: S.String,
949
903
  }),
950
- ).annotate({
951
- identifier: "AuditSegmentAssociation",
952
- }) as any as S.Schema<AuditSegmentAssociation>;
904
+ ).annotate({ identifier: "AuditSegmentAssociation" }) as any as S.Schema<AuditSegmentAssociation>;
953
905
 
954
906
  export type AuditSoc2ReportType = "soc2type1" | "soc2type2";
955
907
  export const AuditSoc2ReportType = S.String;
@@ -980,11 +932,9 @@ export const AuditSoc2Deliverable = /*@__PURE__*/ S.suspend(() =>
980
932
  reportType: AuditSoc2ReportType,
981
933
  tscs: AuditSoc2DeliverableTscsList,
982
934
  }),
983
- ).annotate({
984
- identifier: "AuditSoc2Deliverable",
985
- }) as any as S.Schema<AuditSoc2Deliverable>;
935
+ ).annotate({ identifier: "AuditSoc2Deliverable" }) as any as S.Schema<AuditSoc2Deliverable>;
986
936
 
987
- /** One segment of an audit's scope. A live single-framework audit has exactly one entry; a live multi-framework audit has one per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. `displayName` is the segment label owned by audit scope (for example "{Framework}" or "{Framework} — {Business Unit}"). `soc2Deliverable` is the per-segment SOC 2 config, or null. `businessUnit` is set for program segments that are BU-scoped and null otherwise. `system` is set for system segments and null otherwise. */
937
+ /** One segment of an 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. Soft-deleted audits return an empty list. `displayName` is the segment label owned by audit scope (for example "{Framework}" or "{Framework} — {Business Unit}"). `soc2Deliverable` is the per-segment SOC 2 config, or null. `businessUnit` is set for program segments that are BU-scoped and null otherwise. `system` is set for system segments and null otherwise. */
988
938
  export interface AuditSegment {
989
939
  /** The unique identifier for the segment. */
990
940
  id: string;
@@ -992,7 +942,7 @@ export interface AuditSegment {
992
942
  kind: AuditSegmentKind;
993
943
  /** The segment's display label. Do not reconstruct this from framework + BU. */
994
944
  displayName: string;
995
- /** The framework reached through this segment. */
945
+ /** The framework this segment is in. */
996
946
  framework: AuditSegmentFramework;
997
947
  /** The business unit this program segment is scoped to, or null when the segment is not BU-scoped or the BU cannot be resolved. */
998
948
  businessUnit: AuditSegmentAssociation | null;
@@ -1013,7 +963,7 @@ export const AuditSegment = /*@__PURE__*/ S.suspend(() =>
1013
963
  }),
1014
964
  ).annotate({ identifier: "AuditSegment" }) as any as S.Schema<AuditSegment>;
1015
965
 
1016
- /** The audit's scope as a list of segments. Always present. A live single-framework audit has one entry; a multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. Prefer this over the deprecated top-level `framework` field. */
966
+ /** The audit's scope as a list of segments. Always present. A live audit returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. Soft-deleted audits return an empty list. Prefer this over the deprecated top-level `framework` field. */
1017
967
  export type AuditSegmentsList = Array<AuditSegment>;
1018
968
  export const AuditSegmentsList = /*@__PURE__*/ S.Array(
1019
969
  AuditSegment,
@@ -1034,7 +984,7 @@ export interface Audit {
1034
984
  auditEndDate: string;
1035
985
  /** Timestamp at which auditors gain access to the audit. Occurs before the audit window begins */
1036
986
  earlyAccessStartsAt: string | null;
1037
- /** Legacy singular framework display name from the audit type. Incomplete for a multi-framework audit — use `segments` for framework identity. */
987
+ /** Legacy singular framework display name from the audit type. Incomplete for a multi-framework audit — use `segments` instead. */
1038
988
  framework: string;
1039
989
  /** The display name for the audit. Returns the custom audit name if set, otherwise returns the framework name. */
1040
990
  displayName: string;
@@ -1052,9 +1002,11 @@ export interface Audit {
1052
1002
  completionDate: string | null;
1053
1003
  /** Audit focus determines if the audit is internal or external facing */
1054
1004
  auditFocus: AuditFocus;
1005
+ /** Generation status of this audit's Vanta-generated information request list (IRL). `PENDING`/`RUNNING` defer initial sync, `READY` permits a full sync, and `FAILED` is terminal. Null means the audit has no generated IRL. */
1006
+ irlGenerationStatus: AuditIrlGenerationStatus | null;
1055
1007
  /** Metadata about the auditor request list. This field is only present for IRL (Information Request List) based audits and will be undefined for standard audits. Use the presence of this field to differentiate between IRL and non-IRL audits. */
1056
1008
  auditorRequestListMetadata?: AuditAuditorRequestListMetadata;
1057
- /** The audit's scope as a list of segments. Always present. A live single-framework audit has one entry; a multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. Prefer this over the deprecated top-level `framework` field. */
1009
+ /** The audit's scope as a list of segments. Always present. A live audit returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. Soft-deleted audits return an empty list. Prefer this over the deprecated top-level `framework` field. */
1058
1010
  segments: AuditSegmentsList;
1059
1011
  }
1060
1012
  export const Audit = /*@__PURE__*/ S.suspend(() =>
@@ -1075,6 +1027,7 @@ export const Audit = /*@__PURE__*/ S.suspend(() =>
1075
1027
  modificationDate: S.NullOr(S.String),
1076
1028
  completionDate: S.NullOr(S.String),
1077
1029
  auditFocus: AuditFocus,
1030
+ irlGenerationStatus: S.NullOr(AuditIrlGenerationStatus),
1078
1031
  auditorRequestListMetadata: S.optional(AuditAuditorRequestListMetadata),
1079
1032
  segments: AuditSegmentsList,
1080
1033
  }),
@@ -1088,20 +1041,19 @@ export interface FlagInformationRequestEvidenceRequest {
1088
1041
  /** Detailed explanation of what issues were found with the evidence. This reason is visible to the customer and guides them on what to fix. Must be at least 1 character. */
1089
1042
  reason: string;
1090
1043
  }
1091
- export const FlagInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(
1092
- () =>
1093
- S.Struct({
1094
- auditId: S.String.pipe(T.Label()),
1095
- requestId: S.String.pipe(T.Label()),
1096
- auditorEmail: S.String,
1097
- reason: S.String,
1098
- }).pipe(
1099
- T.Http({
1100
- method: "POST",
1101
- uri: "/audits/{auditId}/information-requests/{requestId}/flag-evidence",
1102
- code: 200,
1103
- }),
1104
- ),
1044
+ export const FlagInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
1045
+ S.Struct({
1046
+ auditId: S.String.pipe(T.Label()),
1047
+ requestId: S.String.pipe(T.Label()),
1048
+ auditorEmail: S.String,
1049
+ reason: S.String,
1050
+ }).pipe(
1051
+ T.Http({
1052
+ method: "POST",
1053
+ uri: "/audits/{auditId}/information-requests/{requestId}/flag-evidence",
1054
+ code: 200,
1055
+ }),
1056
+ ),
1105
1057
  ).annotate({
1106
1058
  identifier: "FlagInformationRequestEvidenceRequest",
1107
1059
  }) as any as S.Schema<FlagInformationRequestEvidenceRequest>;
@@ -1113,9 +1065,7 @@ export const GetAuditRequest = /*@__PURE__*/ S.suspend(() =>
1113
1065
  S.Struct({
1114
1066
  auditId: S.String.pipe(T.Label()),
1115
1067
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}", code: 200 })),
1116
- ).annotate({
1117
- identifier: "GetAuditRequest",
1118
- }) as any as S.Schema<GetAuditRequest>;
1068
+ ).annotate({ identifier: "GetAuditRequest" }) as any as S.Schema<GetAuditRequest>;
1119
1069
 
1120
1070
  export interface GetAuditEvidenceRequest {
1121
1071
  auditId: string;
@@ -1126,15 +1076,9 @@ export const GetAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
1126
1076
  auditId: S.String.pipe(T.Label()),
1127
1077
  auditEvidenceId: S.String.pipe(T.Label()),
1128
1078
  }).pipe(
1129
- T.Http({
1130
- method: "GET",
1131
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}",
1132
- code: 200,
1133
- }),
1079
+ T.Http({ method: "GET", uri: "/audits/{auditId}/evidence/{auditEvidenceId}", code: 200 }),
1134
1080
  ),
1135
- ).annotate({
1136
- identifier: "GetAuditEvidenceRequest",
1137
- }) as any as S.Schema<GetAuditEvidenceRequest>;
1081
+ ).annotate({ identifier: "GetAuditEvidenceRequest" }) as any as S.Schema<GetAuditEvidenceRequest>;
1138
1082
 
1139
1083
  export type AuditEvidenceState =
1140
1084
  | "Accepted"
@@ -1165,9 +1109,7 @@ export const EvidenceControl = /*@__PURE__*/ S.suspend(() =>
1165
1109
  name: S.String,
1166
1110
  sectionNames: EvidenceControlSectionNamesList,
1167
1111
  }),
1168
- ).annotate({
1169
- identifier: "EvidenceControl",
1170
- }) as any as S.Schema<EvidenceControl>;
1112
+ ).annotate({ identifier: "EvidenceControl" }) as any as S.Schema<EvidenceControl>;
1171
1113
 
1172
1114
  /** The controls associated to this evidence */
1173
1115
  export type EvidenceRelatedControlsList = Array<EvidenceControl>;
@@ -1244,19 +1186,18 @@ export interface GetCommentForInformationRequestRequest {
1244
1186
  requestId: string;
1245
1187
  commentId: string;
1246
1188
  }
1247
- export const GetCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(
1248
- () =>
1249
- S.Struct({
1250
- auditId: S.String.pipe(T.Label()),
1251
- requestId: S.String.pipe(T.Label()),
1252
- commentId: S.String.pipe(T.Label()),
1253
- }).pipe(
1254
- T.Http({
1255
- method: "GET",
1256
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
1257
- code: 200,
1258
- }),
1259
- ),
1189
+ export const GetCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
1190
+ S.Struct({
1191
+ auditId: S.String.pipe(T.Label()),
1192
+ requestId: S.String.pipe(T.Label()),
1193
+ commentId: S.String.pipe(T.Label()),
1194
+ }).pipe(
1195
+ T.Http({
1196
+ method: "GET",
1197
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
1198
+ code: 200,
1199
+ }),
1200
+ ),
1260
1201
  ).annotate({
1261
1202
  identifier: "GetCommentForInformationRequestRequest",
1262
1203
  }) as any as S.Schema<GetCommentForInformationRequestRequest>;
@@ -1267,31 +1208,53 @@ export interface GetFrameworkCodesRequest {
1267
1208
  export const GetFrameworkCodesRequest = /*@__PURE__*/ S.suspend(() =>
1268
1209
  S.Struct({
1269
1210
  auditId: S.String.pipe(T.Label()),
1270
- }).pipe(
1271
- T.Http({
1272
- method: "GET",
1273
- uri: "/audits/{auditId}/framework-codes",
1274
- code: 200,
1275
- }),
1276
- ),
1277
- ).annotate({
1278
- identifier: "GetFrameworkCodesRequest",
1279
- }) as any as S.Schema<GetFrameworkCodesRequest>;
1211
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/framework-codes", code: 200 })),
1212
+ ).annotate({ identifier: "GetFrameworkCodesRequest" }) as any as S.Schema<GetFrameworkCodesRequest>;
1280
1213
 
1281
- /** Array of valid framework codes for the audit's framework (e.g., "CC6.1", "CC6.2"). These represent the different framework sections available for creating information requests. */
1214
+ /** Valid framework codes for this audit. */
1282
1215
  export type FrameworkCodesFrameworkCodesList = Array<string>;
1283
1216
  export const FrameworkCodesFrameworkCodesList = /*@__PURE__*/ S.Array(
1284
1217
  S.String,
1285
1218
  ) as any as S.Schema<FrameworkCodesFrameworkCodesList>;
1286
1219
 
1220
+ /** Valid codes for this framework, sorted. */
1221
+ export type FrameworkCodesByFrameworkCodesList = Array<string>;
1222
+ export const FrameworkCodesByFrameworkCodesList = /*@__PURE__*/ S.Array(
1223
+ S.String,
1224
+ ) as any as S.Schema<FrameworkCodesByFrameworkCodesList>;
1225
+
1226
+ export interface FrameworkCodesByFramework {
1227
+ /** Display name of the in-scope framework these codes belong to. */
1228
+ framework: string;
1229
+ /** Valid codes for this framework, sorted. */
1230
+ codes: FrameworkCodesByFrameworkCodesList;
1231
+ }
1232
+ export const FrameworkCodesByFramework = /*@__PURE__*/ S.suspend(() =>
1233
+ S.Struct({
1234
+ framework: S.String,
1235
+ codes: FrameworkCodesByFrameworkCodesList,
1236
+ }),
1237
+ ).annotate({
1238
+ identifier: "FrameworkCodesByFramework",
1239
+ }) as any as S.Schema<FrameworkCodesByFramework>;
1240
+
1241
+ /** Valid codes grouped by each distinct in-scope framework. A code that exists on two frameworks appears in both groups. Two segments that share a framework contribute one group. `framework` is the display name. */
1242
+ export type FrameworkCodesCodesByFrameworkList = Array<FrameworkCodesByFramework>;
1243
+ export const FrameworkCodesCodesByFrameworkList = /*@__PURE__*/ S.Array(
1244
+ FrameworkCodesByFramework,
1245
+ ) as any as S.Schema<FrameworkCodesCodesByFrameworkList>;
1246
+
1287
1247
  /** Framework codes response resource */
1288
1248
  export interface FrameworkCodes {
1289
- /** Array of valid framework codes for the audit's framework (e.g., "CC6.1", "CC6.2"). These represent the different framework sections available for creating information requests. */
1249
+ /** Valid framework codes for this audit. */
1290
1250
  frameworkCodes: FrameworkCodesFrameworkCodesList;
1251
+ /** Valid codes grouped by each distinct in-scope framework. A code that exists on two frameworks appears in both groups. Two segments that share a framework contribute one group. `framework` is the display name. */
1252
+ codesByFramework: FrameworkCodesCodesByFrameworkList;
1291
1253
  }
1292
1254
  export const FrameworkCodes = /*@__PURE__*/ S.suspend(() =>
1293
1255
  S.Struct({
1294
1256
  frameworkCodes: FrameworkCodesFrameworkCodesList,
1257
+ codesByFramework: FrameworkCodesCodesByFrameworkList,
1295
1258
  }),
1296
1259
  ).annotate({ identifier: "FrameworkCodes" }) as any as S.Schema<FrameworkCodes>;
1297
1260
 
@@ -1304,11 +1267,7 @@ export const GetInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
1304
1267
  auditId: S.String.pipe(T.Label()),
1305
1268
  requestId: S.String.pipe(T.Label()),
1306
1269
  }).pipe(
1307
- T.Http({
1308
- method: "GET",
1309
- uri: "/audits/{auditId}/information-requests/{requestId}",
1310
- code: 200,
1311
- }),
1270
+ T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests/{requestId}", code: 200 }),
1312
1271
  ),
1313
1272
  ).annotate({
1314
1273
  identifier: "GetInformationRequestRequest",
@@ -1319,19 +1278,18 @@ export interface GetInformationRequestEvidenceRequest {
1319
1278
  requestId: string;
1320
1279
  evidenceId: string;
1321
1280
  }
1322
- export const GetInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(
1323
- () =>
1324
- S.Struct({
1325
- auditId: S.String.pipe(T.Label()),
1326
- requestId: S.String.pipe(T.Label()),
1327
- evidenceId: S.String.pipe(T.Label()),
1328
- }).pipe(
1329
- T.Http({
1330
- method: "GET",
1331
- uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}",
1332
- code: 200,
1333
- }),
1334
- ),
1281
+ export const GetInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
1282
+ S.Struct({
1283
+ auditId: S.String.pipe(T.Label()),
1284
+ requestId: S.String.pipe(T.Label()),
1285
+ evidenceId: S.String.pipe(T.Label()),
1286
+ }).pipe(
1287
+ T.Http({
1288
+ method: "GET",
1289
+ uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}",
1290
+ code: 200,
1291
+ }),
1292
+ ),
1335
1293
  ).annotate({
1336
1294
  identifier: "GetInformationRequestEvidenceRequest",
1337
1295
  }) as any as S.Schema<GetInformationRequestEvidenceRequest>;
@@ -1364,9 +1322,7 @@ export const UploadedDocumentEvidence = /*@__PURE__*/ S.suspend(() =>
1364
1322
  mimeType: S.String,
1365
1323
  url: S.String,
1366
1324
  }),
1367
- ).annotate({
1368
- identifier: "UploadedDocumentEvidence",
1369
- }) as any as S.Schema<UploadedDocumentEvidence>;
1325
+ ).annotate({ identifier: "UploadedDocumentEvidence" }) as any as S.Schema<UploadedDocumentEvidence>;
1370
1326
 
1371
1327
  /** Evidence in the form of a link to external documentation or resources. */
1372
1328
  export interface LinkEvidence {
@@ -1394,9 +1350,7 @@ export const ObservationEvidence = /*@__PURE__*/ S.suspend(() =>
1394
1350
  S.Struct({
1395
1351
  observationDetails: S.String,
1396
1352
  }),
1397
- ).annotate({
1398
- identifier: "ObservationEvidence",
1399
- }) as any as S.Schema<ObservationEvidence>;
1353
+ ).annotate({ identifier: "ObservationEvidence" }) as any as S.Schema<ObservationEvidence>;
1400
1354
 
1401
1355
  /** Information about the user who added this file version to the document. Undefined if the user information is not available. */
1402
1356
  export interface VantaDocumentEvidenceAddedBy {
@@ -1465,11 +1419,8 @@ export const VantaDocumentLinkEvidence = /*@__PURE__*/ S.suspend(() =>
1465
1419
  }) as any as S.Schema<VantaDocumentLinkEvidence>;
1466
1420
 
1467
1421
  /** The file or link associated with this document version. Use the `type` discriminator to determine whether it's an uploaded file or an external link. */
1468
- export type VantaDocumentEvidenceFile =
1469
- | VantaDocumentUploadedEvidence
1470
- | VantaDocumentLinkEvidence;
1471
- export const VantaDocumentEvidenceFile =
1472
- S.Unknown as any as S.Schema<VantaDocumentEvidenceFile>;
1422
+ export type VantaDocumentEvidenceFile = VantaDocumentUploadedEvidence | VantaDocumentLinkEvidence;
1423
+ export const VantaDocumentEvidenceFile = S.Unknown as any as S.Schema<VantaDocumentEvidenceFile>;
1473
1424
 
1474
1425
  /** Evidence in the form of a Vanta Document. Vanta Documents are managed documents with metadata like expiration dates and versioning. They can either be uploaded files stored in Vanta or links to external documentation. */
1475
1426
  export interface VantaDocumentEvidence {
@@ -1495,9 +1446,7 @@ export const VantaDocumentEvidence = /*@__PURE__*/ S.suspend(() =>
1495
1446
  documentVersionId: S.String,
1496
1447
  file: VantaDocumentEvidenceFile,
1497
1448
  }),
1498
- ).annotate({
1499
- identifier: "VantaDocumentEvidence",
1500
- }) as any as S.Schema<VantaDocumentEvidence>;
1449
+ ).annotate({ identifier: "VantaDocumentEvidence" }) as any as S.Schema<VantaDocumentEvidence>;
1501
1450
 
1502
1451
  /** Information about the user who last edited this policy version. Undefined if the user information is not available. */
1503
1452
  export type VantaPolicyEvidenceLastEditedBy = VantaDocumentEvidenceAddedBy;
@@ -1527,9 +1476,7 @@ export const VantaPolicyEvidenceFile = /*@__PURE__*/ S.suspend(() =>
1527
1476
  filename: S.optional(S.String),
1528
1477
  id: S.String,
1529
1478
  }),
1530
- ).annotate({
1531
- identifier: "VantaPolicyEvidenceFile",
1532
- }) as any as S.Schema<VantaPolicyEvidenceFile>;
1479
+ ).annotate({ identifier: "VantaPolicyEvidenceFile" }) as any as S.Schema<VantaPolicyEvidenceFile>;
1533
1480
 
1534
1481
  /** Evidence in the form of a Vanta Policy. Vanta Policies are compliance policies with metadata like locale, effective dates, and versioning. Policies are always uploaded files stored in Vanta's system. */
1535
1482
  export interface VantaPolicyEvidence {
@@ -1561,17 +1508,9 @@ export const VantaPolicyEvidence = /*@__PURE__*/ S.suspend(() =>
1561
1508
  policyVersionFileId: S.String,
1562
1509
  file: VantaPolicyEvidenceFile,
1563
1510
  }),
1564
- ).annotate({
1565
- identifier: "VantaPolicyEvidence",
1566
- }) as any as S.Schema<VantaPolicyEvidence>;
1511
+ ).annotate({ identifier: "VantaPolicyEvidence" }) as any as S.Schema<VantaPolicyEvidence>;
1567
1512
 
1568
- export type VantaTestRunStatus =
1569
- | "NA"
1570
- | "IN_PROGRESS"
1571
- | "FAIL"
1572
- | "PASS"
1573
- | "INVALID"
1574
- | "DISABLED";
1513
+ export type VantaTestRunStatus = "NA" | "IN_PROGRESS" | "FAIL" | "PASS" | "INVALID" | "DISABLED";
1575
1514
  export const VantaTestRunStatus = S.String;
1576
1515
 
1577
1516
  export type VantaTestFileType =
@@ -1593,9 +1532,7 @@ export const VantaTestEvidenceFile = /*@__PURE__*/ S.suspend(() =>
1593
1532
  mimeType: S.String,
1594
1533
  url: S.String,
1595
1534
  }),
1596
- ).annotate({
1597
- identifier: "VantaTestEvidenceFile",
1598
- }) as any as S.Schema<VantaTestEvidenceFile>;
1535
+ ).annotate({ identifier: "VantaTestEvidenceFile" }) as any as S.Schema<VantaTestEvidenceFile>;
1599
1536
 
1600
1537
  /** Evidence in the form of a Vanta automated test run. Vanta Tests are automated compliance tests with metadata like test status, execution time, and file type. Tests generate evidence files that can be workpapers, raw data, or API request logs. */
1601
1538
  export interface VantaTestEvidence {
@@ -1624,9 +1561,7 @@ export const VantaTestEvidence = /*@__PURE__*/ S.suspend(() =>
1624
1561
  fileType: VantaTestFileType,
1625
1562
  file: VantaTestEvidenceFile,
1626
1563
  }),
1627
- ).annotate({
1628
- identifier: "VantaTestEvidence",
1629
- }) as any as S.Schema<VantaTestEvidence>;
1564
+ ).annotate({ identifier: "VantaTestEvidence" }) as any as S.Schema<VantaTestEvidence>;
1630
1565
 
1631
1566
  /** The outcome status of the test run. */
1632
1567
  export type VantaTestSnapshotEvidenceTestRunStatus =
@@ -1713,22 +1648,21 @@ export interface GetInformationRequestTestSnapshotEvidenceDetailRequest {
1713
1648
  requestId: string;
1714
1649
  evidenceId: string;
1715
1650
  }
1716
- export const GetInformationRequestTestSnapshotEvidenceDetailRequest =
1717
- /*@__PURE__*/ S.suspend(() =>
1718
- S.Struct({
1719
- auditId: S.String.pipe(T.Label()),
1720
- requestId: S.String.pipe(T.Label()),
1721
- evidenceId: S.String.pipe(T.Label()),
1722
- }).pipe(
1723
- T.Http({
1724
- method: "GET",
1725
- uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot",
1726
- code: 200,
1727
- }),
1728
- ),
1729
- ).annotate({
1730
- identifier: "GetInformationRequestTestSnapshotEvidenceDetailRequest",
1731
- }) as any as S.Schema<GetInformationRequestTestSnapshotEvidenceDetailRequest>;
1651
+ export const GetInformationRequestTestSnapshotEvidenceDetailRequest = /*@__PURE__*/ S.suspend(() =>
1652
+ S.Struct({
1653
+ auditId: S.String.pipe(T.Label()),
1654
+ requestId: S.String.pipe(T.Label()),
1655
+ evidenceId: S.String.pipe(T.Label()),
1656
+ }).pipe(
1657
+ T.Http({
1658
+ method: "GET",
1659
+ uri: "/audits/{auditId}/information-requests/{requestId}/evidence/{evidenceId}/test-snapshot",
1660
+ code: 200,
1661
+ }),
1662
+ ),
1663
+ ).annotate({
1664
+ identifier: "GetInformationRequestTestSnapshotEvidenceDetailRequest",
1665
+ }) as any as S.Schema<GetInformationRequestTestSnapshotEvidenceDetailRequest>;
1732
1666
 
1733
1667
  /** Integration metadata for a test, mirroring the Vanta web app. */
1734
1668
  export interface VantaTestSnapshotIntegration {
@@ -1745,23 +1679,20 @@ export const VantaTestSnapshotIntegration = /*@__PURE__*/ S.suspend(() =>
1745
1679
  }) as any as S.Schema<VantaTestSnapshotIntegration>;
1746
1680
 
1747
1681
  /** Integrations whose data feeds the test. */
1748
- export type VantaTestSnapshotEvidenceDetailIntegrationsList =
1749
- Array<VantaTestSnapshotIntegration>;
1750
- export const VantaTestSnapshotEvidenceDetailIntegrationsList =
1751
- /*@__PURE__*/ S.Array(
1752
- VantaTestSnapshotIntegration,
1753
- ) as any as S.Schema<VantaTestSnapshotEvidenceDetailIntegrationsList>;
1682
+ export type VantaTestSnapshotEvidenceDetailIntegrationsList = Array<VantaTestSnapshotIntegration>;
1683
+ export const VantaTestSnapshotEvidenceDetailIntegrationsList = /*@__PURE__*/ S.Array(
1684
+ VantaTestSnapshotIntegration,
1685
+ ) as any as S.Schema<VantaTestSnapshotEvidenceDetailIntegrationsList>;
1754
1686
 
1755
1687
  export interface VantaTestSnapshotSlaRemediationSettings {
1756
1688
  numericValue: number;
1757
1689
  unit: string | null;
1758
1690
  }
1759
- export const VantaTestSnapshotSlaRemediationSettings = /*@__PURE__*/ S.suspend(
1760
- () =>
1761
- S.Struct({
1762
- numericValue: S.Number,
1763
- unit: S.NullOr(S.String),
1764
- }),
1691
+ export const VantaTestSnapshotSlaRemediationSettings = /*@__PURE__*/ S.suspend(() =>
1692
+ S.Struct({
1693
+ numericValue: S.Number,
1694
+ unit: S.NullOr(S.String),
1695
+ }),
1765
1696
  ).annotate({
1766
1697
  identifier: "VantaTestSnapshotSlaRemediationSettings",
1767
1698
  }) as any as S.Schema<VantaTestSnapshotSlaRemediationSettings>;
@@ -1799,12 +1730,10 @@ export const VantaTestSnapshotRawTestDataRow = /*@__PURE__*/ S.suspend(() =>
1799
1730
  }) as any as S.Schema<VantaTestSnapshotRawTestDataRow>;
1800
1731
 
1801
1732
  /** Raw test data captured at snapshot time. */
1802
- export type VantaTestSnapshotEvidenceDetailRawTestDataList =
1803
- Array<VantaTestSnapshotRawTestDataRow>;
1804
- export const VantaTestSnapshotEvidenceDetailRawTestDataList =
1805
- /*@__PURE__*/ S.Array(
1806
- VantaTestSnapshotRawTestDataRow,
1807
- ) as any as S.Schema<VantaTestSnapshotEvidenceDetailRawTestDataList>;
1733
+ export type VantaTestSnapshotEvidenceDetailRawTestDataList = Array<VantaTestSnapshotRawTestDataRow>;
1734
+ export const VantaTestSnapshotEvidenceDetailRawTestDataList = /*@__PURE__*/ S.Array(
1735
+ VantaTestSnapshotRawTestDataRow,
1736
+ ) as any as S.Schema<VantaTestSnapshotEvidenceDetailRawTestDataList>;
1808
1737
 
1809
1738
  export interface VantaTestSnapshotExcludedItem {
1810
1739
  id: string;
@@ -1819,12 +1748,10 @@ export const VantaTestSnapshotExcludedItem = /*@__PURE__*/ S.suspend(() =>
1819
1748
  identifier: "VantaTestSnapshotExcludedItem",
1820
1749
  }) as any as S.Schema<VantaTestSnapshotExcludedItem>;
1821
1750
 
1822
- export type VantaTestSnapshotExcludedItemGroupEntitiesList =
1823
- Array<VantaTestSnapshotExcludedItem>;
1824
- export const VantaTestSnapshotExcludedItemGroupEntitiesList =
1825
- /*@__PURE__*/ S.Array(
1826
- VantaTestSnapshotExcludedItem,
1827
- ) as any as S.Schema<VantaTestSnapshotExcludedItemGroupEntitiesList>;
1751
+ export type VantaTestSnapshotExcludedItemGroupEntitiesList = Array<VantaTestSnapshotExcludedItem>;
1752
+ export const VantaTestSnapshotExcludedItemGroupEntitiesList = /*@__PURE__*/ S.Array(
1753
+ VantaTestSnapshotExcludedItem,
1754
+ ) as any as S.Schema<VantaTestSnapshotExcludedItemGroupEntitiesList>;
1828
1755
 
1829
1756
  export interface VantaTestSnapshotExcludedItemGroup {
1830
1757
  reason: string;
@@ -1841,17 +1768,15 @@ export const VantaTestSnapshotExcludedItemGroup = /*@__PURE__*/ S.suspend(() =>
1841
1768
 
1842
1769
  export type VantaTestSnapshotOutOfScopeResourcesTestLevelList =
1843
1770
  Array<VantaTestSnapshotExcludedItemGroup>;
1844
- export const VantaTestSnapshotOutOfScopeResourcesTestLevelList =
1845
- /*@__PURE__*/ S.Array(
1846
- VantaTestSnapshotExcludedItemGroup,
1847
- ) as any as S.Schema<VantaTestSnapshotOutOfScopeResourcesTestLevelList>;
1771
+ export const VantaTestSnapshotOutOfScopeResourcesTestLevelList = /*@__PURE__*/ S.Array(
1772
+ VantaTestSnapshotExcludedItemGroup,
1773
+ ) as any as S.Schema<VantaTestSnapshotOutOfScopeResourcesTestLevelList>;
1848
1774
 
1849
1775
  export type VantaTestSnapshotFrameworkExclusionGroupedByReasonList =
1850
1776
  Array<VantaTestSnapshotExcludedItemGroup>;
1851
- export const VantaTestSnapshotFrameworkExclusionGroupedByReasonList =
1852
- /*@__PURE__*/ S.Array(
1853
- VantaTestSnapshotExcludedItemGroup,
1854
- ) as any as S.Schema<VantaTestSnapshotFrameworkExclusionGroupedByReasonList>;
1777
+ export const VantaTestSnapshotFrameworkExclusionGroupedByReasonList = /*@__PURE__*/ S.Array(
1778
+ VantaTestSnapshotExcludedItemGroup,
1779
+ ) as any as S.Schema<VantaTestSnapshotFrameworkExclusionGroupedByReasonList>;
1855
1780
 
1856
1781
  export interface VantaTestSnapshotFrameworkExclusion {
1857
1782
  frameworkId: string;
@@ -1870,22 +1795,20 @@ export const VantaTestSnapshotFrameworkExclusion = /*@__PURE__*/ S.suspend(() =>
1870
1795
 
1871
1796
  export type VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList =
1872
1797
  Array<VantaTestSnapshotFrameworkExclusion>;
1873
- export const VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList =
1874
- /*@__PURE__*/ S.Array(
1875
- VantaTestSnapshotFrameworkExclusion,
1876
- ) as any as S.Schema<VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList>;
1798
+ export const VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList = /*@__PURE__*/ S.Array(
1799
+ VantaTestSnapshotFrameworkExclusion,
1800
+ ) as any as S.Schema<VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList>;
1877
1801
 
1878
1802
  /** Resources excluded from the test at snapshot time, grouped by exclusion reason. `testLevel` contains resources the customer disabled for the test; `frameworkLevel` contains resources scoped out by the framework's segment configuration. */
1879
1803
  export interface VantaTestSnapshotOutOfScopeResources {
1880
1804
  testLevel: VantaTestSnapshotOutOfScopeResourcesTestLevelList;
1881
1805
  frameworkLevel: VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList;
1882
1806
  }
1883
- export const VantaTestSnapshotOutOfScopeResources = /*@__PURE__*/ S.suspend(
1884
- () =>
1885
- S.Struct({
1886
- testLevel: VantaTestSnapshotOutOfScopeResourcesTestLevelList,
1887
- frameworkLevel: VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList,
1888
- }),
1807
+ export const VantaTestSnapshotOutOfScopeResources = /*@__PURE__*/ S.suspend(() =>
1808
+ S.Struct({
1809
+ testLevel: VantaTestSnapshotOutOfScopeResourcesTestLevelList,
1810
+ frameworkLevel: VantaTestSnapshotOutOfScopeResourcesFrameworkLevelList,
1811
+ }),
1889
1812
  ).annotate({
1890
1813
  identifier: "VantaTestSnapshotOutOfScopeResources",
1891
1814
  }) as any as S.Schema<VantaTestSnapshotOutOfScopeResources>;
@@ -1917,12 +1840,10 @@ export const VantaTestSnapshotApiRequest = /*@__PURE__*/ S.suspend(() =>
1917
1840
  }) as any as S.Schema<VantaTestSnapshotApiRequest>;
1918
1841
 
1919
1842
  /** API requests captured during the test run. Absent when the snapshot data could not be loaded. Empty array when the test does not perform API introspection. */
1920
- export type VantaTestSnapshotEvidenceDetailApiRequestsList =
1921
- Array<VantaTestSnapshotApiRequest>;
1922
- export const VantaTestSnapshotEvidenceDetailApiRequestsList =
1923
- /*@__PURE__*/ S.Array(
1924
- VantaTestSnapshotApiRequest,
1925
- ) as any as S.Schema<VantaTestSnapshotEvidenceDetailApiRequestsList>;
1843
+ export type VantaTestSnapshotEvidenceDetailApiRequestsList = Array<VantaTestSnapshotApiRequest>;
1844
+ export const VantaTestSnapshotEvidenceDetailApiRequestsList = /*@__PURE__*/ S.Array(
1845
+ VantaTestSnapshotApiRequest,
1846
+ ) as any as S.Schema<VantaTestSnapshotEvidenceDetailApiRequestsList>;
1926
1847
 
1927
1848
  /** Detail response for a captured automated-test snapshot evidence row. Combines the test-level metadata (description, integrations, SLA remediation) with a uniform raw-data array so external clients see the same shape regardless of whether the snapshot was structured or unstructured. */
1928
1849
  export interface VantaTestSnapshotEvidenceDetail {
@@ -1968,13 +1889,7 @@ export interface GetOrganizationInformationRequest {
1968
1889
  export const GetOrganizationInformationRequest = /*@__PURE__*/ S.suspend(() =>
1969
1890
  S.Struct({
1970
1891
  auditId: S.String.pipe(T.Label()),
1971
- }).pipe(
1972
- T.Http({
1973
- method: "GET",
1974
- uri: "/audits/{auditId}/organization/information",
1975
- code: 200,
1976
- }),
1977
- ),
1892
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/organization/information", code: 200 })),
1978
1893
  ).annotate({
1979
1894
  identifier: "GetOrganizationInformationRequest",
1980
1895
  }) as any as S.Schema<GetOrganizationInformationRequest>;
@@ -2034,23 +1949,17 @@ export const GetOrganizationNotificationsRequest = /*@__PURE__*/ S.suspend(() =>
2034
1949
  S.Struct({
2035
1950
  auditId: S.String.pipe(T.Label()),
2036
1951
  }).pipe(
2037
- T.Http({
2038
- method: "GET",
2039
- uri: "/audits/{auditId}/organization/notifications",
2040
- code: 200,
2041
- }),
1952
+ T.Http({ method: "GET", uri: "/audits/{auditId}/organization/notifications", code: 200 }),
2042
1953
  ),
2043
1954
  ).annotate({
2044
1955
  identifier: "GetOrganizationNotificationsRequest",
2045
1956
  }) as any as S.Schema<GetOrganizationNotificationsRequest>;
2046
1957
 
2047
1958
  /** Channels on which the personnel reminder digest is delivered (e.g. `["EMAIL"]` or `["EMAIL", "SLACK"]`). */
2048
- export type AuditOrganizationNotificationsSubscribedChannelTypesList =
2049
- Array<string>;
2050
- export const AuditOrganizationNotificationsSubscribedChannelTypesList =
2051
- /*@__PURE__*/ S.Array(
2052
- S.String,
2053
- ) as any as S.Schema<AuditOrganizationNotificationsSubscribedChannelTypesList>;
1959
+ export type AuditOrganizationNotificationsSubscribedChannelTypesList = Array<string>;
1960
+ export const AuditOrganizationNotificationsSubscribedChannelTypesList = /*@__PURE__*/ S.Array(
1961
+ S.String,
1962
+ ) as any as S.Schema<AuditOrganizationNotificationsSubscribedChannelTypesList>;
2054
1963
 
2055
1964
  /** A single external-notification subscription row returned by the auditor organization notifications API. Represents one mailing-list address + notification-category pairing. */
2056
1965
  export interface AuditOrganizationNotificationSubscription {
@@ -2065,26 +1974,24 @@ export interface AuditOrganizationNotificationSubscription {
2065
1974
  /** Whether the address is currently subscribed to receive this category's notifications. */
2066
1975
  toggleIsSubscribed: boolean;
2067
1976
  }
2068
- export const AuditOrganizationNotificationSubscription =
2069
- /*@__PURE__*/ S.suspend(() =>
2070
- S.Struct({
2071
- id: S.String,
2072
- address: S.String,
2073
- cadence: S.NullOr(S.String),
2074
- unsubSettingsKey: S.String,
2075
- toggleIsSubscribed: S.Boolean,
2076
- }),
2077
- ).annotate({
2078
- identifier: "AuditOrganizationNotificationSubscription",
2079
- }) as any as S.Schema<AuditOrganizationNotificationSubscription>;
1977
+ export const AuditOrganizationNotificationSubscription = /*@__PURE__*/ S.suspend(() =>
1978
+ S.Struct({
1979
+ id: S.String,
1980
+ address: S.String,
1981
+ cadence: S.NullOr(S.String),
1982
+ unsubSettingsKey: S.String,
1983
+ toggleIsSubscribed: S.Boolean,
1984
+ }),
1985
+ ).annotate({
1986
+ identifier: "AuditOrganizationNotificationSubscription",
1987
+ }) as any as S.Schema<AuditOrganizationNotificationSubscription>;
2080
1988
 
2081
1989
  /** External notification subscriptions — one row per mailing-list address plus category pairing. Covers Compliance, Vendors, Access Reviews, and Trust Center categories. */
2082
1990
  export type AuditOrganizationNotificationsExternalNotificationsList =
2083
1991
  Array<AuditOrganizationNotificationSubscription>;
2084
- export const AuditOrganizationNotificationsExternalNotificationsList =
2085
- /*@__PURE__*/ S.Array(
2086
- AuditOrganizationNotificationSubscription,
2087
- ) as any as S.Schema<AuditOrganizationNotificationsExternalNotificationsList>;
1992
+ export const AuditOrganizationNotificationsExternalNotificationsList = /*@__PURE__*/ S.Array(
1993
+ AuditOrganizationNotificationSubscription,
1994
+ ) as any as S.Schema<AuditOrganizationNotificationsExternalNotificationsList>;
2088
1995
 
2089
1996
  /** Organization notifications record returned by the auditor API. Ad-hoc single-row payload per domain mirroring the shape of the Organization → Notifications page. Only `id` is guaranteed; every other field is optional because controlled audit views can strip any column from the response. */
2090
1997
  export interface AuditOrganizationNotifications {
@@ -2104,12 +2011,8 @@ export const AuditOrganizationNotifications = /*@__PURE__*/ S.suspend(() =>
2104
2011
  id: S.String,
2105
2012
  preferredTimeZone: S.optional(S.NullOr(S.String)),
2106
2013
  employeeDigestFrequency: S.optional(S.NullOr(S.String)),
2107
- subscribedChannelTypes: S.optional(
2108
- AuditOrganizationNotificationsSubscribedChannelTypesList,
2109
- ),
2110
- externalNotifications: S.optional(
2111
- AuditOrganizationNotificationsExternalNotificationsList,
2112
- ),
2014
+ subscribedChannelTypes: S.optional(AuditOrganizationNotificationsSubscribedChannelTypesList),
2015
+ externalNotifications: S.optional(AuditOrganizationNotificationsExternalNotificationsList),
2113
2016
  }),
2114
2017
  ).annotate({
2115
2018
  identifier: "AuditOrganizationNotifications",
@@ -2157,16 +2060,12 @@ export const AccountAccessService = /*@__PURE__*/ S.suspend(() =>
2157
2060
  service: S.String,
2158
2061
  subAccountId: S.NullOr(S.String),
2159
2062
  }),
2160
- ).annotate({
2161
- identifier: "AccountAccessService",
2162
- }) as any as S.Schema<AccountAccessService>;
2063
+ ).annotate({ identifier: "AccountAccessService" }) as any as S.Schema<AccountAccessService>;
2163
2064
 
2164
- export type PaginatedResponseAccountAccessServiceResultsDataList =
2165
- Array<AccountAccessService>;
2166
- export const PaginatedResponseAccountAccessServiceResultsDataList =
2167
- /*@__PURE__*/ S.Array(
2168
- AccountAccessService,
2169
- ) as any as S.Schema<PaginatedResponseAccountAccessServiceResultsDataList>;
2065
+ export type PaginatedResponseAccountAccessServiceResultsDataList = Array<AccountAccessService>;
2066
+ export const PaginatedResponseAccountAccessServiceResultsDataList = /*@__PURE__*/ S.Array(
2067
+ AccountAccessService,
2068
+ ) as any as S.Schema<PaginatedResponseAccountAccessServiceResultsDataList>;
2170
2069
 
2171
2070
  /** Provides information about the pagination of a dataset. */
2172
2071
  export interface PageInfo {
@@ -2192,24 +2091,22 @@ export interface PaginatedResponseAccountAccessServiceResults {
2192
2091
  data: PaginatedResponseAccountAccessServiceResultsDataList;
2193
2092
  pageInfo: PageInfo;
2194
2093
  }
2195
- export const PaginatedResponseAccountAccessServiceResults =
2196
- /*@__PURE__*/ S.suspend(() =>
2197
- S.Struct({
2198
- data: PaginatedResponseAccountAccessServiceResultsDataList,
2199
- pageInfo: PageInfo,
2200
- }),
2201
- ).annotate({
2202
- identifier: "PaginatedResponseAccountAccessServiceResults",
2203
- }) as any as S.Schema<PaginatedResponseAccountAccessServiceResults>;
2094
+ export const PaginatedResponseAccountAccessServiceResults = /*@__PURE__*/ S.suspend(() =>
2095
+ S.Struct({
2096
+ data: PaginatedResponseAccountAccessServiceResultsDataList,
2097
+ pageInfo: PageInfo,
2098
+ }),
2099
+ ).annotate({
2100
+ identifier: "PaginatedResponseAccountAccessServiceResults",
2101
+ }) as any as S.Schema<PaginatedResponseAccountAccessServiceResults>;
2204
2102
 
2205
2103
  export interface PaginatedResponseAccountAccessService {
2206
2104
  results: PaginatedResponseAccountAccessServiceResults;
2207
2105
  }
2208
- export const PaginatedResponseAccountAccessService = /*@__PURE__*/ S.suspend(
2209
- () =>
2210
- S.Struct({
2211
- results: PaginatedResponseAccountAccessServiceResults,
2212
- }),
2106
+ export const PaginatedResponseAccountAccessService = /*@__PURE__*/ S.suspend(() =>
2107
+ S.Struct({
2108
+ results: PaginatedResponseAccountAccessServiceResults,
2109
+ }),
2213
2110
  ).annotate({
2214
2111
  identifier: "PaginatedResponseAccountAccessService",
2215
2112
  }) as any as S.Schema<PaginatedResponseAccountAccessService>;
@@ -2227,12 +2124,8 @@ export const ListAuditCommentsRequest = /*@__PURE__*/ S.suspend(() =>
2227
2124
  pageSize: S.optional(S.Number.pipe(T.Query())),
2228
2125
  pageCursor: S.optional(S.String.pipe(T.Query())),
2229
2126
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
2230
- }).pipe(
2231
- T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 }),
2232
- ),
2233
- ).annotate({
2234
- identifier: "ListAuditCommentsRequest",
2235
- }) as any as S.Schema<ListAuditCommentsRequest>;
2127
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/comments", code: 200 })),
2128
+ ).annotate({ identifier: "ListAuditCommentsRequest" }) as any as S.Schema<ListAuditCommentsRequest>;
2236
2129
 
2237
2130
  export type PaginatedResponseCommentResultsDataList = Array<Comment>;
2238
2131
  export const PaginatedResponseCommentResultsDataList = /*@__PURE__*/ S.Array(
@@ -2259,15 +2152,12 @@ export const PaginatedResponseComment = /*@__PURE__*/ S.suspend(() =>
2259
2152
  S.Struct({
2260
2153
  results: PaginatedResponseCommentResults,
2261
2154
  }),
2262
- ).annotate({
2263
- identifier: "PaginatedResponseComment",
2264
- }) as any as S.Schema<PaginatedResponseComment>;
2155
+ ).annotate({ identifier: "PaginatedResponseComment" }) as any as S.Schema<PaginatedResponseComment>;
2265
2156
 
2266
2157
  export type ListAuditControlsRequestExternalIdMatchesAnyList = Array<string>;
2267
- export const ListAuditControlsRequestExternalIdMatchesAnyList =
2268
- /*@__PURE__*/ S.Array(
2269
- S.String,
2270
- ) as any as S.Schema<ListAuditControlsRequestExternalIdMatchesAnyList>;
2158
+ export const ListAuditControlsRequestExternalIdMatchesAnyList = /*@__PURE__*/ S.Array(
2159
+ S.String,
2160
+ ) as any as S.Schema<ListAuditControlsRequestExternalIdMatchesAnyList>;
2271
2161
 
2272
2162
  export interface ListAuditControlsRequest {
2273
2163
  auditId: string;
@@ -2284,12 +2174,8 @@ export const ListAuditControlsRequest = /*@__PURE__*/ S.suspend(() =>
2284
2174
  externalIdMatchesAny: S.optional(
2285
2175
  ListAuditControlsRequestExternalIdMatchesAnyList.pipe(T.Query()),
2286
2176
  ),
2287
- }).pipe(
2288
- T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 }),
2289
- ),
2290
- ).annotate({
2291
- identifier: "ListAuditControlsRequest",
2292
- }) as any as S.Schema<ListAuditControlsRequest>;
2177
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 })),
2178
+ ).annotate({ identifier: "ListAuditControlsRequest" }) as any as S.Schema<ListAuditControlsRequest>;
2293
2179
 
2294
2180
  /** The security domains that the control belongs to. */
2295
2181
  export type AuditorControlDomainsList = Array<string>;
@@ -2314,9 +2200,7 @@ export const SectionPrinciple = /*@__PURE__*/ S.suspend(() =>
2314
2200
  id: S.String,
2315
2201
  name: S.String,
2316
2202
  }),
2317
- ).annotate({
2318
- identifier: "SectionPrinciple",
2319
- }) as any as S.Schema<SectionPrinciple>;
2203
+ ).annotate({ identifier: "SectionPrinciple" }) as any as S.Schema<SectionPrinciple>;
2320
2204
 
2321
2205
  export interface Section {
2322
2206
  /** The section name */
@@ -2334,19 +2218,19 @@ export const Section = /*@__PURE__*/ S.suspend(() =>
2334
2218
  }),
2335
2219
  ).annotate({ identifier: "Section" }) as any as S.Schema<Section>;
2336
2220
 
2337
- /** Sections of a framework that this control satisfies */
2221
+ /** Current framework sections this control satisfies within the audit segments in which it is in scope. */
2338
2222
  export type AuditorControlSectionsList = Array<Section>;
2339
2223
  export const AuditorControlSectionsList = /*@__PURE__*/ S.Array(
2340
2224
  Section,
2341
2225
  ) as any as S.Schema<AuditorControlSectionsList>;
2342
2226
 
2343
- /** Audit segments this control is in scope for. Empty when the control is attached only by a direct link and has no catalog mapping on a multi-program audit. */
2227
+ /** Audit segments in which this control is in scope. This can differ from current framework mappings, and the array can be empty. */
2344
2228
  export type AuditorControlInScopeSegmentIdsList = Array<string>;
2345
2229
  export const AuditorControlInScopeSegmentIdsList = /*@__PURE__*/ S.Array(
2346
2230
  S.String,
2347
2231
  ) as any as S.Schema<AuditorControlInScopeSegmentIdsList>;
2348
2232
 
2349
- /** An auditor's assessment of a control within an audit. This is the full flat union of every framework's assessment states (the superset); a given audit's framework only uses its own subset. `NOT_ASSESSED` is shared by all frameworks and is the default for a control that has not yet been assessed. Which states apply to which framework: - Most frameworks (e.g. SOC 2): `IN_PLACE`, `NOT_IN_PLACE`, `PARTIAL`, `NOT_ASSESSED` - ISO 27001: `CONFORMING`, `MINOR_NON_CONFORMITY`, `MAJOR_NON_CONFORMITY`, `NOT_ASSESSED` - FedRAMP: `SATISFIED`, `NOT_SATISFIED`, `OTHER_THAN_SATISFIED`, `NOT_ASSESSED` - FedRAMP Key Security Indicators (KSI): `TRUE`, `FALSE`, `PARTIAL`, `NOT_ASSESSED` Distinct from `ControlStatus`, which is the computed tests/documents-passing status — a different concept. */
2233
+ /** An auditor's assessment of a control within an audit. This is the full flat union of every framework's assessment states (the superset); the selected segment's framework determines which subset applies. `NOT_ASSESSED` is shared by all frameworks and is the default for a control that has not yet been assessed. Which states apply to which framework: - Most frameworks (e.g. SOC 2): `IN_PLACE`, `NOT_IN_PLACE`, `PARTIAL`, `NOT_ASSESSED` - ISO 27001: `CONFORMING`, `MINOR_NON_CONFORMITY`, `MAJOR_NON_CONFORMITY`, `NOT_ASSESSED` - FedRAMP: `SATISFIED`, `NOT_SATISFIED`, `OTHER_THAN_SATISFIED`, `NOT_ASSESSED` - FedRAMP Key Security Indicators (KSI): `TRUE`, `FALSE`, `PARTIAL`, `NOT_ASSESSED` Distinct from `ControlStatus`, which is the computed tests/documents-passing status — a different concept. */
2350
2234
  export type AuditControlAssessmentState =
2351
2235
  | "IN_PLACE"
2352
2236
  | "NOT_IN_PLACE"
@@ -2362,9 +2246,9 @@ export type AuditControlAssessmentState =
2362
2246
  | "FALSE";
2363
2247
  export const AuditControlAssessmentState = S.String;
2364
2248
 
2365
- /** An auditor's assessment of a control within one segment of an audit. Assessments are keyed per segment, so a control in scope for more than one segment (a multi-framework audit) can carry a distinct assessment per segment. A segment with no recorded assessment coerces to `NOT_ASSESSED` with a `null` justification. */
2249
+ /** An auditor's assessment of a control within one audit segment. Assessments can be recorded for any segment on the audit, `PROGRAM` or `SYSTEM`, and a control can carry a distinct assessment per segment. A segment with no recorded assessment returns `NOT_ASSESSED` with a `null` justification. */
2366
2250
  export interface AuditControlAssessment {
2367
- /** The audit program segment this assessment belongs to. */
2251
+ /** The audit segment this assessment belongs to. */
2368
2252
  segmentId: string;
2369
2253
  /** The auditor's assessment of the control for this segment; `NOT_ASSESSED` when no assessment has been recorded. */
2370
2254
  assessmentState: AuditControlAssessmentState;
@@ -2377,11 +2261,9 @@ export const AuditControlAssessment = /*@__PURE__*/ S.suspend(() =>
2377
2261
  assessmentState: AuditControlAssessmentState,
2378
2262
  justification: S.NullOr(S.String),
2379
2263
  }),
2380
- ).annotate({
2381
- identifier: "AuditControlAssessment",
2382
- }) as any as S.Schema<AuditControlAssessment>;
2264
+ ).annotate({ identifier: "AuditControlAssessment" }) as any as S.Schema<AuditControlAssessment>;
2383
2265
 
2384
- /** The auditor's assessments of this control, one per audit program segment the control is in scope for (a multi-framework audit can have more than one). Populated only for IRL audits when the assessment feature is enabled; empty otherwise. Within an in-scope segment a control with no recorded assessment coerces to `NOT_ASSESSED`; a segment the control is not in scope for contributes no entry. */
2266
+ /** The auditor's assessments of this control, with one entry for each segment in `inScopeSegmentIds`, which can be any segment on the audit, `PROGRAM` or `SYSTEM`. Populated only for IRL audits when assessment access is allowed; empty otherwise. A segment with no recorded assessment returns `NOT_ASSESSED`. */
2385
2267
  export type AuditorControlAssessmentsList = Array<AuditControlAssessment>;
2386
2268
  export const AuditorControlAssessmentsList = /*@__PURE__*/ S.Array(
2387
2269
  AuditControlAssessment,
@@ -2412,11 +2294,11 @@ export interface AuditorControl {
2412
2294
  modificationDate: string | null;
2413
2295
  /** The report standard framework fulfilled by the control. Incomplete once a control is in scope for more than one framework. */
2414
2296
  framework: string;
2415
- /** Sections of a framework that this control satisfies */
2297
+ /** Current framework sections this control satisfies within the audit segments in which it is in scope. */
2416
2298
  sections: AuditorControlSectionsList;
2417
- /** Audit segments this control is in scope for. Empty when the control is attached only by a direct link and has no catalog mapping on a multi-program audit. */
2299
+ /** Audit segments in which this control is in scope. This can differ from current framework mappings, and the array can be empty. */
2418
2300
  inScopeSegmentIds: AuditorControlInScopeSegmentIdsList;
2419
- /** The auditor's assessments of this control, one per audit program segment the control is in scope for (a multi-framework audit can have more than one). Populated only for IRL audits when the assessment feature is enabled; empty otherwise. Within an in-scope segment a control with no recorded assessment coerces to `NOT_ASSESSED`; a segment the control is not in scope for contributes no entry. */
2301
+ /** The auditor's assessments of this control, with one entry for each segment in `inScopeSegmentIds`, which can be any segment on the audit, `PROGRAM` or `SYSTEM`. Populated only for IRL audits when assessment access is allowed; empty otherwise. A segment with no recorded assessment returns `NOT_ASSESSED`. */
2420
2302
  assessments: AuditorControlAssessmentsList;
2421
2303
  }
2422
2304
  export const AuditorControl = /*@__PURE__*/ S.suspend(() =>
@@ -2439,23 +2321,20 @@ export const AuditorControl = /*@__PURE__*/ S.suspend(() =>
2439
2321
  }),
2440
2322
  ).annotate({ identifier: "AuditorControl" }) as any as S.Schema<AuditorControl>;
2441
2323
 
2442
- export type PaginatedResponseAuditorControlResultsDataList =
2443
- Array<AuditorControl>;
2444
- export const PaginatedResponseAuditorControlResultsDataList =
2445
- /*@__PURE__*/ S.Array(
2446
- AuditorControl,
2447
- ) as any as S.Schema<PaginatedResponseAuditorControlResultsDataList>;
2324
+ export type PaginatedResponseAuditorControlResultsDataList = Array<AuditorControl>;
2325
+ export const PaginatedResponseAuditorControlResultsDataList = /*@__PURE__*/ S.Array(
2326
+ AuditorControl,
2327
+ ) as any as S.Schema<PaginatedResponseAuditorControlResultsDataList>;
2448
2328
 
2449
2329
  export interface PaginatedResponseAuditorControlResults {
2450
2330
  data: PaginatedResponseAuditorControlResultsDataList;
2451
2331
  pageInfo: PageInfo;
2452
2332
  }
2453
- export const PaginatedResponseAuditorControlResults = /*@__PURE__*/ S.suspend(
2454
- () =>
2455
- S.Struct({
2456
- data: PaginatedResponseAuditorControlResultsDataList,
2457
- pageInfo: PageInfo,
2458
- }),
2333
+ export const PaginatedResponseAuditorControlResults = /*@__PURE__*/ S.suspend(() =>
2334
+ S.Struct({
2335
+ data: PaginatedResponseAuditorControlResultsDataList,
2336
+ pageInfo: PageInfo,
2337
+ }),
2459
2338
  ).annotate({
2460
2339
  identifier: "PaginatedResponseAuditorControlResults",
2461
2340
  }) as any as S.Schema<PaginatedResponseAuditorControlResults>;
@@ -2484,12 +2363,8 @@ export const ListAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
2484
2363
  pageSize: S.optional(S.Number.pipe(T.Query())),
2485
2364
  pageCursor: S.optional(S.String.pipe(T.Query())),
2486
2365
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
2487
- }).pipe(
2488
- T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 }),
2489
- ),
2490
- ).annotate({
2491
- identifier: "ListAuditEvidenceRequest",
2492
- }) as any as S.Schema<ListAuditEvidenceRequest>;
2366
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/evidence", code: 200 })),
2367
+ ).annotate({ identifier: "ListAuditEvidenceRequest" }) as any as S.Schema<ListAuditEvidenceRequest>;
2493
2368
 
2494
2369
  export type PaginatedResponseEvidenceResultsDataList = Array<Evidence>;
2495
2370
  export const PaginatedResponseEvidenceResultsDataList = /*@__PURE__*/ S.Array(
@@ -2533,11 +2408,7 @@ export const ListAuditEvidenceUrlsRequest = /*@__PURE__*/ S.suspend(() =>
2533
2408
  pageSize: S.optional(S.Number.pipe(T.Query())),
2534
2409
  pageCursor: S.optional(S.String.pipe(T.Query())),
2535
2410
  }).pipe(
2536
- T.Http({
2537
- method: "GET",
2538
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}/urls",
2539
- code: 200,
2540
- }),
2411
+ T.Http({ method: "GET", uri: "/audits/{auditId}/evidence/{auditEvidenceId}/urls", code: 200 }),
2541
2412
  ),
2542
2413
  ).annotate({
2543
2414
  identifier: "ListAuditEvidenceUrlsRequest",
@@ -2566,10 +2437,9 @@ export const EvidenceUrl = /*@__PURE__*/ S.suspend(() =>
2566
2437
  ).annotate({ identifier: "EvidenceUrl" }) as any as S.Schema<EvidenceUrl>;
2567
2438
 
2568
2439
  export type PaginatedResponseEvidenceUrlResultsDataList = Array<EvidenceUrl>;
2569
- export const PaginatedResponseEvidenceUrlResultsDataList =
2570
- /*@__PURE__*/ S.Array(
2571
- EvidenceUrl,
2572
- ) as any as S.Schema<PaginatedResponseEvidenceUrlResultsDataList>;
2440
+ export const PaginatedResponseEvidenceUrlResultsDataList = /*@__PURE__*/ S.Array(
2441
+ EvidenceUrl,
2442
+ ) as any as S.Schema<PaginatedResponseEvidenceUrlResultsDataList>;
2573
2443
 
2574
2444
  export interface PaginatedResponseEvidenceUrlResults {
2575
2445
  data: PaginatedResponseEvidenceUrlResultsDataList;
@@ -2596,16 +2466,12 @@ export const PaginatedResponseEvidenceUrl = /*@__PURE__*/ S.suspend(() =>
2596
2466
  }) as any as S.Schema<PaginatedResponseEvidenceUrl>;
2597
2467
 
2598
2468
  export type ListAuditIssuesRequestSnapshotIdMatchesAnyList = Array<string>;
2599
- export const ListAuditIssuesRequestSnapshotIdMatchesAnyList =
2600
- /*@__PURE__*/ S.Array(
2601
- S.String,
2602
- ) as any as S.Schema<ListAuditIssuesRequestSnapshotIdMatchesAnyList>;
2469
+ export const ListAuditIssuesRequestSnapshotIdMatchesAnyList = /*@__PURE__*/ S.Array(
2470
+ S.String,
2471
+ ) as any as S.Schema<ListAuditIssuesRequestSnapshotIdMatchesAnyList>;
2603
2472
 
2604
2473
  /** Allowed values for the `orderBy` query parameter on issue snapshot item endpoints. */
2605
- export type IssueSnapshotItemOrderBy =
2606
- | "createdAt"
2607
- | "lastModifiedAt"
2608
- | "detectedAt";
2474
+ export type IssueSnapshotItemOrderBy = "createdAt" | "lastModifiedAt" | "detectedAt";
2609
2475
  export const IssueSnapshotItemOrderBy = S.String;
2610
2476
 
2611
2477
  /** `"asc"` for ascending, `"desc"` for descending. */
@@ -2651,12 +2517,8 @@ export const ListAuditIssuesRequest = /*@__PURE__*/ S.suspend(() =>
2651
2517
  detectedBeforeDate: S.optional(S.String.pipe(T.Query())),
2652
2518
  orderBy: S.optional(IssueSnapshotItemOrderBy.pipe(T.Query())),
2653
2519
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
2654
- }).pipe(
2655
- T.Http({ method: "GET", uri: "/audits/{auditId}/issues/items", code: 200 }),
2656
- ),
2657
- ).annotate({
2658
- identifier: "ListAuditIssuesRequest",
2659
- }) as any as S.Schema<ListAuditIssuesRequest>;
2520
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/items", code: 200 })),
2521
+ ).annotate({ identifier: "ListAuditIssuesRequest" }) as any as S.Schema<ListAuditIssuesRequest>;
2660
2522
 
2661
2523
  export type IssueStatusTypeForSnapshot =
2662
2524
  | "IN_PROGRESS"
@@ -2722,30 +2584,25 @@ export const IssueSnapshotItem = /*@__PURE__*/ S.suspend(() =>
2722
2584
  createdAt: S.optional(S.String),
2723
2585
  detectedAt: S.optional(S.String),
2724
2586
  }),
2725
- ).annotate({
2726
- identifier: "IssueSnapshotItem",
2727
- }) as any as S.Schema<IssueSnapshotItem>;
2587
+ ).annotate({ identifier: "IssueSnapshotItem" }) as any as S.Schema<IssueSnapshotItem>;
2728
2588
 
2729
- export type PaginatedResponseIssueSnapshotItemResultsDataList =
2730
- Array<IssueSnapshotItem>;
2731
- export const PaginatedResponseIssueSnapshotItemResultsDataList =
2732
- /*@__PURE__*/ S.Array(
2733
- IssueSnapshotItem,
2734
- ) as any as S.Schema<PaginatedResponseIssueSnapshotItemResultsDataList>;
2589
+ export type PaginatedResponseIssueSnapshotItemResultsDataList = Array<IssueSnapshotItem>;
2590
+ export const PaginatedResponseIssueSnapshotItemResultsDataList = /*@__PURE__*/ S.Array(
2591
+ IssueSnapshotItem,
2592
+ ) as any as S.Schema<PaginatedResponseIssueSnapshotItemResultsDataList>;
2735
2593
 
2736
2594
  export interface PaginatedResponseIssueSnapshotItemResults {
2737
2595
  data: PaginatedResponseIssueSnapshotItemResultsDataList;
2738
2596
  pageInfo: PageInfo;
2739
2597
  }
2740
- export const PaginatedResponseIssueSnapshotItemResults =
2741
- /*@__PURE__*/ S.suspend(() =>
2742
- S.Struct({
2743
- data: PaginatedResponseIssueSnapshotItemResultsDataList,
2744
- pageInfo: PageInfo,
2745
- }),
2746
- ).annotate({
2747
- identifier: "PaginatedResponseIssueSnapshotItemResults",
2748
- }) as any as S.Schema<PaginatedResponseIssueSnapshotItemResults>;
2598
+ export const PaginatedResponseIssueSnapshotItemResults = /*@__PURE__*/ S.suspend(() =>
2599
+ S.Struct({
2600
+ data: PaginatedResponseIssueSnapshotItemResultsDataList,
2601
+ pageInfo: PageInfo,
2602
+ }),
2603
+ ).annotate({
2604
+ identifier: "PaginatedResponseIssueSnapshotItemResults",
2605
+ }) as any as S.Schema<PaginatedResponseIssueSnapshotItemResults>;
2749
2606
 
2750
2607
  export interface PaginatedResponseIssueSnapshotItem {
2751
2608
  results: PaginatedResponseIssueSnapshotItemResults;
@@ -2796,16 +2653,8 @@ export const ListAuditRisksRequest = /*@__PURE__*/ S.suspend(() =>
2796
2653
  search: S.optional(S.String.pipe(T.Query())),
2797
2654
  orderBy: S.optional(RiskOrderBy.pipe(T.Query())),
2798
2655
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
2799
- }).pipe(
2800
- T.Http({
2801
- method: "GET",
2802
- uri: "/audits/{auditId}/risks/{snapshotId}",
2803
- code: 200,
2804
- }),
2805
- ),
2806
- ).annotate({
2807
- identifier: "ListAuditRisksRequest",
2808
- }) as any as S.Schema<ListAuditRisksRequest>;
2656
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/risks/{snapshotId}", code: 200 })),
2657
+ ).annotate({ identifier: "ListAuditRisksRequest" }) as any as S.Schema<ListAuditRisksRequest>;
2809
2658
 
2810
2659
  /** Risk treatment strategy returned by the auditor API. */
2811
2660
  export type AuditRiskTreatment = "ACCEPT" | "AVOID" | "MITIGATE" | "TRANSFER";
@@ -2946,7 +2795,7 @@ export const PaginatedResponseAuditRisk = /*@__PURE__*/ S.suspend(() =>
2946
2795
  export interface ListAuditsRequest {
2947
2796
  pageSize?: number;
2948
2797
  pageCursor?: string;
2949
- /** Includes all audits that have changed since changedSinceDate. */
2798
+ /** Includes all audits that have changed since changedSinceDate, including soft-deleted audits whose deletionDate is on or after that timestamp. */
2950
2799
  changedSinceDate?: string;
2951
2800
  /** Includes only audits with no audit report uploaded */
2952
2801
  isActiveAudit?: boolean;
@@ -2958,9 +2807,7 @@ export const ListAuditsRequest = /*@__PURE__*/ S.suspend(() =>
2958
2807
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
2959
2808
  isActiveAudit: S.optional(S.Boolean.pipe(T.Query())),
2960
2809
  }).pipe(T.Http({ method: "GET", uri: "/audits", code: 200 })),
2961
- ).annotate({
2962
- identifier: "ListAuditsRequest",
2963
- }) as any as S.Schema<ListAuditsRequest>;
2810
+ ).annotate({ identifier: "ListAuditsRequest" }) as any as S.Schema<ListAuditsRequest>;
2964
2811
 
2965
2812
  export type PaginatedResponseAuditResultsDataList = Array<Audit>;
2966
2813
  export const PaginatedResponseAuditResultsDataList = /*@__PURE__*/ S.Array(
@@ -2987,9 +2834,7 @@ export const PaginatedResponseAudit = /*@__PURE__*/ S.suspend(() =>
2987
2834
  S.Struct({
2988
2835
  results: PaginatedResponseAuditResults,
2989
2836
  }),
2990
- ).annotate({
2991
- identifier: "PaginatedResponseAudit",
2992
- }) as any as S.Schema<PaginatedResponseAudit>;
2837
+ ).annotate({ identifier: "PaginatedResponseAudit" }) as any as S.Schema<PaginatedResponseAudit>;
2993
2838
 
2994
2839
  export interface ListAuditSnapshotsRequest {
2995
2840
  /** The audit ID */
@@ -3007,13 +2852,7 @@ export const ListAuditSnapshotsRequest = /*@__PURE__*/ S.suspend(() =>
3007
2852
  pageSize: S.optional(S.Number.pipe(T.Query())),
3008
2853
  pageCursor: S.optional(S.String.pipe(T.Query())),
3009
2854
  search: S.optional(S.String.pipe(T.Query())),
3010
- }).pipe(
3011
- T.Http({
3012
- method: "GET",
3013
- uri: "/audits/{auditId}/issues/snapshots",
3014
- code: 200,
3015
- }),
3016
- ),
2855
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/issues/snapshots", code: 200 })),
3017
2856
  ).annotate({
3018
2857
  identifier: "ListAuditSnapshotsRequest",
3019
2858
  }) as any as S.Schema<ListAuditSnapshotsRequest>;
@@ -3035,58 +2874,47 @@ export const IssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() =>
3035
2874
  description: S.optional(S.String),
3036
2875
  createdAt: S.optional(S.String),
3037
2876
  }),
3038
- ).annotate({
3039
- identifier: "IssueSnapshotMetadata",
3040
- }) as any as S.Schema<IssueSnapshotMetadata>;
2877
+ ).annotate({ identifier: "IssueSnapshotMetadata" }) as any as S.Schema<IssueSnapshotMetadata>;
3041
2878
 
3042
- export type PaginatedResponseIssueSnapshotMetadataResultsDataList =
3043
- Array<IssueSnapshotMetadata>;
3044
- export const PaginatedResponseIssueSnapshotMetadataResultsDataList =
3045
- /*@__PURE__*/ S.Array(
3046
- IssueSnapshotMetadata,
3047
- ) as any as S.Schema<PaginatedResponseIssueSnapshotMetadataResultsDataList>;
2879
+ export type PaginatedResponseIssueSnapshotMetadataResultsDataList = Array<IssueSnapshotMetadata>;
2880
+ export const PaginatedResponseIssueSnapshotMetadataResultsDataList = /*@__PURE__*/ S.Array(
2881
+ IssueSnapshotMetadata,
2882
+ ) as any as S.Schema<PaginatedResponseIssueSnapshotMetadataResultsDataList>;
3048
2883
 
3049
2884
  export interface PaginatedResponseIssueSnapshotMetadataResults {
3050
2885
  data: PaginatedResponseIssueSnapshotMetadataResultsDataList;
3051
2886
  pageInfo: PageInfo;
3052
2887
  }
3053
- export const PaginatedResponseIssueSnapshotMetadataResults =
3054
- /*@__PURE__*/ S.suspend(() =>
3055
- S.Struct({
3056
- data: PaginatedResponseIssueSnapshotMetadataResultsDataList,
3057
- pageInfo: PageInfo,
3058
- }),
3059
- ).annotate({
3060
- identifier: "PaginatedResponseIssueSnapshotMetadataResults",
3061
- }) as any as S.Schema<PaginatedResponseIssueSnapshotMetadataResults>;
2888
+ export const PaginatedResponseIssueSnapshotMetadataResults = /*@__PURE__*/ S.suspend(() =>
2889
+ S.Struct({
2890
+ data: PaginatedResponseIssueSnapshotMetadataResultsDataList,
2891
+ pageInfo: PageInfo,
2892
+ }),
2893
+ ).annotate({
2894
+ identifier: "PaginatedResponseIssueSnapshotMetadataResults",
2895
+ }) as any as S.Schema<PaginatedResponseIssueSnapshotMetadataResults>;
3062
2896
 
3063
2897
  export interface PaginatedResponseIssueSnapshotMetadata {
3064
2898
  results: PaginatedResponseIssueSnapshotMetadataResults;
3065
2899
  }
3066
- export const PaginatedResponseIssueSnapshotMetadata = /*@__PURE__*/ S.suspend(
3067
- () =>
3068
- S.Struct({
3069
- results: PaginatedResponseIssueSnapshotMetadataResults,
3070
- }),
2900
+ export const PaginatedResponseIssueSnapshotMetadata = /*@__PURE__*/ S.suspend(() =>
2901
+ S.Struct({
2902
+ results: PaginatedResponseIssueSnapshotMetadataResults,
2903
+ }),
3071
2904
  ).annotate({
3072
2905
  identifier: "PaginatedResponseIssueSnapshotMetadata",
3073
2906
  }) as any as S.Schema<PaginatedResponseIssueSnapshotMetadata>;
3074
2907
 
3075
2908
  /** Version control source service name for code changes. */
3076
- export type ApiCodeChangeSource =
3077
- | "github"
3078
- | "gitlab"
3079
- | "bitbucket"
3080
- | "azuredevops";
2909
+ export type ApiCodeChangeSource = "github" | "gitlab" | "bitbucket" | "azuredevops";
3081
2910
  export const ApiCodeChangeSource = S.String;
3082
2911
 
3083
2912
  export type ListCodeChangesRequestSourcesMatchesAnyList = Array<
3084
2913
  ApiCodeChangeSource | (string & {})
3085
2914
  >;
3086
- export const ListCodeChangesRequestSourcesMatchesAnyList =
3087
- /*@__PURE__*/ S.Array(
3088
- ApiCodeChangeSource,
3089
- ) as any as S.Schema<ListCodeChangesRequestSourcesMatchesAnyList>;
2915
+ export const ListCodeChangesRequestSourcesMatchesAnyList = /*@__PURE__*/ S.Array(
2916
+ ApiCodeChangeSource,
2917
+ ) as any as S.Schema<ListCodeChangesRequestSourcesMatchesAnyList>;
3090
2918
 
3091
2919
  export interface ListCodeChangesRequest {
3092
2920
  /** The audit ID */
@@ -3110,21 +2938,11 @@ export const ListCodeChangesRequest = /*@__PURE__*/ S.suspend(() =>
3110
2938
  pageSize: S.optional(S.Number.pipe(T.Query())),
3111
2939
  pageCursor: S.optional(S.String.pipe(T.Query())),
3112
2940
  search: S.optional(S.String.pipe(T.Query())),
3113
- sourcesMatchesAny: S.optional(
3114
- ListCodeChangesRequestSourcesMatchesAnyList.pipe(T.Query()),
3115
- ),
2941
+ sourcesMatchesAny: S.optional(ListCodeChangesRequestSourcesMatchesAnyList.pipe(T.Query())),
3116
2942
  closedAfterDate: S.optional(S.String.pipe(T.Query())),
3117
2943
  closedBeforeDate: S.optional(S.String.pipe(T.Query())),
3118
- }).pipe(
3119
- T.Http({
3120
- method: "GET",
3121
- uri: "/audits/{auditId}/assets/code-changes",
3122
- code: 200,
3123
- }),
3124
- ),
3125
- ).annotate({
3126
- identifier: "ListCodeChangesRequest",
3127
- }) as any as S.Schema<ListCodeChangesRequest>;
2944
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/assets/code-changes", code: 200 })),
2945
+ ).annotate({ identifier: "ListCodeChangesRequest" }) as any as S.Schema<ListCodeChangesRequest>;
3128
2946
 
3129
2947
  /** Code change data. `id` and `codeChange` are required. All other fields are optional to support customizable field visibility. Omitted keys mean the column is not in the response; `null` means the column is present but empty. */
3130
2948
  export interface CodeChange {
@@ -3202,45 +3020,37 @@ export const ListCommentsForControlRequest = /*@__PURE__*/ S.suspend(() =>
3202
3020
  pageCursor: S.optional(S.String.pipe(T.Query())),
3203
3021
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
3204
3022
  }).pipe(
3205
- T.Http({
3206
- method: "GET",
3207
- uri: "/audits/{auditId}/controls/{controlId}/comments",
3208
- code: 200,
3209
- }),
3023
+ T.Http({ method: "GET", uri: "/audits/{auditId}/controls/{controlId}/comments", code: 200 }),
3210
3024
  ),
3211
3025
  ).annotate({
3212
3026
  identifier: "ListCommentsForControlRequest",
3213
3027
  }) as any as S.Schema<ListCommentsForControlRequest>;
3214
3028
 
3215
- export type PaginatedResponseAuditControlCommentResultsDataList =
3216
- Array<AuditControlComment>;
3217
- export const PaginatedResponseAuditControlCommentResultsDataList =
3218
- /*@__PURE__*/ S.Array(
3219
- AuditControlComment,
3220
- ) as any as S.Schema<PaginatedResponseAuditControlCommentResultsDataList>;
3029
+ export type PaginatedResponseAuditControlCommentResultsDataList = Array<AuditControlComment>;
3030
+ export const PaginatedResponseAuditControlCommentResultsDataList = /*@__PURE__*/ S.Array(
3031
+ AuditControlComment,
3032
+ ) as any as S.Schema<PaginatedResponseAuditControlCommentResultsDataList>;
3221
3033
 
3222
3034
  export interface PaginatedResponseAuditControlCommentResults {
3223
3035
  data: PaginatedResponseAuditControlCommentResultsDataList;
3224
3036
  pageInfo: PageInfo;
3225
3037
  }
3226
- export const PaginatedResponseAuditControlCommentResults =
3227
- /*@__PURE__*/ S.suspend(() =>
3228
- S.Struct({
3229
- data: PaginatedResponseAuditControlCommentResultsDataList,
3230
- pageInfo: PageInfo,
3231
- }),
3232
- ).annotate({
3233
- identifier: "PaginatedResponseAuditControlCommentResults",
3234
- }) as any as S.Schema<PaginatedResponseAuditControlCommentResults>;
3038
+ export const PaginatedResponseAuditControlCommentResults = /*@__PURE__*/ S.suspend(() =>
3039
+ S.Struct({
3040
+ data: PaginatedResponseAuditControlCommentResultsDataList,
3041
+ pageInfo: PageInfo,
3042
+ }),
3043
+ ).annotate({
3044
+ identifier: "PaginatedResponseAuditControlCommentResults",
3045
+ }) as any as S.Schema<PaginatedResponseAuditControlCommentResults>;
3235
3046
 
3236
3047
  export interface PaginatedResponseAuditControlComment {
3237
3048
  results: PaginatedResponseAuditControlCommentResults;
3238
3049
  }
3239
- export const PaginatedResponseAuditControlComment = /*@__PURE__*/ S.suspend(
3240
- () =>
3241
- S.Struct({
3242
- results: PaginatedResponseAuditControlCommentResults,
3243
- }),
3050
+ export const PaginatedResponseAuditControlComment = /*@__PURE__*/ S.suspend(() =>
3051
+ S.Struct({
3052
+ results: PaginatedResponseAuditControlCommentResults,
3053
+ }),
3244
3054
  ).annotate({
3245
3055
  identifier: "PaginatedResponseAuditControlComment",
3246
3056
  }) as any as S.Schema<PaginatedResponseAuditControlComment>;
@@ -3255,57 +3065,53 @@ export interface ListCommentsForInformationRequestRequest {
3255
3065
  /** Includes all comments that have changed since changedSinceDate. Considers creationDate, modificationDate, and deletionDate timestamps when determining changes. */
3256
3066
  changedSinceDate?: string;
3257
3067
  }
3258
- export const ListCommentsForInformationRequestRequest = /*@__PURE__*/ S.suspend(
3259
- () =>
3260
- S.Struct({
3261
- auditId: S.String.pipe(T.Label()),
3262
- requestId: S.String.pipe(T.Label()),
3263
- pageSize: S.optional(S.Number.pipe(T.Query())),
3264
- pageCursor: S.optional(S.String.pipe(T.Query())),
3265
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
3266
- }).pipe(
3267
- T.Http({
3268
- method: "GET",
3269
- uri: "/audits/{auditId}/information-requests/{requestId}/comments",
3270
- code: 200,
3271
- }),
3272
- ),
3068
+ export const ListCommentsForInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
3069
+ S.Struct({
3070
+ auditId: S.String.pipe(T.Label()),
3071
+ requestId: S.String.pipe(T.Label()),
3072
+ pageSize: S.optional(S.Number.pipe(T.Query())),
3073
+ pageCursor: S.optional(S.String.pipe(T.Query())),
3074
+ changedSinceDate: S.optional(S.String.pipe(T.Query())),
3075
+ }).pipe(
3076
+ T.Http({
3077
+ method: "GET",
3078
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments",
3079
+ code: 200,
3080
+ }),
3081
+ ),
3273
3082
  ).annotate({
3274
3083
  identifier: "ListCommentsForInformationRequestRequest",
3275
3084
  }) as any as S.Schema<ListCommentsForInformationRequestRequest>;
3276
3085
 
3277
3086
  export type PaginatedResponseInformationRequestCommentResultsDataList =
3278
3087
  Array<InformationRequestComment>;
3279
- export const PaginatedResponseInformationRequestCommentResultsDataList =
3280
- /*@__PURE__*/ S.Array(
3281
- InformationRequestComment,
3282
- ) as any as S.Schema<PaginatedResponseInformationRequestCommentResultsDataList>;
3088
+ export const PaginatedResponseInformationRequestCommentResultsDataList = /*@__PURE__*/ S.Array(
3089
+ InformationRequestComment,
3090
+ ) as any as S.Schema<PaginatedResponseInformationRequestCommentResultsDataList>;
3283
3091
 
3284
3092
  export interface PaginatedResponseInformationRequestCommentResults {
3285
3093
  data: PaginatedResponseInformationRequestCommentResultsDataList;
3286
3094
  pageInfo: PageInfo;
3287
3095
  }
3288
- export const PaginatedResponseInformationRequestCommentResults =
3289
- /*@__PURE__*/ S.suspend(() =>
3290
- S.Struct({
3291
- data: PaginatedResponseInformationRequestCommentResultsDataList,
3292
- pageInfo: PageInfo,
3293
- }),
3294
- ).annotate({
3295
- identifier: "PaginatedResponseInformationRequestCommentResults",
3296
- }) as any as S.Schema<PaginatedResponseInformationRequestCommentResults>;
3096
+ export const PaginatedResponseInformationRequestCommentResults = /*@__PURE__*/ S.suspend(() =>
3097
+ S.Struct({
3098
+ data: PaginatedResponseInformationRequestCommentResultsDataList,
3099
+ pageInfo: PageInfo,
3100
+ }),
3101
+ ).annotate({
3102
+ identifier: "PaginatedResponseInformationRequestCommentResults",
3103
+ }) as any as S.Schema<PaginatedResponseInformationRequestCommentResults>;
3297
3104
 
3298
3105
  export interface PaginatedResponseInformationRequestComment {
3299
3106
  results: PaginatedResponseInformationRequestCommentResults;
3300
3107
  }
3301
- export const PaginatedResponseInformationRequestComment =
3302
- /*@__PURE__*/ S.suspend(() =>
3303
- S.Struct({
3304
- results: PaginatedResponseInformationRequestCommentResults,
3305
- }),
3306
- ).annotate({
3307
- identifier: "PaginatedResponseInformationRequestComment",
3308
- }) as any as S.Schema<PaginatedResponseInformationRequestComment>;
3108
+ export const PaginatedResponseInformationRequestComment = /*@__PURE__*/ S.suspend(() =>
3109
+ S.Struct({
3110
+ results: PaginatedResponseInformationRequestCommentResults,
3111
+ }),
3112
+ ).annotate({
3113
+ identifier: "PaginatedResponseInformationRequestComment",
3114
+ }) as any as S.Schema<PaginatedResponseInformationRequestComment>;
3309
3115
 
3310
3116
  export interface ListInformationRequestActivityRequest {
3311
3117
  auditId: string;
@@ -3317,21 +3123,20 @@ export interface ListInformationRequestActivityRequest {
3317
3123
  /** Includes activity logs that have changed since changedSinceDate. */
3318
3124
  changedSinceDate?: string;
3319
3125
  }
3320
- export const ListInformationRequestActivityRequest = /*@__PURE__*/ S.suspend(
3321
- () =>
3322
- S.Struct({
3323
- auditId: S.String.pipe(T.Label()),
3324
- requestId: S.String.pipe(T.Label()),
3325
- pageSize: S.optional(S.Number.pipe(T.Query())),
3326
- pageCursor: S.optional(S.String.pipe(T.Query())),
3327
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
3328
- }).pipe(
3329
- T.Http({
3330
- method: "GET",
3331
- uri: "/audits/{auditId}/information-requests/{requestId}/activity",
3332
- code: 200,
3333
- }),
3334
- ),
3126
+ export const ListInformationRequestActivityRequest = /*@__PURE__*/ S.suspend(() =>
3127
+ S.Struct({
3128
+ auditId: S.String.pipe(T.Label()),
3129
+ requestId: S.String.pipe(T.Label()),
3130
+ pageSize: S.optional(S.Number.pipe(T.Query())),
3131
+ pageCursor: S.optional(S.String.pipe(T.Query())),
3132
+ changedSinceDate: S.optional(S.String.pipe(T.Query())),
3133
+ }).pipe(
3134
+ T.Http({
3135
+ method: "GET",
3136
+ uri: "/audits/{auditId}/information-requests/{requestId}/activity",
3137
+ code: 200,
3138
+ }),
3139
+ ),
3335
3140
  ).annotate({
3336
3141
  identifier: "ListInformationRequestActivityRequest",
3337
3142
  }) as any as S.Schema<ListInformationRequestActivityRequest>;
@@ -3367,11 +3172,11 @@ export const InformationRequestActivityLogNewStatus = S.String;
3367
3172
  export type EvidenceFillOutcome = "SUCCESS" | "PARTIAL" | "FAILED";
3368
3173
  export const EvidenceFillOutcome = S.String;
3369
3174
 
3370
- /** Activity log entry tracking changes and actions on an information request. The activity log provides a complete audit trail of all operations performed on an information request, including status changes, evidence uploads, edits, and evidence sharing. This enables tracking compliance activities and understanding the request's history. */
3175
+ /** Activity log entry tracking changes and actions on an information request. The activity log provides an audit trail of operations performed on an information request, including status changes, evidence uploads, edits, and evidence sharing. This enables tracking compliance activities and understanding the request's history. Which entries are visible depends on the endpoint returning them; see the endpoint's own description. */
3371
3176
  export interface InformationRequestActivityLog {
3372
3177
  /** The unique identifier for the activity log entry within Vanta's system. Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7"). */
3373
3178
  id: string;
3374
- /** Type of activity that occurred on the information request. Determines which additional fields are populated. */
3179
+ /** Type of activity that occurred on the information request. Determines which additional fields are populated. `AUDIT_INFORMATION_REQUEST_EVIDENCE_FILL` is never returned — automated evidence fill activity is withheld — so no entry carries that value even though the enum still lists it. Do not write a case for it. */
3375
3180
  activityType: InformationRequestActivityType;
3376
3181
  /** Timestamp when the activity occurred. Format: ISO 8601 UTC timestamp. */
3377
3182
  timestamp: string;
@@ -3383,7 +3188,7 @@ export interface InformationRequestActivityLog {
3383
3188
  newStatus: InformationRequestActivityLogNewStatus | null;
3384
3189
  /** Optional explanation for the status change. Only populated for status change activities when a reason is provided (e.g., when flagging evidence). Null for all other cases. */
3385
3190
  reason: string | null;
3386
- /** Result of an automated evidence fill. Only populated for evidence fill activities. Null for all other activity types. */
3191
+ /** Result of an automated evidence fill. Always null: only evidence fill activities could populate it, and those are never returned, so nothing can set it. Do not branch on it. */
3387
3192
  fillOutcome: EvidenceFillOutcome | null;
3388
3193
  /** Identifier of the information request this one was copied from when its audit was duplicated. Only populated for audit-duplication trail activities. Null for all other activity types. Format: ObjectId as a string. */
3389
3194
  sourceInformationRequestId: string | null;
@@ -3409,39 +3214,37 @@ export const InformationRequestActivityLog = /*@__PURE__*/ S.suspend(() =>
3409
3214
 
3410
3215
  export type PaginatedResponseInformationRequestActivityLogResultsDataList =
3411
3216
  Array<InformationRequestActivityLog>;
3412
- export const PaginatedResponseInformationRequestActivityLogResultsDataList =
3413
- /*@__PURE__*/ S.Array(
3414
- InformationRequestActivityLog,
3415
- ) as any as S.Schema<PaginatedResponseInformationRequestActivityLogResultsDataList>;
3217
+ export const PaginatedResponseInformationRequestActivityLogResultsDataList = /*@__PURE__*/ S.Array(
3218
+ InformationRequestActivityLog,
3219
+ ) as any as S.Schema<PaginatedResponseInformationRequestActivityLogResultsDataList>;
3416
3220
 
3417
3221
  export interface PaginatedResponseInformationRequestActivityLogResults {
3418
3222
  data: PaginatedResponseInformationRequestActivityLogResultsDataList;
3419
3223
  pageInfo: PageInfo;
3420
3224
  }
3421
- export const PaginatedResponseInformationRequestActivityLogResults =
3422
- /*@__PURE__*/ S.suspend(() =>
3423
- S.Struct({
3424
- data: PaginatedResponseInformationRequestActivityLogResultsDataList,
3425
- pageInfo: PageInfo,
3426
- }),
3427
- ).annotate({
3428
- identifier: "PaginatedResponseInformationRequestActivityLogResults",
3429
- }) as any as S.Schema<PaginatedResponseInformationRequestActivityLogResults>;
3225
+ export const PaginatedResponseInformationRequestActivityLogResults = /*@__PURE__*/ S.suspend(() =>
3226
+ S.Struct({
3227
+ data: PaginatedResponseInformationRequestActivityLogResultsDataList,
3228
+ pageInfo: PageInfo,
3229
+ }),
3230
+ ).annotate({
3231
+ identifier: "PaginatedResponseInformationRequestActivityLogResults",
3232
+ }) as any as S.Schema<PaginatedResponseInformationRequestActivityLogResults>;
3430
3233
 
3431
3234
  export interface PaginatedResponseInformationRequestActivityLog {
3432
3235
  results: PaginatedResponseInformationRequestActivityLogResults;
3433
3236
  }
3434
- export const PaginatedResponseInformationRequestActivityLog =
3435
- /*@__PURE__*/ S.suspend(() =>
3436
- S.Struct({
3437
- results: PaginatedResponseInformationRequestActivityLogResults,
3438
- }),
3439
- ).annotate({
3440
- identifier: "PaginatedResponseInformationRequestActivityLog",
3441
- }) as any as S.Schema<PaginatedResponseInformationRequestActivityLog>;
3237
+ export const PaginatedResponseInformationRequestActivityLog = /*@__PURE__*/ S.suspend(() =>
3238
+ S.Struct({
3239
+ results: PaginatedResponseInformationRequestActivityLogResults,
3240
+ }),
3241
+ ).annotate({
3242
+ identifier: "PaginatedResponseInformationRequestActivityLog",
3243
+ }) as any as S.Schema<PaginatedResponseInformationRequestActivityLog>;
3442
3244
 
3443
- export type ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList =
3444
- Array<InformationRequestSupportedEvidenceType | (string & {})>;
3245
+ export type ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList = Array<
3246
+ InformationRequestSupportedEvidenceType | (string & {})
3247
+ >;
3445
3248
  export const ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList =
3446
3249
  /*@__PURE__*/ S.Array(
3447
3250
  InformationRequestSupportedEvidenceType,
@@ -3459,62 +3262,61 @@ export interface ListInformationRequestEvidenceRequest {
3459
3262
  /** Limits results to the provided evidence types. Must include at least one of: UPLOADED_DOCUMENT, OBSERVATION, LINK, VANTA_DOCUMENT, VANTA_POLICY, VANTA_TEST, VANTA_TEST_SNAPSHOT. */
3460
3263
  evidenceTypeMatchesAny?: ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList;
3461
3264
  }
3462
- export const ListInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(
3463
- () =>
3464
- S.Struct({
3465
- auditId: S.String.pipe(T.Label()),
3466
- requestId: S.String.pipe(T.Label()),
3467
- pageSize: S.optional(S.Number.pipe(T.Query())),
3468
- pageCursor: S.optional(S.String.pipe(T.Query())),
3469
- changedSinceDate: S.optional(S.String.pipe(T.Query())),
3470
- evidenceTypeMatchesAny: S.optional(
3471
- ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList.pipe(
3472
- T.Query(),
3473
- ),
3474
- ),
3475
- }).pipe(
3476
- T.Http({
3477
- method: "GET",
3478
- uri: "/audits/{auditId}/information-requests/{requestId}/evidence",
3479
- code: 200,
3480
- }),
3265
+ export const ListInformationRequestEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
3266
+ S.Struct({
3267
+ auditId: S.String.pipe(T.Label()),
3268
+ requestId: S.String.pipe(T.Label()),
3269
+ pageSize: S.optional(S.Number.pipe(T.Query())),
3270
+ pageCursor: S.optional(S.String.pipe(T.Query())),
3271
+ changedSinceDate: S.optional(S.String.pipe(T.Query())),
3272
+ evidenceTypeMatchesAny: S.optional(
3273
+ ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList.pipe(T.Query()),
3481
3274
  ),
3275
+ }).pipe(
3276
+ T.Http({
3277
+ method: "GET",
3278
+ uri: "/audits/{auditId}/information-requests/{requestId}/evidence",
3279
+ code: 200,
3280
+ }),
3281
+ ),
3482
3282
  ).annotate({
3483
3283
  identifier: "ListInformationRequestEvidenceRequest",
3484
3284
  }) as any as S.Schema<ListInformationRequestEvidenceRequest>;
3485
3285
 
3486
3286
  export type PaginatedResponseInformationRequestEvidenceResultsDataList =
3487
3287
  Array<InformationRequestEvidence>;
3488
- export const PaginatedResponseInformationRequestEvidenceResultsDataList =
3489
- /*@__PURE__*/ S.Array(
3490
- InformationRequestEvidence,
3491
- ) as any as S.Schema<PaginatedResponseInformationRequestEvidenceResultsDataList>;
3288
+ export const PaginatedResponseInformationRequestEvidenceResultsDataList = /*@__PURE__*/ S.Array(
3289
+ InformationRequestEvidence,
3290
+ ) as any as S.Schema<PaginatedResponseInformationRequestEvidenceResultsDataList>;
3492
3291
 
3493
3292
  export interface PaginatedResponseInformationRequestEvidenceResults {
3494
3293
  data: PaginatedResponseInformationRequestEvidenceResultsDataList;
3495
3294
  pageInfo: PageInfo;
3496
3295
  }
3497
- export const PaginatedResponseInformationRequestEvidenceResults =
3498
- /*@__PURE__*/ S.suspend(() =>
3499
- S.Struct({
3500
- data: PaginatedResponseInformationRequestEvidenceResultsDataList,
3501
- pageInfo: PageInfo,
3502
- }),
3503
- ).annotate({
3504
- identifier: "PaginatedResponseInformationRequestEvidenceResults",
3505
- }) as any as S.Schema<PaginatedResponseInformationRequestEvidenceResults>;
3296
+ export const PaginatedResponseInformationRequestEvidenceResults = /*@__PURE__*/ S.suspend(() =>
3297
+ S.Struct({
3298
+ data: PaginatedResponseInformationRequestEvidenceResultsDataList,
3299
+ pageInfo: PageInfo,
3300
+ }),
3301
+ ).annotate({
3302
+ identifier: "PaginatedResponseInformationRequestEvidenceResults",
3303
+ }) as any as S.Schema<PaginatedResponseInformationRequestEvidenceResults>;
3506
3304
 
3507
3305
  export interface PaginatedResponseInformationRequestEvidence {
3508
3306
  results: PaginatedResponseInformationRequestEvidenceResults;
3509
3307
  }
3510
- export const PaginatedResponseInformationRequestEvidence =
3511
- /*@__PURE__*/ S.suspend(() =>
3512
- S.Struct({
3513
- results: PaginatedResponseInformationRequestEvidenceResults,
3514
- }),
3515
- ).annotate({
3516
- identifier: "PaginatedResponseInformationRequestEvidence",
3517
- }) as any as S.Schema<PaginatedResponseInformationRequestEvidence>;
3308
+ export const PaginatedResponseInformationRequestEvidence = /*@__PURE__*/ S.suspend(() =>
3309
+ S.Struct({
3310
+ results: PaginatedResponseInformationRequestEvidenceResults,
3311
+ }),
3312
+ ).annotate({
3313
+ identifier: "PaginatedResponseInformationRequestEvidence",
3314
+ }) as any as S.Schema<PaginatedResponseInformationRequestEvidence>;
3315
+
3316
+ export type ListInformationRequestsRequestSegmentIdsMatchesAnyList = Array<string>;
3317
+ export const ListInformationRequestsRequestSegmentIdsMatchesAnyList = /*@__PURE__*/ S.Array(
3318
+ S.String,
3319
+ ) as any as S.Schema<ListInformationRequestsRequestSegmentIdsMatchesAnyList>;
3518
3320
 
3519
3321
  export interface ListInformationRequestsRequest {
3520
3322
  auditId: string;
@@ -3522,8 +3324,10 @@ export interface ListInformationRequestsRequest {
3522
3324
  pageSize?: number;
3523
3325
  /** Pagination cursor from a previous response. Provide to fetch the next page of results. */
3524
3326
  pageCursor?: string;
3525
- /** Includes all information requests that have changed since changedSinceDate. Considers creationDate, modificationDate, and deletionDate timestamps when determining changes. */
3327
+ /** Includes all information requests that have changed since changedSinceDate. Considers creationDate, modificationDate, and deletionDate timestamps when determining changes. Does not include requests whose only change is the derived `segmentIds` projection after an audit-scope change. */
3526
3328
  changedSinceDate?: string;
3329
+ /** Return requests whose stored segment assignment includes any of these IDs (OR). Omit to return all. A match can still come back with `segmentIds: []` if the stored ID is no longer in the audit's scope. */
3330
+ segmentIdsMatchesAny?: ListInformationRequestsRequestSegmentIdsMatchesAnyList;
3527
3331
  }
3528
3332
  export const ListInformationRequestsRequest = /*@__PURE__*/ S.suspend(() =>
3529
3333
  S.Struct({
@@ -3531,37 +3335,31 @@ export const ListInformationRequestsRequest = /*@__PURE__*/ S.suspend(() =>
3531
3335
  pageSize: S.optional(S.Number.pipe(T.Query())),
3532
3336
  pageCursor: S.optional(S.String.pipe(T.Query())),
3533
3337
  changedSinceDate: S.optional(S.String.pipe(T.Query())),
3534
- }).pipe(
3535
- T.Http({
3536
- method: "GET",
3537
- uri: "/audits/{auditId}/information-requests",
3538
- code: 200,
3539
- }),
3540
- ),
3338
+ segmentIdsMatchesAny: S.optional(
3339
+ ListInformationRequestsRequestSegmentIdsMatchesAnyList.pipe(T.Query()),
3340
+ ),
3341
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/information-requests", code: 200 })),
3541
3342
  ).annotate({
3542
3343
  identifier: "ListInformationRequestsRequest",
3543
3344
  }) as any as S.Schema<ListInformationRequestsRequest>;
3544
3345
 
3545
- export type PaginatedResponseInformationRequestResultsDataList =
3546
- Array<InformationRequest>;
3547
- export const PaginatedResponseInformationRequestResultsDataList =
3548
- /*@__PURE__*/ S.Array(
3549
- InformationRequest,
3550
- ) as any as S.Schema<PaginatedResponseInformationRequestResultsDataList>;
3346
+ export type PaginatedResponseInformationRequestResultsDataList = Array<InformationRequest>;
3347
+ export const PaginatedResponseInformationRequestResultsDataList = /*@__PURE__*/ S.Array(
3348
+ InformationRequest,
3349
+ ) as any as S.Schema<PaginatedResponseInformationRequestResultsDataList>;
3551
3350
 
3552
3351
  export interface PaginatedResponseInformationRequestResults {
3553
3352
  data: PaginatedResponseInformationRequestResultsDataList;
3554
3353
  pageInfo: PageInfo;
3555
3354
  }
3556
- export const PaginatedResponseInformationRequestResults =
3557
- /*@__PURE__*/ S.suspend(() =>
3558
- S.Struct({
3559
- data: PaginatedResponseInformationRequestResultsDataList,
3560
- pageInfo: PageInfo,
3561
- }),
3562
- ).annotate({
3563
- identifier: "PaginatedResponseInformationRequestResults",
3564
- }) as any as S.Schema<PaginatedResponseInformationRequestResults>;
3355
+ export const PaginatedResponseInformationRequestResults = /*@__PURE__*/ S.suspend(() =>
3356
+ S.Struct({
3357
+ data: PaginatedResponseInformationRequestResultsDataList,
3358
+ pageInfo: PageInfo,
3359
+ }),
3360
+ ).annotate({
3361
+ identifier: "PaginatedResponseInformationRequestResults",
3362
+ }) as any as S.Schema<PaginatedResponseInformationRequestResults>;
3565
3363
 
3566
3364
  export interface PaginatedResponseInformationRequest {
3567
3365
  results: PaginatedResponseInformationRequestResults;
@@ -3582,20 +3380,19 @@ export interface ListInformationRequestsForControlRequest {
3582
3380
  /** Pagination cursor from a previous response. Provide to fetch the next page of results. */
3583
3381
  pageCursor?: string;
3584
3382
  }
3585
- export const ListInformationRequestsForControlRequest = /*@__PURE__*/ S.suspend(
3586
- () =>
3587
- S.Struct({
3588
- auditId: S.String.pipe(T.Label()),
3589
- controlId: S.String.pipe(T.Label()),
3590
- pageSize: S.optional(S.Number.pipe(T.Query())),
3591
- pageCursor: S.optional(S.String.pipe(T.Query())),
3592
- }).pipe(
3593
- T.Http({
3594
- method: "GET",
3595
- uri: "/audits/{auditId}/controls/{controlId}/information-requests",
3596
- code: 200,
3597
- }),
3598
- ),
3383
+ export const ListInformationRequestsForControlRequest = /*@__PURE__*/ S.suspend(() =>
3384
+ S.Struct({
3385
+ auditId: S.String.pipe(T.Label()),
3386
+ controlId: S.String.pipe(T.Label()),
3387
+ pageSize: S.optional(S.Number.pipe(T.Query())),
3388
+ pageCursor: S.optional(S.String.pipe(T.Query())),
3389
+ }).pipe(
3390
+ T.Http({
3391
+ method: "GET",
3392
+ uri: "/audits/{auditId}/controls/{controlId}/information-requests",
3393
+ code: 200,
3394
+ }),
3395
+ ),
3599
3396
  ).annotate({
3600
3397
  identifier: "ListInformationRequestsForControlRequest",
3601
3398
  }) as any as S.Schema<ListInformationRequestsForControlRequest>;
@@ -3624,9 +3421,7 @@ export type AuditIntegrationTag =
3624
3421
  | "VULNERABILITIES";
3625
3422
  export const AuditIntegrationTag = S.String;
3626
3423
 
3627
- export type ListIntegrationsRequestTagsMatchesAnyList = Array<
3628
- AuditIntegrationTag | (string & {})
3629
- >;
3424
+ export type ListIntegrationsRequestTagsMatchesAnyList = Array<AuditIntegrationTag | (string & {})>;
3630
3425
  export const ListIntegrationsRequestTagsMatchesAnyList = /*@__PURE__*/ S.Array(
3631
3426
  AuditIntegrationTag,
3632
3427
  ) as any as S.Schema<ListIntegrationsRequestTagsMatchesAnyList>;
@@ -3659,10 +3454,9 @@ export const AuditIntegrationCategory = S.String;
3659
3454
  export type ListIntegrationsRequestCategoriesMatchesAnyList = Array<
3660
3455
  AuditIntegrationCategory | (string & {})
3661
3456
  >;
3662
- export const ListIntegrationsRequestCategoriesMatchesAnyList =
3663
- /*@__PURE__*/ S.Array(
3664
- AuditIntegrationCategory,
3665
- ) as any as S.Schema<ListIntegrationsRequestCategoriesMatchesAnyList>;
3457
+ export const ListIntegrationsRequestCategoriesMatchesAnyList = /*@__PURE__*/ S.Array(
3458
+ AuditIntegrationCategory,
3459
+ ) as any as S.Schema<ListIntegrationsRequestCategoriesMatchesAnyList>;
3666
3460
 
3667
3461
  export interface ListIntegrationsRequest {
3668
3462
  /** The audit ID */
@@ -3684,18 +3478,12 @@ export const ListIntegrationsRequest = /*@__PURE__*/ S.suspend(() =>
3684
3478
  pageSize: S.optional(S.Number.pipe(T.Query())),
3685
3479
  pageCursor: S.optional(S.String.pipe(T.Query())),
3686
3480
  search: S.optional(S.String.pipe(T.Query())),
3687
- tagsMatchesAny: S.optional(
3688
- ListIntegrationsRequestTagsMatchesAnyList.pipe(T.Query()),
3689
- ),
3481
+ tagsMatchesAny: S.optional(ListIntegrationsRequestTagsMatchesAnyList.pipe(T.Query())),
3690
3482
  categoriesMatchesAny: S.optional(
3691
3483
  ListIntegrationsRequestCategoriesMatchesAnyList.pipe(T.Query()),
3692
3484
  ),
3693
- }).pipe(
3694
- T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 }),
3695
- ),
3696
- ).annotate({
3697
- identifier: "ListIntegrationsRequest",
3698
- }) as any as S.Schema<ListIntegrationsRequest>;
3485
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/integrations", code: 200 })),
3486
+ ).annotate({ identifier: "ListIntegrationsRequest" }) as any as S.Schema<ListIntegrationsRequest>;
3699
3487
 
3700
3488
  /** Integration tag display names describing what data this integration provides. */
3701
3489
  export type AuditIntegrationTagsList = Array<string>;
@@ -3727,27 +3515,22 @@ export const AuditIntegration = /*@__PURE__*/ S.suspend(() =>
3727
3515
  tags: S.optional(AuditIntegrationTagsList),
3728
3516
  categories: S.optional(AuditIntegrationCategoriesList),
3729
3517
  }),
3730
- ).annotate({
3731
- identifier: "AuditIntegration",
3732
- }) as any as S.Schema<AuditIntegration>;
3518
+ ).annotate({ identifier: "AuditIntegration" }) as any as S.Schema<AuditIntegration>;
3733
3519
 
3734
- export type PaginatedResponseAuditIntegrationResultsDataList =
3735
- Array<AuditIntegration>;
3736
- export const PaginatedResponseAuditIntegrationResultsDataList =
3737
- /*@__PURE__*/ S.Array(
3738
- AuditIntegration,
3739
- ) as any as S.Schema<PaginatedResponseAuditIntegrationResultsDataList>;
3520
+ export type PaginatedResponseAuditIntegrationResultsDataList = Array<AuditIntegration>;
3521
+ export const PaginatedResponseAuditIntegrationResultsDataList = /*@__PURE__*/ S.Array(
3522
+ AuditIntegration,
3523
+ ) as any as S.Schema<PaginatedResponseAuditIntegrationResultsDataList>;
3740
3524
 
3741
3525
  export interface PaginatedResponseAuditIntegrationResults {
3742
3526
  data: PaginatedResponseAuditIntegrationResultsDataList;
3743
3527
  pageInfo: PageInfo;
3744
3528
  }
3745
- export const PaginatedResponseAuditIntegrationResults = /*@__PURE__*/ S.suspend(
3746
- () =>
3747
- S.Struct({
3748
- data: PaginatedResponseAuditIntegrationResultsDataList,
3749
- pageInfo: PageInfo,
3750
- }),
3529
+ export const PaginatedResponseAuditIntegrationResults = /*@__PURE__*/ S.suspend(() =>
3530
+ S.Struct({
3531
+ data: PaginatedResponseAuditIntegrationResultsDataList,
3532
+ pageInfo: PageInfo,
3533
+ }),
3751
3534
  ).annotate({
3752
3535
  identifier: "PaginatedResponseAuditIntegrationResults",
3753
3536
  }) as any as S.Schema<PaginatedResponseAuditIntegrationResults>;
@@ -3838,23 +3621,20 @@ export const AccountAccess = /*@__PURE__*/ S.suspend(() =>
3838
3621
  }),
3839
3622
  ).annotate({ identifier: "AccountAccess" }) as any as S.Schema<AccountAccess>;
3840
3623
 
3841
- export type PaginatedResponseAccountAccessResultsDataList =
3842
- Array<AccountAccess>;
3843
- export const PaginatedResponseAccountAccessResultsDataList =
3844
- /*@__PURE__*/ S.Array(
3845
- AccountAccess,
3846
- ) as any as S.Schema<PaginatedResponseAccountAccessResultsDataList>;
3624
+ export type PaginatedResponseAccountAccessResultsDataList = Array<AccountAccess>;
3625
+ export const PaginatedResponseAccountAccessResultsDataList = /*@__PURE__*/ S.Array(
3626
+ AccountAccess,
3627
+ ) as any as S.Schema<PaginatedResponseAccountAccessResultsDataList>;
3847
3628
 
3848
3629
  export interface PaginatedResponseAccountAccessResults {
3849
3630
  data: PaginatedResponseAccountAccessResultsDataList;
3850
3631
  pageInfo: PageInfo;
3851
3632
  }
3852
- export const PaginatedResponseAccountAccessResults = /*@__PURE__*/ S.suspend(
3853
- () =>
3854
- S.Struct({
3855
- data: PaginatedResponseAccountAccessResultsDataList,
3856
- pageInfo: PageInfo,
3857
- }),
3633
+ export const PaginatedResponseAccountAccessResults = /*@__PURE__*/ S.suspend(() =>
3634
+ S.Struct({
3635
+ data: PaginatedResponseAccountAccessResultsDataList,
3636
+ pageInfo: PageInfo,
3637
+ }),
3858
3638
  ).annotate({
3859
3639
  identifier: "PaginatedResponseAccountAccessResults",
3860
3640
  }) as any as S.Schema<PaginatedResponseAccountAccessResults>;
@@ -3871,17 +3651,11 @@ export const PaginatedResponseAccountAccess = /*@__PURE__*/ S.suspend(() =>
3871
3651
  }) as any as S.Schema<PaginatedResponseAccountAccess>;
3872
3652
 
3873
3653
  export type ListPersonnelGroupsRequestSourcesMatchesAnyList = Array<string>;
3874
- export const ListPersonnelGroupsRequestSourcesMatchesAnyList =
3875
- /*@__PURE__*/ S.Array(
3876
- S.String,
3877
- ) as any as S.Schema<ListPersonnelGroupsRequestSourcesMatchesAnyList>;
3878
-
3879
- export type GroupOrderBy =
3880
- | "name"
3881
- | "members"
3882
- | "source"
3883
- | "tasksLastUpdated"
3884
- | "pointOfContact";
3654
+ export const ListPersonnelGroupsRequestSourcesMatchesAnyList = /*@__PURE__*/ S.Array(
3655
+ S.String,
3656
+ ) as any as S.Schema<ListPersonnelGroupsRequestSourcesMatchesAnyList>;
3657
+
3658
+ export type GroupOrderBy = "name" | "members" | "source" | "tasksLastUpdated" | "pointOfContact";
3885
3659
  export const GroupOrderBy = S.String;
3886
3660
 
3887
3661
  export interface ListPersonnelGroupsRequest {
@@ -3906,18 +3680,10 @@ export const ListPersonnelGroupsRequest = /*@__PURE__*/ S.suspend(() =>
3906
3680
  pageSize: S.optional(S.Number.pipe(T.Query())),
3907
3681
  pageCursor: S.optional(S.String.pipe(T.Query())),
3908
3682
  search: S.optional(S.String.pipe(T.Query())),
3909
- sourcesMatchesAny: S.optional(
3910
- ListPersonnelGroupsRequestSourcesMatchesAnyList.pipe(T.Query()),
3911
- ),
3683
+ sourcesMatchesAny: S.optional(ListPersonnelGroupsRequestSourcesMatchesAnyList.pipe(T.Query())),
3912
3684
  orderBy: S.optional(GroupOrderBy.pipe(T.Query())),
3913
3685
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
3914
- }).pipe(
3915
- T.Http({
3916
- method: "GET",
3917
- uri: "/audits/{auditId}/personnel/groups",
3918
- code: 200,
3919
- }),
3920
- ),
3686
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/groups", code: 200 })),
3921
3687
  ).annotate({
3922
3688
  identifier: "ListPersonnelGroupsRequest",
3923
3689
  }) as any as S.Schema<ListPersonnelGroupsRequest>;
@@ -3931,9 +3697,7 @@ export const PersonnelGroupTask = /*@__PURE__*/ S.suspend(() =>
3931
3697
  S.Struct({
3932
3698
  name: S.String,
3933
3699
  }),
3934
- ).annotate({
3935
- identifier: "PersonnelGroupTask",
3936
- }) as any as S.Schema<PersonnelGroupTask>;
3700
+ ).annotate({ identifier: "PersonnelGroupTask" }) as any as S.Schema<PersonnelGroupTask>;
3937
3701
 
3938
3702
  /** Security tasks enabled for this group, or empty array if not available. */
3939
3703
  export type PersonnelGroupTasksList = Array<PersonnelGroupTask>;
@@ -3970,23 +3734,20 @@ export const PersonnelGroup = /*@__PURE__*/ S.suspend(() =>
3970
3734
  }),
3971
3735
  ).annotate({ identifier: "PersonnelGroup" }) as any as S.Schema<PersonnelGroup>;
3972
3736
 
3973
- export type PaginatedResponsePersonnelGroupResultsDataList =
3974
- Array<PersonnelGroup>;
3975
- export const PaginatedResponsePersonnelGroupResultsDataList =
3976
- /*@__PURE__*/ S.Array(
3977
- PersonnelGroup,
3978
- ) as any as S.Schema<PaginatedResponsePersonnelGroupResultsDataList>;
3737
+ export type PaginatedResponsePersonnelGroupResultsDataList = Array<PersonnelGroup>;
3738
+ export const PaginatedResponsePersonnelGroupResultsDataList = /*@__PURE__*/ S.Array(
3739
+ PersonnelGroup,
3740
+ ) as any as S.Schema<PaginatedResponsePersonnelGroupResultsDataList>;
3979
3741
 
3980
3742
  export interface PaginatedResponsePersonnelGroupResults {
3981
3743
  data: PaginatedResponsePersonnelGroupResultsDataList;
3982
3744
  pageInfo: PageInfo;
3983
3745
  }
3984
- export const PaginatedResponsePersonnelGroupResults = /*@__PURE__*/ S.suspend(
3985
- () =>
3986
- S.Struct({
3987
- data: PaginatedResponsePersonnelGroupResultsDataList,
3988
- pageInfo: PageInfo,
3989
- }),
3746
+ export const PaginatedResponsePersonnelGroupResults = /*@__PURE__*/ S.suspend(() =>
3747
+ S.Struct({
3748
+ data: PaginatedResponsePersonnelGroupResultsDataList,
3749
+ pageInfo: PageInfo,
3750
+ }),
3990
3751
  ).annotate({
3991
3752
  identifier: "PaginatedResponsePersonnelGroupResults",
3992
3753
  }) as any as S.Schema<PaginatedResponsePersonnelGroupResults>;
@@ -4013,10 +3774,9 @@ export type PeopleEmploymentStatus =
4013
3774
  export const PeopleEmploymentStatus = S.String;
4014
3775
 
4015
3776
  export type ListPersonnelPeopleRequestGroupsMatchesAnyList = Array<string>;
4016
- export const ListPersonnelPeopleRequestGroupsMatchesAnyList =
4017
- /*@__PURE__*/ S.Array(
4018
- S.String,
4019
- ) as any as S.Schema<ListPersonnelPeopleRequestGroupsMatchesAnyList>;
3777
+ export const ListPersonnelPeopleRequestGroupsMatchesAnyList = /*@__PURE__*/ S.Array(
3778
+ S.String,
3779
+ ) as any as S.Schema<ListPersonnelPeopleRequestGroupsMatchesAnyList>;
4020
3780
 
4021
3781
  export type PeopleOrderBy = "name" | "employmentStatus";
4022
3782
  export const PeopleOrderBy = S.String;
@@ -4046,18 +3806,10 @@ export const ListPersonnelPeopleRequest = /*@__PURE__*/ S.suspend(() =>
4046
3806
  pageCursor: S.optional(S.String.pipe(T.Query())),
4047
3807
  search: S.optional(S.String.pipe(T.Query())),
4048
3808
  status: S.optional(PeopleEmploymentStatus.pipe(T.Query())),
4049
- groupsMatchesAny: S.optional(
4050
- ListPersonnelPeopleRequestGroupsMatchesAnyList.pipe(T.Query()),
4051
- ),
3809
+ groupsMatchesAny: S.optional(ListPersonnelPeopleRequestGroupsMatchesAnyList.pipe(T.Query())),
4052
3810
  orderBy: S.optional(PeopleOrderBy.pipe(T.Query())),
4053
3811
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
4054
- }).pipe(
4055
- T.Http({
4056
- method: "GET",
4057
- uri: "/audits/{auditId}/personnel/people",
4058
- code: 200,
4059
- }),
4060
- ),
3812
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/personnel/people", code: 200 })),
4061
3813
  ).annotate({
4062
3814
  identifier: "ListPersonnelPeopleRequest",
4063
3815
  }) as any as S.Schema<ListPersonnelPeopleRequest>;
@@ -4091,9 +3843,7 @@ export const PeopleSourceInfo = /*@__PURE__*/ S.suspend(() =>
4091
3843
  mainSource: S.String,
4092
3844
  supplementarySource: S.NullOr(S.String),
4093
3845
  }),
4094
- ).annotate({
4095
- identifier: "PeopleSourceInfo",
4096
- }) as any as S.Schema<PeopleSourceInfo>;
3846
+ ).annotate({ identifier: "PeopleSourceInfo" }) as any as S.Schema<PeopleSourceInfo>;
4097
3847
 
4098
3848
  /** Overall user task status. */
4099
3849
  export type PeopleTaskStatus =
@@ -4131,9 +3881,7 @@ export const PeopleTaskStatusInfo = /*@__PURE__*/ S.suspend(() =>
4131
3881
  numTasksOverdue: S.NullOr(S.Number),
4132
3882
  numTasksDueSoon: S.NullOr(S.Number),
4133
3883
  }),
4134
- ).annotate({
4135
- identifier: "PeopleTaskStatusInfo",
4136
- }) as any as S.Schema<PeopleTaskStatusInfo>;
3884
+ ).annotate({ identifier: "PeopleTaskStatusInfo" }) as any as S.Schema<PeopleTaskStatusInfo>;
4137
3885
 
4138
3886
  /** Security task status for individual task categories. */
4139
3887
  export type PeopleSecurityTaskStatus =
@@ -4219,27 +3967,22 @@ export const PersonnelPerson = /*@__PURE__*/ S.suspend(() =>
4219
3967
  customOnboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
4220
3968
  customOffboarding: S.optional(S.NullOr(PeopleSecurityTaskDetails)),
4221
3969
  }),
4222
- ).annotate({
4223
- identifier: "PersonnelPerson",
4224
- }) as any as S.Schema<PersonnelPerson>;
3970
+ ).annotate({ identifier: "PersonnelPerson" }) as any as S.Schema<PersonnelPerson>;
4225
3971
 
4226
- export type PaginatedResponsePersonnelPersonResultsDataList =
4227
- Array<PersonnelPerson>;
4228
- export const PaginatedResponsePersonnelPersonResultsDataList =
4229
- /*@__PURE__*/ S.Array(
4230
- PersonnelPerson,
4231
- ) as any as S.Schema<PaginatedResponsePersonnelPersonResultsDataList>;
3972
+ export type PaginatedResponsePersonnelPersonResultsDataList = Array<PersonnelPerson>;
3973
+ export const PaginatedResponsePersonnelPersonResultsDataList = /*@__PURE__*/ S.Array(
3974
+ PersonnelPerson,
3975
+ ) as any as S.Schema<PaginatedResponsePersonnelPersonResultsDataList>;
4232
3976
 
4233
3977
  export interface PaginatedResponsePersonnelPersonResults {
4234
3978
  data: PaginatedResponsePersonnelPersonResultsDataList;
4235
3979
  pageInfo: PageInfo;
4236
3980
  }
4237
- export const PaginatedResponsePersonnelPersonResults = /*@__PURE__*/ S.suspend(
4238
- () =>
4239
- S.Struct({
4240
- data: PaginatedResponsePersonnelPersonResultsDataList,
4241
- pageInfo: PageInfo,
4242
- }),
3981
+ export const PaginatedResponsePersonnelPersonResults = /*@__PURE__*/ S.suspend(() =>
3982
+ S.Struct({
3983
+ data: PaginatedResponsePersonnelPersonResultsDataList,
3984
+ pageInfo: PageInfo,
3985
+ }),
4243
3986
  ).annotate({
4244
3987
  identifier: "PaginatedResponsePersonnelPersonResults",
4245
3988
  }) as any as S.Schema<PaginatedResponsePersonnelPersonResults>;
@@ -4268,16 +4011,8 @@ export const ListRiskSnapshotsRequest = /*@__PURE__*/ S.suspend(() =>
4268
4011
  auditId: S.String.pipe(T.Label()),
4269
4012
  pageSize: S.optional(S.Number.pipe(T.Query())),
4270
4013
  pageCursor: S.optional(S.String.pipe(T.Query())),
4271
- }).pipe(
4272
- T.Http({
4273
- method: "GET",
4274
- uri: "/audits/{auditId}/risks/snapshots",
4275
- code: 200,
4276
- }),
4277
- ),
4278
- ).annotate({
4279
- identifier: "ListRiskSnapshotsRequest",
4280
- }) as any as S.Schema<ListRiskSnapshotsRequest>;
4014
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/risks/snapshots", code: 200 })),
4015
+ ).annotate({ identifier: "ListRiskSnapshotsRequest" }) as any as S.Schema<ListRiskSnapshotsRequest>;
4281
4016
 
4282
4017
  /** A risk assessment snapshot available for an audit. Risk snapshots capture the state of an organization's risk register at a point in time. Use the snapshot `id` with the `/audits/{auditId}/risks/{snapshotId}` endpoint to retrieve the risk scenarios within a snapshot. */
4283
4018
  export interface RiskSnapshot {
@@ -4294,21 +4029,19 @@ export const RiskSnapshot = /*@__PURE__*/ S.suspend(() =>
4294
4029
  ).annotate({ identifier: "RiskSnapshot" }) as any as S.Schema<RiskSnapshot>;
4295
4030
 
4296
4031
  export type PaginatedResponseRiskSnapshotResultsDataList = Array<RiskSnapshot>;
4297
- export const PaginatedResponseRiskSnapshotResultsDataList =
4298
- /*@__PURE__*/ S.Array(
4299
- RiskSnapshot,
4300
- ) as any as S.Schema<PaginatedResponseRiskSnapshotResultsDataList>;
4032
+ export const PaginatedResponseRiskSnapshotResultsDataList = /*@__PURE__*/ S.Array(
4033
+ RiskSnapshot,
4034
+ ) as any as S.Schema<PaginatedResponseRiskSnapshotResultsDataList>;
4301
4035
 
4302
4036
  export interface PaginatedResponseRiskSnapshotResults {
4303
4037
  data: PaginatedResponseRiskSnapshotResultsDataList;
4304
4038
  pageInfo: PageInfo;
4305
4039
  }
4306
- export const PaginatedResponseRiskSnapshotResults = /*@__PURE__*/ S.suspend(
4307
- () =>
4308
- S.Struct({
4309
- data: PaginatedResponseRiskSnapshotResultsDataList,
4310
- pageInfo: PageInfo,
4311
- }),
4040
+ export const PaginatedResponseRiskSnapshotResults = /*@__PURE__*/ S.suspend(() =>
4041
+ S.Struct({
4042
+ data: PaginatedResponseRiskSnapshotResultsDataList,
4043
+ pageInfo: PageInfo,
4044
+ }),
4312
4045
  ).annotate({
4313
4046
  identifier: "PaginatedResponseRiskSnapshotResults",
4314
4047
  }) as any as S.Schema<PaginatedResponseRiskSnapshotResults>;
@@ -4331,11 +4064,7 @@ export const ListShareInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
4331
4064
  S.Struct({
4332
4065
  auditId: S.String.pipe(T.Label()),
4333
4066
  }).pipe(
4334
- T.Http({
4335
- method: "POST",
4336
- uri: "/audits/{auditId}/share-information-request-list",
4337
- code: 200,
4338
- }),
4067
+ T.Http({ method: "POST", uri: "/audits/{auditId}/share-information-request-list", code: 200 }),
4339
4068
  ),
4340
4069
  ).annotate({
4341
4070
  identifier: "ListShareInformationRequestRequest",
@@ -4347,26 +4076,19 @@ export const AuditVendorStatus = S.String;
4347
4076
  export type ListVendorsRequestVendorStatusesMatchesAnyList = Array<
4348
4077
  AuditVendorStatus | (string & {})
4349
4078
  >;
4350
- export const ListVendorsRequestVendorStatusesMatchesAnyList =
4351
- /*@__PURE__*/ S.Array(
4352
- AuditVendorStatus,
4353
- ) as any as S.Schema<ListVendorsRequestVendorStatusesMatchesAnyList>;
4354
-
4355
- export type AuditVendorRiskLevel =
4356
- | "CRITICAL"
4357
- | "HIGH"
4358
- | "MEDIUM"
4359
- | "LOW"
4360
- | "UNSCORED";
4079
+ export const ListVendorsRequestVendorStatusesMatchesAnyList = /*@__PURE__*/ S.Array(
4080
+ AuditVendorStatus,
4081
+ ) as any as S.Schema<ListVendorsRequestVendorStatusesMatchesAnyList>;
4082
+
4083
+ export type AuditVendorRiskLevel = "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "UNSCORED";
4361
4084
  export const AuditVendorRiskLevel = S.String;
4362
4085
 
4363
4086
  export type ListVendorsRequestInherentRiskMatchesAnyList = Array<
4364
4087
  AuditVendorRiskLevel | (string & {})
4365
4088
  >;
4366
- export const ListVendorsRequestInherentRiskMatchesAnyList =
4367
- /*@__PURE__*/ S.Array(
4368
- AuditVendorRiskLevel,
4369
- ) as any as S.Schema<ListVendorsRequestInherentRiskMatchesAnyList>;
4089
+ export const ListVendorsRequestInherentRiskMatchesAnyList = /*@__PURE__*/ S.Array(
4090
+ AuditVendorRiskLevel,
4091
+ ) as any as S.Schema<ListVendorsRequestInherentRiskMatchesAnyList>;
4370
4092
 
4371
4093
  export type VendorOrderBy = "name" | "inherentRisk";
4372
4094
  export const VendorOrderBy = S.String;
@@ -4403,16 +4125,8 @@ export const ListVendorsRequest = /*@__PURE__*/ S.suspend(() =>
4403
4125
  ),
4404
4126
  orderBy: S.optional(VendorOrderBy.pipe(T.Query())),
4405
4127
  orderDirection: S.optional(OrderDirection.pipe(T.Query())),
4406
- }).pipe(
4407
- T.Http({
4408
- method: "GET",
4409
- uri: "/audits/{auditId}/managed-vendors",
4410
- code: 200,
4411
- }),
4412
- ),
4413
- ).annotate({
4414
- identifier: "ListVendorsRequest",
4415
- }) as any as S.Schema<ListVendorsRequest>;
4128
+ }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/managed-vendors", code: 200 })),
4129
+ ).annotate({ identifier: "ListVendorsRequest" }) as any as S.Schema<ListVendorsRequest>;
4416
4130
 
4417
4131
  /** BAA/DPA document completion counts, or null if no such documents are required. Full Audit View only - omitted in Controlled Audit View. */
4418
4132
  export interface AuditVendorDataAgreements {
@@ -4467,10 +4181,9 @@ export const AuditVendor = /*@__PURE__*/ S.suspend(() =>
4467
4181
  ).annotate({ identifier: "AuditVendor" }) as any as S.Schema<AuditVendor>;
4468
4182
 
4469
4183
  export type PaginatedResponseAuditVendorResultsDataList = Array<AuditVendor>;
4470
- export const PaginatedResponseAuditVendorResultsDataList =
4471
- /*@__PURE__*/ S.Array(
4472
- AuditVendor,
4473
- ) as any as S.Schema<PaginatedResponseAuditVendorResultsDataList>;
4184
+ export const PaginatedResponseAuditVendorResultsDataList = /*@__PURE__*/ S.Array(
4185
+ AuditVendor,
4186
+ ) as any as S.Schema<PaginatedResponseAuditVendorResultsDataList>;
4474
4187
 
4475
4188
  export interface PaginatedResponseAuditVendorResults {
4476
4189
  data: PaginatedResponseAuditVendorResultsDataList;
@@ -4510,12 +4223,11 @@ export interface UpdateAuditEvidenceRequestStatusUpdate {
4510
4223
  /** State change for audit evidence */
4511
4224
  stateTransition: AuditorEnabledStateTransition | (string & {});
4512
4225
  }
4513
- export const UpdateAuditEvidenceRequestStatusUpdate = /*@__PURE__*/ S.suspend(
4514
- () =>
4515
- S.Struct({
4516
- auditorEmail: S.String,
4517
- stateTransition: AuditorEnabledStateTransition,
4518
- }),
4226
+ export const UpdateAuditEvidenceRequestStatusUpdate = /*@__PURE__*/ S.suspend(() =>
4227
+ S.Struct({
4228
+ auditorEmail: S.String,
4229
+ stateTransition: AuditorEnabledStateTransition,
4230
+ }),
4519
4231
  ).annotate({
4520
4232
  identifier: "UpdateAuditEvidenceRequestStatusUpdate",
4521
4233
  }) as any as S.Schema<UpdateAuditEvidenceRequestStatusUpdate>;
@@ -4531,11 +4243,7 @@ export const UpdateAuditEvidenceRequest = /*@__PURE__*/ S.suspend(() =>
4531
4243
  auditEvidenceId: S.String.pipe(T.Label()),
4532
4244
  statusUpdate: S.optional(UpdateAuditEvidenceRequestStatusUpdate),
4533
4245
  }).pipe(
4534
- T.Http({
4535
- method: "PATCH",
4536
- uri: "/audits/{auditId}/evidence/{auditEvidenceId}",
4537
- code: 200,
4538
- }),
4246
+ T.Http({ method: "PATCH", uri: "/audits/{auditId}/evidence/{auditEvidenceId}", code: 200 }),
4539
4247
  ),
4540
4248
  ).annotate({
4541
4249
  identifier: "UpdateAuditEvidenceRequest",
@@ -4577,44 +4285,46 @@ export interface UpdateCommentForInformationRequestRequest {
4577
4285
  /** Email address of the comment author. Must match an existing Vanta user who belongs to the audit firm making the API request. This email uniquely identifies the author across systems. */
4578
4286
  email: string;
4579
4287
  }
4580
- export const UpdateCommentForInformationRequestRequest =
4581
- /*@__PURE__*/ S.suspend(() =>
4582
- S.Struct({
4583
- auditId: S.String.pipe(T.Label()),
4584
- requestId: S.String.pipe(T.Label()),
4585
- commentId: S.String.pipe(T.Label()),
4586
- text: S.String,
4587
- email: S.String,
4588
- }).pipe(
4589
- T.Http({
4590
- method: "PATCH",
4591
- uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
4592
- code: 200,
4593
- }),
4594
- ),
4595
- ).annotate({
4596
- identifier: "UpdateCommentForInformationRequestRequest",
4597
- }) as any as S.Schema<UpdateCommentForInformationRequestRequest>;
4288
+ export const UpdateCommentForInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
4289
+ S.Struct({
4290
+ auditId: S.String.pipe(T.Label()),
4291
+ requestId: S.String.pipe(T.Label()),
4292
+ commentId: S.String.pipe(T.Label()),
4293
+ text: S.String,
4294
+ email: S.String,
4295
+ }).pipe(
4296
+ T.Http({
4297
+ method: "PATCH",
4298
+ uri: "/audits/{auditId}/information-requests/{requestId}/comments/{commentId}",
4299
+ code: 200,
4300
+ }),
4301
+ ),
4302
+ ).annotate({
4303
+ identifier: "UpdateCommentForInformationRequestRequest",
4304
+ }) as any as S.Schema<UpdateCommentForInformationRequestRequest>;
4598
4305
 
4599
- /** The framework codes this request addresses. An empty array if no framework codes are associated. */
4306
+ /** Framework codes are assigned only at creation; on update this field is a silent no-op — a value sent here is accepted for backwards compatibility but ignored, leaving the request's framework codes unchanged. */
4600
4307
  export type UpdateInformationRequestRequestFrameworkCodesList = Array<string>;
4601
- export const UpdateInformationRequestRequestFrameworkCodesList =
4602
- /*@__PURE__*/ S.Array(
4603
- S.String,
4604
- ) as any as S.Schema<UpdateInformationRequestRequestFrameworkCodesList>;
4308
+ export const UpdateInformationRequestRequestFrameworkCodesList = /*@__PURE__*/ S.Array(
4309
+ S.String,
4310
+ ) as any as S.Schema<UpdateInformationRequestRequestFrameworkCodesList>;
4605
4311
 
4606
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Replaces the existing set: pass the complete desired list, an empty array to clear all direct control links, or omit to leave them unchanged. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. */
4607
- export type UpdateInformationRequestRequestAdditionalControlIdsList =
4608
- Array<string>;
4609
- export const UpdateInformationRequestRequestAdditionalControlIdsList =
4610
- /*@__PURE__*/ S.Array(
4611
- S.String,
4612
- ) as any as S.Schema<UpdateInformationRequestRequestAdditionalControlIdsList>;
4312
+ /** This legacy field is accepted for backwards compatibility but ignored. Use `linkedControlIds` to replace the complete set of linked controls. */
4313
+ export type UpdateInformationRequestRequestAdditionalControlIdsList = Array<string>;
4314
+ export const UpdateInformationRequestRequestAdditionalControlIdsList = /*@__PURE__*/ S.Array(
4315
+ S.String,
4316
+ ) as any as S.Schema<UpdateInformationRequestRequestAdditionalControlIdsList>;
4317
+
4318
+ /** The complete desired set of control IDs linked to this request. Send the full list to replace the set, an empty array to clear it, or omit the property to leave links unchanged. Each ID must identify an existing control in the customer's organization and is returned by the audit controls endpoint. The request is rejected if any ID does not match a control. */
4319
+ export type UpdateInformationRequestRequestLinkedControlIdsList = Array<string>;
4320
+ export const UpdateInformationRequestRequestLinkedControlIdsList = /*@__PURE__*/ S.Array(
4321
+ S.String,
4322
+ ) as any as S.Schema<UpdateInformationRequestRequestLinkedControlIdsList>;
4613
4323
 
4614
4324
  export interface UpdateInformationRequestRequest {
4615
4325
  auditId: string;
4616
4326
  requestId: string;
4617
- /** The framework codes this request addresses. An empty array if no framework codes are associated. */
4327
+ /** Framework codes are assigned only at creation; on update this field is a silent no-op — a value sent here is accepted for backwards compatibility but ignored, leaving the request's framework codes unchanged. */
4618
4328
  frameworkCodes?: UpdateInformationRequestRequestFrameworkCodesList;
4619
4329
  /** Detailed description of what evidence is needed. */
4620
4330
  description?: string | null;
@@ -4628,25 +4338,24 @@ export interface UpdateInformationRequestRequest {
4628
4338
  title?: string;
4629
4339
  /** How frequently this request recurs. */
4630
4340
  cadence?: InformationRequestCadence | (string & {});
4631
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Replaces the existing set: pass the complete desired list, an empty array to clear all direct control links, or omit to leave them unchanged. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. */
4341
+ /** This legacy field is accepted for backwards compatibility but ignored. Use `linkedControlIds` to replace the complete set of linked controls. */
4632
4342
  additionalControlIds?: UpdateInformationRequestRequestAdditionalControlIdsList;
4343
+ /** The complete desired set of control IDs linked to this request. Send the full list to replace the set, an empty array to clear it, or omit the property to leave links unchanged. Each ID must identify an existing control in the customer's organization and is returned by the audit controls endpoint. The request is rejected if any ID does not match a control. */
4344
+ linkedControlIds?: UpdateInformationRequestRequestLinkedControlIdsList;
4633
4345
  }
4634
4346
  export const UpdateInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
4635
4347
  S.Struct({
4636
4348
  auditId: S.String.pipe(T.Label()),
4637
4349
  requestId: S.String.pipe(T.Label()),
4638
- frameworkCodes: S.optional(
4639
- UpdateInformationRequestRequestFrameworkCodesList,
4640
- ),
4350
+ frameworkCodes: S.optional(UpdateInformationRequestRequestFrameworkCodesList),
4641
4351
  description: S.optional(S.NullOr(S.String)),
4642
4352
  dueDate: S.optional(S.NullOr(S.String)),
4643
4353
  evidenceCaptureDate: S.optional(S.NullOr(S.String)),
4644
4354
  requestType: S.optional(InformationRequestType),
4645
4355
  title: S.optional(S.String),
4646
4356
  cadence: S.optional(InformationRequestCadence),
4647
- additionalControlIds: S.optional(
4648
- UpdateInformationRequestRequestAdditionalControlIdsList,
4649
- ),
4357
+ additionalControlIds: S.optional(UpdateInformationRequestRequestAdditionalControlIdsList),
4358
+ linkedControlIds: S.optional(UpdateInformationRequestRequestLinkedControlIdsList),
4650
4359
  }).pipe(
4651
4360
  T.Http({
4652
4361
  method: "PATCH",
@@ -4661,7 +4370,7 @@ export const UpdateInformationRequestRequest = /*@__PURE__*/ S.suspend(() =>
4661
4370
  export interface UpsertAssessmentForControlRequest {
4662
4371
  auditId: string;
4663
4372
  controlId: string;
4664
- /** The program segment to assess. Required when the audit has more than one program segment. Optional on a single-program audit (the only program is used). Must be a program segment on the audit; system segments are rejected. */
4373
+ /** The segment to assess: any segment on the audit, `PROGRAM` or `SYSTEM`. May be omitted only when the audit has exactly one segment; required otherwise. */
4665
4374
  segmentId?: string;
4666
4375
  /** The assessment state to record. Must be one of the states valid for the segment's framework; the request is rejected otherwise. */
4667
4376
  assessmentState: AuditControlAssessmentState | (string & {});
@@ -4679,21 +4388,17 @@ export const UpsertAssessmentForControlRequest = /*@__PURE__*/ S.suspend(() =>
4679
4388
  justification: S.String,
4680
4389
  auditorEmail: S.String,
4681
4390
  }).pipe(
4682
- T.Http({
4683
- method: "PUT",
4684
- uri: "/audits/{auditId}/controls/{controlId}/assessment",
4685
- code: 200,
4686
- }),
4391
+ T.Http({ method: "PUT", uri: "/audits/{auditId}/controls/{controlId}/assessment", code: 200 }),
4687
4392
  ),
4688
4393
  ).annotate({
4689
4394
  identifier: "UpsertAssessmentForControlRequest",
4690
4395
  }) as any as S.Schema<UpsertAssessmentForControlRequest>;
4691
4396
 
4692
- /** A control's auditor assessment, as persisted. Returned by the assessment write endpoint so the caller sees exactly what was recorded. */
4397
+ /** A control's auditor assessment returned by the assessment write endpoint. */
4693
4398
  export interface AuditorControlAssessment {
4694
4399
  /** The control this assessment belongs to. */
4695
4400
  controlId: string;
4696
- /** The program segment this assessment was written to. */
4401
+ /** The audit segment this assessment was written to. */
4697
4402
  segmentId: string;
4698
4403
  /** The recorded assessment state. */
4699
4404
  assessmentState: AuditControlAssessmentState;
@@ -4707,9 +4412,7 @@ export const AuditorControlAssessment = /*@__PURE__*/ S.suspend(() =>
4707
4412
  assessmentState: AuditControlAssessmentState,
4708
4413
  justification: S.String,
4709
4414
  }),
4710
- ).annotate({
4711
- identifier: "AuditorControlAssessment",
4712
- }) as any as S.Schema<AuditorControlAssessment>;
4415
+ ).annotate({ identifier: "AuditorControlAssessment" }) as any as S.Schema<AuditorControlAssessment>;
4713
4416
 
4714
4417
  export type AcceptInformationRequestEvidenceError = VantaOpError;
4715
4418
  /** 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. */
@@ -4790,12 +4493,12 @@ export type CreateCustomControlError = VantaOpError;
4790
4493
  /** 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. */
4791
4494
  export const createCustomControl: API.OperationMethod<
4792
4495
  CreateCustomControlRequest,
4793
- Control,
4496
+ AuditorApiControl,
4794
4497
  CreateCustomControlError,
4795
4498
  VantaOpContext
4796
4499
  > = /*@__PURE__*/ API.make(() => ({
4797
4500
  input: CreateCustomControlRequest,
4798
- output: Control,
4501
+ output: AuditorApiControl,
4799
4502
  errors: [UnknownVantaError],
4800
4503
  protocol: VantaProtocol,
4801
4504
  retry: Retry.Retry,
@@ -4862,7 +4565,7 @@ export const deleteCommentForInformationRequest: API.OperationMethod<
4862
4565
  }));
4863
4566
 
4864
4567
  export type DeleteInformationRequestError = VantaOpError;
4865
- /** 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. */
4568
+ /** 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. */
4866
4569
  export const deleteInformationRequest: API.OperationMethod<
4867
4570
  DeleteInformationRequestRequest,
4868
4571
  DeleteInformationRequestResponse,
@@ -4907,19 +4610,15 @@ export const flagInformationRequestEvidence: API.OperationMethod<
4907
4610
  }));
4908
4611
 
4909
4612
  export type GetAuditError = VantaOpError;
4910
- /** 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. */
4911
- export const getAudit: API.OperationMethod<
4912
- GetAuditRequest,
4913
- Audit,
4914
- GetAuditError,
4915
- VantaOpContext
4916
- > = /*@__PURE__*/ API.make(() => ({
4917
- input: GetAuditRequest,
4918
- output: Audit,
4919
- errors: [UnknownVantaError],
4920
- protocol: VantaProtocol,
4921
- retry: Retry.Retry,
4922
- }));
4613
+ /** 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. */
4614
+ export const getAudit: API.OperationMethod<GetAuditRequest, Audit, GetAuditError, VantaOpContext> =
4615
+ /*@__PURE__*/ API.make(() => ({
4616
+ input: GetAuditRequest,
4617
+ output: Audit,
4618
+ errors: [UnknownVantaError],
4619
+ protocol: VantaProtocol,
4620
+ retry: Retry.Retry,
4621
+ }));
4923
4622
 
4924
4623
  export type GetAuditEvidenceError = VantaOpError;
4925
4624
  /** Get an audit evidence item by ID Retrieves a single classic audit evidence item by its ID, scoped to its audit. The response matches the entry `GET /audits/{auditId}/evidence` returns for the same item, so an evidence ID surfaced by a webhook can be resolved directly instead of paging the audit's full evidence list. Soft-deleted evidence (where `deletionDate !== null`) is included in the response. Clients should check `deletionDate` to determine whether the item has been deleted. This matches `GET /audits/{auditId}/evidence`, which supports `changedSinceDate` and returns soft-deleted evidence for delta sync. As on the list endpoint, `description` is null for deleted items. Rate limit: 250 requests / minute. */
@@ -4952,7 +4651,7 @@ export const getAuditEvidenceComment: API.OperationMethod<
4952
4651
  }));
4953
4652
 
4954
4653
  export type GetCommentForInformationRequestError = VantaOpError;
4955
- /** 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. */
4654
+ /** 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. */
4956
4655
  export const getCommentForInformationRequest: API.OperationMethod<
4957
4656
  GetCommentForInformationRequestRequest,
4958
4657
  InformationRequestComment,
@@ -4967,7 +4666,7 @@ export const getCommentForInformationRequest: API.OperationMethod<
4967
4666
  }));
4968
4667
 
4969
4668
  export type GetFrameworkCodesError = VantaOpError;
4970
- /** 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. */
4669
+ /** 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. */
4971
4670
  export const getFrameworkCodes: API.OperationMethod<
4972
4671
  GetFrameworkCodesRequest,
4973
4672
  FrameworkCodes,
@@ -4982,7 +4681,7 @@ export const getFrameworkCodes: API.OperationMethod<
4982
4681
  }));
4983
4682
 
4984
4683
  export type GetInformationRequestError = VantaOpError;
4985
- /** 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. */
4684
+ /** 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. */
4986
4685
  export const getInformationRequest: API.OperationMethod<
4987
4686
  GetInformationRequestRequest,
4988
4687
  InformationRequest,
@@ -4997,7 +4696,7 @@ export const getInformationRequest: API.OperationMethod<
4997
4696
  }));
4998
4697
 
4999
4698
  export type GetInformationRequestEvidenceError = VantaOpError;
5000
- /** 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. */
4699
+ /** 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. */
5001
4700
  export const getInformationRequestEvidence: API.OperationMethod<
5002
4701
  GetInformationRequestEvidenceRequest,
5003
4702
  InformationRequestEvidence,
@@ -5162,7 +4861,7 @@ export const listAuditRisks: API.OperationMethod<
5162
4861
  }));
5163
4862
 
5164
4863
  export type ListAuditsError = VantaOpError;
5165
- /** 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. */
4864
+ /** 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. */
5166
4865
  export const listAudits: API.OperationMethod<
5167
4866
  ListAuditsRequest,
5168
4867
  PaginatedResponseAudit,
@@ -5222,7 +4921,7 @@ export const listCommentsForControl: API.OperationMethod<
5222
4921
  }));
5223
4922
 
5224
4923
  export type ListCommentsForInformationRequestError = VantaOpError;
5225
- /** 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. */
4924
+ /** 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. */
5226
4925
  export const listCommentsForInformationRequest: API.OperationMethod<
5227
4926
  ListCommentsForInformationRequestRequest,
5228
4927
  PaginatedResponseInformationRequestComment,
@@ -5237,7 +4936,7 @@ export const listCommentsForInformationRequest: API.OperationMethod<
5237
4936
  }));
5238
4937
 
5239
4938
  export type ListInformationRequestActivityError = VantaOpError;
5240
- /** 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. */
4939
+ /** 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. */
5241
4940
  export const listInformationRequestActivity: API.OperationMethod<
5242
4941
  ListInformationRequestActivityRequest,
5243
4942
  PaginatedResponseInformationRequestActivityLog,
@@ -5252,7 +4951,7 @@ export const listInformationRequestActivity: API.OperationMethod<
5252
4951
  }));
5253
4952
 
5254
4953
  export type ListInformationRequestEvidenceError = VantaOpError;
5255
- /** 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. */
4954
+ /** 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. */
5256
4955
  export const listInformationRequestEvidence: API.OperationMethod<
5257
4956
  ListInformationRequestEvidenceRequest,
5258
4957
  PaginatedResponseInformationRequestEvidence,
@@ -5267,7 +4966,7 @@ export const listInformationRequestEvidence: API.OperationMethod<
5267
4966
  }));
5268
4967
 
5269
4968
  export type ListInformationRequestsError = VantaOpError;
5270
- /** 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. */
4969
+ /** 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. */
5271
4970
  export const listInformationRequests: API.OperationMethod<
5272
4971
  ListInformationRequestsRequest,
5273
4972
  PaginatedResponseInformationRequest,
@@ -5282,7 +4981,7 @@ export const listInformationRequests: API.OperationMethod<
5282
4981
  }));
5283
4982
 
5284
4983
  export type ListInformationRequestsForControlError = VantaOpError;
5285
- /** 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. */
4984
+ /** 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. */
5286
4985
  export const listInformationRequestsForControl: API.OperationMethod<
5287
4986
  ListInformationRequestsForControlRequest,
5288
4987
  PaginatedResponseInformationRequest,
@@ -5462,7 +5161,7 @@ export const updateInformationRequest: API.OperationMethod<
5462
5161
  }));
5463
5162
 
5464
5163
  export type UpsertAssessmentForControlError = VantaOpError;
5465
- /** 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. */
5164
+ /** 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. */
5466
5165
  export const upsertAssessmentForControl: API.OperationMethod<
5467
5166
  UpsertAssessmentForControlRequest,
5468
5167
  AuditorControlAssessment,