@distilled.cloud/vanta 0.0.0 → 1.0.0-rc.11
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.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +33 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +39 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +8 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +8 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +44 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/auditor_api.d.ts +2239 -0
- package/lib/services/auditor_api.d.ts.map +1 -0
- package/lib/services/auditor_api.js +2101 -0
- package/lib/services/auditor_api.js.map +1 -0
- package/lib/services/build_integrations.d.ts +1537 -0
- package/lib/services/build_integrations.d.ts.map +1 -0
- package/lib/services/build_integrations.js +1327 -0
- package/lib/services/build_integrations.js.map +1 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/manage_vanta.d.ts +7087 -0
- package/lib/services/manage_vanta.d.ts.map +1 -0
- package/lib/services/manage_vanta.js +7542 -0
- package/lib/services/manage_vanta.js.map +1 -0
- package/lib/services/webhooks.d.ts +474 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +631 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +62 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +25 -0
- package/src/pagination.ts +7 -0
- package/src/protocol.ts +67 -0
- package/src/retry.ts +54 -0
- package/src/services/auditor_api.ts +5477 -0
- package/src/services/build_integrations.ts +3773 -0
- package/src/services/index.ts +5 -0
- package/src/services/manage_vanta.ts +18836 -0
- package/src/services/webhooks.ts +1454 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,3773 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
VantaProtocol,
|
|
8
|
+
type VantaOpError,
|
|
9
|
+
type VantaOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownVantaError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { VantaOpError, VantaOpContext };
|
|
15
|
+
|
|
16
|
+
export interface GetApiEndpointVulnerabilityConnectorsRequest {
|
|
17
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
18
|
+
resourceId: string;
|
|
19
|
+
}
|
|
20
|
+
export const GetApiEndpointVulnerabilityConnectorsRequest =
|
|
21
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
22
|
+
S.Struct({
|
|
23
|
+
resourceId: S.String.pipe(T.Query()),
|
|
24
|
+
}).pipe(
|
|
25
|
+
T.Http({
|
|
26
|
+
method: "GET",
|
|
27
|
+
uri: "/v1/resources/api_endpoint_vulnerability_connectors",
|
|
28
|
+
code: 200,
|
|
29
|
+
}),
|
|
30
|
+
),
|
|
31
|
+
).annotate({
|
|
32
|
+
identifier: "GetApiEndpointVulnerabilityConnectorsRequest",
|
|
33
|
+
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsRequest>;
|
|
34
|
+
|
|
35
|
+
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem {
|
|
36
|
+
/** The API query param key associated with this vulnerability occurrence. */
|
|
37
|
+
key: string;
|
|
38
|
+
/** The API query param value associated with this vulnerability occurrence. */
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem =
|
|
42
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
43
|
+
S.Struct({
|
|
44
|
+
key: S.String,
|
|
45
|
+
value: S.String,
|
|
46
|
+
}),
|
|
47
|
+
).annotate({
|
|
48
|
+
identifier:
|
|
49
|
+
"GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem",
|
|
50
|
+
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem>;
|
|
51
|
+
|
|
52
|
+
/** The API params associated with this vulnerability. */
|
|
53
|
+
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList =
|
|
54
|
+
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem>;
|
|
55
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList =
|
|
56
|
+
/*@__PURE__*/ S.Array(
|
|
57
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem,
|
|
58
|
+
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList>;
|
|
59
|
+
|
|
60
|
+
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem {
|
|
61
|
+
/** The API header key associated with this vulnerability occurrence. */
|
|
62
|
+
key: string;
|
|
63
|
+
/** The API header value associated with this vulnerability occurrence. */
|
|
64
|
+
value: string;
|
|
65
|
+
}
|
|
66
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem =
|
|
67
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
68
|
+
S.Struct({
|
|
69
|
+
key: S.String,
|
|
70
|
+
value: S.String,
|
|
71
|
+
}),
|
|
72
|
+
).annotate({
|
|
73
|
+
identifier:
|
|
74
|
+
"GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem",
|
|
75
|
+
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem>;
|
|
76
|
+
|
|
77
|
+
/** The API headers associated with this vulnerability. */
|
|
78
|
+
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList =
|
|
79
|
+
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem>;
|
|
80
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList =
|
|
81
|
+
/*@__PURE__*/ S.Array(
|
|
82
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem,
|
|
83
|
+
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList>;
|
|
84
|
+
|
|
85
|
+
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem {
|
|
86
|
+
/** Markdown description of this API endpoint vulnerability occurrence. */
|
|
87
|
+
description: string;
|
|
88
|
+
/** The API endpoint URL associated with this vulnerability occurrence. */
|
|
89
|
+
fromUrl?: string;
|
|
90
|
+
/** The API params associated with this vulnerability. */
|
|
91
|
+
queryParams?: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList;
|
|
92
|
+
/** The API headers associated with this vulnerability. */
|
|
93
|
+
headers?: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList;
|
|
94
|
+
/** The body of the request passed to the API, with sensitive information redacted. */
|
|
95
|
+
body?: string;
|
|
96
|
+
}
|
|
97
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem =
|
|
98
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
99
|
+
S.Struct({
|
|
100
|
+
description: S.String,
|
|
101
|
+
fromUrl: S.optional(S.String),
|
|
102
|
+
queryParams: S.optional(
|
|
103
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList,
|
|
104
|
+
),
|
|
105
|
+
headers: S.optional(
|
|
106
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList,
|
|
107
|
+
),
|
|
108
|
+
body: S.optional(S.String),
|
|
109
|
+
}),
|
|
110
|
+
).annotate({
|
|
111
|
+
identifier:
|
|
112
|
+
"GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem",
|
|
113
|
+
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
114
|
+
|
|
115
|
+
/** A list of occurrences of vulnerable API endpoints. */
|
|
116
|
+
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
117
|
+
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
118
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
119
|
+
/*@__PURE__*/ S.Array(
|
|
120
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem,
|
|
121
|
+
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList>;
|
|
122
|
+
|
|
123
|
+
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItem {
|
|
124
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
125
|
+
displayName: string;
|
|
126
|
+
/** A stable global identifier for this resource. */
|
|
127
|
+
uniqueId: string;
|
|
128
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
129
|
+
externalUrl: string;
|
|
130
|
+
/** A list of occurrences of vulnerable API endpoints. */
|
|
131
|
+
occurrences: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList;
|
|
132
|
+
/** The severity of the vulnerability, on a scale of 0 to 10. This will be rounded to the nearest tenth. */
|
|
133
|
+
severity: number;
|
|
134
|
+
/** A unique identifier for the vulnerable component associated with the vulnerability. This must reference the `uniqueId` field in the a previously supplied `VulnerableComponent`. */
|
|
135
|
+
vulnerableComponentUniqueId: string;
|
|
136
|
+
/** A description of the vulnerability. */
|
|
137
|
+
description: string;
|
|
138
|
+
/** Instructions for remediating the vulnerability. */
|
|
139
|
+
remediationInstructions: string;
|
|
140
|
+
/** The vulnerable URL. */
|
|
141
|
+
url: string;
|
|
142
|
+
/** The HTTP method (eg: GET, POST) associated with this vulnerability. */
|
|
143
|
+
httpMethod: string;
|
|
144
|
+
/** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
|
|
145
|
+
cveId?: string;
|
|
146
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
|
|
147
|
+
cvss3Vector?: string;
|
|
148
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
149
|
+
cvss3Score?: number;
|
|
150
|
+
}
|
|
151
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItem =
|
|
152
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
153
|
+
S.Struct({
|
|
154
|
+
displayName: S.String,
|
|
155
|
+
uniqueId: S.String,
|
|
156
|
+
externalUrl: S.String,
|
|
157
|
+
occurrences:
|
|
158
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList,
|
|
159
|
+
severity: S.Number,
|
|
160
|
+
vulnerableComponentUniqueId: S.String,
|
|
161
|
+
description: S.String,
|
|
162
|
+
remediationInstructions: S.String,
|
|
163
|
+
url: S.String,
|
|
164
|
+
httpMethod: S.String,
|
|
165
|
+
cveId: S.optional(S.String),
|
|
166
|
+
cvss3Vector: S.optional(S.String),
|
|
167
|
+
cvss3Score: S.optional(S.Number),
|
|
168
|
+
}),
|
|
169
|
+
).annotate({
|
|
170
|
+
identifier: "GetApiEndpointVulnerabilityConnectorsResponseResourcesItem",
|
|
171
|
+
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItem>;
|
|
172
|
+
|
|
173
|
+
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesList =
|
|
174
|
+
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItem>;
|
|
175
|
+
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesList =
|
|
176
|
+
/*@__PURE__*/ S.Array(
|
|
177
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItem,
|
|
178
|
+
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesList>;
|
|
179
|
+
|
|
180
|
+
export interface GetApiEndpointVulnerabilityConnectorsResponse {
|
|
181
|
+
resources?: GetApiEndpointVulnerabilityConnectorsResponseResourcesList;
|
|
182
|
+
}
|
|
183
|
+
export const GetApiEndpointVulnerabilityConnectorsResponse =
|
|
184
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
185
|
+
S.Struct({
|
|
186
|
+
resources: S.optional(
|
|
187
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesList,
|
|
188
|
+
),
|
|
189
|
+
}),
|
|
190
|
+
).annotate({
|
|
191
|
+
identifier: "GetApiEndpointVulnerabilityConnectorsResponse",
|
|
192
|
+
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponse>;
|
|
193
|
+
|
|
194
|
+
export interface GetBackgroundCheckConnectorRequest {
|
|
195
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
196
|
+
resourceId: string;
|
|
197
|
+
}
|
|
198
|
+
export const GetBackgroundCheckConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
199
|
+
S.Struct({
|
|
200
|
+
resourceId: S.String.pipe(T.Query()),
|
|
201
|
+
}).pipe(
|
|
202
|
+
T.Http({
|
|
203
|
+
method: "GET",
|
|
204
|
+
uri: "/v1/resources/background_check_connector",
|
|
205
|
+
code: 200,
|
|
206
|
+
}),
|
|
207
|
+
),
|
|
208
|
+
).annotate({
|
|
209
|
+
identifier: "GetBackgroundCheckConnectorRequest",
|
|
210
|
+
}) as any as S.Schema<GetBackgroundCheckConnectorRequest>;
|
|
211
|
+
|
|
212
|
+
/** The current status of the background check. */
|
|
213
|
+
export type GetBackgroundCheckConnectorResponseResourcesItemStatus =
|
|
214
|
+
| "INCOMPLETE"
|
|
215
|
+
| "IN_PROGRESS"
|
|
216
|
+
| "COMPLETE";
|
|
217
|
+
export const GetBackgroundCheckConnectorResponseResourcesItemStatus = S.String;
|
|
218
|
+
|
|
219
|
+
export interface GetBackgroundCheckConnectorResponseResourcesItem {
|
|
220
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
221
|
+
displayName: string;
|
|
222
|
+
/** A stable global identifier for this resource. */
|
|
223
|
+
uniqueId: string;
|
|
224
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
225
|
+
externalUrl: string;
|
|
226
|
+
/** The full name of the employee or contractor undergoing the background check. */
|
|
227
|
+
fullName: string;
|
|
228
|
+
/** The email address of the employee or contractor undergoing the background check. */
|
|
229
|
+
email: string;
|
|
230
|
+
/** The current status of the background check. */
|
|
231
|
+
status: GetBackgroundCheckConnectorResponseResourcesItemStatus;
|
|
232
|
+
/** If complete, the date of completion of the background check. */
|
|
233
|
+
completionDate?: string;
|
|
234
|
+
}
|
|
235
|
+
export const GetBackgroundCheckConnectorResponseResourcesItem =
|
|
236
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
237
|
+
S.Struct({
|
|
238
|
+
displayName: S.String,
|
|
239
|
+
uniqueId: S.String,
|
|
240
|
+
externalUrl: S.String,
|
|
241
|
+
fullName: S.String,
|
|
242
|
+
email: S.String,
|
|
243
|
+
status: GetBackgroundCheckConnectorResponseResourcesItemStatus,
|
|
244
|
+
completionDate: S.optional(S.String),
|
|
245
|
+
}),
|
|
246
|
+
).annotate({
|
|
247
|
+
identifier: "GetBackgroundCheckConnectorResponseResourcesItem",
|
|
248
|
+
}) as any as S.Schema<GetBackgroundCheckConnectorResponseResourcesItem>;
|
|
249
|
+
|
|
250
|
+
export type GetBackgroundCheckConnectorResponseResourcesList =
|
|
251
|
+
Array<GetBackgroundCheckConnectorResponseResourcesItem>;
|
|
252
|
+
export const GetBackgroundCheckConnectorResponseResourcesList =
|
|
253
|
+
/*@__PURE__*/ S.Array(
|
|
254
|
+
GetBackgroundCheckConnectorResponseResourcesItem,
|
|
255
|
+
) as any as S.Schema<GetBackgroundCheckConnectorResponseResourcesList>;
|
|
256
|
+
|
|
257
|
+
export interface GetBackgroundCheckConnectorResponse {
|
|
258
|
+
resources?: GetBackgroundCheckConnectorResponseResourcesList;
|
|
259
|
+
}
|
|
260
|
+
export const GetBackgroundCheckConnectorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
261
|
+
S.Struct({
|
|
262
|
+
resources: S.optional(GetBackgroundCheckConnectorResponseResourcesList),
|
|
263
|
+
}),
|
|
264
|
+
).annotate({
|
|
265
|
+
identifier: "GetBackgroundCheckConnectorResponse",
|
|
266
|
+
}) as any as S.Schema<GetBackgroundCheckConnectorResponse>;
|
|
267
|
+
|
|
268
|
+
export interface GetCustomResourceRequest {
|
|
269
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
270
|
+
resourceId: string;
|
|
271
|
+
}
|
|
272
|
+
export const GetCustomResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
273
|
+
S.Struct({
|
|
274
|
+
resourceId: S.String.pipe(T.Query()),
|
|
275
|
+
}).pipe(
|
|
276
|
+
T.Http({ method: "GET", uri: "/v1/resources/custom_resource", code: 200 }),
|
|
277
|
+
),
|
|
278
|
+
).annotate({
|
|
279
|
+
identifier: "GetCustomResourceRequest",
|
|
280
|
+
}) as any as S.Schema<GetCustomResourceRequest>;
|
|
281
|
+
|
|
282
|
+
export interface GetCustomResourceResponseResourcesItem {
|
|
283
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
284
|
+
displayName: string;
|
|
285
|
+
/** A stable global identifier for this resource. */
|
|
286
|
+
uniqueId: string;
|
|
287
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
288
|
+
externalUrl: string;
|
|
289
|
+
}
|
|
290
|
+
export const GetCustomResourceResponseResourcesItem = /*@__PURE__*/ S.suspend(
|
|
291
|
+
() =>
|
|
292
|
+
S.Struct({
|
|
293
|
+
displayName: S.String,
|
|
294
|
+
uniqueId: S.String,
|
|
295
|
+
externalUrl: S.String,
|
|
296
|
+
}),
|
|
297
|
+
).annotate({
|
|
298
|
+
identifier: "GetCustomResourceResponseResourcesItem",
|
|
299
|
+
}) as any as S.Schema<GetCustomResourceResponseResourcesItem>;
|
|
300
|
+
|
|
301
|
+
export type GetCustomResourceResponseResourcesList =
|
|
302
|
+
Array<GetCustomResourceResponseResourcesItem>;
|
|
303
|
+
export const GetCustomResourceResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
304
|
+
GetCustomResourceResponseResourcesItem,
|
|
305
|
+
) as any as S.Schema<GetCustomResourceResponseResourcesList>;
|
|
306
|
+
|
|
307
|
+
export interface GetCustomResourceResponse {
|
|
308
|
+
resources?: GetCustomResourceResponseResourcesList;
|
|
309
|
+
}
|
|
310
|
+
export const GetCustomResourceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
311
|
+
S.Struct({
|
|
312
|
+
resources: S.optional(GetCustomResourceResponseResourcesList),
|
|
313
|
+
}),
|
|
314
|
+
).annotate({
|
|
315
|
+
identifier: "GetCustomResourceResponse",
|
|
316
|
+
}) as any as S.Schema<GetCustomResourceResponse>;
|
|
317
|
+
|
|
318
|
+
export interface GetMacosUserComputerRequest {
|
|
319
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
320
|
+
resourceId: string;
|
|
321
|
+
}
|
|
322
|
+
export const GetMacosUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
323
|
+
S.Struct({
|
|
324
|
+
resourceId: S.String.pipe(T.Query()),
|
|
325
|
+
}).pipe(
|
|
326
|
+
T.Http({
|
|
327
|
+
method: "GET",
|
|
328
|
+
uri: "/v1/resources/macos_user_computer",
|
|
329
|
+
code: 200,
|
|
330
|
+
}),
|
|
331
|
+
),
|
|
332
|
+
).annotate({
|
|
333
|
+
identifier: "GetMacosUserComputerRequest",
|
|
334
|
+
}) as any as S.Schema<GetMacosUserComputerRequest>;
|
|
335
|
+
|
|
336
|
+
export interface GetMacosUserComputerResponseResourcesItemApplicationsItem {
|
|
337
|
+
/** The name of the application. */
|
|
338
|
+
name: string;
|
|
339
|
+
/** The bundle identifier of the application. */
|
|
340
|
+
bundleId: string;
|
|
341
|
+
/** The last time the application was opened. */
|
|
342
|
+
lastOpenedTimestamp?: string;
|
|
343
|
+
}
|
|
344
|
+
export const GetMacosUserComputerResponseResourcesItemApplicationsItem =
|
|
345
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
346
|
+
S.Struct({
|
|
347
|
+
name: S.String,
|
|
348
|
+
bundleId: S.String,
|
|
349
|
+
lastOpenedTimestamp: S.optional(S.String),
|
|
350
|
+
}),
|
|
351
|
+
).annotate({
|
|
352
|
+
identifier: "GetMacosUserComputerResponseResourcesItemApplicationsItem",
|
|
353
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
|
|
354
|
+
|
|
355
|
+
/** All the installed Mac Apps on the system. */
|
|
356
|
+
export type GetMacosUserComputerResponseResourcesItemApplicationsList =
|
|
357
|
+
Array<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
|
|
358
|
+
export const GetMacosUserComputerResponseResourcesItemApplicationsList =
|
|
359
|
+
/*@__PURE__*/ S.Array(
|
|
360
|
+
GetMacosUserComputerResponseResourcesItemApplicationsItem,
|
|
361
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemApplicationsList>;
|
|
362
|
+
|
|
363
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
364
|
+
export type GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser =
|
|
365
|
+
| "CHROME"
|
|
366
|
+
| "FIREFOX"
|
|
367
|
+
| "OPERA"
|
|
368
|
+
| "SAFARI"
|
|
369
|
+
| "EDGE";
|
|
370
|
+
export const GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser =
|
|
371
|
+
S.String;
|
|
372
|
+
|
|
373
|
+
export interface GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem {
|
|
374
|
+
/** The identifier of the browser extension. */
|
|
375
|
+
extensionId: string;
|
|
376
|
+
/** The name of the browser extension. */
|
|
377
|
+
name: string;
|
|
378
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
379
|
+
browser: GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser;
|
|
380
|
+
}
|
|
381
|
+
export const GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem =
|
|
382
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
383
|
+
S.Struct({
|
|
384
|
+
extensionId: S.String,
|
|
385
|
+
name: S.String,
|
|
386
|
+
browser:
|
|
387
|
+
GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser,
|
|
388
|
+
}),
|
|
389
|
+
).annotate({
|
|
390
|
+
identifier:
|
|
391
|
+
"GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem",
|
|
392
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
393
|
+
|
|
394
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
395
|
+
export type GetMacosUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
396
|
+
Array<GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
397
|
+
export const GetMacosUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
398
|
+
/*@__PURE__*/ S.Array(
|
|
399
|
+
GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem,
|
|
400
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemBrowserExtensionsList>;
|
|
401
|
+
|
|
402
|
+
export interface GetMacosUserComputerResponseResourcesItemDrivesItem {
|
|
403
|
+
/** The name of the drive. */
|
|
404
|
+
name: string;
|
|
405
|
+
/** Does the drive have some sort of encryption on it. */
|
|
406
|
+
encrypted: boolean;
|
|
407
|
+
/** Does the drive have filevault enabled. */
|
|
408
|
+
filevaultEnabled: boolean;
|
|
409
|
+
/** Metadata about the boot volume helps Vanta skip checking volumes that aren't relevant, like USB Drives. */
|
|
410
|
+
isBootVolume?: boolean;
|
|
411
|
+
}
|
|
412
|
+
export const GetMacosUserComputerResponseResourcesItemDrivesItem =
|
|
413
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
414
|
+
S.Struct({
|
|
415
|
+
name: S.String,
|
|
416
|
+
encrypted: S.Boolean,
|
|
417
|
+
filevaultEnabled: S.Boolean,
|
|
418
|
+
isBootVolume: S.optional(S.Boolean),
|
|
419
|
+
}),
|
|
420
|
+
).annotate({
|
|
421
|
+
identifier: "GetMacosUserComputerResponseResourcesItemDrivesItem",
|
|
422
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemDrivesItem>;
|
|
423
|
+
|
|
424
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
425
|
+
export type GetMacosUserComputerResponseResourcesItemDrivesList =
|
|
426
|
+
Array<GetMacosUserComputerResponseResourcesItemDrivesItem>;
|
|
427
|
+
export const GetMacosUserComputerResponseResourcesItemDrivesList =
|
|
428
|
+
/*@__PURE__*/ S.Array(
|
|
429
|
+
GetMacosUserComputerResponseResourcesItemDrivesItem,
|
|
430
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemDrivesList>;
|
|
431
|
+
|
|
432
|
+
export interface GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem {
|
|
433
|
+
/** After the screenlock takes effect, does the user have to enter a password to access their device. */
|
|
434
|
+
requiresPassword: boolean;
|
|
435
|
+
/** The timeout in milliseconds for screenlock to trigger. */
|
|
436
|
+
screenSleepTimeoutMs: number;
|
|
437
|
+
}
|
|
438
|
+
export const GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem =
|
|
439
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
440
|
+
S.Struct({
|
|
441
|
+
requiresPassword: S.Boolean,
|
|
442
|
+
screenSleepTimeoutMs: S.Number,
|
|
443
|
+
}),
|
|
444
|
+
).annotate({
|
|
445
|
+
identifier:
|
|
446
|
+
"GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem",
|
|
447
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
448
|
+
|
|
449
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
450
|
+
export type GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
451
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
452
|
+
export const GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
453
|
+
/*@__PURE__*/ S.Array(
|
|
454
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
455
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList>;
|
|
456
|
+
|
|
457
|
+
export type GetMacosUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
458
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
459
|
+
export const GetMacosUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
460
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
461
|
+
|
|
462
|
+
export interface GetMacosUserComputerResponseResourcesItemUsersItem {
|
|
463
|
+
/** The user's username. Does not have to be unique. */
|
|
464
|
+
username: string;
|
|
465
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
466
|
+
screenlockPolicies: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList;
|
|
467
|
+
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
468
|
+
/** The last time the user logged in to the device, if available. */
|
|
469
|
+
lastLoginTimestamp?: string;
|
|
470
|
+
}
|
|
471
|
+
export const GetMacosUserComputerResponseResourcesItemUsersItem =
|
|
472
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
473
|
+
S.Struct({
|
|
474
|
+
username: S.String,
|
|
475
|
+
screenlockPolicies:
|
|
476
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList,
|
|
477
|
+
screenlockSettings:
|
|
478
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
479
|
+
lastLoginTimestamp: S.optional(S.String),
|
|
480
|
+
}),
|
|
481
|
+
).annotate({
|
|
482
|
+
identifier: "GetMacosUserComputerResponseResourcesItemUsersItem",
|
|
483
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersItem>;
|
|
484
|
+
|
|
485
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
486
|
+
export type GetMacosUserComputerResponseResourcesItemUsersList =
|
|
487
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItem>;
|
|
488
|
+
export const GetMacosUserComputerResponseResourcesItemUsersList =
|
|
489
|
+
/*@__PURE__*/ S.Array(
|
|
490
|
+
GetMacosUserComputerResponseResourcesItemUsersItem,
|
|
491
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersList>;
|
|
492
|
+
|
|
493
|
+
export type GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
494
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
495
|
+
export const GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
496
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
497
|
+
|
|
498
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
499
|
+
export type GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
500
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
501
|
+
export const GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
502
|
+
/*@__PURE__*/ S.Array(
|
|
503
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
504
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList>;
|
|
505
|
+
|
|
506
|
+
export interface GetMacosUserComputerResponseResourcesItemPasswordPolicy {
|
|
507
|
+
/** If the system has a password policy, what the minimum password length requirement is. */
|
|
508
|
+
minimumLengthRequirement: number;
|
|
509
|
+
}
|
|
510
|
+
export const GetMacosUserComputerResponseResourcesItemPasswordPolicy =
|
|
511
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
512
|
+
S.Struct({
|
|
513
|
+
minimumLengthRequirement: S.Number,
|
|
514
|
+
}),
|
|
515
|
+
).annotate({
|
|
516
|
+
identifier: "GetMacosUserComputerResponseResourcesItemPasswordPolicy",
|
|
517
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemPasswordPolicy>;
|
|
518
|
+
|
|
519
|
+
export interface GetMacosUserComputerResponseResourcesItem {
|
|
520
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
521
|
+
displayName: string;
|
|
522
|
+
/** A stable global identifier for this resource. */
|
|
523
|
+
uniqueId: string;
|
|
524
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
525
|
+
externalUrl: string;
|
|
526
|
+
/** A timestamp that indicates when the data being sent was collected from the host computer. In some cases, you may have staggered data collection for the various data being sent. In that case, feel free to use the latest collected timestamp for the individual data items to populate this field. */
|
|
527
|
+
collectedTimestamp: string;
|
|
528
|
+
/** The OS name. Example: `MacOS Monterey`. */
|
|
529
|
+
osName: string;
|
|
530
|
+
/** The OS version. Example: `Version 12.4`. */
|
|
531
|
+
osVersion: string;
|
|
532
|
+
/** The hardware UUID/UDID of the device. */
|
|
533
|
+
hardwareUuid: string;
|
|
534
|
+
/** The hardware serial number of the device. */
|
|
535
|
+
serialNumber: string;
|
|
536
|
+
/** All the installed Mac Apps on the system. */
|
|
537
|
+
applications: GetMacosUserComputerResponseResourcesItemApplicationsList;
|
|
538
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
539
|
+
browserExtensions: GetMacosUserComputerResponseResourcesItemBrowserExtensionsList;
|
|
540
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
541
|
+
drives: GetMacosUserComputerResponseResourcesItemDrivesList;
|
|
542
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
543
|
+
users: GetMacosUserComputerResponseResourcesItemUsersList;
|
|
544
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
545
|
+
systemScreenlockPolicies: GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList;
|
|
546
|
+
/** Is the system managed by a Mobile Device Management system. */
|
|
547
|
+
isManaged: boolean;
|
|
548
|
+
/** Does the system have auto-updates enabled. */
|
|
549
|
+
autoUpdatesEnabled: boolean;
|
|
550
|
+
/** The email address of the owner of the system, if it's known. */
|
|
551
|
+
owner?: string;
|
|
552
|
+
passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
553
|
+
/** 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. */
|
|
554
|
+
lastEnrolledTimestamp?: string;
|
|
555
|
+
/** Is XProtect enabled on the system. */
|
|
556
|
+
isXProtectEnabled?: boolean;
|
|
557
|
+
}
|
|
558
|
+
export const GetMacosUserComputerResponseResourcesItem =
|
|
559
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
560
|
+
S.Struct({
|
|
561
|
+
displayName: S.String,
|
|
562
|
+
uniqueId: S.String,
|
|
563
|
+
externalUrl: S.String,
|
|
564
|
+
collectedTimestamp: S.String,
|
|
565
|
+
osName: S.String,
|
|
566
|
+
osVersion: S.String,
|
|
567
|
+
hardwareUuid: S.String,
|
|
568
|
+
serialNumber: S.String,
|
|
569
|
+
applications: GetMacosUserComputerResponseResourcesItemApplicationsList,
|
|
570
|
+
browserExtensions:
|
|
571
|
+
GetMacosUserComputerResponseResourcesItemBrowserExtensionsList,
|
|
572
|
+
drives: GetMacosUserComputerResponseResourcesItemDrivesList,
|
|
573
|
+
users: GetMacosUserComputerResponseResourcesItemUsersList,
|
|
574
|
+
systemScreenlockPolicies:
|
|
575
|
+
GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList,
|
|
576
|
+
isManaged: S.Boolean,
|
|
577
|
+
autoUpdatesEnabled: S.Boolean,
|
|
578
|
+
owner: S.optional(S.String),
|
|
579
|
+
passwordPolicy: S.optional(
|
|
580
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy,
|
|
581
|
+
),
|
|
582
|
+
lastEnrolledTimestamp: S.optional(S.String),
|
|
583
|
+
isXProtectEnabled: S.optional(S.Boolean),
|
|
584
|
+
}),
|
|
585
|
+
).annotate({
|
|
586
|
+
identifier: "GetMacosUserComputerResponseResourcesItem",
|
|
587
|
+
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItem>;
|
|
588
|
+
|
|
589
|
+
export type GetMacosUserComputerResponseResourcesList =
|
|
590
|
+
Array<GetMacosUserComputerResponseResourcesItem>;
|
|
591
|
+
export const GetMacosUserComputerResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
592
|
+
GetMacosUserComputerResponseResourcesItem,
|
|
593
|
+
) as any as S.Schema<GetMacosUserComputerResponseResourcesList>;
|
|
594
|
+
|
|
595
|
+
export interface GetMacosUserComputerResponse {
|
|
596
|
+
resources?: GetMacosUserComputerResponseResourcesList;
|
|
597
|
+
}
|
|
598
|
+
export const GetMacosUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
599
|
+
S.Struct({
|
|
600
|
+
resources: S.optional(GetMacosUserComputerResponseResourcesList),
|
|
601
|
+
}),
|
|
602
|
+
).annotate({
|
|
603
|
+
identifier: "GetMacosUserComputerResponse",
|
|
604
|
+
}) as any as S.Schema<GetMacosUserComputerResponse>;
|
|
605
|
+
|
|
606
|
+
export interface GetPackageVulnerabilityConnectorsRequest {
|
|
607
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
608
|
+
resourceId: string;
|
|
609
|
+
}
|
|
610
|
+
export const GetPackageVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(
|
|
611
|
+
() =>
|
|
612
|
+
S.Struct({
|
|
613
|
+
resourceId: S.String.pipe(T.Query()),
|
|
614
|
+
}).pipe(
|
|
615
|
+
T.Http({
|
|
616
|
+
method: "GET",
|
|
617
|
+
uri: "/v1/resources/package_vulnerability_connectors",
|
|
618
|
+
code: 200,
|
|
619
|
+
}),
|
|
620
|
+
),
|
|
621
|
+
).annotate({
|
|
622
|
+
identifier: "GetPackageVulnerabilityConnectorsRequest",
|
|
623
|
+
}) as any as S.Schema<GetPackageVulnerabilityConnectorsRequest>;
|
|
624
|
+
|
|
625
|
+
export interface GetPackageVulnerabilityConnectorsResponseResourcesItem {
|
|
626
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
627
|
+
displayName: string;
|
|
628
|
+
/** A stable global identifier for this resource. */
|
|
629
|
+
uniqueId: string;
|
|
630
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
631
|
+
externalUrl: string;
|
|
632
|
+
/** The name of the package associated with the vulnerability. */
|
|
633
|
+
packageName: string;
|
|
634
|
+
/** The version of the package associated with the vulnerability. */
|
|
635
|
+
packageVersion: string;
|
|
636
|
+
/** The severity of the vulnerability, on a scale of 0 to 10. This will be rounded to the nearest tenth. */
|
|
637
|
+
severity: number;
|
|
638
|
+
/** A unique identifier for the vulnerable component associated with the vulnerability. This must reference the `uniqueId` field in the a previously supplied `VulnerableComponent`. */
|
|
639
|
+
vulnerableComponentUniqueId: string;
|
|
640
|
+
/** A description of the vulnerability. */
|
|
641
|
+
description: string;
|
|
642
|
+
/** Whether the vulnerability can be resolved. */
|
|
643
|
+
isResolvable: boolean;
|
|
644
|
+
/** Instructions for remediating the vulnerability. */
|
|
645
|
+
remediationInstructions: string;
|
|
646
|
+
/** Whether there is a code path to the vulnerable code in this package. This field is optional. */
|
|
647
|
+
isReachable?: boolean;
|
|
648
|
+
/** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
|
|
649
|
+
cveId?: string;
|
|
650
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
|
|
651
|
+
cvss3Vector?: string;
|
|
652
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
653
|
+
cvss3Score?: number;
|
|
654
|
+
}
|
|
655
|
+
export const GetPackageVulnerabilityConnectorsResponseResourcesItem =
|
|
656
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
657
|
+
S.Struct({
|
|
658
|
+
displayName: S.String,
|
|
659
|
+
uniqueId: S.String,
|
|
660
|
+
externalUrl: S.String,
|
|
661
|
+
packageName: S.String,
|
|
662
|
+
packageVersion: S.String,
|
|
663
|
+
severity: S.Number,
|
|
664
|
+
vulnerableComponentUniqueId: S.String,
|
|
665
|
+
description: S.String,
|
|
666
|
+
isResolvable: S.Boolean,
|
|
667
|
+
remediationInstructions: S.String,
|
|
668
|
+
isReachable: S.optional(S.Boolean),
|
|
669
|
+
cveId: S.optional(S.String),
|
|
670
|
+
cvss3Vector: S.optional(S.String),
|
|
671
|
+
cvss3Score: S.optional(S.Number),
|
|
672
|
+
}),
|
|
673
|
+
).annotate({
|
|
674
|
+
identifier: "GetPackageVulnerabilityConnectorsResponseResourcesItem",
|
|
675
|
+
}) as any as S.Schema<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
|
|
676
|
+
|
|
677
|
+
export type GetPackageVulnerabilityConnectorsResponseResourcesList =
|
|
678
|
+
Array<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
|
|
679
|
+
export const GetPackageVulnerabilityConnectorsResponseResourcesList =
|
|
680
|
+
/*@__PURE__*/ S.Array(
|
|
681
|
+
GetPackageVulnerabilityConnectorsResponseResourcesItem,
|
|
682
|
+
) as any as S.Schema<GetPackageVulnerabilityConnectorsResponseResourcesList>;
|
|
683
|
+
|
|
684
|
+
export interface GetPackageVulnerabilityConnectorsResponse {
|
|
685
|
+
resources?: GetPackageVulnerabilityConnectorsResponseResourcesList;
|
|
686
|
+
}
|
|
687
|
+
export const GetPackageVulnerabilityConnectorsResponse =
|
|
688
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
689
|
+
S.Struct({
|
|
690
|
+
resources: S.optional(
|
|
691
|
+
GetPackageVulnerabilityConnectorsResponseResourcesList,
|
|
692
|
+
),
|
|
693
|
+
}),
|
|
694
|
+
).annotate({
|
|
695
|
+
identifier: "GetPackageVulnerabilityConnectorsResponse",
|
|
696
|
+
}) as any as S.Schema<GetPackageVulnerabilityConnectorsResponse>;
|
|
697
|
+
|
|
698
|
+
export interface GetSecretRequest {
|
|
699
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
700
|
+
resourceId: string;
|
|
701
|
+
}
|
|
702
|
+
export const GetSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
703
|
+
S.Struct({
|
|
704
|
+
resourceId: S.String.pipe(T.Query()),
|
|
705
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/secret", code: 200 })),
|
|
706
|
+
).annotate({
|
|
707
|
+
identifier: "GetSecretRequest",
|
|
708
|
+
}) as any as S.Schema<GetSecretRequest>;
|
|
709
|
+
|
|
710
|
+
export interface GetSecretResponseResourcesItem {
|
|
711
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
712
|
+
displayName: string;
|
|
713
|
+
/** A stable global identifier for this resource. */
|
|
714
|
+
uniqueId: string;
|
|
715
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
716
|
+
externalUrl: string;
|
|
717
|
+
/** The name of the secret. */
|
|
718
|
+
name: string;
|
|
719
|
+
/** A short description of the secret, if any. */
|
|
720
|
+
description: string;
|
|
721
|
+
/** When the secret was created. */
|
|
722
|
+
createdTimestamp: string;
|
|
723
|
+
/** The creator of the secret. */
|
|
724
|
+
creator: string;
|
|
725
|
+
/** The current owner of the secret. Vanta will check that every secret has a valid owner. */
|
|
726
|
+
owner: string;
|
|
727
|
+
/** When the secret was last updated. */
|
|
728
|
+
updatedTimestamp?: string;
|
|
729
|
+
/** When the secret was last accessed. */
|
|
730
|
+
lastAccessedTimestamp?: string;
|
|
731
|
+
/** When the secret is set to expire, if relevant. */
|
|
732
|
+
expiresTimestamp?: string;
|
|
733
|
+
}
|
|
734
|
+
export const GetSecretResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
735
|
+
S.Struct({
|
|
736
|
+
displayName: S.String,
|
|
737
|
+
uniqueId: S.String,
|
|
738
|
+
externalUrl: S.String,
|
|
739
|
+
name: S.String,
|
|
740
|
+
description: S.String,
|
|
741
|
+
createdTimestamp: S.String,
|
|
742
|
+
creator: S.String,
|
|
743
|
+
owner: S.String,
|
|
744
|
+
updatedTimestamp: S.optional(S.String),
|
|
745
|
+
lastAccessedTimestamp: S.optional(S.String),
|
|
746
|
+
expiresTimestamp: S.optional(S.String),
|
|
747
|
+
}),
|
|
748
|
+
).annotate({
|
|
749
|
+
identifier: "GetSecretResponseResourcesItem",
|
|
750
|
+
}) as any as S.Schema<GetSecretResponseResourcesItem>;
|
|
751
|
+
|
|
752
|
+
export type GetSecretResponseResourcesList =
|
|
753
|
+
Array<GetSecretResponseResourcesItem>;
|
|
754
|
+
export const GetSecretResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
755
|
+
GetSecretResponseResourcesItem,
|
|
756
|
+
) as any as S.Schema<GetSecretResponseResourcesList>;
|
|
757
|
+
|
|
758
|
+
export interface GetSecretResponse {
|
|
759
|
+
resources?: GetSecretResponseResourcesList;
|
|
760
|
+
}
|
|
761
|
+
export const GetSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
762
|
+
S.Struct({
|
|
763
|
+
resources: S.optional(GetSecretResponseResourcesList),
|
|
764
|
+
}),
|
|
765
|
+
).annotate({
|
|
766
|
+
identifier: "GetSecretResponse",
|
|
767
|
+
}) as any as S.Schema<GetSecretResponse>;
|
|
768
|
+
|
|
769
|
+
export interface GetSecurityTaskRequest {
|
|
770
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
771
|
+
resourceId: string;
|
|
772
|
+
}
|
|
773
|
+
export const GetSecurityTaskRequest = /*@__PURE__*/ S.suspend(() =>
|
|
774
|
+
S.Struct({
|
|
775
|
+
resourceId: S.String.pipe(T.Query()),
|
|
776
|
+
}).pipe(
|
|
777
|
+
T.Http({ method: "GET", uri: "/v1/resources/security_task", code: 200 }),
|
|
778
|
+
),
|
|
779
|
+
).annotate({
|
|
780
|
+
identifier: "GetSecurityTaskRequest",
|
|
781
|
+
}) as any as S.Schema<GetSecurityTaskRequest>;
|
|
782
|
+
|
|
783
|
+
/** The status of the task. If your application supports additional states, use the closest approximation. */
|
|
784
|
+
export type GetSecurityTaskResponseResourcesItemTaskState =
|
|
785
|
+
| "OPEN"
|
|
786
|
+
| "IN_PROGRESS"
|
|
787
|
+
| "CLOSED";
|
|
788
|
+
export const GetSecurityTaskResponseResourcesItemTaskState = S.String;
|
|
789
|
+
|
|
790
|
+
/** Priorities are mapped against SLAs for tasks. If your task system does not have fixed priorities, consider letting users configure priorities through labels. */
|
|
791
|
+
export type GetSecurityTaskResponseResourcesItemPriority =
|
|
792
|
+
| "P0"
|
|
793
|
+
| "P1"
|
|
794
|
+
| "P2"
|
|
795
|
+
| "P3"
|
|
796
|
+
| "P4";
|
|
797
|
+
export const GetSecurityTaskResponseResourcesItemPriority = S.String;
|
|
798
|
+
|
|
799
|
+
/** The set of users assigned to the tasks. Emails do not necessarily need to be Vanta users. */
|
|
800
|
+
export type GetSecurityTaskResponseResourcesItemAssigneesList = Array<string>;
|
|
801
|
+
export const GetSecurityTaskResponseResourcesItemAssigneesList =
|
|
802
|
+
/*@__PURE__*/ S.Array(
|
|
803
|
+
S.String,
|
|
804
|
+
) as any as S.Schema<GetSecurityTaskResponseResourcesItemAssigneesList>;
|
|
805
|
+
|
|
806
|
+
/** The set of task tags or labels. */
|
|
807
|
+
export type GetSecurityTaskResponseResourcesItemLabelsList = Array<string>;
|
|
808
|
+
export const GetSecurityTaskResponseResourcesItemLabelsList =
|
|
809
|
+
/*@__PURE__*/ S.Array(
|
|
810
|
+
S.String,
|
|
811
|
+
) as any as S.Schema<GetSecurityTaskResponseResourcesItemLabelsList>;
|
|
812
|
+
|
|
813
|
+
export interface GetSecurityTaskResponseResourcesItem {
|
|
814
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
815
|
+
displayName: string;
|
|
816
|
+
/** A stable global identifier for this resource. */
|
|
817
|
+
uniqueId: string;
|
|
818
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
819
|
+
externalUrl: string;
|
|
820
|
+
/** The task ID, as present in the source application. This will be shown in Vanta to help customers match tasks if necessary. */
|
|
821
|
+
taskId: string;
|
|
822
|
+
/** The title of the task, as present in the source application. This will be shown in Vanta to help customers match tasks if necessary. */
|
|
823
|
+
taskTitle: string;
|
|
824
|
+
/** When the task was created. */
|
|
825
|
+
createdTimestamp: string;
|
|
826
|
+
/** The status of the task. If your application supports additional states, use the closest approximation. */
|
|
827
|
+
taskState: GetSecurityTaskResponseResourcesItemTaskState;
|
|
828
|
+
/** Priorities are mapped against SLAs for tasks. If your task system does not have fixed priorities, consider letting users configure priorities through labels. */
|
|
829
|
+
priority: GetSecurityTaskResponseResourcesItemPriority;
|
|
830
|
+
/** The set of users assigned to the tasks. Emails do not necessarily need to be Vanta users. */
|
|
831
|
+
assignees: GetSecurityTaskResponseResourcesItemAssigneesList;
|
|
832
|
+
/** The creator of the task. */
|
|
833
|
+
creator: string;
|
|
834
|
+
/** The set of task tags or labels. */
|
|
835
|
+
labels: GetSecurityTaskResponseResourcesItemLabelsList;
|
|
836
|
+
/** When the task was closed, if the task was closed. Required if `taskState` is `CLOSED`, otherwise must be absent. */
|
|
837
|
+
closedTimestamp?: string;
|
|
838
|
+
/** When the task was last updated. */
|
|
839
|
+
updatedTimestamp?: string;
|
|
840
|
+
}
|
|
841
|
+
export const GetSecurityTaskResponseResourcesItem = /*@__PURE__*/ S.suspend(
|
|
842
|
+
() =>
|
|
843
|
+
S.Struct({
|
|
844
|
+
displayName: S.String,
|
|
845
|
+
uniqueId: S.String,
|
|
846
|
+
externalUrl: S.String,
|
|
847
|
+
taskId: S.String,
|
|
848
|
+
taskTitle: S.String,
|
|
849
|
+
createdTimestamp: S.String,
|
|
850
|
+
taskState: GetSecurityTaskResponseResourcesItemTaskState,
|
|
851
|
+
priority: GetSecurityTaskResponseResourcesItemPriority,
|
|
852
|
+
assignees: GetSecurityTaskResponseResourcesItemAssigneesList,
|
|
853
|
+
creator: S.String,
|
|
854
|
+
labels: GetSecurityTaskResponseResourcesItemLabelsList,
|
|
855
|
+
closedTimestamp: S.optional(S.String),
|
|
856
|
+
updatedTimestamp: S.optional(S.String),
|
|
857
|
+
}),
|
|
858
|
+
).annotate({
|
|
859
|
+
identifier: "GetSecurityTaskResponseResourcesItem",
|
|
860
|
+
}) as any as S.Schema<GetSecurityTaskResponseResourcesItem>;
|
|
861
|
+
|
|
862
|
+
export type GetSecurityTaskResponseResourcesList =
|
|
863
|
+
Array<GetSecurityTaskResponseResourcesItem>;
|
|
864
|
+
export const GetSecurityTaskResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
865
|
+
GetSecurityTaskResponseResourcesItem,
|
|
866
|
+
) as any as S.Schema<GetSecurityTaskResponseResourcesList>;
|
|
867
|
+
|
|
868
|
+
export interface GetSecurityTaskResponse {
|
|
869
|
+
resources?: GetSecurityTaskResponseResourcesList;
|
|
870
|
+
}
|
|
871
|
+
export const GetSecurityTaskResponse = /*@__PURE__*/ S.suspend(() =>
|
|
872
|
+
S.Struct({
|
|
873
|
+
resources: S.optional(GetSecurityTaskResponseResourcesList),
|
|
874
|
+
}),
|
|
875
|
+
).annotate({
|
|
876
|
+
identifier: "GetSecurityTaskResponse",
|
|
877
|
+
}) as any as S.Schema<GetSecurityTaskResponse>;
|
|
878
|
+
|
|
879
|
+
export interface GetStaticAnalysisCodeVulnerabilityConnectorsRequest {
|
|
880
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
881
|
+
resourceId: string;
|
|
882
|
+
}
|
|
883
|
+
export const GetStaticAnalysisCodeVulnerabilityConnectorsRequest =
|
|
884
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
885
|
+
S.Struct({
|
|
886
|
+
resourceId: S.String.pipe(T.Query()),
|
|
887
|
+
}).pipe(
|
|
888
|
+
T.Http({
|
|
889
|
+
method: "GET",
|
|
890
|
+
uri: "/v1/resources/static_analysis_code_vulnerability_connectors",
|
|
891
|
+
code: 200,
|
|
892
|
+
}),
|
|
893
|
+
),
|
|
894
|
+
).annotate({
|
|
895
|
+
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsRequest",
|
|
896
|
+
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsRequest>;
|
|
897
|
+
|
|
898
|
+
export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem {
|
|
899
|
+
/** The path to the file where the vulnerability was found. */
|
|
900
|
+
path: string;
|
|
901
|
+
/** The line number where the vulnerability begins. */
|
|
902
|
+
beginLine: number;
|
|
903
|
+
/** The line number where the vulnerability ends. */
|
|
904
|
+
endLine: number;
|
|
905
|
+
/** The column number where the vulnerability begins. */
|
|
906
|
+
beginColumn: number;
|
|
907
|
+
/** The column number where the vulnerability ends. */
|
|
908
|
+
endColumn: number;
|
|
909
|
+
}
|
|
910
|
+
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem =
|
|
911
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
912
|
+
S.Struct({
|
|
913
|
+
path: S.String,
|
|
914
|
+
beginLine: S.Number,
|
|
915
|
+
endLine: S.Number,
|
|
916
|
+
beginColumn: S.Number,
|
|
917
|
+
endColumn: S.Number,
|
|
918
|
+
}),
|
|
919
|
+
).annotate({
|
|
920
|
+
identifier:
|
|
921
|
+
"GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem",
|
|
922
|
+
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
923
|
+
|
|
924
|
+
/** The path to each point in the source code where a vulnerability has been revealed through static analysis. */
|
|
925
|
+
export type GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
926
|
+
Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
927
|
+
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
928
|
+
/*@__PURE__*/ S.Array(
|
|
929
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem,
|
|
930
|
+
) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList>;
|
|
931
|
+
|
|
932
|
+
export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem {
|
|
933
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
934
|
+
displayName: string;
|
|
935
|
+
/** A stable global identifier for this resource. */
|
|
936
|
+
uniqueId: string;
|
|
937
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
938
|
+
externalUrl: string;
|
|
939
|
+
/** The path to each point in the source code where a vulnerability has been revealed through static analysis. */
|
|
940
|
+
occurrences: GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList;
|
|
941
|
+
/** The severity of the vulnerability, on a scale of 0 to 10. */
|
|
942
|
+
severity: number;
|
|
943
|
+
/** The confidence in the vulnerability, on a scale of 0-10. */
|
|
944
|
+
confidence: number;
|
|
945
|
+
/** Whether the vulnerability can be resolved. */
|
|
946
|
+
isResolvable: boolean;
|
|
947
|
+
/** A unique identifier for the vulnerable component associated with the vulnerability. This must reference the `uniqueId` field in the a previously supplied `VulnerableComponent`. */
|
|
948
|
+
vulnerableComponentUniqueId: string;
|
|
949
|
+
/** A description of the vulnerability. */
|
|
950
|
+
description: string;
|
|
951
|
+
/** Instructions for remediating the vulnerability. */
|
|
952
|
+
remediationInstructions: string;
|
|
953
|
+
/** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
|
|
954
|
+
cveId?: string;
|
|
955
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
|
|
956
|
+
cvss3Vector?: string;
|
|
957
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
958
|
+
cvss3Score?: number;
|
|
959
|
+
}
|
|
960
|
+
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem =
|
|
961
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
962
|
+
S.Struct({
|
|
963
|
+
displayName: S.String,
|
|
964
|
+
uniqueId: S.String,
|
|
965
|
+
externalUrl: S.String,
|
|
966
|
+
occurrences:
|
|
967
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList,
|
|
968
|
+
severity: S.Number,
|
|
969
|
+
confidence: S.Number,
|
|
970
|
+
isResolvable: S.Boolean,
|
|
971
|
+
vulnerableComponentUniqueId: S.String,
|
|
972
|
+
description: S.String,
|
|
973
|
+
remediationInstructions: S.String,
|
|
974
|
+
cveId: S.optional(S.String),
|
|
975
|
+
cvss3Vector: S.optional(S.String),
|
|
976
|
+
cvss3Score: S.optional(S.Number),
|
|
977
|
+
}),
|
|
978
|
+
).annotate({
|
|
979
|
+
identifier:
|
|
980
|
+
"GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem",
|
|
981
|
+
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem>;
|
|
982
|
+
|
|
983
|
+
export type GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList =
|
|
984
|
+
Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem>;
|
|
985
|
+
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList =
|
|
986
|
+
/*@__PURE__*/ S.Array(
|
|
987
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem,
|
|
988
|
+
) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList>;
|
|
989
|
+
|
|
990
|
+
export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponse {
|
|
991
|
+
resources?: GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList;
|
|
992
|
+
}
|
|
993
|
+
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponse =
|
|
994
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
995
|
+
S.Struct({
|
|
996
|
+
resources: S.optional(
|
|
997
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList,
|
|
998
|
+
),
|
|
999
|
+
}),
|
|
1000
|
+
).annotate({
|
|
1001
|
+
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsResponse",
|
|
1002
|
+
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponse>;
|
|
1003
|
+
|
|
1004
|
+
export interface GetUserAccountRequest {
|
|
1005
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1006
|
+
resourceId: string;
|
|
1007
|
+
}
|
|
1008
|
+
export const GetUserAccountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1009
|
+
S.Struct({
|
|
1010
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1011
|
+
}).pipe(
|
|
1012
|
+
T.Http({ method: "GET", uri: "/v1/resources/user_account", code: 200 }),
|
|
1013
|
+
),
|
|
1014
|
+
).annotate({
|
|
1015
|
+
identifier: "GetUserAccountRequest",
|
|
1016
|
+
}) as any as S.Schema<GetUserAccountRequest>;
|
|
1017
|
+
|
|
1018
|
+
/** What the permission level of the user is. If your system supports more advanced roles, find the closest approximation. This will be used to help populate Vanta access reviews and help customers ensure that the right set of users have access to their relevant systems. */
|
|
1019
|
+
export type GetUserAccountResponseResourcesItemPermissionLevel =
|
|
1020
|
+
| "ADMIN"
|
|
1021
|
+
| "EDITOR"
|
|
1022
|
+
| "BASE";
|
|
1023
|
+
export const GetUserAccountResponseResourcesItemPermissionLevel = S.String;
|
|
1024
|
+
|
|
1025
|
+
/** 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. */
|
|
1026
|
+
export type GetUserAccountResponseResourcesItemStatus =
|
|
1027
|
+
| "ACTIVE"
|
|
1028
|
+
| "DEACTIVATED";
|
|
1029
|
+
export const GetUserAccountResponseResourcesItemStatus = S.String;
|
|
1030
|
+
|
|
1031
|
+
/** The individual MFA setting. */
|
|
1032
|
+
export type GetUserAccountResponseResourcesItemMfaMethodsItem =
|
|
1033
|
+
| "UNSUPPORTED"
|
|
1034
|
+
| "DISABLED"
|
|
1035
|
+
| "SMS"
|
|
1036
|
+
| "EMAIL"
|
|
1037
|
+
| "OTP"
|
|
1038
|
+
| "HARDWARE_TOKEN"
|
|
1039
|
+
| "PUSH_PROMPT";
|
|
1040
|
+
export const GetUserAccountResponseResourcesItemMfaMethodsItem = S.String;
|
|
1041
|
+
|
|
1042
|
+
/** 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. */
|
|
1043
|
+
export type GetUserAccountResponseResourcesItemMfaMethodsList =
|
|
1044
|
+
Array<GetUserAccountResponseResourcesItemMfaMethodsItem>;
|
|
1045
|
+
export const GetUserAccountResponseResourcesItemMfaMethodsList =
|
|
1046
|
+
/*@__PURE__*/ S.Array(
|
|
1047
|
+
GetUserAccountResponseResourcesItemMfaMethodsItem,
|
|
1048
|
+
) as any as S.Schema<GetUserAccountResponseResourcesItemMfaMethodsList>;
|
|
1049
|
+
|
|
1050
|
+
/** 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. */
|
|
1051
|
+
export type GetUserAccountResponseResourcesItemAuthMethod =
|
|
1052
|
+
| "SSO"
|
|
1053
|
+
| "PASSWORD"
|
|
1054
|
+
| "TOKEN"
|
|
1055
|
+
| "BIOMETRIC";
|
|
1056
|
+
export const GetUserAccountResponseResourcesItemAuthMethod = S.String;
|
|
1057
|
+
|
|
1058
|
+
/** 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. */
|
|
1059
|
+
export type GetUserAccountResponseResourcesItemGroupIdsList = Array<string>;
|
|
1060
|
+
export const GetUserAccountResponseResourcesItemGroupIdsList =
|
|
1061
|
+
/*@__PURE__*/ S.Array(
|
|
1062
|
+
S.String,
|
|
1063
|
+
) as any as S.Schema<GetUserAccountResponseResourcesItemGroupIdsList>;
|
|
1064
|
+
|
|
1065
|
+
export interface GetUserAccountResponseResourcesItem {
|
|
1066
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1067
|
+
displayName: string;
|
|
1068
|
+
/** A stable global identifier for this resource. */
|
|
1069
|
+
uniqueId: string;
|
|
1070
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
1071
|
+
externalUrl: string;
|
|
1072
|
+
/** The full name of the corresponding user. If your system splits name by given name and family name, send us space separated values. */
|
|
1073
|
+
fullName: string;
|
|
1074
|
+
/** In case a fullName is not relevant, like a machine account, populate this field. */
|
|
1075
|
+
accountName: string;
|
|
1076
|
+
/** The email address of the user. This lets us connect accounts to Vanta users. */
|
|
1077
|
+
email: string;
|
|
1078
|
+
/** What the permission level of the user is. If your system supports more advanced roles, find the closest approximation. This will be used to help populate Vanta access reviews and help customers ensure that the right set of users have access to their relevant systems. */
|
|
1079
|
+
permissionLevel: GetUserAccountResponseResourcesItemPermissionLevel;
|
|
1080
|
+
/** The time at which this user was created in the system. */
|
|
1081
|
+
createdTimestamp: string;
|
|
1082
|
+
/** 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. */
|
|
1083
|
+
status: GetUserAccountResponseResourcesItemStatus;
|
|
1084
|
+
/** This value is ignored if `authMethod` is SSO. */
|
|
1085
|
+
mfaEnabled: boolean;
|
|
1086
|
+
/** 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. */
|
|
1087
|
+
mfaMethods: GetUserAccountResponseResourcesItemMfaMethodsList;
|
|
1088
|
+
/** 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. */
|
|
1089
|
+
authMethod: GetUserAccountResponseResourcesItemAuthMethod;
|
|
1090
|
+
/** A human readable description of the user's role. */
|
|
1091
|
+
roleDescription?: string;
|
|
1092
|
+
/** The last time the user was updated in the system. */
|
|
1093
|
+
updatedTimestamp?: string;
|
|
1094
|
+
/** If the user is deactivated, the timestamp of that deactivation. */
|
|
1095
|
+
deactivatedTimestamp?: string;
|
|
1096
|
+
/** The time at which the user last logged in. */
|
|
1097
|
+
lastLoginTimestamp?: string;
|
|
1098
|
+
/** The time at which the user last reset their password. Helps with future Vanta functionality. */
|
|
1099
|
+
lastPasswordResetTimestamp?: string | Redacted.Redacted<string>;
|
|
1100
|
+
/** 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. */
|
|
1101
|
+
groupIds?: GetUserAccountResponseResourcesItemGroupIdsList;
|
|
1102
|
+
}
|
|
1103
|
+
export const GetUserAccountResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1104
|
+
S.Struct({
|
|
1105
|
+
displayName: S.String,
|
|
1106
|
+
uniqueId: S.String,
|
|
1107
|
+
externalUrl: S.String,
|
|
1108
|
+
fullName: S.String,
|
|
1109
|
+
accountName: S.String,
|
|
1110
|
+
email: S.String,
|
|
1111
|
+
permissionLevel: GetUserAccountResponseResourcesItemPermissionLevel,
|
|
1112
|
+
createdTimestamp: S.String,
|
|
1113
|
+
status: GetUserAccountResponseResourcesItemStatus,
|
|
1114
|
+
mfaEnabled: S.Boolean,
|
|
1115
|
+
mfaMethods: GetUserAccountResponseResourcesItemMfaMethodsList,
|
|
1116
|
+
authMethod: GetUserAccountResponseResourcesItemAuthMethod,
|
|
1117
|
+
roleDescription: S.optional(S.String),
|
|
1118
|
+
updatedTimestamp: S.optional(S.String),
|
|
1119
|
+
deactivatedTimestamp: S.optional(S.String),
|
|
1120
|
+
lastLoginTimestamp: S.optional(S.String),
|
|
1121
|
+
lastPasswordResetTimestamp: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1122
|
+
groupIds: S.optional(GetUserAccountResponseResourcesItemGroupIdsList),
|
|
1123
|
+
}),
|
|
1124
|
+
).annotate({
|
|
1125
|
+
identifier: "GetUserAccountResponseResourcesItem",
|
|
1126
|
+
}) as any as S.Schema<GetUserAccountResponseResourcesItem>;
|
|
1127
|
+
|
|
1128
|
+
export type GetUserAccountResponseResourcesList =
|
|
1129
|
+
Array<GetUserAccountResponseResourcesItem>;
|
|
1130
|
+
export const GetUserAccountResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
1131
|
+
GetUserAccountResponseResourcesItem,
|
|
1132
|
+
) as any as S.Schema<GetUserAccountResponseResourcesList>;
|
|
1133
|
+
|
|
1134
|
+
export interface GetUserAccountResponse {
|
|
1135
|
+
resources?: GetUserAccountResponseResourcesList;
|
|
1136
|
+
}
|
|
1137
|
+
export const GetUserAccountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1138
|
+
S.Struct({
|
|
1139
|
+
resources: S.optional(GetUserAccountResponseResourcesList),
|
|
1140
|
+
}),
|
|
1141
|
+
).annotate({
|
|
1142
|
+
identifier: "GetUserAccountResponse",
|
|
1143
|
+
}) as any as S.Schema<GetUserAccountResponse>;
|
|
1144
|
+
|
|
1145
|
+
export interface GetUserSecurityTrainingStatusRequest {
|
|
1146
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1147
|
+
resourceId: string;
|
|
1148
|
+
}
|
|
1149
|
+
export const GetUserSecurityTrainingStatusRequest = /*@__PURE__*/ S.suspend(
|
|
1150
|
+
() =>
|
|
1151
|
+
S.Struct({
|
|
1152
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1153
|
+
}).pipe(
|
|
1154
|
+
T.Http({
|
|
1155
|
+
method: "GET",
|
|
1156
|
+
uri: "/v1/resources/user_security_training_status",
|
|
1157
|
+
code: 200,
|
|
1158
|
+
}),
|
|
1159
|
+
),
|
|
1160
|
+
).annotate({
|
|
1161
|
+
identifier: "GetUserSecurityTrainingStatusRequest",
|
|
1162
|
+
}) as any as S.Schema<GetUserSecurityTrainingStatusRequest>;
|
|
1163
|
+
|
|
1164
|
+
/** The individual framework. */
|
|
1165
|
+
export type GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem =
|
|
1166
|
+
| "SOC2"
|
|
1167
|
+
| "ISO27001"
|
|
1168
|
+
| "HIPAA"
|
|
1169
|
+
| "PCI"
|
|
1170
|
+
| "GDPR"
|
|
1171
|
+
| "CCPA";
|
|
1172
|
+
export const GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem =
|
|
1173
|
+
S.String;
|
|
1174
|
+
|
|
1175
|
+
/** The set of compliance or other framework requirements that can be satisfied when an employee completes this training. */
|
|
1176
|
+
export type GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList =
|
|
1177
|
+
Array<GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem>;
|
|
1178
|
+
export const GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList =
|
|
1179
|
+
/*@__PURE__*/ S.Array(
|
|
1180
|
+
GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem,
|
|
1181
|
+
) as any as S.Schema<GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList>;
|
|
1182
|
+
|
|
1183
|
+
/** Whether the training has been fully completed. */
|
|
1184
|
+
export type GetUserSecurityTrainingStatusResponseResourcesItemStatus =
|
|
1185
|
+
| "INCOMPLETE"
|
|
1186
|
+
| "COMPLETE";
|
|
1187
|
+
export const GetUserSecurityTrainingStatusResponseResourcesItemStatus =
|
|
1188
|
+
S.String;
|
|
1189
|
+
|
|
1190
|
+
export interface GetUserSecurityTrainingStatusResponseResourcesItem {
|
|
1191
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1192
|
+
displayName: string;
|
|
1193
|
+
/** A stable global identifier for this resource. */
|
|
1194
|
+
uniqueId: string;
|
|
1195
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
1196
|
+
externalUrl: string;
|
|
1197
|
+
/** A stable ID of a training or a course. For example: gdpr-training-123. */
|
|
1198
|
+
trainingId: string;
|
|
1199
|
+
/** The name of the training. For example: "GDPR Training". */
|
|
1200
|
+
trainingName: string;
|
|
1201
|
+
/** The set of compliance or other framework requirements that can be satisfied when an employee completes this training. */
|
|
1202
|
+
frameworksFulfilled: GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList;
|
|
1203
|
+
/** The name of the user completing the training. */
|
|
1204
|
+
traineeFullName: string;
|
|
1205
|
+
/** The account name of the user completing the training. This field is mostly useful if the trainee doesn't have a name associated, but has an associated account with a username. */
|
|
1206
|
+
traineeAccountName: string;
|
|
1207
|
+
/** The email address of the user completing the training. */
|
|
1208
|
+
traineeEmail: string;
|
|
1209
|
+
/** Whether the training has been fully completed. */
|
|
1210
|
+
status: GetUserSecurityTrainingStatusResponseResourcesItemStatus;
|
|
1211
|
+
/** The time at which this training course was created. This field is useful as identifying metadata. */
|
|
1212
|
+
trainingCreatedTimestamp: string;
|
|
1213
|
+
/** The time at which this training course is due for the user. Vanta will check whether employees complete their training on time. */
|
|
1214
|
+
trainingDueTimestamp: string;
|
|
1215
|
+
/** The time at which this training course was completed by the user. */
|
|
1216
|
+
trainingCompletedTimestamp?: string;
|
|
1217
|
+
}
|
|
1218
|
+
export const GetUserSecurityTrainingStatusResponseResourcesItem =
|
|
1219
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1220
|
+
S.Struct({
|
|
1221
|
+
displayName: S.String,
|
|
1222
|
+
uniqueId: S.String,
|
|
1223
|
+
externalUrl: S.String,
|
|
1224
|
+
trainingId: S.String,
|
|
1225
|
+
trainingName: S.String,
|
|
1226
|
+
frameworksFulfilled:
|
|
1227
|
+
GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList,
|
|
1228
|
+
traineeFullName: S.String,
|
|
1229
|
+
traineeAccountName: S.String,
|
|
1230
|
+
traineeEmail: S.String,
|
|
1231
|
+
status: GetUserSecurityTrainingStatusResponseResourcesItemStatus,
|
|
1232
|
+
trainingCreatedTimestamp: S.String,
|
|
1233
|
+
trainingDueTimestamp: S.String,
|
|
1234
|
+
trainingCompletedTimestamp: S.optional(S.String),
|
|
1235
|
+
}),
|
|
1236
|
+
).annotate({
|
|
1237
|
+
identifier: "GetUserSecurityTrainingStatusResponseResourcesItem",
|
|
1238
|
+
}) as any as S.Schema<GetUserSecurityTrainingStatusResponseResourcesItem>;
|
|
1239
|
+
|
|
1240
|
+
export type GetUserSecurityTrainingStatusResponseResourcesList =
|
|
1241
|
+
Array<GetUserSecurityTrainingStatusResponseResourcesItem>;
|
|
1242
|
+
export const GetUserSecurityTrainingStatusResponseResourcesList =
|
|
1243
|
+
/*@__PURE__*/ S.Array(
|
|
1244
|
+
GetUserSecurityTrainingStatusResponseResourcesItem,
|
|
1245
|
+
) as any as S.Schema<GetUserSecurityTrainingStatusResponseResourcesList>;
|
|
1246
|
+
|
|
1247
|
+
export interface GetUserSecurityTrainingStatusResponse {
|
|
1248
|
+
resources?: GetUserSecurityTrainingStatusResponseResourcesList;
|
|
1249
|
+
}
|
|
1250
|
+
export const GetUserSecurityTrainingStatusResponse = /*@__PURE__*/ S.suspend(
|
|
1251
|
+
() =>
|
|
1252
|
+
S.Struct({
|
|
1253
|
+
resources: S.optional(GetUserSecurityTrainingStatusResponseResourcesList),
|
|
1254
|
+
}),
|
|
1255
|
+
).annotate({
|
|
1256
|
+
identifier: "GetUserSecurityTrainingStatusResponse",
|
|
1257
|
+
}) as any as S.Schema<GetUserSecurityTrainingStatusResponse>;
|
|
1258
|
+
|
|
1259
|
+
export interface GetVulnerableComponentRequest {
|
|
1260
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1261
|
+
resourceId: string;
|
|
1262
|
+
}
|
|
1263
|
+
export const GetVulnerableComponentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1264
|
+
S.Struct({
|
|
1265
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1266
|
+
}).pipe(
|
|
1267
|
+
T.Http({
|
|
1268
|
+
method: "GET",
|
|
1269
|
+
uri: "/v1/resources/vulnerable_component",
|
|
1270
|
+
code: 200,
|
|
1271
|
+
}),
|
|
1272
|
+
),
|
|
1273
|
+
).annotate({
|
|
1274
|
+
identifier: "GetVulnerableComponentRequest",
|
|
1275
|
+
}) as any as S.Schema<GetVulnerableComponentRequest>;
|
|
1276
|
+
|
|
1277
|
+
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
1278
|
+
export type GetVulnerableComponentResponseResourcesItemTargetType =
|
|
1279
|
+
| "HOST"
|
|
1280
|
+
| "SERVER"
|
|
1281
|
+
| "CONTAINER"
|
|
1282
|
+
| "CONTAINER_REPOSITORY"
|
|
1283
|
+
| "CONTAINER_REPOSITORY_IMAGE"
|
|
1284
|
+
| "CODE_REPOSITORY"
|
|
1285
|
+
| "SERVERLESS_FUNCTION"
|
|
1286
|
+
| "MANIFEST_FILE"
|
|
1287
|
+
| "WORKSTATION"
|
|
1288
|
+
| "OTHER";
|
|
1289
|
+
export const GetVulnerableComponentResponseResourcesItemTargetType = S.String;
|
|
1290
|
+
|
|
1291
|
+
export interface GetVulnerableComponentResponseResourcesItem {
|
|
1292
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1293
|
+
displayName: string;
|
|
1294
|
+
/** A stable global identifier for this resource. */
|
|
1295
|
+
uniqueId: string;
|
|
1296
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
1297
|
+
externalUrl: string;
|
|
1298
|
+
/** A timestamp that indicates when the data being sent was collected from the vulnerable component. In some cases, you may have staggered data collection for the various data being sent. In that case, feel free to use the latest collected timestamp for the individual data items to populate this field. */
|
|
1299
|
+
collectedTimestamp: string;
|
|
1300
|
+
/** The name of the system component in which a vulnerability has been detected. */
|
|
1301
|
+
name: string;
|
|
1302
|
+
/** Description of the system component in which a vulnerability has been detected. */
|
|
1303
|
+
description: string;
|
|
1304
|
+
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
1305
|
+
targetType: GetVulnerableComponentResponseResourcesItemTargetType;
|
|
1306
|
+
}
|
|
1307
|
+
export const GetVulnerableComponentResponseResourcesItem =
|
|
1308
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1309
|
+
S.Struct({
|
|
1310
|
+
displayName: S.String,
|
|
1311
|
+
uniqueId: S.String,
|
|
1312
|
+
externalUrl: S.String,
|
|
1313
|
+
collectedTimestamp: S.String,
|
|
1314
|
+
name: S.String,
|
|
1315
|
+
description: S.String,
|
|
1316
|
+
targetType: GetVulnerableComponentResponseResourcesItemTargetType,
|
|
1317
|
+
}),
|
|
1318
|
+
).annotate({
|
|
1319
|
+
identifier: "GetVulnerableComponentResponseResourcesItem",
|
|
1320
|
+
}) as any as S.Schema<GetVulnerableComponentResponseResourcesItem>;
|
|
1321
|
+
|
|
1322
|
+
export type GetVulnerableComponentResponseResourcesList =
|
|
1323
|
+
Array<GetVulnerableComponentResponseResourcesItem>;
|
|
1324
|
+
export const GetVulnerableComponentResponseResourcesList =
|
|
1325
|
+
/*@__PURE__*/ S.Array(
|
|
1326
|
+
GetVulnerableComponentResponseResourcesItem,
|
|
1327
|
+
) as any as S.Schema<GetVulnerableComponentResponseResourcesList>;
|
|
1328
|
+
|
|
1329
|
+
export interface GetVulnerableComponentResponse {
|
|
1330
|
+
resources?: GetVulnerableComponentResponseResourcesList;
|
|
1331
|
+
}
|
|
1332
|
+
export const GetVulnerableComponentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1333
|
+
S.Struct({
|
|
1334
|
+
resources: S.optional(GetVulnerableComponentResponseResourcesList),
|
|
1335
|
+
}),
|
|
1336
|
+
).annotate({
|
|
1337
|
+
identifier: "GetVulnerableComponentResponse",
|
|
1338
|
+
}) as any as S.Schema<GetVulnerableComponentResponse>;
|
|
1339
|
+
|
|
1340
|
+
export interface GetWindowsUserComputerRequest {
|
|
1341
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1342
|
+
resourceId: string;
|
|
1343
|
+
}
|
|
1344
|
+
export const GetWindowsUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1345
|
+
S.Struct({
|
|
1346
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1347
|
+
}).pipe(
|
|
1348
|
+
T.Http({
|
|
1349
|
+
method: "GET",
|
|
1350
|
+
uri: "/v1/resources/windows_user_computer",
|
|
1351
|
+
code: 200,
|
|
1352
|
+
}),
|
|
1353
|
+
),
|
|
1354
|
+
).annotate({
|
|
1355
|
+
identifier: "GetWindowsUserComputerRequest",
|
|
1356
|
+
}) as any as S.Schema<GetWindowsUserComputerRequest>;
|
|
1357
|
+
|
|
1358
|
+
export interface GetWindowsUserComputerResponseResourcesItemProgramsItem {
|
|
1359
|
+
/** The name of the application. */
|
|
1360
|
+
name: string;
|
|
1361
|
+
/** The last time the application was opened. */
|
|
1362
|
+
lastOpenedTimestamp?: string;
|
|
1363
|
+
}
|
|
1364
|
+
export const GetWindowsUserComputerResponseResourcesItemProgramsItem =
|
|
1365
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1366
|
+
S.Struct({
|
|
1367
|
+
name: S.String,
|
|
1368
|
+
lastOpenedTimestamp: S.optional(S.String),
|
|
1369
|
+
}),
|
|
1370
|
+
).annotate({
|
|
1371
|
+
identifier: "GetWindowsUserComputerResponseResourcesItemProgramsItem",
|
|
1372
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
|
|
1373
|
+
|
|
1374
|
+
/** All the installed programs on the Windows system. */
|
|
1375
|
+
export type GetWindowsUserComputerResponseResourcesItemProgramsList =
|
|
1376
|
+
Array<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
|
|
1377
|
+
export const GetWindowsUserComputerResponseResourcesItemProgramsList =
|
|
1378
|
+
/*@__PURE__*/ S.Array(
|
|
1379
|
+
GetWindowsUserComputerResponseResourcesItemProgramsItem,
|
|
1380
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemProgramsList>;
|
|
1381
|
+
|
|
1382
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
1383
|
+
export type GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser =
|
|
1384
|
+
| "CHROME"
|
|
1385
|
+
| "FIREFOX"
|
|
1386
|
+
| "OPERA"
|
|
1387
|
+
| "SAFARI"
|
|
1388
|
+
| "EDGE";
|
|
1389
|
+
export const GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser =
|
|
1390
|
+
S.String;
|
|
1391
|
+
|
|
1392
|
+
export interface GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem {
|
|
1393
|
+
/** The identifier of the browser extension. */
|
|
1394
|
+
extensionId: string;
|
|
1395
|
+
/** The name of the browser extension. */
|
|
1396
|
+
name: string;
|
|
1397
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
1398
|
+
browser: GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser;
|
|
1399
|
+
}
|
|
1400
|
+
export const GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem =
|
|
1401
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1402
|
+
S.Struct({
|
|
1403
|
+
extensionId: S.String,
|
|
1404
|
+
name: S.String,
|
|
1405
|
+
browser:
|
|
1406
|
+
GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser,
|
|
1407
|
+
}),
|
|
1408
|
+
).annotate({
|
|
1409
|
+
identifier:
|
|
1410
|
+
"GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem",
|
|
1411
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
1412
|
+
|
|
1413
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
1414
|
+
export type GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
1415
|
+
Array<GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
1416
|
+
export const GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
1417
|
+
/*@__PURE__*/ S.Array(
|
|
1418
|
+
GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem,
|
|
1419
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList>;
|
|
1420
|
+
|
|
1421
|
+
export interface GetWindowsUserComputerResponseResourcesItemDrivesItem {
|
|
1422
|
+
/** The name of the drive. */
|
|
1423
|
+
name: string;
|
|
1424
|
+
/** Does the drive have some sort of encryption on it. */
|
|
1425
|
+
encrypted: boolean;
|
|
1426
|
+
/** Metadata about the boot volume helps Vanta skip checking volumes that aren't relevant, like USB Drives. */
|
|
1427
|
+
isBootVolume?: boolean;
|
|
1428
|
+
}
|
|
1429
|
+
export const GetWindowsUserComputerResponseResourcesItemDrivesItem =
|
|
1430
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1431
|
+
S.Struct({
|
|
1432
|
+
name: S.String,
|
|
1433
|
+
encrypted: S.Boolean,
|
|
1434
|
+
isBootVolume: S.optional(S.Boolean),
|
|
1435
|
+
}),
|
|
1436
|
+
).annotate({
|
|
1437
|
+
identifier: "GetWindowsUserComputerResponseResourcesItemDrivesItem",
|
|
1438
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
|
|
1439
|
+
|
|
1440
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
1441
|
+
export type GetWindowsUserComputerResponseResourcesItemDrivesList =
|
|
1442
|
+
Array<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
|
|
1443
|
+
export const GetWindowsUserComputerResponseResourcesItemDrivesList =
|
|
1444
|
+
/*@__PURE__*/ S.Array(
|
|
1445
|
+
GetWindowsUserComputerResponseResourcesItemDrivesItem,
|
|
1446
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemDrivesList>;
|
|
1447
|
+
|
|
1448
|
+
export type GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem =
|
|
1449
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1450
|
+
export const GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem =
|
|
1451
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1452
|
+
|
|
1453
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
1454
|
+
export type GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
1455
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
1456
|
+
export const GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
1457
|
+
/*@__PURE__*/ S.Array(
|
|
1458
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1459
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList>;
|
|
1460
|
+
|
|
1461
|
+
export type GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
1462
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1463
|
+
export const GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
1464
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1465
|
+
|
|
1466
|
+
export interface GetWindowsUserComputerResponseResourcesItemUsersItem {
|
|
1467
|
+
/** The user's username. Does not have to be unique. */
|
|
1468
|
+
username: string;
|
|
1469
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
1470
|
+
screenlockPolicies: GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList;
|
|
1471
|
+
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1472
|
+
/** The last time the user logged in to the device, if available. */
|
|
1473
|
+
lastLoginTimestamp?: string;
|
|
1474
|
+
}
|
|
1475
|
+
export const GetWindowsUserComputerResponseResourcesItemUsersItem =
|
|
1476
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1477
|
+
S.Struct({
|
|
1478
|
+
username: S.String,
|
|
1479
|
+
screenlockPolicies:
|
|
1480
|
+
GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList,
|
|
1481
|
+
screenlockSettings:
|
|
1482
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1483
|
+
lastLoginTimestamp: S.optional(S.String),
|
|
1484
|
+
}),
|
|
1485
|
+
).annotate({
|
|
1486
|
+
identifier: "GetWindowsUserComputerResponseResourcesItemUsersItem",
|
|
1487
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemUsersItem>;
|
|
1488
|
+
|
|
1489
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
1490
|
+
export type GetWindowsUserComputerResponseResourcesItemUsersList =
|
|
1491
|
+
Array<GetWindowsUserComputerResponseResourcesItemUsersItem>;
|
|
1492
|
+
export const GetWindowsUserComputerResponseResourcesItemUsersList =
|
|
1493
|
+
/*@__PURE__*/ S.Array(
|
|
1494
|
+
GetWindowsUserComputerResponseResourcesItemUsersItem,
|
|
1495
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemUsersList>;
|
|
1496
|
+
|
|
1497
|
+
export type GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
1498
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1499
|
+
export const GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
1500
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1501
|
+
|
|
1502
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
1503
|
+
export type GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
1504
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
1505
|
+
export const GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
1506
|
+
/*@__PURE__*/ S.Array(
|
|
1507
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1508
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList>;
|
|
1509
|
+
|
|
1510
|
+
export type GetWindowsUserComputerResponseResourcesItemPasswordPolicy =
|
|
1511
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1512
|
+
export const GetWindowsUserComputerResponseResourcesItemPasswordPolicy =
|
|
1513
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1514
|
+
|
|
1515
|
+
/** The category of the security product. */
|
|
1516
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory =
|
|
1517
|
+
| "FIREWALL"
|
|
1518
|
+
| "ANTIVIRUS"
|
|
1519
|
+
| "ANTISPYWARE";
|
|
1520
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory =
|
|
1521
|
+
S.String;
|
|
1522
|
+
|
|
1523
|
+
/** The state of the security product. */
|
|
1524
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState =
|
|
1525
|
+
| "ON"
|
|
1526
|
+
| "OFF"
|
|
1527
|
+
| "UNKNOWN";
|
|
1528
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState =
|
|
1529
|
+
S.String;
|
|
1530
|
+
|
|
1531
|
+
export interface GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem {
|
|
1532
|
+
/** The name of the security product. */
|
|
1533
|
+
name: string;
|
|
1534
|
+
/** The category of the security product. */
|
|
1535
|
+
category: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory;
|
|
1536
|
+
/** The state of the security product. */
|
|
1537
|
+
state: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState;
|
|
1538
|
+
/** When this data was collected. */
|
|
1539
|
+
stateTimestamp: string;
|
|
1540
|
+
/** Whether the security signatures are up to date. */
|
|
1541
|
+
signaturesUpToDate: boolean;
|
|
1542
|
+
}
|
|
1543
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem =
|
|
1544
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1545
|
+
S.Struct({
|
|
1546
|
+
name: S.String,
|
|
1547
|
+
category:
|
|
1548
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory,
|
|
1549
|
+
state:
|
|
1550
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState,
|
|
1551
|
+
stateTimestamp: S.String,
|
|
1552
|
+
signaturesUpToDate: S.Boolean,
|
|
1553
|
+
}),
|
|
1554
|
+
).annotate({
|
|
1555
|
+
identifier:
|
|
1556
|
+
"GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem",
|
|
1557
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem>;
|
|
1558
|
+
|
|
1559
|
+
/** A list of services that are monitored by Windows Security Center (WSC). */
|
|
1560
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList =
|
|
1561
|
+
Array<GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem>;
|
|
1562
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList =
|
|
1563
|
+
/*@__PURE__*/ S.Array(
|
|
1564
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem,
|
|
1565
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList>;
|
|
1566
|
+
|
|
1567
|
+
/** The health of the monitored Firewall. */
|
|
1568
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall =
|
|
1569
|
+
| "GOOD"
|
|
1570
|
+
| "POOR"
|
|
1571
|
+
| "SNOOZED"
|
|
1572
|
+
| "NOT_MONITORED"
|
|
1573
|
+
| "ERROR";
|
|
1574
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall =
|
|
1575
|
+
S.String;
|
|
1576
|
+
|
|
1577
|
+
/** The health of the Windows Autoupdate feature. */
|
|
1578
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate =
|
|
1579
|
+
| "GOOD"
|
|
1580
|
+
| "POOR"
|
|
1581
|
+
| "SNOOZED"
|
|
1582
|
+
| "NOT_MONITORED"
|
|
1583
|
+
| "ERROR";
|
|
1584
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate =
|
|
1585
|
+
S.String;
|
|
1586
|
+
|
|
1587
|
+
/** The health of the monitored Antivirus solution. */
|
|
1588
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus =
|
|
1589
|
+
| "GOOD"
|
|
1590
|
+
| "POOR"
|
|
1591
|
+
| "SNOOZED"
|
|
1592
|
+
| "NOT_MONITORED"
|
|
1593
|
+
| "ERROR";
|
|
1594
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus =
|
|
1595
|
+
S.String;
|
|
1596
|
+
|
|
1597
|
+
/** The health of the Internet Settings. */
|
|
1598
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting =
|
|
1599
|
+
| "GOOD"
|
|
1600
|
+
| "POOR"
|
|
1601
|
+
| "SNOOZED"
|
|
1602
|
+
| "NOT_MONITORED"
|
|
1603
|
+
| "ERROR";
|
|
1604
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting =
|
|
1605
|
+
S.String;
|
|
1606
|
+
|
|
1607
|
+
/** The health of the User Account Control (UAC) capability in Windows. */
|
|
1608
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
1609
|
+
| "GOOD"
|
|
1610
|
+
| "POOR"
|
|
1611
|
+
| "SNOOZED"
|
|
1612
|
+
| "NOT_MONITORED"
|
|
1613
|
+
| "ERROR";
|
|
1614
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
1615
|
+
S.String;
|
|
1616
|
+
|
|
1617
|
+
/** The health of the Windows Security Center Service. */
|
|
1618
|
+
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
1619
|
+
| "GOOD"
|
|
1620
|
+
| "POOR"
|
|
1621
|
+
| "SNOOZED"
|
|
1622
|
+
| "NOT_MONITORED"
|
|
1623
|
+
| "ERROR";
|
|
1624
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
1625
|
+
S.String;
|
|
1626
|
+
|
|
1627
|
+
export interface GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter {
|
|
1628
|
+
/** The health of the monitored Firewall. */
|
|
1629
|
+
firewall: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall;
|
|
1630
|
+
/** The health of the Windows Autoupdate feature. */
|
|
1631
|
+
autoupdate: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate;
|
|
1632
|
+
/** The health of the monitored Antivirus solution. */
|
|
1633
|
+
antivirus: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus;
|
|
1634
|
+
/** The health of the Internet Settings. */
|
|
1635
|
+
internetSetting: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting;
|
|
1636
|
+
/** The health of the User Account Control (UAC) capability in Windows. */
|
|
1637
|
+
userAccountControl: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl;
|
|
1638
|
+
/** The health of the Windows Security Center Service. */
|
|
1639
|
+
windowsSecurityCenterService: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService;
|
|
1640
|
+
}
|
|
1641
|
+
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter =
|
|
1642
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1643
|
+
S.Struct({
|
|
1644
|
+
firewall:
|
|
1645
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall,
|
|
1646
|
+
autoupdate:
|
|
1647
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate,
|
|
1648
|
+
antivirus:
|
|
1649
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus,
|
|
1650
|
+
internetSetting:
|
|
1651
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting,
|
|
1652
|
+
userAccountControl:
|
|
1653
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl,
|
|
1654
|
+
windowsSecurityCenterService:
|
|
1655
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService,
|
|
1656
|
+
}),
|
|
1657
|
+
).annotate({
|
|
1658
|
+
identifier:
|
|
1659
|
+
"GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter",
|
|
1660
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter>;
|
|
1661
|
+
|
|
1662
|
+
export interface GetWindowsUserComputerResponseResourcesItem {
|
|
1663
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1664
|
+
displayName: string;
|
|
1665
|
+
/** A stable global identifier for this resource. */
|
|
1666
|
+
uniqueId: string;
|
|
1667
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
1668
|
+
externalUrl: string;
|
|
1669
|
+
/** A timestamp that indicates when the data being sent was collected from the host computer. In some cases, you may have staggered data collection for the various data being sent. In that case, feel free to use the latest collected timestamp for the individual data items to populate this field. */
|
|
1670
|
+
collectedTimestamp: string;
|
|
1671
|
+
/** The OS name. Example: `Windows 11`. */
|
|
1672
|
+
osName: string;
|
|
1673
|
+
/** The OS version. Example: `Version 10.0.22621`. */
|
|
1674
|
+
osVersion: string;
|
|
1675
|
+
/** The hardware UUID/UDID of the device. */
|
|
1676
|
+
hardwareUuid: string;
|
|
1677
|
+
/** The hardware serial number of the device. */
|
|
1678
|
+
serialNumber: string;
|
|
1679
|
+
/** All the installed programs on the Windows system. */
|
|
1680
|
+
programs: GetWindowsUserComputerResponseResourcesItemProgramsList;
|
|
1681
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
1682
|
+
browserExtensions: GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList;
|
|
1683
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
1684
|
+
drives: GetWindowsUserComputerResponseResourcesItemDrivesList;
|
|
1685
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
1686
|
+
users: GetWindowsUserComputerResponseResourcesItemUsersList;
|
|
1687
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
1688
|
+
systemScreenlockPolicies: GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList;
|
|
1689
|
+
/** Is the system managed by a Mobile Device Management system. */
|
|
1690
|
+
isManaged: boolean;
|
|
1691
|
+
/** Does the system have auto-updates enabled. */
|
|
1692
|
+
autoUpdatesEnabled: boolean;
|
|
1693
|
+
/** The email address of the owner of the system, if it's known. */
|
|
1694
|
+
owner?: string;
|
|
1695
|
+
passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1696
|
+
/** 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. */
|
|
1697
|
+
lastEnrolledTimestamp?: string;
|
|
1698
|
+
/** A list of services that are monitored by Windows Security Center (WSC). */
|
|
1699
|
+
windowsSecurityProducts?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList;
|
|
1700
|
+
windowsSecurityCenter?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter;
|
|
1701
|
+
}
|
|
1702
|
+
export const GetWindowsUserComputerResponseResourcesItem =
|
|
1703
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1704
|
+
S.Struct({
|
|
1705
|
+
displayName: S.String,
|
|
1706
|
+
uniqueId: S.String,
|
|
1707
|
+
externalUrl: S.String,
|
|
1708
|
+
collectedTimestamp: S.String,
|
|
1709
|
+
osName: S.String,
|
|
1710
|
+
osVersion: S.String,
|
|
1711
|
+
hardwareUuid: S.String,
|
|
1712
|
+
serialNumber: S.String,
|
|
1713
|
+
programs: GetWindowsUserComputerResponseResourcesItemProgramsList,
|
|
1714
|
+
browserExtensions:
|
|
1715
|
+
GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList,
|
|
1716
|
+
drives: GetWindowsUserComputerResponseResourcesItemDrivesList,
|
|
1717
|
+
users: GetWindowsUserComputerResponseResourcesItemUsersList,
|
|
1718
|
+
systemScreenlockPolicies:
|
|
1719
|
+
GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList,
|
|
1720
|
+
isManaged: S.Boolean,
|
|
1721
|
+
autoUpdatesEnabled: S.Boolean,
|
|
1722
|
+
owner: S.optional(S.String),
|
|
1723
|
+
passwordPolicy: S.optional(
|
|
1724
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy,
|
|
1725
|
+
),
|
|
1726
|
+
lastEnrolledTimestamp: S.optional(S.String),
|
|
1727
|
+
windowsSecurityProducts: S.optional(
|
|
1728
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList,
|
|
1729
|
+
),
|
|
1730
|
+
windowsSecurityCenter: S.optional(
|
|
1731
|
+
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter,
|
|
1732
|
+
),
|
|
1733
|
+
}),
|
|
1734
|
+
).annotate({
|
|
1735
|
+
identifier: "GetWindowsUserComputerResponseResourcesItem",
|
|
1736
|
+
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItem>;
|
|
1737
|
+
|
|
1738
|
+
export type GetWindowsUserComputerResponseResourcesList =
|
|
1739
|
+
Array<GetWindowsUserComputerResponseResourcesItem>;
|
|
1740
|
+
export const GetWindowsUserComputerResponseResourcesList =
|
|
1741
|
+
/*@__PURE__*/ S.Array(
|
|
1742
|
+
GetWindowsUserComputerResponseResourcesItem,
|
|
1743
|
+
) as any as S.Schema<GetWindowsUserComputerResponseResourcesList>;
|
|
1744
|
+
|
|
1745
|
+
export interface GetWindowsUserComputerResponse {
|
|
1746
|
+
resources?: GetWindowsUserComputerResponseResourcesList;
|
|
1747
|
+
}
|
|
1748
|
+
export const GetWindowsUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1749
|
+
S.Struct({
|
|
1750
|
+
resources: S.optional(GetWindowsUserComputerResponseResourcesList),
|
|
1751
|
+
}),
|
|
1752
|
+
).annotate({
|
|
1753
|
+
identifier: "GetWindowsUserComputerResponse",
|
|
1754
|
+
}) as any as S.Schema<GetWindowsUserComputerResponse>;
|
|
1755
|
+
|
|
1756
|
+
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsItem =
|
|
1757
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem;
|
|
1758
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsItem =
|
|
1759
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem;
|
|
1760
|
+
|
|
1761
|
+
/** The API params associated with this vulnerability. */
|
|
1762
|
+
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList =
|
|
1763
|
+
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem>;
|
|
1764
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList =
|
|
1765
|
+
/*@__PURE__*/ S.Array(
|
|
1766
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem,
|
|
1767
|
+
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList>;
|
|
1768
|
+
|
|
1769
|
+
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersItem =
|
|
1770
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem;
|
|
1771
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersItem =
|
|
1772
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem;
|
|
1773
|
+
|
|
1774
|
+
/** The API headers associated with this vulnerability. */
|
|
1775
|
+
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList =
|
|
1776
|
+
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem>;
|
|
1777
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList =
|
|
1778
|
+
/*@__PURE__*/ S.Array(
|
|
1779
|
+
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem,
|
|
1780
|
+
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList>;
|
|
1781
|
+
|
|
1782
|
+
export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem {
|
|
1783
|
+
/** Markdown description of this API endpoint vulnerability occurrence. */
|
|
1784
|
+
description: string;
|
|
1785
|
+
/** The API endpoint URL associated with this vulnerability occurrence. */
|
|
1786
|
+
fromUrl?: string;
|
|
1787
|
+
/** The API params associated with this vulnerability. */
|
|
1788
|
+
queryParams?: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList;
|
|
1789
|
+
/** The API headers associated with this vulnerability. */
|
|
1790
|
+
headers?: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList;
|
|
1791
|
+
/** The body of the request passed to the API, with sensitive information redacted. */
|
|
1792
|
+
body?: string;
|
|
1793
|
+
}
|
|
1794
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem =
|
|
1795
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1796
|
+
S.Struct({
|
|
1797
|
+
description: S.String,
|
|
1798
|
+
fromUrl: S.optional(S.String),
|
|
1799
|
+
queryParams: S.optional(
|
|
1800
|
+
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList,
|
|
1801
|
+
),
|
|
1802
|
+
headers: S.optional(
|
|
1803
|
+
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList,
|
|
1804
|
+
),
|
|
1805
|
+
body: S.optional(S.String),
|
|
1806
|
+
}),
|
|
1807
|
+
).annotate({
|
|
1808
|
+
identifier:
|
|
1809
|
+
"PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem",
|
|
1810
|
+
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem>;
|
|
1811
|
+
|
|
1812
|
+
/** A list of occurrences of vulnerable API endpoints. */
|
|
1813
|
+
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
1814
|
+
Array<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem>;
|
|
1815
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
1816
|
+
/*@__PURE__*/ S.Array(
|
|
1817
|
+
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem,
|
|
1818
|
+
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList>;
|
|
1819
|
+
|
|
1820
|
+
export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItem {
|
|
1821
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1822
|
+
displayName: string;
|
|
1823
|
+
/** A stable global identifier for this resource. */
|
|
1824
|
+
uniqueId: string;
|
|
1825
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
1826
|
+
externalUrl: string;
|
|
1827
|
+
/** A list of occurrences of vulnerable API endpoints. */
|
|
1828
|
+
occurrences: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList;
|
|
1829
|
+
/** The severity of the vulnerability, on a scale of 0 to 10. This will be rounded to the nearest tenth. */
|
|
1830
|
+
severity: number;
|
|
1831
|
+
/** A unique identifier for the vulnerable component associated with the vulnerability. This must reference the `uniqueId` field in the a previously supplied `VulnerableComponent`. */
|
|
1832
|
+
vulnerableComponentUniqueId: string;
|
|
1833
|
+
/** A description of the vulnerability. */
|
|
1834
|
+
description: string;
|
|
1835
|
+
/** Instructions for remediating the vulnerability. */
|
|
1836
|
+
remediationInstructions: string;
|
|
1837
|
+
/** The vulnerable URL. */
|
|
1838
|
+
url: string;
|
|
1839
|
+
/** The HTTP method (eg: GET, POST) associated with this vulnerability. */
|
|
1840
|
+
httpMethod: string;
|
|
1841
|
+
/** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
|
|
1842
|
+
cveId?: string;
|
|
1843
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
|
|
1844
|
+
cvss3Vector?: string;
|
|
1845
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
1846
|
+
cvss3Score?: number;
|
|
1847
|
+
}
|
|
1848
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItem =
|
|
1849
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1850
|
+
S.Struct({
|
|
1851
|
+
displayName: S.String,
|
|
1852
|
+
uniqueId: S.String,
|
|
1853
|
+
externalUrl: S.String,
|
|
1854
|
+
occurrences:
|
|
1855
|
+
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList,
|
|
1856
|
+
severity: S.Number,
|
|
1857
|
+
vulnerableComponentUniqueId: S.String,
|
|
1858
|
+
description: S.String,
|
|
1859
|
+
remediationInstructions: S.String,
|
|
1860
|
+
url: S.String,
|
|
1861
|
+
httpMethod: S.String,
|
|
1862
|
+
cveId: S.optional(S.String),
|
|
1863
|
+
cvss3Vector: S.optional(S.String),
|
|
1864
|
+
cvss3Score: S.optional(S.Number),
|
|
1865
|
+
}),
|
|
1866
|
+
).annotate({
|
|
1867
|
+
identifier: "PutApiEndpointVulnerabilityConnectorsRequestResourcesItem",
|
|
1868
|
+
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItem>;
|
|
1869
|
+
|
|
1870
|
+
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesList =
|
|
1871
|
+
Array<PutApiEndpointVulnerabilityConnectorsRequestResourcesItem>;
|
|
1872
|
+
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesList =
|
|
1873
|
+
/*@__PURE__*/ S.Array(
|
|
1874
|
+
PutApiEndpointVulnerabilityConnectorsRequestResourcesItem,
|
|
1875
|
+
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesList>;
|
|
1876
|
+
|
|
1877
|
+
export interface PutApiEndpointVulnerabilityConnectorsRequest {
|
|
1878
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1879
|
+
resourceId: string;
|
|
1880
|
+
resources: PutApiEndpointVulnerabilityConnectorsRequestResourcesList;
|
|
1881
|
+
}
|
|
1882
|
+
export const PutApiEndpointVulnerabilityConnectorsRequest =
|
|
1883
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1884
|
+
S.Struct({
|
|
1885
|
+
resourceId: S.String,
|
|
1886
|
+
resources: PutApiEndpointVulnerabilityConnectorsRequestResourcesList,
|
|
1887
|
+
}).pipe(
|
|
1888
|
+
T.Http({
|
|
1889
|
+
method: "PUT",
|
|
1890
|
+
uri: "/v1/resources/api_endpoint_vulnerability_connectors",
|
|
1891
|
+
code: 200,
|
|
1892
|
+
}),
|
|
1893
|
+
),
|
|
1894
|
+
).annotate({
|
|
1895
|
+
identifier: "PutApiEndpointVulnerabilityConnectorsRequest",
|
|
1896
|
+
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequest>;
|
|
1897
|
+
|
|
1898
|
+
export interface PutApiEndpointVulnerabilityConnectorsResponse {
|
|
1899
|
+
success: boolean;
|
|
1900
|
+
}
|
|
1901
|
+
export const PutApiEndpointVulnerabilityConnectorsResponse =
|
|
1902
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1903
|
+
S.Struct({
|
|
1904
|
+
success: S.Boolean,
|
|
1905
|
+
}),
|
|
1906
|
+
).annotate({
|
|
1907
|
+
identifier: "PutApiEndpointVulnerabilityConnectorsResponse",
|
|
1908
|
+
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsResponse>;
|
|
1909
|
+
|
|
1910
|
+
/** The current status of the background check. */
|
|
1911
|
+
export type PutBackgroundCheckConnectorRequestResourcesItemStatus =
|
|
1912
|
+
| "INCOMPLETE"
|
|
1913
|
+
| "IN_PROGRESS"
|
|
1914
|
+
| "COMPLETE";
|
|
1915
|
+
export const PutBackgroundCheckConnectorRequestResourcesItemStatus = S.String;
|
|
1916
|
+
|
|
1917
|
+
export interface PutBackgroundCheckConnectorRequestResourcesItem {
|
|
1918
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1919
|
+
displayName: string;
|
|
1920
|
+
/** A stable global identifier for this resource. */
|
|
1921
|
+
uniqueId: string;
|
|
1922
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
1923
|
+
externalUrl: string;
|
|
1924
|
+
/** The full name of the employee or contractor undergoing the background check. */
|
|
1925
|
+
fullName: string;
|
|
1926
|
+
/** The email address of the employee or contractor undergoing the background check. */
|
|
1927
|
+
email: string;
|
|
1928
|
+
/** The current status of the background check. */
|
|
1929
|
+
status: PutBackgroundCheckConnectorRequestResourcesItemStatus | (string & {});
|
|
1930
|
+
/** If complete, the date of completion of the background check. */
|
|
1931
|
+
completionDate?: string;
|
|
1932
|
+
}
|
|
1933
|
+
export const PutBackgroundCheckConnectorRequestResourcesItem =
|
|
1934
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1935
|
+
S.Struct({
|
|
1936
|
+
displayName: S.String,
|
|
1937
|
+
uniqueId: S.String,
|
|
1938
|
+
externalUrl: S.String,
|
|
1939
|
+
fullName: S.String,
|
|
1940
|
+
email: S.String,
|
|
1941
|
+
status: PutBackgroundCheckConnectorRequestResourcesItemStatus,
|
|
1942
|
+
completionDate: S.optional(S.String),
|
|
1943
|
+
}),
|
|
1944
|
+
).annotate({
|
|
1945
|
+
identifier: "PutBackgroundCheckConnectorRequestResourcesItem",
|
|
1946
|
+
}) as any as S.Schema<PutBackgroundCheckConnectorRequestResourcesItem>;
|
|
1947
|
+
|
|
1948
|
+
export type PutBackgroundCheckConnectorRequestResourcesList =
|
|
1949
|
+
Array<PutBackgroundCheckConnectorRequestResourcesItem>;
|
|
1950
|
+
export const PutBackgroundCheckConnectorRequestResourcesList =
|
|
1951
|
+
/*@__PURE__*/ S.Array(
|
|
1952
|
+
PutBackgroundCheckConnectorRequestResourcesItem,
|
|
1953
|
+
) as any as S.Schema<PutBackgroundCheckConnectorRequestResourcesList>;
|
|
1954
|
+
|
|
1955
|
+
export interface PutBackgroundCheckConnectorRequest {
|
|
1956
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1957
|
+
resourceId: string;
|
|
1958
|
+
resources: PutBackgroundCheckConnectorRequestResourcesList;
|
|
1959
|
+
}
|
|
1960
|
+
export const PutBackgroundCheckConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1961
|
+
S.Struct({
|
|
1962
|
+
resourceId: S.String,
|
|
1963
|
+
resources: PutBackgroundCheckConnectorRequestResourcesList,
|
|
1964
|
+
}).pipe(
|
|
1965
|
+
T.Http({
|
|
1966
|
+
method: "PUT",
|
|
1967
|
+
uri: "/v1/resources/background_check_connector",
|
|
1968
|
+
code: 200,
|
|
1969
|
+
}),
|
|
1970
|
+
),
|
|
1971
|
+
).annotate({
|
|
1972
|
+
identifier: "PutBackgroundCheckConnectorRequest",
|
|
1973
|
+
}) as any as S.Schema<PutBackgroundCheckConnectorRequest>;
|
|
1974
|
+
|
|
1975
|
+
export interface PutBackgroundCheckConnectorResponse {
|
|
1976
|
+
success: boolean;
|
|
1977
|
+
}
|
|
1978
|
+
export const PutBackgroundCheckConnectorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1979
|
+
S.Struct({
|
|
1980
|
+
success: S.Boolean,
|
|
1981
|
+
}),
|
|
1982
|
+
).annotate({
|
|
1983
|
+
identifier: "PutBackgroundCheckConnectorResponse",
|
|
1984
|
+
}) as any as S.Schema<PutBackgroundCheckConnectorResponse>;
|
|
1985
|
+
|
|
1986
|
+
export type PutCustomResourceRequestResourcesItem =
|
|
1987
|
+
GetCustomResourceResponseResourcesItem;
|
|
1988
|
+
export const PutCustomResourceRequestResourcesItem =
|
|
1989
|
+
GetCustomResourceResponseResourcesItem;
|
|
1990
|
+
|
|
1991
|
+
export type PutCustomResourceRequestResourcesList =
|
|
1992
|
+
Array<GetCustomResourceResponseResourcesItem>;
|
|
1993
|
+
export const PutCustomResourceRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
1994
|
+
GetCustomResourceResponseResourcesItem,
|
|
1995
|
+
) as any as S.Schema<PutCustomResourceRequestResourcesList>;
|
|
1996
|
+
|
|
1997
|
+
export interface PutCustomResourceRequest {
|
|
1998
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
1999
|
+
resourceId: string;
|
|
2000
|
+
resources: PutCustomResourceRequestResourcesList;
|
|
2001
|
+
}
|
|
2002
|
+
export const PutCustomResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2003
|
+
S.Struct({
|
|
2004
|
+
resourceId: S.String,
|
|
2005
|
+
resources: PutCustomResourceRequestResourcesList,
|
|
2006
|
+
}).pipe(
|
|
2007
|
+
T.Http({ method: "PUT", uri: "/v1/resources/custom_resource", code: 200 }),
|
|
2008
|
+
),
|
|
2009
|
+
).annotate({
|
|
2010
|
+
identifier: "PutCustomResourceRequest",
|
|
2011
|
+
}) as any as S.Schema<PutCustomResourceRequest>;
|
|
2012
|
+
|
|
2013
|
+
export interface PutCustomResourceResponse {
|
|
2014
|
+
success: boolean;
|
|
2015
|
+
}
|
|
2016
|
+
export const PutCustomResourceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2017
|
+
S.Struct({
|
|
2018
|
+
success: S.Boolean,
|
|
2019
|
+
}),
|
|
2020
|
+
).annotate({
|
|
2021
|
+
identifier: "PutCustomResourceResponse",
|
|
2022
|
+
}) as any as S.Schema<PutCustomResourceResponse>;
|
|
2023
|
+
|
|
2024
|
+
export type PutMacosUserComputerRequestResourcesItemApplicationsItem =
|
|
2025
|
+
GetMacosUserComputerResponseResourcesItemApplicationsItem;
|
|
2026
|
+
export const PutMacosUserComputerRequestResourcesItemApplicationsItem =
|
|
2027
|
+
GetMacosUserComputerResponseResourcesItemApplicationsItem;
|
|
2028
|
+
|
|
2029
|
+
/** All the installed Mac Apps on the system. */
|
|
2030
|
+
export type PutMacosUserComputerRequestResourcesItemApplicationsList =
|
|
2031
|
+
Array<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
|
|
2032
|
+
export const PutMacosUserComputerRequestResourcesItemApplicationsList =
|
|
2033
|
+
/*@__PURE__*/ S.Array(
|
|
2034
|
+
GetMacosUserComputerResponseResourcesItemApplicationsItem,
|
|
2035
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemApplicationsList>;
|
|
2036
|
+
|
|
2037
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
2038
|
+
export type PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser =
|
|
2039
|
+
| "CHROME"
|
|
2040
|
+
| "FIREFOX"
|
|
2041
|
+
| "OPERA"
|
|
2042
|
+
| "SAFARI"
|
|
2043
|
+
| "EDGE";
|
|
2044
|
+
export const PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser =
|
|
2045
|
+
S.String;
|
|
2046
|
+
|
|
2047
|
+
export interface PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem {
|
|
2048
|
+
/** The identifier of the browser extension. */
|
|
2049
|
+
extensionId: string;
|
|
2050
|
+
/** The name of the browser extension. */
|
|
2051
|
+
name: string;
|
|
2052
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
2053
|
+
browser:
|
|
2054
|
+
| PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser
|
|
2055
|
+
| (string & {});
|
|
2056
|
+
}
|
|
2057
|
+
export const PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem =
|
|
2058
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2059
|
+
S.Struct({
|
|
2060
|
+
extensionId: S.String,
|
|
2061
|
+
name: S.String,
|
|
2062
|
+
browser:
|
|
2063
|
+
PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser,
|
|
2064
|
+
}),
|
|
2065
|
+
).annotate({
|
|
2066
|
+
identifier: "PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem",
|
|
2067
|
+
}) as any as S.Schema<PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
2068
|
+
|
|
2069
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
2070
|
+
export type PutMacosUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
2071
|
+
Array<PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
2072
|
+
export const PutMacosUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
2073
|
+
/*@__PURE__*/ S.Array(
|
|
2074
|
+
PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem,
|
|
2075
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemBrowserExtensionsList>;
|
|
2076
|
+
|
|
2077
|
+
export type PutMacosUserComputerRequestResourcesItemDrivesItem =
|
|
2078
|
+
GetMacosUserComputerResponseResourcesItemDrivesItem;
|
|
2079
|
+
export const PutMacosUserComputerRequestResourcesItemDrivesItem =
|
|
2080
|
+
GetMacosUserComputerResponseResourcesItemDrivesItem;
|
|
2081
|
+
|
|
2082
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
2083
|
+
export type PutMacosUserComputerRequestResourcesItemDrivesList =
|
|
2084
|
+
Array<GetMacosUserComputerResponseResourcesItemDrivesItem>;
|
|
2085
|
+
export const PutMacosUserComputerRequestResourcesItemDrivesList =
|
|
2086
|
+
/*@__PURE__*/ S.Array(
|
|
2087
|
+
GetMacosUserComputerResponseResourcesItemDrivesItem,
|
|
2088
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemDrivesList>;
|
|
2089
|
+
|
|
2090
|
+
export type PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
2091
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2092
|
+
export const PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
2093
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2094
|
+
|
|
2095
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
2096
|
+
export type PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
2097
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
2098
|
+
export const PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
2099
|
+
/*@__PURE__*/ S.Array(
|
|
2100
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2101
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList>;
|
|
2102
|
+
|
|
2103
|
+
export type PutMacosUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
2104
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2105
|
+
export const PutMacosUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
2106
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2107
|
+
|
|
2108
|
+
export interface PutMacosUserComputerRequestResourcesItemUsersItem {
|
|
2109
|
+
/** The user's username. Does not have to be unique. */
|
|
2110
|
+
username: string;
|
|
2111
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
2112
|
+
screenlockPolicies: PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList;
|
|
2113
|
+
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2114
|
+
/** The last time the user logged in to the device, if available. */
|
|
2115
|
+
lastLoginTimestamp?: string;
|
|
2116
|
+
}
|
|
2117
|
+
export const PutMacosUserComputerRequestResourcesItemUsersItem =
|
|
2118
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2119
|
+
S.Struct({
|
|
2120
|
+
username: S.String,
|
|
2121
|
+
screenlockPolicies:
|
|
2122
|
+
PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList,
|
|
2123
|
+
screenlockSettings:
|
|
2124
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2125
|
+
lastLoginTimestamp: S.optional(S.String),
|
|
2126
|
+
}),
|
|
2127
|
+
).annotate({
|
|
2128
|
+
identifier: "PutMacosUserComputerRequestResourcesItemUsersItem",
|
|
2129
|
+
}) as any as S.Schema<PutMacosUserComputerRequestResourcesItemUsersItem>;
|
|
2130
|
+
|
|
2131
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
2132
|
+
export type PutMacosUserComputerRequestResourcesItemUsersList =
|
|
2133
|
+
Array<PutMacosUserComputerRequestResourcesItemUsersItem>;
|
|
2134
|
+
export const PutMacosUserComputerRequestResourcesItemUsersList =
|
|
2135
|
+
/*@__PURE__*/ S.Array(
|
|
2136
|
+
PutMacosUserComputerRequestResourcesItemUsersItem,
|
|
2137
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemUsersList>;
|
|
2138
|
+
|
|
2139
|
+
export type PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
2140
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2141
|
+
export const PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
2142
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2143
|
+
|
|
2144
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
2145
|
+
export type PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
2146
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
2147
|
+
export const PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
2148
|
+
/*@__PURE__*/ S.Array(
|
|
2149
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2150
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList>;
|
|
2151
|
+
|
|
2152
|
+
export type PutMacosUserComputerRequestResourcesItemPasswordPolicy =
|
|
2153
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
2154
|
+
export const PutMacosUserComputerRequestResourcesItemPasswordPolicy =
|
|
2155
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
2156
|
+
|
|
2157
|
+
export interface PutMacosUserComputerRequestResourcesItem {
|
|
2158
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2159
|
+
displayName: string;
|
|
2160
|
+
/** A stable global identifier for this resource. */
|
|
2161
|
+
uniqueId: string;
|
|
2162
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
2163
|
+
externalUrl: string;
|
|
2164
|
+
/** A timestamp that indicates when the data being sent was collected from the host computer. In some cases, you may have staggered data collection for the various data being sent. In that case, feel free to use the latest collected timestamp for the individual data items to populate this field. */
|
|
2165
|
+
collectedTimestamp: string;
|
|
2166
|
+
/** The OS name. Example: `MacOS Monterey`. */
|
|
2167
|
+
osName: string;
|
|
2168
|
+
/** The OS version. Example: `Version 12.4`. */
|
|
2169
|
+
osVersion: string;
|
|
2170
|
+
/** The hardware UUID/UDID of the device. */
|
|
2171
|
+
hardwareUuid: string;
|
|
2172
|
+
/** The hardware serial number of the device. */
|
|
2173
|
+
serialNumber: string;
|
|
2174
|
+
/** All the installed Mac Apps on the system. */
|
|
2175
|
+
applications: PutMacosUserComputerRequestResourcesItemApplicationsList;
|
|
2176
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
2177
|
+
browserExtensions: PutMacosUserComputerRequestResourcesItemBrowserExtensionsList;
|
|
2178
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
2179
|
+
drives: PutMacosUserComputerRequestResourcesItemDrivesList;
|
|
2180
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
2181
|
+
users: PutMacosUserComputerRequestResourcesItemUsersList;
|
|
2182
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
2183
|
+
systemScreenlockPolicies: PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList;
|
|
2184
|
+
/** Is the system managed by a Mobile Device Management system. */
|
|
2185
|
+
isManaged: boolean;
|
|
2186
|
+
/** Does the system have auto-updates enabled. */
|
|
2187
|
+
autoUpdatesEnabled: boolean;
|
|
2188
|
+
/** The email address of the owner of the system, if it's known. */
|
|
2189
|
+
owner?: string;
|
|
2190
|
+
passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
2191
|
+
/** 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. */
|
|
2192
|
+
lastEnrolledTimestamp?: string;
|
|
2193
|
+
/** Is XProtect enabled on the system. */
|
|
2194
|
+
isXProtectEnabled?: boolean;
|
|
2195
|
+
}
|
|
2196
|
+
export const PutMacosUserComputerRequestResourcesItem = /*@__PURE__*/ S.suspend(
|
|
2197
|
+
() =>
|
|
2198
|
+
S.Struct({
|
|
2199
|
+
displayName: S.String,
|
|
2200
|
+
uniqueId: S.String,
|
|
2201
|
+
externalUrl: S.String,
|
|
2202
|
+
collectedTimestamp: S.String,
|
|
2203
|
+
osName: S.String,
|
|
2204
|
+
osVersion: S.String,
|
|
2205
|
+
hardwareUuid: S.String,
|
|
2206
|
+
serialNumber: S.String,
|
|
2207
|
+
applications: PutMacosUserComputerRequestResourcesItemApplicationsList,
|
|
2208
|
+
browserExtensions:
|
|
2209
|
+
PutMacosUserComputerRequestResourcesItemBrowserExtensionsList,
|
|
2210
|
+
drives: PutMacosUserComputerRequestResourcesItemDrivesList,
|
|
2211
|
+
users: PutMacosUserComputerRequestResourcesItemUsersList,
|
|
2212
|
+
systemScreenlockPolicies:
|
|
2213
|
+
PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList,
|
|
2214
|
+
isManaged: S.Boolean,
|
|
2215
|
+
autoUpdatesEnabled: S.Boolean,
|
|
2216
|
+
owner: S.optional(S.String),
|
|
2217
|
+
passwordPolicy: S.optional(
|
|
2218
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy,
|
|
2219
|
+
),
|
|
2220
|
+
lastEnrolledTimestamp: S.optional(S.String),
|
|
2221
|
+
isXProtectEnabled: S.optional(S.Boolean),
|
|
2222
|
+
}),
|
|
2223
|
+
).annotate({
|
|
2224
|
+
identifier: "PutMacosUserComputerRequestResourcesItem",
|
|
2225
|
+
}) as any as S.Schema<PutMacosUserComputerRequestResourcesItem>;
|
|
2226
|
+
|
|
2227
|
+
export type PutMacosUserComputerRequestResourcesList =
|
|
2228
|
+
Array<PutMacosUserComputerRequestResourcesItem>;
|
|
2229
|
+
export const PutMacosUserComputerRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2230
|
+
PutMacosUserComputerRequestResourcesItem,
|
|
2231
|
+
) as any as S.Schema<PutMacosUserComputerRequestResourcesList>;
|
|
2232
|
+
|
|
2233
|
+
export interface PutMacosUserComputerRequest {
|
|
2234
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2235
|
+
resourceId: string;
|
|
2236
|
+
resources: PutMacosUserComputerRequestResourcesList;
|
|
2237
|
+
}
|
|
2238
|
+
export const PutMacosUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2239
|
+
S.Struct({
|
|
2240
|
+
resourceId: S.String,
|
|
2241
|
+
resources: PutMacosUserComputerRequestResourcesList,
|
|
2242
|
+
}).pipe(
|
|
2243
|
+
T.Http({
|
|
2244
|
+
method: "PUT",
|
|
2245
|
+
uri: "/v1/resources/macos_user_computer",
|
|
2246
|
+
code: 200,
|
|
2247
|
+
}),
|
|
2248
|
+
),
|
|
2249
|
+
).annotate({
|
|
2250
|
+
identifier: "PutMacosUserComputerRequest",
|
|
2251
|
+
}) as any as S.Schema<PutMacosUserComputerRequest>;
|
|
2252
|
+
|
|
2253
|
+
export interface PutMacosUserComputerResponse {
|
|
2254
|
+
success: boolean;
|
|
2255
|
+
}
|
|
2256
|
+
export const PutMacosUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2257
|
+
S.Struct({
|
|
2258
|
+
success: S.Boolean,
|
|
2259
|
+
}),
|
|
2260
|
+
).annotate({
|
|
2261
|
+
identifier: "PutMacosUserComputerResponse",
|
|
2262
|
+
}) as any as S.Schema<PutMacosUserComputerResponse>;
|
|
2263
|
+
|
|
2264
|
+
export type PutPackageVulnerabilityConnectorsRequestResourcesItem =
|
|
2265
|
+
GetPackageVulnerabilityConnectorsResponseResourcesItem;
|
|
2266
|
+
export const PutPackageVulnerabilityConnectorsRequestResourcesItem =
|
|
2267
|
+
GetPackageVulnerabilityConnectorsResponseResourcesItem;
|
|
2268
|
+
|
|
2269
|
+
export type PutPackageVulnerabilityConnectorsRequestResourcesList =
|
|
2270
|
+
Array<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
|
|
2271
|
+
export const PutPackageVulnerabilityConnectorsRequestResourcesList =
|
|
2272
|
+
/*@__PURE__*/ S.Array(
|
|
2273
|
+
GetPackageVulnerabilityConnectorsResponseResourcesItem,
|
|
2274
|
+
) as any as S.Schema<PutPackageVulnerabilityConnectorsRequestResourcesList>;
|
|
2275
|
+
|
|
2276
|
+
export interface PutPackageVulnerabilityConnectorsRequest {
|
|
2277
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2278
|
+
resourceId: string;
|
|
2279
|
+
resources: PutPackageVulnerabilityConnectorsRequestResourcesList;
|
|
2280
|
+
}
|
|
2281
|
+
export const PutPackageVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(
|
|
2282
|
+
() =>
|
|
2283
|
+
S.Struct({
|
|
2284
|
+
resourceId: S.String,
|
|
2285
|
+
resources: PutPackageVulnerabilityConnectorsRequestResourcesList,
|
|
2286
|
+
}).pipe(
|
|
2287
|
+
T.Http({
|
|
2288
|
+
method: "PUT",
|
|
2289
|
+
uri: "/v1/resources/package_vulnerability_connectors",
|
|
2290
|
+
code: 200,
|
|
2291
|
+
}),
|
|
2292
|
+
),
|
|
2293
|
+
).annotate({
|
|
2294
|
+
identifier: "PutPackageVulnerabilityConnectorsRequest",
|
|
2295
|
+
}) as any as S.Schema<PutPackageVulnerabilityConnectorsRequest>;
|
|
2296
|
+
|
|
2297
|
+
export interface PutPackageVulnerabilityConnectorsResponse {
|
|
2298
|
+
success: boolean;
|
|
2299
|
+
}
|
|
2300
|
+
export const PutPackageVulnerabilityConnectorsResponse =
|
|
2301
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2302
|
+
S.Struct({
|
|
2303
|
+
success: S.Boolean,
|
|
2304
|
+
}),
|
|
2305
|
+
).annotate({
|
|
2306
|
+
identifier: "PutPackageVulnerabilityConnectorsResponse",
|
|
2307
|
+
}) as any as S.Schema<PutPackageVulnerabilityConnectorsResponse>;
|
|
2308
|
+
|
|
2309
|
+
export type PutSecretRequestResourcesItem = GetSecretResponseResourcesItem;
|
|
2310
|
+
export const PutSecretRequestResourcesItem = GetSecretResponseResourcesItem;
|
|
2311
|
+
|
|
2312
|
+
export type PutSecretRequestResourcesList =
|
|
2313
|
+
Array<GetSecretResponseResourcesItem>;
|
|
2314
|
+
export const PutSecretRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2315
|
+
GetSecretResponseResourcesItem,
|
|
2316
|
+
) as any as S.Schema<PutSecretRequestResourcesList>;
|
|
2317
|
+
|
|
2318
|
+
export interface PutSecretRequest {
|
|
2319
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2320
|
+
resourceId: string;
|
|
2321
|
+
resources: PutSecretRequestResourcesList;
|
|
2322
|
+
}
|
|
2323
|
+
export const PutSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2324
|
+
S.Struct({
|
|
2325
|
+
resourceId: S.String,
|
|
2326
|
+
resources: PutSecretRequestResourcesList,
|
|
2327
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/secret", code: 200 })),
|
|
2328
|
+
).annotate({
|
|
2329
|
+
identifier: "PutSecretRequest",
|
|
2330
|
+
}) as any as S.Schema<PutSecretRequest>;
|
|
2331
|
+
|
|
2332
|
+
export interface PutSecretResponse {
|
|
2333
|
+
success: boolean;
|
|
2334
|
+
}
|
|
2335
|
+
export const PutSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2336
|
+
S.Struct({
|
|
2337
|
+
success: S.Boolean,
|
|
2338
|
+
}),
|
|
2339
|
+
).annotate({
|
|
2340
|
+
identifier: "PutSecretResponse",
|
|
2341
|
+
}) as any as S.Schema<PutSecretResponse>;
|
|
2342
|
+
|
|
2343
|
+
/** The status of the task. If your application supports additional states, use the closest approximation. */
|
|
2344
|
+
export type PutSecurityTaskRequestResourcesItemTaskState =
|
|
2345
|
+
| "OPEN"
|
|
2346
|
+
| "IN_PROGRESS"
|
|
2347
|
+
| "CLOSED";
|
|
2348
|
+
export const PutSecurityTaskRequestResourcesItemTaskState = S.String;
|
|
2349
|
+
|
|
2350
|
+
/** Priorities are mapped against SLAs for tasks. If your task system does not have fixed priorities, consider letting users configure priorities through labels. */
|
|
2351
|
+
export type PutSecurityTaskRequestResourcesItemPriority =
|
|
2352
|
+
| "P0"
|
|
2353
|
+
| "P1"
|
|
2354
|
+
| "P2"
|
|
2355
|
+
| "P3"
|
|
2356
|
+
| "P4";
|
|
2357
|
+
export const PutSecurityTaskRequestResourcesItemPriority = S.String;
|
|
2358
|
+
|
|
2359
|
+
/** The set of users assigned to the tasks. Emails do not necessarily need to be Vanta users. */
|
|
2360
|
+
export type PutSecurityTaskRequestResourcesItemAssigneesList = Array<string>;
|
|
2361
|
+
export const PutSecurityTaskRequestResourcesItemAssigneesList =
|
|
2362
|
+
/*@__PURE__*/ S.Array(
|
|
2363
|
+
S.String,
|
|
2364
|
+
) as any as S.Schema<PutSecurityTaskRequestResourcesItemAssigneesList>;
|
|
2365
|
+
|
|
2366
|
+
/** The set of task tags or labels. */
|
|
2367
|
+
export type PutSecurityTaskRequestResourcesItemLabelsList = Array<string>;
|
|
2368
|
+
export const PutSecurityTaskRequestResourcesItemLabelsList =
|
|
2369
|
+
/*@__PURE__*/ S.Array(
|
|
2370
|
+
S.String,
|
|
2371
|
+
) as any as S.Schema<PutSecurityTaskRequestResourcesItemLabelsList>;
|
|
2372
|
+
|
|
2373
|
+
export interface PutSecurityTaskRequestResourcesItem {
|
|
2374
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2375
|
+
displayName: string;
|
|
2376
|
+
/** A stable global identifier for this resource. */
|
|
2377
|
+
uniqueId: string;
|
|
2378
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
2379
|
+
externalUrl: string;
|
|
2380
|
+
/** The task ID, as present in the source application. This will be shown in Vanta to help customers match tasks if necessary. */
|
|
2381
|
+
taskId: string;
|
|
2382
|
+
/** The title of the task, as present in the source application. This will be shown in Vanta to help customers match tasks if necessary. */
|
|
2383
|
+
taskTitle: string;
|
|
2384
|
+
/** When the task was created. */
|
|
2385
|
+
createdTimestamp: string;
|
|
2386
|
+
/** The status of the task. If your application supports additional states, use the closest approximation. */
|
|
2387
|
+
taskState: PutSecurityTaskRequestResourcesItemTaskState | (string & {});
|
|
2388
|
+
/** Priorities are mapped against SLAs for tasks. If your task system does not have fixed priorities, consider letting users configure priorities through labels. */
|
|
2389
|
+
priority: PutSecurityTaskRequestResourcesItemPriority | (string & {});
|
|
2390
|
+
/** The set of users assigned to the tasks. Emails do not necessarily need to be Vanta users. */
|
|
2391
|
+
assignees: PutSecurityTaskRequestResourcesItemAssigneesList;
|
|
2392
|
+
/** The creator of the task. */
|
|
2393
|
+
creator: string;
|
|
2394
|
+
/** The set of task tags or labels. */
|
|
2395
|
+
labels: PutSecurityTaskRequestResourcesItemLabelsList;
|
|
2396
|
+
/** When the task was closed, if the task was closed. Required if `taskState` is `CLOSED`, otherwise must be absent. */
|
|
2397
|
+
closedTimestamp?: string;
|
|
2398
|
+
/** When the task was last updated. */
|
|
2399
|
+
updatedTimestamp?: string;
|
|
2400
|
+
}
|
|
2401
|
+
export const PutSecurityTaskRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2402
|
+
S.Struct({
|
|
2403
|
+
displayName: S.String,
|
|
2404
|
+
uniqueId: S.String,
|
|
2405
|
+
externalUrl: S.String,
|
|
2406
|
+
taskId: S.String,
|
|
2407
|
+
taskTitle: S.String,
|
|
2408
|
+
createdTimestamp: S.String,
|
|
2409
|
+
taskState: PutSecurityTaskRequestResourcesItemTaskState,
|
|
2410
|
+
priority: PutSecurityTaskRequestResourcesItemPriority,
|
|
2411
|
+
assignees: PutSecurityTaskRequestResourcesItemAssigneesList,
|
|
2412
|
+
creator: S.String,
|
|
2413
|
+
labels: PutSecurityTaskRequestResourcesItemLabelsList,
|
|
2414
|
+
closedTimestamp: S.optional(S.String),
|
|
2415
|
+
updatedTimestamp: S.optional(S.String),
|
|
2416
|
+
}),
|
|
2417
|
+
).annotate({
|
|
2418
|
+
identifier: "PutSecurityTaskRequestResourcesItem",
|
|
2419
|
+
}) as any as S.Schema<PutSecurityTaskRequestResourcesItem>;
|
|
2420
|
+
|
|
2421
|
+
export type PutSecurityTaskRequestResourcesList =
|
|
2422
|
+
Array<PutSecurityTaskRequestResourcesItem>;
|
|
2423
|
+
export const PutSecurityTaskRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2424
|
+
PutSecurityTaskRequestResourcesItem,
|
|
2425
|
+
) as any as S.Schema<PutSecurityTaskRequestResourcesList>;
|
|
2426
|
+
|
|
2427
|
+
export interface PutSecurityTaskRequest {
|
|
2428
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2429
|
+
resourceId: string;
|
|
2430
|
+
resources: PutSecurityTaskRequestResourcesList;
|
|
2431
|
+
}
|
|
2432
|
+
export const PutSecurityTaskRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2433
|
+
S.Struct({
|
|
2434
|
+
resourceId: S.String,
|
|
2435
|
+
resources: PutSecurityTaskRequestResourcesList,
|
|
2436
|
+
}).pipe(
|
|
2437
|
+
T.Http({ method: "PUT", uri: "/v1/resources/security_task", code: 200 }),
|
|
2438
|
+
),
|
|
2439
|
+
).annotate({
|
|
2440
|
+
identifier: "PutSecurityTaskRequest",
|
|
2441
|
+
}) as any as S.Schema<PutSecurityTaskRequest>;
|
|
2442
|
+
|
|
2443
|
+
export interface PutSecurityTaskResponse {
|
|
2444
|
+
success: boolean;
|
|
2445
|
+
}
|
|
2446
|
+
export const PutSecurityTaskResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2447
|
+
S.Struct({
|
|
2448
|
+
success: S.Boolean,
|
|
2449
|
+
}),
|
|
2450
|
+
).annotate({
|
|
2451
|
+
identifier: "PutSecurityTaskResponse",
|
|
2452
|
+
}) as any as S.Schema<PutSecurityTaskResponse>;
|
|
2453
|
+
|
|
2454
|
+
export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesItem =
|
|
2455
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem;
|
|
2456
|
+
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesItem =
|
|
2457
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem;
|
|
2458
|
+
|
|
2459
|
+
/** The path to each point in the source code where a vulnerability has been revealed through static analysis. */
|
|
2460
|
+
export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
2461
|
+
Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
2462
|
+
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
2463
|
+
/*@__PURE__*/ S.Array(
|
|
2464
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem,
|
|
2465
|
+
) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList>;
|
|
2466
|
+
|
|
2467
|
+
export interface PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem {
|
|
2468
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2469
|
+
displayName: string;
|
|
2470
|
+
/** A stable global identifier for this resource. */
|
|
2471
|
+
uniqueId: string;
|
|
2472
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
2473
|
+
externalUrl: string;
|
|
2474
|
+
/** The path to each point in the source code where a vulnerability has been revealed through static analysis. */
|
|
2475
|
+
occurrences: PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList;
|
|
2476
|
+
/** The severity of the vulnerability, on a scale of 0 to 10. */
|
|
2477
|
+
severity: number;
|
|
2478
|
+
/** The confidence in the vulnerability, on a scale of 0-10. */
|
|
2479
|
+
confidence: number;
|
|
2480
|
+
/** Whether the vulnerability can be resolved. */
|
|
2481
|
+
isResolvable: boolean;
|
|
2482
|
+
/** A unique identifier for the vulnerable component associated with the vulnerability. This must reference the `uniqueId` field in the a previously supplied `VulnerableComponent`. */
|
|
2483
|
+
vulnerableComponentUniqueId: string;
|
|
2484
|
+
/** A description of the vulnerability. */
|
|
2485
|
+
description: string;
|
|
2486
|
+
/** Instructions for remediating the vulnerability. */
|
|
2487
|
+
remediationInstructions: string;
|
|
2488
|
+
/** The Common Vulnerabilities and Exposures (CVE) identifier for the vulnerability. This field is optional. */
|
|
2489
|
+
cveId?: string;
|
|
2490
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 vector for the vulnerability. This field is optional. */
|
|
2491
|
+
cvss3Vector?: string;
|
|
2492
|
+
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
2493
|
+
cvss3Score?: number;
|
|
2494
|
+
}
|
|
2495
|
+
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem =
|
|
2496
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2497
|
+
S.Struct({
|
|
2498
|
+
displayName: S.String,
|
|
2499
|
+
uniqueId: S.String,
|
|
2500
|
+
externalUrl: S.String,
|
|
2501
|
+
occurrences:
|
|
2502
|
+
PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList,
|
|
2503
|
+
severity: S.Number,
|
|
2504
|
+
confidence: S.Number,
|
|
2505
|
+
isResolvable: S.Boolean,
|
|
2506
|
+
vulnerableComponentUniqueId: S.String,
|
|
2507
|
+
description: S.String,
|
|
2508
|
+
remediationInstructions: S.String,
|
|
2509
|
+
cveId: S.optional(S.String),
|
|
2510
|
+
cvss3Vector: S.optional(S.String),
|
|
2511
|
+
cvss3Score: S.optional(S.Number),
|
|
2512
|
+
}),
|
|
2513
|
+
).annotate({
|
|
2514
|
+
identifier:
|
|
2515
|
+
"PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem",
|
|
2516
|
+
}) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem>;
|
|
2517
|
+
|
|
2518
|
+
export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList =
|
|
2519
|
+
Array<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem>;
|
|
2520
|
+
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList =
|
|
2521
|
+
/*@__PURE__*/ S.Array(
|
|
2522
|
+
PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem,
|
|
2523
|
+
) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList>;
|
|
2524
|
+
|
|
2525
|
+
export interface PutStaticAnalysisCodeVulnerabilityConnectorsRequest {
|
|
2526
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2527
|
+
resourceId: string;
|
|
2528
|
+
resources: PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList;
|
|
2529
|
+
}
|
|
2530
|
+
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequest =
|
|
2531
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2532
|
+
S.Struct({
|
|
2533
|
+
resourceId: S.String,
|
|
2534
|
+
resources:
|
|
2535
|
+
PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList,
|
|
2536
|
+
}).pipe(
|
|
2537
|
+
T.Http({
|
|
2538
|
+
method: "PUT",
|
|
2539
|
+
uri: "/v1/resources/static_analysis_code_vulnerability_connectors",
|
|
2540
|
+
code: 200,
|
|
2541
|
+
}),
|
|
2542
|
+
),
|
|
2543
|
+
).annotate({
|
|
2544
|
+
identifier: "PutStaticAnalysisCodeVulnerabilityConnectorsRequest",
|
|
2545
|
+
}) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequest>;
|
|
2546
|
+
|
|
2547
|
+
export interface PutStaticAnalysisCodeVulnerabilityConnectorsResponse {
|
|
2548
|
+
success: boolean;
|
|
2549
|
+
}
|
|
2550
|
+
export const PutStaticAnalysisCodeVulnerabilityConnectorsResponse =
|
|
2551
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2552
|
+
S.Struct({
|
|
2553
|
+
success: S.Boolean,
|
|
2554
|
+
}),
|
|
2555
|
+
).annotate({
|
|
2556
|
+
identifier: "PutStaticAnalysisCodeVulnerabilityConnectorsResponse",
|
|
2557
|
+
}) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsResponse>;
|
|
2558
|
+
|
|
2559
|
+
/** What the permission level of the user is. If your system supports more advanced roles, find the closest approximation. This will be used to help populate Vanta access reviews and help customers ensure that the right set of users have access to their relevant systems. */
|
|
2560
|
+
export type PutUserAccountRequestResourcesItemPermissionLevel =
|
|
2561
|
+
| "ADMIN"
|
|
2562
|
+
| "EDITOR"
|
|
2563
|
+
| "BASE";
|
|
2564
|
+
export const PutUserAccountRequestResourcesItemPermissionLevel = S.String;
|
|
2565
|
+
|
|
2566
|
+
/** 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. */
|
|
2567
|
+
export type PutUserAccountRequestResourcesItemStatus = "ACTIVE" | "DEACTIVATED";
|
|
2568
|
+
export const PutUserAccountRequestResourcesItemStatus = S.String;
|
|
2569
|
+
|
|
2570
|
+
/** The individual MFA setting. */
|
|
2571
|
+
export type PutUserAccountRequestResourcesItemMfaMethodsItem =
|
|
2572
|
+
| "UNSUPPORTED"
|
|
2573
|
+
| "DISABLED"
|
|
2574
|
+
| "SMS"
|
|
2575
|
+
| "EMAIL"
|
|
2576
|
+
| "OTP"
|
|
2577
|
+
| "HARDWARE_TOKEN"
|
|
2578
|
+
| "PUSH_PROMPT";
|
|
2579
|
+
export const PutUserAccountRequestResourcesItemMfaMethodsItem = S.String;
|
|
2580
|
+
|
|
2581
|
+
/** 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. */
|
|
2582
|
+
export type PutUserAccountRequestResourcesItemMfaMethodsList = Array<
|
|
2583
|
+
PutUserAccountRequestResourcesItemMfaMethodsItem | (string & {})
|
|
2584
|
+
>;
|
|
2585
|
+
export const PutUserAccountRequestResourcesItemMfaMethodsList =
|
|
2586
|
+
/*@__PURE__*/ S.Array(
|
|
2587
|
+
PutUserAccountRequestResourcesItemMfaMethodsItem,
|
|
2588
|
+
) as any as S.Schema<PutUserAccountRequestResourcesItemMfaMethodsList>;
|
|
2589
|
+
|
|
2590
|
+
/** 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. */
|
|
2591
|
+
export type PutUserAccountRequestResourcesItemAuthMethod =
|
|
2592
|
+
| "SSO"
|
|
2593
|
+
| "PASSWORD"
|
|
2594
|
+
| "TOKEN"
|
|
2595
|
+
| "BIOMETRIC";
|
|
2596
|
+
export const PutUserAccountRequestResourcesItemAuthMethod = S.String;
|
|
2597
|
+
|
|
2598
|
+
/** 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. */
|
|
2599
|
+
export type PutUserAccountRequestResourcesItemGroupIdsList = Array<string>;
|
|
2600
|
+
export const PutUserAccountRequestResourcesItemGroupIdsList =
|
|
2601
|
+
/*@__PURE__*/ S.Array(
|
|
2602
|
+
S.String,
|
|
2603
|
+
) as any as S.Schema<PutUserAccountRequestResourcesItemGroupIdsList>;
|
|
2604
|
+
|
|
2605
|
+
export interface PutUserAccountRequestResourcesItem {
|
|
2606
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2607
|
+
displayName: string;
|
|
2608
|
+
/** A stable global identifier for this resource. */
|
|
2609
|
+
uniqueId: string;
|
|
2610
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
2611
|
+
externalUrl: string;
|
|
2612
|
+
/** The full name of the corresponding user. If your system splits name by given name and family name, send us space separated values. */
|
|
2613
|
+
fullName: string;
|
|
2614
|
+
/** In case a fullName is not relevant, like a machine account, populate this field. */
|
|
2615
|
+
accountName: string;
|
|
2616
|
+
/** The email address of the user. This lets us connect accounts to Vanta users. */
|
|
2617
|
+
email: string;
|
|
2618
|
+
/** What the permission level of the user is. If your system supports more advanced roles, find the closest approximation. This will be used to help populate Vanta access reviews and help customers ensure that the right set of users have access to their relevant systems. */
|
|
2619
|
+
permissionLevel:
|
|
2620
|
+
| PutUserAccountRequestResourcesItemPermissionLevel
|
|
2621
|
+
| (string & {});
|
|
2622
|
+
/** The time at which this user was created in the system. */
|
|
2623
|
+
createdTimestamp: string;
|
|
2624
|
+
/** 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. */
|
|
2625
|
+
status: PutUserAccountRequestResourcesItemStatus | (string & {});
|
|
2626
|
+
/** This value is ignored if `authMethod` is SSO. */
|
|
2627
|
+
mfaEnabled: boolean;
|
|
2628
|
+
/** 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. */
|
|
2629
|
+
mfaMethods: PutUserAccountRequestResourcesItemMfaMethodsList;
|
|
2630
|
+
/** 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. */
|
|
2631
|
+
authMethod: PutUserAccountRequestResourcesItemAuthMethod | (string & {});
|
|
2632
|
+
/** A human readable description of the user's role. */
|
|
2633
|
+
roleDescription?: string;
|
|
2634
|
+
/** The last time the user was updated in the system. */
|
|
2635
|
+
updatedTimestamp?: string;
|
|
2636
|
+
/** If the user is deactivated, the timestamp of that deactivation. */
|
|
2637
|
+
deactivatedTimestamp?: string;
|
|
2638
|
+
/** The time at which the user last logged in. */
|
|
2639
|
+
lastLoginTimestamp?: string;
|
|
2640
|
+
/** The time at which the user last reset their password. Helps with future Vanta functionality. */
|
|
2641
|
+
lastPasswordResetTimestamp?: string | Redacted.Redacted<string>;
|
|
2642
|
+
/** 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. */
|
|
2643
|
+
groupIds?: PutUserAccountRequestResourcesItemGroupIdsList;
|
|
2644
|
+
}
|
|
2645
|
+
export const PutUserAccountRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2646
|
+
S.Struct({
|
|
2647
|
+
displayName: S.String,
|
|
2648
|
+
uniqueId: S.String,
|
|
2649
|
+
externalUrl: S.String,
|
|
2650
|
+
fullName: S.String,
|
|
2651
|
+
accountName: S.String,
|
|
2652
|
+
email: S.String,
|
|
2653
|
+
permissionLevel: PutUserAccountRequestResourcesItemPermissionLevel,
|
|
2654
|
+
createdTimestamp: S.String,
|
|
2655
|
+
status: PutUserAccountRequestResourcesItemStatus,
|
|
2656
|
+
mfaEnabled: S.Boolean,
|
|
2657
|
+
mfaMethods: PutUserAccountRequestResourcesItemMfaMethodsList,
|
|
2658
|
+
authMethod: PutUserAccountRequestResourcesItemAuthMethod,
|
|
2659
|
+
roleDescription: S.optional(S.String),
|
|
2660
|
+
updatedTimestamp: S.optional(S.String),
|
|
2661
|
+
deactivatedTimestamp: S.optional(S.String),
|
|
2662
|
+
lastLoginTimestamp: S.optional(S.String),
|
|
2663
|
+
lastPasswordResetTimestamp: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2664
|
+
groupIds: S.optional(PutUserAccountRequestResourcesItemGroupIdsList),
|
|
2665
|
+
}),
|
|
2666
|
+
).annotate({
|
|
2667
|
+
identifier: "PutUserAccountRequestResourcesItem",
|
|
2668
|
+
}) as any as S.Schema<PutUserAccountRequestResourcesItem>;
|
|
2669
|
+
|
|
2670
|
+
export type PutUserAccountRequestResourcesList =
|
|
2671
|
+
Array<PutUserAccountRequestResourcesItem>;
|
|
2672
|
+
export const PutUserAccountRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2673
|
+
PutUserAccountRequestResourcesItem,
|
|
2674
|
+
) as any as S.Schema<PutUserAccountRequestResourcesList>;
|
|
2675
|
+
|
|
2676
|
+
export interface PutUserAccountRequest {
|
|
2677
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2678
|
+
resourceId: string;
|
|
2679
|
+
resources: PutUserAccountRequestResourcesList;
|
|
2680
|
+
}
|
|
2681
|
+
export const PutUserAccountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2682
|
+
S.Struct({
|
|
2683
|
+
resourceId: S.String,
|
|
2684
|
+
resources: PutUserAccountRequestResourcesList,
|
|
2685
|
+
}).pipe(
|
|
2686
|
+
T.Http({ method: "PUT", uri: "/v1/resources/user_account", code: 200 }),
|
|
2687
|
+
),
|
|
2688
|
+
).annotate({
|
|
2689
|
+
identifier: "PutUserAccountRequest",
|
|
2690
|
+
}) as any as S.Schema<PutUserAccountRequest>;
|
|
2691
|
+
|
|
2692
|
+
export interface PutUserAccountResponse {
|
|
2693
|
+
success: boolean;
|
|
2694
|
+
}
|
|
2695
|
+
export const PutUserAccountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2696
|
+
S.Struct({
|
|
2697
|
+
success: S.Boolean,
|
|
2698
|
+
}),
|
|
2699
|
+
).annotate({
|
|
2700
|
+
identifier: "PutUserAccountResponse",
|
|
2701
|
+
}) as any as S.Schema<PutUserAccountResponse>;
|
|
2702
|
+
|
|
2703
|
+
/** The individual framework. */
|
|
2704
|
+
export type PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem =
|
|
2705
|
+
| "SOC2"
|
|
2706
|
+
| "ISO27001"
|
|
2707
|
+
| "HIPAA"
|
|
2708
|
+
| "PCI"
|
|
2709
|
+
| "GDPR"
|
|
2710
|
+
| "CCPA";
|
|
2711
|
+
export const PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem =
|
|
2712
|
+
S.String;
|
|
2713
|
+
|
|
2714
|
+
/** The set of compliance or other framework requirements that can be satisfied when an employee completes this training. */
|
|
2715
|
+
export type PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList =
|
|
2716
|
+
Array<
|
|
2717
|
+
| PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem
|
|
2718
|
+
| (string & {})
|
|
2719
|
+
>;
|
|
2720
|
+
export const PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList =
|
|
2721
|
+
/*@__PURE__*/ S.Array(
|
|
2722
|
+
PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem,
|
|
2723
|
+
) as any as S.Schema<PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList>;
|
|
2724
|
+
|
|
2725
|
+
/** Whether the training has been fully completed. */
|
|
2726
|
+
export type PutUserSecurityTrainingStatusRequestResourcesItemStatus =
|
|
2727
|
+
| "INCOMPLETE"
|
|
2728
|
+
| "COMPLETE";
|
|
2729
|
+
export const PutUserSecurityTrainingStatusRequestResourcesItemStatus = S.String;
|
|
2730
|
+
|
|
2731
|
+
export interface PutUserSecurityTrainingStatusRequestResourcesItem {
|
|
2732
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2733
|
+
displayName: string;
|
|
2734
|
+
/** A stable global identifier for this resource. */
|
|
2735
|
+
uniqueId: string;
|
|
2736
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
2737
|
+
externalUrl: string;
|
|
2738
|
+
/** A stable ID of a training or a course. For example: gdpr-training-123. */
|
|
2739
|
+
trainingId: string;
|
|
2740
|
+
/** The name of the training. For example: "GDPR Training". */
|
|
2741
|
+
trainingName: string;
|
|
2742
|
+
/** The set of compliance or other framework requirements that can be satisfied when an employee completes this training. */
|
|
2743
|
+
frameworksFulfilled: PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList;
|
|
2744
|
+
/** The name of the user completing the training. */
|
|
2745
|
+
traineeFullName: string;
|
|
2746
|
+
/** The account name of the user completing the training. This field is mostly useful if the trainee doesn't have a name associated, but has an associated account with a username. */
|
|
2747
|
+
traineeAccountName: string;
|
|
2748
|
+
/** The email address of the user completing the training. */
|
|
2749
|
+
traineeEmail: string;
|
|
2750
|
+
/** Whether the training has been fully completed. */
|
|
2751
|
+
status:
|
|
2752
|
+
| PutUserSecurityTrainingStatusRequestResourcesItemStatus
|
|
2753
|
+
| (string & {});
|
|
2754
|
+
/** The time at which this training course was created. This field is useful as identifying metadata. */
|
|
2755
|
+
trainingCreatedTimestamp: string;
|
|
2756
|
+
/** The time at which this training course is due for the user. Vanta will check whether employees complete their training on time. */
|
|
2757
|
+
trainingDueTimestamp: string;
|
|
2758
|
+
/** The time at which this training course was completed by the user. */
|
|
2759
|
+
trainingCompletedTimestamp?: string;
|
|
2760
|
+
}
|
|
2761
|
+
export const PutUserSecurityTrainingStatusRequestResourcesItem =
|
|
2762
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2763
|
+
S.Struct({
|
|
2764
|
+
displayName: S.String,
|
|
2765
|
+
uniqueId: S.String,
|
|
2766
|
+
externalUrl: S.String,
|
|
2767
|
+
trainingId: S.String,
|
|
2768
|
+
trainingName: S.String,
|
|
2769
|
+
frameworksFulfilled:
|
|
2770
|
+
PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList,
|
|
2771
|
+
traineeFullName: S.String,
|
|
2772
|
+
traineeAccountName: S.String,
|
|
2773
|
+
traineeEmail: S.String,
|
|
2774
|
+
status: PutUserSecurityTrainingStatusRequestResourcesItemStatus,
|
|
2775
|
+
trainingCreatedTimestamp: S.String,
|
|
2776
|
+
trainingDueTimestamp: S.String,
|
|
2777
|
+
trainingCompletedTimestamp: S.optional(S.String),
|
|
2778
|
+
}),
|
|
2779
|
+
).annotate({
|
|
2780
|
+
identifier: "PutUserSecurityTrainingStatusRequestResourcesItem",
|
|
2781
|
+
}) as any as S.Schema<PutUserSecurityTrainingStatusRequestResourcesItem>;
|
|
2782
|
+
|
|
2783
|
+
export type PutUserSecurityTrainingStatusRequestResourcesList =
|
|
2784
|
+
Array<PutUserSecurityTrainingStatusRequestResourcesItem>;
|
|
2785
|
+
export const PutUserSecurityTrainingStatusRequestResourcesList =
|
|
2786
|
+
/*@__PURE__*/ S.Array(
|
|
2787
|
+
PutUserSecurityTrainingStatusRequestResourcesItem,
|
|
2788
|
+
) as any as S.Schema<PutUserSecurityTrainingStatusRequestResourcesList>;
|
|
2789
|
+
|
|
2790
|
+
export interface PutUserSecurityTrainingStatusRequest {
|
|
2791
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2792
|
+
resourceId: string;
|
|
2793
|
+
resources: PutUserSecurityTrainingStatusRequestResourcesList;
|
|
2794
|
+
}
|
|
2795
|
+
export const PutUserSecurityTrainingStatusRequest = /*@__PURE__*/ S.suspend(
|
|
2796
|
+
() =>
|
|
2797
|
+
S.Struct({
|
|
2798
|
+
resourceId: S.String,
|
|
2799
|
+
resources: PutUserSecurityTrainingStatusRequestResourcesList,
|
|
2800
|
+
}).pipe(
|
|
2801
|
+
T.Http({
|
|
2802
|
+
method: "PUT",
|
|
2803
|
+
uri: "/v1/resources/user_security_training_status",
|
|
2804
|
+
code: 200,
|
|
2805
|
+
}),
|
|
2806
|
+
),
|
|
2807
|
+
).annotate({
|
|
2808
|
+
identifier: "PutUserSecurityTrainingStatusRequest",
|
|
2809
|
+
}) as any as S.Schema<PutUserSecurityTrainingStatusRequest>;
|
|
2810
|
+
|
|
2811
|
+
export interface PutUserSecurityTrainingStatusResponse {
|
|
2812
|
+
success: boolean;
|
|
2813
|
+
}
|
|
2814
|
+
export const PutUserSecurityTrainingStatusResponse = /*@__PURE__*/ S.suspend(
|
|
2815
|
+
() =>
|
|
2816
|
+
S.Struct({
|
|
2817
|
+
success: S.Boolean,
|
|
2818
|
+
}),
|
|
2819
|
+
).annotate({
|
|
2820
|
+
identifier: "PutUserSecurityTrainingStatusResponse",
|
|
2821
|
+
}) as any as S.Schema<PutUserSecurityTrainingStatusResponse>;
|
|
2822
|
+
|
|
2823
|
+
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
2824
|
+
export type PutVulnerableComponentRequestResourcesItemTargetType =
|
|
2825
|
+
| "HOST"
|
|
2826
|
+
| "SERVER"
|
|
2827
|
+
| "CONTAINER"
|
|
2828
|
+
| "CONTAINER_REPOSITORY"
|
|
2829
|
+
| "CONTAINER_REPOSITORY_IMAGE"
|
|
2830
|
+
| "CODE_REPOSITORY"
|
|
2831
|
+
| "SERVERLESS_FUNCTION"
|
|
2832
|
+
| "MANIFEST_FILE"
|
|
2833
|
+
| "WORKSTATION"
|
|
2834
|
+
| "OTHER";
|
|
2835
|
+
export const PutVulnerableComponentRequestResourcesItemTargetType = S.String;
|
|
2836
|
+
|
|
2837
|
+
export interface PutVulnerableComponentRequestResourcesItem {
|
|
2838
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2839
|
+
displayName: string;
|
|
2840
|
+
/** A stable global identifier for this resource. */
|
|
2841
|
+
uniqueId: string;
|
|
2842
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
2843
|
+
externalUrl: string;
|
|
2844
|
+
/** A timestamp that indicates when the data being sent was collected from the vulnerable component. In some cases, you may have staggered data collection for the various data being sent. In that case, feel free to use the latest collected timestamp for the individual data items to populate this field. */
|
|
2845
|
+
collectedTimestamp: string;
|
|
2846
|
+
/** The name of the system component in which a vulnerability has been detected. */
|
|
2847
|
+
name: string;
|
|
2848
|
+
/** Description of the system component in which a vulnerability has been detected. */
|
|
2849
|
+
description: string;
|
|
2850
|
+
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
2851
|
+
targetType:
|
|
2852
|
+
| PutVulnerableComponentRequestResourcesItemTargetType
|
|
2853
|
+
| (string & {});
|
|
2854
|
+
}
|
|
2855
|
+
export const PutVulnerableComponentRequestResourcesItem =
|
|
2856
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2857
|
+
S.Struct({
|
|
2858
|
+
displayName: S.String,
|
|
2859
|
+
uniqueId: S.String,
|
|
2860
|
+
externalUrl: S.String,
|
|
2861
|
+
collectedTimestamp: S.String,
|
|
2862
|
+
name: S.String,
|
|
2863
|
+
description: S.String,
|
|
2864
|
+
targetType: PutVulnerableComponentRequestResourcesItemTargetType,
|
|
2865
|
+
}),
|
|
2866
|
+
).annotate({
|
|
2867
|
+
identifier: "PutVulnerableComponentRequestResourcesItem",
|
|
2868
|
+
}) as any as S.Schema<PutVulnerableComponentRequestResourcesItem>;
|
|
2869
|
+
|
|
2870
|
+
export type PutVulnerableComponentRequestResourcesList =
|
|
2871
|
+
Array<PutVulnerableComponentRequestResourcesItem>;
|
|
2872
|
+
export const PutVulnerableComponentRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2873
|
+
PutVulnerableComponentRequestResourcesItem,
|
|
2874
|
+
) as any as S.Schema<PutVulnerableComponentRequestResourcesList>;
|
|
2875
|
+
|
|
2876
|
+
export interface PutVulnerableComponentRequest {
|
|
2877
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
2878
|
+
resourceId: string;
|
|
2879
|
+
resources: PutVulnerableComponentRequestResourcesList;
|
|
2880
|
+
}
|
|
2881
|
+
export const PutVulnerableComponentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2882
|
+
S.Struct({
|
|
2883
|
+
resourceId: S.String,
|
|
2884
|
+
resources: PutVulnerableComponentRequestResourcesList,
|
|
2885
|
+
}).pipe(
|
|
2886
|
+
T.Http({
|
|
2887
|
+
method: "PUT",
|
|
2888
|
+
uri: "/v1/resources/vulnerable_component",
|
|
2889
|
+
code: 200,
|
|
2890
|
+
}),
|
|
2891
|
+
),
|
|
2892
|
+
).annotate({
|
|
2893
|
+
identifier: "PutVulnerableComponentRequest",
|
|
2894
|
+
}) as any as S.Schema<PutVulnerableComponentRequest>;
|
|
2895
|
+
|
|
2896
|
+
export interface PutVulnerableComponentResponse {
|
|
2897
|
+
success: boolean;
|
|
2898
|
+
}
|
|
2899
|
+
export const PutVulnerableComponentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2900
|
+
S.Struct({
|
|
2901
|
+
success: S.Boolean,
|
|
2902
|
+
}),
|
|
2903
|
+
).annotate({
|
|
2904
|
+
identifier: "PutVulnerableComponentResponse",
|
|
2905
|
+
}) as any as S.Schema<PutVulnerableComponentResponse>;
|
|
2906
|
+
|
|
2907
|
+
export type PutWindowsUserComputerRequestResourcesItemProgramsItem =
|
|
2908
|
+
GetWindowsUserComputerResponseResourcesItemProgramsItem;
|
|
2909
|
+
export const PutWindowsUserComputerRequestResourcesItemProgramsItem =
|
|
2910
|
+
GetWindowsUserComputerResponseResourcesItemProgramsItem;
|
|
2911
|
+
|
|
2912
|
+
/** All the installed programs on the Windows system. */
|
|
2913
|
+
export type PutWindowsUserComputerRequestResourcesItemProgramsList =
|
|
2914
|
+
Array<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
|
|
2915
|
+
export const PutWindowsUserComputerRequestResourcesItemProgramsList =
|
|
2916
|
+
/*@__PURE__*/ S.Array(
|
|
2917
|
+
GetWindowsUserComputerResponseResourcesItemProgramsItem,
|
|
2918
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemProgramsList>;
|
|
2919
|
+
|
|
2920
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
2921
|
+
export type PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser =
|
|
2922
|
+
| "CHROME"
|
|
2923
|
+
| "FIREFOX"
|
|
2924
|
+
| "OPERA"
|
|
2925
|
+
| "SAFARI"
|
|
2926
|
+
| "EDGE";
|
|
2927
|
+
export const PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser =
|
|
2928
|
+
S.String;
|
|
2929
|
+
|
|
2930
|
+
export interface PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem {
|
|
2931
|
+
/** The identifier of the browser extension. */
|
|
2932
|
+
extensionId: string;
|
|
2933
|
+
/** The name of the browser extension. */
|
|
2934
|
+
name: string;
|
|
2935
|
+
/** The type of browser. If you see something not on this list - if the browser is chromium based, use Chrome. Otherwise, skip sending the extension and contact Vanta for a longer term addition to this enum. */
|
|
2936
|
+
browser:
|
|
2937
|
+
| PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser
|
|
2938
|
+
| (string & {});
|
|
2939
|
+
}
|
|
2940
|
+
export const PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem =
|
|
2941
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2942
|
+
S.Struct({
|
|
2943
|
+
extensionId: S.String,
|
|
2944
|
+
name: S.String,
|
|
2945
|
+
browser:
|
|
2946
|
+
PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser,
|
|
2947
|
+
}),
|
|
2948
|
+
).annotate({
|
|
2949
|
+
identifier:
|
|
2950
|
+
"PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem",
|
|
2951
|
+
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
2952
|
+
|
|
2953
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
2954
|
+
export type PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
2955
|
+
Array<PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
2956
|
+
export const PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
2957
|
+
/*@__PURE__*/ S.Array(
|
|
2958
|
+
PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem,
|
|
2959
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList>;
|
|
2960
|
+
|
|
2961
|
+
export type PutWindowsUserComputerRequestResourcesItemDrivesItem =
|
|
2962
|
+
GetWindowsUserComputerResponseResourcesItemDrivesItem;
|
|
2963
|
+
export const PutWindowsUserComputerRequestResourcesItemDrivesItem =
|
|
2964
|
+
GetWindowsUserComputerResponseResourcesItemDrivesItem;
|
|
2965
|
+
|
|
2966
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
2967
|
+
export type PutWindowsUserComputerRequestResourcesItemDrivesList =
|
|
2968
|
+
Array<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
|
|
2969
|
+
export const PutWindowsUserComputerRequestResourcesItemDrivesList =
|
|
2970
|
+
/*@__PURE__*/ S.Array(
|
|
2971
|
+
GetWindowsUserComputerResponseResourcesItemDrivesItem,
|
|
2972
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemDrivesList>;
|
|
2973
|
+
|
|
2974
|
+
export type PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
2975
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2976
|
+
export const PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
2977
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2978
|
+
|
|
2979
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
2980
|
+
export type PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
2981
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
2982
|
+
export const PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
2983
|
+
/*@__PURE__*/ S.Array(
|
|
2984
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2985
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList>;
|
|
2986
|
+
|
|
2987
|
+
export type PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
2988
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2989
|
+
export const PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
2990
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2991
|
+
|
|
2992
|
+
export interface PutWindowsUserComputerRequestResourcesItemUsersItem {
|
|
2993
|
+
/** The user's username. Does not have to be unique. */
|
|
2994
|
+
username: string;
|
|
2995
|
+
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
2996
|
+
screenlockPolicies: PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList;
|
|
2997
|
+
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2998
|
+
/** The last time the user logged in to the device, if available. */
|
|
2999
|
+
lastLoginTimestamp?: string;
|
|
3000
|
+
}
|
|
3001
|
+
export const PutWindowsUserComputerRequestResourcesItemUsersItem =
|
|
3002
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3003
|
+
S.Struct({
|
|
3004
|
+
username: S.String,
|
|
3005
|
+
screenlockPolicies:
|
|
3006
|
+
PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList,
|
|
3007
|
+
screenlockSettings:
|
|
3008
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
3009
|
+
lastLoginTimestamp: S.optional(S.String),
|
|
3010
|
+
}),
|
|
3011
|
+
).annotate({
|
|
3012
|
+
identifier: "PutWindowsUserComputerRequestResourcesItemUsersItem",
|
|
3013
|
+
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemUsersItem>;
|
|
3014
|
+
|
|
3015
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
3016
|
+
export type PutWindowsUserComputerRequestResourcesItemUsersList =
|
|
3017
|
+
Array<PutWindowsUserComputerRequestResourcesItemUsersItem>;
|
|
3018
|
+
export const PutWindowsUserComputerRequestResourcesItemUsersList =
|
|
3019
|
+
/*@__PURE__*/ S.Array(
|
|
3020
|
+
PutWindowsUserComputerRequestResourcesItemUsersItem,
|
|
3021
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemUsersList>;
|
|
3022
|
+
|
|
3023
|
+
export type PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
3024
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
3025
|
+
export const PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
3026
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
3027
|
+
|
|
3028
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
3029
|
+
export type PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
3030
|
+
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
3031
|
+
export const PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
3032
|
+
/*@__PURE__*/ S.Array(
|
|
3033
|
+
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
3034
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList>;
|
|
3035
|
+
|
|
3036
|
+
export type PutWindowsUserComputerRequestResourcesItemPasswordPolicy =
|
|
3037
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
3038
|
+
export const PutWindowsUserComputerRequestResourcesItemPasswordPolicy =
|
|
3039
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
3040
|
+
|
|
3041
|
+
/** The category of the security product. */
|
|
3042
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory =
|
|
3043
|
+
| "FIREWALL"
|
|
3044
|
+
| "ANTIVIRUS"
|
|
3045
|
+
| "ANTISPYWARE";
|
|
3046
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory =
|
|
3047
|
+
S.String;
|
|
3048
|
+
|
|
3049
|
+
/** The state of the security product. */
|
|
3050
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState =
|
|
3051
|
+
| "ON"
|
|
3052
|
+
| "OFF"
|
|
3053
|
+
| "UNKNOWN";
|
|
3054
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState =
|
|
3055
|
+
S.String;
|
|
3056
|
+
|
|
3057
|
+
export interface PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem {
|
|
3058
|
+
/** The name of the security product. */
|
|
3059
|
+
name: string;
|
|
3060
|
+
/** The category of the security product. */
|
|
3061
|
+
category:
|
|
3062
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory
|
|
3063
|
+
| (string & {});
|
|
3064
|
+
/** The state of the security product. */
|
|
3065
|
+
state:
|
|
3066
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState
|
|
3067
|
+
| (string & {});
|
|
3068
|
+
/** When this data was collected. */
|
|
3069
|
+
stateTimestamp: string;
|
|
3070
|
+
/** Whether the security signatures are up to date. */
|
|
3071
|
+
signaturesUpToDate: boolean;
|
|
3072
|
+
}
|
|
3073
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem =
|
|
3074
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3075
|
+
S.Struct({
|
|
3076
|
+
name: S.String,
|
|
3077
|
+
category:
|
|
3078
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory,
|
|
3079
|
+
state:
|
|
3080
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState,
|
|
3081
|
+
stateTimestamp: S.String,
|
|
3082
|
+
signaturesUpToDate: S.Boolean,
|
|
3083
|
+
}),
|
|
3084
|
+
).annotate({
|
|
3085
|
+
identifier:
|
|
3086
|
+
"PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem",
|
|
3087
|
+
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem>;
|
|
3088
|
+
|
|
3089
|
+
/** A list of services that are monitored by Windows Security Center (WSC). */
|
|
3090
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList =
|
|
3091
|
+
Array<PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem>;
|
|
3092
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList =
|
|
3093
|
+
/*@__PURE__*/ S.Array(
|
|
3094
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem,
|
|
3095
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList>;
|
|
3096
|
+
|
|
3097
|
+
/** The health of the monitored Firewall. */
|
|
3098
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall =
|
|
3099
|
+
| "GOOD"
|
|
3100
|
+
| "POOR"
|
|
3101
|
+
| "SNOOZED"
|
|
3102
|
+
| "NOT_MONITORED"
|
|
3103
|
+
| "ERROR";
|
|
3104
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall =
|
|
3105
|
+
S.String;
|
|
3106
|
+
|
|
3107
|
+
/** The health of the Windows Autoupdate feature. */
|
|
3108
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate =
|
|
3109
|
+
| "GOOD"
|
|
3110
|
+
| "POOR"
|
|
3111
|
+
| "SNOOZED"
|
|
3112
|
+
| "NOT_MONITORED"
|
|
3113
|
+
| "ERROR";
|
|
3114
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate =
|
|
3115
|
+
S.String;
|
|
3116
|
+
|
|
3117
|
+
/** The health of the monitored Antivirus solution. */
|
|
3118
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus =
|
|
3119
|
+
| "GOOD"
|
|
3120
|
+
| "POOR"
|
|
3121
|
+
| "SNOOZED"
|
|
3122
|
+
| "NOT_MONITORED"
|
|
3123
|
+
| "ERROR";
|
|
3124
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus =
|
|
3125
|
+
S.String;
|
|
3126
|
+
|
|
3127
|
+
/** The health of the Internet Settings. */
|
|
3128
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting =
|
|
3129
|
+
| "GOOD"
|
|
3130
|
+
| "POOR"
|
|
3131
|
+
| "SNOOZED"
|
|
3132
|
+
| "NOT_MONITORED"
|
|
3133
|
+
| "ERROR";
|
|
3134
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting =
|
|
3135
|
+
S.String;
|
|
3136
|
+
|
|
3137
|
+
/** The health of the User Account Control (UAC) capability in Windows. */
|
|
3138
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
3139
|
+
| "GOOD"
|
|
3140
|
+
| "POOR"
|
|
3141
|
+
| "SNOOZED"
|
|
3142
|
+
| "NOT_MONITORED"
|
|
3143
|
+
| "ERROR";
|
|
3144
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
3145
|
+
S.String;
|
|
3146
|
+
|
|
3147
|
+
/** The health of the Windows Security Center Service. */
|
|
3148
|
+
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
3149
|
+
| "GOOD"
|
|
3150
|
+
| "POOR"
|
|
3151
|
+
| "SNOOZED"
|
|
3152
|
+
| "NOT_MONITORED"
|
|
3153
|
+
| "ERROR";
|
|
3154
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
3155
|
+
S.String;
|
|
3156
|
+
|
|
3157
|
+
export interface PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter {
|
|
3158
|
+
/** The health of the monitored Firewall. */
|
|
3159
|
+
firewall:
|
|
3160
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall
|
|
3161
|
+
| (string & {});
|
|
3162
|
+
/** The health of the Windows Autoupdate feature. */
|
|
3163
|
+
autoupdate:
|
|
3164
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate
|
|
3165
|
+
| (string & {});
|
|
3166
|
+
/** The health of the monitored Antivirus solution. */
|
|
3167
|
+
antivirus:
|
|
3168
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus
|
|
3169
|
+
| (string & {});
|
|
3170
|
+
/** The health of the Internet Settings. */
|
|
3171
|
+
internetSetting:
|
|
3172
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting
|
|
3173
|
+
| (string & {});
|
|
3174
|
+
/** The health of the User Account Control (UAC) capability in Windows. */
|
|
3175
|
+
userAccountControl:
|
|
3176
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl
|
|
3177
|
+
| (string & {});
|
|
3178
|
+
/** The health of the Windows Security Center Service. */
|
|
3179
|
+
windowsSecurityCenterService:
|
|
3180
|
+
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService
|
|
3181
|
+
| (string & {});
|
|
3182
|
+
}
|
|
3183
|
+
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter =
|
|
3184
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3185
|
+
S.Struct({
|
|
3186
|
+
firewall:
|
|
3187
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall,
|
|
3188
|
+
autoupdate:
|
|
3189
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate,
|
|
3190
|
+
antivirus:
|
|
3191
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus,
|
|
3192
|
+
internetSetting:
|
|
3193
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting,
|
|
3194
|
+
userAccountControl:
|
|
3195
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl,
|
|
3196
|
+
windowsSecurityCenterService:
|
|
3197
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService,
|
|
3198
|
+
}),
|
|
3199
|
+
).annotate({
|
|
3200
|
+
identifier:
|
|
3201
|
+
"PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter",
|
|
3202
|
+
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter>;
|
|
3203
|
+
|
|
3204
|
+
export interface PutWindowsUserComputerRequestResourcesItem {
|
|
3205
|
+
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
3206
|
+
displayName: string;
|
|
3207
|
+
/** A stable global identifier for this resource. */
|
|
3208
|
+
uniqueId: string;
|
|
3209
|
+
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
3210
|
+
externalUrl: string;
|
|
3211
|
+
/** A timestamp that indicates when the data being sent was collected from the host computer. In some cases, you may have staggered data collection for the various data being sent. In that case, feel free to use the latest collected timestamp for the individual data items to populate this field. */
|
|
3212
|
+
collectedTimestamp: string;
|
|
3213
|
+
/** The OS name. Example: `Windows 11`. */
|
|
3214
|
+
osName: string;
|
|
3215
|
+
/** The OS version. Example: `Version 10.0.22621`. */
|
|
3216
|
+
osVersion: string;
|
|
3217
|
+
/** The hardware UUID/UDID of the device. */
|
|
3218
|
+
hardwareUuid: string;
|
|
3219
|
+
/** The hardware serial number of the device. */
|
|
3220
|
+
serialNumber: string;
|
|
3221
|
+
/** All the installed programs on the Windows system. */
|
|
3222
|
+
programs: PutWindowsUserComputerRequestResourcesItemProgramsList;
|
|
3223
|
+
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
3224
|
+
browserExtensions: PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList;
|
|
3225
|
+
/** A list of drives on this device. Used to verify encryption status. */
|
|
3226
|
+
drives: PutWindowsUserComputerRequestResourcesItemDrivesList;
|
|
3227
|
+
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
3228
|
+
users: PutWindowsUserComputerRequestResourcesItemUsersList;
|
|
3229
|
+
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
3230
|
+
systemScreenlockPolicies: PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList;
|
|
3231
|
+
/** Is the system managed by a Mobile Device Management system. */
|
|
3232
|
+
isManaged: boolean;
|
|
3233
|
+
/** Does the system have auto-updates enabled. */
|
|
3234
|
+
autoUpdatesEnabled: boolean;
|
|
3235
|
+
/** The email address of the owner of the system, if it's known. */
|
|
3236
|
+
owner?: string;
|
|
3237
|
+
passwordPolicy?: GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
3238
|
+
/** 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. */
|
|
3239
|
+
lastEnrolledTimestamp?: string;
|
|
3240
|
+
/** A list of services that are monitored by Windows Security Center (WSC). */
|
|
3241
|
+
windowsSecurityProducts?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList;
|
|
3242
|
+
windowsSecurityCenter?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter;
|
|
3243
|
+
}
|
|
3244
|
+
export const PutWindowsUserComputerRequestResourcesItem =
|
|
3245
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
3246
|
+
S.Struct({
|
|
3247
|
+
displayName: S.String,
|
|
3248
|
+
uniqueId: S.String,
|
|
3249
|
+
externalUrl: S.String,
|
|
3250
|
+
collectedTimestamp: S.String,
|
|
3251
|
+
osName: S.String,
|
|
3252
|
+
osVersion: S.String,
|
|
3253
|
+
hardwareUuid: S.String,
|
|
3254
|
+
serialNumber: S.String,
|
|
3255
|
+
programs: PutWindowsUserComputerRequestResourcesItemProgramsList,
|
|
3256
|
+
browserExtensions:
|
|
3257
|
+
PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList,
|
|
3258
|
+
drives: PutWindowsUserComputerRequestResourcesItemDrivesList,
|
|
3259
|
+
users: PutWindowsUserComputerRequestResourcesItemUsersList,
|
|
3260
|
+
systemScreenlockPolicies:
|
|
3261
|
+
PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList,
|
|
3262
|
+
isManaged: S.Boolean,
|
|
3263
|
+
autoUpdatesEnabled: S.Boolean,
|
|
3264
|
+
owner: S.optional(S.String),
|
|
3265
|
+
passwordPolicy: S.optional(
|
|
3266
|
+
GetMacosUserComputerResponseResourcesItemPasswordPolicy,
|
|
3267
|
+
),
|
|
3268
|
+
lastEnrolledTimestamp: S.optional(S.String),
|
|
3269
|
+
windowsSecurityProducts: S.optional(
|
|
3270
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList,
|
|
3271
|
+
),
|
|
3272
|
+
windowsSecurityCenter: S.optional(
|
|
3273
|
+
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter,
|
|
3274
|
+
),
|
|
3275
|
+
}),
|
|
3276
|
+
).annotate({
|
|
3277
|
+
identifier: "PutWindowsUserComputerRequestResourcesItem",
|
|
3278
|
+
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItem>;
|
|
3279
|
+
|
|
3280
|
+
export type PutWindowsUserComputerRequestResourcesList =
|
|
3281
|
+
Array<PutWindowsUserComputerRequestResourcesItem>;
|
|
3282
|
+
export const PutWindowsUserComputerRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
3283
|
+
PutWindowsUserComputerRequestResourcesItem,
|
|
3284
|
+
) as any as S.Schema<PutWindowsUserComputerRequestResourcesList>;
|
|
3285
|
+
|
|
3286
|
+
export interface PutWindowsUserComputerRequest {
|
|
3287
|
+
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
3288
|
+
resourceId: string;
|
|
3289
|
+
resources: PutWindowsUserComputerRequestResourcesList;
|
|
3290
|
+
}
|
|
3291
|
+
export const PutWindowsUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3292
|
+
S.Struct({
|
|
3293
|
+
resourceId: S.String,
|
|
3294
|
+
resources: PutWindowsUserComputerRequestResourcesList,
|
|
3295
|
+
}).pipe(
|
|
3296
|
+
T.Http({
|
|
3297
|
+
method: "PUT",
|
|
3298
|
+
uri: "/v1/resources/windows_user_computer",
|
|
3299
|
+
code: 200,
|
|
3300
|
+
}),
|
|
3301
|
+
),
|
|
3302
|
+
).annotate({
|
|
3303
|
+
identifier: "PutWindowsUserComputerRequest",
|
|
3304
|
+
}) as any as S.Schema<PutWindowsUserComputerRequest>;
|
|
3305
|
+
|
|
3306
|
+
export interface PutWindowsUserComputerResponse {
|
|
3307
|
+
success: boolean;
|
|
3308
|
+
}
|
|
3309
|
+
export const PutWindowsUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3310
|
+
S.Struct({
|
|
3311
|
+
success: S.Boolean,
|
|
3312
|
+
}),
|
|
3313
|
+
).annotate({
|
|
3314
|
+
identifier: "PutWindowsUserComputerResponse",
|
|
3315
|
+
}) as any as S.Schema<PutWindowsUserComputerResponse>;
|
|
3316
|
+
|
|
3317
|
+
export interface UploadFileForDocumentRequest {
|
|
3318
|
+
documentId: string;
|
|
3319
|
+
file: string;
|
|
3320
|
+
/** Date indicating when the document is effective from. */
|
|
3321
|
+
effectiveAtDate?: string;
|
|
3322
|
+
/** Description of the uploaded document. */
|
|
3323
|
+
description?: string;
|
|
3324
|
+
}
|
|
3325
|
+
export const UploadFileForDocumentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3326
|
+
S.Struct({
|
|
3327
|
+
documentId: S.String.pipe(T.Label()),
|
|
3328
|
+
file: S.String,
|
|
3329
|
+
effectiveAtDate: S.optional(S.String),
|
|
3330
|
+
description: S.optional(S.String),
|
|
3331
|
+
}).pipe(
|
|
3332
|
+
T.Http({
|
|
3333
|
+
method: "POST",
|
|
3334
|
+
uri: "/v1/documents/{documentId}/uploads",
|
|
3335
|
+
code: 200,
|
|
3336
|
+
contentType: "multipart",
|
|
3337
|
+
}),
|
|
3338
|
+
),
|
|
3339
|
+
).annotate({
|
|
3340
|
+
identifier: "UploadFileForDocumentRequest",
|
|
3341
|
+
}) as any as S.Schema<UploadFileForDocumentRequest>;
|
|
3342
|
+
|
|
3343
|
+
export type UploadedDocumentUploadedByType = "USER" | "APPLICATION";
|
|
3344
|
+
export const UploadedDocumentUploadedByType = S.String;
|
|
3345
|
+
|
|
3346
|
+
/** The actor who uploaded this document. It could be a user or an app. */
|
|
3347
|
+
export interface UploadedFileTUploadedBy {
|
|
3348
|
+
type: UploadedDocumentUploadedByType;
|
|
3349
|
+
id: string;
|
|
3350
|
+
}
|
|
3351
|
+
export const UploadedFileTUploadedBy = /*@__PURE__*/ S.suspend(() =>
|
|
3352
|
+
S.Struct({
|
|
3353
|
+
type: UploadedDocumentUploadedByType,
|
|
3354
|
+
id: S.String,
|
|
3355
|
+
}),
|
|
3356
|
+
).annotate({
|
|
3357
|
+
identifier: "UploadedFileTUploadedBy",
|
|
3358
|
+
}) as any as S.Schema<UploadedFileTUploadedBy>;
|
|
3359
|
+
|
|
3360
|
+
export interface UploadedFileT {
|
|
3361
|
+
/** Unique identifier for the document. */
|
|
3362
|
+
id: string;
|
|
3363
|
+
/** The file name of the document. */
|
|
3364
|
+
fileName: string | null;
|
|
3365
|
+
/** The document's title. */
|
|
3366
|
+
title: string;
|
|
3367
|
+
/** The document's description */
|
|
3368
|
+
description: string | null;
|
|
3369
|
+
/** Mime type of the document. */
|
|
3370
|
+
mimeType: string;
|
|
3371
|
+
/** The actor who uploaded this document. It could be a user or an app. */
|
|
3372
|
+
uploadedBy: UploadedFileTUploadedBy | null;
|
|
3373
|
+
/** Date of when the document was uploaded. */
|
|
3374
|
+
creationDate: string;
|
|
3375
|
+
/** Date when the document was last updated. */
|
|
3376
|
+
updatedDate: string;
|
|
3377
|
+
/** Date of when the document was deleted. Is set to null if the document has not been deleted. */
|
|
3378
|
+
deletionDate: string | null;
|
|
3379
|
+
/** The document's effective date. */
|
|
3380
|
+
effectiveDate: string | null;
|
|
3381
|
+
/** The document's URL. */
|
|
3382
|
+
url: string;
|
|
3383
|
+
}
|
|
3384
|
+
export const UploadedFileT = /*@__PURE__*/ S.suspend(() =>
|
|
3385
|
+
S.Struct({
|
|
3386
|
+
id: S.String,
|
|
3387
|
+
fileName: S.NullOr(S.String),
|
|
3388
|
+
title: S.String,
|
|
3389
|
+
description: S.NullOr(S.String),
|
|
3390
|
+
mimeType: S.String,
|
|
3391
|
+
uploadedBy: S.NullOr(UploadedFileTUploadedBy),
|
|
3392
|
+
creationDate: S.String,
|
|
3393
|
+
updatedDate: S.String,
|
|
3394
|
+
deletionDate: S.NullOr(S.String),
|
|
3395
|
+
effectiveDate: S.NullOr(S.String),
|
|
3396
|
+
url: S.String,
|
|
3397
|
+
}),
|
|
3398
|
+
).annotate({ identifier: "UploadedFileT" }) as any as S.Schema<UploadedFileT>;
|
|
3399
|
+
|
|
3400
|
+
export type GetApiEndpointVulnerabilityConnectorsError = VantaOpError;
|
|
3401
|
+
/** List all API Endpoint Vulnerabilities List `ApiEndpointVulnerabilityConnectors` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3402
|
+
export const getApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
3403
|
+
GetApiEndpointVulnerabilityConnectorsRequest,
|
|
3404
|
+
GetApiEndpointVulnerabilityConnectorsResponse,
|
|
3405
|
+
GetApiEndpointVulnerabilityConnectorsError,
|
|
3406
|
+
VantaOpContext
|
|
3407
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3408
|
+
input: GetApiEndpointVulnerabilityConnectorsRequest,
|
|
3409
|
+
output: GetApiEndpointVulnerabilityConnectorsResponse,
|
|
3410
|
+
errors: [UnknownVantaError],
|
|
3411
|
+
protocol: VantaProtocol,
|
|
3412
|
+
retry: Retry.Retry,
|
|
3413
|
+
}));
|
|
3414
|
+
|
|
3415
|
+
export type GetBackgroundCheckConnectorError = VantaOpError;
|
|
3416
|
+
/** List all Background Checks List `BackgroundCheckConnector` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3417
|
+
export const getBackgroundCheckConnector: API.OperationMethod<
|
|
3418
|
+
GetBackgroundCheckConnectorRequest,
|
|
3419
|
+
GetBackgroundCheckConnectorResponse,
|
|
3420
|
+
GetBackgroundCheckConnectorError,
|
|
3421
|
+
VantaOpContext
|
|
3422
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3423
|
+
input: GetBackgroundCheckConnectorRequest,
|
|
3424
|
+
output: GetBackgroundCheckConnectorResponse,
|
|
3425
|
+
errors: [UnknownVantaError],
|
|
3426
|
+
protocol: VantaProtocol,
|
|
3427
|
+
retry: Retry.Retry,
|
|
3428
|
+
}));
|
|
3429
|
+
|
|
3430
|
+
export type GetCustomResourceError = VantaOpError;
|
|
3431
|
+
/** List all Custom Resources List `CustomResource` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3432
|
+
export const getCustomResource: API.OperationMethod<
|
|
3433
|
+
GetCustomResourceRequest,
|
|
3434
|
+
GetCustomResourceResponse,
|
|
3435
|
+
GetCustomResourceError,
|
|
3436
|
+
VantaOpContext
|
|
3437
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3438
|
+
input: GetCustomResourceRequest,
|
|
3439
|
+
output: GetCustomResourceResponse,
|
|
3440
|
+
errors: [UnknownVantaError],
|
|
3441
|
+
protocol: VantaProtocol,
|
|
3442
|
+
retry: Retry.Retry,
|
|
3443
|
+
}));
|
|
3444
|
+
|
|
3445
|
+
export type GetMacosUserComputerError = VantaOpError;
|
|
3446
|
+
/** List all MacOS User Computers List `MacosUserComputer` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3447
|
+
export const getMacosUserComputer: API.OperationMethod<
|
|
3448
|
+
GetMacosUserComputerRequest,
|
|
3449
|
+
GetMacosUserComputerResponse,
|
|
3450
|
+
GetMacosUserComputerError,
|
|
3451
|
+
VantaOpContext
|
|
3452
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3453
|
+
input: GetMacosUserComputerRequest,
|
|
3454
|
+
output: GetMacosUserComputerResponse,
|
|
3455
|
+
errors: [UnknownVantaError],
|
|
3456
|
+
protocol: VantaProtocol,
|
|
3457
|
+
retry: Retry.Retry,
|
|
3458
|
+
}));
|
|
3459
|
+
|
|
3460
|
+
export type GetPackageVulnerabilityConnectorsError = VantaOpError;
|
|
3461
|
+
/** List all Package Vulnerabilities List `PackageVulnerabilityConnectors` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3462
|
+
export const getPackageVulnerabilityConnectors: API.OperationMethod<
|
|
3463
|
+
GetPackageVulnerabilityConnectorsRequest,
|
|
3464
|
+
GetPackageVulnerabilityConnectorsResponse,
|
|
3465
|
+
GetPackageVulnerabilityConnectorsError,
|
|
3466
|
+
VantaOpContext
|
|
3467
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3468
|
+
input: GetPackageVulnerabilityConnectorsRequest,
|
|
3469
|
+
output: GetPackageVulnerabilityConnectorsResponse,
|
|
3470
|
+
errors: [UnknownVantaError],
|
|
3471
|
+
protocol: VantaProtocol,
|
|
3472
|
+
retry: Retry.Retry,
|
|
3473
|
+
}));
|
|
3474
|
+
|
|
3475
|
+
export type GetSecretError = VantaOpError;
|
|
3476
|
+
/** List all secrets List `Secret` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3477
|
+
export const getSecret: API.OperationMethod<
|
|
3478
|
+
GetSecretRequest,
|
|
3479
|
+
GetSecretResponse,
|
|
3480
|
+
GetSecretError,
|
|
3481
|
+
VantaOpContext
|
|
3482
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3483
|
+
input: GetSecretRequest,
|
|
3484
|
+
output: GetSecretResponse,
|
|
3485
|
+
errors: [UnknownVantaError],
|
|
3486
|
+
protocol: VantaProtocol,
|
|
3487
|
+
retry: Retry.Retry,
|
|
3488
|
+
}));
|
|
3489
|
+
|
|
3490
|
+
export type GetSecurityTaskError = VantaOpError;
|
|
3491
|
+
/** List all security tasks List `SecurityTask` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3492
|
+
export const getSecurityTask: API.OperationMethod<
|
|
3493
|
+
GetSecurityTaskRequest,
|
|
3494
|
+
GetSecurityTaskResponse,
|
|
3495
|
+
GetSecurityTaskError,
|
|
3496
|
+
VantaOpContext
|
|
3497
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3498
|
+
input: GetSecurityTaskRequest,
|
|
3499
|
+
output: GetSecurityTaskResponse,
|
|
3500
|
+
errors: [UnknownVantaError],
|
|
3501
|
+
protocol: VantaProtocol,
|
|
3502
|
+
retry: Retry.Retry,
|
|
3503
|
+
}));
|
|
3504
|
+
|
|
3505
|
+
export type GetStaticAnalysisCodeVulnerabilityConnectorsError = VantaOpError;
|
|
3506
|
+
/** List all Static Code Analysis Vulnerabilities List `StaticAnalysisCodeVulnerabilityConnectors` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3507
|
+
export const getStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
|
|
3508
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsRequest,
|
|
3509
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsResponse,
|
|
3510
|
+
GetStaticAnalysisCodeVulnerabilityConnectorsError,
|
|
3511
|
+
VantaOpContext
|
|
3512
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3513
|
+
input: GetStaticAnalysisCodeVulnerabilityConnectorsRequest,
|
|
3514
|
+
output: GetStaticAnalysisCodeVulnerabilityConnectorsResponse,
|
|
3515
|
+
errors: [UnknownVantaError],
|
|
3516
|
+
protocol: VantaProtocol,
|
|
3517
|
+
retry: Retry.Retry,
|
|
3518
|
+
}));
|
|
3519
|
+
|
|
3520
|
+
export type GetUserAccountError = VantaOpError;
|
|
3521
|
+
/** List all user accounts List `UserAccount` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3522
|
+
export const getUserAccount: API.OperationMethod<
|
|
3523
|
+
GetUserAccountRequest,
|
|
3524
|
+
GetUserAccountResponse,
|
|
3525
|
+
GetUserAccountError,
|
|
3526
|
+
VantaOpContext
|
|
3527
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3528
|
+
input: GetUserAccountRequest,
|
|
3529
|
+
output: GetUserAccountResponse,
|
|
3530
|
+
errors: [UnknownVantaError],
|
|
3531
|
+
protocol: VantaProtocol,
|
|
3532
|
+
retry: Retry.Retry,
|
|
3533
|
+
}));
|
|
3534
|
+
|
|
3535
|
+
export type GetUserSecurityTrainingStatusError = VantaOpError;
|
|
3536
|
+
/** List all user security training statuses List `UserSecurityTrainingStatus` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3537
|
+
export const getUserSecurityTrainingStatus: API.OperationMethod<
|
|
3538
|
+
GetUserSecurityTrainingStatusRequest,
|
|
3539
|
+
GetUserSecurityTrainingStatusResponse,
|
|
3540
|
+
GetUserSecurityTrainingStatusError,
|
|
3541
|
+
VantaOpContext
|
|
3542
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3543
|
+
input: GetUserSecurityTrainingStatusRequest,
|
|
3544
|
+
output: GetUserSecurityTrainingStatusResponse,
|
|
3545
|
+
errors: [UnknownVantaError],
|
|
3546
|
+
protocol: VantaProtocol,
|
|
3547
|
+
retry: Retry.Retry,
|
|
3548
|
+
}));
|
|
3549
|
+
|
|
3550
|
+
export type GetVulnerableComponentError = VantaOpError;
|
|
3551
|
+
/** List all Vulnerable Components List `VulnerableComponent` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3552
|
+
export const getVulnerableComponent: API.OperationMethod<
|
|
3553
|
+
GetVulnerableComponentRequest,
|
|
3554
|
+
GetVulnerableComponentResponse,
|
|
3555
|
+
GetVulnerableComponentError,
|
|
3556
|
+
VantaOpContext
|
|
3557
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3558
|
+
input: GetVulnerableComponentRequest,
|
|
3559
|
+
output: GetVulnerableComponentResponse,
|
|
3560
|
+
errors: [UnknownVantaError],
|
|
3561
|
+
protocol: VantaProtocol,
|
|
3562
|
+
retry: Retry.Retry,
|
|
3563
|
+
}));
|
|
3564
|
+
|
|
3565
|
+
export type GetWindowsUserComputerError = VantaOpError;
|
|
3566
|
+
/** List all Windows User Computers List `WindowsUserComputer` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3567
|
+
export const getWindowsUserComputer: API.OperationMethod<
|
|
3568
|
+
GetWindowsUserComputerRequest,
|
|
3569
|
+
GetWindowsUserComputerResponse,
|
|
3570
|
+
GetWindowsUserComputerError,
|
|
3571
|
+
VantaOpContext
|
|
3572
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3573
|
+
input: GetWindowsUserComputerRequest,
|
|
3574
|
+
output: GetWindowsUserComputerResponse,
|
|
3575
|
+
errors: [UnknownVantaError],
|
|
3576
|
+
protocol: VantaProtocol,
|
|
3577
|
+
retry: Retry.Retry,
|
|
3578
|
+
}));
|
|
3579
|
+
|
|
3580
|
+
export type PutApiEndpointVulnerabilityConnectorsError = VantaOpError;
|
|
3581
|
+
/** Sync all API Endpoint Vulnerabilities To send us data related to API endpoint vulnerabilities. Note that you must first sync `VulnerableComponent` resources before sending us this data, and this sync should reference the `uniqueId` field in the `VulnerableComponent` resource. This call replaces ALL existing `ApiEndpointVulnerabilityConnectors` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `ApiEndpointVulnerabilityConnectors` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `ApiEndpointVulnerabilityConnectors`. */
|
|
3582
|
+
export const putApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
3583
|
+
PutApiEndpointVulnerabilityConnectorsRequest,
|
|
3584
|
+
PutApiEndpointVulnerabilityConnectorsResponse,
|
|
3585
|
+
PutApiEndpointVulnerabilityConnectorsError,
|
|
3586
|
+
VantaOpContext
|
|
3587
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3588
|
+
input: PutApiEndpointVulnerabilityConnectorsRequest,
|
|
3589
|
+
output: PutApiEndpointVulnerabilityConnectorsResponse,
|
|
3590
|
+
errors: [UnknownVantaError],
|
|
3591
|
+
protocol: VantaProtocol,
|
|
3592
|
+
retry: Retry.Retry,
|
|
3593
|
+
}));
|
|
3594
|
+
|
|
3595
|
+
export type PutBackgroundCheckConnectorError = VantaOpError;
|
|
3596
|
+
/** Sync all Background Checks To send us data regarding employee/contractor background checks, you send us `BackgroundCheckConnector` resources. This helps us determine current background check statuses. This call replaces ALL existing `BackgroundCheckConnector` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `BackgroundCheckConnector` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `BackgroundCheckConnector`. */
|
|
3597
|
+
export const putBackgroundCheckConnector: API.OperationMethod<
|
|
3598
|
+
PutBackgroundCheckConnectorRequest,
|
|
3599
|
+
PutBackgroundCheckConnectorResponse,
|
|
3600
|
+
PutBackgroundCheckConnectorError,
|
|
3601
|
+
VantaOpContext
|
|
3602
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3603
|
+
input: PutBackgroundCheckConnectorRequest,
|
|
3604
|
+
output: PutBackgroundCheckConnectorResponse,
|
|
3605
|
+
errors: [UnknownVantaError],
|
|
3606
|
+
protocol: VantaProtocol,
|
|
3607
|
+
retry: Retry.Retry,
|
|
3608
|
+
}));
|
|
3609
|
+
|
|
3610
|
+
export type PutCustomResourceError = VantaOpError;
|
|
3611
|
+
/** Sync all Custom Resources To send data of custom resource that you want to build custom tests on, use `CustomResource`. This call replaces ALL existing `CustomResource` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `CustomResource` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `CustomResource`. */
|
|
3612
|
+
export const putCustomResource: API.OperationMethod<
|
|
3613
|
+
PutCustomResourceRequest,
|
|
3614
|
+
PutCustomResourceResponse,
|
|
3615
|
+
PutCustomResourceError,
|
|
3616
|
+
VantaOpContext
|
|
3617
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3618
|
+
input: PutCustomResourceRequest,
|
|
3619
|
+
output: PutCustomResourceResponse,
|
|
3620
|
+
errors: [UnknownVantaError],
|
|
3621
|
+
protocol: VantaProtocol,
|
|
3622
|
+
retry: Retry.Retry,
|
|
3623
|
+
}));
|
|
3624
|
+
|
|
3625
|
+
export type PutMacosUserComputerError = VantaOpError;
|
|
3626
|
+
/** Sync all MacOS User Computers To send us data related to employee/contractor MacOS computers, you send us `MacosUserComputer` resources. This helps us determine important security properties, like whether devices have encrypted drives, have anti-virus installed or have password managers installed. This call replaces ALL existing `MacosUserComputer` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `MacosUserComputer` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `MacosUserComputer`. */
|
|
3627
|
+
export const putMacosUserComputer: API.OperationMethod<
|
|
3628
|
+
PutMacosUserComputerRequest,
|
|
3629
|
+
PutMacosUserComputerResponse,
|
|
3630
|
+
PutMacosUserComputerError,
|
|
3631
|
+
VantaOpContext
|
|
3632
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3633
|
+
input: PutMacosUserComputerRequest,
|
|
3634
|
+
output: PutMacosUserComputerResponse,
|
|
3635
|
+
errors: [UnknownVantaError],
|
|
3636
|
+
protocol: VantaProtocol,
|
|
3637
|
+
retry: Retry.Retry,
|
|
3638
|
+
}));
|
|
3639
|
+
|
|
3640
|
+
export type PutPackageVulnerabilityConnectorsError = VantaOpError;
|
|
3641
|
+
/** Sync all Package Vulnerabilities To send us data related to package vulnerabilities. Note that you must first sync `VulnerableComponent` resources before sending us this data, and this sync should reference the `uniqueId` field in the `VulnerableComponent` resource. This call replaces ALL existing `PackageVulnerabilityConnectors` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `PackageVulnerabilityConnectors` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `PackageVulnerabilityConnectors`. */
|
|
3642
|
+
export const putPackageVulnerabilityConnectors: API.OperationMethod<
|
|
3643
|
+
PutPackageVulnerabilityConnectorsRequest,
|
|
3644
|
+
PutPackageVulnerabilityConnectorsResponse,
|
|
3645
|
+
PutPackageVulnerabilityConnectorsError,
|
|
3646
|
+
VantaOpContext
|
|
3647
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3648
|
+
input: PutPackageVulnerabilityConnectorsRequest,
|
|
3649
|
+
output: PutPackageVulnerabilityConnectorsResponse,
|
|
3650
|
+
errors: [UnknownVantaError],
|
|
3651
|
+
protocol: VantaProtocol,
|
|
3652
|
+
retry: Retry.Retry,
|
|
3653
|
+
}));
|
|
3654
|
+
|
|
3655
|
+
export type PutSecretError = VantaOpError;
|
|
3656
|
+
/** Sync all secrets To send metadata of a secret used to access applications or infrastructure, use `Secret`. This call replaces ALL existing `Secret` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `Secret` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `Secret`. */
|
|
3657
|
+
export const putSecret: API.OperationMethod<
|
|
3658
|
+
PutSecretRequest,
|
|
3659
|
+
PutSecretResponse,
|
|
3660
|
+
PutSecretError,
|
|
3661
|
+
VantaOpContext
|
|
3662
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3663
|
+
input: PutSecretRequest,
|
|
3664
|
+
output: PutSecretResponse,
|
|
3665
|
+
errors: [UnknownVantaError],
|
|
3666
|
+
protocol: VantaProtocol,
|
|
3667
|
+
retry: Retry.Retry,
|
|
3668
|
+
}));
|
|
3669
|
+
|
|
3670
|
+
export type PutSecurityTaskError = VantaOpError;
|
|
3671
|
+
/** Sync all security tasks To send us data related to security relevant tasks/follow-ups your system, you send us `SecurityTask` resources. This helps us determine whether security relevant tasks are being completed in a timely manner. This call replaces ALL existing `SecurityTask` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `SecurityTask` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `SecurityTask`. */
|
|
3672
|
+
export const putSecurityTask: API.OperationMethod<
|
|
3673
|
+
PutSecurityTaskRequest,
|
|
3674
|
+
PutSecurityTaskResponse,
|
|
3675
|
+
PutSecurityTaskError,
|
|
3676
|
+
VantaOpContext
|
|
3677
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3678
|
+
input: PutSecurityTaskRequest,
|
|
3679
|
+
output: PutSecurityTaskResponse,
|
|
3680
|
+
errors: [UnknownVantaError],
|
|
3681
|
+
protocol: VantaProtocol,
|
|
3682
|
+
retry: Retry.Retry,
|
|
3683
|
+
}));
|
|
3684
|
+
|
|
3685
|
+
export type PutStaticAnalysisCodeVulnerabilityConnectorsError = VantaOpError;
|
|
3686
|
+
/** Sync all Static Code Analysis Vulnerabilities To send us data related to static code analysis vulnerabilities. Note that you must first sync `VulnerableComponent` resources before sending us this data, and this sync should reference the `uniqueId` field in the `VulnerableComponent` resource. This call replaces ALL existing `StaticAnalysisCodeVulnerabilityConnectors` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `StaticAnalysisCodeVulnerabilityConnectors` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `StaticAnalysisCodeVulnerabilityConnectors`. */
|
|
3687
|
+
export const putStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
|
|
3688
|
+
PutStaticAnalysisCodeVulnerabilityConnectorsRequest,
|
|
3689
|
+
PutStaticAnalysisCodeVulnerabilityConnectorsResponse,
|
|
3690
|
+
PutStaticAnalysisCodeVulnerabilityConnectorsError,
|
|
3691
|
+
VantaOpContext
|
|
3692
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3693
|
+
input: PutStaticAnalysisCodeVulnerabilityConnectorsRequest,
|
|
3694
|
+
output: PutStaticAnalysisCodeVulnerabilityConnectorsResponse,
|
|
3695
|
+
errors: [UnknownVantaError],
|
|
3696
|
+
protocol: VantaProtocol,
|
|
3697
|
+
retry: Retry.Retry,
|
|
3698
|
+
}));
|
|
3699
|
+
|
|
3700
|
+
export type PutUserAccountError = VantaOpError;
|
|
3701
|
+
/** Sync all user accounts To send us data related to users in your system, you send us `UserAccount` resources. Every partner must send us `UserAccount` resources. This helps us determine whether users have appropriate levels of access and have a secure authentication mechanism. This call replaces ALL existing `UserAccount` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `UserAccount` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and it is "deletedAt" time in is set to that of the `sync_all` call. The resource will still show in the Vanta UI as a Deactivated `UserAccount`, and `list_all` calls. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `UserAccount`. */
|
|
3702
|
+
export const putUserAccount: API.OperationMethod<
|
|
3703
|
+
PutUserAccountRequest,
|
|
3704
|
+
PutUserAccountResponse,
|
|
3705
|
+
PutUserAccountError,
|
|
3706
|
+
VantaOpContext
|
|
3707
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3708
|
+
input: PutUserAccountRequest,
|
|
3709
|
+
output: PutUserAccountResponse,
|
|
3710
|
+
errors: [UnknownVantaError],
|
|
3711
|
+
protocol: VantaProtocol,
|
|
3712
|
+
retry: Retry.Retry,
|
|
3713
|
+
}));
|
|
3714
|
+
|
|
3715
|
+
export type PutUserSecurityTrainingStatusError = VantaOpError;
|
|
3716
|
+
/** Sync all user security training statuses To send us data related to security trainings, you send us `UserSecurityTrainingStatus` resources. This helps us determine whether users have completed their security and compliance trainings in a timely manner. This call replaces ALL existing `UserSecurityTrainingStatus` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `UserSecurityTrainingStatus` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `UserSecurityTrainingStatus`. */
|
|
3717
|
+
export const putUserSecurityTrainingStatus: API.OperationMethod<
|
|
3718
|
+
PutUserSecurityTrainingStatusRequest,
|
|
3719
|
+
PutUserSecurityTrainingStatusResponse,
|
|
3720
|
+
PutUserSecurityTrainingStatusError,
|
|
3721
|
+
VantaOpContext
|
|
3722
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3723
|
+
input: PutUserSecurityTrainingStatusRequest,
|
|
3724
|
+
output: PutUserSecurityTrainingStatusResponse,
|
|
3725
|
+
errors: [UnknownVantaError],
|
|
3726
|
+
protocol: VantaProtocol,
|
|
3727
|
+
retry: Retry.Retry,
|
|
3728
|
+
}));
|
|
3729
|
+
|
|
3730
|
+
export type PutVulnerableComponentError = VantaOpError;
|
|
3731
|
+
/** Sync all Vulnerable Components To send us data related to system components that have vulnerabilities. This call replaces ALL existing `VulnerableComponent` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `VulnerableComponent` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `VulnerableComponent`. */
|
|
3732
|
+
export const putVulnerableComponent: API.OperationMethod<
|
|
3733
|
+
PutVulnerableComponentRequest,
|
|
3734
|
+
PutVulnerableComponentResponse,
|
|
3735
|
+
PutVulnerableComponentError,
|
|
3736
|
+
VantaOpContext
|
|
3737
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3738
|
+
input: PutVulnerableComponentRequest,
|
|
3739
|
+
output: PutVulnerableComponentResponse,
|
|
3740
|
+
errors: [UnknownVantaError],
|
|
3741
|
+
protocol: VantaProtocol,
|
|
3742
|
+
retry: Retry.Retry,
|
|
3743
|
+
}));
|
|
3744
|
+
|
|
3745
|
+
export type PutWindowsUserComputerError = VantaOpError;
|
|
3746
|
+
/** Sync all Windows User Computers To send us data related to employee/contractor Windows computers, you send us `WindowsUserComputer` resources. This helps us determine important security properties, like whether devices have encrypted drives, have anti-virus installed or have password managers installed. This call replaces ALL existing `WindowsUserComputer` resources for the given app and `source_id` - this is a "state of the world" sync. In other words, if a `WindowsUserComputer` resource is sent for a user in a previous `sync_all` call, but is not included in a later `sync_all` call for that customer, it is assumed to no longer exist and is deleted in Vanta. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:write-resource ``` ** Schema ** Expand the `resources` array below for the schema of `WindowsUserComputer`. */
|
|
3747
|
+
export const putWindowsUserComputer: API.OperationMethod<
|
|
3748
|
+
PutWindowsUserComputerRequest,
|
|
3749
|
+
PutWindowsUserComputerResponse,
|
|
3750
|
+
PutWindowsUserComputerError,
|
|
3751
|
+
VantaOpContext
|
|
3752
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3753
|
+
input: PutWindowsUserComputerRequest,
|
|
3754
|
+
output: PutWindowsUserComputerResponse,
|
|
3755
|
+
errors: [UnknownVantaError],
|
|
3756
|
+
protocol: VantaProtocol,
|
|
3757
|
+
retry: Retry.Retry,
|
|
3758
|
+
}));
|
|
3759
|
+
|
|
3760
|
+
export type UploadFileForDocumentError = VantaOpError;
|
|
3761
|
+
/** Upload file for document Upload a file for a document. */
|
|
3762
|
+
export const uploadFileForDocument: API.OperationMethod<
|
|
3763
|
+
UploadFileForDocumentRequest,
|
|
3764
|
+
UploadedFileT,
|
|
3765
|
+
UploadFileForDocumentError,
|
|
3766
|
+
VantaOpContext
|
|
3767
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3768
|
+
input: UploadFileForDocumentRequest,
|
|
3769
|
+
output: UploadedFileT,
|
|
3770
|
+
errors: [UnknownVantaError],
|
|
3771
|
+
protocol: VantaProtocol,
|
|
3772
|
+
retry: Retry.Retry,
|
|
3773
|
+
}));
|