@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,6 +1,6 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  import * as S from "@distilled.cloud/core/schema";
2
3
  import * as Redacted from "effect/Redacted";
3
- import * as API from "@distilled.cloud/core/api";
4
4
  import { type VantaOpError, type VantaOpContext } from "../protocol.ts";
5
5
  export type { VantaOpError, VantaOpContext };
6
6
  export interface GetApiEndpointVulnerabilityConnectorsRequest {
@@ -32,13 +32,13 @@ export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccur
32
32
  /** Markdown description of this API endpoint vulnerability occurrence. */
33
33
  description: string;
34
34
  /** The API endpoint URL associated with this vulnerability occurrence. */
35
- fromUrl?: string;
35
+ fromUrl?: string | null;
36
36
  /** The API params associated with this vulnerability. */
37
- queryParams?: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList;
37
+ queryParams?: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList | null;
38
38
  /** The API headers associated with this vulnerability. */
39
- headers?: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList;
39
+ headers?: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList | null;
40
40
  /** The body of the request passed to the API, with sensitive information redacted. */
41
- body?: string;
41
+ body?: string | null;
42
42
  }
43
43
  export declare const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem: S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
44
44
  /** A list of occurrences of vulnerable API endpoints. */
@@ -66,11 +66,11 @@ export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItem {
66
66
  /** The HTTP method (eg: GET, POST) associated with this vulnerability. */
67
67
  httpMethod: string;
68
68
  /** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
69
- cveId?: string;
69
+ cveId?: string | null;
70
70
  /** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
71
- cvss3Vector?: string;
71
+ cvss3Vector?: string | null;
72
72
  /** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
73
- cvss3Score?: number;
73
+ cvss3Score?: number | null;
74
74
  }
75
75
  export declare const GetApiEndpointVulnerabilityConnectorsResponseResourcesItem: S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItem>;
76
76
  export type GetApiEndpointVulnerabilityConnectorsResponseResourcesList = Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItem>;
@@ -101,7 +101,7 @@ export interface GetBackgroundCheckConnectorResponseResourcesItem {
101
101
  /** The current status of the background check. */
102
102
  status: GetBackgroundCheckConnectorResponseResourcesItemStatus;
103
103
  /** If complete, the date of completion of the background check. */
104
- completionDate?: string;
104
+ completionDate?: string | null;
105
105
  }
106
106
  export declare const GetBackgroundCheckConnectorResponseResourcesItem: S.Schema<GetBackgroundCheckConnectorResponseResourcesItem>;
107
107
  export type GetBackgroundCheckConnectorResponseResourcesList = Array<GetBackgroundCheckConnectorResponseResourcesItem>;
@@ -141,7 +141,7 @@ export interface GetMacosUserComputerResponseResourcesItemApplicationsItem {
141
141
  /** The bundle identifier of the application. */
142
142
  bundleId: string;
143
143
  /** The last time the application was opened. */
144
- lastOpenedTimestamp?: string;
144
+ lastOpenedTimestamp?: string | null;
145
145
  }
146
146
  export declare const GetMacosUserComputerResponseResourcesItemApplicationsItem: S.Schema<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
147
147
  /** All the installed Mac Apps on the system. */
@@ -170,7 +170,7 @@ export interface GetMacosUserComputerResponseResourcesItemDrivesItem {
170
170
  /** Does the drive have filevault enabled. */
171
171
  filevaultEnabled: boolean;
172
172
  /** Metadata about the boot volume helps Vanta skip checking volumes that aren't relevant, like USB Drives. */
173
- isBootVolume?: boolean;
173
+ isBootVolume?: boolean | null;
174
174
  }
175
175
  export declare const GetMacosUserComputerResponseResourcesItemDrivesItem: S.Schema<GetMacosUserComputerResponseResourcesItemDrivesItem>;
176
176
  /** A list of drives on this device. Used to verify encryption status. */
@@ -195,7 +195,7 @@ export interface GetMacosUserComputerResponseResourcesItemUsersItem {
195
195
  screenlockPolicies: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList;
196
196
  screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
197
197
  /** The last time the user logged in to the device, if available. */
198
- lastLoginTimestamp?: string;
198
+ lastLoginTimestamp?: string | null;
199
199
  }
200
200
  export declare const GetMacosUserComputerResponseResourcesItemUsersItem: S.Schema<GetMacosUserComputerResponseResourcesItemUsersItem>;
201
201
  /** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
@@ -243,12 +243,12 @@ export interface GetMacosUserComputerResponseResourcesItem {
243
243
  /** Does the system have auto-updates enabled. */
244
244
  autoUpdatesEnabled: boolean;
245
245
  /** The email address of the owner of the system, if it's known. */
246
- owner?: string;
247
- passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
246
+ owner?: string | null;
247
+ passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy | null;
248
248
  /** A timestamp that indicates when the host computer was last enrolled within your system. If the computer has been un-enrolled and then re-enrolled, send data for the most recent enrollment. */
249
- lastEnrolledTimestamp?: string;
249
+ lastEnrolledTimestamp?: string | null;
250
250
  /** Is XProtect enabled on the system. */
251
- isXProtectEnabled?: boolean;
251
+ isXProtectEnabled?: boolean | null;
252
252
  }
253
253
  export declare const GetMacosUserComputerResponseResourcesItem: S.Schema<GetMacosUserComputerResponseResourcesItem>;
254
254
  export type GetMacosUserComputerResponseResourcesList = Array<GetMacosUserComputerResponseResourcesItem>;
@@ -284,13 +284,13 @@ export interface GetPackageVulnerabilityConnectorsResponseResourcesItem {
284
284
  /** Instructions for remediating the vulnerability. */
285
285
  remediationInstructions: string;
286
286
  /** Whether there is a code path to the vulnerable code in this package. This field is optional. */
287
- isReachable?: boolean;
287
+ isReachable?: boolean | null;
288
288
  /** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
289
- cveId?: string;
289
+ cveId?: string | null;
290
290
  /** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
291
- cvss3Vector?: string;
291
+ cvss3Vector?: string | null;
292
292
  /** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
293
- cvss3Score?: number;
293
+ cvss3Score?: number | null;
294
294
  }
295
295
  export declare const GetPackageVulnerabilityConnectorsResponseResourcesItem: S.Schema<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
296
296
  export type GetPackageVulnerabilityConnectorsResponseResourcesList = Array<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
@@ -322,11 +322,11 @@ export interface GetSecretResponseResourcesItem {
322
322
  /** The current owner of the secret. Vanta will check that every secret has a valid owner. */
323
323
  owner: string;
324
324
  /** When the secret was last updated. */
325
- updatedTimestamp?: string;
325
+ updatedTimestamp?: string | null;
326
326
  /** When the secret was last accessed. */
327
- lastAccessedTimestamp?: string;
327
+ lastAccessedTimestamp?: string | null;
328
328
  /** When the secret is set to expire, if relevant. */
329
- expiresTimestamp?: string;
329
+ expiresTimestamp?: string | null;
330
330
  }
331
331
  export declare const GetSecretResponseResourcesItem: S.Schema<GetSecretResponseResourcesItem>;
332
332
  export type GetSecretResponseResourcesList = Array<GetSecretResponseResourcesItem>;
@@ -376,9 +376,9 @@ export interface GetSecurityTaskResponseResourcesItem {
376
376
  /** The set of task tags or labels. */
377
377
  labels: GetSecurityTaskResponseResourcesItemLabelsList;
378
378
  /** When the task was closed, if the task was closed. Required if `taskState` is `CLOSED`, otherwise must be absent. */
379
- closedTimestamp?: string;
379
+ closedTimestamp?: string | null;
380
380
  /** When the task was last updated. */
381
- updatedTimestamp?: string;
381
+ updatedTimestamp?: string | null;
382
382
  }
383
383
  export declare const GetSecurityTaskResponseResourcesItem: S.Schema<GetSecurityTaskResponseResourcesItem>;
384
384
  export type GetSecurityTaskResponseResourcesList = Array<GetSecurityTaskResponseResourcesItem>;
@@ -430,11 +430,11 @@ export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesIt
430
430
  /** Instructions for remediating the vulnerability. */
431
431
  remediationInstructions: string;
432
432
  /** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
433
- cveId?: string;
433
+ cveId?: string | null;
434
434
  /** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
435
- cvss3Vector?: string;
435
+ cvss3Vector?: string | null;
436
436
  /** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
437
- cvss3Score?: number;
437
+ cvss3Score?: number | null;
438
438
  }
439
439
  export declare const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem: S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem>;
440
440
  export type GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList = Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem>;
@@ -457,7 +457,7 @@ export declare const GetUserAccountResponseResourcesItemStatus: any;
457
457
  /** The individual MFA setting. */
458
458
  export type GetUserAccountResponseResourcesItemMfaMethodsItem = "UNSUPPORTED" | "DISABLED" | "SMS" | "EMAIL" | "OTP" | "HARDWARE_TOKEN" | "PUSH_PROMPT";
459
459
  export declare const GetUserAccountResponseResourcesItemMfaMethodsItem: any;
460
- /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. */
460
+ /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. Send an empty array if `mfaEnabled` is `null`, since an unknown MFA state says nothing about which methods are active. */
461
461
  export type GetUserAccountResponseResourcesItemMfaMethodsList = Array<GetUserAccountResponseResourcesItemMfaMethodsItem>;
462
462
  export declare const GetUserAccountResponseResourcesItemMfaMethodsList: S.Schema<GetUserAccountResponseResourcesItemMfaMethodsList>;
463
463
  /** How the user logs into the system. This is useful for us to validate security properties, like ensuring MFA is enabled if the user logs in with a password. */
@@ -485,24 +485,24 @@ export interface GetUserAccountResponseResourcesItem {
485
485
  createdTimestamp: string;
486
486
  /** The status of the user. It's acceptable to omit any deactivated users from your application, but if your application has access to deactivated users, it's preferable to send them over with this status. */
487
487
  status: GetUserAccountResponseResourcesItemStatus;
488
- /** This value is ignored if `authMethod` is SSO. */
489
- mfaEnabled: boolean;
490
- /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. */
488
+ /** This value is ignored if `authMethod` is SSO. Send `null` if the MFA state is unknown. */
489
+ mfaEnabled: boolean | null;
490
+ /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. Send an empty array if `mfaEnabled` is `null`, since an unknown MFA state says nothing about which methods are active. */
491
491
  mfaMethods: GetUserAccountResponseResourcesItemMfaMethodsList;
492
492
  /** How the user logs into the system. This is useful for us to validate security properties, like ensuring MFA is enabled if the user logs in with a password. */
493
493
  authMethod: GetUserAccountResponseResourcesItemAuthMethod;
494
494
  /** A human readable description of the user's role. */
495
- roleDescription?: string;
495
+ roleDescription?: string | null;
496
496
  /** The last time the user was updated in the system. */
497
- updatedTimestamp?: string;
497
+ updatedTimestamp?: string | null;
498
498
  /** If the user is deactivated, the timestamp of that deactivation. */
499
- deactivatedTimestamp?: string;
499
+ deactivatedTimestamp?: string | null;
500
500
  /** The time at which the user last logged in. */
501
- lastLoginTimestamp?: string;
501
+ lastLoginTimestamp?: string | null;
502
502
  /** The time at which the user last reset their password. Helps with future Vanta functionality. */
503
- lastPasswordResetTimestamp?: string | Redacted.Redacted<string>;
503
+ lastPasswordResetTimestamp?: string | Redacted.Redacted<string> | null;
504
504
  /** If the user belongs to any groups/teams in the product, those corresponding group IDs. We'll map these to groups in our product in the future. */
505
- groupIds?: GetUserAccountResponseResourcesItemGroupIdsList;
505
+ groupIds?: GetUserAccountResponseResourcesItemGroupIdsList | null;
506
506
  }
507
507
  export declare const GetUserAccountResponseResourcesItem: S.Schema<GetUserAccountResponseResourcesItem>;
508
508
  export type GetUserAccountResponseResourcesList = Array<GetUserAccountResponseResourcesItem>;
@@ -551,7 +551,7 @@ export interface GetUserSecurityTrainingStatusResponseResourcesItem {
551
551
  /** The time at which this training course is due for the user. Vanta will check whether employees complete their training on time. */
552
552
  trainingDueTimestamp: string;
553
553
  /** The time at which this training course was completed by the user. */
554
- trainingCompletedTimestamp?: string;
554
+ trainingCompletedTimestamp?: string | null;
555
555
  }
556
556
  export declare const GetUserSecurityTrainingStatusResponseResourcesItem: S.Schema<GetUserSecurityTrainingStatusResponseResourcesItem>;
557
557
  export type GetUserSecurityTrainingStatusResponseResourcesList = Array<GetUserSecurityTrainingStatusResponseResourcesItem>;
@@ -600,7 +600,7 @@ export interface GetWindowsUserComputerResponseResourcesItemProgramsItem {
600
600
  /** The name of the application. */
601
601
  name: string;
602
602
  /** The last time the application was opened. */
603
- lastOpenedTimestamp?: string;
603
+ lastOpenedTimestamp?: string | null;
604
604
  }
605
605
  export declare const GetWindowsUserComputerResponseResourcesItemProgramsItem: S.Schema<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
606
606
  /** All the installed programs on the Windows system. */
@@ -627,7 +627,7 @@ export interface GetWindowsUserComputerResponseResourcesItemDrivesItem {
627
627
  /** Does the drive have some sort of encryption on it. */
628
628
  encrypted: boolean;
629
629
  /** Metadata about the boot volume helps Vanta skip checking volumes that aren't relevant, like USB Drives. */
630
- isBootVolume?: boolean;
630
+ isBootVolume?: boolean | null;
631
631
  }
632
632
  export declare const GetWindowsUserComputerResponseResourcesItemDrivesItem: S.Schema<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
633
633
  /** A list of drives on this device. Used to verify encryption status. */
@@ -647,7 +647,7 @@ export interface GetWindowsUserComputerResponseResourcesItemUsersItem {
647
647
  screenlockPolicies: GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList;
648
648
  screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
649
649
  /** The last time the user logged in to the device, if available. */
650
- lastLoginTimestamp?: string;
650
+ lastLoginTimestamp?: string | null;
651
651
  }
652
652
  export declare const GetWindowsUserComputerResponseResourcesItemUsersItem: S.Schema<GetWindowsUserComputerResponseResourcesItemUsersItem>;
653
653
  /** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
@@ -747,13 +747,13 @@ export interface GetWindowsUserComputerResponseResourcesItem {
747
747
  /** Does the system have auto-updates enabled. */
748
748
  autoUpdatesEnabled: boolean;
749
749
  /** The email address of the owner of the system, if it's known. */
750
- owner?: string;
751
- passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
750
+ owner?: string | null;
751
+ passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy | null;
752
752
  /** A timestamp that indicates when the host computer was last enrolled within your system. If the computer has been un-enrolled and then re-enrolled, send data for the most recent enrollment. */
753
- lastEnrolledTimestamp?: string;
753
+ lastEnrolledTimestamp?: string | null;
754
754
  /** A list of services that are monitored by Windows Security Center (WSC). */
755
- windowsSecurityProducts?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList;
756
- windowsSecurityCenter?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter;
755
+ windowsSecurityProducts?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList | null;
756
+ windowsSecurityCenter?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter | null;
757
757
  }
758
758
  export declare const GetWindowsUserComputerResponseResourcesItem: S.Schema<GetWindowsUserComputerResponseResourcesItem>;
759
759
  export type GetWindowsUserComputerResponseResourcesList = Array<GetWindowsUserComputerResponseResourcesItem>;
@@ -776,13 +776,13 @@ export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurr
776
776
  /** Markdown description of this API endpoint vulnerability occurrence. */
777
777
  description: string;
778
778
  /** The API endpoint URL associated with this vulnerability occurrence. */
779
- fromUrl?: string;
779
+ fromUrl?: string | null;
780
780
  /** The API params associated with this vulnerability. */
781
- queryParams?: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList;
781
+ queryParams?: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList | null;
782
782
  /** The API headers associated with this vulnerability. */
783
- headers?: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList;
783
+ headers?: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList | null;
784
784
  /** The body of the request passed to the API, with sensitive information redacted. */
785
- body?: string;
785
+ body?: string | null;
786
786
  }
787
787
  export declare const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem: S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem>;
788
788
  /** A list of occurrences of vulnerable API endpoints. */
@@ -810,11 +810,11 @@ export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItem {
810
810
  /** The HTTP method (eg: GET, POST) associated with this vulnerability. */
811
811
  httpMethod: string;
812
812
  /** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
813
- cveId?: string;
813
+ cveId?: string | null;
814
814
  /** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
815
- cvss3Vector?: string;
815
+ cvss3Vector?: string | null;
816
816
  /** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
817
- cvss3Score?: number;
817
+ cvss3Score?: number | null;
818
818
  }
819
819
  export declare const PutApiEndpointVulnerabilityConnectorsRequestResourcesItem: S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItem>;
820
820
  export type PutApiEndpointVulnerabilityConnectorsRequestResourcesList = Array<PutApiEndpointVulnerabilityConnectorsRequestResourcesItem>;
@@ -846,7 +846,7 @@ export interface PutBackgroundCheckConnectorRequestResourcesItem {
846
846
  /** The current status of the background check. */
847
847
  status: PutBackgroundCheckConnectorRequestResourcesItemStatus | (string & {});
848
848
  /** If complete, the date of completion of the background check. */
849
- completionDate?: string;
849
+ completionDate?: string | null;
850
850
  }
851
851
  export declare const PutBackgroundCheckConnectorRequestResourcesItem: S.Schema<PutBackgroundCheckConnectorRequestResourcesItem>;
852
852
  export type PutBackgroundCheckConnectorRequestResourcesList = Array<PutBackgroundCheckConnectorRequestResourcesItem>;
@@ -914,7 +914,7 @@ export interface PutMacosUserComputerRequestResourcesItemUsersItem {
914
914
  screenlockPolicies: PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList;
915
915
  screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
916
916
  /** The last time the user logged in to the device, if available. */
917
- lastLoginTimestamp?: string;
917
+ lastLoginTimestamp?: string | null;
918
918
  }
919
919
  export declare const PutMacosUserComputerRequestResourcesItemUsersItem: S.Schema<PutMacosUserComputerRequestResourcesItemUsersItem>;
920
920
  /** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
@@ -959,12 +959,12 @@ export interface PutMacosUserComputerRequestResourcesItem {
959
959
  /** Does the system have auto-updates enabled. */
960
960
  autoUpdatesEnabled: boolean;
961
961
  /** The email address of the owner of the system, if it's known. */
962
- owner?: string;
963
- passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
962
+ owner?: string | null;
963
+ passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy | null;
964
964
  /** A timestamp that indicates when the host computer was last enrolled within your system. If the computer has been un-enrolled and then re-enrolled, send data for the most recent enrollment. */
965
- lastEnrolledTimestamp?: string;
965
+ lastEnrolledTimestamp?: string | null;
966
966
  /** Is XProtect enabled on the system. */
967
- isXProtectEnabled?: boolean;
967
+ isXProtectEnabled?: boolean | null;
968
968
  }
969
969
  export declare const PutMacosUserComputerRequestResourcesItem: S.Schema<PutMacosUserComputerRequestResourcesItem>;
970
970
  export type PutMacosUserComputerRequestResourcesList = Array<PutMacosUserComputerRequestResourcesItem>;
@@ -1043,9 +1043,9 @@ export interface PutSecurityTaskRequestResourcesItem {
1043
1043
  /** The set of task tags or labels. */
1044
1044
  labels: PutSecurityTaskRequestResourcesItemLabelsList;
1045
1045
  /** When the task was closed, if the task was closed. Required if `taskState` is `CLOSED`, otherwise must be absent. */
1046
- closedTimestamp?: string;
1046
+ closedTimestamp?: string | null;
1047
1047
  /** When the task was last updated. */
1048
- updatedTimestamp?: string;
1048
+ updatedTimestamp?: string | null;
1049
1049
  }
1050
1050
  export declare const PutSecurityTaskRequestResourcesItem: S.Schema<PutSecurityTaskRequestResourcesItem>;
1051
1051
  export type PutSecurityTaskRequestResourcesList = Array<PutSecurityTaskRequestResourcesItem>;
@@ -1087,11 +1087,11 @@ export interface PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesIte
1087
1087
  /** Instructions for remediating the vulnerability. */
1088
1088
  remediationInstructions: string;
1089
1089
  /** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
1090
- cveId?: string;
1090
+ cveId?: string | null;
1091
1091
  /** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
1092
- cvss3Vector?: string;
1092
+ cvss3Vector?: string | null;
1093
1093
  /** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
1094
- cvss3Score?: number;
1094
+ cvss3Score?: number | null;
1095
1095
  }
1096
1096
  export declare const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem: S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem>;
1097
1097
  export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList = Array<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem>;
@@ -1115,7 +1115,7 @@ export declare const PutUserAccountRequestResourcesItemStatus: any;
1115
1115
  /** The individual MFA setting. */
1116
1116
  export type PutUserAccountRequestResourcesItemMfaMethodsItem = "UNSUPPORTED" | "DISABLED" | "SMS" | "EMAIL" | "OTP" | "HARDWARE_TOKEN" | "PUSH_PROMPT";
1117
1117
  export declare const PutUserAccountRequestResourcesItemMfaMethodsItem: any;
1118
- /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. */
1118
+ /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. Send an empty array if `mfaEnabled` is `null`, since an unknown MFA state says nothing about which methods are active. */
1119
1119
  export type PutUserAccountRequestResourcesItemMfaMethodsList = Array<PutUserAccountRequestResourcesItemMfaMethodsItem | (string & {})>;
1120
1120
  export declare const PutUserAccountRequestResourcesItemMfaMethodsList: S.Schema<PutUserAccountRequestResourcesItemMfaMethodsList>;
1121
1121
  /** How the user logs into the system. This is useful for us to validate security properties, like ensuring MFA is enabled if the user logs in with a password. */
@@ -1143,24 +1143,24 @@ export interface PutUserAccountRequestResourcesItem {
1143
1143
  createdTimestamp: string;
1144
1144
  /** The status of the user. It's acceptable to omit any deactivated users from your application, but if your application has access to deactivated users, it's preferable to send them over with this status. */
1145
1145
  status: PutUserAccountRequestResourcesItemStatus | (string & {});
1146
- /** This value is ignored if `authMethod` is SSO. */
1147
- mfaEnabled: boolean;
1148
- /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. */
1146
+ /** This value is ignored if `authMethod` is SSO. Send `null` if the MFA state is unknown. */
1147
+ mfaEnabled: boolean | null;
1148
+ /** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. Send an empty array if `mfaEnabled` is `null`, since an unknown MFA state says nothing about which methods are active. */
1149
1149
  mfaMethods: PutUserAccountRequestResourcesItemMfaMethodsList;
1150
1150
  /** How the user logs into the system. This is useful for us to validate security properties, like ensuring MFA is enabled if the user logs in with a password. */
1151
1151
  authMethod: PutUserAccountRequestResourcesItemAuthMethod | (string & {});
1152
1152
  /** A human readable description of the user's role. */
1153
- roleDescription?: string;
1153
+ roleDescription?: string | null;
1154
1154
  /** The last time the user was updated in the system. */
1155
- updatedTimestamp?: string;
1155
+ updatedTimestamp?: string | null;
1156
1156
  /** If the user is deactivated, the timestamp of that deactivation. */
1157
- deactivatedTimestamp?: string;
1157
+ deactivatedTimestamp?: string | null;
1158
1158
  /** The time at which the user last logged in. */
1159
- lastLoginTimestamp?: string;
1159
+ lastLoginTimestamp?: string | null;
1160
1160
  /** The time at which the user last reset their password. Helps with future Vanta functionality. */
1161
- lastPasswordResetTimestamp?: string | Redacted.Redacted<string>;
1161
+ lastPasswordResetTimestamp?: string | Redacted.Redacted<string> | null;
1162
1162
  /** If the user belongs to any groups/teams in the product, those corresponding group IDs. We'll map these to groups in our product in the future. */
1163
- groupIds?: PutUserAccountRequestResourcesItemGroupIdsList;
1163
+ groupIds?: PutUserAccountRequestResourcesItemGroupIdsList | null;
1164
1164
  }
1165
1165
  export declare const PutUserAccountRequestResourcesItem: S.Schema<PutUserAccountRequestResourcesItem>;
1166
1166
  export type PutUserAccountRequestResourcesList = Array<PutUserAccountRequestResourcesItem>;
@@ -1210,7 +1210,7 @@ export interface PutUserSecurityTrainingStatusRequestResourcesItem {
1210
1210
  /** The time at which this training course is due for the user. Vanta will check whether employees complete their training on time. */
1211
1211
  trainingDueTimestamp: string;
1212
1212
  /** The time at which this training course was completed by the user. */
1213
- trainingCompletedTimestamp?: string;
1213
+ trainingCompletedTimestamp?: string | null;
1214
1214
  }
1215
1215
  export declare const PutUserSecurityTrainingStatusRequestResourcesItem: S.Schema<PutUserSecurityTrainingStatusRequestResourcesItem>;
1216
1216
  export type PutUserSecurityTrainingStatusRequestResourcesList = Array<PutUserSecurityTrainingStatusRequestResourcesItem>;
@@ -1296,7 +1296,7 @@ export interface PutWindowsUserComputerRequestResourcesItemUsersItem {
1296
1296
  screenlockPolicies: PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList;
1297
1297
  screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
1298
1298
  /** The last time the user logged in to the device, if available. */
1299
- lastLoginTimestamp?: string;
1299
+ lastLoginTimestamp?: string | null;
1300
1300
  }
1301
1301
  export declare const PutWindowsUserComputerRequestResourcesItemUsersItem: S.Schema<PutWindowsUserComputerRequestResourcesItemUsersItem>;
1302
1302
  /** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
@@ -1396,13 +1396,13 @@ export interface PutWindowsUserComputerRequestResourcesItem {
1396
1396
  /** Does the system have auto-updates enabled. */
1397
1397
  autoUpdatesEnabled: boolean;
1398
1398
  /** The email address of the owner of the system, if it's known. */
1399
- owner?: string;
1400
- passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
1399
+ owner?: string | null;
1400
+ passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy | null;
1401
1401
  /** A timestamp that indicates when the host computer was last enrolled within your system. If the computer has been un-enrolled and then re-enrolled, send data for the most recent enrollment. */
1402
- lastEnrolledTimestamp?: string;
1402
+ lastEnrolledTimestamp?: string | null;
1403
1403
  /** A list of services that are monitored by Windows Security Center (WSC). */
1404
- windowsSecurityProducts?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList;
1405
- windowsSecurityCenter?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter;
1404
+ windowsSecurityProducts?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList | null;
1405
+ windowsSecurityCenter?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter | null;
1406
1406
  }
1407
1407
  export declare const PutWindowsUserComputerRequestResourcesItem: S.Schema<PutWindowsUserComputerRequestResourcesItem>;
1408
1408
  export type PutWindowsUserComputerRequestResourcesList = Array<PutWindowsUserComputerRequestResourcesItem>;