@distilled.cloud/vanta 1.0.0-rc.14 → 1.0.0-rc.16
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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +16 -15
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +15 -15
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +14 -14
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +6 -6
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +19 -22
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +25 -24
- package/lib/retry.js.map +1 -1
- package/lib/services/auditor_api.d.ts +18 -325
- package/lib/services/auditor_api.d.ts.map +1 -1
- package/lib/services/auditor_api.js +164 -1881
- package/lib/services/build_integrations.d.ts +1 -230
- package/lib/services/build_integrations.d.ts.map +1 -1
- package/lib/services/build_integrations.js +118 -1180
- package/lib/services/manage_vanta.d.ts +18 -1088
- package/lib/services/manage_vanta.d.ts.map +1 -1
- package/lib/services/manage_vanta.js +754 -6922
- package/lib/services/webhooks.d.ts +6 -105
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +76 -537
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +13 -9
- package/src/credentials.ts +5 -6
- package/src/errors.ts +14 -15
- package/src/index.ts +1 -1
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +6 -9
- package/src/retry.ts +6 -4
- package/src/services/auditor_api.ts +2040 -2476
- package/src/services/build_integrations.ts +937 -1664
- package/src/services/manage_vanta.ts +7230 -8522
- package/src/services/webhooks.ts +432 -638
- package/src/traits.ts +1 -1
- package/lib/services/auditor_api.js.map +0 -1
- package/lib/services/build_integrations.js.map +0 -1
- package/lib/services/manage_vanta.js.map +0 -1
- package/lib/services/webhooks.js.map +0 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-vanta). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
-
import * as
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import type * as Redacted from "effect/Redacted";
|
|
5
6
|
import { UnknownVantaError } from "../errors.ts";
|
|
6
7
|
import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { VantaOpError, VantaOpContext };
|
|
11
14
|
|
|
@@ -13,70 +16,24 @@ export interface GetApiEndpointVulnerabilityConnectorsRequest {
|
|
|
13
16
|
/** 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 */
|
|
14
17
|
resourceId: string;
|
|
15
18
|
}
|
|
16
|
-
export const GetApiEndpointVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
17
|
-
S.Struct({
|
|
18
|
-
resourceId: S.String.pipe(T.Query()),
|
|
19
|
-
}).pipe(
|
|
20
|
-
T.Http({
|
|
21
|
-
method: "GET",
|
|
22
|
-
uri: "/v1/resources/api_endpoint_vulnerability_connectors",
|
|
23
|
-
code: 200,
|
|
24
|
-
}),
|
|
25
|
-
),
|
|
26
|
-
).annotate({
|
|
27
|
-
identifier: "GetApiEndpointVulnerabilityConnectorsRequest",
|
|
28
|
-
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsRequest>;
|
|
29
|
-
|
|
30
19
|
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem {
|
|
31
20
|
/** The API query param key associated with this vulnerability occurrence. */
|
|
32
21
|
key: string;
|
|
33
22
|
/** The API query param value associated with this vulnerability occurrence. */
|
|
34
23
|
value: string;
|
|
35
24
|
}
|
|
36
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem =
|
|
37
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
38
|
-
S.Struct({
|
|
39
|
-
key: S.String,
|
|
40
|
-
value: S.String,
|
|
41
|
-
}),
|
|
42
|
-
).annotate({
|
|
43
|
-
identifier:
|
|
44
|
-
"GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem",
|
|
45
|
-
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem>;
|
|
46
|
-
|
|
47
25
|
/** The API params associated with this vulnerability. */
|
|
48
26
|
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList =
|
|
49
27
|
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem>;
|
|
50
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList =
|
|
51
|
-
/*@__PURE__*/ S.Array(
|
|
52
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem,
|
|
53
|
-
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList>;
|
|
54
|
-
|
|
55
28
|
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem {
|
|
56
29
|
/** The API header key associated with this vulnerability occurrence. */
|
|
57
30
|
key: string;
|
|
58
31
|
/** The API header value associated with this vulnerability occurrence. */
|
|
59
32
|
value: string;
|
|
60
33
|
}
|
|
61
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem =
|
|
62
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
63
|
-
S.Struct({
|
|
64
|
-
key: S.String,
|
|
65
|
-
value: S.String,
|
|
66
|
-
}),
|
|
67
|
-
).annotate({
|
|
68
|
-
identifier:
|
|
69
|
-
"GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem",
|
|
70
|
-
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem>;
|
|
71
|
-
|
|
72
34
|
/** The API headers associated with this vulnerability. */
|
|
73
35
|
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList =
|
|
74
36
|
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem>;
|
|
75
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList =
|
|
76
|
-
/*@__PURE__*/ S.Array(
|
|
77
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem,
|
|
78
|
-
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList>;
|
|
79
|
-
|
|
80
37
|
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem {
|
|
81
38
|
/** Markdown description of this API endpoint vulnerability occurrence. */
|
|
82
39
|
description: string;
|
|
@@ -89,35 +46,9 @@ export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccur
|
|
|
89
46
|
/** The body of the request passed to the API, with sensitive information redacted. */
|
|
90
47
|
body?: string | null;
|
|
91
48
|
}
|
|
92
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem =
|
|
93
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
94
|
-
S.Struct({
|
|
95
|
-
description: S.String,
|
|
96
|
-
fromUrl: S.optional(S.NullOr(S.String)),
|
|
97
|
-
queryParams: S.optional(
|
|
98
|
-
S.NullOr(
|
|
99
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsList,
|
|
100
|
-
),
|
|
101
|
-
),
|
|
102
|
-
headers: S.optional(
|
|
103
|
-
S.NullOr(
|
|
104
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersList,
|
|
105
|
-
),
|
|
106
|
-
),
|
|
107
|
-
body: S.optional(S.NullOr(S.String)),
|
|
108
|
-
}),
|
|
109
|
-
).annotate({
|
|
110
|
-
identifier: "GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem",
|
|
111
|
-
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
112
|
-
|
|
113
49
|
/** A list of occurrences of vulnerable API endpoints. */
|
|
114
50
|
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
115
51
|
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
116
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
117
|
-
/*@__PURE__*/ S.Array(
|
|
118
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem,
|
|
119
|
-
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList>;
|
|
120
|
-
|
|
121
52
|
export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItem {
|
|
122
53
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
123
54
|
displayName: string;
|
|
@@ -146,63 +77,20 @@ export interface GetApiEndpointVulnerabilityConnectorsResponseResourcesItem {
|
|
|
146
77
|
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
147
78
|
cvss3Score?: number | null;
|
|
148
79
|
}
|
|
149
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesItem = /*@__PURE__*/ S.suspend(
|
|
150
|
-
() =>
|
|
151
|
-
S.Struct({
|
|
152
|
-
displayName: S.String,
|
|
153
|
-
uniqueId: S.String,
|
|
154
|
-
externalUrl: S.String,
|
|
155
|
-
occurrences: GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesList,
|
|
156
|
-
severity: S.Number,
|
|
157
|
-
vulnerableComponentUniqueId: S.String,
|
|
158
|
-
description: S.String,
|
|
159
|
-
remediationInstructions: S.String,
|
|
160
|
-
url: S.String,
|
|
161
|
-
httpMethod: S.String,
|
|
162
|
-
cveId: S.optional(S.NullOr(S.String)),
|
|
163
|
-
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
164
|
-
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
165
|
-
}),
|
|
166
|
-
).annotate({
|
|
167
|
-
identifier: "GetApiEndpointVulnerabilityConnectorsResponseResourcesItem",
|
|
168
|
-
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesItem>;
|
|
169
|
-
|
|
170
80
|
export type GetApiEndpointVulnerabilityConnectorsResponseResourcesList =
|
|
171
81
|
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItem>;
|
|
172
|
-
export const GetApiEndpointVulnerabilityConnectorsResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
173
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItem,
|
|
174
|
-
) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponseResourcesList>;
|
|
175
|
-
|
|
176
82
|
export interface GetApiEndpointVulnerabilityConnectorsResponse {
|
|
177
83
|
resources?: GetApiEndpointVulnerabilityConnectorsResponseResourcesList;
|
|
178
84
|
}
|
|
179
|
-
export const GetApiEndpointVulnerabilityConnectorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
-
S.Struct({
|
|
181
|
-
resources: S.optional(GetApiEndpointVulnerabilityConnectorsResponseResourcesList),
|
|
182
|
-
}),
|
|
183
|
-
).annotate({
|
|
184
|
-
identifier: "GetApiEndpointVulnerabilityConnectorsResponse",
|
|
185
|
-
}) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponse>;
|
|
186
|
-
|
|
187
85
|
export interface GetBackgroundCheckConnectorRequest {
|
|
188
86
|
/** 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 */
|
|
189
87
|
resourceId: string;
|
|
190
88
|
}
|
|
191
|
-
export const GetBackgroundCheckConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
192
|
-
S.Struct({
|
|
193
|
-
resourceId: S.String.pipe(T.Query()),
|
|
194
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/background_check_connector", code: 200 })),
|
|
195
|
-
).annotate({
|
|
196
|
-
identifier: "GetBackgroundCheckConnectorRequest",
|
|
197
|
-
}) as any as S.Schema<GetBackgroundCheckConnectorRequest>;
|
|
198
|
-
|
|
199
89
|
/** The current status of the background check. */
|
|
200
90
|
export type GetBackgroundCheckConnectorResponseResourcesItemStatus =
|
|
201
91
|
| "INCOMPLETE"
|
|
202
92
|
| "IN_PROGRESS"
|
|
203
93
|
| "COMPLETE";
|
|
204
|
-
export const GetBackgroundCheckConnectorResponseResourcesItemStatus = S.String;
|
|
205
|
-
|
|
206
94
|
export interface GetBackgroundCheckConnectorResponseResourcesItem {
|
|
207
95
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
208
96
|
displayName: string;
|
|
@@ -219,47 +107,15 @@ export interface GetBackgroundCheckConnectorResponseResourcesItem {
|
|
|
219
107
|
/** If complete, the date of completion of the background check. */
|
|
220
108
|
completionDate?: string | null;
|
|
221
109
|
}
|
|
222
|
-
export const GetBackgroundCheckConnectorResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
223
|
-
S.Struct({
|
|
224
|
-
displayName: S.String,
|
|
225
|
-
uniqueId: S.String,
|
|
226
|
-
externalUrl: S.String,
|
|
227
|
-
fullName: S.String,
|
|
228
|
-
email: S.String,
|
|
229
|
-
status: GetBackgroundCheckConnectorResponseResourcesItemStatus,
|
|
230
|
-
completionDate: S.optional(S.NullOr(S.String)),
|
|
231
|
-
}),
|
|
232
|
-
).annotate({
|
|
233
|
-
identifier: "GetBackgroundCheckConnectorResponseResourcesItem",
|
|
234
|
-
}) as any as S.Schema<GetBackgroundCheckConnectorResponseResourcesItem>;
|
|
235
|
-
|
|
236
110
|
export type GetBackgroundCheckConnectorResponseResourcesList =
|
|
237
111
|
Array<GetBackgroundCheckConnectorResponseResourcesItem>;
|
|
238
|
-
export const GetBackgroundCheckConnectorResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
239
|
-
GetBackgroundCheckConnectorResponseResourcesItem,
|
|
240
|
-
) as any as S.Schema<GetBackgroundCheckConnectorResponseResourcesList>;
|
|
241
|
-
|
|
242
112
|
export interface GetBackgroundCheckConnectorResponse {
|
|
243
113
|
resources?: GetBackgroundCheckConnectorResponseResourcesList;
|
|
244
114
|
}
|
|
245
|
-
export const GetBackgroundCheckConnectorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
246
|
-
S.Struct({
|
|
247
|
-
resources: S.optional(GetBackgroundCheckConnectorResponseResourcesList),
|
|
248
|
-
}),
|
|
249
|
-
).annotate({
|
|
250
|
-
identifier: "GetBackgroundCheckConnectorResponse",
|
|
251
|
-
}) as any as S.Schema<GetBackgroundCheckConnectorResponse>;
|
|
252
|
-
|
|
253
115
|
export interface GetCustomResourceRequest {
|
|
254
116
|
/** 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 */
|
|
255
117
|
resourceId: string;
|
|
256
118
|
}
|
|
257
|
-
export const GetCustomResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
258
|
-
S.Struct({
|
|
259
|
-
resourceId: S.String.pipe(T.Query()),
|
|
260
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/custom_resource", code: 200 })),
|
|
261
|
-
).annotate({ identifier: "GetCustomResourceRequest" }) as any as S.Schema<GetCustomResourceRequest>;
|
|
262
|
-
|
|
263
119
|
export interface GetCustomResourceResponseResourcesItem {
|
|
264
120
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
265
121
|
displayName: string;
|
|
@@ -268,44 +124,14 @@ export interface GetCustomResourceResponseResourcesItem {
|
|
|
268
124
|
/** A link to this resource on the partner site. This must be a HTTPS URL. */
|
|
269
125
|
externalUrl: string;
|
|
270
126
|
}
|
|
271
|
-
export const GetCustomResourceResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
272
|
-
S.Struct({
|
|
273
|
-
displayName: S.String,
|
|
274
|
-
uniqueId: S.String,
|
|
275
|
-
externalUrl: S.String,
|
|
276
|
-
}),
|
|
277
|
-
).annotate({
|
|
278
|
-
identifier: "GetCustomResourceResponseResourcesItem",
|
|
279
|
-
}) as any as S.Schema<GetCustomResourceResponseResourcesItem>;
|
|
280
|
-
|
|
281
127
|
export type GetCustomResourceResponseResourcesList = Array<GetCustomResourceResponseResourcesItem>;
|
|
282
|
-
export const GetCustomResourceResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
283
|
-
GetCustomResourceResponseResourcesItem,
|
|
284
|
-
) as any as S.Schema<GetCustomResourceResponseResourcesList>;
|
|
285
|
-
|
|
286
128
|
export interface GetCustomResourceResponse {
|
|
287
129
|
resources?: GetCustomResourceResponseResourcesList;
|
|
288
130
|
}
|
|
289
|
-
export const GetCustomResourceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
290
|
-
S.Struct({
|
|
291
|
-
resources: S.optional(GetCustomResourceResponseResourcesList),
|
|
292
|
-
}),
|
|
293
|
-
).annotate({
|
|
294
|
-
identifier: "GetCustomResourceResponse",
|
|
295
|
-
}) as any as S.Schema<GetCustomResourceResponse>;
|
|
296
|
-
|
|
297
131
|
export interface GetMacosUserComputerRequest {
|
|
298
132
|
/** 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 */
|
|
299
133
|
resourceId: string;
|
|
300
134
|
}
|
|
301
|
-
export const GetMacosUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
302
|
-
S.Struct({
|
|
303
|
-
resourceId: S.String.pipe(T.Query()),
|
|
304
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/macos_user_computer", code: 200 })),
|
|
305
|
-
).annotate({
|
|
306
|
-
identifier: "GetMacosUserComputerRequest",
|
|
307
|
-
}) as any as S.Schema<GetMacosUserComputerRequest>;
|
|
308
|
-
|
|
309
135
|
export interface GetMacosUserComputerResponseResourcesItemApplicationsItem {
|
|
310
136
|
/** The name of the application. */
|
|
311
137
|
name: string;
|
|
@@ -314,24 +140,9 @@ export interface GetMacosUserComputerResponseResourcesItemApplicationsItem {
|
|
|
314
140
|
/** The last time the application was opened. */
|
|
315
141
|
lastOpenedTimestamp?: string | null;
|
|
316
142
|
}
|
|
317
|
-
export const GetMacosUserComputerResponseResourcesItemApplicationsItem = /*@__PURE__*/ S.suspend(
|
|
318
|
-
() =>
|
|
319
|
-
S.Struct({
|
|
320
|
-
name: S.String,
|
|
321
|
-
bundleId: S.String,
|
|
322
|
-
lastOpenedTimestamp: S.optional(S.NullOr(S.String)),
|
|
323
|
-
}),
|
|
324
|
-
).annotate({
|
|
325
|
-
identifier: "GetMacosUserComputerResponseResourcesItemApplicationsItem",
|
|
326
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
|
|
327
|
-
|
|
328
143
|
/** All the installed Mac Apps on the system. */
|
|
329
144
|
export type GetMacosUserComputerResponseResourcesItemApplicationsList =
|
|
330
145
|
Array<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
|
|
331
|
-
export const GetMacosUserComputerResponseResourcesItemApplicationsList = /*@__PURE__*/ S.Array(
|
|
332
|
-
GetMacosUserComputerResponseResourcesItemApplicationsItem,
|
|
333
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemApplicationsList>;
|
|
334
|
-
|
|
335
146
|
/** 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. */
|
|
336
147
|
export type GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser =
|
|
337
148
|
| "CHROME"
|
|
@@ -339,8 +150,6 @@ export type GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowse
|
|
|
339
150
|
| "OPERA"
|
|
340
151
|
| "SAFARI"
|
|
341
152
|
| "EDGE";
|
|
342
|
-
export const GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser = S.String;
|
|
343
|
-
|
|
344
153
|
export interface GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem {
|
|
345
154
|
/** The identifier of the browser extension. */
|
|
346
155
|
extensionId: string;
|
|
@@ -349,24 +158,9 @@ export interface GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem
|
|
|
349
158
|
/** 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. */
|
|
350
159
|
browser: GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser;
|
|
351
160
|
}
|
|
352
|
-
export const GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem =
|
|
353
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
354
|
-
S.Struct({
|
|
355
|
-
extensionId: S.String,
|
|
356
|
-
name: S.String,
|
|
357
|
-
browser: GetMacosUserComputerResponseResourcesItemBrowserExtensionsItemBrowser,
|
|
358
|
-
}),
|
|
359
|
-
).annotate({
|
|
360
|
-
identifier: "GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem",
|
|
361
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
362
|
-
|
|
363
161
|
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
364
162
|
export type GetMacosUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
365
163
|
Array<GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
366
|
-
export const GetMacosUserComputerResponseResourcesItemBrowserExtensionsList = /*@__PURE__*/ S.Array(
|
|
367
|
-
GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem,
|
|
368
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemBrowserExtensionsList>;
|
|
369
|
-
|
|
370
164
|
export interface GetMacosUserComputerResponseResourcesItemDrivesItem {
|
|
371
165
|
/** The name of the drive. */
|
|
372
166
|
name: string;
|
|
@@ -377,53 +171,20 @@ export interface GetMacosUserComputerResponseResourcesItemDrivesItem {
|
|
|
377
171
|
/** Metadata about the boot volume helps Vanta skip checking volumes that aren't relevant, like USB Drives. */
|
|
378
172
|
isBootVolume?: boolean | null;
|
|
379
173
|
}
|
|
380
|
-
export const GetMacosUserComputerResponseResourcesItemDrivesItem = /*@__PURE__*/ S.suspend(() =>
|
|
381
|
-
S.Struct({
|
|
382
|
-
name: S.String,
|
|
383
|
-
encrypted: S.Boolean,
|
|
384
|
-
filevaultEnabled: S.Boolean,
|
|
385
|
-
isBootVolume: S.optional(S.NullOr(S.Boolean)),
|
|
386
|
-
}),
|
|
387
|
-
).annotate({
|
|
388
|
-
identifier: "GetMacosUserComputerResponseResourcesItemDrivesItem",
|
|
389
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemDrivesItem>;
|
|
390
|
-
|
|
391
174
|
/** A list of drives on this device. Used to verify encryption status. */
|
|
392
175
|
export type GetMacosUserComputerResponseResourcesItemDrivesList =
|
|
393
176
|
Array<GetMacosUserComputerResponseResourcesItemDrivesItem>;
|
|
394
|
-
export const GetMacosUserComputerResponseResourcesItemDrivesList = /*@__PURE__*/ S.Array(
|
|
395
|
-
GetMacosUserComputerResponseResourcesItemDrivesItem,
|
|
396
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemDrivesList>;
|
|
397
|
-
|
|
398
177
|
export interface GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem {
|
|
399
178
|
/** After the screenlock takes effect, does the user have to enter a password to access their device. */
|
|
400
179
|
requiresPassword: boolean;
|
|
401
180
|
/** The timeout in milliseconds for screenlock to trigger. */
|
|
402
181
|
screenSleepTimeoutMs: number;
|
|
403
182
|
}
|
|
404
|
-
export const GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem =
|
|
405
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
406
|
-
S.Struct({
|
|
407
|
-
requiresPassword: S.Boolean,
|
|
408
|
-
screenSleepTimeoutMs: S.Number,
|
|
409
|
-
}),
|
|
410
|
-
).annotate({
|
|
411
|
-
identifier: "GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem",
|
|
412
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
413
|
-
|
|
414
183
|
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
415
184
|
export type GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
416
185
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
417
|
-
export const GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
418
|
-
/*@__PURE__*/ S.Array(
|
|
419
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
420
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList>;
|
|
421
|
-
|
|
422
186
|
export type GetMacosUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
423
187
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
424
|
-
export const GetMacosUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
425
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
426
|
-
|
|
427
188
|
export interface GetMacosUserComputerResponseResourcesItemUsersItem {
|
|
428
189
|
/** The user's username. Does not have to be unique. */
|
|
429
190
|
username: string;
|
|
@@ -433,49 +194,18 @@ export interface GetMacosUserComputerResponseResourcesItemUsersItem {
|
|
|
433
194
|
/** The last time the user logged in to the device, if available. */
|
|
434
195
|
lastLoginTimestamp?: string | null;
|
|
435
196
|
}
|
|
436
|
-
export const GetMacosUserComputerResponseResourcesItemUsersItem = /*@__PURE__*/ S.suspend(() =>
|
|
437
|
-
S.Struct({
|
|
438
|
-
username: S.String,
|
|
439
|
-
screenlockPolicies: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList,
|
|
440
|
-
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
441
|
-
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
442
|
-
}),
|
|
443
|
-
).annotate({
|
|
444
|
-
identifier: "GetMacosUserComputerResponseResourcesItemUsersItem",
|
|
445
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersItem>;
|
|
446
|
-
|
|
447
197
|
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
448
198
|
export type GetMacosUserComputerResponseResourcesItemUsersList =
|
|
449
199
|
Array<GetMacosUserComputerResponseResourcesItemUsersItem>;
|
|
450
|
-
export const GetMacosUserComputerResponseResourcesItemUsersList = /*@__PURE__*/ S.Array(
|
|
451
|
-
GetMacosUserComputerResponseResourcesItemUsersItem,
|
|
452
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemUsersList>;
|
|
453
|
-
|
|
454
200
|
export type GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
455
201
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
456
|
-
export const GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
457
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
458
|
-
|
|
459
202
|
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
460
203
|
export type GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
461
204
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
462
|
-
export const GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
463
|
-
/*@__PURE__*/ S.Array(
|
|
464
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
465
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList>;
|
|
466
|
-
|
|
467
205
|
export interface GetMacosUserComputerResponseResourcesItemPasswordPolicy {
|
|
468
206
|
/** If the system has a password policy, what the minimum password length requirement is. */
|
|
469
207
|
minimumLengthRequirement: number;
|
|
470
208
|
}
|
|
471
|
-
export const GetMacosUserComputerResponseResourcesItemPasswordPolicy = /*@__PURE__*/ S.suspend(() =>
|
|
472
|
-
S.Struct({
|
|
473
|
-
minimumLengthRequirement: S.Number,
|
|
474
|
-
}),
|
|
475
|
-
).annotate({
|
|
476
|
-
identifier: "GetMacosUserComputerResponseResourcesItemPasswordPolicy",
|
|
477
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItemPasswordPolicy>;
|
|
478
|
-
|
|
479
209
|
export interface GetMacosUserComputerResponseResourcesItem {
|
|
480
210
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
481
211
|
displayName: string;
|
|
@@ -515,63 +245,15 @@ export interface GetMacosUserComputerResponseResourcesItem {
|
|
|
515
245
|
/** Is XProtect enabled on the system. */
|
|
516
246
|
isXProtectEnabled?: boolean | null;
|
|
517
247
|
}
|
|
518
|
-
export const GetMacosUserComputerResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
519
|
-
S.Struct({
|
|
520
|
-
displayName: S.String,
|
|
521
|
-
uniqueId: S.String,
|
|
522
|
-
externalUrl: S.String,
|
|
523
|
-
collectedTimestamp: S.String,
|
|
524
|
-
osName: S.String,
|
|
525
|
-
osVersion: S.String,
|
|
526
|
-
hardwareUuid: S.String,
|
|
527
|
-
serialNumber: S.String,
|
|
528
|
-
applications: GetMacosUserComputerResponseResourcesItemApplicationsList,
|
|
529
|
-
browserExtensions: GetMacosUserComputerResponseResourcesItemBrowserExtensionsList,
|
|
530
|
-
drives: GetMacosUserComputerResponseResourcesItemDrivesList,
|
|
531
|
-
users: GetMacosUserComputerResponseResourcesItemUsersList,
|
|
532
|
-
systemScreenlockPolicies: GetMacosUserComputerResponseResourcesItemSystemScreenlockPoliciesList,
|
|
533
|
-
isManaged: S.Boolean,
|
|
534
|
-
autoUpdatesEnabled: S.Boolean,
|
|
535
|
-
owner: S.optional(S.NullOr(S.String)),
|
|
536
|
-
passwordPolicy: S.optional(S.NullOr(GetMacosUserComputerResponseResourcesItemPasswordPolicy)),
|
|
537
|
-
lastEnrolledTimestamp: S.optional(S.NullOr(S.String)),
|
|
538
|
-
isXProtectEnabled: S.optional(S.NullOr(S.Boolean)),
|
|
539
|
-
}),
|
|
540
|
-
).annotate({
|
|
541
|
-
identifier: "GetMacosUserComputerResponseResourcesItem",
|
|
542
|
-
}) as any as S.Schema<GetMacosUserComputerResponseResourcesItem>;
|
|
543
|
-
|
|
544
248
|
export type GetMacosUserComputerResponseResourcesList =
|
|
545
249
|
Array<GetMacosUserComputerResponseResourcesItem>;
|
|
546
|
-
export const GetMacosUserComputerResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
547
|
-
GetMacosUserComputerResponseResourcesItem,
|
|
548
|
-
) as any as S.Schema<GetMacosUserComputerResponseResourcesList>;
|
|
549
|
-
|
|
550
250
|
export interface GetMacosUserComputerResponse {
|
|
551
251
|
resources?: GetMacosUserComputerResponseResourcesList;
|
|
552
252
|
}
|
|
553
|
-
export const GetMacosUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
554
|
-
S.Struct({
|
|
555
|
-
resources: S.optional(GetMacosUserComputerResponseResourcesList),
|
|
556
|
-
}),
|
|
557
|
-
).annotate({
|
|
558
|
-
identifier: "GetMacosUserComputerResponse",
|
|
559
|
-
}) as any as S.Schema<GetMacosUserComputerResponse>;
|
|
560
|
-
|
|
561
253
|
export interface GetPackageVulnerabilityConnectorsRequest {
|
|
562
254
|
/** 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 */
|
|
563
255
|
resourceId: string;
|
|
564
256
|
}
|
|
565
|
-
export const GetPackageVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
566
|
-
S.Struct({
|
|
567
|
-
resourceId: S.String.pipe(T.Query()),
|
|
568
|
-
}).pipe(
|
|
569
|
-
T.Http({ method: "GET", uri: "/v1/resources/package_vulnerability_connectors", code: 200 }),
|
|
570
|
-
),
|
|
571
|
-
).annotate({
|
|
572
|
-
identifier: "GetPackageVulnerabilityConnectorsRequest",
|
|
573
|
-
}) as any as S.Schema<GetPackageVulnerabilityConnectorsRequest>;
|
|
574
|
-
|
|
575
257
|
export interface GetPackageVulnerabilityConnectorsResponseResourcesItem {
|
|
576
258
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
577
259
|
displayName: string;
|
|
@@ -602,54 +284,15 @@ export interface GetPackageVulnerabilityConnectorsResponseResourcesItem {
|
|
|
602
284
|
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
603
285
|
cvss3Score?: number | null;
|
|
604
286
|
}
|
|
605
|
-
export const GetPackageVulnerabilityConnectorsResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
606
|
-
S.Struct({
|
|
607
|
-
displayName: S.String,
|
|
608
|
-
uniqueId: S.String,
|
|
609
|
-
externalUrl: S.String,
|
|
610
|
-
packageName: S.String,
|
|
611
|
-
packageVersion: S.String,
|
|
612
|
-
severity: S.Number,
|
|
613
|
-
vulnerableComponentUniqueId: S.String,
|
|
614
|
-
description: S.String,
|
|
615
|
-
isResolvable: S.Boolean,
|
|
616
|
-
remediationInstructions: S.String,
|
|
617
|
-
isReachable: S.optional(S.NullOr(S.Boolean)),
|
|
618
|
-
cveId: S.optional(S.NullOr(S.String)),
|
|
619
|
-
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
620
|
-
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
621
|
-
}),
|
|
622
|
-
).annotate({
|
|
623
|
-
identifier: "GetPackageVulnerabilityConnectorsResponseResourcesItem",
|
|
624
|
-
}) as any as S.Schema<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
|
|
625
|
-
|
|
626
287
|
export type GetPackageVulnerabilityConnectorsResponseResourcesList =
|
|
627
288
|
Array<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
|
|
628
|
-
export const GetPackageVulnerabilityConnectorsResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
629
|
-
GetPackageVulnerabilityConnectorsResponseResourcesItem,
|
|
630
|
-
) as any as S.Schema<GetPackageVulnerabilityConnectorsResponseResourcesList>;
|
|
631
|
-
|
|
632
289
|
export interface GetPackageVulnerabilityConnectorsResponse {
|
|
633
290
|
resources?: GetPackageVulnerabilityConnectorsResponseResourcesList;
|
|
634
291
|
}
|
|
635
|
-
export const GetPackageVulnerabilityConnectorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
636
|
-
S.Struct({
|
|
637
|
-
resources: S.optional(GetPackageVulnerabilityConnectorsResponseResourcesList),
|
|
638
|
-
}),
|
|
639
|
-
).annotate({
|
|
640
|
-
identifier: "GetPackageVulnerabilityConnectorsResponse",
|
|
641
|
-
}) as any as S.Schema<GetPackageVulnerabilityConnectorsResponse>;
|
|
642
|
-
|
|
643
292
|
export interface GetSecretRequest {
|
|
644
293
|
/** 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 */
|
|
645
294
|
resourceId: string;
|
|
646
295
|
}
|
|
647
|
-
export const GetSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
648
|
-
S.Struct({
|
|
649
|
-
resourceId: S.String.pipe(T.Query()),
|
|
650
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/secret", code: 200 })),
|
|
651
|
-
).annotate({ identifier: "GetSecretRequest" }) as any as S.Schema<GetSecretRequest>;
|
|
652
|
-
|
|
653
296
|
export interface GetSecretResponseResourcesItem {
|
|
654
297
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
655
298
|
displayName: string;
|
|
@@ -674,68 +317,22 @@ export interface GetSecretResponseResourcesItem {
|
|
|
674
317
|
/** When the secret is set to expire, if relevant. */
|
|
675
318
|
expiresTimestamp?: string | null;
|
|
676
319
|
}
|
|
677
|
-
export const GetSecretResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
678
|
-
S.Struct({
|
|
679
|
-
displayName: S.String,
|
|
680
|
-
uniqueId: S.String,
|
|
681
|
-
externalUrl: S.String,
|
|
682
|
-
name: S.String,
|
|
683
|
-
description: S.String,
|
|
684
|
-
createdTimestamp: S.String,
|
|
685
|
-
creator: S.String,
|
|
686
|
-
owner: S.String,
|
|
687
|
-
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
688
|
-
lastAccessedTimestamp: S.optional(S.NullOr(S.String)),
|
|
689
|
-
expiresTimestamp: S.optional(S.NullOr(S.String)),
|
|
690
|
-
}),
|
|
691
|
-
).annotate({
|
|
692
|
-
identifier: "GetSecretResponseResourcesItem",
|
|
693
|
-
}) as any as S.Schema<GetSecretResponseResourcesItem>;
|
|
694
|
-
|
|
695
320
|
export type GetSecretResponseResourcesList = Array<GetSecretResponseResourcesItem>;
|
|
696
|
-
export const GetSecretResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
697
|
-
GetSecretResponseResourcesItem,
|
|
698
|
-
) as any as S.Schema<GetSecretResponseResourcesList>;
|
|
699
|
-
|
|
700
321
|
export interface GetSecretResponse {
|
|
701
322
|
resources?: GetSecretResponseResourcesList;
|
|
702
323
|
}
|
|
703
|
-
export const GetSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
704
|
-
S.Struct({
|
|
705
|
-
resources: S.optional(GetSecretResponseResourcesList),
|
|
706
|
-
}),
|
|
707
|
-
).annotate({ identifier: "GetSecretResponse" }) as any as S.Schema<GetSecretResponse>;
|
|
708
|
-
|
|
709
324
|
export interface GetSecurityTaskRequest {
|
|
710
325
|
/** 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 */
|
|
711
326
|
resourceId: string;
|
|
712
327
|
}
|
|
713
|
-
export const GetSecurityTaskRequest = /*@__PURE__*/ S.suspend(() =>
|
|
714
|
-
S.Struct({
|
|
715
|
-
resourceId: S.String.pipe(T.Query()),
|
|
716
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/security_task", code: 200 })),
|
|
717
|
-
).annotate({ identifier: "GetSecurityTaskRequest" }) as any as S.Schema<GetSecurityTaskRequest>;
|
|
718
|
-
|
|
719
328
|
/** The status of the task. If your application supports additional states, use the closest approximation. */
|
|
720
329
|
export type GetSecurityTaskResponseResourcesItemTaskState = "OPEN" | "IN_PROGRESS" | "CLOSED";
|
|
721
|
-
export const GetSecurityTaskResponseResourcesItemTaskState = S.String;
|
|
722
|
-
|
|
723
330
|
/** Priorities are mapped against SLAs for tasks. If your task system does not have fixed priorities, consider letting users configure priorities through labels. */
|
|
724
331
|
export type GetSecurityTaskResponseResourcesItemPriority = "P0" | "P1" | "P2" | "P3" | "P4";
|
|
725
|
-
export const GetSecurityTaskResponseResourcesItemPriority = S.String;
|
|
726
|
-
|
|
727
332
|
/** The set of users assigned to the tasks. Emails do not necessarily need to be Vanta users. */
|
|
728
333
|
export type GetSecurityTaskResponseResourcesItemAssigneesList = Array<string>;
|
|
729
|
-
export const GetSecurityTaskResponseResourcesItemAssigneesList = /*@__PURE__*/ S.Array(
|
|
730
|
-
S.String,
|
|
731
|
-
) as any as S.Schema<GetSecurityTaskResponseResourcesItemAssigneesList>;
|
|
732
|
-
|
|
733
334
|
/** The set of task tags or labels. */
|
|
734
335
|
export type GetSecurityTaskResponseResourcesItemLabelsList = Array<string>;
|
|
735
|
-
export const GetSecurityTaskResponseResourcesItemLabelsList = /*@__PURE__*/ S.Array(
|
|
736
|
-
S.String,
|
|
737
|
-
) as any as S.Schema<GetSecurityTaskResponseResourcesItemLabelsList>;
|
|
738
|
-
|
|
739
336
|
export interface GetSecurityTaskResponseResourcesItem {
|
|
740
337
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
741
338
|
displayName: string;
|
|
@@ -764,58 +361,14 @@ export interface GetSecurityTaskResponseResourcesItem {
|
|
|
764
361
|
/** When the task was last updated. */
|
|
765
362
|
updatedTimestamp?: string | null;
|
|
766
363
|
}
|
|
767
|
-
export const GetSecurityTaskResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
768
|
-
S.Struct({
|
|
769
|
-
displayName: S.String,
|
|
770
|
-
uniqueId: S.String,
|
|
771
|
-
externalUrl: S.String,
|
|
772
|
-
taskId: S.String,
|
|
773
|
-
taskTitle: S.String,
|
|
774
|
-
createdTimestamp: S.String,
|
|
775
|
-
taskState: GetSecurityTaskResponseResourcesItemTaskState,
|
|
776
|
-
priority: GetSecurityTaskResponseResourcesItemPriority,
|
|
777
|
-
assignees: GetSecurityTaskResponseResourcesItemAssigneesList,
|
|
778
|
-
creator: S.String,
|
|
779
|
-
labels: GetSecurityTaskResponseResourcesItemLabelsList,
|
|
780
|
-
closedTimestamp: S.optional(S.NullOr(S.String)),
|
|
781
|
-
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
782
|
-
}),
|
|
783
|
-
).annotate({
|
|
784
|
-
identifier: "GetSecurityTaskResponseResourcesItem",
|
|
785
|
-
}) as any as S.Schema<GetSecurityTaskResponseResourcesItem>;
|
|
786
|
-
|
|
787
364
|
export type GetSecurityTaskResponseResourcesList = Array<GetSecurityTaskResponseResourcesItem>;
|
|
788
|
-
export const GetSecurityTaskResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
789
|
-
GetSecurityTaskResponseResourcesItem,
|
|
790
|
-
) as any as S.Schema<GetSecurityTaskResponseResourcesList>;
|
|
791
|
-
|
|
792
365
|
export interface GetSecurityTaskResponse {
|
|
793
366
|
resources?: GetSecurityTaskResponseResourcesList;
|
|
794
367
|
}
|
|
795
|
-
export const GetSecurityTaskResponse = /*@__PURE__*/ S.suspend(() =>
|
|
796
|
-
S.Struct({
|
|
797
|
-
resources: S.optional(GetSecurityTaskResponseResourcesList),
|
|
798
|
-
}),
|
|
799
|
-
).annotate({ identifier: "GetSecurityTaskResponse" }) as any as S.Schema<GetSecurityTaskResponse>;
|
|
800
|
-
|
|
801
368
|
export interface GetStaticAnalysisCodeVulnerabilityConnectorsRequest {
|
|
802
369
|
/** 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 */
|
|
803
370
|
resourceId: string;
|
|
804
371
|
}
|
|
805
|
-
export const GetStaticAnalysisCodeVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
806
|
-
S.Struct({
|
|
807
|
-
resourceId: S.String.pipe(T.Query()),
|
|
808
|
-
}).pipe(
|
|
809
|
-
T.Http({
|
|
810
|
-
method: "GET",
|
|
811
|
-
uri: "/v1/resources/static_analysis_code_vulnerability_connectors",
|
|
812
|
-
code: 200,
|
|
813
|
-
}),
|
|
814
|
-
),
|
|
815
|
-
).annotate({
|
|
816
|
-
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsRequest",
|
|
817
|
-
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsRequest>;
|
|
818
|
-
|
|
819
372
|
export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem {
|
|
820
373
|
/** The path to the file where the vulnerability was found. */
|
|
821
374
|
path: string;
|
|
@@ -828,27 +381,9 @@ export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesIt
|
|
|
828
381
|
/** The column number where the vulnerability ends. */
|
|
829
382
|
endColumn: number;
|
|
830
383
|
}
|
|
831
|
-
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem =
|
|
832
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
833
|
-
S.Struct({
|
|
834
|
-
path: S.String,
|
|
835
|
-
beginLine: S.Number,
|
|
836
|
-
endLine: S.Number,
|
|
837
|
-
beginColumn: S.Number,
|
|
838
|
-
endColumn: S.Number,
|
|
839
|
-
}),
|
|
840
|
-
).annotate({
|
|
841
|
-
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem",
|
|
842
|
-
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
843
|
-
|
|
844
384
|
/** The path to each point in the source code where a vulnerability has been revealed through static analysis. */
|
|
845
385
|
export type GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
846
386
|
Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
847
|
-
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList =
|
|
848
|
-
/*@__PURE__*/ S.Array(
|
|
849
|
-
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem,
|
|
850
|
-
) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList>;
|
|
851
|
-
|
|
852
387
|
export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem {
|
|
853
388
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
854
389
|
displayName: string;
|
|
@@ -877,63 +412,19 @@ export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesIt
|
|
|
877
412
|
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
878
413
|
cvss3Score?: number | null;
|
|
879
414
|
}
|
|
880
|
-
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem =
|
|
881
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
882
|
-
S.Struct({
|
|
883
|
-
displayName: S.String,
|
|
884
|
-
uniqueId: S.String,
|
|
885
|
-
externalUrl: S.String,
|
|
886
|
-
occurrences: GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesList,
|
|
887
|
-
severity: S.Number,
|
|
888
|
-
confidence: S.Number,
|
|
889
|
-
isResolvable: S.Boolean,
|
|
890
|
-
vulnerableComponentUniqueId: S.String,
|
|
891
|
-
description: S.String,
|
|
892
|
-
remediationInstructions: S.String,
|
|
893
|
-
cveId: S.optional(S.NullOr(S.String)),
|
|
894
|
-
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
895
|
-
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
896
|
-
}),
|
|
897
|
-
).annotate({
|
|
898
|
-
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem",
|
|
899
|
-
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem>;
|
|
900
|
-
|
|
901
415
|
export type GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList =
|
|
902
416
|
Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem>;
|
|
903
|
-
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList =
|
|
904
|
-
/*@__PURE__*/ S.Array(
|
|
905
|
-
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem,
|
|
906
|
-
) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList>;
|
|
907
|
-
|
|
908
417
|
export interface GetStaticAnalysisCodeVulnerabilityConnectorsResponse {
|
|
909
418
|
resources?: GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList;
|
|
910
419
|
}
|
|
911
|
-
export const GetStaticAnalysisCodeVulnerabilityConnectorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
912
|
-
S.Struct({
|
|
913
|
-
resources: S.optional(GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesList),
|
|
914
|
-
}),
|
|
915
|
-
).annotate({
|
|
916
|
-
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsResponse",
|
|
917
|
-
}) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponse>;
|
|
918
|
-
|
|
919
420
|
export interface GetUserAccountRequest {
|
|
920
421
|
/** 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 */
|
|
921
422
|
resourceId: string;
|
|
922
423
|
}
|
|
923
|
-
export const GetUserAccountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
924
|
-
S.Struct({
|
|
925
|
-
resourceId: S.String.pipe(T.Query()),
|
|
926
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/user_account", code: 200 })),
|
|
927
|
-
).annotate({ identifier: "GetUserAccountRequest" }) as any as S.Schema<GetUserAccountRequest>;
|
|
928
|
-
|
|
929
424
|
/** 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. */
|
|
930
425
|
export type GetUserAccountResponseResourcesItemPermissionLevel = "ADMIN" | "EDITOR" | "BASE";
|
|
931
|
-
export const GetUserAccountResponseResourcesItemPermissionLevel = S.String;
|
|
932
|
-
|
|
933
426
|
/** 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. */
|
|
934
427
|
export type GetUserAccountResponseResourcesItemStatus = "ACTIVE" | "DEACTIVATED";
|
|
935
|
-
export const GetUserAccountResponseResourcesItemStatus = S.String;
|
|
936
|
-
|
|
937
428
|
/** The individual MFA setting. */
|
|
938
429
|
export type GetUserAccountResponseResourcesItemMfaMethodsItem =
|
|
939
430
|
| "UNSUPPORTED"
|
|
@@ -943,29 +434,17 @@ export type GetUserAccountResponseResourcesItemMfaMethodsItem =
|
|
|
943
434
|
| "OTP"
|
|
944
435
|
| "HARDWARE_TOKEN"
|
|
945
436
|
| "PUSH_PROMPT";
|
|
946
|
-
export const GetUserAccountResponseResourcesItemMfaMethodsItem = S.String;
|
|
947
|
-
|
|
948
437
|
/** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. Send an empty array if `mfaEnabled` is `null`, since an unknown MFA state says nothing about which methods are active. */
|
|
949
438
|
export type GetUserAccountResponseResourcesItemMfaMethodsList =
|
|
950
439
|
Array<GetUserAccountResponseResourcesItemMfaMethodsItem>;
|
|
951
|
-
export const GetUserAccountResponseResourcesItemMfaMethodsList = /*@__PURE__*/ S.Array(
|
|
952
|
-
GetUserAccountResponseResourcesItemMfaMethodsItem,
|
|
953
|
-
) as any as S.Schema<GetUserAccountResponseResourcesItemMfaMethodsList>;
|
|
954
|
-
|
|
955
440
|
/** 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. */
|
|
956
441
|
export type GetUserAccountResponseResourcesItemAuthMethod =
|
|
957
442
|
| "SSO"
|
|
958
443
|
| "PASSWORD"
|
|
959
444
|
| "TOKEN"
|
|
960
445
|
| "BIOMETRIC";
|
|
961
|
-
export const GetUserAccountResponseResourcesItemAuthMethod = S.String;
|
|
962
|
-
|
|
963
446
|
/** 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. */
|
|
964
447
|
export type GetUserAccountResponseResourcesItemGroupIdsList = Array<string>;
|
|
965
|
-
export const GetUserAccountResponseResourcesItemGroupIdsList = /*@__PURE__*/ S.Array(
|
|
966
|
-
S.String,
|
|
967
|
-
) as any as S.Schema<GetUserAccountResponseResourcesItemGroupIdsList>;
|
|
968
|
-
|
|
969
448
|
export interface GetUserAccountResponseResourcesItem {
|
|
970
449
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
971
450
|
displayName: string;
|
|
@@ -1004,57 +483,14 @@ export interface GetUserAccountResponseResourcesItem {
|
|
|
1004
483
|
/** 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. */
|
|
1005
484
|
groupIds?: GetUserAccountResponseResourcesItemGroupIdsList | null;
|
|
1006
485
|
}
|
|
1007
|
-
export const GetUserAccountResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1008
|
-
S.Struct({
|
|
1009
|
-
displayName: S.String,
|
|
1010
|
-
uniqueId: S.String,
|
|
1011
|
-
externalUrl: S.String,
|
|
1012
|
-
fullName: S.String,
|
|
1013
|
-
accountName: S.String,
|
|
1014
|
-
email: S.String,
|
|
1015
|
-
permissionLevel: GetUserAccountResponseResourcesItemPermissionLevel,
|
|
1016
|
-
createdTimestamp: S.String,
|
|
1017
|
-
status: GetUserAccountResponseResourcesItemStatus,
|
|
1018
|
-
mfaEnabled: S.NullOr(S.Boolean),
|
|
1019
|
-
mfaMethods: GetUserAccountResponseResourcesItemMfaMethodsList,
|
|
1020
|
-
authMethod: GetUserAccountResponseResourcesItemAuthMethod,
|
|
1021
|
-
roleDescription: S.optional(S.NullOr(S.String)),
|
|
1022
|
-
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
1023
|
-
deactivatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
1024
|
-
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
1025
|
-
lastPasswordResetTimestamp: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
1026
|
-
groupIds: S.optional(S.NullOr(GetUserAccountResponseResourcesItemGroupIdsList)),
|
|
1027
|
-
}),
|
|
1028
|
-
).annotate({
|
|
1029
|
-
identifier: "GetUserAccountResponseResourcesItem",
|
|
1030
|
-
}) as any as S.Schema<GetUserAccountResponseResourcesItem>;
|
|
1031
|
-
|
|
1032
486
|
export type GetUserAccountResponseResourcesList = Array<GetUserAccountResponseResourcesItem>;
|
|
1033
|
-
export const GetUserAccountResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
1034
|
-
GetUserAccountResponseResourcesItem,
|
|
1035
|
-
) as any as S.Schema<GetUserAccountResponseResourcesList>;
|
|
1036
|
-
|
|
1037
487
|
export interface GetUserAccountResponse {
|
|
1038
488
|
resources?: GetUserAccountResponseResourcesList;
|
|
1039
489
|
}
|
|
1040
|
-
export const GetUserAccountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1041
|
-
S.Struct({
|
|
1042
|
-
resources: S.optional(GetUserAccountResponseResourcesList),
|
|
1043
|
-
}),
|
|
1044
|
-
).annotate({ identifier: "GetUserAccountResponse" }) as any as S.Schema<GetUserAccountResponse>;
|
|
1045
|
-
|
|
1046
490
|
export interface GetUserSecurityTrainingStatusRequest {
|
|
1047
491
|
/** 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 */
|
|
1048
492
|
resourceId: string;
|
|
1049
493
|
}
|
|
1050
|
-
export const GetUserSecurityTrainingStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1051
|
-
S.Struct({
|
|
1052
|
-
resourceId: S.String.pipe(T.Query()),
|
|
1053
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/user_security_training_status", code: 200 })),
|
|
1054
|
-
).annotate({
|
|
1055
|
-
identifier: "GetUserSecurityTrainingStatusRequest",
|
|
1056
|
-
}) as any as S.Schema<GetUserSecurityTrainingStatusRequest>;
|
|
1057
|
-
|
|
1058
494
|
/** The individual framework. */
|
|
1059
495
|
export type GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem =
|
|
1060
496
|
| "SOC2"
|
|
@@ -1063,20 +499,11 @@ export type GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfille
|
|
|
1063
499
|
| "PCI"
|
|
1064
500
|
| "GDPR"
|
|
1065
501
|
| "CCPA";
|
|
1066
|
-
export const GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem = S.String;
|
|
1067
|
-
|
|
1068
502
|
/** The set of compliance or other framework requirements that can be satisfied when an employee completes this training. */
|
|
1069
503
|
export type GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList =
|
|
1070
504
|
Array<GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem>;
|
|
1071
|
-
export const GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList =
|
|
1072
|
-
/*@__PURE__*/ S.Array(
|
|
1073
|
-
GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledItem,
|
|
1074
|
-
) as any as S.Schema<GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList>;
|
|
1075
|
-
|
|
1076
505
|
/** Whether the training has been fully completed. */
|
|
1077
506
|
export type GetUserSecurityTrainingStatusResponseResourcesItemStatus = "INCOMPLETE" | "COMPLETE";
|
|
1078
|
-
export const GetUserSecurityTrainingStatusResponseResourcesItemStatus = S.String;
|
|
1079
|
-
|
|
1080
507
|
export interface GetUserSecurityTrainingStatusResponseResourcesItem {
|
|
1081
508
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1082
509
|
displayName: string;
|
|
@@ -1105,55 +532,15 @@ export interface GetUserSecurityTrainingStatusResponseResourcesItem {
|
|
|
1105
532
|
/** The time at which this training course was completed by the user. */
|
|
1106
533
|
trainingCompletedTimestamp?: string | null;
|
|
1107
534
|
}
|
|
1108
|
-
export const GetUserSecurityTrainingStatusResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1109
|
-
S.Struct({
|
|
1110
|
-
displayName: S.String,
|
|
1111
|
-
uniqueId: S.String,
|
|
1112
|
-
externalUrl: S.String,
|
|
1113
|
-
trainingId: S.String,
|
|
1114
|
-
trainingName: S.String,
|
|
1115
|
-
frameworksFulfilled: GetUserSecurityTrainingStatusResponseResourcesItemFrameworksFulfilledList,
|
|
1116
|
-
traineeFullName: S.String,
|
|
1117
|
-
traineeAccountName: S.String,
|
|
1118
|
-
traineeEmail: S.String,
|
|
1119
|
-
status: GetUserSecurityTrainingStatusResponseResourcesItemStatus,
|
|
1120
|
-
trainingCreatedTimestamp: S.String,
|
|
1121
|
-
trainingDueTimestamp: S.String,
|
|
1122
|
-
trainingCompletedTimestamp: S.optional(S.NullOr(S.String)),
|
|
1123
|
-
}),
|
|
1124
|
-
).annotate({
|
|
1125
|
-
identifier: "GetUserSecurityTrainingStatusResponseResourcesItem",
|
|
1126
|
-
}) as any as S.Schema<GetUserSecurityTrainingStatusResponseResourcesItem>;
|
|
1127
|
-
|
|
1128
535
|
export type GetUserSecurityTrainingStatusResponseResourcesList =
|
|
1129
536
|
Array<GetUserSecurityTrainingStatusResponseResourcesItem>;
|
|
1130
|
-
export const GetUserSecurityTrainingStatusResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
1131
|
-
GetUserSecurityTrainingStatusResponseResourcesItem,
|
|
1132
|
-
) as any as S.Schema<GetUserSecurityTrainingStatusResponseResourcesList>;
|
|
1133
|
-
|
|
1134
537
|
export interface GetUserSecurityTrainingStatusResponse {
|
|
1135
538
|
resources?: GetUserSecurityTrainingStatusResponseResourcesList;
|
|
1136
539
|
}
|
|
1137
|
-
export const GetUserSecurityTrainingStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1138
|
-
S.Struct({
|
|
1139
|
-
resources: S.optional(GetUserSecurityTrainingStatusResponseResourcesList),
|
|
1140
|
-
}),
|
|
1141
|
-
).annotate({
|
|
1142
|
-
identifier: "GetUserSecurityTrainingStatusResponse",
|
|
1143
|
-
}) as any as S.Schema<GetUserSecurityTrainingStatusResponse>;
|
|
1144
|
-
|
|
1145
540
|
export interface GetVulnerableComponentRequest {
|
|
1146
541
|
/** 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
542
|
resourceId: string;
|
|
1148
543
|
}
|
|
1149
|
-
export const GetVulnerableComponentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1150
|
-
S.Struct({
|
|
1151
|
-
resourceId: S.String.pipe(T.Query()),
|
|
1152
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/vulnerable_component", code: 200 })),
|
|
1153
|
-
).annotate({
|
|
1154
|
-
identifier: "GetVulnerableComponentRequest",
|
|
1155
|
-
}) as any as S.Schema<GetVulnerableComponentRequest>;
|
|
1156
|
-
|
|
1157
544
|
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
1158
545
|
export type GetVulnerableComponentResponseResourcesItemTargetType =
|
|
1159
546
|
| "HOST"
|
|
@@ -1166,8 +553,6 @@ export type GetVulnerableComponentResponseResourcesItemTargetType =
|
|
|
1166
553
|
| "MANIFEST_FILE"
|
|
1167
554
|
| "WORKSTATION"
|
|
1168
555
|
| "OTHER";
|
|
1169
|
-
export const GetVulnerableComponentResponseResourcesItemTargetType = S.String;
|
|
1170
|
-
|
|
1171
556
|
export interface GetVulnerableComponentResponseResourcesItem {
|
|
1172
557
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1173
558
|
displayName: string;
|
|
@@ -1184,71 +569,24 @@ export interface GetVulnerableComponentResponseResourcesItem {
|
|
|
1184
569
|
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
1185
570
|
targetType: GetVulnerableComponentResponseResourcesItemTargetType;
|
|
1186
571
|
}
|
|
1187
|
-
export const GetVulnerableComponentResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1188
|
-
S.Struct({
|
|
1189
|
-
displayName: S.String,
|
|
1190
|
-
uniqueId: S.String,
|
|
1191
|
-
externalUrl: S.String,
|
|
1192
|
-
collectedTimestamp: S.String,
|
|
1193
|
-
name: S.String,
|
|
1194
|
-
description: S.String,
|
|
1195
|
-
targetType: GetVulnerableComponentResponseResourcesItemTargetType,
|
|
1196
|
-
}),
|
|
1197
|
-
).annotate({
|
|
1198
|
-
identifier: "GetVulnerableComponentResponseResourcesItem",
|
|
1199
|
-
}) as any as S.Schema<GetVulnerableComponentResponseResourcesItem>;
|
|
1200
|
-
|
|
1201
572
|
export type GetVulnerableComponentResponseResourcesList =
|
|
1202
573
|
Array<GetVulnerableComponentResponseResourcesItem>;
|
|
1203
|
-
export const GetVulnerableComponentResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
1204
|
-
GetVulnerableComponentResponseResourcesItem,
|
|
1205
|
-
) as any as S.Schema<GetVulnerableComponentResponseResourcesList>;
|
|
1206
|
-
|
|
1207
574
|
export interface GetVulnerableComponentResponse {
|
|
1208
575
|
resources?: GetVulnerableComponentResponseResourcesList;
|
|
1209
576
|
}
|
|
1210
|
-
export const GetVulnerableComponentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1211
|
-
S.Struct({
|
|
1212
|
-
resources: S.optional(GetVulnerableComponentResponseResourcesList),
|
|
1213
|
-
}),
|
|
1214
|
-
).annotate({
|
|
1215
|
-
identifier: "GetVulnerableComponentResponse",
|
|
1216
|
-
}) as any as S.Schema<GetVulnerableComponentResponse>;
|
|
1217
|
-
|
|
1218
577
|
export interface GetWindowsUserComputerRequest {
|
|
1219
578
|
/** 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 */
|
|
1220
579
|
resourceId: string;
|
|
1221
580
|
}
|
|
1222
|
-
export const GetWindowsUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1223
|
-
S.Struct({
|
|
1224
|
-
resourceId: S.String.pipe(T.Query()),
|
|
1225
|
-
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/windows_user_computer", code: 200 })),
|
|
1226
|
-
).annotate({
|
|
1227
|
-
identifier: "GetWindowsUserComputerRequest",
|
|
1228
|
-
}) as any as S.Schema<GetWindowsUserComputerRequest>;
|
|
1229
|
-
|
|
1230
581
|
export interface GetWindowsUserComputerResponseResourcesItemProgramsItem {
|
|
1231
582
|
/** The name of the application. */
|
|
1232
583
|
name: string;
|
|
1233
584
|
/** The last time the application was opened. */
|
|
1234
585
|
lastOpenedTimestamp?: string | null;
|
|
1235
586
|
}
|
|
1236
|
-
export const GetWindowsUserComputerResponseResourcesItemProgramsItem = /*@__PURE__*/ S.suspend(() =>
|
|
1237
|
-
S.Struct({
|
|
1238
|
-
name: S.String,
|
|
1239
|
-
lastOpenedTimestamp: S.optional(S.NullOr(S.String)),
|
|
1240
|
-
}),
|
|
1241
|
-
).annotate({
|
|
1242
|
-
identifier: "GetWindowsUserComputerResponseResourcesItemProgramsItem",
|
|
1243
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
|
|
1244
|
-
|
|
1245
587
|
/** All the installed programs on the Windows system. */
|
|
1246
588
|
export type GetWindowsUserComputerResponseResourcesItemProgramsList =
|
|
1247
589
|
Array<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
|
|
1248
|
-
export const GetWindowsUserComputerResponseResourcesItemProgramsList = /*@__PURE__*/ S.Array(
|
|
1249
|
-
GetWindowsUserComputerResponseResourcesItemProgramsItem,
|
|
1250
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemProgramsList>;
|
|
1251
|
-
|
|
1252
590
|
/** 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. */
|
|
1253
591
|
export type GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser =
|
|
1254
592
|
| "CHROME"
|
|
@@ -1256,8 +594,6 @@ export type GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrow
|
|
|
1256
594
|
| "OPERA"
|
|
1257
595
|
| "SAFARI"
|
|
1258
596
|
| "EDGE";
|
|
1259
|
-
export const GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser = S.String;
|
|
1260
|
-
|
|
1261
597
|
export interface GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem {
|
|
1262
598
|
/** The identifier of the browser extension. */
|
|
1263
599
|
extensionId: string;
|
|
@@ -1266,25 +602,9 @@ export interface GetWindowsUserComputerResponseResourcesItemBrowserExtensionsIte
|
|
|
1266
602
|
/** 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. */
|
|
1267
603
|
browser: GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser;
|
|
1268
604
|
}
|
|
1269
|
-
export const GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem =
|
|
1270
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
1271
|
-
S.Struct({
|
|
1272
|
-
extensionId: S.String,
|
|
1273
|
-
name: S.String,
|
|
1274
|
-
browser: GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItemBrowser,
|
|
1275
|
-
}),
|
|
1276
|
-
).annotate({
|
|
1277
|
-
identifier: "GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem",
|
|
1278
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
1279
|
-
|
|
1280
605
|
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
1281
606
|
export type GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
1282
607
|
Array<GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem>;
|
|
1283
|
-
export const GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList =
|
|
1284
|
-
/*@__PURE__*/ S.Array(
|
|
1285
|
-
GetWindowsUserComputerResponseResourcesItemBrowserExtensionsItem,
|
|
1286
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList>;
|
|
1287
|
-
|
|
1288
608
|
export interface GetWindowsUserComputerResponseResourcesItemDrivesItem {
|
|
1289
609
|
/** The name of the drive. */
|
|
1290
610
|
name: string;
|
|
@@ -1293,41 +613,16 @@ export interface GetWindowsUserComputerResponseResourcesItemDrivesItem {
|
|
|
1293
613
|
/** Metadata about the boot volume helps Vanta skip checking volumes that aren't relevant, like USB Drives. */
|
|
1294
614
|
isBootVolume?: boolean | null;
|
|
1295
615
|
}
|
|
1296
|
-
export const GetWindowsUserComputerResponseResourcesItemDrivesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1297
|
-
S.Struct({
|
|
1298
|
-
name: S.String,
|
|
1299
|
-
encrypted: S.Boolean,
|
|
1300
|
-
isBootVolume: S.optional(S.NullOr(S.Boolean)),
|
|
1301
|
-
}),
|
|
1302
|
-
).annotate({
|
|
1303
|
-
identifier: "GetWindowsUserComputerResponseResourcesItemDrivesItem",
|
|
1304
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
|
|
1305
|
-
|
|
1306
616
|
/** A list of drives on this device. Used to verify encryption status. */
|
|
1307
617
|
export type GetWindowsUserComputerResponseResourcesItemDrivesList =
|
|
1308
618
|
Array<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
|
|
1309
|
-
export const GetWindowsUserComputerResponseResourcesItemDrivesList = /*@__PURE__*/ S.Array(
|
|
1310
|
-
GetWindowsUserComputerResponseResourcesItemDrivesItem,
|
|
1311
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemDrivesList>;
|
|
1312
|
-
|
|
1313
619
|
export type GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem =
|
|
1314
620
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1315
|
-
export const GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem =
|
|
1316
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1317
|
-
|
|
1318
621
|
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
1319
622
|
export type GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
1320
623
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
1321
|
-
export const GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList =
|
|
1322
|
-
/*@__PURE__*/ S.Array(
|
|
1323
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1324
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList>;
|
|
1325
|
-
|
|
1326
624
|
export type GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
1327
625
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1328
|
-
export const GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockSettings =
|
|
1329
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1330
|
-
|
|
1331
626
|
export interface GetWindowsUserComputerResponseResourcesItemUsersItem {
|
|
1332
627
|
/** The user's username. Does not have to be unique. */
|
|
1333
628
|
username: string;
|
|
@@ -1337,57 +632,26 @@ export interface GetWindowsUserComputerResponseResourcesItemUsersItem {
|
|
|
1337
632
|
/** The last time the user logged in to the device, if available. */
|
|
1338
633
|
lastLoginTimestamp?: string | null;
|
|
1339
634
|
}
|
|
1340
|
-
export const GetWindowsUserComputerResponseResourcesItemUsersItem = /*@__PURE__*/ S.suspend(() =>
|
|
1341
|
-
S.Struct({
|
|
1342
|
-
username: S.String,
|
|
1343
|
-
screenlockPolicies: GetWindowsUserComputerResponseResourcesItemUsersItemScreenlockPoliciesList,
|
|
1344
|
-
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1345
|
-
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
1346
|
-
}),
|
|
1347
|
-
).annotate({
|
|
1348
|
-
identifier: "GetWindowsUserComputerResponseResourcesItemUsersItem",
|
|
1349
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemUsersItem>;
|
|
1350
|
-
|
|
1351
635
|
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
1352
636
|
export type GetWindowsUserComputerResponseResourcesItemUsersList =
|
|
1353
637
|
Array<GetWindowsUserComputerResponseResourcesItemUsersItem>;
|
|
1354
|
-
export const GetWindowsUserComputerResponseResourcesItemUsersList = /*@__PURE__*/ S.Array(
|
|
1355
|
-
GetWindowsUserComputerResponseResourcesItemUsersItem,
|
|
1356
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemUsersList>;
|
|
1357
|
-
|
|
1358
638
|
export type GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
1359
639
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1360
|
-
export const GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesItem =
|
|
1361
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1362
|
-
|
|
1363
640
|
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
1364
641
|
export type GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
1365
642
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
1366
|
-
export const GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList =
|
|
1367
|
-
/*@__PURE__*/ S.Array(
|
|
1368
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1369
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList>;
|
|
1370
|
-
|
|
1371
643
|
export type GetWindowsUserComputerResponseResourcesItemPasswordPolicy =
|
|
1372
644
|
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1373
|
-
export const GetWindowsUserComputerResponseResourcesItemPasswordPolicy =
|
|
1374
|
-
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1375
|
-
|
|
1376
645
|
/** The category of the security product. */
|
|
1377
646
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory =
|
|
1378
647
|
| "FIREWALL"
|
|
1379
648
|
| "ANTIVIRUS"
|
|
1380
649
|
| "ANTISPYWARE";
|
|
1381
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory =
|
|
1382
|
-
S.String;
|
|
1383
|
-
|
|
1384
650
|
/** The state of the security product. */
|
|
1385
651
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState =
|
|
1386
652
|
| "ON"
|
|
1387
653
|
| "OFF"
|
|
1388
654
|
| "UNKNOWN";
|
|
1389
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState = S.String;
|
|
1390
|
-
|
|
1391
655
|
export interface GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem {
|
|
1392
656
|
/** The name of the security product. */
|
|
1393
657
|
name: string;
|
|
@@ -1400,27 +664,9 @@ export interface GetWindowsUserComputerResponseResourcesItemWindowsSecurityProdu
|
|
|
1400
664
|
/** Whether the security signatures are up to date. */
|
|
1401
665
|
signaturesUpToDate: boolean;
|
|
1402
666
|
}
|
|
1403
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem =
|
|
1404
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
1405
|
-
S.Struct({
|
|
1406
|
-
name: S.String,
|
|
1407
|
-
category: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemCategory,
|
|
1408
|
-
state: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItemState,
|
|
1409
|
-
stateTimestamp: S.String,
|
|
1410
|
-
signaturesUpToDate: S.Boolean,
|
|
1411
|
-
}),
|
|
1412
|
-
).annotate({
|
|
1413
|
-
identifier: "GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem",
|
|
1414
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem>;
|
|
1415
|
-
|
|
1416
667
|
/** A list of services that are monitored by Windows Security Center (WSC). */
|
|
1417
668
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList =
|
|
1418
669
|
Array<GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem>;
|
|
1419
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList =
|
|
1420
|
-
/*@__PURE__*/ S.Array(
|
|
1421
|
-
GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem,
|
|
1422
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList>;
|
|
1423
|
-
|
|
1424
670
|
/** The health of the monitored Firewall. */
|
|
1425
671
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall =
|
|
1426
672
|
| "GOOD"
|
|
@@ -1428,8 +674,6 @@ export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFire
|
|
|
1428
674
|
| "SNOOZED"
|
|
1429
675
|
| "NOT_MONITORED"
|
|
1430
676
|
| "ERROR";
|
|
1431
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall = S.String;
|
|
1432
|
-
|
|
1433
677
|
/** The health of the Windows Autoupdate feature. */
|
|
1434
678
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate =
|
|
1435
679
|
| "GOOD"
|
|
@@ -1437,8 +681,6 @@ export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAuto
|
|
|
1437
681
|
| "SNOOZED"
|
|
1438
682
|
| "NOT_MONITORED"
|
|
1439
683
|
| "ERROR";
|
|
1440
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate = S.String;
|
|
1441
|
-
|
|
1442
684
|
/** The health of the monitored Antivirus solution. */
|
|
1443
685
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus =
|
|
1444
686
|
| "GOOD"
|
|
@@ -1446,8 +688,6 @@ export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAnti
|
|
|
1446
688
|
| "SNOOZED"
|
|
1447
689
|
| "NOT_MONITORED"
|
|
1448
690
|
| "ERROR";
|
|
1449
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus = S.String;
|
|
1450
|
-
|
|
1451
691
|
/** The health of the Internet Settings. */
|
|
1452
692
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting =
|
|
1453
693
|
| "GOOD"
|
|
@@ -1455,9 +695,6 @@ export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInte
|
|
|
1455
695
|
| "SNOOZED"
|
|
1456
696
|
| "NOT_MONITORED"
|
|
1457
697
|
| "ERROR";
|
|
1458
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting =
|
|
1459
|
-
S.String;
|
|
1460
|
-
|
|
1461
698
|
/** The health of the User Account Control (UAC) capability in Windows. */
|
|
1462
699
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
1463
700
|
| "GOOD"
|
|
@@ -1465,9 +702,6 @@ export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUser
|
|
|
1465
702
|
| "SNOOZED"
|
|
1466
703
|
| "NOT_MONITORED"
|
|
1467
704
|
| "ERROR";
|
|
1468
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
1469
|
-
S.String;
|
|
1470
|
-
|
|
1471
705
|
/** The health of the Windows Security Center Service. */
|
|
1472
706
|
export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
1473
707
|
| "GOOD"
|
|
@@ -1475,9 +709,6 @@ export type GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWind
|
|
|
1475
709
|
| "SNOOZED"
|
|
1476
710
|
| "NOT_MONITORED"
|
|
1477
711
|
| "ERROR";
|
|
1478
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
1479
|
-
S.String;
|
|
1480
|
-
|
|
1481
712
|
export interface GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter {
|
|
1482
713
|
/** The health of the monitored Firewall. */
|
|
1483
714
|
firewall: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall;
|
|
@@ -1492,23 +723,6 @@ export interface GetWindowsUserComputerResponseResourcesItemWindowsSecurityCente
|
|
|
1492
723
|
/** The health of the Windows Security Center Service. */
|
|
1493
724
|
windowsSecurityCenterService: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService;
|
|
1494
725
|
}
|
|
1495
|
-
export const GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter =
|
|
1496
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
1497
|
-
S.Struct({
|
|
1498
|
-
firewall: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterFirewall,
|
|
1499
|
-
autoupdate: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAutoupdate,
|
|
1500
|
-
antivirus: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterAntivirus,
|
|
1501
|
-
internetSetting:
|
|
1502
|
-
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterInternetSetting,
|
|
1503
|
-
userAccountControl:
|
|
1504
|
-
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterUserAccountControl,
|
|
1505
|
-
windowsSecurityCenterService:
|
|
1506
|
-
GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenterWindowsSecurityCenterService,
|
|
1507
|
-
}),
|
|
1508
|
-
).annotate({
|
|
1509
|
-
identifier: "GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter",
|
|
1510
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter>;
|
|
1511
|
-
|
|
1512
726
|
export interface GetWindowsUserComputerResponseResourcesItem {
|
|
1513
727
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1514
728
|
displayName: string;
|
|
@@ -1549,81 +763,21 @@ export interface GetWindowsUserComputerResponseResourcesItem {
|
|
|
1549
763
|
windowsSecurityProducts?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList | null;
|
|
1550
764
|
windowsSecurityCenter?: GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter | null;
|
|
1551
765
|
}
|
|
1552
|
-
export const GetWindowsUserComputerResponseResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1553
|
-
S.Struct({
|
|
1554
|
-
displayName: S.String,
|
|
1555
|
-
uniqueId: S.String,
|
|
1556
|
-
externalUrl: S.String,
|
|
1557
|
-
collectedTimestamp: S.String,
|
|
1558
|
-
osName: S.String,
|
|
1559
|
-
osVersion: S.String,
|
|
1560
|
-
hardwareUuid: S.String,
|
|
1561
|
-
serialNumber: S.String,
|
|
1562
|
-
programs: GetWindowsUserComputerResponseResourcesItemProgramsList,
|
|
1563
|
-
browserExtensions: GetWindowsUserComputerResponseResourcesItemBrowserExtensionsList,
|
|
1564
|
-
drives: GetWindowsUserComputerResponseResourcesItemDrivesList,
|
|
1565
|
-
users: GetWindowsUserComputerResponseResourcesItemUsersList,
|
|
1566
|
-
systemScreenlockPolicies:
|
|
1567
|
-
GetWindowsUserComputerResponseResourcesItemSystemScreenlockPoliciesList,
|
|
1568
|
-
isManaged: S.Boolean,
|
|
1569
|
-
autoUpdatesEnabled: S.Boolean,
|
|
1570
|
-
owner: S.optional(S.NullOr(S.String)),
|
|
1571
|
-
passwordPolicy: S.optional(S.NullOr(GetMacosUserComputerResponseResourcesItemPasswordPolicy)),
|
|
1572
|
-
lastEnrolledTimestamp: S.optional(S.NullOr(S.String)),
|
|
1573
|
-
windowsSecurityProducts: S.optional(
|
|
1574
|
-
S.NullOr(GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsList),
|
|
1575
|
-
),
|
|
1576
|
-
windowsSecurityCenter: S.optional(
|
|
1577
|
-
S.NullOr(GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter),
|
|
1578
|
-
),
|
|
1579
|
-
}),
|
|
1580
|
-
).annotate({
|
|
1581
|
-
identifier: "GetWindowsUserComputerResponseResourcesItem",
|
|
1582
|
-
}) as any as S.Schema<GetWindowsUserComputerResponseResourcesItem>;
|
|
1583
|
-
|
|
1584
766
|
export type GetWindowsUserComputerResponseResourcesList =
|
|
1585
767
|
Array<GetWindowsUserComputerResponseResourcesItem>;
|
|
1586
|
-
export const GetWindowsUserComputerResponseResourcesList = /*@__PURE__*/ S.Array(
|
|
1587
|
-
GetWindowsUserComputerResponseResourcesItem,
|
|
1588
|
-
) as any as S.Schema<GetWindowsUserComputerResponseResourcesList>;
|
|
1589
|
-
|
|
1590
768
|
export interface GetWindowsUserComputerResponse {
|
|
1591
769
|
resources?: GetWindowsUserComputerResponseResourcesList;
|
|
1592
770
|
}
|
|
1593
|
-
export const GetWindowsUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1594
|
-
S.Struct({
|
|
1595
|
-
resources: S.optional(GetWindowsUserComputerResponseResourcesList),
|
|
1596
|
-
}),
|
|
1597
|
-
).annotate({
|
|
1598
|
-
identifier: "GetWindowsUserComputerResponse",
|
|
1599
|
-
}) as any as S.Schema<GetWindowsUserComputerResponse>;
|
|
1600
|
-
|
|
1601
771
|
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsItem =
|
|
1602
772
|
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem;
|
|
1603
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsItem =
|
|
1604
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem;
|
|
1605
|
-
|
|
1606
773
|
/** The API params associated with this vulnerability. */
|
|
1607
774
|
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList =
|
|
1608
775
|
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem>;
|
|
1609
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList =
|
|
1610
|
-
/*@__PURE__*/ S.Array(
|
|
1611
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem,
|
|
1612
|
-
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList>;
|
|
1613
|
-
|
|
1614
776
|
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersItem =
|
|
1615
777
|
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem;
|
|
1616
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersItem =
|
|
1617
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem;
|
|
1618
|
-
|
|
1619
778
|
/** The API headers associated with this vulnerability. */
|
|
1620
779
|
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList =
|
|
1621
780
|
Array<GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem>;
|
|
1622
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList =
|
|
1623
|
-
/*@__PURE__*/ S.Array(
|
|
1624
|
-
GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemHeadersItem,
|
|
1625
|
-
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList>;
|
|
1626
|
-
|
|
1627
781
|
export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem {
|
|
1628
782
|
/** Markdown description of this API endpoint vulnerability occurrence. */
|
|
1629
783
|
description: string;
|
|
@@ -1636,35 +790,9 @@ export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurr
|
|
|
1636
790
|
/** The body of the request passed to the API, with sensitive information redacted. */
|
|
1637
791
|
body?: string | null;
|
|
1638
792
|
}
|
|
1639
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem =
|
|
1640
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
1641
|
-
S.Struct({
|
|
1642
|
-
description: S.String,
|
|
1643
|
-
fromUrl: S.optional(S.NullOr(S.String)),
|
|
1644
|
-
queryParams: S.optional(
|
|
1645
|
-
S.NullOr(
|
|
1646
|
-
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemQueryParamsList,
|
|
1647
|
-
),
|
|
1648
|
-
),
|
|
1649
|
-
headers: S.optional(
|
|
1650
|
-
S.NullOr(
|
|
1651
|
-
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItemHeadersList,
|
|
1652
|
-
),
|
|
1653
|
-
),
|
|
1654
|
-
body: S.optional(S.NullOr(S.String)),
|
|
1655
|
-
}),
|
|
1656
|
-
).annotate({
|
|
1657
|
-
identifier: "PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem",
|
|
1658
|
-
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem>;
|
|
1659
|
-
|
|
1660
793
|
/** A list of occurrences of vulnerable API endpoints. */
|
|
1661
794
|
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
1662
795
|
Array<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem>;
|
|
1663
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
1664
|
-
/*@__PURE__*/ S.Array(
|
|
1665
|
-
PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesItem,
|
|
1666
|
-
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList>;
|
|
1667
|
-
|
|
1668
796
|
export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItem {
|
|
1669
797
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1670
798
|
displayName: string;
|
|
@@ -1693,71 +821,21 @@ export interface PutApiEndpointVulnerabilityConnectorsRequestResourcesItem {
|
|
|
1693
821
|
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
1694
822
|
cvss3Score?: number | null;
|
|
1695
823
|
}
|
|
1696
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesItem = /*@__PURE__*/ S.suspend(
|
|
1697
|
-
() =>
|
|
1698
|
-
S.Struct({
|
|
1699
|
-
displayName: S.String,
|
|
1700
|
-
uniqueId: S.String,
|
|
1701
|
-
externalUrl: S.String,
|
|
1702
|
-
occurrences: PutApiEndpointVulnerabilityConnectorsRequestResourcesItemOccurrencesList,
|
|
1703
|
-
severity: S.Number,
|
|
1704
|
-
vulnerableComponentUniqueId: S.String,
|
|
1705
|
-
description: S.String,
|
|
1706
|
-
remediationInstructions: S.String,
|
|
1707
|
-
url: S.String,
|
|
1708
|
-
httpMethod: S.String,
|
|
1709
|
-
cveId: S.optional(S.NullOr(S.String)),
|
|
1710
|
-
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
1711
|
-
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
1712
|
-
}),
|
|
1713
|
-
).annotate({
|
|
1714
|
-
identifier: "PutApiEndpointVulnerabilityConnectorsRequestResourcesItem",
|
|
1715
|
-
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesItem>;
|
|
1716
|
-
|
|
1717
824
|
export type PutApiEndpointVulnerabilityConnectorsRequestResourcesList =
|
|
1718
825
|
Array<PutApiEndpointVulnerabilityConnectorsRequestResourcesItem>;
|
|
1719
|
-
export const PutApiEndpointVulnerabilityConnectorsRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
1720
|
-
PutApiEndpointVulnerabilityConnectorsRequestResourcesItem,
|
|
1721
|
-
) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequestResourcesList>;
|
|
1722
|
-
|
|
1723
826
|
export interface PutApiEndpointVulnerabilityConnectorsRequest {
|
|
1724
827
|
/** 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 */
|
|
1725
828
|
resourceId: string;
|
|
1726
829
|
resources: PutApiEndpointVulnerabilityConnectorsRequestResourcesList;
|
|
1727
830
|
}
|
|
1728
|
-
export const PutApiEndpointVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1729
|
-
S.Struct({
|
|
1730
|
-
resourceId: S.String,
|
|
1731
|
-
resources: PutApiEndpointVulnerabilityConnectorsRequestResourcesList,
|
|
1732
|
-
}).pipe(
|
|
1733
|
-
T.Http({
|
|
1734
|
-
method: "PUT",
|
|
1735
|
-
uri: "/v1/resources/api_endpoint_vulnerability_connectors",
|
|
1736
|
-
code: 200,
|
|
1737
|
-
}),
|
|
1738
|
-
),
|
|
1739
|
-
).annotate({
|
|
1740
|
-
identifier: "PutApiEndpointVulnerabilityConnectorsRequest",
|
|
1741
|
-
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequest>;
|
|
1742
|
-
|
|
1743
831
|
export interface PutApiEndpointVulnerabilityConnectorsResponse {
|
|
1744
832
|
success: boolean;
|
|
1745
833
|
}
|
|
1746
|
-
export const PutApiEndpointVulnerabilityConnectorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1747
|
-
S.Struct({
|
|
1748
|
-
success: S.Boolean,
|
|
1749
|
-
}),
|
|
1750
|
-
).annotate({
|
|
1751
|
-
identifier: "PutApiEndpointVulnerabilityConnectorsResponse",
|
|
1752
|
-
}) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsResponse>;
|
|
1753
|
-
|
|
1754
834
|
/** The current status of the background check. */
|
|
1755
835
|
export type PutBackgroundCheckConnectorRequestResourcesItemStatus =
|
|
1756
836
|
| "INCOMPLETE"
|
|
1757
837
|
| "IN_PROGRESS"
|
|
1758
838
|
| "COMPLETE";
|
|
1759
|
-
export const PutBackgroundCheckConnectorRequestResourcesItemStatus = S.String;
|
|
1760
|
-
|
|
1761
839
|
export interface PutBackgroundCheckConnectorRequestResourcesItem {
|
|
1762
840
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1763
841
|
displayName: string;
|
|
@@ -1774,94 +852,31 @@ export interface PutBackgroundCheckConnectorRequestResourcesItem {
|
|
|
1774
852
|
/** If complete, the date of completion of the background check. */
|
|
1775
853
|
completionDate?: string | null;
|
|
1776
854
|
}
|
|
1777
|
-
export const PutBackgroundCheckConnectorRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
1778
|
-
S.Struct({
|
|
1779
|
-
displayName: S.String,
|
|
1780
|
-
uniqueId: S.String,
|
|
1781
|
-
externalUrl: S.String,
|
|
1782
|
-
fullName: S.String,
|
|
1783
|
-
email: S.String,
|
|
1784
|
-
status: PutBackgroundCheckConnectorRequestResourcesItemStatus,
|
|
1785
|
-
completionDate: S.optional(S.NullOr(S.String)),
|
|
1786
|
-
}),
|
|
1787
|
-
).annotate({
|
|
1788
|
-
identifier: "PutBackgroundCheckConnectorRequestResourcesItem",
|
|
1789
|
-
}) as any as S.Schema<PutBackgroundCheckConnectorRequestResourcesItem>;
|
|
1790
|
-
|
|
1791
855
|
export type PutBackgroundCheckConnectorRequestResourcesList =
|
|
1792
856
|
Array<PutBackgroundCheckConnectorRequestResourcesItem>;
|
|
1793
|
-
export const PutBackgroundCheckConnectorRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
1794
|
-
PutBackgroundCheckConnectorRequestResourcesItem,
|
|
1795
|
-
) as any as S.Schema<PutBackgroundCheckConnectorRequestResourcesList>;
|
|
1796
|
-
|
|
1797
857
|
export interface PutBackgroundCheckConnectorRequest {
|
|
1798
858
|
/** 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 */
|
|
1799
859
|
resourceId: string;
|
|
1800
860
|
resources: PutBackgroundCheckConnectorRequestResourcesList;
|
|
1801
861
|
}
|
|
1802
|
-
export const PutBackgroundCheckConnectorRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1803
|
-
S.Struct({
|
|
1804
|
-
resourceId: S.String,
|
|
1805
|
-
resources: PutBackgroundCheckConnectorRequestResourcesList,
|
|
1806
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/background_check_connector", code: 200 })),
|
|
1807
|
-
).annotate({
|
|
1808
|
-
identifier: "PutBackgroundCheckConnectorRequest",
|
|
1809
|
-
}) as any as S.Schema<PutBackgroundCheckConnectorRequest>;
|
|
1810
|
-
|
|
1811
862
|
export interface PutBackgroundCheckConnectorResponse {
|
|
1812
863
|
success: boolean;
|
|
1813
864
|
}
|
|
1814
|
-
export const PutBackgroundCheckConnectorResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1815
|
-
S.Struct({
|
|
1816
|
-
success: S.Boolean,
|
|
1817
|
-
}),
|
|
1818
|
-
).annotate({
|
|
1819
|
-
identifier: "PutBackgroundCheckConnectorResponse",
|
|
1820
|
-
}) as any as S.Schema<PutBackgroundCheckConnectorResponse>;
|
|
1821
|
-
|
|
1822
865
|
export type PutCustomResourceRequestResourcesItem = GetCustomResourceResponseResourcesItem;
|
|
1823
|
-
export const PutCustomResourceRequestResourcesItem = GetCustomResourceResponseResourcesItem;
|
|
1824
|
-
|
|
1825
866
|
export type PutCustomResourceRequestResourcesList = Array<GetCustomResourceResponseResourcesItem>;
|
|
1826
|
-
export const PutCustomResourceRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
1827
|
-
GetCustomResourceResponseResourcesItem,
|
|
1828
|
-
) as any as S.Schema<PutCustomResourceRequestResourcesList>;
|
|
1829
|
-
|
|
1830
867
|
export interface PutCustomResourceRequest {
|
|
1831
868
|
/** 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 */
|
|
1832
869
|
resourceId: string;
|
|
1833
870
|
resources: PutCustomResourceRequestResourcesList;
|
|
1834
871
|
}
|
|
1835
|
-
export const PutCustomResourceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1836
|
-
S.Struct({
|
|
1837
|
-
resourceId: S.String,
|
|
1838
|
-
resources: PutCustomResourceRequestResourcesList,
|
|
1839
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/custom_resource", code: 200 })),
|
|
1840
|
-
).annotate({ identifier: "PutCustomResourceRequest" }) as any as S.Schema<PutCustomResourceRequest>;
|
|
1841
|
-
|
|
1842
872
|
export interface PutCustomResourceResponse {
|
|
1843
873
|
success: boolean;
|
|
1844
874
|
}
|
|
1845
|
-
export const PutCustomResourceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1846
|
-
S.Struct({
|
|
1847
|
-
success: S.Boolean,
|
|
1848
|
-
}),
|
|
1849
|
-
).annotate({
|
|
1850
|
-
identifier: "PutCustomResourceResponse",
|
|
1851
|
-
}) as any as S.Schema<PutCustomResourceResponse>;
|
|
1852
|
-
|
|
1853
875
|
export type PutMacosUserComputerRequestResourcesItemApplicationsItem =
|
|
1854
876
|
GetMacosUserComputerResponseResourcesItemApplicationsItem;
|
|
1855
|
-
export const PutMacosUserComputerRequestResourcesItemApplicationsItem =
|
|
1856
|
-
GetMacosUserComputerResponseResourcesItemApplicationsItem;
|
|
1857
|
-
|
|
1858
877
|
/** All the installed Mac Apps on the system. */
|
|
1859
878
|
export type PutMacosUserComputerRequestResourcesItemApplicationsList =
|
|
1860
879
|
Array<GetMacosUserComputerResponseResourcesItemApplicationsItem>;
|
|
1861
|
-
export const PutMacosUserComputerRequestResourcesItemApplicationsList = /*@__PURE__*/ S.Array(
|
|
1862
|
-
GetMacosUserComputerResponseResourcesItemApplicationsItem,
|
|
1863
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemApplicationsList>;
|
|
1864
|
-
|
|
1865
880
|
/** 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. */
|
|
1866
881
|
export type PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser =
|
|
1867
882
|
| "CHROME"
|
|
@@ -1869,8 +884,6 @@ export type PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser
|
|
|
1869
884
|
| "OPERA"
|
|
1870
885
|
| "SAFARI"
|
|
1871
886
|
| "EDGE";
|
|
1872
|
-
export const PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser = S.String;
|
|
1873
|
-
|
|
1874
887
|
export interface PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem {
|
|
1875
888
|
/** The identifier of the browser extension. */
|
|
1876
889
|
extensionId: string;
|
|
@@ -1879,54 +892,21 @@ export interface PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem {
|
|
|
1879
892
|
/** 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. */
|
|
1880
893
|
browser: PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser | (string & {});
|
|
1881
894
|
}
|
|
1882
|
-
export const PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem =
|
|
1883
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
1884
|
-
S.Struct({
|
|
1885
|
-
extensionId: S.String,
|
|
1886
|
-
name: S.String,
|
|
1887
|
-
browser: PutMacosUserComputerRequestResourcesItemBrowserExtensionsItemBrowser,
|
|
1888
|
-
}),
|
|
1889
|
-
).annotate({
|
|
1890
|
-
identifier: "PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem",
|
|
1891
|
-
}) as any as S.Schema<PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
1892
|
-
|
|
1893
895
|
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
1894
896
|
export type PutMacosUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
1895
897
|
Array<PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
1896
|
-
export const PutMacosUserComputerRequestResourcesItemBrowserExtensionsList = /*@__PURE__*/ S.Array(
|
|
1897
|
-
PutMacosUserComputerRequestResourcesItemBrowserExtensionsItem,
|
|
1898
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemBrowserExtensionsList>;
|
|
1899
|
-
|
|
1900
898
|
export type PutMacosUserComputerRequestResourcesItemDrivesItem =
|
|
1901
899
|
GetMacosUserComputerResponseResourcesItemDrivesItem;
|
|
1902
|
-
export const PutMacosUserComputerRequestResourcesItemDrivesItem =
|
|
1903
|
-
GetMacosUserComputerResponseResourcesItemDrivesItem;
|
|
1904
|
-
|
|
1905
900
|
/** A list of drives on this device. Used to verify encryption status. */
|
|
1906
901
|
export type PutMacosUserComputerRequestResourcesItemDrivesList =
|
|
1907
902
|
Array<GetMacosUserComputerResponseResourcesItemDrivesItem>;
|
|
1908
|
-
export const PutMacosUserComputerRequestResourcesItemDrivesList = /*@__PURE__*/ S.Array(
|
|
1909
|
-
GetMacosUserComputerResponseResourcesItemDrivesItem,
|
|
1910
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemDrivesList>;
|
|
1911
|
-
|
|
1912
903
|
export type PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
1913
904
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1914
|
-
export const PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
1915
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1916
|
-
|
|
1917
905
|
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
1918
906
|
export type PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
1919
907
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
1920
|
-
export const PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
1921
|
-
/*@__PURE__*/ S.Array(
|
|
1922
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1923
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList>;
|
|
1924
|
-
|
|
1925
908
|
export type PutMacosUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
1926
909
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1927
|
-
export const PutMacosUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
1928
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1929
|
-
|
|
1930
910
|
export interface PutMacosUserComputerRequestResourcesItemUsersItem {
|
|
1931
911
|
/** The user's username. Does not have to be unique. */
|
|
1932
912
|
username: string;
|
|
@@ -1936,42 +916,16 @@ export interface PutMacosUserComputerRequestResourcesItemUsersItem {
|
|
|
1936
916
|
/** The last time the user logged in to the device, if available. */
|
|
1937
917
|
lastLoginTimestamp?: string | null;
|
|
1938
918
|
}
|
|
1939
|
-
export const PutMacosUserComputerRequestResourcesItemUsersItem = /*@__PURE__*/ S.suspend(() =>
|
|
1940
|
-
S.Struct({
|
|
1941
|
-
username: S.String,
|
|
1942
|
-
screenlockPolicies: PutMacosUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList,
|
|
1943
|
-
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1944
|
-
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
1945
|
-
}),
|
|
1946
|
-
).annotate({
|
|
1947
|
-
identifier: "PutMacosUserComputerRequestResourcesItemUsersItem",
|
|
1948
|
-
}) as any as S.Schema<PutMacosUserComputerRequestResourcesItemUsersItem>;
|
|
1949
|
-
|
|
1950
919
|
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
1951
920
|
export type PutMacosUserComputerRequestResourcesItemUsersList =
|
|
1952
921
|
Array<PutMacosUserComputerRequestResourcesItemUsersItem>;
|
|
1953
|
-
export const PutMacosUserComputerRequestResourcesItemUsersList = /*@__PURE__*/ S.Array(
|
|
1954
|
-
PutMacosUserComputerRequestResourcesItemUsersItem,
|
|
1955
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemUsersList>;
|
|
1956
|
-
|
|
1957
922
|
export type PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
1958
923
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1959
|
-
export const PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
1960
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
1961
|
-
|
|
1962
924
|
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
1963
925
|
export type PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
1964
926
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
1965
|
-
export const PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
1966
|
-
/*@__PURE__*/ S.Array(
|
|
1967
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
1968
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList>;
|
|
1969
|
-
|
|
1970
927
|
export type PutMacosUserComputerRequestResourcesItemPasswordPolicy =
|
|
1971
928
|
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1972
|
-
export const PutMacosUserComputerRequestResourcesItemPasswordPolicy =
|
|
1973
|
-
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
1974
|
-
|
|
1975
929
|
export interface PutMacosUserComputerRequestResourcesItem {
|
|
1976
930
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
1977
931
|
displayName: string;
|
|
@@ -2011,150 +965,46 @@ export interface PutMacosUserComputerRequestResourcesItem {
|
|
|
2011
965
|
/** Is XProtect enabled on the system. */
|
|
2012
966
|
isXProtectEnabled?: boolean | null;
|
|
2013
967
|
}
|
|
2014
|
-
export const PutMacosUserComputerRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2015
|
-
S.Struct({
|
|
2016
|
-
displayName: S.String,
|
|
2017
|
-
uniqueId: S.String,
|
|
2018
|
-
externalUrl: S.String,
|
|
2019
|
-
collectedTimestamp: S.String,
|
|
2020
|
-
osName: S.String,
|
|
2021
|
-
osVersion: S.String,
|
|
2022
|
-
hardwareUuid: S.String,
|
|
2023
|
-
serialNumber: S.String,
|
|
2024
|
-
applications: PutMacosUserComputerRequestResourcesItemApplicationsList,
|
|
2025
|
-
browserExtensions: PutMacosUserComputerRequestResourcesItemBrowserExtensionsList,
|
|
2026
|
-
drives: PutMacosUserComputerRequestResourcesItemDrivesList,
|
|
2027
|
-
users: PutMacosUserComputerRequestResourcesItemUsersList,
|
|
2028
|
-
systemScreenlockPolicies: PutMacosUserComputerRequestResourcesItemSystemScreenlockPoliciesList,
|
|
2029
|
-
isManaged: S.Boolean,
|
|
2030
|
-
autoUpdatesEnabled: S.Boolean,
|
|
2031
|
-
owner: S.optional(S.NullOr(S.String)),
|
|
2032
|
-
passwordPolicy: S.optional(S.NullOr(GetMacosUserComputerResponseResourcesItemPasswordPolicy)),
|
|
2033
|
-
lastEnrolledTimestamp: S.optional(S.NullOr(S.String)),
|
|
2034
|
-
isXProtectEnabled: S.optional(S.NullOr(S.Boolean)),
|
|
2035
|
-
}),
|
|
2036
|
-
).annotate({
|
|
2037
|
-
identifier: "PutMacosUserComputerRequestResourcesItem",
|
|
2038
|
-
}) as any as S.Schema<PutMacosUserComputerRequestResourcesItem>;
|
|
2039
|
-
|
|
2040
968
|
export type PutMacosUserComputerRequestResourcesList =
|
|
2041
969
|
Array<PutMacosUserComputerRequestResourcesItem>;
|
|
2042
|
-
export const PutMacosUserComputerRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2043
|
-
PutMacosUserComputerRequestResourcesItem,
|
|
2044
|
-
) as any as S.Schema<PutMacosUserComputerRequestResourcesList>;
|
|
2045
|
-
|
|
2046
970
|
export interface PutMacosUserComputerRequest {
|
|
2047
971
|
/** 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 */
|
|
2048
972
|
resourceId: string;
|
|
2049
973
|
resources: PutMacosUserComputerRequestResourcesList;
|
|
2050
974
|
}
|
|
2051
|
-
export const PutMacosUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2052
|
-
S.Struct({
|
|
2053
|
-
resourceId: S.String,
|
|
2054
|
-
resources: PutMacosUserComputerRequestResourcesList,
|
|
2055
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/macos_user_computer", code: 200 })),
|
|
2056
|
-
).annotate({
|
|
2057
|
-
identifier: "PutMacosUserComputerRequest",
|
|
2058
|
-
}) as any as S.Schema<PutMacosUserComputerRequest>;
|
|
2059
|
-
|
|
2060
975
|
export interface PutMacosUserComputerResponse {
|
|
2061
976
|
success: boolean;
|
|
2062
977
|
}
|
|
2063
|
-
export const PutMacosUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2064
|
-
S.Struct({
|
|
2065
|
-
success: S.Boolean,
|
|
2066
|
-
}),
|
|
2067
|
-
).annotate({
|
|
2068
|
-
identifier: "PutMacosUserComputerResponse",
|
|
2069
|
-
}) as any as S.Schema<PutMacosUserComputerResponse>;
|
|
2070
|
-
|
|
2071
978
|
export type PutPackageVulnerabilityConnectorsRequestResourcesItem =
|
|
2072
979
|
GetPackageVulnerabilityConnectorsResponseResourcesItem;
|
|
2073
|
-
export const PutPackageVulnerabilityConnectorsRequestResourcesItem =
|
|
2074
|
-
GetPackageVulnerabilityConnectorsResponseResourcesItem;
|
|
2075
|
-
|
|
2076
980
|
export type PutPackageVulnerabilityConnectorsRequestResourcesList =
|
|
2077
981
|
Array<GetPackageVulnerabilityConnectorsResponseResourcesItem>;
|
|
2078
|
-
export const PutPackageVulnerabilityConnectorsRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2079
|
-
GetPackageVulnerabilityConnectorsResponseResourcesItem,
|
|
2080
|
-
) as any as S.Schema<PutPackageVulnerabilityConnectorsRequestResourcesList>;
|
|
2081
|
-
|
|
2082
982
|
export interface PutPackageVulnerabilityConnectorsRequest {
|
|
2083
983
|
/** 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 */
|
|
2084
984
|
resourceId: string;
|
|
2085
985
|
resources: PutPackageVulnerabilityConnectorsRequestResourcesList;
|
|
2086
986
|
}
|
|
2087
|
-
export const PutPackageVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2088
|
-
S.Struct({
|
|
2089
|
-
resourceId: S.String,
|
|
2090
|
-
resources: PutPackageVulnerabilityConnectorsRequestResourcesList,
|
|
2091
|
-
}).pipe(
|
|
2092
|
-
T.Http({ method: "PUT", uri: "/v1/resources/package_vulnerability_connectors", code: 200 }),
|
|
2093
|
-
),
|
|
2094
|
-
).annotate({
|
|
2095
|
-
identifier: "PutPackageVulnerabilityConnectorsRequest",
|
|
2096
|
-
}) as any as S.Schema<PutPackageVulnerabilityConnectorsRequest>;
|
|
2097
|
-
|
|
2098
987
|
export interface PutPackageVulnerabilityConnectorsResponse {
|
|
2099
988
|
success: boolean;
|
|
2100
989
|
}
|
|
2101
|
-
export const PutPackageVulnerabilityConnectorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2102
|
-
S.Struct({
|
|
2103
|
-
success: S.Boolean,
|
|
2104
|
-
}),
|
|
2105
|
-
).annotate({
|
|
2106
|
-
identifier: "PutPackageVulnerabilityConnectorsResponse",
|
|
2107
|
-
}) as any as S.Schema<PutPackageVulnerabilityConnectorsResponse>;
|
|
2108
|
-
|
|
2109
990
|
export type PutSecretRequestResourcesItem = GetSecretResponseResourcesItem;
|
|
2110
|
-
export const PutSecretRequestResourcesItem = GetSecretResponseResourcesItem;
|
|
2111
|
-
|
|
2112
991
|
export type PutSecretRequestResourcesList = Array<GetSecretResponseResourcesItem>;
|
|
2113
|
-
export const PutSecretRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2114
|
-
GetSecretResponseResourcesItem,
|
|
2115
|
-
) as any as S.Schema<PutSecretRequestResourcesList>;
|
|
2116
|
-
|
|
2117
992
|
export interface PutSecretRequest {
|
|
2118
993
|
/** 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 */
|
|
2119
994
|
resourceId: string;
|
|
2120
995
|
resources: PutSecretRequestResourcesList;
|
|
2121
996
|
}
|
|
2122
|
-
export const PutSecretRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2123
|
-
S.Struct({
|
|
2124
|
-
resourceId: S.String,
|
|
2125
|
-
resources: PutSecretRequestResourcesList,
|
|
2126
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/secret", code: 200 })),
|
|
2127
|
-
).annotate({ identifier: "PutSecretRequest" }) as any as S.Schema<PutSecretRequest>;
|
|
2128
|
-
|
|
2129
997
|
export interface PutSecretResponse {
|
|
2130
998
|
success: boolean;
|
|
2131
999
|
}
|
|
2132
|
-
export const PutSecretResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2133
|
-
S.Struct({
|
|
2134
|
-
success: S.Boolean,
|
|
2135
|
-
}),
|
|
2136
|
-
).annotate({ identifier: "PutSecretResponse" }) as any as S.Schema<PutSecretResponse>;
|
|
2137
|
-
|
|
2138
1000
|
/** The status of the task. If your application supports additional states, use the closest approximation. */
|
|
2139
1001
|
export type PutSecurityTaskRequestResourcesItemTaskState = "OPEN" | "IN_PROGRESS" | "CLOSED";
|
|
2140
|
-
export const PutSecurityTaskRequestResourcesItemTaskState = S.String;
|
|
2141
|
-
|
|
2142
1002
|
/** Priorities are mapped against SLAs for tasks. If your task system does not have fixed priorities, consider letting users configure priorities through labels. */
|
|
2143
1003
|
export type PutSecurityTaskRequestResourcesItemPriority = "P0" | "P1" | "P2" | "P3" | "P4";
|
|
2144
|
-
export const PutSecurityTaskRequestResourcesItemPriority = S.String;
|
|
2145
|
-
|
|
2146
1004
|
/** The set of users assigned to the tasks. Emails do not necessarily need to be Vanta users. */
|
|
2147
1005
|
export type PutSecurityTaskRequestResourcesItemAssigneesList = Array<string>;
|
|
2148
|
-
export const PutSecurityTaskRequestResourcesItemAssigneesList = /*@__PURE__*/ S.Array(
|
|
2149
|
-
S.String,
|
|
2150
|
-
) as any as S.Schema<PutSecurityTaskRequestResourcesItemAssigneesList>;
|
|
2151
|
-
|
|
2152
1006
|
/** The set of task tags or labels. */
|
|
2153
1007
|
export type PutSecurityTaskRequestResourcesItemLabelsList = Array<string>;
|
|
2154
|
-
export const PutSecurityTaskRequestResourcesItemLabelsList = /*@__PURE__*/ S.Array(
|
|
2155
|
-
S.String,
|
|
2156
|
-
) as any as S.Schema<PutSecurityTaskRequestResourcesItemLabelsList>;
|
|
2157
|
-
|
|
2158
1008
|
export interface PutSecurityTaskRequestResourcesItem {
|
|
2159
1009
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2160
1010
|
displayName: string;
|
|
@@ -2183,65 +1033,20 @@ export interface PutSecurityTaskRequestResourcesItem {
|
|
|
2183
1033
|
/** When the task was last updated. */
|
|
2184
1034
|
updatedTimestamp?: string | null;
|
|
2185
1035
|
}
|
|
2186
|
-
export const PutSecurityTaskRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2187
|
-
S.Struct({
|
|
2188
|
-
displayName: S.String,
|
|
2189
|
-
uniqueId: S.String,
|
|
2190
|
-
externalUrl: S.String,
|
|
2191
|
-
taskId: S.String,
|
|
2192
|
-
taskTitle: S.String,
|
|
2193
|
-
createdTimestamp: S.String,
|
|
2194
|
-
taskState: PutSecurityTaskRequestResourcesItemTaskState,
|
|
2195
|
-
priority: PutSecurityTaskRequestResourcesItemPriority,
|
|
2196
|
-
assignees: PutSecurityTaskRequestResourcesItemAssigneesList,
|
|
2197
|
-
creator: S.String,
|
|
2198
|
-
labels: PutSecurityTaskRequestResourcesItemLabelsList,
|
|
2199
|
-
closedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2200
|
-
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2201
|
-
}),
|
|
2202
|
-
).annotate({
|
|
2203
|
-
identifier: "PutSecurityTaskRequestResourcesItem",
|
|
2204
|
-
}) as any as S.Schema<PutSecurityTaskRequestResourcesItem>;
|
|
2205
|
-
|
|
2206
1036
|
export type PutSecurityTaskRequestResourcesList = Array<PutSecurityTaskRequestResourcesItem>;
|
|
2207
|
-
export const PutSecurityTaskRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2208
|
-
PutSecurityTaskRequestResourcesItem,
|
|
2209
|
-
) as any as S.Schema<PutSecurityTaskRequestResourcesList>;
|
|
2210
|
-
|
|
2211
1037
|
export interface PutSecurityTaskRequest {
|
|
2212
1038
|
/** 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 */
|
|
2213
1039
|
resourceId: string;
|
|
2214
1040
|
resources: PutSecurityTaskRequestResourcesList;
|
|
2215
1041
|
}
|
|
2216
|
-
export const PutSecurityTaskRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2217
|
-
S.Struct({
|
|
2218
|
-
resourceId: S.String,
|
|
2219
|
-
resources: PutSecurityTaskRequestResourcesList,
|
|
2220
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/security_task", code: 200 })),
|
|
2221
|
-
).annotate({ identifier: "PutSecurityTaskRequest" }) as any as S.Schema<PutSecurityTaskRequest>;
|
|
2222
|
-
|
|
2223
1042
|
export interface PutSecurityTaskResponse {
|
|
2224
1043
|
success: boolean;
|
|
2225
1044
|
}
|
|
2226
|
-
export const PutSecurityTaskResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2227
|
-
S.Struct({
|
|
2228
|
-
success: S.Boolean,
|
|
2229
|
-
}),
|
|
2230
|
-
).annotate({ identifier: "PutSecurityTaskResponse" }) as any as S.Schema<PutSecurityTaskResponse>;
|
|
2231
|
-
|
|
2232
1045
|
export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesItem =
|
|
2233
1046
|
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem;
|
|
2234
|
-
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesItem =
|
|
2235
|
-
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem;
|
|
2236
|
-
|
|
2237
1047
|
/** The path to each point in the source code where a vulnerability has been revealed through static analysis. */
|
|
2238
1048
|
export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
2239
1049
|
Array<GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem>;
|
|
2240
|
-
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList =
|
|
2241
|
-
/*@__PURE__*/ S.Array(
|
|
2242
|
-
GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem,
|
|
2243
|
-
) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList>;
|
|
2244
|
-
|
|
2245
1050
|
export interface PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem {
|
|
2246
1051
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2247
1052
|
displayName: string;
|
|
@@ -2270,73 +1075,20 @@ export interface PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesIte
|
|
|
2270
1075
|
/** The Common Vulnerability Scoring System (CVSS) version 3 score for the vulnerability. This field is optional. */
|
|
2271
1076
|
cvss3Score?: number | null;
|
|
2272
1077
|
}
|
|
2273
|
-
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem =
|
|
2274
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
2275
|
-
S.Struct({
|
|
2276
|
-
displayName: S.String,
|
|
2277
|
-
uniqueId: S.String,
|
|
2278
|
-
externalUrl: S.String,
|
|
2279
|
-
occurrences: PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItemOccurrencesList,
|
|
2280
|
-
severity: S.Number,
|
|
2281
|
-
confidence: S.Number,
|
|
2282
|
-
isResolvable: S.Boolean,
|
|
2283
|
-
vulnerableComponentUniqueId: S.String,
|
|
2284
|
-
description: S.String,
|
|
2285
|
-
remediationInstructions: S.String,
|
|
2286
|
-
cveId: S.optional(S.NullOr(S.String)),
|
|
2287
|
-
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
2288
|
-
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
2289
|
-
}),
|
|
2290
|
-
).annotate({
|
|
2291
|
-
identifier: "PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem",
|
|
2292
|
-
}) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem>;
|
|
2293
|
-
|
|
2294
1078
|
export type PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList =
|
|
2295
1079
|
Array<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem>;
|
|
2296
|
-
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList =
|
|
2297
|
-
/*@__PURE__*/ S.Array(
|
|
2298
|
-
PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesItem,
|
|
2299
|
-
) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList>;
|
|
2300
|
-
|
|
2301
1080
|
export interface PutStaticAnalysisCodeVulnerabilityConnectorsRequest {
|
|
2302
1081
|
/** 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 */
|
|
2303
1082
|
resourceId: string;
|
|
2304
1083
|
resources: PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList;
|
|
2305
1084
|
}
|
|
2306
|
-
export const PutStaticAnalysisCodeVulnerabilityConnectorsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2307
|
-
S.Struct({
|
|
2308
|
-
resourceId: S.String,
|
|
2309
|
-
resources: PutStaticAnalysisCodeVulnerabilityConnectorsRequestResourcesList,
|
|
2310
|
-
}).pipe(
|
|
2311
|
-
T.Http({
|
|
2312
|
-
method: "PUT",
|
|
2313
|
-
uri: "/v1/resources/static_analysis_code_vulnerability_connectors",
|
|
2314
|
-
code: 200,
|
|
2315
|
-
}),
|
|
2316
|
-
),
|
|
2317
|
-
).annotate({
|
|
2318
|
-
identifier: "PutStaticAnalysisCodeVulnerabilityConnectorsRequest",
|
|
2319
|
-
}) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequest>;
|
|
2320
|
-
|
|
2321
1085
|
export interface PutStaticAnalysisCodeVulnerabilityConnectorsResponse {
|
|
2322
1086
|
success: boolean;
|
|
2323
1087
|
}
|
|
2324
|
-
export const PutStaticAnalysisCodeVulnerabilityConnectorsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2325
|
-
S.Struct({
|
|
2326
|
-
success: S.Boolean,
|
|
2327
|
-
}),
|
|
2328
|
-
).annotate({
|
|
2329
|
-
identifier: "PutStaticAnalysisCodeVulnerabilityConnectorsResponse",
|
|
2330
|
-
}) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsResponse>;
|
|
2331
|
-
|
|
2332
1088
|
/** 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. */
|
|
2333
1089
|
export type PutUserAccountRequestResourcesItemPermissionLevel = "ADMIN" | "EDITOR" | "BASE";
|
|
2334
|
-
export const PutUserAccountRequestResourcesItemPermissionLevel = S.String;
|
|
2335
|
-
|
|
2336
1090
|
/** 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. */
|
|
2337
1091
|
export type PutUserAccountRequestResourcesItemStatus = "ACTIVE" | "DEACTIVATED";
|
|
2338
|
-
export const PutUserAccountRequestResourcesItemStatus = S.String;
|
|
2339
|
-
|
|
2340
1092
|
/** The individual MFA setting. */
|
|
2341
1093
|
export type PutUserAccountRequestResourcesItemMfaMethodsItem =
|
|
2342
1094
|
| "UNSUPPORTED"
|
|
@@ -2346,30 +1098,18 @@ export type PutUserAccountRequestResourcesItemMfaMethodsItem =
|
|
|
2346
1098
|
| "OTP"
|
|
2347
1099
|
| "HARDWARE_TOKEN"
|
|
2348
1100
|
| "PUSH_PROMPT";
|
|
2349
|
-
export const PutUserAccountRequestResourcesItemMfaMethodsItem = S.String;
|
|
2350
|
-
|
|
2351
1101
|
/** The MFA settings of the user. This helps customers verify that their users are adequately protecting their accounts. This value is ignored if authMethod is SSO. Send an empty array if `mfaEnabled` is `null`, since an unknown MFA state says nothing about which methods are active. */
|
|
2352
1102
|
export type PutUserAccountRequestResourcesItemMfaMethodsList = Array<
|
|
2353
1103
|
PutUserAccountRequestResourcesItemMfaMethodsItem | (string & {})
|
|
2354
1104
|
>;
|
|
2355
|
-
export const PutUserAccountRequestResourcesItemMfaMethodsList = /*@__PURE__*/ S.Array(
|
|
2356
|
-
PutUserAccountRequestResourcesItemMfaMethodsItem,
|
|
2357
|
-
) as any as S.Schema<PutUserAccountRequestResourcesItemMfaMethodsList>;
|
|
2358
|
-
|
|
2359
1105
|
/** 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. */
|
|
2360
1106
|
export type PutUserAccountRequestResourcesItemAuthMethod =
|
|
2361
1107
|
| "SSO"
|
|
2362
1108
|
| "PASSWORD"
|
|
2363
1109
|
| "TOKEN"
|
|
2364
1110
|
| "BIOMETRIC";
|
|
2365
|
-
export const PutUserAccountRequestResourcesItemAuthMethod = S.String;
|
|
2366
|
-
|
|
2367
1111
|
/** 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. */
|
|
2368
1112
|
export type PutUserAccountRequestResourcesItemGroupIdsList = Array<string>;
|
|
2369
|
-
export const PutUserAccountRequestResourcesItemGroupIdsList = /*@__PURE__*/ S.Array(
|
|
2370
|
-
S.String,
|
|
2371
|
-
) as any as S.Schema<PutUserAccountRequestResourcesItemGroupIdsList>;
|
|
2372
|
-
|
|
2373
1113
|
export interface PutUserAccountRequestResourcesItem {
|
|
2374
1114
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2375
1115
|
displayName: string;
|
|
@@ -2408,57 +1148,15 @@ export interface PutUserAccountRequestResourcesItem {
|
|
|
2408
1148
|
/** 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. */
|
|
2409
1149
|
groupIds?: PutUserAccountRequestResourcesItemGroupIdsList | null;
|
|
2410
1150
|
}
|
|
2411
|
-
export const PutUserAccountRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2412
|
-
S.Struct({
|
|
2413
|
-
displayName: S.String,
|
|
2414
|
-
uniqueId: S.String,
|
|
2415
|
-
externalUrl: S.String,
|
|
2416
|
-
fullName: S.String,
|
|
2417
|
-
accountName: S.String,
|
|
2418
|
-
email: S.String,
|
|
2419
|
-
permissionLevel: PutUserAccountRequestResourcesItemPermissionLevel,
|
|
2420
|
-
createdTimestamp: S.String,
|
|
2421
|
-
status: PutUserAccountRequestResourcesItemStatus,
|
|
2422
|
-
mfaEnabled: S.NullOr(S.Boolean),
|
|
2423
|
-
mfaMethods: PutUserAccountRequestResourcesItemMfaMethodsList,
|
|
2424
|
-
authMethod: PutUserAccountRequestResourcesItemAuthMethod,
|
|
2425
|
-
roleDescription: S.optional(S.NullOr(S.String)),
|
|
2426
|
-
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2427
|
-
deactivatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2428
|
-
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
2429
|
-
lastPasswordResetTimestamp: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2430
|
-
groupIds: S.optional(S.NullOr(PutUserAccountRequestResourcesItemGroupIdsList)),
|
|
2431
|
-
}),
|
|
2432
|
-
).annotate({
|
|
2433
|
-
identifier: "PutUserAccountRequestResourcesItem",
|
|
2434
|
-
}) as any as S.Schema<PutUserAccountRequestResourcesItem>;
|
|
2435
|
-
|
|
2436
1151
|
export type PutUserAccountRequestResourcesList = Array<PutUserAccountRequestResourcesItem>;
|
|
2437
|
-
export const PutUserAccountRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2438
|
-
PutUserAccountRequestResourcesItem,
|
|
2439
|
-
) as any as S.Schema<PutUserAccountRequestResourcesList>;
|
|
2440
|
-
|
|
2441
1152
|
export interface PutUserAccountRequest {
|
|
2442
1153
|
/** 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 */
|
|
2443
1154
|
resourceId: string;
|
|
2444
1155
|
resources: PutUserAccountRequestResourcesList;
|
|
2445
1156
|
}
|
|
2446
|
-
export const PutUserAccountRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2447
|
-
S.Struct({
|
|
2448
|
-
resourceId: S.String,
|
|
2449
|
-
resources: PutUserAccountRequestResourcesList,
|
|
2450
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/user_account", code: 200 })),
|
|
2451
|
-
).annotate({ identifier: "PutUserAccountRequest" }) as any as S.Schema<PutUserAccountRequest>;
|
|
2452
|
-
|
|
2453
1157
|
export interface PutUserAccountResponse {
|
|
2454
1158
|
success: boolean;
|
|
2455
1159
|
}
|
|
2456
|
-
export const PutUserAccountResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2457
|
-
S.Struct({
|
|
2458
|
-
success: S.Boolean,
|
|
2459
|
-
}),
|
|
2460
|
-
).annotate({ identifier: "PutUserAccountResponse" }) as any as S.Schema<PutUserAccountResponse>;
|
|
2461
|
-
|
|
2462
1160
|
/** The individual framework. */
|
|
2463
1161
|
export type PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem =
|
|
2464
1162
|
| "SOC2"
|
|
@@ -2467,21 +1165,12 @@ export type PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilled
|
|
|
2467
1165
|
| "PCI"
|
|
2468
1166
|
| "GDPR"
|
|
2469
1167
|
| "CCPA";
|
|
2470
|
-
export const PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem = S.String;
|
|
2471
|
-
|
|
2472
1168
|
/** The set of compliance or other framework requirements that can be satisfied when an employee completes this training. */
|
|
2473
1169
|
export type PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList = Array<
|
|
2474
1170
|
PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem | (string & {})
|
|
2475
1171
|
>;
|
|
2476
|
-
export const PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList =
|
|
2477
|
-
/*@__PURE__*/ S.Array(
|
|
2478
|
-
PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledItem,
|
|
2479
|
-
) as any as S.Schema<PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList>;
|
|
2480
|
-
|
|
2481
1172
|
/** Whether the training has been fully completed. */
|
|
2482
1173
|
export type PutUserSecurityTrainingStatusRequestResourcesItemStatus = "INCOMPLETE" | "COMPLETE";
|
|
2483
|
-
export const PutUserSecurityTrainingStatusRequestResourcesItemStatus = S.String;
|
|
2484
|
-
|
|
2485
1174
|
export interface PutUserSecurityTrainingStatusRequestResourcesItem {
|
|
2486
1175
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2487
1176
|
displayName: string;
|
|
@@ -2510,57 +1199,16 @@ export interface PutUserSecurityTrainingStatusRequestResourcesItem {
|
|
|
2510
1199
|
/** The time at which this training course was completed by the user. */
|
|
2511
1200
|
trainingCompletedTimestamp?: string | null;
|
|
2512
1201
|
}
|
|
2513
|
-
export const PutUserSecurityTrainingStatusRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2514
|
-
S.Struct({
|
|
2515
|
-
displayName: S.String,
|
|
2516
|
-
uniqueId: S.String,
|
|
2517
|
-
externalUrl: S.String,
|
|
2518
|
-
trainingId: S.String,
|
|
2519
|
-
trainingName: S.String,
|
|
2520
|
-
frameworksFulfilled: PutUserSecurityTrainingStatusRequestResourcesItemFrameworksFulfilledList,
|
|
2521
|
-
traineeFullName: S.String,
|
|
2522
|
-
traineeAccountName: S.String,
|
|
2523
|
-
traineeEmail: S.String,
|
|
2524
|
-
status: PutUserSecurityTrainingStatusRequestResourcesItemStatus,
|
|
2525
|
-
trainingCreatedTimestamp: S.String,
|
|
2526
|
-
trainingDueTimestamp: S.String,
|
|
2527
|
-
trainingCompletedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2528
|
-
}),
|
|
2529
|
-
).annotate({
|
|
2530
|
-
identifier: "PutUserSecurityTrainingStatusRequestResourcesItem",
|
|
2531
|
-
}) as any as S.Schema<PutUserSecurityTrainingStatusRequestResourcesItem>;
|
|
2532
|
-
|
|
2533
1202
|
export type PutUserSecurityTrainingStatusRequestResourcesList =
|
|
2534
1203
|
Array<PutUserSecurityTrainingStatusRequestResourcesItem>;
|
|
2535
|
-
export const PutUserSecurityTrainingStatusRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2536
|
-
PutUserSecurityTrainingStatusRequestResourcesItem,
|
|
2537
|
-
) as any as S.Schema<PutUserSecurityTrainingStatusRequestResourcesList>;
|
|
2538
|
-
|
|
2539
1204
|
export interface PutUserSecurityTrainingStatusRequest {
|
|
2540
1205
|
/** 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 */
|
|
2541
1206
|
resourceId: string;
|
|
2542
1207
|
resources: PutUserSecurityTrainingStatusRequestResourcesList;
|
|
2543
1208
|
}
|
|
2544
|
-
export const PutUserSecurityTrainingStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2545
|
-
S.Struct({
|
|
2546
|
-
resourceId: S.String,
|
|
2547
|
-
resources: PutUserSecurityTrainingStatusRequestResourcesList,
|
|
2548
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/user_security_training_status", code: 200 })),
|
|
2549
|
-
).annotate({
|
|
2550
|
-
identifier: "PutUserSecurityTrainingStatusRequest",
|
|
2551
|
-
}) as any as S.Schema<PutUserSecurityTrainingStatusRequest>;
|
|
2552
|
-
|
|
2553
1209
|
export interface PutUserSecurityTrainingStatusResponse {
|
|
2554
1210
|
success: boolean;
|
|
2555
1211
|
}
|
|
2556
|
-
export const PutUserSecurityTrainingStatusResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2557
|
-
S.Struct({
|
|
2558
|
-
success: S.Boolean,
|
|
2559
|
-
}),
|
|
2560
|
-
).annotate({
|
|
2561
|
-
identifier: "PutUserSecurityTrainingStatusResponse",
|
|
2562
|
-
}) as any as S.Schema<PutUserSecurityTrainingStatusResponse>;
|
|
2563
|
-
|
|
2564
1212
|
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
2565
1213
|
export type PutVulnerableComponentRequestResourcesItemTargetType =
|
|
2566
1214
|
| "HOST"
|
|
@@ -2573,8 +1221,6 @@ export type PutVulnerableComponentRequestResourcesItemTargetType =
|
|
|
2573
1221
|
| "MANIFEST_FILE"
|
|
2574
1222
|
| "WORKSTATION"
|
|
2575
1223
|
| "OTHER";
|
|
2576
|
-
export const PutVulnerableComponentRequestResourcesItemTargetType = S.String;
|
|
2577
|
-
|
|
2578
1224
|
export interface PutVulnerableComponentRequestResourcesItem {
|
|
2579
1225
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2580
1226
|
displayName: string;
|
|
@@ -2591,63 +1237,21 @@ export interface PutVulnerableComponentRequestResourcesItem {
|
|
|
2591
1237
|
/** The type of the system component in which a vulnerability has been detected (eg: container, source code repository). */
|
|
2592
1238
|
targetType: PutVulnerableComponentRequestResourcesItemTargetType | (string & {});
|
|
2593
1239
|
}
|
|
2594
|
-
export const PutVulnerableComponentRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2595
|
-
S.Struct({
|
|
2596
|
-
displayName: S.String,
|
|
2597
|
-
uniqueId: S.String,
|
|
2598
|
-
externalUrl: S.String,
|
|
2599
|
-
collectedTimestamp: S.String,
|
|
2600
|
-
name: S.String,
|
|
2601
|
-
description: S.String,
|
|
2602
|
-
targetType: PutVulnerableComponentRequestResourcesItemTargetType,
|
|
2603
|
-
}),
|
|
2604
|
-
).annotate({
|
|
2605
|
-
identifier: "PutVulnerableComponentRequestResourcesItem",
|
|
2606
|
-
}) as any as S.Schema<PutVulnerableComponentRequestResourcesItem>;
|
|
2607
|
-
|
|
2608
1240
|
export type PutVulnerableComponentRequestResourcesList =
|
|
2609
1241
|
Array<PutVulnerableComponentRequestResourcesItem>;
|
|
2610
|
-
export const PutVulnerableComponentRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2611
|
-
PutVulnerableComponentRequestResourcesItem,
|
|
2612
|
-
) as any as S.Schema<PutVulnerableComponentRequestResourcesList>;
|
|
2613
|
-
|
|
2614
1242
|
export interface PutVulnerableComponentRequest {
|
|
2615
1243
|
/** 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 */
|
|
2616
1244
|
resourceId: string;
|
|
2617
1245
|
resources: PutVulnerableComponentRequestResourcesList;
|
|
2618
1246
|
}
|
|
2619
|
-
export const PutVulnerableComponentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2620
|
-
S.Struct({
|
|
2621
|
-
resourceId: S.String,
|
|
2622
|
-
resources: PutVulnerableComponentRequestResourcesList,
|
|
2623
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/vulnerable_component", code: 200 })),
|
|
2624
|
-
).annotate({
|
|
2625
|
-
identifier: "PutVulnerableComponentRequest",
|
|
2626
|
-
}) as any as S.Schema<PutVulnerableComponentRequest>;
|
|
2627
|
-
|
|
2628
1247
|
export interface PutVulnerableComponentResponse {
|
|
2629
1248
|
success: boolean;
|
|
2630
1249
|
}
|
|
2631
|
-
export const PutVulnerableComponentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2632
|
-
S.Struct({
|
|
2633
|
-
success: S.Boolean,
|
|
2634
|
-
}),
|
|
2635
|
-
).annotate({
|
|
2636
|
-
identifier: "PutVulnerableComponentResponse",
|
|
2637
|
-
}) as any as S.Schema<PutVulnerableComponentResponse>;
|
|
2638
|
-
|
|
2639
1250
|
export type PutWindowsUserComputerRequestResourcesItemProgramsItem =
|
|
2640
1251
|
GetWindowsUserComputerResponseResourcesItemProgramsItem;
|
|
2641
|
-
export const PutWindowsUserComputerRequestResourcesItemProgramsItem =
|
|
2642
|
-
GetWindowsUserComputerResponseResourcesItemProgramsItem;
|
|
2643
|
-
|
|
2644
1252
|
/** All the installed programs on the Windows system. */
|
|
2645
1253
|
export type PutWindowsUserComputerRequestResourcesItemProgramsList =
|
|
2646
1254
|
Array<GetWindowsUserComputerResponseResourcesItemProgramsItem>;
|
|
2647
|
-
export const PutWindowsUserComputerRequestResourcesItemProgramsList = /*@__PURE__*/ S.Array(
|
|
2648
|
-
GetWindowsUserComputerResponseResourcesItemProgramsItem,
|
|
2649
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemProgramsList>;
|
|
2650
|
-
|
|
2651
1255
|
/** 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. */
|
|
2652
1256
|
export type PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser =
|
|
2653
1257
|
| "CHROME"
|
|
@@ -2655,8 +1259,6 @@ export type PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrows
|
|
|
2655
1259
|
| "OPERA"
|
|
2656
1260
|
| "SAFARI"
|
|
2657
1261
|
| "EDGE";
|
|
2658
|
-
export const PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser = S.String;
|
|
2659
|
-
|
|
2660
1262
|
export interface PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem {
|
|
2661
1263
|
/** The identifier of the browser extension. */
|
|
2662
1264
|
extensionId: string;
|
|
@@ -2665,55 +1267,21 @@ export interface PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem
|
|
|
2665
1267
|
/** 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. */
|
|
2666
1268
|
browser: PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser | (string & {});
|
|
2667
1269
|
}
|
|
2668
|
-
export const PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem =
|
|
2669
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
2670
|
-
S.Struct({
|
|
2671
|
-
extensionId: S.String,
|
|
2672
|
-
name: S.String,
|
|
2673
|
-
browser: PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItemBrowser,
|
|
2674
|
-
}),
|
|
2675
|
-
).annotate({
|
|
2676
|
-
identifier: "PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem",
|
|
2677
|
-
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
2678
|
-
|
|
2679
1270
|
/** A list of browser extensions on this device. Used to match against known password managers to demonstrate use. */
|
|
2680
1271
|
export type PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
2681
1272
|
Array<PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem>;
|
|
2682
|
-
export const PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList =
|
|
2683
|
-
/*@__PURE__*/ S.Array(
|
|
2684
|
-
PutWindowsUserComputerRequestResourcesItemBrowserExtensionsItem,
|
|
2685
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList>;
|
|
2686
|
-
|
|
2687
1273
|
export type PutWindowsUserComputerRequestResourcesItemDrivesItem =
|
|
2688
1274
|
GetWindowsUserComputerResponseResourcesItemDrivesItem;
|
|
2689
|
-
export const PutWindowsUserComputerRequestResourcesItemDrivesItem =
|
|
2690
|
-
GetWindowsUserComputerResponseResourcesItemDrivesItem;
|
|
2691
|
-
|
|
2692
1275
|
/** A list of drives on this device. Used to verify encryption status. */
|
|
2693
1276
|
export type PutWindowsUserComputerRequestResourcesItemDrivesList =
|
|
2694
1277
|
Array<GetWindowsUserComputerResponseResourcesItemDrivesItem>;
|
|
2695
|
-
export const PutWindowsUserComputerRequestResourcesItemDrivesList = /*@__PURE__*/ S.Array(
|
|
2696
|
-
GetWindowsUserComputerResponseResourcesItemDrivesItem,
|
|
2697
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemDrivesList>;
|
|
2698
|
-
|
|
2699
1278
|
export type PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
2700
1279
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2701
|
-
export const PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesItem =
|
|
2702
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2703
|
-
|
|
2704
1280
|
/** If the source system cannot easily retrieve screenlock policies, it's OK to skip this data. */
|
|
2705
1281
|
export type PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
2706
1282
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
2707
|
-
export const PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList =
|
|
2708
|
-
/*@__PURE__*/ S.Array(
|
|
2709
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2710
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList>;
|
|
2711
|
-
|
|
2712
1283
|
export type PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
2713
1284
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2714
|
-
export const PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockSettings =
|
|
2715
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2716
|
-
|
|
2717
1285
|
export interface PutWindowsUserComputerRequestResourcesItemUsersItem {
|
|
2718
1286
|
/** The user's username. Does not have to be unique. */
|
|
2719
1287
|
username: string;
|
|
@@ -2723,57 +1291,26 @@ export interface PutWindowsUserComputerRequestResourcesItemUsersItem {
|
|
|
2723
1291
|
/** The last time the user logged in to the device, if available. */
|
|
2724
1292
|
lastLoginTimestamp?: string | null;
|
|
2725
1293
|
}
|
|
2726
|
-
export const PutWindowsUserComputerRequestResourcesItemUsersItem = /*@__PURE__*/ S.suspend(() =>
|
|
2727
|
-
S.Struct({
|
|
2728
|
-
username: S.String,
|
|
2729
|
-
screenlockPolicies: PutWindowsUserComputerRequestResourcesItemUsersItemScreenlockPoliciesList,
|
|
2730
|
-
screenlockSettings: GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2731
|
-
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
2732
|
-
}),
|
|
2733
|
-
).annotate({
|
|
2734
|
-
identifier: "PutWindowsUserComputerRequestResourcesItemUsersItem",
|
|
2735
|
-
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemUsersItem>;
|
|
2736
|
-
|
|
2737
1294
|
/** The human users of the system. If it's not feasible to send only human users, prefer skipping sending users entirely. */
|
|
2738
1295
|
export type PutWindowsUserComputerRequestResourcesItemUsersList =
|
|
2739
1296
|
Array<PutWindowsUserComputerRequestResourcesItemUsersItem>;
|
|
2740
|
-
export const PutWindowsUserComputerRequestResourcesItemUsersList = /*@__PURE__*/ S.Array(
|
|
2741
|
-
PutWindowsUserComputerRequestResourcesItemUsersItem,
|
|
2742
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemUsersList>;
|
|
2743
|
-
|
|
2744
1297
|
export type PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
2745
1298
|
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2746
|
-
export const PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesItem =
|
|
2747
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem;
|
|
2748
|
-
|
|
2749
1299
|
/** System screenlock policy settings. Pass an empty list if this is tricky to retrieve for your system. Used for screenlock tests. */
|
|
2750
1300
|
export type PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
2751
1301
|
Array<GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem>;
|
|
2752
|
-
export const PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList =
|
|
2753
|
-
/*@__PURE__*/ S.Array(
|
|
2754
|
-
GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem,
|
|
2755
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList>;
|
|
2756
|
-
|
|
2757
1302
|
export type PutWindowsUserComputerRequestResourcesItemPasswordPolicy =
|
|
2758
1303
|
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
2759
|
-
export const PutWindowsUserComputerRequestResourcesItemPasswordPolicy =
|
|
2760
|
-
GetMacosUserComputerResponseResourcesItemPasswordPolicy;
|
|
2761
|
-
|
|
2762
1304
|
/** The category of the security product. */
|
|
2763
1305
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory =
|
|
2764
1306
|
| "FIREWALL"
|
|
2765
1307
|
| "ANTIVIRUS"
|
|
2766
1308
|
| "ANTISPYWARE";
|
|
2767
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory =
|
|
2768
|
-
S.String;
|
|
2769
|
-
|
|
2770
1309
|
/** The state of the security product. */
|
|
2771
1310
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState =
|
|
2772
1311
|
| "ON"
|
|
2773
1312
|
| "OFF"
|
|
2774
1313
|
| "UNKNOWN";
|
|
2775
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState = S.String;
|
|
2776
|
-
|
|
2777
1314
|
export interface PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem {
|
|
2778
1315
|
/** The name of the security product. */
|
|
2779
1316
|
name: string;
|
|
@@ -2788,27 +1325,9 @@ export interface PutWindowsUserComputerRequestResourcesItemWindowsSecurityProduc
|
|
|
2788
1325
|
/** Whether the security signatures are up to date. */
|
|
2789
1326
|
signaturesUpToDate: boolean;
|
|
2790
1327
|
}
|
|
2791
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem =
|
|
2792
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
2793
|
-
S.Struct({
|
|
2794
|
-
name: S.String,
|
|
2795
|
-
category: PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemCategory,
|
|
2796
|
-
state: PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItemState,
|
|
2797
|
-
stateTimestamp: S.String,
|
|
2798
|
-
signaturesUpToDate: S.Boolean,
|
|
2799
|
-
}),
|
|
2800
|
-
).annotate({
|
|
2801
|
-
identifier: "PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem",
|
|
2802
|
-
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem>;
|
|
2803
|
-
|
|
2804
1328
|
/** A list of services that are monitored by Windows Security Center (WSC). */
|
|
2805
1329
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList =
|
|
2806
1330
|
Array<PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem>;
|
|
2807
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList =
|
|
2808
|
-
/*@__PURE__*/ S.Array(
|
|
2809
|
-
PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsItem,
|
|
2810
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList>;
|
|
2811
|
-
|
|
2812
1331
|
/** The health of the monitored Firewall. */
|
|
2813
1332
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall =
|
|
2814
1333
|
| "GOOD"
|
|
@@ -2816,8 +1335,6 @@ export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirew
|
|
|
2816
1335
|
| "SNOOZED"
|
|
2817
1336
|
| "NOT_MONITORED"
|
|
2818
1337
|
| "ERROR";
|
|
2819
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall = S.String;
|
|
2820
|
-
|
|
2821
1338
|
/** The health of the Windows Autoupdate feature. */
|
|
2822
1339
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate =
|
|
2823
1340
|
| "GOOD"
|
|
@@ -2825,8 +1342,6 @@ export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutou
|
|
|
2825
1342
|
| "SNOOZED"
|
|
2826
1343
|
| "NOT_MONITORED"
|
|
2827
1344
|
| "ERROR";
|
|
2828
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate = S.String;
|
|
2829
|
-
|
|
2830
1345
|
/** The health of the monitored Antivirus solution. */
|
|
2831
1346
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus =
|
|
2832
1347
|
| "GOOD"
|
|
@@ -2834,8 +1349,6 @@ export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntiv
|
|
|
2834
1349
|
| "SNOOZED"
|
|
2835
1350
|
| "NOT_MONITORED"
|
|
2836
1351
|
| "ERROR";
|
|
2837
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus = S.String;
|
|
2838
|
-
|
|
2839
1352
|
/** The health of the Internet Settings. */
|
|
2840
1353
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting =
|
|
2841
1354
|
| "GOOD"
|
|
@@ -2843,9 +1356,6 @@ export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInter
|
|
|
2843
1356
|
| "SNOOZED"
|
|
2844
1357
|
| "NOT_MONITORED"
|
|
2845
1358
|
| "ERROR";
|
|
2846
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting =
|
|
2847
|
-
S.String;
|
|
2848
|
-
|
|
2849
1359
|
/** The health of the User Account Control (UAC) capability in Windows. */
|
|
2850
1360
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
2851
1361
|
| "GOOD"
|
|
@@ -2853,9 +1363,6 @@ export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserA
|
|
|
2853
1363
|
| "SNOOZED"
|
|
2854
1364
|
| "NOT_MONITORED"
|
|
2855
1365
|
| "ERROR";
|
|
2856
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl =
|
|
2857
|
-
S.String;
|
|
2858
|
-
|
|
2859
1366
|
/** The health of the Windows Security Center Service. */
|
|
2860
1367
|
export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
2861
1368
|
| "GOOD"
|
|
@@ -2863,9 +1370,6 @@ export type PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindo
|
|
|
2863
1370
|
| "SNOOZED"
|
|
2864
1371
|
| "NOT_MONITORED"
|
|
2865
1372
|
| "ERROR";
|
|
2866
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService =
|
|
2867
|
-
S.String;
|
|
2868
|
-
|
|
2869
1373
|
export interface PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter {
|
|
2870
1374
|
/** The health of the monitored Firewall. */
|
|
2871
1375
|
firewall: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall | (string & {});
|
|
@@ -2890,23 +1394,6 @@ export interface PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter
|
|
|
2890
1394
|
| PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService
|
|
2891
1395
|
| (string & {});
|
|
2892
1396
|
}
|
|
2893
|
-
export const PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter =
|
|
2894
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
2895
|
-
S.Struct({
|
|
2896
|
-
firewall: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterFirewall,
|
|
2897
|
-
autoupdate: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAutoupdate,
|
|
2898
|
-
antivirus: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterAntivirus,
|
|
2899
|
-
internetSetting:
|
|
2900
|
-
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterInternetSetting,
|
|
2901
|
-
userAccountControl:
|
|
2902
|
-
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterUserAccountControl,
|
|
2903
|
-
windowsSecurityCenterService:
|
|
2904
|
-
PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenterWindowsSecurityCenterService,
|
|
2905
|
-
}),
|
|
2906
|
-
).annotate({
|
|
2907
|
-
identifier: "PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter",
|
|
2908
|
-
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter>;
|
|
2909
|
-
|
|
2910
1397
|
export interface PutWindowsUserComputerRequestResourcesItem {
|
|
2911
1398
|
/** A human readable label for this resource - will be shown as-is in inventory page. */
|
|
2912
1399
|
displayName: string;
|
|
@@ -2947,69 +1434,16 @@ export interface PutWindowsUserComputerRequestResourcesItem {
|
|
|
2947
1434
|
windowsSecurityProducts?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList | null;
|
|
2948
1435
|
windowsSecurityCenter?: PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter | null;
|
|
2949
1436
|
}
|
|
2950
|
-
export const PutWindowsUserComputerRequestResourcesItem = /*@__PURE__*/ S.suspend(() =>
|
|
2951
|
-
S.Struct({
|
|
2952
|
-
displayName: S.String,
|
|
2953
|
-
uniqueId: S.String,
|
|
2954
|
-
externalUrl: S.String,
|
|
2955
|
-
collectedTimestamp: S.String,
|
|
2956
|
-
osName: S.String,
|
|
2957
|
-
osVersion: S.String,
|
|
2958
|
-
hardwareUuid: S.String,
|
|
2959
|
-
serialNumber: S.String,
|
|
2960
|
-
programs: PutWindowsUserComputerRequestResourcesItemProgramsList,
|
|
2961
|
-
browserExtensions: PutWindowsUserComputerRequestResourcesItemBrowserExtensionsList,
|
|
2962
|
-
drives: PutWindowsUserComputerRequestResourcesItemDrivesList,
|
|
2963
|
-
users: PutWindowsUserComputerRequestResourcesItemUsersList,
|
|
2964
|
-
systemScreenlockPolicies:
|
|
2965
|
-
PutWindowsUserComputerRequestResourcesItemSystemScreenlockPoliciesList,
|
|
2966
|
-
isManaged: S.Boolean,
|
|
2967
|
-
autoUpdatesEnabled: S.Boolean,
|
|
2968
|
-
owner: S.optional(S.NullOr(S.String)),
|
|
2969
|
-
passwordPolicy: S.optional(S.NullOr(GetMacosUserComputerResponseResourcesItemPasswordPolicy)),
|
|
2970
|
-
lastEnrolledTimestamp: S.optional(S.NullOr(S.String)),
|
|
2971
|
-
windowsSecurityProducts: S.optional(
|
|
2972
|
-
S.NullOr(PutWindowsUserComputerRequestResourcesItemWindowsSecurityProductsList),
|
|
2973
|
-
),
|
|
2974
|
-
windowsSecurityCenter: S.optional(
|
|
2975
|
-
S.NullOr(PutWindowsUserComputerRequestResourcesItemWindowsSecurityCenter),
|
|
2976
|
-
),
|
|
2977
|
-
}),
|
|
2978
|
-
).annotate({
|
|
2979
|
-
identifier: "PutWindowsUserComputerRequestResourcesItem",
|
|
2980
|
-
}) as any as S.Schema<PutWindowsUserComputerRequestResourcesItem>;
|
|
2981
|
-
|
|
2982
1437
|
export type PutWindowsUserComputerRequestResourcesList =
|
|
2983
1438
|
Array<PutWindowsUserComputerRequestResourcesItem>;
|
|
2984
|
-
export const PutWindowsUserComputerRequestResourcesList = /*@__PURE__*/ S.Array(
|
|
2985
|
-
PutWindowsUserComputerRequestResourcesItem,
|
|
2986
|
-
) as any as S.Schema<PutWindowsUserComputerRequestResourcesList>;
|
|
2987
|
-
|
|
2988
1439
|
export interface PutWindowsUserComputerRequest {
|
|
2989
1440
|
/** 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 */
|
|
2990
1441
|
resourceId: string;
|
|
2991
1442
|
resources: PutWindowsUserComputerRequestResourcesList;
|
|
2992
1443
|
}
|
|
2993
|
-
export const PutWindowsUserComputerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2994
|
-
S.Struct({
|
|
2995
|
-
resourceId: S.String,
|
|
2996
|
-
resources: PutWindowsUserComputerRequestResourcesList,
|
|
2997
|
-
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/windows_user_computer", code: 200 })),
|
|
2998
|
-
).annotate({
|
|
2999
|
-
identifier: "PutWindowsUserComputerRequest",
|
|
3000
|
-
}) as any as S.Schema<PutWindowsUserComputerRequest>;
|
|
3001
|
-
|
|
3002
1444
|
export interface PutWindowsUserComputerResponse {
|
|
3003
1445
|
success: boolean;
|
|
3004
1446
|
}
|
|
3005
|
-
export const PutWindowsUserComputerResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3006
|
-
S.Struct({
|
|
3007
|
-
success: S.Boolean,
|
|
3008
|
-
}),
|
|
3009
|
-
).annotate({
|
|
3010
|
-
identifier: "PutWindowsUserComputerResponse",
|
|
3011
|
-
}) as any as S.Schema<PutWindowsUserComputerResponse>;
|
|
3012
|
-
|
|
3013
1447
|
export interface UploadFileForDocumentRequest {
|
|
3014
1448
|
documentId: string;
|
|
3015
1449
|
file: string;
|
|
@@ -3018,39 +1452,12 @@ export interface UploadFileForDocumentRequest {
|
|
|
3018
1452
|
/** Description of the uploaded document. */
|
|
3019
1453
|
description?: string;
|
|
3020
1454
|
}
|
|
3021
|
-
export const UploadFileForDocumentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3022
|
-
S.Struct({
|
|
3023
|
-
documentId: S.String.pipe(T.Label()),
|
|
3024
|
-
file: S.String,
|
|
3025
|
-
effectiveAtDate: S.optional(S.String),
|
|
3026
|
-
description: S.optional(S.String),
|
|
3027
|
-
}).pipe(
|
|
3028
|
-
T.Http({
|
|
3029
|
-
method: "POST",
|
|
3030
|
-
uri: "/v1/documents/{documentId}/uploads",
|
|
3031
|
-
code: 200,
|
|
3032
|
-
contentType: "multipart",
|
|
3033
|
-
}),
|
|
3034
|
-
),
|
|
3035
|
-
).annotate({
|
|
3036
|
-
identifier: "UploadFileForDocumentRequest",
|
|
3037
|
-
}) as any as S.Schema<UploadFileForDocumentRequest>;
|
|
3038
|
-
|
|
3039
1455
|
export type UploadedDocumentUploadedByType = "USER" | "APPLICATION";
|
|
3040
|
-
export const UploadedDocumentUploadedByType = S.String;
|
|
3041
|
-
|
|
3042
1456
|
/** The actor who uploaded this document. It could be a user or an app. */
|
|
3043
1457
|
export interface UploadedFileTUploadedBy {
|
|
3044
1458
|
type: UploadedDocumentUploadedByType;
|
|
3045
1459
|
id: string;
|
|
3046
1460
|
}
|
|
3047
|
-
export const UploadedFileTUploadedBy = /*@__PURE__*/ S.suspend(() =>
|
|
3048
|
-
S.Struct({
|
|
3049
|
-
type: UploadedDocumentUploadedByType,
|
|
3050
|
-
id: S.String,
|
|
3051
|
-
}),
|
|
3052
|
-
).annotate({ identifier: "UploadedFileTUploadedBy" }) as any as S.Schema<UploadedFileTUploadedBy>;
|
|
3053
|
-
|
|
3054
1461
|
export interface UploadedFileT {
|
|
3055
1462
|
/** Unique identifier for the document. */
|
|
3056
1463
|
id: string;
|
|
@@ -3075,22 +1482,6 @@ export interface UploadedFileT {
|
|
|
3075
1482
|
/** The document's URL. */
|
|
3076
1483
|
url: string;
|
|
3077
1484
|
}
|
|
3078
|
-
export const UploadedFileT = /*@__PURE__*/ S.suspend(() =>
|
|
3079
|
-
S.Struct({
|
|
3080
|
-
id: S.String,
|
|
3081
|
-
fileName: S.NullOr(S.String),
|
|
3082
|
-
title: S.String,
|
|
3083
|
-
description: S.NullOr(S.String),
|
|
3084
|
-
mimeType: S.String,
|
|
3085
|
-
uploadedBy: S.NullOr(UploadedFileTUploadedBy),
|
|
3086
|
-
creationDate: S.String,
|
|
3087
|
-
updatedDate: S.String,
|
|
3088
|
-
deletionDate: S.NullOr(S.String),
|
|
3089
|
-
effectiveDate: S.NullOr(S.String),
|
|
3090
|
-
url: S.String,
|
|
3091
|
-
}),
|
|
3092
|
-
).annotate({ identifier: "UploadedFileT" }) as any as S.Schema<UploadedFileT>;
|
|
3093
|
-
|
|
3094
1485
|
export type GetApiEndpointVulnerabilityConnectorsError = VantaOpError;
|
|
3095
1486
|
/** List all API Endpoint Vulnerabilities List `ApiEndpointVulnerabilityConnectors` resources for the given application. ** Headers ** ``` Authorization: Bearer <access_token> ``` ** Scopes ** ``` connectors.self:read-resource ``` */
|
|
3096
1487
|
export const getApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
@@ -3099,8 +1490,8 @@ export const getApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
|
3099
1490
|
GetApiEndpointVulnerabilityConnectorsError,
|
|
3100
1491
|
VantaOpContext
|
|
3101
1492
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3102
|
-
input: GetApiEndpointVulnerabilityConnectorsRequest
|
|
3103
|
-
output: GetApiEndpointVulnerabilityConnectorsResponse
|
|
1493
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsRequest>,
|
|
1494
|
+
output: __S(1, __c0, 1) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponse>,
|
|
3104
1495
|
errors: [UnknownVantaError],
|
|
3105
1496
|
protocol: VantaProtocol,
|
|
3106
1497
|
retry: Retry.Retry,
|
|
@@ -3114,8 +1505,8 @@ export const getBackgroundCheckConnector: API.OperationMethod<
|
|
|
3114
1505
|
GetBackgroundCheckConnectorError,
|
|
3115
1506
|
VantaOpContext
|
|
3116
1507
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3117
|
-
input: GetBackgroundCheckConnectorRequest
|
|
3118
|
-
output: GetBackgroundCheckConnectorResponse
|
|
1508
|
+
input: __S(32, __c2, 0) as any as S.Schema<GetBackgroundCheckConnectorRequest>,
|
|
1509
|
+
output: __S(33, __c2, 1) as any as S.Schema<GetBackgroundCheckConnectorResponse>,
|
|
3119
1510
|
errors: [UnknownVantaError],
|
|
3120
1511
|
protocol: VantaProtocol,
|
|
3121
1512
|
retry: Retry.Retry,
|
|
@@ -3129,8 +1520,8 @@ export const getCustomResource: API.OperationMethod<
|
|
|
3129
1520
|
GetCustomResourceError,
|
|
3130
1521
|
VantaOpContext
|
|
3131
1522
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3132
|
-
input: GetCustomResourceRequest
|
|
3133
|
-
output: GetCustomResourceResponse
|
|
1523
|
+
input: __S(272, __c17, 0) as any as S.Schema<GetCustomResourceRequest>,
|
|
1524
|
+
output: __S(273, __c17, 1) as any as S.Schema<GetCustomResourceResponse>,
|
|
3134
1525
|
errors: [UnknownVantaError],
|
|
3135
1526
|
protocol: VantaProtocol,
|
|
3136
1527
|
retry: Retry.Retry,
|
|
@@ -3144,8 +1535,8 @@ export const getMacosUserComputer: API.OperationMethod<
|
|
|
3144
1535
|
GetMacosUserComputerError,
|
|
3145
1536
|
VantaOpContext
|
|
3146
1537
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3147
|
-
input: GetMacosUserComputerRequest
|
|
3148
|
-
output: GetMacosUserComputerResponse
|
|
1538
|
+
input: __S(384, __c24, 0) as any as S.Schema<GetMacosUserComputerRequest>,
|
|
1539
|
+
output: __S(385, __c24, 1) as any as S.Schema<GetMacosUserComputerResponse>,
|
|
3149
1540
|
errors: [UnknownVantaError],
|
|
3150
1541
|
protocol: VantaProtocol,
|
|
3151
1542
|
retry: Retry.Retry,
|
|
@@ -3159,8 +1550,8 @@ export const getPackageVulnerabilityConnectors: API.OperationMethod<
|
|
|
3159
1550
|
GetPackageVulnerabilityConnectorsError,
|
|
3160
1551
|
VantaOpContext
|
|
3161
1552
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3162
|
-
input: GetPackageVulnerabilityConnectorsRequest
|
|
3163
|
-
output: GetPackageVulnerabilityConnectorsResponse
|
|
1553
|
+
input: __S(432, __c27, 0) as any as S.Schema<GetPackageVulnerabilityConnectorsRequest>,
|
|
1554
|
+
output: __S(433, __c27, 1) as any as S.Schema<GetPackageVulnerabilityConnectorsResponse>,
|
|
3164
1555
|
errors: [UnknownVantaError],
|
|
3165
1556
|
protocol: VantaProtocol,
|
|
3166
1557
|
retry: Retry.Retry,
|
|
@@ -3174,8 +1565,8 @@ export const getSecret: API.OperationMethod<
|
|
|
3174
1565
|
GetSecretError,
|
|
3175
1566
|
VantaOpContext
|
|
3176
1567
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3177
|
-
input: GetSecretRequest
|
|
3178
|
-
output: GetSecretResponse
|
|
1568
|
+
input: __S(464, __c29, 0) as any as S.Schema<GetSecretRequest>,
|
|
1569
|
+
output: __S(465, __c29, 1) as any as S.Schema<GetSecretResponse>,
|
|
3179
1570
|
errors: [UnknownVantaError],
|
|
3180
1571
|
protocol: VantaProtocol,
|
|
3181
1572
|
retry: Retry.Retry,
|
|
@@ -3189,8 +1580,8 @@ export const getSecurityTask: API.OperationMethod<
|
|
|
3189
1580
|
GetSecurityTaskError,
|
|
3190
1581
|
VantaOpContext
|
|
3191
1582
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3192
|
-
input: GetSecurityTaskRequest
|
|
3193
|
-
output: GetSecurityTaskResponse
|
|
1583
|
+
input: __S(496, __c31, 0) as any as S.Schema<GetSecurityTaskRequest>,
|
|
1584
|
+
output: __S(497, __c31, 1) as any as S.Schema<GetSecurityTaskResponse>,
|
|
3194
1585
|
errors: [UnknownVantaError],
|
|
3195
1586
|
protocol: VantaProtocol,
|
|
3196
1587
|
retry: Retry.Retry,
|
|
@@ -3204,8 +1595,12 @@ export const getStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
|
|
|
3204
1595
|
GetStaticAnalysisCodeVulnerabilityConnectorsError,
|
|
3205
1596
|
VantaOpContext
|
|
3206
1597
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3207
|
-
input: GetStaticAnalysisCodeVulnerabilityConnectorsRequest
|
|
3208
|
-
output:
|
|
1598
|
+
input: __S(544, __c34, 0) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsRequest>,
|
|
1599
|
+
output: __S(
|
|
1600
|
+
545,
|
|
1601
|
+
__c34,
|
|
1602
|
+
1,
|
|
1603
|
+
) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponse>,
|
|
3209
1604
|
errors: [UnknownVantaError],
|
|
3210
1605
|
protocol: VantaProtocol,
|
|
3211
1606
|
retry: Retry.Retry,
|
|
@@ -3219,8 +1614,8 @@ export const getUserAccount: API.OperationMethod<
|
|
|
3219
1614
|
GetUserAccountError,
|
|
3220
1615
|
VantaOpContext
|
|
3221
1616
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3222
|
-
input: GetUserAccountRequest
|
|
3223
|
-
output: GetUserAccountResponse
|
|
1617
|
+
input: __S(576, __c36, 0) as any as S.Schema<GetUserAccountRequest>,
|
|
1618
|
+
output: __S(577, __c36, 1) as any as S.Schema<GetUserAccountResponse>,
|
|
3224
1619
|
errors: [UnknownVantaError],
|
|
3225
1620
|
protocol: VantaProtocol,
|
|
3226
1621
|
retry: Retry.Retry,
|
|
@@ -3234,8 +1629,8 @@ export const getUserSecurityTrainingStatus: API.OperationMethod<
|
|
|
3234
1629
|
GetUserSecurityTrainingStatusError,
|
|
3235
1630
|
VantaOpContext
|
|
3236
1631
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3237
|
-
input: GetUserSecurityTrainingStatusRequest
|
|
3238
|
-
output: GetUserSecurityTrainingStatusResponse
|
|
1632
|
+
input: __S(624, __c39, 0) as any as S.Schema<GetUserSecurityTrainingStatusRequest>,
|
|
1633
|
+
output: __S(625, __c39, 1) as any as S.Schema<GetUserSecurityTrainingStatusResponse>,
|
|
3239
1634
|
errors: [UnknownVantaError],
|
|
3240
1635
|
protocol: VantaProtocol,
|
|
3241
1636
|
retry: Retry.Retry,
|
|
@@ -3249,8 +1644,8 @@ export const getVulnerableComponent: API.OperationMethod<
|
|
|
3249
1644
|
GetVulnerableComponentError,
|
|
3250
1645
|
VantaOpContext
|
|
3251
1646
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3252
|
-
input: GetVulnerableComponentRequest
|
|
3253
|
-
output: GetVulnerableComponentResponse
|
|
1647
|
+
input: __S(64, __c4, 0) as any as S.Schema<GetVulnerableComponentRequest>,
|
|
1648
|
+
output: __S(65, __c4, 1) as any as S.Schema<GetVulnerableComponentResponse>,
|
|
3254
1649
|
errors: [UnknownVantaError],
|
|
3255
1650
|
protocol: VantaProtocol,
|
|
3256
1651
|
retry: Retry.Retry,
|
|
@@ -3264,8 +1659,8 @@ export const getWindowsUserComputer: API.OperationMethod<
|
|
|
3264
1659
|
GetWindowsUserComputerError,
|
|
3265
1660
|
VantaOpContext
|
|
3266
1661
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3267
|
-
input: GetWindowsUserComputerRequest
|
|
3268
|
-
output: GetWindowsUserComputerResponse
|
|
1662
|
+
input: __S(96, __c6, 0) as any as S.Schema<GetWindowsUserComputerRequest>,
|
|
1663
|
+
output: __S(97, __c6, 1) as any as S.Schema<GetWindowsUserComputerResponse>,
|
|
3269
1664
|
errors: [UnknownVantaError],
|
|
3270
1665
|
protocol: VantaProtocol,
|
|
3271
1666
|
retry: Retry.Retry,
|
|
@@ -3279,8 +1674,8 @@ export const putApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
|
3279
1674
|
PutApiEndpointVulnerabilityConnectorsError,
|
|
3280
1675
|
VantaOpContext
|
|
3281
1676
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3282
|
-
input: PutApiEndpointVulnerabilityConnectorsRequest
|
|
3283
|
-
output: PutApiEndpointVulnerabilityConnectorsResponse
|
|
1677
|
+
input: __S(128, __c8, 0) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequest>,
|
|
1678
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsResponse>,
|
|
3284
1679
|
errors: [UnknownVantaError],
|
|
3285
1680
|
protocol: VantaProtocol,
|
|
3286
1681
|
retry: Retry.Retry,
|
|
@@ -3294,8 +1689,8 @@ export const putBackgroundCheckConnector: API.OperationMethod<
|
|
|
3294
1689
|
PutBackgroundCheckConnectorError,
|
|
3295
1690
|
VantaOpContext
|
|
3296
1691
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3297
|
-
input: PutBackgroundCheckConnectorRequest
|
|
3298
|
-
output: PutBackgroundCheckConnectorResponse
|
|
1692
|
+
input: __S(160, __c10, 0) as any as S.Schema<PutBackgroundCheckConnectorRequest>,
|
|
1693
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutBackgroundCheckConnectorResponse>,
|
|
3299
1694
|
errors: [UnknownVantaError],
|
|
3300
1695
|
protocol: VantaProtocol,
|
|
3301
1696
|
retry: Retry.Retry,
|
|
@@ -3309,8 +1704,8 @@ export const putCustomResource: API.OperationMethod<
|
|
|
3309
1704
|
PutCustomResourceError,
|
|
3310
1705
|
VantaOpContext
|
|
3311
1706
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3312
|
-
input: PutCustomResourceRequest
|
|
3313
|
-
output: PutCustomResourceResponse
|
|
1707
|
+
input: __S(176, __c11, 0) as any as S.Schema<PutCustomResourceRequest>,
|
|
1708
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutCustomResourceResponse>,
|
|
3314
1709
|
errors: [UnknownVantaError],
|
|
3315
1710
|
protocol: VantaProtocol,
|
|
3316
1711
|
retry: Retry.Retry,
|
|
@@ -3324,8 +1719,8 @@ export const putMacosUserComputer: API.OperationMethod<
|
|
|
3324
1719
|
PutMacosUserComputerError,
|
|
3325
1720
|
VantaOpContext
|
|
3326
1721
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3327
|
-
input: PutMacosUserComputerRequest
|
|
3328
|
-
output: PutMacosUserComputerResponse
|
|
1722
|
+
input: __S(192, __c12, 0) as any as S.Schema<PutMacosUserComputerRequest>,
|
|
1723
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutMacosUserComputerResponse>,
|
|
3329
1724
|
errors: [UnknownVantaError],
|
|
3330
1725
|
protocol: VantaProtocol,
|
|
3331
1726
|
retry: Retry.Retry,
|
|
@@ -3339,8 +1734,8 @@ export const putPackageVulnerabilityConnectors: API.OperationMethod<
|
|
|
3339
1734
|
PutPackageVulnerabilityConnectorsError,
|
|
3340
1735
|
VantaOpContext
|
|
3341
1736
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3342
|
-
input: PutPackageVulnerabilityConnectorsRequest
|
|
3343
|
-
output: PutPackageVulnerabilityConnectorsResponse
|
|
1737
|
+
input: __S(208, __c13, 0) as any as S.Schema<PutPackageVulnerabilityConnectorsRequest>,
|
|
1738
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutPackageVulnerabilityConnectorsResponse>,
|
|
3344
1739
|
errors: [UnknownVantaError],
|
|
3345
1740
|
protocol: VantaProtocol,
|
|
3346
1741
|
retry: Retry.Retry,
|
|
@@ -3354,8 +1749,8 @@ export const putSecret: API.OperationMethod<
|
|
|
3354
1749
|
PutSecretError,
|
|
3355
1750
|
VantaOpContext
|
|
3356
1751
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3357
|
-
input: PutSecretRequest
|
|
3358
|
-
output: PutSecretResponse
|
|
1752
|
+
input: __S(224, __c14, 0) as any as S.Schema<PutSecretRequest>,
|
|
1753
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutSecretResponse>,
|
|
3359
1754
|
errors: [UnknownVantaError],
|
|
3360
1755
|
protocol: VantaProtocol,
|
|
3361
1756
|
retry: Retry.Retry,
|
|
@@ -3369,8 +1764,8 @@ export const putSecurityTask: API.OperationMethod<
|
|
|
3369
1764
|
PutSecurityTaskError,
|
|
3370
1765
|
VantaOpContext
|
|
3371
1766
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3372
|
-
input: PutSecurityTaskRequest
|
|
3373
|
-
output: PutSecurityTaskResponse
|
|
1767
|
+
input: __S(240, __c15, 0) as any as S.Schema<PutSecurityTaskRequest>,
|
|
1768
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutSecurityTaskResponse>,
|
|
3374
1769
|
errors: [UnknownVantaError],
|
|
3375
1770
|
protocol: VantaProtocol,
|
|
3376
1771
|
retry: Retry.Retry,
|
|
@@ -3384,8 +1779,12 @@ export const putStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
|
|
|
3384
1779
|
PutStaticAnalysisCodeVulnerabilityConnectorsError,
|
|
3385
1780
|
VantaOpContext
|
|
3386
1781
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3387
|
-
input: PutStaticAnalysisCodeVulnerabilityConnectorsRequest
|
|
3388
|
-
output:
|
|
1782
|
+
input: __S(256, __c16, 0) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsRequest>,
|
|
1783
|
+
output: __S(
|
|
1784
|
+
144,
|
|
1785
|
+
__c9,
|
|
1786
|
+
0,
|
|
1787
|
+
) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsResponse>,
|
|
3389
1788
|
errors: [UnknownVantaError],
|
|
3390
1789
|
protocol: VantaProtocol,
|
|
3391
1790
|
retry: Retry.Retry,
|
|
@@ -3399,8 +1798,8 @@ export const putUserAccount: API.OperationMethod<
|
|
|
3399
1798
|
PutUserAccountError,
|
|
3400
1799
|
VantaOpContext
|
|
3401
1800
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3402
|
-
input: PutUserAccountRequest
|
|
3403
|
-
output: PutUserAccountResponse
|
|
1801
|
+
input: __S(304, __c19, 0) as any as S.Schema<PutUserAccountRequest>,
|
|
1802
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutUserAccountResponse>,
|
|
3404
1803
|
errors: [UnknownVantaError],
|
|
3405
1804
|
protocol: VantaProtocol,
|
|
3406
1805
|
retry: Retry.Retry,
|
|
@@ -3414,8 +1813,8 @@ export const putUserSecurityTrainingStatus: API.OperationMethod<
|
|
|
3414
1813
|
PutUserSecurityTrainingStatusError,
|
|
3415
1814
|
VantaOpContext
|
|
3416
1815
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3417
|
-
input: PutUserSecurityTrainingStatusRequest
|
|
3418
|
-
output: PutUserSecurityTrainingStatusResponse
|
|
1816
|
+
input: __S(320, __c20, 0) as any as S.Schema<PutUserSecurityTrainingStatusRequest>,
|
|
1817
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutUserSecurityTrainingStatusResponse>,
|
|
3419
1818
|
errors: [UnknownVantaError],
|
|
3420
1819
|
protocol: VantaProtocol,
|
|
3421
1820
|
retry: Retry.Retry,
|
|
@@ -3429,8 +1828,8 @@ export const putVulnerableComponent: API.OperationMethod<
|
|
|
3429
1828
|
PutVulnerableComponentError,
|
|
3430
1829
|
VantaOpContext
|
|
3431
1830
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3432
|
-
input: PutVulnerableComponentRequest
|
|
3433
|
-
output: PutVulnerableComponentResponse
|
|
1831
|
+
input: __S(336, __c21, 0) as any as S.Schema<PutVulnerableComponentRequest>,
|
|
1832
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutVulnerableComponentResponse>,
|
|
3434
1833
|
errors: [UnknownVantaError],
|
|
3435
1834
|
protocol: VantaProtocol,
|
|
3436
1835
|
retry: Retry.Retry,
|
|
@@ -3444,8 +1843,8 @@ export const putWindowsUserComputer: API.OperationMethod<
|
|
|
3444
1843
|
PutWindowsUserComputerError,
|
|
3445
1844
|
VantaOpContext
|
|
3446
1845
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3447
|
-
input: PutWindowsUserComputerRequest
|
|
3448
|
-
output: PutWindowsUserComputerResponse
|
|
1846
|
+
input: __S(352, __c22, 0) as any as S.Schema<PutWindowsUserComputerRequest>,
|
|
1847
|
+
output: __S(144, __c9, 0) as any as S.Schema<PutWindowsUserComputerResponse>,
|
|
3449
1848
|
errors: [UnknownVantaError],
|
|
3450
1849
|
protocol: VantaProtocol,
|
|
3451
1850
|
retry: Retry.Retry,
|
|
@@ -3459,9 +1858,883 @@ export const uploadFileForDocument: API.OperationMethod<
|
|
|
3459
1858
|
UploadFileForDocumentError,
|
|
3460
1859
|
VantaOpContext
|
|
3461
1860
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3462
|
-
input: UploadFileForDocumentRequest
|
|
3463
|
-
output: UploadedFileT
|
|
1861
|
+
input: __S(368, __c23, 0) as any as S.Schema<UploadFileForDocumentRequest>,
|
|
1862
|
+
output: __S(370, __c23, 2) as any as S.Schema<UploadedFileT>,
|
|
3464
1863
|
errors: [UnknownVantaError],
|
|
3465
1864
|
protocol: VantaProtocol,
|
|
3466
1865
|
retry: Retry.Retry,
|
|
3467
1866
|
}));
|
|
1867
|
+
|
|
1868
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
1869
|
+
function __c0(j: number): any {
|
|
1870
|
+
switch (j) {
|
|
1871
|
+
case 0:
|
|
1872
|
+
return S.suspend(() =>
|
|
1873
|
+
S.Struct({
|
|
1874
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1875
|
+
}).pipe(
|
|
1876
|
+
T.Http({
|
|
1877
|
+
method: "GET",
|
|
1878
|
+
uri: "/v1/resources/api_endpoint_vulnerability_connectors",
|
|
1879
|
+
code: 200,
|
|
1880
|
+
}),
|
|
1881
|
+
),
|
|
1882
|
+
).annotate({ identifier: "GetApiEndpointVulnerabilityConnectorsRequest" });
|
|
1883
|
+
case 1:
|
|
1884
|
+
return S.suspend(() =>
|
|
1885
|
+
S.Struct({
|
|
1886
|
+
resources: S.optional(__S(21, __c1, 5)),
|
|
1887
|
+
}),
|
|
1888
|
+
).annotate({ identifier: "GetApiEndpointVulnerabilityConnectorsResponse" });
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
function __c1(j: number): any {
|
|
1892
|
+
switch (j) {
|
|
1893
|
+
case 0:
|
|
1894
|
+
return S.suspend(() =>
|
|
1895
|
+
S.Struct({
|
|
1896
|
+
key: S.String,
|
|
1897
|
+
value: S.String,
|
|
1898
|
+
}),
|
|
1899
|
+
).annotate({
|
|
1900
|
+
identifier:
|
|
1901
|
+
"GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItemQueryParamsItem",
|
|
1902
|
+
});
|
|
1903
|
+
case 1:
|
|
1904
|
+
return S.Array(__S(16, __c1, 0));
|
|
1905
|
+
case 2:
|
|
1906
|
+
return S.suspend(() =>
|
|
1907
|
+
S.Struct({
|
|
1908
|
+
description: S.String,
|
|
1909
|
+
fromUrl: S.optional(S.NullOr(S.String)),
|
|
1910
|
+
queryParams: S.optional(S.NullOr(__S(17, __c1, 1))),
|
|
1911
|
+
headers: S.optional(S.NullOr(__S(17, __c1, 1))),
|
|
1912
|
+
body: S.optional(S.NullOr(S.String)),
|
|
1913
|
+
}),
|
|
1914
|
+
).annotate({
|
|
1915
|
+
identifier: "GetApiEndpointVulnerabilityConnectorsResponseResourcesItemOccurrencesItem",
|
|
1916
|
+
});
|
|
1917
|
+
case 3:
|
|
1918
|
+
return S.Array(__S(18, __c1, 2));
|
|
1919
|
+
case 4:
|
|
1920
|
+
return S.suspend(() =>
|
|
1921
|
+
S.Struct({
|
|
1922
|
+
displayName: S.String,
|
|
1923
|
+
uniqueId: S.String,
|
|
1924
|
+
externalUrl: S.String,
|
|
1925
|
+
occurrences: __S(19, __c1, 3),
|
|
1926
|
+
severity: S.Number,
|
|
1927
|
+
vulnerableComponentUniqueId: S.String,
|
|
1928
|
+
description: S.String,
|
|
1929
|
+
remediationInstructions: S.String,
|
|
1930
|
+
url: S.String,
|
|
1931
|
+
httpMethod: S.String,
|
|
1932
|
+
cveId: S.optional(S.NullOr(S.String)),
|
|
1933
|
+
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
1934
|
+
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
1935
|
+
}),
|
|
1936
|
+
).annotate({ identifier: "GetApiEndpointVulnerabilityConnectorsResponseResourcesItem" });
|
|
1937
|
+
case 5:
|
|
1938
|
+
return S.Array(__S(20, __c1, 4));
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
function __c2(j: number): any {
|
|
1942
|
+
switch (j) {
|
|
1943
|
+
case 0:
|
|
1944
|
+
return S.suspend(() =>
|
|
1945
|
+
S.Struct({
|
|
1946
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1947
|
+
}).pipe(
|
|
1948
|
+
T.Http({ method: "GET", uri: "/v1/resources/background_check_connector", code: 200 }),
|
|
1949
|
+
),
|
|
1950
|
+
).annotate({ identifier: "GetBackgroundCheckConnectorRequest" });
|
|
1951
|
+
case 1:
|
|
1952
|
+
return S.suspend(() =>
|
|
1953
|
+
S.Struct({
|
|
1954
|
+
resources: S.optional(__S(49, __c3, 1)),
|
|
1955
|
+
}),
|
|
1956
|
+
).annotate({ identifier: "GetBackgroundCheckConnectorResponse" });
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
function __c3(j: number): any {
|
|
1960
|
+
switch (j) {
|
|
1961
|
+
case 0:
|
|
1962
|
+
return S.suspend(() =>
|
|
1963
|
+
S.Struct({
|
|
1964
|
+
displayName: S.String,
|
|
1965
|
+
uniqueId: S.String,
|
|
1966
|
+
externalUrl: S.String,
|
|
1967
|
+
fullName: S.String,
|
|
1968
|
+
email: S.String,
|
|
1969
|
+
status: S.String,
|
|
1970
|
+
completionDate: S.optional(S.NullOr(S.String)),
|
|
1971
|
+
}),
|
|
1972
|
+
).annotate({ identifier: "GetBackgroundCheckConnectorResponseResourcesItem" });
|
|
1973
|
+
case 1:
|
|
1974
|
+
return S.Array(__S(48, __c3, 0));
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
function __c4(j: number): any {
|
|
1978
|
+
switch (j) {
|
|
1979
|
+
case 0:
|
|
1980
|
+
return S.suspend(() =>
|
|
1981
|
+
S.Struct({
|
|
1982
|
+
resourceId: S.String.pipe(T.Query()),
|
|
1983
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/vulnerable_component", code: 200 })),
|
|
1984
|
+
).annotate({ identifier: "GetVulnerableComponentRequest" });
|
|
1985
|
+
case 1:
|
|
1986
|
+
return S.suspend(() =>
|
|
1987
|
+
S.Struct({
|
|
1988
|
+
resources: S.optional(__S(81, __c5, 1)),
|
|
1989
|
+
}),
|
|
1990
|
+
).annotate({ identifier: "GetVulnerableComponentResponse" });
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
function __c5(j: number): any {
|
|
1994
|
+
switch (j) {
|
|
1995
|
+
case 0:
|
|
1996
|
+
return S.suspend(() =>
|
|
1997
|
+
S.Struct({
|
|
1998
|
+
displayName: S.String,
|
|
1999
|
+
uniqueId: S.String,
|
|
2000
|
+
externalUrl: S.String,
|
|
2001
|
+
collectedTimestamp: S.String,
|
|
2002
|
+
name: S.String,
|
|
2003
|
+
description: S.String,
|
|
2004
|
+
targetType: S.String,
|
|
2005
|
+
}),
|
|
2006
|
+
).annotate({ identifier: "GetVulnerableComponentResponseResourcesItem" });
|
|
2007
|
+
case 1:
|
|
2008
|
+
return S.Array(__S(80, __c5, 0));
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
function __c6(j: number): any {
|
|
2012
|
+
switch (j) {
|
|
2013
|
+
case 0:
|
|
2014
|
+
return S.suspend(() =>
|
|
2015
|
+
S.Struct({
|
|
2016
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2017
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/windows_user_computer", code: 200 })),
|
|
2018
|
+
).annotate({ identifier: "GetWindowsUserComputerRequest" });
|
|
2019
|
+
case 1:
|
|
2020
|
+
return S.suspend(() =>
|
|
2021
|
+
S.Struct({
|
|
2022
|
+
resources: S.optional(__S(120, __c7, 8)),
|
|
2023
|
+
}),
|
|
2024
|
+
).annotate({ identifier: "GetWindowsUserComputerResponse" });
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
function __c7(j: number): any {
|
|
2028
|
+
switch (j) {
|
|
2029
|
+
case 0:
|
|
2030
|
+
return S.suspend(() =>
|
|
2031
|
+
S.Struct({
|
|
2032
|
+
name: S.String,
|
|
2033
|
+
lastOpenedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2034
|
+
}),
|
|
2035
|
+
).annotate({ identifier: "GetWindowsUserComputerResponseResourcesItemProgramsItem" });
|
|
2036
|
+
case 1:
|
|
2037
|
+
return S.Array(__S(112, __c7, 0));
|
|
2038
|
+
case 2:
|
|
2039
|
+
return S.suspend(() =>
|
|
2040
|
+
S.Struct({
|
|
2041
|
+
name: S.String,
|
|
2042
|
+
encrypted: S.Boolean,
|
|
2043
|
+
isBootVolume: S.optional(S.NullOr(S.Boolean)),
|
|
2044
|
+
}),
|
|
2045
|
+
).annotate({ identifier: "GetWindowsUserComputerResponseResourcesItemDrivesItem" });
|
|
2046
|
+
case 3:
|
|
2047
|
+
return S.Array(__S(114, __c7, 2));
|
|
2048
|
+
case 4:
|
|
2049
|
+
return S.suspend(() =>
|
|
2050
|
+
S.Struct({
|
|
2051
|
+
name: S.String,
|
|
2052
|
+
category: S.String,
|
|
2053
|
+
state: S.String,
|
|
2054
|
+
stateTimestamp: S.String,
|
|
2055
|
+
signaturesUpToDate: S.Boolean,
|
|
2056
|
+
}),
|
|
2057
|
+
).annotate({
|
|
2058
|
+
identifier: "GetWindowsUserComputerResponseResourcesItemWindowsSecurityProductsItem",
|
|
2059
|
+
});
|
|
2060
|
+
case 5:
|
|
2061
|
+
return S.Array(__S(116, __c7, 4));
|
|
2062
|
+
case 6:
|
|
2063
|
+
return S.suspend(() =>
|
|
2064
|
+
S.Struct({
|
|
2065
|
+
firewall: S.String,
|
|
2066
|
+
autoupdate: S.String,
|
|
2067
|
+
antivirus: S.String,
|
|
2068
|
+
internetSetting: S.String,
|
|
2069
|
+
userAccountControl: S.String,
|
|
2070
|
+
windowsSecurityCenterService: S.String,
|
|
2071
|
+
}),
|
|
2072
|
+
).annotate({
|
|
2073
|
+
identifier: "GetWindowsUserComputerResponseResourcesItemWindowsSecurityCenter",
|
|
2074
|
+
});
|
|
2075
|
+
case 7:
|
|
2076
|
+
return S.suspend(() =>
|
|
2077
|
+
S.Struct({
|
|
2078
|
+
displayName: S.String,
|
|
2079
|
+
uniqueId: S.String,
|
|
2080
|
+
externalUrl: S.String,
|
|
2081
|
+
collectedTimestamp: S.String,
|
|
2082
|
+
osName: S.String,
|
|
2083
|
+
osVersion: S.String,
|
|
2084
|
+
hardwareUuid: S.String,
|
|
2085
|
+
serialNumber: S.String,
|
|
2086
|
+
programs: __S(113, __c7, 1),
|
|
2087
|
+
browserExtensions: __S(401, __c25, 1),
|
|
2088
|
+
drives: __S(115, __c7, 3),
|
|
2089
|
+
users: __S(405, __c25, 5),
|
|
2090
|
+
systemScreenlockPolicies: __S(403, __c25, 3),
|
|
2091
|
+
isManaged: S.Boolean,
|
|
2092
|
+
autoUpdatesEnabled: S.Boolean,
|
|
2093
|
+
owner: S.optional(S.NullOr(S.String)),
|
|
2094
|
+
passwordPolicy: S.optional(S.NullOr(__S(406, __c25, 6))),
|
|
2095
|
+
lastEnrolledTimestamp: S.optional(S.NullOr(S.String)),
|
|
2096
|
+
windowsSecurityProducts: S.optional(S.NullOr(__S(117, __c7, 5))),
|
|
2097
|
+
windowsSecurityCenter: S.optional(S.NullOr(__S(118, __c7, 6))),
|
|
2098
|
+
}),
|
|
2099
|
+
).annotate({ identifier: "GetWindowsUserComputerResponseResourcesItem" });
|
|
2100
|
+
case 8:
|
|
2101
|
+
return S.Array(__S(119, __c7, 7));
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
function __c8(j: number): any {
|
|
2105
|
+
switch (j) {
|
|
2106
|
+
case 0:
|
|
2107
|
+
return S.suspend(() =>
|
|
2108
|
+
S.Struct({
|
|
2109
|
+
resourceId: S.String,
|
|
2110
|
+
resources: __S(21, __c1, 5),
|
|
2111
|
+
}).pipe(
|
|
2112
|
+
T.Http({
|
|
2113
|
+
method: "PUT",
|
|
2114
|
+
uri: "/v1/resources/api_endpoint_vulnerability_connectors",
|
|
2115
|
+
code: 200,
|
|
2116
|
+
}),
|
|
2117
|
+
),
|
|
2118
|
+
).annotate({ identifier: "PutApiEndpointVulnerabilityConnectorsRequest" });
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
function __c9(j: number): any {
|
|
2122
|
+
switch (j) {
|
|
2123
|
+
case 0:
|
|
2124
|
+
return S.suspend(() =>
|
|
2125
|
+
S.Struct({
|
|
2126
|
+
success: S.Boolean,
|
|
2127
|
+
}),
|
|
2128
|
+
).annotate({ identifier: "PutApiEndpointVulnerabilityConnectorsResponse" });
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
function __c10(j: number): any {
|
|
2132
|
+
switch (j) {
|
|
2133
|
+
case 0:
|
|
2134
|
+
return S.suspend(() =>
|
|
2135
|
+
S.Struct({
|
|
2136
|
+
resourceId: S.String,
|
|
2137
|
+
resources: __S(49, __c3, 1),
|
|
2138
|
+
}).pipe(
|
|
2139
|
+
T.Http({ method: "PUT", uri: "/v1/resources/background_check_connector", code: 200 }),
|
|
2140
|
+
),
|
|
2141
|
+
).annotate({ identifier: "PutBackgroundCheckConnectorRequest" });
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
function __c11(j: number): any {
|
|
2145
|
+
switch (j) {
|
|
2146
|
+
case 0:
|
|
2147
|
+
return S.suspend(() =>
|
|
2148
|
+
S.Struct({
|
|
2149
|
+
resourceId: S.String,
|
|
2150
|
+
resources: __S(289, __c18, 1),
|
|
2151
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/custom_resource", code: 200 })),
|
|
2152
|
+
).annotate({ identifier: "PutCustomResourceRequest" });
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
function __c12(j: number): any {
|
|
2156
|
+
switch (j) {
|
|
2157
|
+
case 0:
|
|
2158
|
+
return S.suspend(() =>
|
|
2159
|
+
S.Struct({
|
|
2160
|
+
resourceId: S.String,
|
|
2161
|
+
resources: __S(421, __c26, 5),
|
|
2162
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/macos_user_computer", code: 200 })),
|
|
2163
|
+
).annotate({ identifier: "PutMacosUserComputerRequest" });
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
function __c13(j: number): any {
|
|
2167
|
+
switch (j) {
|
|
2168
|
+
case 0:
|
|
2169
|
+
return S.suspend(() =>
|
|
2170
|
+
S.Struct({
|
|
2171
|
+
resourceId: S.String,
|
|
2172
|
+
resources: __S(449, __c28, 1),
|
|
2173
|
+
}).pipe(
|
|
2174
|
+
T.Http({
|
|
2175
|
+
method: "PUT",
|
|
2176
|
+
uri: "/v1/resources/package_vulnerability_connectors",
|
|
2177
|
+
code: 200,
|
|
2178
|
+
}),
|
|
2179
|
+
),
|
|
2180
|
+
).annotate({ identifier: "PutPackageVulnerabilityConnectorsRequest" });
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
function __c14(j: number): any {
|
|
2184
|
+
switch (j) {
|
|
2185
|
+
case 0:
|
|
2186
|
+
return S.suspend(() =>
|
|
2187
|
+
S.Struct({
|
|
2188
|
+
resourceId: S.String,
|
|
2189
|
+
resources: __S(481, __c30, 1),
|
|
2190
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/secret", code: 200 })),
|
|
2191
|
+
).annotate({ identifier: "PutSecretRequest" });
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
function __c15(j: number): any {
|
|
2195
|
+
switch (j) {
|
|
2196
|
+
case 0:
|
|
2197
|
+
return S.suspend(() =>
|
|
2198
|
+
S.Struct({
|
|
2199
|
+
resourceId: S.String,
|
|
2200
|
+
resources: __S(513, __c32, 1),
|
|
2201
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/security_task", code: 200 })),
|
|
2202
|
+
).annotate({ identifier: "PutSecurityTaskRequest" });
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
function __c16(j: number): any {
|
|
2206
|
+
switch (j) {
|
|
2207
|
+
case 0:
|
|
2208
|
+
return S.suspend(() =>
|
|
2209
|
+
S.Struct({
|
|
2210
|
+
resourceId: S.String,
|
|
2211
|
+
resources: __S(563, __c35, 3),
|
|
2212
|
+
}).pipe(
|
|
2213
|
+
T.Http({
|
|
2214
|
+
method: "PUT",
|
|
2215
|
+
uri: "/v1/resources/static_analysis_code_vulnerability_connectors",
|
|
2216
|
+
code: 200,
|
|
2217
|
+
}),
|
|
2218
|
+
),
|
|
2219
|
+
).annotate({ identifier: "PutStaticAnalysisCodeVulnerabilityConnectorsRequest" });
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
function __c17(j: number): any {
|
|
2223
|
+
switch (j) {
|
|
2224
|
+
case 0:
|
|
2225
|
+
return S.suspend(() =>
|
|
2226
|
+
S.Struct({
|
|
2227
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2228
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/custom_resource", code: 200 })),
|
|
2229
|
+
).annotate({ identifier: "GetCustomResourceRequest" });
|
|
2230
|
+
case 1:
|
|
2231
|
+
return S.suspend(() =>
|
|
2232
|
+
S.Struct({
|
|
2233
|
+
resources: S.optional(__S(289, __c18, 1)),
|
|
2234
|
+
}),
|
|
2235
|
+
).annotate({ identifier: "GetCustomResourceResponse" });
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
function __c18(j: number): any {
|
|
2239
|
+
switch (j) {
|
|
2240
|
+
case 0:
|
|
2241
|
+
return S.suspend(() =>
|
|
2242
|
+
S.Struct({
|
|
2243
|
+
displayName: S.String,
|
|
2244
|
+
uniqueId: S.String,
|
|
2245
|
+
externalUrl: S.String,
|
|
2246
|
+
}),
|
|
2247
|
+
).annotate({ identifier: "GetCustomResourceResponseResourcesItem" });
|
|
2248
|
+
case 1:
|
|
2249
|
+
return S.Array(__S(288, __c18, 0));
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
function __c19(j: number): any {
|
|
2253
|
+
switch (j) {
|
|
2254
|
+
case 0:
|
|
2255
|
+
return S.suspend(() =>
|
|
2256
|
+
S.Struct({
|
|
2257
|
+
resourceId: S.String,
|
|
2258
|
+
resources: __S(593, __c37, 1),
|
|
2259
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/user_account", code: 200 })),
|
|
2260
|
+
).annotate({ identifier: "PutUserAccountRequest" });
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
function __c20(j: number): any {
|
|
2264
|
+
switch (j) {
|
|
2265
|
+
case 0:
|
|
2266
|
+
return S.suspend(() =>
|
|
2267
|
+
S.Struct({
|
|
2268
|
+
resourceId: S.String,
|
|
2269
|
+
resources: __S(641, __c40, 1),
|
|
2270
|
+
}).pipe(
|
|
2271
|
+
T.Http({ method: "PUT", uri: "/v1/resources/user_security_training_status", code: 200 }),
|
|
2272
|
+
),
|
|
2273
|
+
).annotate({ identifier: "PutUserSecurityTrainingStatusRequest" });
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
function __c21(j: number): any {
|
|
2277
|
+
switch (j) {
|
|
2278
|
+
case 0:
|
|
2279
|
+
return S.suspend(() =>
|
|
2280
|
+
S.Struct({
|
|
2281
|
+
resourceId: S.String,
|
|
2282
|
+
resources: __S(81, __c5, 1),
|
|
2283
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/vulnerable_component", code: 200 })),
|
|
2284
|
+
).annotate({ identifier: "PutVulnerableComponentRequest" });
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
function __c22(j: number): any {
|
|
2288
|
+
switch (j) {
|
|
2289
|
+
case 0:
|
|
2290
|
+
return S.suspend(() =>
|
|
2291
|
+
S.Struct({
|
|
2292
|
+
resourceId: S.String,
|
|
2293
|
+
resources: __S(120, __c7, 8),
|
|
2294
|
+
}).pipe(T.Http({ method: "PUT", uri: "/v1/resources/windows_user_computer", code: 200 })),
|
|
2295
|
+
).annotate({ identifier: "PutWindowsUserComputerRequest" });
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
function __c23(j: number): any {
|
|
2299
|
+
switch (j) {
|
|
2300
|
+
case 0:
|
|
2301
|
+
return S.suspend(() =>
|
|
2302
|
+
S.Struct({
|
|
2303
|
+
documentId: S.String.pipe(T.Label()),
|
|
2304
|
+
file: S.String,
|
|
2305
|
+
effectiveAtDate: S.optional(S.String),
|
|
2306
|
+
description: S.optional(S.String),
|
|
2307
|
+
}).pipe(
|
|
2308
|
+
T.Http({
|
|
2309
|
+
method: "POST",
|
|
2310
|
+
uri: "/v1/documents/{documentId}/uploads",
|
|
2311
|
+
code: 200,
|
|
2312
|
+
contentType: "multipart",
|
|
2313
|
+
}),
|
|
2314
|
+
),
|
|
2315
|
+
).annotate({ identifier: "UploadFileForDocumentRequest" });
|
|
2316
|
+
case 1:
|
|
2317
|
+
return S.suspend(() =>
|
|
2318
|
+
S.Struct({
|
|
2319
|
+
type: S.String,
|
|
2320
|
+
id: S.String,
|
|
2321
|
+
}),
|
|
2322
|
+
).annotate({ identifier: "UploadedFileTUploadedBy" });
|
|
2323
|
+
case 2:
|
|
2324
|
+
return S.suspend(() =>
|
|
2325
|
+
S.Struct({
|
|
2326
|
+
id: S.String,
|
|
2327
|
+
fileName: S.NullOr(S.String),
|
|
2328
|
+
title: S.String,
|
|
2329
|
+
description: S.NullOr(S.String),
|
|
2330
|
+
mimeType: S.String,
|
|
2331
|
+
uploadedBy: S.NullOr(__S(369, __c23, 1)),
|
|
2332
|
+
creationDate: S.String,
|
|
2333
|
+
updatedDate: S.String,
|
|
2334
|
+
deletionDate: S.NullOr(S.String),
|
|
2335
|
+
effectiveDate: S.NullOr(S.String),
|
|
2336
|
+
url: S.String,
|
|
2337
|
+
}),
|
|
2338
|
+
).annotate({ identifier: "UploadedFileT" });
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
function __c24(j: number): any {
|
|
2342
|
+
switch (j) {
|
|
2343
|
+
case 0:
|
|
2344
|
+
return S.suspend(() =>
|
|
2345
|
+
S.Struct({
|
|
2346
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2347
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/macos_user_computer", code: 200 })),
|
|
2348
|
+
).annotate({ identifier: "GetMacosUserComputerRequest" });
|
|
2349
|
+
case 1:
|
|
2350
|
+
return S.suspend(() =>
|
|
2351
|
+
S.Struct({
|
|
2352
|
+
resources: S.optional(__S(421, __c26, 5)),
|
|
2353
|
+
}),
|
|
2354
|
+
).annotate({ identifier: "GetMacosUserComputerResponse" });
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
function __c25(j: number): any {
|
|
2358
|
+
switch (j) {
|
|
2359
|
+
case 0:
|
|
2360
|
+
return S.suspend(() =>
|
|
2361
|
+
S.Struct({
|
|
2362
|
+
extensionId: S.String,
|
|
2363
|
+
name: S.String,
|
|
2364
|
+
browser: S.String,
|
|
2365
|
+
}),
|
|
2366
|
+
).annotate({ identifier: "GetMacosUserComputerResponseResourcesItemBrowserExtensionsItem" });
|
|
2367
|
+
case 1:
|
|
2368
|
+
return S.Array(__S(400, __c25, 0));
|
|
2369
|
+
case 2:
|
|
2370
|
+
return S.suspend(() =>
|
|
2371
|
+
S.Struct({
|
|
2372
|
+
requiresPassword: S.Boolean,
|
|
2373
|
+
screenSleepTimeoutMs: S.Number,
|
|
2374
|
+
}),
|
|
2375
|
+
).annotate({
|
|
2376
|
+
identifier: "GetMacosUserComputerResponseResourcesItemUsersItemScreenlockPoliciesItem",
|
|
2377
|
+
});
|
|
2378
|
+
case 3:
|
|
2379
|
+
return S.Array(__S(402, __c25, 2));
|
|
2380
|
+
case 4:
|
|
2381
|
+
return S.suspend(() =>
|
|
2382
|
+
S.Struct({
|
|
2383
|
+
username: S.String,
|
|
2384
|
+
screenlockPolicies: __S(403, __c25, 3),
|
|
2385
|
+
screenlockSettings: __S(402, __c25, 2),
|
|
2386
|
+
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
2387
|
+
}),
|
|
2388
|
+
).annotate({ identifier: "GetMacosUserComputerResponseResourcesItemUsersItem" });
|
|
2389
|
+
case 5:
|
|
2390
|
+
return S.Array(__S(404, __c25, 4));
|
|
2391
|
+
case 6:
|
|
2392
|
+
return S.suspend(() =>
|
|
2393
|
+
S.Struct({
|
|
2394
|
+
minimumLengthRequirement: S.Number,
|
|
2395
|
+
}),
|
|
2396
|
+
).annotate({ identifier: "GetMacosUserComputerResponseResourcesItemPasswordPolicy" });
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
function __c26(j: number): any {
|
|
2400
|
+
switch (j) {
|
|
2401
|
+
case 0:
|
|
2402
|
+
return S.suspend(() =>
|
|
2403
|
+
S.Struct({
|
|
2404
|
+
name: S.String,
|
|
2405
|
+
bundleId: S.String,
|
|
2406
|
+
lastOpenedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2407
|
+
}),
|
|
2408
|
+
).annotate({ identifier: "GetMacosUserComputerResponseResourcesItemApplicationsItem" });
|
|
2409
|
+
case 1:
|
|
2410
|
+
return S.Array(__S(416, __c26, 0));
|
|
2411
|
+
case 2:
|
|
2412
|
+
return S.suspend(() =>
|
|
2413
|
+
S.Struct({
|
|
2414
|
+
name: S.String,
|
|
2415
|
+
encrypted: S.Boolean,
|
|
2416
|
+
filevaultEnabled: S.Boolean,
|
|
2417
|
+
isBootVolume: S.optional(S.NullOr(S.Boolean)),
|
|
2418
|
+
}),
|
|
2419
|
+
).annotate({ identifier: "GetMacosUserComputerResponseResourcesItemDrivesItem" });
|
|
2420
|
+
case 3:
|
|
2421
|
+
return S.Array(__S(418, __c26, 2));
|
|
2422
|
+
case 4:
|
|
2423
|
+
return S.suspend(() =>
|
|
2424
|
+
S.Struct({
|
|
2425
|
+
displayName: S.String,
|
|
2426
|
+
uniqueId: S.String,
|
|
2427
|
+
externalUrl: S.String,
|
|
2428
|
+
collectedTimestamp: S.String,
|
|
2429
|
+
osName: S.String,
|
|
2430
|
+
osVersion: S.String,
|
|
2431
|
+
hardwareUuid: S.String,
|
|
2432
|
+
serialNumber: S.String,
|
|
2433
|
+
applications: __S(417, __c26, 1),
|
|
2434
|
+
browserExtensions: __S(401, __c25, 1),
|
|
2435
|
+
drives: __S(419, __c26, 3),
|
|
2436
|
+
users: __S(405, __c25, 5),
|
|
2437
|
+
systemScreenlockPolicies: __S(403, __c25, 3),
|
|
2438
|
+
isManaged: S.Boolean,
|
|
2439
|
+
autoUpdatesEnabled: S.Boolean,
|
|
2440
|
+
owner: S.optional(S.NullOr(S.String)),
|
|
2441
|
+
passwordPolicy: S.optional(S.NullOr(__S(406, __c25, 6))),
|
|
2442
|
+
lastEnrolledTimestamp: S.optional(S.NullOr(S.String)),
|
|
2443
|
+
isXProtectEnabled: S.optional(S.NullOr(S.Boolean)),
|
|
2444
|
+
}),
|
|
2445
|
+
).annotate({ identifier: "GetMacosUserComputerResponseResourcesItem" });
|
|
2446
|
+
case 5:
|
|
2447
|
+
return S.Array(__S(420, __c26, 4));
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
function __c27(j: number): any {
|
|
2451
|
+
switch (j) {
|
|
2452
|
+
case 0:
|
|
2453
|
+
return S.suspend(() =>
|
|
2454
|
+
S.Struct({
|
|
2455
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2456
|
+
}).pipe(
|
|
2457
|
+
T.Http({
|
|
2458
|
+
method: "GET",
|
|
2459
|
+
uri: "/v1/resources/package_vulnerability_connectors",
|
|
2460
|
+
code: 200,
|
|
2461
|
+
}),
|
|
2462
|
+
),
|
|
2463
|
+
).annotate({ identifier: "GetPackageVulnerabilityConnectorsRequest" });
|
|
2464
|
+
case 1:
|
|
2465
|
+
return S.suspend(() =>
|
|
2466
|
+
S.Struct({
|
|
2467
|
+
resources: S.optional(__S(449, __c28, 1)),
|
|
2468
|
+
}),
|
|
2469
|
+
).annotate({ identifier: "GetPackageVulnerabilityConnectorsResponse" });
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
function __c28(j: number): any {
|
|
2473
|
+
switch (j) {
|
|
2474
|
+
case 0:
|
|
2475
|
+
return S.suspend(() =>
|
|
2476
|
+
S.Struct({
|
|
2477
|
+
displayName: S.String,
|
|
2478
|
+
uniqueId: S.String,
|
|
2479
|
+
externalUrl: S.String,
|
|
2480
|
+
packageName: S.String,
|
|
2481
|
+
packageVersion: S.String,
|
|
2482
|
+
severity: S.Number,
|
|
2483
|
+
vulnerableComponentUniqueId: S.String,
|
|
2484
|
+
description: S.String,
|
|
2485
|
+
isResolvable: S.Boolean,
|
|
2486
|
+
remediationInstructions: S.String,
|
|
2487
|
+
isReachable: S.optional(S.NullOr(S.Boolean)),
|
|
2488
|
+
cveId: S.optional(S.NullOr(S.String)),
|
|
2489
|
+
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
2490
|
+
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
2491
|
+
}),
|
|
2492
|
+
).annotate({ identifier: "GetPackageVulnerabilityConnectorsResponseResourcesItem" });
|
|
2493
|
+
case 1:
|
|
2494
|
+
return S.Array(__S(448, __c28, 0));
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
function __c29(j: number): any {
|
|
2498
|
+
switch (j) {
|
|
2499
|
+
case 0:
|
|
2500
|
+
return S.suspend(() =>
|
|
2501
|
+
S.Struct({
|
|
2502
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2503
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/secret", code: 200 })),
|
|
2504
|
+
).annotate({ identifier: "GetSecretRequest" });
|
|
2505
|
+
case 1:
|
|
2506
|
+
return S.suspend(() =>
|
|
2507
|
+
S.Struct({
|
|
2508
|
+
resources: S.optional(__S(481, __c30, 1)),
|
|
2509
|
+
}),
|
|
2510
|
+
).annotate({ identifier: "GetSecretResponse" });
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
function __c30(j: number): any {
|
|
2514
|
+
switch (j) {
|
|
2515
|
+
case 0:
|
|
2516
|
+
return S.suspend(() =>
|
|
2517
|
+
S.Struct({
|
|
2518
|
+
displayName: S.String,
|
|
2519
|
+
uniqueId: S.String,
|
|
2520
|
+
externalUrl: S.String,
|
|
2521
|
+
name: S.String,
|
|
2522
|
+
description: S.String,
|
|
2523
|
+
createdTimestamp: S.String,
|
|
2524
|
+
creator: S.String,
|
|
2525
|
+
owner: S.String,
|
|
2526
|
+
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2527
|
+
lastAccessedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2528
|
+
expiresTimestamp: S.optional(S.NullOr(S.String)),
|
|
2529
|
+
}),
|
|
2530
|
+
).annotate({ identifier: "GetSecretResponseResourcesItem" });
|
|
2531
|
+
case 1:
|
|
2532
|
+
return S.Array(__S(480, __c30, 0));
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
function __c31(j: number): any {
|
|
2536
|
+
switch (j) {
|
|
2537
|
+
case 0:
|
|
2538
|
+
return S.suspend(() =>
|
|
2539
|
+
S.Struct({
|
|
2540
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2541
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/security_task", code: 200 })),
|
|
2542
|
+
).annotate({ identifier: "GetSecurityTaskRequest" });
|
|
2543
|
+
case 1:
|
|
2544
|
+
return S.suspend(() =>
|
|
2545
|
+
S.Struct({
|
|
2546
|
+
resources: S.optional(__S(513, __c32, 1)),
|
|
2547
|
+
}),
|
|
2548
|
+
).annotate({ identifier: "GetSecurityTaskResponse" });
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
function __c32(j: number): any {
|
|
2552
|
+
switch (j) {
|
|
2553
|
+
case 0:
|
|
2554
|
+
return S.suspend(() =>
|
|
2555
|
+
S.Struct({
|
|
2556
|
+
displayName: S.String,
|
|
2557
|
+
uniqueId: S.String,
|
|
2558
|
+
externalUrl: S.String,
|
|
2559
|
+
taskId: S.String,
|
|
2560
|
+
taskTitle: S.String,
|
|
2561
|
+
createdTimestamp: S.String,
|
|
2562
|
+
taskState: S.String,
|
|
2563
|
+
priority: S.String,
|
|
2564
|
+
assignees: __S(528, __c33, 0),
|
|
2565
|
+
creator: S.String,
|
|
2566
|
+
labels: __S(528, __c33, 0),
|
|
2567
|
+
closedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2568
|
+
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2569
|
+
}),
|
|
2570
|
+
).annotate({ identifier: "GetSecurityTaskResponseResourcesItem" });
|
|
2571
|
+
case 1:
|
|
2572
|
+
return S.Array(__S(512, __c32, 0));
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
function __c33(j: number): any {
|
|
2576
|
+
switch (j) {
|
|
2577
|
+
case 0:
|
|
2578
|
+
return S.Array(S.String);
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
function __c34(j: number): any {
|
|
2582
|
+
switch (j) {
|
|
2583
|
+
case 0:
|
|
2584
|
+
return S.suspend(() =>
|
|
2585
|
+
S.Struct({
|
|
2586
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2587
|
+
}).pipe(
|
|
2588
|
+
T.Http({
|
|
2589
|
+
method: "GET",
|
|
2590
|
+
uri: "/v1/resources/static_analysis_code_vulnerability_connectors",
|
|
2591
|
+
code: 200,
|
|
2592
|
+
}),
|
|
2593
|
+
),
|
|
2594
|
+
).annotate({ identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsRequest" });
|
|
2595
|
+
case 1:
|
|
2596
|
+
return S.suspend(() =>
|
|
2597
|
+
S.Struct({
|
|
2598
|
+
resources: S.optional(__S(563, __c35, 3)),
|
|
2599
|
+
}),
|
|
2600
|
+
).annotate({ identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsResponse" });
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
function __c35(j: number): any {
|
|
2604
|
+
switch (j) {
|
|
2605
|
+
case 0:
|
|
2606
|
+
return S.suspend(() =>
|
|
2607
|
+
S.Struct({
|
|
2608
|
+
path: S.String,
|
|
2609
|
+
beginLine: S.Number,
|
|
2610
|
+
endLine: S.Number,
|
|
2611
|
+
beginColumn: S.Number,
|
|
2612
|
+
endColumn: S.Number,
|
|
2613
|
+
}),
|
|
2614
|
+
).annotate({
|
|
2615
|
+
identifier:
|
|
2616
|
+
"GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItemOccurrencesItem",
|
|
2617
|
+
});
|
|
2618
|
+
case 1:
|
|
2619
|
+
return S.Array(__S(560, __c35, 0));
|
|
2620
|
+
case 2:
|
|
2621
|
+
return S.suspend(() =>
|
|
2622
|
+
S.Struct({
|
|
2623
|
+
displayName: S.String,
|
|
2624
|
+
uniqueId: S.String,
|
|
2625
|
+
externalUrl: S.String,
|
|
2626
|
+
occurrences: __S(561, __c35, 1),
|
|
2627
|
+
severity: S.Number,
|
|
2628
|
+
confidence: S.Number,
|
|
2629
|
+
isResolvable: S.Boolean,
|
|
2630
|
+
vulnerableComponentUniqueId: S.String,
|
|
2631
|
+
description: S.String,
|
|
2632
|
+
remediationInstructions: S.String,
|
|
2633
|
+
cveId: S.optional(S.NullOr(S.String)),
|
|
2634
|
+
cvss3Vector: S.optional(S.NullOr(S.String)),
|
|
2635
|
+
cvss3Score: S.optional(S.NullOr(S.Number)),
|
|
2636
|
+
}),
|
|
2637
|
+
).annotate({
|
|
2638
|
+
identifier: "GetStaticAnalysisCodeVulnerabilityConnectorsResponseResourcesItem",
|
|
2639
|
+
});
|
|
2640
|
+
case 3:
|
|
2641
|
+
return S.Array(__S(562, __c35, 2));
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
function __c36(j: number): any {
|
|
2645
|
+
switch (j) {
|
|
2646
|
+
case 0:
|
|
2647
|
+
return S.suspend(() =>
|
|
2648
|
+
S.Struct({
|
|
2649
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2650
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/resources/user_account", code: 200 })),
|
|
2651
|
+
).annotate({ identifier: "GetUserAccountRequest" });
|
|
2652
|
+
case 1:
|
|
2653
|
+
return S.suspend(() =>
|
|
2654
|
+
S.Struct({
|
|
2655
|
+
resources: S.optional(__S(593, __c37, 1)),
|
|
2656
|
+
}),
|
|
2657
|
+
).annotate({ identifier: "GetUserAccountResponse" });
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
function __c37(j: number): any {
|
|
2661
|
+
switch (j) {
|
|
2662
|
+
case 0:
|
|
2663
|
+
return S.suspend(() =>
|
|
2664
|
+
S.Struct({
|
|
2665
|
+
displayName: S.String,
|
|
2666
|
+
uniqueId: S.String,
|
|
2667
|
+
externalUrl: S.String,
|
|
2668
|
+
fullName: S.String,
|
|
2669
|
+
accountName: S.String,
|
|
2670
|
+
email: S.String,
|
|
2671
|
+
permissionLevel: S.String,
|
|
2672
|
+
createdTimestamp: S.String,
|
|
2673
|
+
status: S.String,
|
|
2674
|
+
mfaEnabled: S.NullOr(S.Boolean),
|
|
2675
|
+
mfaMethods: __S(608, __c38, 0),
|
|
2676
|
+
authMethod: S.String,
|
|
2677
|
+
roleDescription: S.optional(S.NullOr(S.String)),
|
|
2678
|
+
updatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2679
|
+
deactivatedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2680
|
+
lastLoginTimestamp: S.optional(S.NullOr(S.String)),
|
|
2681
|
+
lastPasswordResetTimestamp: S.optional(S.NullOr(S.String).pipe(T.SensitiveValue({}))),
|
|
2682
|
+
groupIds: S.optional(S.NullOr(__S(528, __c33, 0))),
|
|
2683
|
+
}),
|
|
2684
|
+
).annotate({ identifier: "GetUserAccountResponseResourcesItem" });
|
|
2685
|
+
case 1:
|
|
2686
|
+
return S.Array(__S(592, __c37, 0));
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
function __c38(j: number): any {
|
|
2690
|
+
switch (j) {
|
|
2691
|
+
case 0:
|
|
2692
|
+
return S.Array(S.String);
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
function __c39(j: number): any {
|
|
2696
|
+
switch (j) {
|
|
2697
|
+
case 0:
|
|
2698
|
+
return S.suspend(() =>
|
|
2699
|
+
S.Struct({
|
|
2700
|
+
resourceId: S.String.pipe(T.Query()),
|
|
2701
|
+
}).pipe(
|
|
2702
|
+
T.Http({ method: "GET", uri: "/v1/resources/user_security_training_status", code: 200 }),
|
|
2703
|
+
),
|
|
2704
|
+
).annotate({ identifier: "GetUserSecurityTrainingStatusRequest" });
|
|
2705
|
+
case 1:
|
|
2706
|
+
return S.suspend(() =>
|
|
2707
|
+
S.Struct({
|
|
2708
|
+
resources: S.optional(__S(641, __c40, 1)),
|
|
2709
|
+
}),
|
|
2710
|
+
).annotate({ identifier: "GetUserSecurityTrainingStatusResponse" });
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
function __c40(j: number): any {
|
|
2714
|
+
switch (j) {
|
|
2715
|
+
case 0:
|
|
2716
|
+
return S.suspend(() =>
|
|
2717
|
+
S.Struct({
|
|
2718
|
+
displayName: S.String,
|
|
2719
|
+
uniqueId: S.String,
|
|
2720
|
+
externalUrl: S.String,
|
|
2721
|
+
trainingId: S.String,
|
|
2722
|
+
trainingName: S.String,
|
|
2723
|
+
frameworksFulfilled: __S(608, __c38, 0),
|
|
2724
|
+
traineeFullName: S.String,
|
|
2725
|
+
traineeAccountName: S.String,
|
|
2726
|
+
traineeEmail: S.String,
|
|
2727
|
+
status: S.String,
|
|
2728
|
+
trainingCreatedTimestamp: S.String,
|
|
2729
|
+
trainingDueTimestamp: S.String,
|
|
2730
|
+
trainingCompletedTimestamp: S.optional(S.NullOr(S.String)),
|
|
2731
|
+
}),
|
|
2732
|
+
).annotate({ identifier: "GetUserSecurityTrainingStatusResponseResourcesItem" });
|
|
2733
|
+
case 1:
|
|
2734
|
+
return S.Array(__S(640, __c40, 0));
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
2738
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
2739
|
+
return (__s[i] ??= __L.at(f, j));
|
|
2740
|
+
}
|