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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +34 -0
  2. package/lib/credentials.d.ts +2 -2
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +3 -3
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +1 -1
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +3 -3
  10. package/lib/index.d.ts.map +1 -1
  11. package/lib/index.js +3 -3
  12. package/lib/index.js.map +1 -1
  13. package/lib/protocol.d.ts +5 -5
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +4 -7
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +1 -1
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/auditor_api.d.ts +97 -63
  22. package/lib/services/auditor_api.d.ts.map +1 -1
  23. package/lib/services/auditor_api.js +160 -373
  24. package/lib/services/auditor_api.js.map +1 -1
  25. package/lib/services/build_integrations.d.ts +82 -82
  26. package/lib/services/build_integrations.d.ts.map +1 -1
  27. package/lib/services/build_integrations.js +168 -309
  28. package/lib/services/build_integrations.js.map +1 -1
  29. package/lib/services/manage_vanta.d.ts +340 -38
  30. package/lib/services/manage_vanta.d.ts.map +1 -1
  31. package/lib/services/manage_vanta.js +676 -1287
  32. package/lib/services/manage_vanta.js.map +1 -1
  33. package/lib/services/webhooks.d.ts +7 -7
  34. package/lib/services/webhooks.d.ts.map +1 -1
  35. package/lib/services/webhooks.js +54 -142
  36. package/lib/services/webhooks.js.map +1 -1
  37. package/package.json +13 -11
  38. package/src/credentials.ts +7 -8
  39. package/src/errors.ts +5 -8
  40. package/src/index.ts +3 -7
  41. package/src/protocol.ts +28 -32
  42. package/src/retry.ts +2 -8
  43. package/src/services/auditor_api.ts +721 -1022
  44. package/src/services/build_integrations.ts +788 -1094
  45. package/src/services/manage_vanta.ts +2504 -3322
  46. package/src/services/webhooks.ts +309 -483
@@ -1,5 +1,5 @@
1
- import * as S from "@distilled.cloud/core/schema";
2
1
  import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema";
3
3
  import { type VantaOpError, type VantaOpContext } from "../protocol.ts";
4
4
  export type { VantaOpError, VantaOpContext };
5
5
  export interface AcceptInformationRequestEvidenceRequest {
@@ -9,18 +9,24 @@ export interface AcceptInformationRequestEvidenceRequest {
9
9
  auditorEmail: string;
10
10
  }
11
11
  export declare const AcceptInformationRequestEvidenceRequest: S.Schema<AcceptInformationRequestEvidenceRequest>;
12
- /** Additional control IDs beyond those automatically mapped from framework codes. Allows manual association with specific controls when automatic mapping is insufficient. Each ID should reference a valid control in your audit framework. */
12
+ /** Deprecated control-linkage field retained for response compatibility. It may contain control IDs supplied directly to the request, but it is not a complete or guaranteed-current list of controls linked to the request. Use `linkedControlIds` for the complete current list. */
13
13
  export type InformationRequestAdditionalControlIdsList = Array<string>;
14
14
  export declare const InformationRequestAdditionalControlIdsList: S.Schema<InformationRequestAdditionalControlIdsList>;
15
+ /** The complete current set of control IDs linked to this request, including controls linked through framework codes and controls added directly. Each ID is returned by the audit controls endpoint. */
16
+ export type InformationRequestLinkedControlIdsList = Array<string>;
17
+ export declare const InformationRequestLinkedControlIdsList: S.Schema<InformationRequestLinkedControlIdsList>;
15
18
  /** Current approval status of the information request, tracking its lifecycle through the audit process. The status progresses through the workflow: initial state → awaiting review → approved or flagged. Status can move between awaiting review and flagged states as evidence is reviewed and resubmitted. */
16
19
  export type InformationRequestApprovalStatus = "NEEDS_EVIDENCE" | "READY_FOR_AUDIT" | "AUDITOR_APPROVED" | "AUDITOR_FLAGGED";
17
20
  export declare const InformationRequestApprovalStatus: any;
18
21
  /** Frequency cadence for the information request, indicating how often it recurs. */
19
22
  export type InformationRequestCadence = "ANNUALLY" | "BIANNUALLY" | "MONTHLY" | "QUARTERLY";
20
23
  export declare const InformationRequestCadence: any;
21
- /** The framework codes this request addresses. Links the request to specific compliance requirements. Can be an empty array if no framework codes are associated. These codes correspond to standards like SOC 2, ISO 27001, etc. */
24
+ /** Always empty on read. Use `linkedControlIds` for control linkage and `segmentIds` for request assignment. */
22
25
  export type InformationRequestFrameworkCodesList = Array<string>;
23
26
  export declare const InformationRequestFrameworkCodesList: S.Schema<InformationRequestFrameworkCodesList>;
27
+ /** Audit segments this request is assigned to. Empty means unassigned. Resolved against the current audit scope — stale IDs are dropped. This field is a current-scope projection, not a stored watermark. An audit-scope change that drops or adds IDs here does not update creationDate, modificationDate, or deletionDate, so it does not appear in `changedSinceDate` delta sync on its own. Re-fetch the list without that parameter, or GET the request by id, to see the current projection. */
28
+ export type InformationRequestSegmentIdsList = Array<string>;
29
+ export declare const InformationRequestSegmentIdsList: S.Schema<InformationRequestSegmentIdsList>;
24
30
  /** Type of information request, defining what scope of evidence is needed. - POINT_IN_TIME: Evidence for a specific moment (e.g., current state of a policy) - POPULATION: Evidence covering all items in a category (e.g., all employees) - SAMPLE: Evidence for a representative sample (e.g., 10 random customer records) */
25
31
  export type InformationRequestType = "POINT_IN_TIME" | "POPULATION" | "SAMPLE";
26
32
  export declare const InformationRequestType: any;
@@ -49,14 +55,18 @@ export interface InformationRequest {
49
55
  id: string;
50
56
  /** External unique ID to prevent duplicates across different audit systems. Used for idempotency when syncing data between external audit management systems and Vanta. Unlike `id`, this value is provided by the external system. */
51
57
  uniqueId: string;
52
- /** Additional control IDs beyond those automatically mapped from framework codes. Allows manual association with specific controls when automatic mapping is insufficient. Each ID should reference a valid control in your audit framework. */
58
+ /** Deprecated control-linkage field retained for response compatibility. It may contain control IDs supplied directly to the request, but it is not a complete or guaranteed-current list of controls linked to the request. Use `linkedControlIds` for the complete current list. */
53
59
  additionalControlIds: InformationRequestAdditionalControlIdsList;
60
+ /** The complete current set of control IDs linked to this request, including controls linked through framework codes and controls added directly. Each ID is returned by the audit controls endpoint. */
61
+ linkedControlIds: InformationRequestLinkedControlIdsList;
54
62
  /** Current approval status tracking the request's lifecycle through evidence submission and auditor review. */
55
63
  approvalStatus: InformationRequestApprovalStatus;
56
64
  /** How frequently this information request recurs (e.g., annual password policy reviews). Null for one-time requests. */
57
65
  cadence: InformationRequestCadence | null;
58
- /** The framework codes this request addresses. Links the request to specific compliance requirements. Can be an empty array if no framework codes are associated. These codes correspond to standards like SOC 2, ISO 27001, etc. */
66
+ /** Always empty on read. Use `linkedControlIds` for control linkage and `segmentIds` for request assignment. */
59
67
  frameworkCodes: InformationRequestFrameworkCodesList;
68
+ /** Audit segments this request is assigned to. Empty means unassigned. Resolved against the current audit scope — stale IDs are dropped. This field is a current-scope projection, not a stored watermark. An audit-scope change that drops or adds IDs here does not update creationDate, modificationDate, or deletionDate, so it does not appear in `changedSinceDate` delta sync on its own. Re-fetch the list without that parameter, or GET the request by id, to see the current projection. */
69
+ segmentIds: InformationRequestSegmentIdsList;
60
70
  /** Detailed description explaining what evidence is needed and why. Should provide clear instructions to help the customer understand what to submit. */
61
71
  description: string | null;
62
72
  /** The deadline by which the customer must fulfill this request. Null if no specific deadline is set. Format: ISO 8601 UTC timestamp. */
@@ -225,8 +235,8 @@ export declare const CreateCustomControlRequest: S.Schema<CreateCustomControlReq
225
235
  export type ControlSource = "Vanta" | "Custom";
226
236
  export declare const ControlSource: any;
227
237
  /** The security domains that the control belongs to. */
228
- export type ControlDomainsList = Array<string>;
229
- export declare const ControlDomainsList: S.Schema<ControlDomainsList>;
238
+ export type AuditorApiControlDomainsList = Array<string>;
239
+ export declare const AuditorApiControlDomainsList: S.Schema<AuditorApiControlDomainsList>;
230
240
  export interface Owner {
231
241
  /** Unique identifier for the person. */
232
242
  id: string;
@@ -246,9 +256,9 @@ export interface CustomField {
246
256
  }
247
257
  export declare const CustomField: S.Schema<CustomField>;
248
258
  /** The control's custom field values, if control custom fields is included in your Vanta instance. */
249
- export type ControlCustomFieldsList = Array<CustomField>;
250
- export declare const ControlCustomFieldsList: S.Schema<ControlCustomFieldsList>;
251
- export interface Control {
259
+ export type AuditorApiControlCustomFieldsList = Array<CustomField>;
260
+ export declare const AuditorApiControlCustomFieldsList: S.Schema<AuditorApiControlCustomFieldsList>;
261
+ export interface AuditorApiControl {
252
262
  /** The control's unique ID. */
253
263
  id: string;
254
264
  /** The control's external ID. */
@@ -260,19 +270,19 @@ export interface Control {
260
270
  /** The control's source, either "VANTA" or "CUSTOM". */
261
271
  source: ControlSource;
262
272
  /** The security domains that the control belongs to. */
263
- domains: ControlDomainsList;
273
+ domains: AuditorApiControlDomainsList;
264
274
  /** The control's owner. */
265
275
  owner: Owner | null;
266
276
  /** The control's GDPR role, if the control is a GDPR control. */
267
277
  role?: string | null;
268
278
  /** The control's custom field values, if control custom fields is included in your Vanta instance. */
269
- customFields: ControlCustomFieldsList;
279
+ customFields: AuditorApiControlCustomFieldsList;
270
280
  /** When the control was created. Returns null for Vanta library controls. */
271
281
  creationDate: string | null;
272
282
  /** When the control was last modified. Returns null for Vanta library controls. */
273
283
  modificationDate: string | null;
274
284
  }
275
- export declare const Control: S.Schema<Control>;
285
+ export declare const AuditorApiControl: S.Schema<AuditorApiControl>;
276
286
  /** A set of controls, referenced by id, to map the evidence to */
277
287
  export type CreateCustomEvidenceRequestRequestControlIdsList = Array<string>;
278
288
  export declare const CreateCustomEvidenceRequestRequestControlIdsList: S.Schema<CreateCustomEvidenceRequestRequestControlIdsList>;
@@ -319,7 +329,7 @@ export declare const CustomEvidenceRequest: S.Schema<CustomEvidenceRequest>;
319
329
  /** Framework codes this request addresses. An empty array if no framework codes are associated. */
320
330
  export type CreateInformationRequestRequestFrameworkCodesList = Array<string>;
321
331
  export declare const CreateInformationRequestRequestFrameworkCodesList: S.Schema<CreateInformationRequestRequestFrameworkCodesList>;
322
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. Omit or pass an empty array for no direct control links. */
332
+ /** 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. */
323
333
  export type CreateInformationRequestRequestAdditionalControlIdsList = Array<string>;
324
334
  export declare const CreateInformationRequestRequestAdditionalControlIdsList: S.Schema<CreateInformationRequestRequestAdditionalControlIdsList>;
325
335
  export interface CreateInformationRequestRequest {
@@ -340,7 +350,7 @@ export interface CreateInformationRequestRequest {
340
350
  dueDate?: string | null;
341
351
  /** 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. */
342
352
  evidenceCaptureDate?: string | null;
343
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. Omit or pass an empty array for no direct control links. */
353
+ /** 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. */
344
354
  additionalControlIds?: CreateInformationRequestRequestAdditionalControlIdsList;
345
355
  }
346
356
  export declare const CreateInformationRequestRequest: S.Schema<CreateInformationRequestRequest>;
@@ -397,6 +407,8 @@ export type AuditAllowAuditorEmailsList = Array<string>;
397
407
  export declare const AuditAllowAuditorEmailsList: S.Schema<AuditAllowAuditorEmailsList>;
398
408
  export type AuditFocus = "EXTERNAL" | "INTERNAL";
399
409
  export declare const AuditFocus: any;
410
+ export type AuditIrlGenerationStatus = "PENDING" | "RUNNING" | "READY" | "FAILED";
411
+ export declare const AuditIrlGenerationStatus: any;
400
412
  /** 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. */
401
413
  export interface AuditAuditorRequestListMetadata {
402
414
  /** Timestamp when information requests were shared with the customer. Null if not shared. */
@@ -405,14 +417,10 @@ export interface AuditAuditorRequestListMetadata {
405
417
  export declare const AuditAuditorRequestListMetadata: S.Schema<AuditAuditorRequestListMetadata>;
406
418
  export type AuditSegmentKind = "PROGRAM" | "SYSTEM";
407
419
  export declare const AuditSegmentKind: any;
408
- /** The framework reached through a segment. */
420
+ /** The framework this segment is in. */
409
421
  export interface AuditSegmentFramework {
410
- /** The stable identifier of the framework (for example `soc2`). */
411
- id: string;
412
- /** The human-readable framework name. */
422
+ /** Display name of the framework. */
413
423
  displayName: string;
414
- /** The short framework name used in compact UI. */
415
- shortName: string;
416
424
  }
417
425
  export declare const AuditSegmentFramework: S.Schema<AuditSegmentFramework>;
418
426
  /** A business unit or information-system association on an audit segment. */
@@ -438,7 +446,7 @@ export interface AuditSoc2Deliverable {
438
446
  tscs: AuditSoc2DeliverableTscsList;
439
447
  }
440
448
  export declare const AuditSoc2Deliverable: S.Schema<AuditSoc2Deliverable>;
441
- /** One segment of an audit's scope. A live single-framework audit has exactly one entry; a live multi-framework audit has one per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. `displayName` is the segment label owned by audit scope (for example "{Framework}" or "{Framework} — {Business Unit}"). `soc2Deliverable` is the per-segment SOC 2 config, or null. `businessUnit` is set for program segments that are BU-scoped and null otherwise. `system` is set for system segments and null otherwise. */
449
+ /** One segment of an audit's scope. A live audit returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. Soft-deleted audits return an empty list. `displayName` is the segment label owned by audit scope (for example "{Framework}" or "{Framework} — {Business Unit}"). `soc2Deliverable` is the per-segment SOC 2 config, or null. `businessUnit` is set for program segments that are BU-scoped and null otherwise. `system` is set for system segments and null otherwise. */
442
450
  export interface AuditSegment {
443
451
  /** The unique identifier for the segment. */
444
452
  id: string;
@@ -446,7 +454,7 @@ export interface AuditSegment {
446
454
  kind: AuditSegmentKind;
447
455
  /** The segment's display label. Do not reconstruct this from framework + BU. */
448
456
  displayName: string;
449
- /** The framework reached through this segment. */
457
+ /** The framework this segment is in. */
450
458
  framework: AuditSegmentFramework;
451
459
  /** The business unit this program segment is scoped to, or null when the segment is not BU-scoped or the BU cannot be resolved. */
452
460
  businessUnit: AuditSegmentAssociation | null;
@@ -456,7 +464,7 @@ export interface AuditSegment {
456
464
  soc2Deliverable: AuditSoc2Deliverable | null;
457
465
  }
458
466
  export declare const AuditSegment: S.Schema<AuditSegment>;
459
- /** The audit's scope as a list of segments. Always present. A live single-framework audit has one entry; a multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. Prefer this over the deprecated top-level `framework` field. */
467
+ /** 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. */
460
468
  export type AuditSegmentsList = Array<AuditSegment>;
461
469
  export declare const AuditSegmentsList: S.Schema<AuditSegmentsList>;
462
470
  export interface Audit {
@@ -474,7 +482,7 @@ export interface Audit {
474
482
  auditEndDate: string;
475
483
  /** Timestamp at which auditors gain access to the audit. Occurs before the audit window begins */
476
484
  earlyAccessStartsAt: string | null;
477
- /** Legacy singular framework display name from the audit type. Incomplete for a multi-framework audit — use `segments` for framework identity. */
485
+ /** Legacy singular framework display name from the audit type. Incomplete for a multi-framework audit — use `segments` instead. */
478
486
  framework: string;
479
487
  /** The display name for the audit. Returns the custom audit name if set, otherwise returns the framework name. */
480
488
  displayName: string;
@@ -492,9 +500,11 @@ export interface Audit {
492
500
  completionDate: string | null;
493
501
  /** Audit focus determines if the audit is internal or external facing */
494
502
  auditFocus: AuditFocus;
503
+ /** 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. */
504
+ irlGenerationStatus: AuditIrlGenerationStatus | null;
495
505
  /** 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. */
496
506
  auditorRequestListMetadata?: AuditAuditorRequestListMetadata;
497
- /** The audit's scope as a list of segments. Always present. A live single-framework audit has one entry; a multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. Prefer this over the deprecated top-level `framework` field. */
507
+ /** 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. */
498
508
  segments: AuditSegmentsList;
499
509
  }
500
510
  export declare const Audit: S.Schema<Audit>;
@@ -576,13 +586,28 @@ export interface GetFrameworkCodesRequest {
576
586
  auditId: string;
577
587
  }
578
588
  export declare const GetFrameworkCodesRequest: S.Schema<GetFrameworkCodesRequest>;
579
- /** Array of valid framework codes for the audit's framework (e.g., "CC6.1", "CC6.2"). These represent the different framework sections available for creating information requests. */
589
+ /** Valid framework codes for this audit. */
580
590
  export type FrameworkCodesFrameworkCodesList = Array<string>;
581
591
  export declare const FrameworkCodesFrameworkCodesList: S.Schema<FrameworkCodesFrameworkCodesList>;
592
+ /** Valid codes for this framework, sorted. */
593
+ export type FrameworkCodesByFrameworkCodesList = Array<string>;
594
+ export declare const FrameworkCodesByFrameworkCodesList: S.Schema<FrameworkCodesByFrameworkCodesList>;
595
+ export interface FrameworkCodesByFramework {
596
+ /** Display name of the in-scope framework these codes belong to. */
597
+ framework: string;
598
+ /** Valid codes for this framework, sorted. */
599
+ codes: FrameworkCodesByFrameworkCodesList;
600
+ }
601
+ export declare const FrameworkCodesByFramework: S.Schema<FrameworkCodesByFramework>;
602
+ /** Valid codes grouped by each distinct in-scope framework. A code that exists on two frameworks appears in both groups. Two segments that share a framework contribute one group. `framework` is the display name. */
603
+ export type FrameworkCodesCodesByFrameworkList = Array<FrameworkCodesByFramework>;
604
+ export declare const FrameworkCodesCodesByFrameworkList: S.Schema<FrameworkCodesCodesByFrameworkList>;
582
605
  /** Framework codes response resource */
583
606
  export interface FrameworkCodes {
584
- /** Array of valid framework codes for the audit's framework (e.g., "CC6.1", "CC6.2"). These represent the different framework sections available for creating information requests. */
607
+ /** Valid framework codes for this audit. */
585
608
  frameworkCodes: FrameworkCodesFrameworkCodesList;
609
+ /** Valid codes grouped by each distinct in-scope framework. A code that exists on two frameworks appears in both groups. Two segments that share a framework contribute one group. `framework` is the display name. */
610
+ codesByFramework: FrameworkCodesCodesByFrameworkList;
586
611
  }
587
612
  export declare const FrameworkCodes: S.Schema<FrameworkCodes>;
588
613
  export interface GetInformationRequestRequest {
@@ -1059,18 +1084,18 @@ export interface Section {
1059
1084
  principle: SectionPrinciple | null;
1060
1085
  }
1061
1086
  export declare const Section: S.Schema<Section>;
1062
- /** Sections of a framework that this control satisfies */
1087
+ /** Current framework sections this control satisfies within the audit segments in which it is in scope. */
1063
1088
  export type AuditorControlSectionsList = Array<Section>;
1064
1089
  export declare const AuditorControlSectionsList: S.Schema<AuditorControlSectionsList>;
1065
- /** Audit segments this control is in scope for. Empty when the control is attached only by a direct link and has no catalog mapping on a multi-program audit. */
1090
+ /** Audit segments in which this control is in scope. This can differ from current framework mappings, and the array can be empty. */
1066
1091
  export type AuditorControlInScopeSegmentIdsList = Array<string>;
1067
1092
  export declare const AuditorControlInScopeSegmentIdsList: S.Schema<AuditorControlInScopeSegmentIdsList>;
1068
- /** An auditor's assessment of a control within an audit. This is the full flat union of every framework's assessment states (the superset); a given audit's framework only uses its own subset. `NOT_ASSESSED` is shared by all frameworks and is the default for a control that has not yet been assessed. Which states apply to which framework: - Most frameworks (e.g. SOC 2): `IN_PLACE`, `NOT_IN_PLACE`, `PARTIAL`, `NOT_ASSESSED` - ISO 27001: `CONFORMING`, `MINOR_NON_CONFORMITY`, `MAJOR_NON_CONFORMITY`, `NOT_ASSESSED` - FedRAMP: `SATISFIED`, `NOT_SATISFIED`, `OTHER_THAN_SATISFIED`, `NOT_ASSESSED` - FedRAMP Key Security Indicators (KSI): `TRUE`, `FALSE`, `PARTIAL`, `NOT_ASSESSED` Distinct from `ControlStatus`, which is the computed tests/documents-passing status — a different concept. */
1093
+ /** An auditor's assessment of a control within an audit. This is the full flat union of every framework's assessment states (the superset); the selected segment's framework determines which subset applies. `NOT_ASSESSED` is shared by all frameworks and is the default for a control that has not yet been assessed. Which states apply to which framework: - Most frameworks (e.g. SOC 2): `IN_PLACE`, `NOT_IN_PLACE`, `PARTIAL`, `NOT_ASSESSED` - ISO 27001: `CONFORMING`, `MINOR_NON_CONFORMITY`, `MAJOR_NON_CONFORMITY`, `NOT_ASSESSED` - FedRAMP: `SATISFIED`, `NOT_SATISFIED`, `OTHER_THAN_SATISFIED`, `NOT_ASSESSED` - FedRAMP Key Security Indicators (KSI): `TRUE`, `FALSE`, `PARTIAL`, `NOT_ASSESSED` Distinct from `ControlStatus`, which is the computed tests/documents-passing status — a different concept. */
1069
1094
  export type AuditControlAssessmentState = "IN_PLACE" | "NOT_IN_PLACE" | "PARTIAL" | "NOT_ASSESSED" | "CONFORMING" | "MINOR_NON_CONFORMITY" | "MAJOR_NON_CONFORMITY" | "SATISFIED" | "NOT_SATISFIED" | "OTHER_THAN_SATISFIED" | "TRUE" | "FALSE";
1070
1095
  export declare const AuditControlAssessmentState: any;
1071
- /** An auditor's assessment of a control within one segment of an audit. Assessments are keyed per segment, so a control in scope for more than one segment (a multi-framework audit) can carry a distinct assessment per segment. A segment with no recorded assessment coerces to `NOT_ASSESSED` with a `null` justification. */
1096
+ /** An auditor's assessment of a control within one audit segment. Assessments can be recorded for any segment on the audit, `PROGRAM` or `SYSTEM`, and a control can carry a distinct assessment per segment. A segment with no recorded assessment returns `NOT_ASSESSED` with a `null` justification. */
1072
1097
  export interface AuditControlAssessment {
1073
- /** The audit program segment this assessment belongs to. */
1098
+ /** The audit segment this assessment belongs to. */
1074
1099
  segmentId: string;
1075
1100
  /** The auditor's assessment of the control for this segment; `NOT_ASSESSED` when no assessment has been recorded. */
1076
1101
  assessmentState: AuditControlAssessmentState;
@@ -1078,7 +1103,7 @@ export interface AuditControlAssessment {
1078
1103
  justification: string | null;
1079
1104
  }
1080
1105
  export declare const AuditControlAssessment: S.Schema<AuditControlAssessment>;
1081
- /** The auditor's assessments of this control, one per audit program segment the control is in scope for (a multi-framework audit can have more than one). Populated only for IRL audits when the assessment feature is enabled; empty otherwise. Within an in-scope segment a control with no recorded assessment coerces to `NOT_ASSESSED`; a segment the control is not in scope for contributes no entry. */
1106
+ /** The auditor's assessments of this control, with one entry for each segment in `inScopeSegmentIds`, which can be any segment on the audit, `PROGRAM` or `SYSTEM`. Populated only for IRL audits when assessment access is allowed; empty otherwise. A segment with no recorded assessment returns `NOT_ASSESSED`. */
1082
1107
  export type AuditorControlAssessmentsList = Array<AuditControlAssessment>;
1083
1108
  export declare const AuditorControlAssessmentsList: S.Schema<AuditorControlAssessmentsList>;
1084
1109
  export interface AuditorControl {
@@ -1106,11 +1131,11 @@ export interface AuditorControl {
1106
1131
  modificationDate: string | null;
1107
1132
  /** The report standard framework fulfilled by the control. Incomplete once a control is in scope for more than one framework. */
1108
1133
  framework: string;
1109
- /** Sections of a framework that this control satisfies */
1134
+ /** Current framework sections this control satisfies within the audit segments in which it is in scope. */
1110
1135
  sections: AuditorControlSectionsList;
1111
- /** Audit segments this control is in scope for. Empty when the control is attached only by a direct link and has no catalog mapping on a multi-program audit. */
1136
+ /** Audit segments in which this control is in scope. This can differ from current framework mappings, and the array can be empty. */
1112
1137
  inScopeSegmentIds: AuditorControlInScopeSegmentIdsList;
1113
- /** The auditor's assessments of this control, one per audit program segment the control is in scope for (a multi-framework audit can have more than one). Populated only for IRL audits when the assessment feature is enabled; empty otherwise. Within an in-scope segment a control with no recorded assessment coerces to `NOT_ASSESSED`; a segment the control is not in scope for contributes no entry. */
1138
+ /** The auditor's assessments of this control, with one entry for each segment in `inScopeSegmentIds`, which can be any segment on the audit, `PROGRAM` or `SYSTEM`. Populated only for IRL audits when assessment access is allowed; empty otherwise. A segment with no recorded assessment returns `NOT_ASSESSED`. */
1114
1139
  assessments: AuditorControlAssessmentsList;
1115
1140
  }
1116
1141
  export declare const AuditorControl: S.Schema<AuditorControl>;
@@ -1352,7 +1377,7 @@ export declare const PaginatedResponseAuditRisk: S.Schema<PaginatedResponseAudit
1352
1377
  export interface ListAuditsRequest {
1353
1378
  pageSize?: number;
1354
1379
  pageCursor?: string;
1355
- /** Includes all audits that have changed since changedSinceDate. */
1380
+ /** Includes all audits that have changed since changedSinceDate, including soft-deleted audits whose deletionDate is on or after that timestamp. */
1356
1381
  changedSinceDate?: string;
1357
1382
  /** Includes only audits with no audit report uploaded */
1358
1383
  isActiveAudit?: boolean;
@@ -1518,11 +1543,11 @@ export type InformationRequestActivityLogNewStatus = "READY_FOR_AUDIT" | "NEEDS_
1518
1543
  export declare const InformationRequestActivityLogNewStatus: any;
1519
1544
  export type EvidenceFillOutcome = "SUCCESS" | "PARTIAL" | "FAILED";
1520
1545
  export declare const EvidenceFillOutcome: any;
1521
- /** Activity log entry tracking changes and actions on an information request. The activity log provides a complete audit trail of all operations performed on an information request, including status changes, evidence uploads, edits, and evidence sharing. This enables tracking compliance activities and understanding the request's history. */
1546
+ /** Activity log entry tracking changes and actions on an information request. The activity log provides an audit trail of operations performed on an information request, including status changes, evidence uploads, edits, and evidence sharing. This enables tracking compliance activities and understanding the request's history. Which entries are visible depends on the endpoint returning them; see the endpoint's own description. */
1522
1547
  export interface InformationRequestActivityLog {
1523
1548
  /** The unique identifier for the activity log entry within Vanta's system. Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7"). */
1524
1549
  id: string;
1525
- /** Type of activity that occurred on the information request. Determines which additional fields are populated. */
1550
+ /** Type of activity that occurred on the information request. Determines which additional fields are populated. `AUDIT_INFORMATION_REQUEST_EVIDENCE_FILL` is never returned — automated evidence fill activity is withheld — so no entry carries that value even though the enum still lists it. Do not write a case for it. */
1526
1551
  activityType: InformationRequestActivityType;
1527
1552
  /** Timestamp when the activity occurred. Format: ISO 8601 UTC timestamp. */
1528
1553
  timestamp: string;
@@ -1534,7 +1559,7 @@ export interface InformationRequestActivityLog {
1534
1559
  newStatus: InformationRequestActivityLogNewStatus | null;
1535
1560
  /** Optional explanation for the status change. Only populated for status change activities when a reason is provided (e.g., when flagging evidence). Null for all other cases. */
1536
1561
  reason: string | null;
1537
- /** Result of an automated evidence fill. Only populated for evidence fill activities. Null for all other activity types. */
1562
+ /** Result of an automated evidence fill. Always null: only evidence fill activities could populate it, and those are never returned, so nothing can set it. Do not branch on it. */
1538
1563
  fillOutcome: EvidenceFillOutcome | null;
1539
1564
  /** Identifier of the information request this one was copied from when its audit was duplicated. Only populated for audit-duplication trail activities. Null for all other activity types. Format: ObjectId as a string. */
1540
1565
  sourceInformationRequestId: string | null;
@@ -1579,14 +1604,18 @@ export interface PaginatedResponseInformationRequestEvidence {
1579
1604
  results: PaginatedResponseInformationRequestEvidenceResults;
1580
1605
  }
1581
1606
  export declare const PaginatedResponseInformationRequestEvidence: S.Schema<PaginatedResponseInformationRequestEvidence>;
1607
+ export type ListInformationRequestsRequestSegmentIdsMatchesAnyList = Array<string>;
1608
+ export declare const ListInformationRequestsRequestSegmentIdsMatchesAnyList: S.Schema<ListInformationRequestsRequestSegmentIdsMatchesAnyList>;
1582
1609
  export interface ListInformationRequestsRequest {
1583
1610
  auditId: string;
1584
1611
  /** Maximum number of information requests to return per page. */
1585
1612
  pageSize?: number;
1586
1613
  /** Pagination cursor from a previous response. Provide to fetch the next page of results. */
1587
1614
  pageCursor?: string;
1588
- /** Includes all information requests that have changed since changedSinceDate. Considers creationDate, modificationDate, and deletionDate timestamps when determining changes. */
1615
+ /** 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. */
1589
1616
  changedSinceDate?: string;
1617
+ /** 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. */
1618
+ segmentIdsMatchesAny?: ListInformationRequestsRequestSegmentIdsMatchesAnyList;
1590
1619
  }
1591
1620
  export declare const ListInformationRequestsRequest: S.Schema<ListInformationRequestsRequest>;
1592
1621
  export type PaginatedResponseInformationRequestResultsDataList = Array<InformationRequest>;
@@ -2031,16 +2060,19 @@ export interface UpdateCommentForInformationRequestRequest {
2031
2060
  email: string;
2032
2061
  }
2033
2062
  export declare const UpdateCommentForInformationRequestRequest: S.Schema<UpdateCommentForInformationRequestRequest>;
2034
- /** The framework codes this request addresses. An empty array if no framework codes are associated. */
2063
+ /** 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. */
2035
2064
  export type UpdateInformationRequestRequestFrameworkCodesList = Array<string>;
2036
2065
  export declare const UpdateInformationRequestRequestFrameworkCodesList: S.Schema<UpdateInformationRequestRequestFrameworkCodesList>;
2037
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Replaces the existing set: pass the complete desired list, an empty array to clear all direct control links, or omit to leave them unchanged. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. */
2066
+ /** This legacy field is accepted for backwards compatibility but ignored. Use `linkedControlIds` to replace the complete set of linked controls. */
2038
2067
  export type UpdateInformationRequestRequestAdditionalControlIdsList = Array<string>;
2039
2068
  export declare const UpdateInformationRequestRequestAdditionalControlIdsList: S.Schema<UpdateInformationRequestRequestAdditionalControlIdsList>;
2069
+ /** 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. */
2070
+ export type UpdateInformationRequestRequestLinkedControlIdsList = Array<string>;
2071
+ export declare const UpdateInformationRequestRequestLinkedControlIdsList: S.Schema<UpdateInformationRequestRequestLinkedControlIdsList>;
2040
2072
  export interface UpdateInformationRequestRequest {
2041
2073
  auditId: string;
2042
2074
  requestId: string;
2043
- /** The framework codes this request addresses. An empty array if no framework codes are associated. */
2075
+ /** 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. */
2044
2076
  frameworkCodes?: UpdateInformationRequestRequestFrameworkCodesList;
2045
2077
  /** Detailed description of what evidence is needed. */
2046
2078
  description?: string | null;
@@ -2054,14 +2086,16 @@ export interface UpdateInformationRequestRequest {
2054
2086
  title?: string;
2055
2087
  /** How frequently this request recurs. */
2056
2088
  cadence?: InformationRequestCadence | (string & {});
2057
- /** Control IDs to link directly to this request, beyond those automatically mapped from framework codes. Replaces the existing set: pass the complete desired list, an empty array to clear all direct control links, or omit to leave them unchanged. Each must be the `id` of an existing control in the customer's organization (the identifier returned by the controls endpoints). The request is rejected if any ID does not match a control. */
2089
+ /** This legacy field is accepted for backwards compatibility but ignored. Use `linkedControlIds` to replace the complete set of linked controls. */
2058
2090
  additionalControlIds?: UpdateInformationRequestRequestAdditionalControlIdsList;
2091
+ /** 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. */
2092
+ linkedControlIds?: UpdateInformationRequestRequestLinkedControlIdsList;
2059
2093
  }
2060
2094
  export declare const UpdateInformationRequestRequest: S.Schema<UpdateInformationRequestRequest>;
2061
2095
  export interface UpsertAssessmentForControlRequest {
2062
2096
  auditId: string;
2063
2097
  controlId: string;
2064
- /** The program segment to assess. Required when the audit has more than one program segment. Optional on a single-program audit (the only program is used). Must be a program segment on the audit; system segments are rejected. */
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. */
2065
2099
  segmentId?: string;
2066
2100
  /** The assessment state to record. Must be one of the states valid for the segment's framework; the request is rejected otherwise. */
2067
2101
  assessmentState: AuditControlAssessmentState | (string & {});
@@ -2071,11 +2105,11 @@ export interface UpsertAssessmentForControlRequest {
2071
2105
  auditorEmail: string;
2072
2106
  }
2073
2107
  export declare const UpsertAssessmentForControlRequest: S.Schema<UpsertAssessmentForControlRequest>;
2074
- /** A control's auditor assessment, as persisted. Returned by the assessment write endpoint so the caller sees exactly what was recorded. */
2108
+ /** A control's auditor assessment returned by the assessment write endpoint. */
2075
2109
  export interface AuditorControlAssessment {
2076
2110
  /** The control this assessment belongs to. */
2077
2111
  controlId: string;
2078
- /** The program segment this assessment was written to. */
2112
+ /** The audit segment this assessment was written to. */
2079
2113
  segmentId: string;
2080
2114
  /** The recorded assessment state. */
2081
2115
  assessmentState: AuditControlAssessmentState;
@@ -2100,7 +2134,7 @@ export type CreateCommentForInformationRequestError = VantaOpError;
2100
2134
  export declare const createCommentForInformationRequest: API.OperationMethod<CreateCommentForInformationRequestRequest, InformationRequestComment, CreateCommentForInformationRequestError, VantaOpContext>;
2101
2135
  export type CreateCustomControlError = VantaOpError;
2102
2136
  /** Create a custom control for an audit Create a custom control for an audit. This endpoint supports classic audits only. Audits that use information request lists (IRL) are not supported and return a 422 error. Rate limit: 10 requests / minute. */
2103
- export declare const createCustomControl: API.OperationMethod<CreateCustomControlRequest, Control, CreateCustomControlError, VantaOpContext>;
2137
+ export declare const createCustomControl: API.OperationMethod<CreateCustomControlRequest, AuditorApiControl, CreateCustomControlError, VantaOpContext>;
2104
2138
  export type CreateCustomEvidenceRequestError = VantaOpError;
2105
2139
  /** Create a custom evidence request for an audit Create a custom evidence request for an audit. Rate limit: 10 requests / minute. */
2106
2140
  export declare const createCustomEvidenceRequest: API.OperationMethod<CreateCustomEvidenceRequestRequest, CustomEvidenceRequest, CreateCustomEvidenceRequestError, VantaOpContext>;
@@ -2114,7 +2148,7 @@ export type DeleteCommentForInformationRequestError = VantaOpError;
2114
2148
  /** Delete a comment for an information request Deletes an existing comment for an information request. Only the original author of the comment can delete it. The author is identified by their email address, which must match the email of the user who created the comment. Rate limit: 25 requests / minute. */
2115
2149
  export declare const deleteCommentForInformationRequest: API.OperationMethod<DeleteCommentForInformationRequestRequest, DeleteCommentForInformationRequestResponse, DeleteCommentForInformationRequestError, VantaOpContext>;
2116
2150
  export type DeleteInformationRequestError = VantaOpError;
2117
- /** Delete an information request for an audit Deletes an information request for an audit. This performs a soft delete, marking the request as deleted (setting `deletionDate`) while preserving it in the system for audit history and compliance tracking. Soft deletion allows: - Maintaining complete audit trail of all requests ever created - Retrieving deleted requests via `changedSinceDate` for synchronization After deletion: - The request will not appear in normal list responses (without `changedSinceDate`) - The request's `deletionDate` field will be populated Rate limit: 50 requests / minute. */
2151
+ /** Delete an information request for an audit Deletes an information request for an audit. This performs a soft delete, marking the request as deleted (setting `deletionDate`) while preserving it in the system for audit history and compliance tracking. Soft deletion allows: - Maintaining complete audit trail of all requests ever created - Retrieving deleted requests via `changedSinceDate` for synchronization After deletion: - The request remains in list responses with `deletionDate` set, even when `changedSinceDate` is omitted Rate limit: 50 requests / minute. */
2118
2152
  export declare const deleteInformationRequest: API.OperationMethod<DeleteInformationRequestRequest, DeleteInformationRequestResponse, DeleteInformationRequestError, VantaOpContext>;
2119
2153
  export type DuplicateError = VantaOpError;
2120
2154
  /** Duplicate an IRL audit Duplicates an existing IRL audit into a new audit engagement with the supplied displayName, audit dates, early access date, and auditor roster. Company, audit type, and framework are copied from the source audit and cannot be changed. Each email in `allowAuditorEmails` must match an active user in the authenticated audit firm's domain. Provision auditors via `POST /auditors` before referencing them here, or copy emails from `GET /audits/{sourceAuditId}` → `allowAuditorEmails` when duplicating with the same roster. Information requests are copied from the source audit. After duplication: - Requests with Vanta evidence will be pre-filled and marked as internal review. Review them before sharing with your customer. - Requests where evidence was not available or was uploaded externally will need evidence added manually. - Evidence capture dates and due dates can be modified after duplication. Audits with generated information requests can be duplicated only after their information requests have been created successfully. Rate limit: 10 requests / minute. */
@@ -2123,7 +2157,7 @@ export type FlagInformationRequestEvidenceError = VantaOpError;
2123
2157
  /** Flag evidence for an information request Flags evidence for an information request when it doesn't meet audit requirements, marking issues that need to be addressed before approval. This action changes the request's approvalStatus to a flagged state and creates an activity log entry. Flagging workflow: 1. Auditor reviews submitted evidence 2. If issues are found, auditor calls this endpoint with detailed reason 3. Request status changes to flagged state 4. Customer is notified and can see the reason in activity logs 5. Customer addresses issues and updates evidence 6. When ready, customer changes status back to awaiting review 7. Auditor reviews again and either flags again or accepts The `reason` field should clearly explain what's missing or incorrect so the customer knows exactly what to fix. This reason is visible to the customer and appears in the activity log. Rate limit: 50 requests / minute. */
2124
2158
  export declare const flagInformationRequestEvidence: API.OperationMethod<FlagInformationRequestEvidenceRequest, InformationRequest, FlagInformationRequestEvidenceError, VantaOpContext>;
2125
2159
  export type GetAuditError = VantaOpError;
2126
- /** Get audit by ID Returns a single audit by ID, scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. The response includes `segments`, the audit's scope. A live single-framework audit has one entry; a live multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. The top-level `framework` field is deprecated; use `segments` for framework identity. Rate limit: 250 requests / minute. */
2160
+ /** Get audit by ID Returns a single audit by ID, scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. The response includes `segments`, the audit's scope. It returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. The top-level `framework` field is deprecated; use `segments` for in-scope frameworks. This endpoint returns 404 for a soft-deleted audit. Rate limit: 250 requests / minute. */
2127
2161
  export declare const getAudit: API.OperationMethod<GetAuditRequest, Audit, GetAuditError, VantaOpContext>;
2128
2162
  export type GetAuditEvidenceError = VantaOpError;
2129
2163
  /** Get an audit evidence item by ID Retrieves a single classic audit evidence item by its ID, scoped to its audit. The response matches the entry `GET /audits/{auditId}/evidence` returns for the same item, so an evidence ID surfaced by a webhook can be resolved directly instead of paging the audit's full evidence list. Soft-deleted evidence (where `deletionDate !== null`) is included in the response. Clients should check `deletionDate` to determine whether the item has been deleted. This matches `GET /audits/{auditId}/evidence`, which supports `changedSinceDate` and returns soft-deleted evidence for delta sync. As on the list endpoint, `description` is null for deleted items. Rate limit: 250 requests / minute. */
@@ -2132,16 +2166,16 @@ export type GetAuditEvidenceCommentError = VantaOpError;
2132
2166
  /** Get an audit evidence comment by ID Retrieves a single comment on a classic audit evidence item by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments remain fetchable when the parent evidence item has been soft-deleted, so delayed webhook consumers can still resolve a comment ID after evidence deletion. Rate limit: 50 requests / minute. */
2133
2167
  export declare const getAuditEvidenceComment: API.OperationMethod<GetAuditEvidenceCommentRequest, Comment, GetAuditEvidenceCommentError, VantaOpContext>;
2134
2168
  export type GetCommentForInformationRequestError = VantaOpError;
2135
- /** Get an information request comment by ID Retrieves a single comment on an information request by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/information-requests/{requestId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments remain fetchable when the parent information request has been soft-deleted, so delayed webhook consumers can still resolve a comment ID after the request is deleted. Rate limit: 50 requests / minute. */
2169
+ /** Get an information request comment by ID Retrieves a single comment on an information request by its ID. Soft-deleted comments (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the comment has been deleted. This matches `GET /audits/{auditId}/information-requests/{requestId}/comments`, which supports `changedSinceDate` and returns soft-deleted comments for delta sync. Comments are only resolvable while their information request exists. Once the request itself is deleted, this endpoint returns a 4xx HTTP error instead of the comment. Check the request's `deletionDate` using `GET /audits/{auditId}/information-requests` before treating its comments as deleted too. Rate limit: 50 requests / minute. */
2136
2170
  export declare const getCommentForInformationRequest: API.OperationMethod<GetCommentForInformationRequestRequest, InformationRequestComment, GetCommentForInformationRequestError, VantaOpContext>;
2137
2171
  export type GetFrameworkCodesError = VantaOpError;
2138
- /** Get framework codes for an audit Retrieves all valid framework codes for the specified audit. This endpoint helps users discover which framework codes are available for creating and updating information requests for this audit. Use this endpoint to: - Discover available framework codes before creating information requests - Validate framework codes against the audit's framework - Get context about what framework codes are available for the audit type Rate limit: 50 requests / minute. */
2172
+ /** Get framework codes for an audit Retrieves all valid framework codes for the specified audit. This endpoint helps users discover which framework codes are available for creating and updating information requests for this audit. Use this endpoint to: - Discover available framework codes (`frameworkCodes`, the original flat list) - Validate framework codes against the audit's frameworks - See which codes belong to which in-scope framework (`codesByFramework`) Rate limit: 50 requests / minute. */
2139
2173
  export declare const getFrameworkCodes: API.OperationMethod<GetFrameworkCodesRequest, FrameworkCodes, GetFrameworkCodesError, VantaOpContext>;
2140
2174
  export type GetInformationRequestError = VantaOpError;
2141
- /** Get an information request by ID Retrieves a single information request by its ID for an audit, allowing external audit management systems to fetch the latest state of a specific request without paginating through the full list. Soft-deleted records (where `deletionDate !== null`) are included in the response. Clients should check `deletionDate` to determine whether the request has been deleted. Rate limit: 50 requests / minute. */
2175
+ /** Get an information request by ID Retrieves a single information request by its ID for an audit, allowing external audit management systems to fetch the latest state of a specific request without paginating through the full list. This endpoint returns a 4xx HTTP error for a soft-deleted information request. To confirm deletion, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted requests with `deletionDate` set. Rate limit: 50 requests / minute. */
2142
2176
  export declare const getInformationRequest: API.OperationMethod<GetInformationRequestRequest, InformationRequest, GetInformationRequestError, VantaOpContext>;
2143
2177
  export type GetInformationRequestEvidenceError = VantaOpError;
2144
- /** Get information request evidence by ID Retrieves a single evidence item attached to an information request by its ID. This endpoint always includes soft-deleted evidence (where `deletionDate !== null`), so an evidence ID surfaced by a `changedSinceDate` delta sync stays fetchable after the evidence is deleted. Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. Evidence is only resolvable while its information request exists. Once the request itself is deleted, this endpoint reports the request as not found — matching `GET /audits/{auditId}/information-requests/{requestId}/evidence`. Clients reconciling a deleted request should treat its evidence as gone with it. Evidence that the customer has not shared with the auditor is reported as not found, rather than distinguishing it from an ID that does not exist. Rate limit: 250 requests / minute. */
2178
+ /** Get information request evidence by ID Retrieves a single evidence item attached to an information request by its ID. This endpoint always includes soft-deleted evidence (where `deletionDate !== null`), so an evidence ID surfaced by a `changedSinceDate` delta sync stays fetchable after the evidence is deleted. Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. Evidence is only resolvable while its information request exists. Once the request itself is deleted, this endpoint returns a 4xx HTTP error instead of the evidence. Check the request's `deletionDate` using `GET /audits/{auditId}/information-requests` before treating its evidence as deleted too. Evidence that the customer has not shared with the auditor is reported as not found, rather than distinguishing it from an ID that does not exist. Rate limit: 250 requests / minute. */
2145
2179
  export declare const getInformationRequestEvidence: API.OperationMethod<GetInformationRequestEvidenceRequest, InformationRequestEvidence, GetInformationRequestEvidenceError, VantaOpContext>;
2146
2180
  export type GetInformationRequestTestSnapshotEvidenceDetailError = VantaOpError;
2147
2181
  /** Get test snapshot detail for an evidence row Retrieves the rich detail for a single VANTA_TEST_SNAPSHOT evidence row attached to an information request. The response includes test-level metadata (description, integrations, SLA), the raw test data captured at snapshot time, and the resources that were excluded from the test (out-of-scope resources). For structured snapshots, the `rawTestData` array contains one row per resource the test ran against; each row carries `resourceId`, `resourceType`, and the raw JSON for that resource. For unstructured snapshots, the `rawTestData` array contains a single row with `resourceId` and `resourceType` set to `null` and `rawJson` containing the entire test-run JSON blob. The `outOfScopeResources` field lists resources excluded at the test level (customer-disabled) and the framework level (segment configuration). Empty exclusion groups are filtered out. The `apiRequests` array contains the HTTP requests captured during API introspection tests. Empty when the test does not perform API introspection. Rate limit: 10 requests / minute. */
@@ -2174,7 +2208,7 @@ export type ListAuditRisksError = VantaOpError;
2174
2208
  /** 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. */
2175
2209
  export declare const listAuditRisks: API.OperationMethod<ListAuditRisksRequest, PaginatedResponseAuditRisk, ListAuditRisksError, VantaOpContext>;
2176
2210
  export type ListAuditsError = VantaOpError;
2177
- /** List audits Returns a paginated list of audits scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. Each audit includes `segments`, the audit's scope. A live single-framework audit has one entry; a live multi-framework audit has one entry per in-scope framework (and business unit or system, when applicable). Soft-deleted audits return an empty list. The top-level `framework` field is deprecated; use `segments` for framework identity. Rate limit: 250 requests / minute. */
2211
+ /** List audits Returns a paginated list of audits scoped to the audit firm. To identify IRL (Information Request List) audits, check for the presence of the `auditorRequestListMetadata` field. This field is only present for IRL-based audits and will be `undefined` for standard audits. Each audit includes `segments`, the audit's scope. A live audit returns every in-scope program and system segment; more than one segment does not by itself imply more than one framework. The top-level `framework` field is deprecated; use `segments` for in-scope frameworks. This list may include soft-deleted audits so clients can reconcile deletions. Check `deletionDate`; a deleted audit has an empty `segments` list. Rate limit: 250 requests / minute. */
2178
2212
  export declare const listAudits: API.OperationMethod<ListAuditsRequest, PaginatedResponseAudit, ListAuditsError, VantaOpContext>;
2179
2213
  export type ListAuditSnapshotsError = VantaOpError;
2180
2214
  /** List snapshotted issues for an audit Retrieves a list of snapshots that have been shared with an audit. The snapshots returned contain metadata about point-in-time captures of issues for an audit. This data can be used to filter down the list of issues to specific snapshots when querying the GET /audits/{auditId}/issues/items endpoint. Supports filtering by: - `search`: full text search across snapshot title and description Results are sorted by snapshot creation date in descending order (newest first). 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. */
@@ -2186,19 +2220,19 @@ export type ListCommentsForControlError = VantaOpError;
2186
2220
  /** List comments for a control within an audit Retrieves a paginated list of comments on a control within an IRL audit, enabling auditors to view collaboration history on the control. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Returns 404 when the control is not part of the audit. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2187
2221
  export declare const listCommentsForControl: API.OperationMethod<ListCommentsForControlRequest, PaginatedResponseAuditControlComment, ListCommentsForControlError, VantaOpContext>;
2188
2222
  export type ListCommentsForInformationRequestError = VantaOpError;
2189
- /** List comments for an information request Retrieves a paginated list of comments for an information request, enabling auditors to view communication history and collaborate with customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2223
+ /** List comments for an information request Retrieves a paginated list of comments for an information request, enabling auditors to view communication history and collaborate with customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. If the information request itself has been deleted, this endpoint returns a 4xx HTTP error instead of its comments. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only comments created, modified, or deleted since that timestamp are returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2190
2224
  export declare const listCommentsForInformationRequest: API.OperationMethod<ListCommentsForInformationRequestRequest, PaginatedResponseInformationRequestComment, ListCommentsForInformationRequestError, VantaOpContext>;
2191
2225
  export type ListInformationRequestActivityError = VantaOpError;
2192
- /** List information request activity Retrieves a paginated list of activity logs for an information request, providing a complete audit trail of all changes and actions. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only activity created since that timestamp is returned 4. Process updates to track all changes to the information request 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2226
+ /** List information request activity Retrieves a paginated list of activity logs for an information request, providing an audit trail of the changes and actions taken on it. Activity recording Vanta's automated preparation of a request is never returned by this endpoint, so `fillOutcome` is always null here. Some internal status transitions are also withheld, and those are removed after a page is selected, so a page can contain fewer entries than `pageSize` — or none at all — while more pages remain. Follow `results.pageInfo.hasNextPage` rather than treating a short or empty page as the end of the list. If the information request has been deleted, this endpoint returns a 4xx HTTP error instead of its activity. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only activity created since that timestamp is returned 4. Process updates to track all changes to the information request 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2193
2227
  export declare const listInformationRequestActivity: API.OperationMethod<ListInformationRequestActivityRequest, PaginatedResponseInformationRequestActivityLog, ListInformationRequestActivityError, VantaOpContext>;
2194
2228
  export type ListInformationRequestEvidenceError = VantaOpError;
2195
- /** List evidence for an information request Retrieves a paginated list of all evidence attached to an information request, enabling auditors to review evidence submitted by customers. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only evidence created, modified, shared, or deleted since that timestamp is returned 4. Process updates, including soft-deletes (deletionDate !== null) 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2229
+ /** 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. */
2196
2230
  export declare const listInformationRequestEvidence: API.OperationMethod<ListInformationRequestEvidenceRequest, PaginatedResponseInformationRequestEvidence, ListInformationRequestEvidenceError, VantaOpContext>;
2197
2231
  export type ListInformationRequestsError = VantaOpError;
2198
- /** List information requests for an audit Retrieves a paginated list of all information requests for an audit, enabling external audit management systems to display and track evidence requests. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only requests created, modified, or deleted since that timestamp are returned 4. Process updates and soft-deletes by checking the `deletionDate` field 5. Update your last sync timestamp to the current time Rate limit: 50 requests / minute. */
2232
+ /** List information requests for an audit Retrieves a paginated list of all information requests for an audit, enabling external audit management systems to display and track evidence requests. This endpoint always includes soft-deleted records (where `deletionDate !== null`). Clients should check the `deletionDate` field to identify and handle deleted records appropriately in their systems. This is the only endpoint that returns a deleted information request. No webhook fires when a request is deleted. Endpoints under `/audits/{auditId}/information-requests/{requestId}` return a 4xx HTTP error for a deleted request. To confirm deletion, check the request's `deletionDate` in this list. Deleting a request does not set `deletionDate` on its comments or evidence or send delete events for them. Once this list confirms the request was deleted, treat its comments and evidence as deleted too. This endpoint supports delta synchronization via the `changedSinceDate` parameter, allowing efficient polling for changes without retrieving the entire dataset. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Delta sync usage: 1. Store the timestamp of your last sync 2. Pass that timestamp as `changedSinceDate` 3. Only requests created, modified, or deleted since that timestamp are returned 4. Process updates and soft-deletes by checking the `deletionDate` field 5. Update your last sync timestamp to the current time `segmentIds` on each returned request is resolved against the audit's current scope. A scope-only change (a segment leaving or joining the audit without the request row being written) is not a delta-sync event. Re-fetch without `changedSinceDate`, or GET by id, to see the current projection. Rate limit: 50 requests / minute. */
2199
2233
  export declare const listInformationRequests: API.OperationMethod<ListInformationRequestsRequest, PaginatedResponseInformationRequest, ListInformationRequestsError, VantaOpContext>;
2200
2234
  export type ListInformationRequestsForControlError = VantaOpError;
2201
- /** List information requests linked to a control within an audit Returns a paginated list of active information requests linked to a specific control within an IRL audit. An information request is linked to a control either via its framework codes (`criteriaIds`) or via a direct association (`additionalControlIds`). Soft-deleted information requests are not included in the response. To synchronize deletions, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted records. Returns 404 when the control is not part of the audit. Returns an empty page when the control is part of the audit but has no active IRLs linked to it. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Rate limit: 50 requests / minute. */
2235
+ /** List information requests linked to a control within an audit Returns a paginated list of active information requests linked to a specific control within an IRL audit. Only links saved on the audit's current control rows are included. Soft-deleted information requests are not included in the response. To synchronize deletions, use `GET /audits/{auditId}/information-requests`, which supports `changedSinceDate` and includes soft-deleted records. Returns 404 when the control is not part of the audit. Returns an empty page when the control is part of the audit but has no active IRLs linked to it. Pagination usage: 1. Make initial request with desired `pageSize` 2. Check `results.pageInfo.hasNextPage` to see if more data exists 3. If true, use `results.pageInfo.endCursor` as `pageCursor` in next request 4. Repeat until `hasNextPage` is false Rate limit: 50 requests / minute. */
2202
2236
  export declare const listInformationRequestsForControl: API.OperationMethod<ListInformationRequestsForControlRequest, PaginatedResponseInformationRequest, ListInformationRequestsForControlError, VantaOpContext>;
2203
2237
  export type ListIntegrationsError = VantaOpError;
2204
2238
  /** 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. */
@@ -2234,6 +2268,6 @@ export type UpdateInformationRequestError = VantaOpError;
2234
2268
  /** Update an information request for an audit Updates an existing information request for an audit, allowing modification of request details as audit requirements evolve. Supports partial updates where only specified fields are changed; omitted fields remain unchanged. Common use cases: - Updating due dates as audit timelines shift - Refining descriptions to clarify requirements - Adjusting request type Note: The `modificationDate` is automatically updated to the current timestamp when any field is changed. Rate limit: 50 requests / minute. */
2235
2269
  export declare const updateInformationRequest: API.OperationMethod<UpdateInformationRequestRequest, InformationRequest, UpdateInformationRequestError, VantaOpContext>;
2236
2270
  export type UpsertAssessmentForControlError = VantaOpError;
2237
- /** Upsert a control's assessment within an audit Records (upserts) an auditor's assessment state and justification for a control within an IRL audit — the API equivalent of assessing a control in the web app. Overwrites the single assessment for this control in the audit's program segment. The `assessmentState` must be valid for the segment's framework (the request is rejected otherwise). The acting auditor is identified by `auditorEmail`, which must belong to the audit firm making the request. Returns 404 when the control is not part of the audit or the auditor email does not resolve to a firm user. Returns 422 when the audit does not have exactly one program segment (multi-framework audits are not supported on this endpoint). Applies to both Full and Controlled Audit View audits. Rate limit: 10 requests / minute. */
2271
+ /** Upsert a control's assessment within an audit Records (upserts) an auditor's assessment state and justification for a control within an IRL audit — the API equivalent of assessing a control in the web app. Overwrites the assessment for this control in the chosen audit segment. `segmentId` may be any segment on the audit, `PROGRAM` or `SYSTEM` (see `segments` on the audit). It may be omitted only when the audit has exactly one segment. The `assessmentState` must be valid for that segment's framework (the request is rejected otherwise). The acting auditor is identified by `auditorEmail`, which must belong to the audit firm making the request. Returns 404 when the control is not part of the audit or the auditor email does not resolve to a firm user. Returns 422 when `segmentId` is omitted on an audit with more than one segment, when `segmentId` is not a segment on this audit, or when the control is not assigned to that segment for this audit. Applies to both Full and Controlled Audit View audits. Rate limit: 10 requests / minute. */
2238
2272
  export declare const upsertAssessmentForControl: API.OperationMethod<UpsertAssessmentForControlRequest, AuditorControlAssessment, UpsertAssessmentForControlError, VantaOpContext>;
2239
2273
  //# sourceMappingURL=auditor_api.d.ts.map