@distilled.cloud/vanta 1.0.0-rc.18 → 1.0.0-rc.20

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.
@@ -278,8 +278,10 @@ export type FrameworkId =
278
278
  | "SOX_ITGC"
279
279
  | "UK_CYBER_ESSENTIALS"
280
280
  | "US_DATA_PRIVACY";
281
+ /** The framework's id, such as `soc2` or the id of a custom framework. The `FrameworkId` enum values are deprecated aliases that are still accepted. */
281
282
  export type FrameworkSectionFrameworkId = FrameworkId | string;
282
283
  export interface FrameworkSection {
284
+ /** The framework's id, such as `soc2` or the id of a custom framework. The `FrameworkId` enum values are deprecated aliases that are still accepted. */
283
285
  frameworkId: FrameworkSectionFrameworkId;
284
286
  sectionId: string;
285
287
  }
@@ -299,9 +301,9 @@ export interface CreateCustomControlRequest {
299
301
  /** The category of the control. See the ControlDomain enum for possible values. */
300
302
  category: ControlDomain | (string & {});
301
303
  /** Framework sections that the control should be mapped to. */
302
- sections?: CreateCustomControlRequestSectionsList | null;
304
+ sections?: CreateCustomControlRequestSectionsList | null | undefined;
303
305
  /** The GDPR role of the control, which specifies whether the data is being "collected" or "processed". See the GdprRole enum for possible values. This field should only be included for controls that are to be mapped to the GDPR framework. */
304
- role?: GdprRole | (string & {}) | null;
306
+ role?: GdprRole | (string & {}) | null | undefined;
305
307
  }
306
308
  export type ControlSource = "Vanta" | "Custom";
307
309
  /** The security domains that the control belongs to. */
@@ -338,7 +340,7 @@ export interface AuditorApiControl {
338
340
  /** The control's owner. */
339
341
  owner: Owner | null;
340
342
  /** The control's GDPR role, if the control is a GDPR control. */
341
- role?: string | null;
343
+ role?: string | null | undefined;
342
344
  /** The control's custom field values, if control custom fields is included in your Vanta instance. */
343
345
  customFields: AuditorApiControlCustomFieldsList;
344
346
  /** When the control was created. Returns null for Vanta library controls. */
@@ -397,17 +399,17 @@ export interface CreateInformationRequestRequest {
397
399
  /** Scope of evidence required. */
398
400
  requestType: InformationRequestType | (string & {});
399
401
  /** Detailed description explaining what evidence is needed. Helps the customer understand what to submit. Optional. */
400
- description?: string | null;
402
+ description?: string | null | undefined;
401
403
  /** Framework codes this request addresses. An empty array if no framework codes are associated. */
402
404
  frameworkCodes: CreateInformationRequestRequestFrameworkCodesList;
403
405
  /** How frequently this request recurs. Null or omitted for one-time requests. */
404
- cadence?: InformationRequestCadence | (string & {}) | null;
406
+ cadence?: InformationRequestCadence | (string & {}) | null | undefined;
405
407
  /** Deadline for fulfilling this request. Null or omitted if no deadline. Format: ISO 8601 UTC timestamp. */
406
- dueDate?: string | null;
408
+ dueDate?: string | null | undefined;
407
409
  /** 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. */
408
- evidenceCaptureDate?: string | null;
410
+ evidenceCaptureDate?: string | null | undefined;
409
411
  /** 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. */
410
- additionalControlIds?: CreateInformationRequestRequestAdditionalControlIdsList;
412
+ additionalControlIds?: CreateInformationRequestRequestAdditionalControlIdsList | undefined;
411
413
  }
412
414
  export interface DeleteCommentForControlRequest {
413
415
  auditId: string;
@@ -449,6 +451,7 @@ export interface DuplicateRequest {
449
451
  /** Emails of auditors with access to audit */
450
452
  export type AuditAllowAuditorEmailsList = Array<string>;
451
453
  export type AuditFocus = "EXTERNAL" | "INTERNAL";
454
+ export type AuditView = "FULL" | "CONTROLLED";
452
455
  export type AuditIrlGenerationStatus = "PENDING" | "RUNNING" | "READY" | "FAILED";
453
456
  /** 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. */
454
457
  export interface AuditAuditorRequestListMetadata {
@@ -536,10 +539,12 @@ export interface Audit {
536
539
  completionDate: string | null;
537
540
  /** Audit focus determines if the audit is internal or external facing */
538
541
  auditFocus: AuditFocus;
542
+ /** How much population data the auditor can see: `FULL` (Full Audit View) or `CONTROLLED` (Controlled Audit View). Some population endpoints serve only one view; each endpoint's description says which. */
543
+ auditView: AuditView;
539
544
  /** 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. */
540
545
  irlGenerationStatus: AuditIrlGenerationStatus | null;
541
546
  /** 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. */
542
- auditorRequestListMetadata?: AuditAuditorRequestListMetadata;
547
+ auditorRequestListMetadata?: AuditAuditorRequestListMetadata | undefined;
543
548
  /** 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. */
544
549
  segments: AuditSegmentsList;
545
550
  }
@@ -651,12 +656,14 @@ export type InformationRequestSupportedEvidenceType =
651
656
  | "VANTA_POLICY"
652
657
  | "VANTA_TEST"
653
658
  | "VANTA_TEST_SNAPSHOT";
659
+ /** IDs of the audit segments this evidence was relevant to when captured. Empty for uploaded, link and observation evidence, and for evidence captured before attribution was recorded. */
660
+ export type InformationRequestEvidenceCapturedSegmentIdsList = Array<string>;
654
661
  /** Evidence in the form of an uploaded document file. The URL is a temporary presigned URL that expires after a certain period. */
655
662
  export interface UploadedDocumentEvidence {
656
663
  /** The unique identifier for the uploaded document in Vanta's system. */
657
664
  id: string;
658
665
  /** The original filename of the uploaded document. Undefined if the filename was not captured during upload. */
659
- filename?: string;
666
+ filename?: string | undefined;
660
667
  /** The MIME type of the document indicating its file format. Common types: "application/pdf", "image/png", "image/jpeg", "text/plain" */
661
668
  mimeType: string;
662
669
  /** A presigned URL for downloading the document. This URL is temporary and expires after a limited time. Request a new evidence list to get a fresh URL if expired. */
@@ -667,7 +674,7 @@ export interface LinkEvidence {
667
674
  /** The title or descriptive name for the link. */
668
675
  title: string;
669
676
  /** Optional description providing additional context about the link. */
670
- description?: string;
677
+ description?: string | undefined;
671
678
  /** The URL pointing to the external documentation or resource. */
672
679
  url: string;
673
680
  }
@@ -690,7 +697,7 @@ export interface VantaDocumentUploadedEvidence {
690
697
  /** The unique identifier for the file version in Vanta's system. */
691
698
  id: string;
692
699
  /** The original filename of the uploaded document. Undefined if the filename was not captured during upload. */
693
- filename?: string;
700
+ filename?: string | undefined;
694
701
  /** The MIME type of the document indicating its file format. Common types: "application/pdf", "image/png", "image/jpeg", "text/plain" */
695
702
  mimeType: string;
696
703
  /** A presigned URL for downloading the document. This URL is temporary and expires after a limited time. Request a new evidence list to get a fresh URL if expired. */
@@ -714,11 +721,11 @@ export interface VantaDocumentEvidence {
714
721
  /** The title of the document as displayed in Vanta. */
715
722
  title: string;
716
723
  /** Optional description providing additional context about the document. */
717
- description?: string;
724
+ description?: string | undefined;
718
725
  /** The date when the document version expires and should be renewed. Undefined if no expiration is set. Format: ISO 8601 UTC timestamp. */
719
- expirationDate?: string;
726
+ expirationDate?: string | undefined;
720
727
  /** Information about the user who added this file version to the document. Undefined if the user information is not available. */
721
- addedBy?: VantaDocumentEvidenceAddedBy;
728
+ addedBy?: VantaDocumentEvidenceAddedBy | undefined;
722
729
  /** The unique identifier of the document version submitted as evidence. */
723
730
  documentVersionId: string;
724
731
  /** 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. */
@@ -737,7 +744,7 @@ export interface VantaPolicyEvidenceFile {
737
744
  /** The MIME type of the policy document indicating its file format. Common types: "application/pdf", "application/msword" */
738
745
  mimeType: string;
739
746
  /** The original filename of the uploaded policy document. Undefined if the filename was not captured during upload. */
740
- filename?: string;
747
+ filename?: string | undefined;
741
748
  /** The unique identifier for the uploaded policy file in Vanta's system. */
742
749
  id: string;
743
750
  }
@@ -746,11 +753,11 @@ export interface VantaPolicyEvidence {
746
753
  /** The title of the policy as displayed in Vanta. */
747
754
  title: string;
748
755
  /** Optional description providing additional context about the policy. */
749
- description?: string;
756
+ description?: string | undefined;
750
757
  /** The date when the policy version expires and should be renewed. Undefined if no expiration is set. Format: ISO 8601 UTC timestamp. */
751
- expirationDate?: string;
758
+ expirationDate?: string | undefined;
752
759
  /** Information about the user who last edited this policy version. Undefined if the user information is not available. */
753
- lastEditedBy?: VantaDocumentEvidenceAddedBy;
760
+ lastEditedBy?: VantaDocumentEvidenceAddedBy | undefined;
754
761
  /** The policy type this evidence belongs to (e.g. "information-security-policy-bsi"). Policies prefixed with "custom-" are customer-defined; others are Vanta-provided templates. */
755
762
  policyId: string;
756
763
  /** The identifier of the approved policy version that was submitted as evidence. A new version is created each time a policy is updated and approved. */
@@ -773,7 +780,7 @@ export interface VantaTestEvidenceFile {
773
780
  /** A presigned URL for downloading the evidence file. This URL is temporary and expires after a limited time. Request a new evidence list to get a fresh URL if expired. */
774
781
  url: string;
775
782
  }
776
- /** 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. */
783
+ /** 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. Each file in a snapshot is returned as a separate evidence item. These items share `testId` and `snapshotId` and differ by `fileType`. */
777
784
  export interface VantaTestEvidence {
778
785
  /** The title of the test run as displayed in Vanta. */
779
786
  title: string;
@@ -823,18 +830,20 @@ export type InformationRequestEvidenceUnion =
823
830
  | VantaTestEvidence
824
831
  | VantaTestSnapshotEvidence;
825
832
  export interface InformationRequestEvidence {
826
- /** The unique identifier for the evidence within Vanta's system. Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7"). */
833
+ /** The unique identifier for the evidence within Vanta's system. Use it as the key when you sync evidence of any type. Each evidence item has at most one file. A file attached to two information requests appears as two evidence items with different IDs. Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7"). */
827
834
  id: string;
828
835
  /** Type of evidence attached to this information request. Determines the structure of the `evidence` field. */
829
836
  evidenceType: InformationRequestSupportedEvidenceType;
830
837
  /** Timestamp when the evidence was made visible to the auditor. Null if the customer has not yet shared this evidence with the auditor. Evidence must be shared before the auditor can review it. Format: ISO 8601 UTC timestamp. */
831
- visibleToAuditorDate?: string | null;
838
+ visibleToAuditorDate?: string | null | undefined;
832
839
  /** Timestamp when the evidence was created/uploaded. Format: ISO 8601 UTC timestamp. */
833
840
  creationDate: string;
834
841
  /** Timestamp when the evidence was last modified. Format: ISO 8601 UTC timestamp. */
835
842
  modificationDate: string;
836
843
  /** Timestamp when the evidence was soft-deleted. Null if the evidence has not been deleted. Soft deletes retain evidence in the system for audit history while hiding it from normal operations. Format: ISO 8601 UTC timestamp. */
837
- deletionDate?: string | null;
844
+ deletionDate?: string | null | undefined;
845
+ /** IDs of the audit segments this evidence was relevant to when captured. Empty for uploaded, link and observation evidence, and for evidence captured before attribution was recorded. */
846
+ capturedSegmentIds: InformationRequestEvidenceCapturedSegmentIdsList;
838
847
  /** The evidence content. Structure varies based on evidenceType. */
839
848
  evidence: InformationRequestEvidenceUnion;
840
849
  }
@@ -924,9 +933,9 @@ export interface VantaTestSnapshotEvidenceDetail {
924
933
  /** Raw test data captured at snapshot time. */
925
934
  rawTestData: VantaTestSnapshotEvidenceDetailRawTestDataList;
926
935
  /** Resources excluded from the test at snapshot time. Absent when the snapshot data could not be loaded; clients should treat a missing field as "unknown" rather than "nothing excluded". */
927
- outOfScopeResources?: VantaTestSnapshotOutOfScopeResources;
936
+ outOfScopeResources?: VantaTestSnapshotOutOfScopeResources | undefined;
928
937
  /** 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. */
929
- apiRequests?: VantaTestSnapshotEvidenceDetailApiRequestsList;
938
+ apiRequests?: VantaTestSnapshotEvidenceDetailApiRequestsList | undefined;
930
939
  }
931
940
  export interface GetOrganizationInformationRequest {
932
941
  /** The audit ID */
@@ -944,17 +953,17 @@ export interface AuditOrganizationInformation {
944
953
  /** Display name of the organization. */
945
954
  displayName: string;
946
955
  /** Legal name of the organization. */
947
- legalName?: string | null;
956
+ legalName?: string | null | undefined;
948
957
  /** Incorporation status. Returns "Incorporated in the United States" when the organization is a US company, or null otherwise. */
949
- incorporation?: string | null;
958
+ incorporation?: string | null | undefined;
950
959
  /** Organization URL. */
951
- url?: string | null;
960
+ url?: string | null | undefined;
952
961
  /** Mailing address of the organization. */
953
- mailingAddress?: string | null;
962
+ mailingAddress?: string | null | undefined;
954
963
  /** Telephone number of the organization. */
955
- telephone?: string | null;
964
+ telephone?: string | null | undefined;
956
965
  /** Company logo reference (download URL), or null if no logo is uploaded. */
957
- companyLogo?: AuditOrganizationCompanyLogo | null;
966
+ companyLogo?: AuditOrganizationCompanyLogo | null | undefined;
958
967
  }
959
968
  export interface GetOrganizationNotificationsRequest {
960
969
  /** The audit ID */
@@ -983,21 +992,21 @@ export interface AuditOrganizationNotifications {
983
992
  /** Domain identifier of the audited organization. */
984
993
  id: string;
985
994
  /** IANA timezone identifier that determines when scheduled reminder notifications are sent. `null` means the organization has no configured preference ("Anytime" in the UI). */
986
- preferredTimeZone?: string | null;
995
+ preferredTimeZone?: string | null | undefined;
987
996
  /** Frequency at which personnel reminder digests are sent (e.g. `DAILY`, `WEEKLY`, or `NEVER`). `null` when no notification settings have been configured for the organization. */
988
- employeeDigestFrequency?: string | null;
997
+ employeeDigestFrequency?: string | null | undefined;
989
998
  /** Channels on which the personnel reminder digest is delivered (e.g. `["EMAIL"]` or `["EMAIL", "SLACK"]`). */
990
- subscribedChannelTypes?: AuditOrganizationNotificationsSubscribedChannelTypesList;
999
+ subscribedChannelTypes?: AuditOrganizationNotificationsSubscribedChannelTypesList | undefined;
991
1000
  /** External notification subscriptions -- one row per mailing-list address plus category pairing. Covers Compliance, Vendors, Access Reviews, and Trust Center categories. */
992
- externalNotifications?: AuditOrganizationNotificationsExternalNotificationsList;
1001
+ externalNotifications?: AuditOrganizationNotificationsExternalNotificationsList | undefined;
993
1002
  }
994
1003
  export interface ListAccountAccessServicesRequest {
995
1004
  /** The audit ID */
996
1005
  auditId: string;
997
1006
  /** Maximum number of results per page (1-100, default 10) */
998
- pageSize?: number;
1007
+ pageSize?: number | undefined;
999
1008
  /** Pagination cursor from previous response */
1000
- pageCursor?: string;
1009
+ pageCursor?: string | undefined;
1001
1010
  }
1002
1011
  /** An account access service (identity provider, access credential, or external application) connected to the organization. These represent credentials for integrations like Okta, Azure AD, Google Workspace, etc. that provide identity and access management data for personnel, as well as external applications that provide received user accounts. */
1003
1012
  export interface AccountAccessService {
@@ -1031,10 +1040,10 @@ export interface PaginatedResponseAccountAccessService {
1031
1040
  }
1032
1041
  export interface ListAuditCommentsRequest {
1033
1042
  auditId: string;
1034
- pageSize?: number;
1035
- pageCursor?: string;
1043
+ pageSize?: number | undefined;
1044
+ pageCursor?: string | undefined;
1036
1045
  /** Includes all comments that have changed since changedSinceDate. */
1037
- changedSinceDate?: string;
1046
+ changedSinceDate?: string | undefined;
1038
1047
  }
1039
1048
  export type PaginatedResponseCommentResultsDataList = Array<Comment>;
1040
1049
  export interface PaginatedResponseCommentResults {
@@ -1045,12 +1054,15 @@ export interface PaginatedResponseComment {
1045
1054
  results: PaginatedResponseCommentResults;
1046
1055
  }
1047
1056
  export type ListAuditControlsRequestExternalIdMatchesAnyList = Array<string>;
1057
+ export type ListAuditControlsRequestSegmentIdsMatchesAnyList = Array<string>;
1048
1058
  export interface ListAuditControlsRequest {
1049
1059
  auditId: string;
1050
- pageSize?: number;
1051
- pageCursor?: string;
1060
+ pageSize?: number | undefined;
1061
+ pageCursor?: string | undefined;
1052
1062
  /** Filter controls whose externalId matches any of the provided values (exact, case-sensitive match). */
1053
- externalIdMatchesAny?: ListAuditControlsRequestExternalIdMatchesAnyList;
1063
+ externalIdMatchesAny?: ListAuditControlsRequestExternalIdMatchesAnyList | undefined;
1064
+ /** Return only controls whose `inScopeSegmentIds` include at least one of these segment IDs from the audit's `segments[].id` (exact, case-sensitive). IDs that aren't segments on this audit match nothing. Repeat the parameter for several IDs, and send the same filters with every `pageCursor`. */
1065
+ segmentIdsMatchesAny?: ListAuditControlsRequestSegmentIdsMatchesAnyList | undefined;
1054
1066
  }
1055
1067
  /** The security domains that the control belongs to. */
1056
1068
  export type AuditorControlDomainsList = Array<string>;
@@ -1115,7 +1127,7 @@ export interface AuditorControl {
1115
1127
  /** The control's owner. */
1116
1128
  owner: Owner | null;
1117
1129
  /** The control's GDPR role, if the control is a GDPR control. */
1118
- role?: string | null;
1130
+ role?: string | null | undefined;
1119
1131
  /** The control's custom field values, if control custom fields is included in your Vanta instance. */
1120
1132
  customFields: AuditorControlCustomFieldsList;
1121
1133
  /** When the control was created. Returns null for Vanta library controls. */
@@ -1141,10 +1153,10 @@ export interface PaginatedResponseAuditorControl {
1141
1153
  }
1142
1154
  export interface ListAuditEvidenceRequest {
1143
1155
  auditId: string;
1144
- pageSize?: number;
1145
- pageCursor?: string;
1156
+ pageSize?: number | undefined;
1157
+ pageCursor?: string | undefined;
1146
1158
  /** Includes all audit evidence that have changed since changedSinceDate. */
1147
- changedSinceDate?: string;
1159
+ changedSinceDate?: string | undefined;
1148
1160
  }
1149
1161
  export type PaginatedResponseEvidenceResultsDataList = Array<Evidence>;
1150
1162
  export interface PaginatedResponseEvidenceResults {
@@ -1157,8 +1169,8 @@ export interface PaginatedResponseEvidence {
1157
1169
  export interface ListAuditEvidenceUrlsRequest {
1158
1170
  auditId: string;
1159
1171
  auditEvidenceId: string;
1160
- pageSize?: number;
1161
- pageCursor?: string;
1172
+ pageSize?: number | undefined;
1173
+ pageCursor?: string | undefined;
1162
1174
  }
1163
1175
  export interface EvidenceUrl {
1164
1176
  /** Vanta internal reference to evidence */
@@ -1189,25 +1201,25 @@ export interface ListAuditIssuesRequest {
1189
1201
  /** The audit ID */
1190
1202
  auditId: string;
1191
1203
  /** Maximum number of results per page (1-100, default 10) */
1192
- pageSize?: number;
1204
+ pageSize?: number | undefined;
1193
1205
  /** Pagination cursor from previous response */
1194
- pageCursor?: string;
1206
+ pageCursor?: string | undefined;
1195
1207
  /** Search term for filtering by issue title and description */
1196
- search?: string;
1208
+ search?: string | undefined;
1197
1209
  /** Filter issues to specific snapshots by snapshot ID */
1198
- snapshotIdMatchesAny?: ListAuditIssuesRequestSnapshotIdMatchesAnyList;
1210
+ snapshotIdMatchesAny?: ListAuditIssuesRequestSnapshotIdMatchesAnyList | undefined;
1199
1211
  /** Filter to issues created on or after this date (ISO 8601) */
1200
- createdAfterDate?: string;
1212
+ createdAfterDate?: string | undefined;
1201
1213
  /** Filter to issues created on or before this date (ISO 8601) */
1202
- createdBeforeDate?: string;
1214
+ createdBeforeDate?: string | undefined;
1203
1215
  /** Filter to issues detected on or after this date (ISO 8601) */
1204
- detectedAfterDate?: string;
1216
+ detectedAfterDate?: string | undefined;
1205
1217
  /** Filter to issues detected on or before this date (ISO 8601) */
1206
- detectedBeforeDate?: string;
1218
+ detectedBeforeDate?: string | undefined;
1207
1219
  /** Field to sort results by. Allowed: "createdAt", "lastModifiedAt", "detectedAt". Default: "createdAt" */
1208
- orderBy?: IssueSnapshotItemOrderBy | (string & {});
1220
+ orderBy?: IssueSnapshotItemOrderBy | (string & {}) | undefined;
1209
1221
  /** Sort direction: "asc" or "desc". Default: "desc" */
1210
- orderDirection?: OrderDirection | (string & {});
1222
+ orderDirection?: OrderDirection | (string & {}) | undefined;
1211
1223
  }
1212
1224
  export type IssueStatusTypeForSnapshot =
1213
1225
  | "IN_PROGRESS"
@@ -1225,9 +1237,9 @@ export interface IssueSnapshotItem {
1225
1237
  /** The unique identifier for the snapshot of an issue. This is distinct from the issueId, which identifies the underlying issue across snapshots. The snapshot item ID is unique to this specific snapshot of the issue. */
1226
1238
  id: string;
1227
1239
  /** The issue title */
1228
- title?: string;
1240
+ title?: string | undefined;
1229
1241
  /** The issue description */
1230
- description?: string;
1242
+ description?: string | undefined;
1231
1243
  /** The human-readable identifier for the issue. This field is unique per-domain, and can be used to correlate this issue snapshot item to the underlying issue across different snapshots. */
1232
1244
  readableIssueId: string;
1233
1245
  /** The globally unique identifier for the underlying issue across snapshots. This field can be used to correlate this snapshot item to the underlying issue across different snapshots. */
@@ -1235,17 +1247,17 @@ export interface IssueSnapshotItem {
1235
1247
  /** The identifier for the snapshot this issue item belongs to. */
1236
1248
  snapshotId: string;
1237
1249
  /** The due date for the issue. */
1238
- dueDate?: string | null;
1250
+ dueDate?: string | null | undefined;
1239
1251
  /** The status of the issue. */
1240
- status?: IssueStatusTypeForSnapshot;
1252
+ status?: IssueStatusTypeForSnapshot | undefined;
1241
1253
  /** The issue's approval progress at the time the snapshot was captured, or null if no approval was in progress or issue approvals are not enabled. */
1242
- approvalProgress?: IssueSnapshotItemApprovalProgress | null;
1254
+ approvalProgress?: IssueSnapshotItemApprovalProgress | null | undefined;
1243
1255
  /** The date and time when the issue was last modified. */
1244
- lastModifiedAt?: string;
1256
+ lastModifiedAt?: string | undefined;
1245
1257
  /** The date and time when the issue was created. */
1246
- createdAt?: string;
1258
+ createdAt?: string | undefined;
1247
1259
  /** The date and time when the issue was detected. */
1248
- detectedAt?: string;
1260
+ detectedAt?: string | undefined;
1249
1261
  }
1250
1262
  export type PaginatedResponseIssueSnapshotItemResultsDataList = Array<IssueSnapshotItem>;
1251
1263
  export interface PaginatedResponseIssueSnapshotItemResults {
@@ -1272,15 +1284,15 @@ export interface ListAuditRisksRequest {
1272
1284
  /** The risk assessment snapshot ID */
1273
1285
  snapshotId: string;
1274
1286
  /** Maximum number of results per page (1-100, default 10) */
1275
- pageSize?: number;
1287
+ pageSize?: number | undefined;
1276
1288
  /** Pagination cursor from previous response */
1277
- pageCursor?: string;
1289
+ pageCursor?: string | undefined;
1278
1290
  /** Search term for filtering by risk scenario description */
1279
- search?: string;
1291
+ search?: string | undefined;
1280
1292
  /** Field to sort results by. Allowed: "riskId", "riskScenario", "inherentRisk", "treatment", "residualRisk", "reviewStatus", "owner", "categories", "ciaCategories", "identified". Default: "identified" */
1281
- orderBy?: RiskOrderBy | (string & {});
1293
+ orderBy?: RiskOrderBy | (string & {}) | undefined;
1282
1294
  /** Sort direction: "asc" or "desc". Default: "desc" */
1283
- orderDirection?: OrderDirection | (string & {});
1295
+ orderDirection?: OrderDirection | (string & {}) | undefined;
1284
1296
  }
1285
1297
  /** Risk treatment strategy returned by the auditor API. */
1286
1298
  export type AuditRiskTreatment = "ACCEPT" | "AVOID" | "MITIGATE" | "TRANSFER";
@@ -1316,31 +1328,31 @@ export interface AuditRisk {
1316
1328
  /** Custom risk ID (e.g., "RISK-001"), or null if not available. */
1317
1329
  riskId: string | null;
1318
1330
  /** Description of the risk scenario, or null if not available. */
1319
- riskScenario?: string | null;
1331
+ riskScenario?: string | null | undefined;
1320
1332
  /** Likelihood score of the risk, or null if not scored. Full Audit View only - omitted in Controlled Audit View. */
1321
- likelihood?: number | null;
1333
+ likelihood?: number | null | undefined;
1322
1334
  /** Impact score of the risk, or null if not scored. Full Audit View only - omitted in Controlled Audit View. */
1323
- impact?: number | null;
1335
+ impact?: number | null | undefined;
1324
1336
  /** Inherent risk score, or null if not scored. Defaults to the likelihood * impact product; when the organization scores risks by factors, this is the rolled-up factor score rounded to two decimals. */
1325
- inherentRisk?: number | null;
1337
+ inherentRisk?: number | null | undefined;
1326
1338
  /** Risk treatment strategy, or null if not set. */
1327
- treatment?: AuditRiskTreatment | null;
1339
+ treatment?: AuditRiskTreatment | null | undefined;
1328
1340
  /** Treatment implementation status, or null if not set. */
1329
- treatmentStatus?: AuditRiskTreatmentStatus | null;
1341
+ treatmentStatus?: AuditRiskTreatmentStatus | null | undefined;
1330
1342
  /** Residual risk score after treatment, or null if not calculable. */
1331
- residualRisk?: number | null;
1343
+ residualRisk?: number | null | undefined;
1332
1344
  /** Review status of the risk scenario, or null if not set. */
1333
- reviewStatus?: AuditRiskReviewStatus | null;
1345
+ reviewStatus?: AuditRiskReviewStatus | null | undefined;
1334
1346
  /** Risk owner information, or null if no owner assigned. */
1335
- owner?: AuditRiskOwner | null;
1347
+ owner?: AuditRiskOwner | null | undefined;
1336
1348
  /** Risk category names, or empty array if not categorized. */
1337
- categories?: AuditRiskCategoriesList;
1349
+ categories?: AuditRiskCategoriesList | undefined;
1338
1350
  /** CIA triad categories, or empty array if not categorized. */
1339
- ciaCategories?: AuditRiskCiaCategoriesList;
1351
+ ciaCategories?: AuditRiskCiaCategoriesList | undefined;
1340
1352
  /** IDs of controls linked to this risk scenario, or empty array if none. Full Audit View only - omitted in Controlled Audit View. */
1341
- linkedControlIds?: AuditRiskLinkedControlIdsList;
1353
+ linkedControlIds?: AuditRiskLinkedControlIdsList | undefined;
1342
1354
  /** When the risk was identified, or null if not recorded. ISO 8601 format. */
1343
- identified?: string | null;
1355
+ identified?: string | null | undefined;
1344
1356
  }
1345
1357
  export type PaginatedResponseAuditRiskResultsDataList = Array<AuditRisk>;
1346
1358
  export interface PaginatedResponseAuditRiskResults {
@@ -1351,12 +1363,12 @@ export interface PaginatedResponseAuditRisk {
1351
1363
  results: PaginatedResponseAuditRiskResults;
1352
1364
  }
1353
1365
  export interface ListAuditsRequest {
1354
- pageSize?: number;
1355
- pageCursor?: string;
1366
+ pageSize?: number | undefined;
1367
+ pageCursor?: string | undefined;
1356
1368
  /** Includes all audits that have changed since changedSinceDate, including soft-deleted audits whose deletionDate is on or after that timestamp. */
1357
- changedSinceDate?: string;
1369
+ changedSinceDate?: string | undefined;
1358
1370
  /** Includes only audits with no audit report uploaded */
1359
- isActiveAudit?: boolean;
1371
+ isActiveAudit?: boolean | undefined;
1360
1372
  }
1361
1373
  export type PaginatedResponseAuditResultsDataList = Array<Audit>;
1362
1374
  export interface PaginatedResponseAuditResults {
@@ -1370,21 +1382,21 @@ export interface ListAuditSnapshotsRequest {
1370
1382
  /** The audit ID */
1371
1383
  auditId: string;
1372
1384
  /** Maximum number of results per page (1-100, default 10) */
1373
- pageSize?: number;
1385
+ pageSize?: number | undefined;
1374
1386
  /** Pagination cursor from previous response */
1375
- pageCursor?: string;
1387
+ pageCursor?: string | undefined;
1376
1388
  /** Search term for filtering by snapshot title and description */
1377
- search?: string;
1389
+ search?: string | undefined;
1378
1390
  }
1379
1391
  export interface IssueSnapshotMetadata {
1380
1392
  /** The unique identifier for the issue snapshot. */
1381
1393
  id: string;
1382
1394
  /** The title of the snapshot */
1383
- title?: string;
1395
+ title?: string | undefined;
1384
1396
  /** The description of the snapshot */
1385
- description?: string;
1397
+ description?: string | undefined;
1386
1398
  /** The date and time when the snapshot was created. */
1387
- createdAt?: string;
1399
+ createdAt?: string | undefined;
1388
1400
  }
1389
1401
  export type PaginatedResponseIssueSnapshotMetadataResultsDataList = Array<IssueSnapshotMetadata>;
1390
1402
  export interface PaginatedResponseIssueSnapshotMetadataResults {
@@ -1403,34 +1415,38 @@ export interface ListCodeChangesRequest {
1403
1415
  /** The audit ID */
1404
1416
  auditId: string;
1405
1417
  /** Maximum number of results per page (1-100, default 10) */
1406
- pageSize?: number;
1418
+ pageSize?: number | undefined;
1407
1419
  /** Pagination cursor from previous response */
1408
- pageCursor?: string;
1420
+ pageCursor?: string | undefined;
1409
1421
  /** Search term for filtering by code change title or repository name */
1410
- search?: string;
1422
+ search?: string | undefined;
1411
1423
  /** Filter code changes by version control source (accepted values: github, gitlab, bitbucket, azuredevops) */
1412
- sourcesMatchesAny?: ListCodeChangesRequestSourcesMatchesAnyList;
1424
+ sourcesMatchesAny?: ListCodeChangesRequestSourcesMatchesAnyList | undefined;
1413
1425
  /** Filter code changes closed on or after this date (ISO 8601) */
1414
- closedAfterDate?: string;
1426
+ closedAfterDate?: string | undefined;
1415
1427
  /** Filter code changes closed on or before this date (ISO 8601) */
1416
- closedBeforeDate?: string;
1428
+ closedBeforeDate?: string | undefined;
1417
1429
  }
1430
+ /** IDs of the audit segments this code change is in scope for. Omitted when segment scoping is disabled. */
1431
+ export type CodeChangeSegmentIdsList = Array<string>;
1418
1432
  /** 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. */
1419
1433
  export interface CodeChange {
1420
1434
  /** Code change record ID - always present. */
1421
1435
  id: string;
1422
1436
  /** Code change title (e.g. PR title) - always present. */
1423
1437
  codeChange: string;
1438
+ /** IDs of the audit segments this code change is in scope for. Omitted when segment scoping is disabled. */
1439
+ segmentIds?: CodeChangeSegmentIdsList | undefined;
1424
1440
  /** Code change identifier (e.g. PR number). */
1425
- identifier?: string;
1441
+ identifier?: string | undefined;
1426
1442
  /** Version control source where the change originated. Known values are listed in {@link ApiCodeChangeSource}; other strings may appear if a new source is onboarded before this enum is updated. */
1427
- service?: string;
1443
+ service?: string | undefined;
1428
1444
  /** Repository name. */
1429
- repository?: string;
1445
+ repository?: string | undefined;
1430
1446
  /** Date the code change was opened. */
1431
- openedAt?: string;
1447
+ openedAt?: string | undefined;
1432
1448
  /** Date the code change was merged/closed. */
1433
- closedAt?: string;
1449
+ closedAt?: string | undefined;
1434
1450
  }
1435
1451
  export type PaginatedResponseCodeChangeResultsDataList = Array<CodeChange>;
1436
1452
  export interface PaginatedResponseCodeChangeResults {
@@ -1444,11 +1460,11 @@ export interface ListCommentsForControlRequest {
1444
1460
  auditId: string;
1445
1461
  controlId: string;
1446
1462
  /** Maximum number of comments to return per page. */
1447
- pageSize?: number;
1463
+ pageSize?: number | undefined;
1448
1464
  /** Pagination cursor from a previous response. Provide to fetch the next page of comments. */
1449
- pageCursor?: string;
1465
+ pageCursor?: string | undefined;
1450
1466
  /** Includes all comments that have changed since changedSinceDate. Considers creationDate, modificationDate, and deletionDate timestamps when determining changes. */
1451
- changedSinceDate?: string;
1467
+ changedSinceDate?: string | undefined;
1452
1468
  }
1453
1469
  export type PaginatedResponseAuditControlCommentResultsDataList = Array<AuditControlComment>;
1454
1470
  export interface PaginatedResponseAuditControlCommentResults {
@@ -1462,11 +1478,11 @@ export interface ListCommentsForInformationRequestRequest {
1462
1478
  auditId: string;
1463
1479
  requestId: string;
1464
1480
  /** Maximum number of comments to return per page. */
1465
- pageSize?: number;
1481
+ pageSize?: number | undefined;
1466
1482
  /** Pagination cursor from a previous response. Provide to fetch the next page of comments. */
1467
- pageCursor?: string;
1483
+ pageCursor?: string | undefined;
1468
1484
  /** Includes all comments that have changed since changedSinceDate. Considers creationDate, modificationDate, and deletionDate timestamps when determining changes. */
1469
- changedSinceDate?: string;
1485
+ changedSinceDate?: string | undefined;
1470
1486
  }
1471
1487
  export type PaginatedResponseInformationRequestCommentResultsDataList =
1472
1488
  Array<InformationRequestComment>;
@@ -1481,11 +1497,11 @@ export interface ListInformationRequestActivityRequest {
1481
1497
  auditId: string;
1482
1498
  requestId: string;
1483
1499
  /** Maximum number of activity entries to return per page. */
1484
- pageSize?: number;
1500
+ pageSize?: number | undefined;
1485
1501
  /** Pagination cursor from a previous response. Provide to fetch the next page of activity logs. */
1486
- pageCursor?: string;
1502
+ pageCursor?: string | undefined;
1487
1503
  /** Includes activity logs that have changed since changedSinceDate. */
1488
- changedSinceDate?: string;
1504
+ changedSinceDate?: string | undefined;
1489
1505
  }
1490
1506
  export type InformationRequestActivityType =
1491
1507
  | "AUDIT_DUPLICATION_AUDIT_TRAIL"
@@ -1549,13 +1565,15 @@ export interface ListInformationRequestEvidenceRequest {
1549
1565
  auditId: string;
1550
1566
  requestId: string;
1551
1567
  /** Maximum number of evidence entries to return per page. */
1552
- pageSize?: number;
1568
+ pageSize?: number | undefined;
1553
1569
  /** Pagination cursor from a previous response. Provide to fetch the next page of evidence. */
1554
- pageCursor?: string;
1570
+ pageCursor?: string | undefined;
1555
1571
  /** Includes all evidence that have changed since changedSinceDate. Considers creationDate, modificationDate, deletionDate, and visibleToAuditorDate timestamps when determining changes. */
1556
- changedSinceDate?: string;
1572
+ changedSinceDate?: string | undefined;
1557
1573
  /** 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. */
1558
- evidenceTypeMatchesAny?: ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList;
1574
+ evidenceTypeMatchesAny?:
1575
+ | ListInformationRequestEvidenceRequestEvidenceTypeMatchesAnyList
1576
+ | undefined;
1559
1577
  }
1560
1578
  export type PaginatedResponseInformationRequestEvidenceResultsDataList =
1561
1579
  Array<InformationRequestEvidence>;
@@ -1570,13 +1588,13 @@ export type ListInformationRequestsRequestSegmentIdsMatchesAnyList = Array<strin
1570
1588
  export interface ListInformationRequestsRequest {
1571
1589
  auditId: string;
1572
1590
  /** Maximum number of information requests to return per page. */
1573
- pageSize?: number;
1591
+ pageSize?: number | undefined;
1574
1592
  /** Pagination cursor from a previous response. Provide to fetch the next page of results. */
1575
- pageCursor?: string;
1593
+ pageCursor?: string | undefined;
1576
1594
  /** 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. */
1577
- changedSinceDate?: string;
1595
+ changedSinceDate?: string | undefined;
1578
1596
  /** 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. */
1579
- segmentIdsMatchesAny?: ListInformationRequestsRequestSegmentIdsMatchesAnyList;
1597
+ segmentIdsMatchesAny?: ListInformationRequestsRequestSegmentIdsMatchesAnyList | undefined;
1580
1598
  }
1581
1599
  export type PaginatedResponseInformationRequestResultsDataList = Array<InformationRequest>;
1582
1600
  export interface PaginatedResponseInformationRequestResults {
@@ -1590,9 +1608,9 @@ export interface ListInformationRequestsForControlRequest {
1590
1608
  auditId: string;
1591
1609
  controlId: string;
1592
1610
  /** Maximum number of information requests to return per page. */
1593
- pageSize?: number;
1611
+ pageSize?: number | undefined;
1594
1612
  /** Pagination cursor from a previous response. Provide to fetch the next page of results. */
1595
- pageCursor?: string;
1613
+ pageCursor?: string | undefined;
1596
1614
  }
1597
1615
  export type AuditIntegrationTag =
1598
1616
  | "ACCESS"
@@ -1647,16 +1665,18 @@ export interface ListIntegrationsRequest {
1647
1665
  /** The audit ID */
1648
1666
  auditId: string;
1649
1667
  /** Maximum number of results per page (1-100, default 10) */
1650
- pageSize?: number;
1668
+ pageSize?: number | undefined;
1651
1669
  /** Pagination cursor from previous response */
1652
- pageCursor?: string;
1670
+ pageCursor?: string | undefined;
1653
1671
  /** Search term for filtering by integration name */
1654
- search?: string;
1672
+ search?: string | undefined;
1655
1673
  /** Filter integrations by tag values */
1656
- tagsMatchesAny?: ListIntegrationsRequestTagsMatchesAnyList;
1674
+ tagsMatchesAny?: ListIntegrationsRequestTagsMatchesAnyList | undefined;
1657
1675
  /** Filter integrations by category values */
1658
- categoriesMatchesAny?: ListIntegrationsRequestCategoriesMatchesAnyList;
1676
+ categoriesMatchesAny?: ListIntegrationsRequestCategoriesMatchesAnyList | undefined;
1659
1677
  }
1678
+ /** IDs of the audit segments this integration is in scope for. Omitted when segment scoping is disabled. */
1679
+ export type AuditIntegrationSegmentIdsList = Array<string>;
1660
1680
  /** Integration tag display names describing what data this integration provides. */
1661
1681
  export type AuditIntegrationTagsList = Array<string>;
1662
1682
  /** Category display names describing what the integration is used for. */
@@ -1667,10 +1687,12 @@ export interface AuditIntegration {
1667
1687
  id: string;
1668
1688
  /** Display name of the integration. */
1669
1689
  name: string;
1690
+ /** IDs of the audit segments this integration is in scope for. Omitted when segment scoping is disabled. */
1691
+ segmentIds?: AuditIntegrationSegmentIdsList | undefined;
1670
1692
  /** Integration tag display names describing what data this integration provides. */
1671
- tags?: AuditIntegrationTagsList;
1693
+ tags?: AuditIntegrationTagsList | undefined;
1672
1694
  /** Category display names describing what the integration is used for. */
1673
- categories?: AuditIntegrationCategoriesList;
1695
+ categories?: AuditIntegrationCategoriesList | undefined;
1674
1696
  }
1675
1697
  export type PaginatedResponseAuditIntegrationResultsDataList = Array<AuditIntegration>;
1676
1698
  export interface PaginatedResponseAuditIntegrationResults {
@@ -1688,14 +1710,16 @@ export interface ListPersonnelAccountAccessRequest {
1688
1710
  /** The service ID from the /services endpoint */
1689
1711
  serviceId: string;
1690
1712
  /** Maximum number of results per page (1-100, default 10) */
1691
- pageSize?: number;
1713
+ pageSize?: number | undefined;
1692
1714
  /** Pagination cursor from previous response */
1693
- pageCursor?: string;
1715
+ pageCursor?: string | undefined;
1694
1716
  /** Search term for filtering by account name or email */
1695
- search?: string;
1717
+ search?: string | undefined;
1696
1718
  /** Filter by account status */
1697
- status?: AccountAccessStatus | (string & {});
1719
+ status?: AccountAccessStatus | (string & {}) | undefined;
1698
1720
  }
1721
+ /** IDs of the audit segments this account is in scope for. Omitted when segment attribution is unavailable or scoping is disabled. */
1722
+ export type AccountAccessSegmentIdsList = Array<string>;
1699
1723
  /** Account roles; empty array when the column is visible but has no roles. */
1700
1724
  export type AccountAccessRoleList = Array<string>;
1701
1725
  /** Account access record from personnel population. This unified interface represents account access data from all service types: - IDP services (Okta, Azure AD, Google Workspace, etc.) - First-party account services (AWS, Azure, GCP, Oracle Cloud, etc.) - Role grants services (GCP, Azure role grants) - Received/third-party applications Only `id` and `accountName` are always present. Other fields are optional so disallowed columns can be omitted (for example under controlled audit view). When an optional field is present, `null` means the column is visible but empty (only fields that are nullable in population data use `null`). */
@@ -1704,18 +1728,20 @@ export interface AccountAccess {
1704
1728
  id: string;
1705
1729
  /** Account name or email address (primary identifier). */
1706
1730
  accountName: string;
1731
+ /** IDs of the audit segments this account is in scope for. Omitted when segment attribution is unavailable or scoping is disabled. */
1732
+ segmentIds?: AccountAccessSegmentIdsList | undefined;
1707
1733
  /** Display name of the account owner, or null when the column is visible but unknown. */
1708
- owner?: string | null;
1734
+ owner?: string | null | undefined;
1709
1735
  /** Account roles; empty array when the column is visible but has no roles. */
1710
- role?: AccountAccessRoleList;
1736
+ role?: AccountAccessRoleList | undefined;
1711
1737
  /** Account status when present; omitted when the column is not in the response. */
1712
- status?: AccountAccessStatus;
1738
+ status?: AccountAccessStatus | undefined;
1713
1739
  /** Multi-factor authentication (MFA) status when present. `true` = MFA enabled, `false` = MFA not enabled, `null` = visible but unknown. */
1714
- mfa?: boolean | null;
1740
+ mfa?: boolean | null | undefined;
1715
1741
  /** Account creation date when present, or null when visible but absent. */
1716
- createdDate?: string | null;
1742
+ createdDate?: string | null | undefined;
1717
1743
  /** Account deactivation date when present, or null when active. */
1718
- deactivatedDate?: string | null;
1744
+ deactivatedDate?: string | null | undefined;
1719
1745
  }
1720
1746
  export type PaginatedResponseAccountAccessResultsDataList = Array<AccountAccess>;
1721
1747
  export interface PaginatedResponseAccountAccessResults {
@@ -1731,18 +1757,20 @@ export interface ListPersonnelGroupsRequest {
1731
1757
  /** The audit ID */
1732
1758
  auditId: string;
1733
1759
  /** Maximum number of results per page (1-100, default 10) */
1734
- pageSize?: number;
1760
+ pageSize?: number | undefined;
1735
1761
  /** Pagination cursor from previous response */
1736
- pageCursor?: string;
1762
+ pageCursor?: string | undefined;
1737
1763
  /** Search term for filtering by group name */
1738
- search?: string;
1764
+ search?: string | undefined;
1739
1765
  /** Filter groups by IDP source service names */
1740
- sourcesMatchesAny?: ListPersonnelGroupsRequestSourcesMatchesAnyList;
1766
+ sourcesMatchesAny?: ListPersonnelGroupsRequestSourcesMatchesAnyList | undefined;
1741
1767
  /** Field to sort results by. Allowed: "name", "members", "source", "tasksLastUpdated", "pointOfContact". Default: "name" */
1742
- orderBy?: GroupOrderBy | (string & {});
1768
+ orderBy?: GroupOrderBy | (string & {}) | undefined;
1743
1769
  /** Sort direction: "asc" or "desc". Default: "asc" */
1744
- orderDirection?: OrderDirection | (string & {});
1770
+ orderDirection?: OrderDirection | (string & {}) | undefined;
1745
1771
  }
1772
+ /** IDs of the audit segments this group is in scope for. Omitted when segment scoping is disabled. */
1773
+ export type PersonnelGroupSegmentIdsList = Array<string>;
1746
1774
  /** A task assigned to a personnel group. */
1747
1775
  export interface PersonnelGroupTask {
1748
1776
  /** Task name */
@@ -1756,16 +1784,18 @@ export interface PersonnelGroup {
1756
1784
  id: string;
1757
1785
  /** Display name of the group. */
1758
1786
  name: string;
1787
+ /** IDs of the audit segments this group is in scope for. Omitted when segment scoping is disabled. */
1788
+ segmentIds?: PersonnelGroupSegmentIdsList | undefined;
1759
1789
  /** Number of people in this group within the audit scope. */
1760
- members?: number;
1790
+ members?: number | undefined;
1761
1791
  /** The source of this group. For IDP-synced groups, this is the provider name (e.g., "Okta", "Azure AD"). For manually created groups, this is "Vanta". */
1762
- source?: string;
1792
+ source?: string | undefined;
1763
1793
  /** Security tasks enabled for this group, or empty array if not available. */
1764
- tasks?: PersonnelGroupTasksList;
1794
+ tasks?: PersonnelGroupTasksList | undefined;
1765
1795
  /** When the group's task configuration was last updated, or null if never updated. ISO 8601 format. */
1766
- tasksLastUpdated?: string | null;
1796
+ tasksLastUpdated?: string | null | undefined;
1767
1797
  /** Display name of the group's designated point of contact, or null if not set. */
1768
- pointOfContact?: string | null;
1798
+ pointOfContact?: string | null | undefined;
1769
1799
  }
1770
1800
  export type PaginatedResponsePersonnelGroupResultsDataList = Array<PersonnelGroup>;
1771
1801
  export interface PaginatedResponsePersonnelGroupResults {
@@ -1789,20 +1819,22 @@ export interface ListPersonnelPeopleRequest {
1789
1819
  /** The audit ID */
1790
1820
  auditId: string;
1791
1821
  /** Maximum number of results per page (1-100, default 10) */
1792
- pageSize?: number;
1822
+ pageSize?: number | undefined;
1793
1823
  /** Pagination cursor from previous response */
1794
- pageCursor?: string;
1824
+ pageCursor?: string | undefined;
1795
1825
  /** Search term for filtering by name or email */
1796
- search?: string;
1826
+ search?: string | undefined;
1797
1827
  /** Employment status filter */
1798
- status?: PeopleEmploymentStatus | (string & {});
1828
+ status?: PeopleEmploymentStatus | (string & {}) | undefined;
1799
1829
  /** Filter people by group IDs */
1800
- groupsMatchesAny?: ListPersonnelPeopleRequestGroupsMatchesAnyList;
1830
+ groupsMatchesAny?: ListPersonnelPeopleRequestGroupsMatchesAnyList | undefined;
1801
1831
  /** Field to sort results by. Allowed: "name", "employmentStatus". Default: "name" */
1802
- orderBy?: PeopleOrderBy | (string & {});
1832
+ orderBy?: PeopleOrderBy | (string & {}) | undefined;
1803
1833
  /** Sort direction: "asc" or "desc". Default: "asc" */
1804
- orderDirection?: OrderDirection | (string & {});
1834
+ orderDirection?: OrderDirection | (string & {}) | undefined;
1805
1835
  }
1836
+ /** IDs of the audit segments this person is in scope for. Omitted when segment scoping is disabled. */
1837
+ export type PersonnelPersonSegmentIdsList = Array<string>;
1806
1838
  export interface PersonnelPersonGroupsItem {
1807
1839
  name: string;
1808
1840
  }
@@ -1863,34 +1895,36 @@ export interface PersonnelPerson {
1863
1895
  name: string;
1864
1896
  /** Email address of the person - always present. */
1865
1897
  email: string;
1898
+ /** IDs of the audit segments this person is in scope for. Omitted when segment scoping is disabled. */
1899
+ segmentIds?: PersonnelPersonSegmentIdsList | undefined;
1866
1900
  /** Job title from HR system, or null if not available. */
1867
- jobTitle?: string | null;
1901
+ jobTitle?: string | null | undefined;
1868
1902
  /** Employment status, or null if not available. */
1869
- employmentStatus?: PeopleEmploymentStatus | null;
1903
+ employmentStatus?: PeopleEmploymentStatus | null | undefined;
1870
1904
  /** Start date in ISO 8601 format (YYYY-MM-DD), or null if not available. Timezone depends on source: UTC if from HR system, customer timezone if manually entered. */
1871
- startDate?: string | null;
1905
+ startDate?: string | null | undefined;
1872
1906
  /** End date in ISO 8601 format (YYYY-MM-DD), or null if currently employed. */
1873
- endDate?: string | null;
1907
+ endDate?: string | null | undefined;
1874
1908
  /** Groups (roles) the person belongs to. Present only when the column is in the response; use an empty array when there are no groups. */
1875
- groups?: PersonnelPersonGroupsList;
1909
+ groups?: PersonnelPersonGroupsList | undefined;
1876
1910
  /** Source of user data, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1877
- source?: PeopleSourceInfo | null;
1911
+ source?: PeopleSourceInfo | null | undefined;
1878
1912
  /** Overall task status information, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1879
- taskStatus?: PeopleTaskStatusInfo | null;
1913
+ taskStatus?: PeopleTaskStatusInfo | null | undefined;
1880
1914
  /** Last date user was sent an onboarding reminder email in ISO 8601 format, or null if never reminded. Full Audit View only - omitted in Controlled Audit View. */
1881
- lastReminded?: string | null;
1915
+ lastReminded?: string | null | undefined;
1882
1916
  /** Policy acceptance task details, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1883
- policies?: PeopleSecurityTaskDetails | null;
1917
+ policies?: PeopleSecurityTaskDetails | null | undefined;
1884
1918
  /** Security training task details, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1885
- trainings?: PeopleSecurityTaskDetails | null;
1919
+ trainings?: PeopleSecurityTaskDetails | null | undefined;
1886
1920
  /** Background check task details, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1887
- backgroundChecks?: PeopleSecurityTaskDetails | null;
1921
+ backgroundChecks?: PeopleSecurityTaskDetails | null | undefined;
1888
1922
  /** Device monitoring task details, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1889
- deviceMonitoring?: PeopleSecurityTaskDetails | null;
1923
+ deviceMonitoring?: PeopleSecurityTaskDetails | null | undefined;
1890
1924
  /** Custom onboarding task details, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1891
- customOnboarding?: PeopleSecurityTaskDetails | null;
1925
+ customOnboarding?: PeopleSecurityTaskDetails | null | undefined;
1892
1926
  /** Custom offboarding task details, or null if not available. Full Audit View only - omitted in Controlled Audit View. */
1893
- customOffboarding?: PeopleSecurityTaskDetails | null;
1927
+ customOffboarding?: PeopleSecurityTaskDetails | null | undefined;
1894
1928
  }
1895
1929
  export type PaginatedResponsePersonnelPersonResultsDataList = Array<PersonnelPerson>;
1896
1930
  export interface PaginatedResponsePersonnelPersonResults {
@@ -1904,9 +1938,9 @@ export interface ListRiskSnapshotsRequest {
1904
1938
  /** The audit ID */
1905
1939
  auditId: string;
1906
1940
  /** Maximum number of results per page (1-100, default 10) */
1907
- pageSize?: number;
1941
+ pageSize?: number | undefined;
1908
1942
  /** Pagination cursor from previous response */
1909
- pageCursor?: string;
1943
+ pageCursor?: string | undefined;
1910
1944
  }
1911
1945
  /** 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. */
1912
1946
  export interface RiskSnapshot {
@@ -1939,20 +1973,22 @@ export interface ListVendorsRequest {
1939
1973
  /** The audit ID */
1940
1974
  auditId: string;
1941
1975
  /** Maximum number of results per page (1-100, default 10) */
1942
- pageSize?: number;
1976
+ pageSize?: number | undefined;
1943
1977
  /** Pagination cursor from previous response */
1944
- pageCursor?: string;
1978
+ pageCursor?: string | undefined;
1945
1979
  /** Search term for filtering by vendor name */
1946
- search?: string;
1980
+ search?: string | undefined;
1947
1981
  /** Filter vendors by status values */
1948
- vendorStatusesMatchesAny?: ListVendorsRequestVendorStatusesMatchesAnyList;
1982
+ vendorStatusesMatchesAny?: ListVendorsRequestVendorStatusesMatchesAnyList | undefined;
1949
1983
  /** Filter vendors by inherent risk level values */
1950
- inherentRiskMatchesAny?: ListVendorsRequestInherentRiskMatchesAnyList;
1984
+ inherentRiskMatchesAny?: ListVendorsRequestInherentRiskMatchesAnyList | undefined;
1951
1985
  /** Field to sort results by. Allowed: "name", "inherentRisk". Default: "name" */
1952
- orderBy?: VendorOrderBy | (string & {});
1986
+ orderBy?: VendorOrderBy | (string & {}) | undefined;
1953
1987
  /** Sort direction: "asc" or "desc". Default: "asc" */
1954
- orderDirection?: OrderDirection | (string & {});
1988
+ orderDirection?: OrderDirection | (string & {}) | undefined;
1955
1989
  }
1990
+ /** IDs of the audit segments this vendor is in scope for. Omitted when segment scoping is disabled. */
1991
+ export type AuditVendorSegmentIdsList = Array<string>;
1956
1992
  /** BAA/DPA document completion counts, or null if no such documents are required. Full Audit View only - omitted in Controlled Audit View. */
1957
1993
  export interface AuditVendorDataAgreements {
1958
1994
  total: number;
@@ -1964,22 +2000,26 @@ export interface AuditVendor {
1964
2000
  id: string;
1965
2001
  /** Vendor name. */
1966
2002
  name: string;
2003
+ /** IDs of the audit segments this vendor is in scope for. Omitted when segment scoping is disabled. */
2004
+ segmentIds?: AuditVendorSegmentIdsList | undefined;
1967
2005
  /** Inherent risk level of the vendor. */
1968
- inherentRisk?: AuditVendorRiskLevel;
2006
+ inherentRisk?: AuditVendorRiskLevel | undefined;
1969
2007
  /** Vendor status. */
1970
- status?: AuditVendorStatus;
2008
+ status?: AuditVendorStatus | undefined;
1971
2009
  /** Number of findings associated with the vendor. */
1972
- findings?: number;
2010
+ findings?: number | undefined;
1973
2011
  /** Date when the last security review was completed, or null if none. */
1974
- lastReviewedCompleted?: string | null;
2012
+ lastReviewedCompleted?: string | null | undefined;
1975
2013
  /** Date when the next security review is due, or null if not scheduled. */
1976
- nextSecurityReviewDueDate?: string | null;
2014
+ nextSecurityReviewDueDate?: string | null | undefined;
1977
2015
  /** Vendor category (e.g. cloud provider, SaaS). */
1978
- vendorCategory?: string | null;
2016
+ vendorCategory?: string | null | undefined;
2017
+ /** ID of the vendor's category. */
2018
+ vendorCategoryId?: string | null | undefined;
1979
2019
  /** Residual risk level of the vendor. Full Audit View only - omitted in Controlled Audit View. */
1980
- residualRisk?: AuditVendorRiskLevel | null;
2020
+ residualRisk?: AuditVendorRiskLevel | null | undefined;
1981
2021
  /** BAA/DPA document completion counts, or null if no such documents are required. Full Audit View only - omitted in Controlled Audit View. */
1982
- dataAgreements?: AuditVendorDataAgreements | null;
2022
+ dataAgreements?: AuditVendorDataAgreements | null | undefined;
1983
2023
  }
1984
2024
  export type PaginatedResponseAuditVendorResultsDataList = Array<AuditVendor>;
1985
2025
  export interface PaginatedResponseAuditVendorResults {
@@ -2004,7 +2044,7 @@ export interface UpdateAuditEvidenceRequestStatusUpdate {
2004
2044
  export interface UpdateAuditEvidenceRequest {
2005
2045
  auditId: string;
2006
2046
  auditEvidenceId: string;
2007
- statusUpdate?: UpdateAuditEvidenceRequestStatusUpdate;
2047
+ statusUpdate?: UpdateAuditEvidenceRequestStatusUpdate | undefined;
2008
2048
  }
2009
2049
  export interface UpdateCommentForControlRequest {
2010
2050
  auditId: string;
@@ -2034,29 +2074,29 @@ export interface UpdateInformationRequestRequest {
2034
2074
  auditId: string;
2035
2075
  requestId: string;
2036
2076
  /** 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. */
2037
- frameworkCodes?: UpdateInformationRequestRequestFrameworkCodesList;
2077
+ frameworkCodes?: UpdateInformationRequestRequestFrameworkCodesList | undefined;
2038
2078
  /** Detailed description of what evidence is needed. */
2039
- description?: string | null;
2079
+ description?: string | null | undefined;
2040
2080
  /** Deadline for fulfilling this request. Null if no deadline. Format: ISO 8601 UTC timestamp. */
2041
- dueDate?: string | null;
2081
+ dueDate?: string | null | undefined;
2042
2082
  /** Start date of the audit period. Evidence before this date may not be accepted. Null if not restricted. Format: ISO 8601 UTC timestamp. */
2043
- evidenceCaptureDate?: string | null;
2083
+ evidenceCaptureDate?: string | null | undefined;
2044
2084
  /** Scope of evidence required. */
2045
- requestType?: InformationRequestType | (string & {});
2085
+ requestType?: InformationRequestType | (string & {}) | undefined;
2046
2086
  /** Short, descriptive title. */
2047
- title?: string;
2087
+ title?: string | undefined;
2048
2088
  /** How frequently this request recurs. */
2049
- cadence?: InformationRequestCadence | (string & {});
2089
+ cadence?: InformationRequestCadence | (string & {}) | undefined;
2050
2090
  /** This legacy field is accepted for backwards compatibility but ignored. Use `linkedControlIds` to replace the complete set of linked controls. */
2051
- additionalControlIds?: UpdateInformationRequestRequestAdditionalControlIdsList;
2091
+ additionalControlIds?: UpdateInformationRequestRequestAdditionalControlIdsList | undefined;
2052
2092
  /** 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. */
2053
- linkedControlIds?: UpdateInformationRequestRequestLinkedControlIdsList;
2093
+ linkedControlIds?: UpdateInformationRequestRequestLinkedControlIdsList | undefined;
2054
2094
  }
2055
2095
  export interface UpsertAssessmentForControlRequest {
2056
2096
  auditId: string;
2057
2097
  controlId: string;
2058
2098
  /** 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. */
2059
- segmentId?: string;
2099
+ segmentId?: string | undefined;
2060
2100
  /** The assessment state to record. Must be one of the states valid for the segment's framework; the request is rejected otherwise. */
2061
2101
  assessmentState: AuditControlAssessmentState | (string & {});
2062
2102
  /** Free-text reasoning for the assessment. Required, and at most 5000 characters. */
@@ -2433,7 +2473,7 @@ export const getInformationRequestTestSnapshotEvidenceDetail: API.OperationMetho
2433
2473
  }));
2434
2474
 
2435
2475
  export type GetOrganizationInformationError = VantaOpError;
2436
- /** Get organization information for an audit Retrieves organization information for an audit. This endpoint returns a single record containing the organization's business information visible to auditors during an audit engagement. Sorting and pagination are not applicable. Rate limit: 10 requests / minute. */
2476
+ /** Get organization information for an audit Retrieves organization information for an audit. This endpoint returns a single record containing the organization's business information visible to auditors during an audit engagement. Sorting and pagination are not applicable. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2437
2477
  export const getOrganizationInformation: API.OperationMethod<
2438
2478
  GetOrganizationInformationRequest,
2439
2479
  AuditOrganizationInformation,
@@ -2450,7 +2490,7 @@ export const getOrganizationInformation: API.OperationMethod<
2450
2490
  }));
2451
2491
 
2452
2492
  export type GetOrganizationNotificationsError = VantaOpError;
2453
- /** Get organization notification settings for an audit Retrieves organization notification settings for an audit. This endpoint returns a single record containing the auditee organization's notification configuration -- schedule, personnel reminder settings, and external notification subscriptions (Compliance, Vendors, Access Reviews, Trust Center). The response is a single aggregate object per domain. Sorting and pagination are not applicable. Under a controlled audit view (TRIMMED_DOWN), only CAV-approved fields are included. Rate limit: 10 requests / minute. */
2493
+ /** Get organization notification settings for an audit Retrieves organization notification settings for an audit. This endpoint returns a single record containing the auditee organization's notification configuration -- schedule, personnel reminder settings, and external notification subscriptions (Compliance, Vendors, Access Reviews, Trust Center). The response is a single aggregate object per domain. Sorting and pagination are not applicable. Only CAV-approved fields are included. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2454
2494
  export const getOrganizationNotifications: API.OperationMethod<
2455
2495
  GetOrganizationNotificationsRequest,
2456
2496
  AuditOrganizationNotifications,
@@ -2467,7 +2507,7 @@ export const getOrganizationNotifications: API.OperationMethod<
2467
2507
  }));
2468
2508
 
2469
2509
  export type ListAccountAccessServicesError = VantaOpError;
2470
- /** List account access services for an audit Retrieves connected account access services for an audit. Returns the list of identity providers and access integrations (such as Okta, Azure AD, Google Workspace, AWS IAM) that are connected to the organization and provide account access data for personnel. These integrations are used to verify user access and identity management during an audit engagement. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are returned in connection order. Sort order is not guaranteed and cannot be customized via query parameters. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 10 requests / minute. */
2510
+ /** List account access services for an audit Retrieves connected account access services for an audit. Returns the list of identity providers and access integrations (such as Okta, Azure AD, Google Workspace, AWS IAM) that are connected to the organization and provide account access data for personnel. These integrations are used to verify user access and identity management during an audit engagement. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are returned in connection order. Sort order is not guaranteed and cannot be customized via query parameters. On an audit that covers more than one framework, each service in scope for any of the audit's frameworks is listed once. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2471
2511
  export const listAccountAccessServices: API.OperationMethod<
2472
2512
  ListAccountAccessServicesRequest,
2473
2513
  PaginatedResponseAccountAccessService,
@@ -2569,7 +2609,7 @@ export const listAuditIssues: API.OperationMethod<
2569
2609
  }));
2570
2610
 
2571
2611
  export type ListAuditRisksError = VantaOpError;
2572
- /** List risks for an audit Retrieves risk population data for an audit. This endpoint provides access to the risk records visible to auditors during an audit engagement. Risk data is scoped to a specific risk assessment snapshot identified by the `snapshotId` parameter. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Supports filtering by: - `search`: Searches risk scenario descriptions (case-insensitive) Results are sorted by identified date (newest first) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Rate limit: 10 requests / minute. */
2612
+ /** List risks for an audit Retrieves risk population data for an audit. This endpoint provides access to the risk records visible to auditors during an audit engagement. Risk data is scoped to a specific risk assessment snapshot identified by the `snapshotId` parameter. Supports filtering by: - `search`: Searches risk scenario descriptions (case-insensitive) Results are sorted by identified date (newest first) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Also returns 403 if the snapshot is not shared with auditors, and 404 if the snapshot does not exist. Use snapshot IDs from `GET /audits/{auditId}/risks/snapshots`, which lists only snapshots shared with auditors. Rate limit: 10 requests / minute. */
2573
2613
  export const listAuditRisks: API.OperationMethod<
2574
2614
  ListAuditRisksRequest,
2575
2615
  PaginatedResponseAuditRisk,
@@ -2620,7 +2660,7 @@ export const listAuditSnapshots: API.OperationMethod<
2620
2660
  }));
2621
2661
 
2622
2662
  export type ListCodeChangesError = VantaOpError;
2623
- /** List code changes for an audit Retrieves code changes population data for an audit. This endpoint provides access to code change records (pull requests) visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches code change titles and repository names (case-insensitive) - `sourcesMatchesAny`: Filters by version control source (accepted values: github, gitlab, bitbucket, azuredevops) - `closedAfterDate` / `closedBeforeDate`: Filters by the closed date range Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are sorted by closed date (newest first). This sort order is fixed and cannot be customized via query parameters. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 10 requests / minute. */
2663
+ /** List code changes for an audit Retrieves code changes population data for an audit. This endpoint provides access to code change records (pull requests) visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches code change titles and repository names (case-insensitive) - `sourcesMatchesAny`: Filters by version control source (accepted values: github, gitlab, bitbucket, azuredevops) - `closedAfterDate` / `closedBeforeDate`: Filters by the closed date range Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are sorted by closed date (newest first). This sort order is fixed and cannot be customized via query parameters. On an audit that covers more than one framework, each code change in scope for any of the audit's frameworks is returned once. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2624
2664
  export const listCodeChanges: API.OperationMethod<
2625
2665
  ListCodeChangesRequest,
2626
2666
  PaginatedResponseCodeChange,
@@ -2688,7 +2728,7 @@ export const listInformationRequestActivity: API.OperationMethod<
2688
2728
  }));
2689
2729
 
2690
2730
  export type ListInformationRequestEvidenceError = VantaOpError;
2691
- /** 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. */
2731
+ /** 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 Identifying evidence and files: - Use `id` as the key for each evidence item, whatever its type. - To recognize the same file across information requests, use the file key for the evidence type. UPLOADED_DOCUMENT uses `evidence.id`. VANTA_DOCUMENT and VANTA_POLICY use `evidence.file.id`, which identifies the source document or policy file. VANTA_TEST uses `evidence.snapshotId` plus `evidence.fileType`. LINK, OBSERVATION, and VANTA_TEST_SNAPSHOT evidence has no file. - Do not use `file.url` as a key. It is a temporary download link. Rate limit: 50 requests / minute. */
2692
2732
  export const listInformationRequestEvidence: API.OperationMethod<
2693
2733
  ListInformationRequestEvidenceRequest,
2694
2734
  PaginatedResponseInformationRequestEvidence,
@@ -2739,7 +2779,7 @@ export const listInformationRequestsForControl: API.OperationMethod<
2739
2779
  }));
2740
2780
 
2741
2781
  export type ListIntegrationsError = VantaOpError;
2742
- /** List integrations for an audit Retrieves integration population data for an audit. This endpoint provides access to integration records visible to auditors during an audit engagement. Integrations represent connected services (e.g., GitHub, AWS, Slack) that provide data for the audit. Supports filtering by: - `search`: Searches integration names (case-insensitive) - `tagsMatchesAny`: Filters by integration tag (ACCESS, COMPUTERS, etc.) - `categoriesMatchesAny`: Filters by category (CLOUD_PROVIDER, HR_PROVIDER, etc.) Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are sorted by integration display name (ascending). This sort order is fixed and cannot be customized via query parameters. Rate limit: 10 requests / minute. */
2782
+ /** List integrations for an audit Retrieves integration population data for an audit. This endpoint provides access to integration records visible to auditors during an audit engagement. Integrations represent connected services (e.g., GitHub, AWS, Slack) that provide data for the audit. Supports filtering by: - `search`: Searches integration names (case-insensitive) - `tagsMatchesAny`: Filters by integration tag (ACCESS, COMPUTERS, etc.) - `categoriesMatchesAny`: Filters by category (CLOUD_PROVIDER, HR_PROVIDER, etc.) Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Results are sorted by integration display name (ascending). This sort order is fixed and cannot be customized via query parameters. Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2743
2783
  export const listIntegrations: API.OperationMethod<
2744
2784
  ListIntegrationsRequest,
2745
2785
  PaginatedResponseAuditIntegration,
@@ -2756,7 +2796,7 @@ export const listIntegrations: API.OperationMethod<
2756
2796
  }));
2757
2797
 
2758
2798
  export type ListPersonnelAccountAccessError = VantaOpError;
2759
- /** List account access records for an audit Retrieves account access population data for an audit. This endpoint provides access to account access records visible to auditors during an audit engagement. Account access data comes from various sources: - **IDP Services** (Identity Providers): Okta, Azure AD, Google Workspace, OneLogin, PingOne - Returns user accounts from identity providers - Supports filtering by search and status - **Role Grants Services**: GCP, Azure (when role grants are enabled) - Returns accounts with role-based access grants - Supports filtering by search and status - **First-Party Account Services**: AWS, Oracle Cloud, Azure (when not using role grants), etc. - Returns cloud provider account access records - Supports filtering by search and status - **Received Account Services**: External applications (Jira, GitHub, Slack, etc.) - Returns user accounts from third-party integrations - Supports filtering by search and status Supports filtering by: - `search`: Searches account names/emails (case-insensitive) - `status`: Filters by account status Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request The default sort order depends on the service type: - Identity provider services (e.g. Okta, Azure AD): sorted by email, ascending - Cloud provider services (e.g. AWS, GCP): sorted by account name, ascending - Role grant services: sorted by account name, ascending - Third-party application services (e.g. GitHub, Jira): sorted by account name, ascending Sort order cannot be customized via query parameters. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Rate limit: 10 requests / minute. */
2799
+ /** List account access records for an audit Retrieves account access population data for an audit. This endpoint provides access to account access records visible to auditors during an audit engagement. Account access data comes from various sources: - **IDP Services** (Identity Providers): Okta, Azure AD, Google Workspace, OneLogin, PingOne - Returns user accounts from identity providers - Supports filtering by search and status - **Role Grants Services**: GCP, Azure (when role grants are enabled) - Returns accounts with role-based access grants - Supports filtering by search and status - **First-Party Account Services**: AWS, Oracle Cloud, Azure (when not using role grants), etc. - Returns cloud provider account access records - Supports filtering by search and status - **Received Account Services**: External applications (Jira, GitHub, Slack, etc.) - Returns user accounts from third-party integrations - Supports filtering by search and status Supports filtering by: - `search`: Searches account names/emails (case-insensitive) - `status`: Filters by account status Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request The default sort order depends on the service type: - Identity provider services (e.g. Okta, Azure AD): sorted by email, ascending - Cloud provider services (e.g. AWS, GCP): sorted by account name, ascending - Role grant services: sorted by account name, ascending - Third-party application services (e.g. GitHub, Jira): sorted by account name, ascending Sort order cannot be customized via query parameters. Returns 404 when `serviceId` is not listed by the `/personnel/account-access/services` endpoint for this audit. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2760
2800
  export const listPersonnelAccountAccess: API.OperationMethod<
2761
2801
  ListPersonnelAccountAccessRequest,
2762
2802
  PaginatedResponseAccountAccess,
@@ -2773,7 +2813,7 @@ export const listPersonnelAccountAccess: API.OperationMethod<
2773
2813
  }));
2774
2814
 
2775
2815
  export type ListPersonnelGroupsError = VantaOpError;
2776
- /** List groups for an audit Retrieves groups population data for an audit. This endpoint provides access to the group records visible to auditors during an audit engagement. Groups represent organizational units that contain people, either imported from an identity provider (IDP) or created manually in Vanta. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Supports filtering by: - `search`: Searches group names (case-insensitive) - `sourcesMatchesAny`: Filters by IDP source service names Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Rate limit: 10 requests / minute. */
2816
+ /** List groups for an audit Retrieves groups population data for an audit. This endpoint provides access to the group records visible to auditors during an audit engagement. Groups represent organizational units that contain people, either imported from an identity provider (IDP) or created manually in Vanta. Supports filtering by: - `search`: Searches group names (case-insensitive) - `sourcesMatchesAny`: Filters by IDP source service names Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2777
2817
  export const listPersonnelGroups: API.OperationMethod<
2778
2818
  ListPersonnelGroupsRequest,
2779
2819
  PaginatedResponsePersonnelGroup,
@@ -2790,7 +2830,7 @@ export const listPersonnelGroups: API.OperationMethod<
2790
2830
  }));
2791
2831
 
2792
2832
  export type ListPersonnelPeopleError = VantaOpError;
2793
- /** List people for an audit Retrieves people population data for an audit. This endpoint provides access to the people records visible to auditors during an audit engagement. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Supports filtering by: - `search`: Searches names and email addresses - `status`: Filters by employment status - `groupsMatchesAny`: Filter people by group/role IDs Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Rate limit: 10 requests / minute. */
2833
+ /** List people for an audit Retrieves people population data for an audit. This endpoint provides access to the people records visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches names and email addresses - `status`: Filters by employment status - `groupsMatchesAny`: Filter people by group/role IDs Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2794
2834
  export const listPersonnelPeople: API.OperationMethod<
2795
2835
  ListPersonnelPeopleRequest,
2796
2836
  PaginatedResponsePersonnelPerson,
@@ -2807,7 +2847,7 @@ export const listPersonnelPeople: API.OperationMethod<
2807
2847
  }));
2808
2848
 
2809
2849
  export type ListRiskSnapshotsError = VantaOpError;
2810
- /** List risk snapshots for an audit Returns a paginated list of risk assessment snapshots available for an audit. Risk snapshots capture the state of an organization's risk register at a point in time. Each snapshot has an `id` that can be used with the `/audits/{auditId}/risks` endpoint to retrieve the individual risk scenarios within that snapshot. Results are sorted by creation date (newest first). This sort order is fixed and cannot be customized via query parameters. Only snapshots that are shared with auditors are included. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Rate limit: 10 requests / minute. */
2850
+ /** List risk snapshots for an audit Returns a paginated list of risk assessment snapshots available for an audit. Risk snapshots capture the state of an organization's risk register at a point in time. Each snapshot has an `id` that can be used with the `/audits/{auditId}/risks` endpoint to retrieve the individual risk scenarios within that snapshot. Results are sorted by creation date (newest first). This sort order is fixed and cannot be customized via query parameters. Only snapshots that are shared with auditors are included. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2811
2851
  export const listRiskSnapshots: API.OperationMethod<
2812
2852
  ListRiskSnapshotsRequest,
2813
2853
  PaginatedResponseRiskSnapshot,
@@ -2841,7 +2881,7 @@ export const listShareInformationRequest: API.OperationMethod<
2841
2881
  }));
2842
2882
 
2843
2883
  export type ListVendorsError = VantaOpError;
2844
- /** List vendors for an audit Retrieves vendor population data for an audit. This endpoint provides access to vendor records visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches vendor names (case-insensitive) - `vendorStatusesMatchesAny`: Filters by vendor status (ACTIVE, ARCHIVED, IN_PROCUREMENT) - `inherentRiskMatchesAny`: Filters by inherent risk level Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Rate limit: 10 requests / minute. */
2884
+ /** List vendors for an audit Retrieves vendor population data for an audit. This endpoint provides access to vendor records visible to auditors during an audit engagement. Supports filtering by: - `search`: Searches vendor names (case-insensitive) - `vendorStatusesMatchesAny`: Filters by vendor status (ACTIVE, ARCHIVED, IN_PROCUREMENT) - `inherentRiskMatchesAny`: Filters by inherent risk level Results are sorted by name (ascending) by default. Use `orderBy` and `orderDirection` to customize sorting. Sort parameters must remain consistent across paginated requests. Uses cursor-based pagination. To paginate: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` 3. Use `results.pageInfo.endCursor` as `pageCursor` for next request Supports audits with one or more program segments. Audits with system segments are not supported by this endpoint. Only Controlled Audit View (CAV) audits are supported. Full Audit View audits are rejected with 403. Returns 403 if the customer has not made this population page visible to auditors. Rate limit: 10 requests / minute. */
2845
2885
  export const listVendors: API.OperationMethod<
2846
2886
  ListVendorsRequest,
2847
2887
  PaginatedResponseAuditVendor,
@@ -3115,6 +3155,7 @@ function __c7(j: number): any {
3115
3155
  modificationDate: S.NullOr(S.String),
3116
3156
  completionDate: S.NullOr(S.String),
3117
3157
  auditFocus: S.String,
3158
+ auditView: S.String,
3118
3159
  irlGenerationStatus: S.NullOr(S.String),
3119
3160
  auditorRequestListMetadata: S.optional(__S(224, __c7, 0)),
3120
3161
  segments: __S(229, __c7, 5),
@@ -3302,6 +3343,7 @@ function __c17(j: number): any {
3302
3343
  creationDate: S.String,
3303
3344
  modificationDate: S.String,
3304
3345
  deletionDate: S.optional(S.NullOr(S.String)),
3346
+ capturedSegmentIds: __S(32, __c1, 0),
3305
3347
  evidence: S.Unknown,
3306
3348
  }),
3307
3349
  ).annotate({ identifier: "InformationRequestEvidence" });
@@ -3616,6 +3658,7 @@ function __c26(j: number): any {
3616
3658
  pageSize: S.optional(S.Number.pipe(T.Query())),
3617
3659
  pageCursor: S.optional(S.String.pipe(T.Query())),
3618
3660
  externalIdMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
3661
+ segmentIdsMatchesAny: S.optional(__S(32, __c1, 0).pipe(T.Query())),
3619
3662
  }).pipe(T.Http({ method: "GET", uri: "/audits/{auditId}/controls", code: 200 })),
3620
3663
  ).annotate({ identifier: "ListAuditControlsRequest" });
3621
3664
  case 1:
@@ -3991,6 +4034,7 @@ function __c35(j: number): any {
3991
4034
  S.Struct({
3992
4035
  id: S.String,
3993
4036
  codeChange: S.String,
4037
+ segmentIds: S.optional(__S(32, __c1, 0)),
3994
4038
  identifier: S.optional(S.String),
3995
4039
  service: S.optional(S.String),
3996
4040
  repository: S.optional(S.String),
@@ -4232,6 +4276,7 @@ function __c44(j: number): any {
4232
4276
  S.Struct({
4233
4277
  id: S.String,
4234
4278
  name: S.String,
4279
+ segmentIds: S.optional(__S(32, __c1, 0)),
4235
4280
  tags: S.optional(__S(32, __c1, 0)),
4236
4281
  categories: S.optional(__S(32, __c1, 0)),
4237
4282
  }),
@@ -4297,6 +4342,7 @@ function __c46(j: number): any {
4297
4342
  S.Struct({
4298
4343
  id: S.String,
4299
4344
  accountName: S.String,
4345
+ segmentIds: S.optional(__S(32, __c1, 0)),
4300
4346
  owner: S.optional(S.NullOr(S.String)),
4301
4347
  role: S.optional(__S(32, __c1, 0)),
4302
4348
  status: S.optional(S.String),
@@ -4341,6 +4387,7 @@ function __c47(j: number): any {
4341
4387
  S.Struct({
4342
4388
  id: S.String,
4343
4389
  name: S.String,
4390
+ segmentIds: S.optional(__S(32, __c1, 0)),
4344
4391
  members: S.optional(S.Number),
4345
4392
  source: S.optional(S.String),
4346
4393
  tasks: S.optional(__S(1537, __c48, 1)),
@@ -4424,6 +4471,7 @@ function __c49(j: number): any {
4424
4471
  id: S.String,
4425
4472
  name: S.String,
4426
4473
  email: S.String,
4474
+ segmentIds: S.optional(__S(32, __c1, 0)),
4427
4475
  jobTitle: S.optional(S.NullOr(S.String)),
4428
4476
  employmentStatus: S.optional(S.NullOr(S.String)),
4429
4477
  startDate: S.optional(S.NullOr(S.String)),
@@ -4534,12 +4582,14 @@ function __c52(j: number): any {
4534
4582
  S.Struct({
4535
4583
  id: S.String,
4536
4584
  name: S.String,
4585
+ segmentIds: S.optional(__S(32, __c1, 0)),
4537
4586
  inherentRisk: S.optional(S.String),
4538
4587
  status: S.optional(S.String),
4539
4588
  findings: S.optional(S.Number),
4540
4589
  lastReviewedCompleted: S.optional(S.NullOr(S.String)),
4541
4590
  nextSecurityReviewDueDate: S.optional(S.NullOr(S.String)),
4542
4591
  vendorCategory: S.optional(S.NullOr(S.String)),
4592
+ vendorCategoryId: S.optional(S.NullOr(S.String)),
4543
4593
  residualRisk: S.optional(S.NullOr(S.String)),
4544
4594
  dataAgreements: S.optional(S.NullOr(__S(1665, __c52, 1))),
4545
4595
  }),