vanta-auditor-api-sdk 0.6.1 → 0.6.2
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/README.md +19 -1
- package/docs/sdks/audits/README.md +760 -1
- package/funcs/auditsList.js +10 -0
- package/funcs/auditsList.js.map +1 -1
- package/funcs/auditsListAccountAccessServices.d.ts +33 -0
- package/funcs/auditsListAccountAccessServices.d.ts.map +1 -0
- package/funcs/auditsListAccountAccessServices.js +141 -0
- package/funcs/auditsListAccountAccessServices.js.map +1 -0
- package/funcs/auditsListAuditIssues.d.ts +3 -1
- package/funcs/auditsListAuditIssues.d.ts.map +1 -1
- package/funcs/auditsListAuditIssues.js +5 -1
- package/funcs/auditsListAuditIssues.js.map +1 -1
- package/funcs/auditsListAuditRisks.d.ts +37 -0
- package/funcs/auditsListAuditRisks.d.ts.map +1 -0
- package/funcs/auditsListAuditRisks.js +152 -0
- package/funcs/auditsListAuditRisks.js.map +1 -0
- package/funcs/auditsListCodeChanges.d.ts +34 -0
- package/funcs/auditsListCodeChanges.d.ts.map +1 -0
- package/funcs/auditsListCodeChanges.js +146 -0
- package/funcs/auditsListCodeChanges.js.map +1 -0
- package/funcs/auditsListPersonnelAccountAccess.d.ts +58 -0
- package/funcs/auditsListPersonnelAccountAccess.d.ts.map +1 -0
- package/funcs/auditsListPersonnelAccountAccess.js +172 -0
- package/funcs/auditsListPersonnelAccountAccess.js.map +1 -0
- package/funcs/auditsListPersonnelGroups.d.ts +39 -0
- package/funcs/auditsListPersonnelGroups.d.ts.map +1 -0
- package/funcs/auditsListPersonnelGroups.js +151 -0
- package/funcs/auditsListPersonnelGroups.js.map +1 -0
- package/funcs/auditsListPersonnelPeople.d.ts +36 -0
- package/funcs/auditsListPersonnelPeople.d.ts.map +1 -0
- package/funcs/auditsListPersonnelPeople.js +149 -0
- package/funcs/auditsListPersonnelPeople.js.map +1 -0
- package/funcs/auditsListRiskSnapshots.d.ts +32 -0
- package/funcs/auditsListRiskSnapshots.d.ts.map +1 -0
- package/funcs/auditsListRiskSnapshots.js +140 -0
- package/funcs/auditsListRiskSnapshots.js.map +1 -0
- package/funcs/auditsListVendors.d.ts +35 -0
- package/funcs/auditsListVendors.d.ts.map +1 -0
- package/funcs/auditsListVendors.js +148 -0
- package/funcs/auditsListVendors.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/accountaccess.d.ts +64 -0
- package/models/components/accountaccess.d.ts.map +1 -0
- package/models/components/accountaccess.js +58 -0
- package/models/components/accountaccess.js.map +1 -0
- package/models/components/accountaccessservice.d.ts +36 -0
- package/models/components/accountaccessservice.d.ts.map +1 -0
- package/models/components/accountaccessservice.js +53 -0
- package/models/components/accountaccessservice.js.map +1 -0
- package/models/components/accountaccessstatus.d.ts +25 -0
- package/models/components/accountaccessstatus.d.ts.map +1 -0
- package/models/components/accountaccessstatus.js +56 -0
- package/models/components/accountaccessstatus.js.map +1 -0
- package/models/components/apicodechangesource.d.ts +18 -0
- package/models/components/apicodechangesource.d.ts.map +1 -0
- package/models/components/apicodechangesource.js +52 -0
- package/models/components/apicodechangesource.js.map +1 -0
- package/models/components/auditrisk.d.ts +153 -0
- package/models/components/auditrisk.d.ts.map +1 -0
- package/models/components/auditrisk.js +108 -0
- package/models/components/auditrisk.js.map +1 -0
- package/models/components/auditriskcia.d.ts +17 -0
- package/models/components/auditriskcia.d.ts.map +1 -0
- package/models/components/auditriskcia.js +51 -0
- package/models/components/auditriskcia.js.map +1 -0
- package/models/components/auditvendor.d.ts +96 -0
- package/models/components/auditvendor.d.ts.map +1 -0
- package/models/components/auditvendor.js +86 -0
- package/models/components/auditvendor.js.map +1 -0
- package/models/components/auditvendorrisklevel.d.ts +15 -0
- package/models/components/auditvendorrisklevel.d.ts.map +1 -0
- package/models/components/auditvendorrisklevel.js +52 -0
- package/models/components/auditvendorrisklevel.js.map +1 -0
- package/models/components/auditvendorstatus.d.ts +13 -0
- package/models/components/auditvendorstatus.d.ts.map +1 -0
- package/models/components/auditvendorstatus.js +50 -0
- package/models/components/auditvendorstatus.js.map +1 -0
- package/models/components/codechange.d.ts +50 -0
- package/models/components/codechange.d.ts.map +1 -0
- package/models/components/codechange.js +58 -0
- package/models/components/codechange.js.map +1 -0
- package/models/components/grouporderby.d.ts +13 -0
- package/models/components/grouporderby.d.ts.map +1 -0
- package/models/components/grouporderby.js +50 -0
- package/models/components/grouporderby.js.map +1 -0
- package/models/components/index.d.ts +31 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +31 -0
- package/models/components/index.js.map +1 -1
- package/models/components/issuesnapshotitemorderby.d.ts +16 -0
- package/models/components/issuesnapshotitemorderby.d.ts.map +1 -0
- package/models/components/issuesnapshotitemorderby.js +50 -0
- package/models/components/issuesnapshotitemorderby.js.map +1 -0
- package/models/components/orderdirection.d.ts +16 -0
- package/models/components/orderdirection.d.ts.map +1 -0
- package/models/components/orderdirection.js +50 -0
- package/models/components/orderdirection.js.map +1 -0
- package/models/components/paginatedresponseaccountaccess.d.ts +22 -0
- package/models/components/paginatedresponseaccountaccess.d.ts.map +1 -0
- package/models/components/paginatedresponseaccountaccess.js +61 -0
- package/models/components/paginatedresponseaccountaccess.js.map +1 -0
- package/models/components/paginatedresponseaccountaccessservice.d.ts +22 -0
- package/models/components/paginatedresponseaccountaccessservice.d.ts.map +1 -0
- package/models/components/paginatedresponseaccountaccessservice.js +61 -0
- package/models/components/paginatedresponseaccountaccessservice.js.map +1 -0
- package/models/components/paginatedresponseauditrisk.d.ts +22 -0
- package/models/components/paginatedresponseauditrisk.d.ts.map +1 -0
- package/models/components/paginatedresponseauditrisk.js +61 -0
- package/models/components/paginatedresponseauditrisk.js.map +1 -0
- package/models/components/paginatedresponseauditvendor.d.ts +22 -0
- package/models/components/paginatedresponseauditvendor.d.ts.map +1 -0
- package/models/components/paginatedresponseauditvendor.js +61 -0
- package/models/components/paginatedresponseauditvendor.js.map +1 -0
- package/models/components/paginatedresponsecodechange.d.ts +22 -0
- package/models/components/paginatedresponsecodechange.d.ts.map +1 -0
- package/models/components/paginatedresponsecodechange.js +61 -0
- package/models/components/paginatedresponsecodechange.js.map +1 -0
- package/models/components/paginatedresponsepersonnelgroup.d.ts +22 -0
- package/models/components/paginatedresponsepersonnelgroup.d.ts.map +1 -0
- package/models/components/paginatedresponsepersonnelgroup.js +61 -0
- package/models/components/paginatedresponsepersonnelgroup.js.map +1 -0
- package/models/components/paginatedresponsepersonnelperson.d.ts +22 -0
- package/models/components/paginatedresponsepersonnelperson.d.ts.map +1 -0
- package/models/components/paginatedresponsepersonnelperson.js +61 -0
- package/models/components/paginatedresponsepersonnelperson.js.map +1 -0
- package/models/components/paginatedresponserisksnapshot.d.ts +22 -0
- package/models/components/paginatedresponserisksnapshot.d.ts.map +1 -0
- package/models/components/paginatedresponserisksnapshot.js +61 -0
- package/models/components/paginatedresponserisksnapshot.js.map +1 -0
- package/models/components/peopleemploymentstatus.d.ts +20 -0
- package/models/components/peopleemploymentstatus.d.ts.map +1 -0
- package/models/components/peopleemploymentstatus.js +54 -0
- package/models/components/peopleemploymentstatus.js.map +1 -0
- package/models/components/peopleorderby.d.ts +10 -0
- package/models/components/peopleorderby.d.ts.map +1 -0
- package/models/components/peopleorderby.js +47 -0
- package/models/components/peopleorderby.js.map +1 -0
- package/models/components/peoplesecuritytaskstatus.d.ts +18 -0
- package/models/components/peoplesecuritytaskstatus.d.ts.map +1 -0
- package/models/components/peoplesecuritytaskstatus.js +52 -0
- package/models/components/peoplesecuritytaskstatus.js.map +1 -0
- package/models/components/peopletaskstatus.d.ts +22 -0
- package/models/components/peopletaskstatus.d.ts.map +1 -0
- package/models/components/peopletaskstatus.js +56 -0
- package/models/components/peopletaskstatus.js.map +1 -0
- package/models/components/personnelgroup.d.ts +54 -0
- package/models/components/personnelgroup.d.ts.map +1 -0
- package/models/components/personnelgroup.js +57 -0
- package/models/components/personnelgroup.js.map +1 -0
- package/models/components/personnelgrouptask.d.ts +16 -0
- package/models/components/personnelgrouptask.d.ts.map +1 -0
- package/models/components/personnelgrouptask.js +50 -0
- package/models/components/personnelgrouptask.js.map +1 -0
- package/models/components/personnelperson.d.ts +338 -0
- package/models/components/personnelperson.d.ts.map +1 -0
- package/models/components/personnelperson.js +177 -0
- package/models/components/personnelperson.js.map +1 -0
- package/models/components/riskorderby.d.ts +18 -0
- package/models/components/riskorderby.d.ts.map +1 -0
- package/models/components/riskorderby.js +56 -0
- package/models/components/riskorderby.js.map +1 -0
- package/models/components/risksnapshot.d.ts +26 -0
- package/models/components/risksnapshot.d.ts.map +1 -0
- package/models/components/risksnapshot.js +51 -0
- package/models/components/risksnapshot.js.map +1 -0
- package/models/components/vendororderby.d.ts +10 -0
- package/models/components/vendororderby.d.ts.map +1 -0
- package/models/components/vendororderby.js +47 -0
- package/models/components/vendororderby.js.map +1 -0
- package/models/operations/index.d.ts +8 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listaccountaccessservices.d.ts +25 -0
- package/models/operations/listaccountaccessservices.d.ts.map +1 -0
- package/models/operations/listaccountaccessservices.js +51 -0
- package/models/operations/listaccountaccessservices.js.map +1 -0
- package/models/operations/listauditissues.d.ts +11 -0
- package/models/operations/listauditissues.d.ts.map +1 -1
- package/models/operations/listauditissues.js +3 -0
- package/models/operations/listauditissues.js.map +1 -1
- package/models/operations/listauditrisks.d.ts +46 -0
- package/models/operations/listauditrisks.d.ts.map +1 -0
- package/models/operations/listauditrisks.js +56 -0
- package/models/operations/listauditrisks.js.map +1 -0
- package/models/operations/listcodechanges.d.ts +46 -0
- package/models/operations/listcodechanges.d.ts.map +1 -0
- package/models/operations/listcodechanges.js +57 -0
- package/models/operations/listcodechanges.js.map +1 -0
- package/models/operations/listpersonnelaccountaccess.d.ts +41 -0
- package/models/operations/listpersonnelaccountaccess.d.ts.map +1 -0
- package/models/operations/listpersonnelaccountaccess.js +55 -0
- package/models/operations/listpersonnelaccountaccess.js.map +1 -0
- package/models/operations/listpersonnelgroups.d.ts +46 -0
- package/models/operations/listpersonnelgroups.d.ts.map +1 -0
- package/models/operations/listpersonnelgroups.js +56 -0
- package/models/operations/listpersonnelgroups.js.map +1 -0
- package/models/operations/listpersonnelpeople.d.ts +51 -0
- package/models/operations/listpersonnelpeople.d.ts.map +1 -0
- package/models/operations/listpersonnelpeople.js +57 -0
- package/models/operations/listpersonnelpeople.js.map +1 -0
- package/models/operations/listrisksnapshots.d.ts +25 -0
- package/models/operations/listrisksnapshots.d.ts.map +1 -0
- package/models/operations/listrisksnapshots.js +51 -0
- package/models/operations/listrisksnapshots.js.map +1 -0
- package/models/operations/listvendors.d.ts +51 -0
- package/models/operations/listvendors.d.ts.map +1 -0
- package/models/operations/listvendors.js +58 -0
- package/models/operations/listvendors.js.map +1 -0
- package/package.json +1 -1
- package/sdk/audits.d.ts +219 -1
- package/sdk/audits.d.ts.map +1 -1
- package/sdk/audits.js +243 -1
- package/sdk/audits.js.map +1 -1
- package/src/funcs/auditsList.ts +10 -0
- package/src/funcs/auditsListAccountAccessServices.ts +192 -0
- package/src/funcs/auditsListAuditIssues.ts +5 -1
- package/src/funcs/auditsListAuditRisks.ts +200 -0
- package/src/funcs/auditsListCodeChanges.ts +194 -0
- package/src/funcs/auditsListPersonnelAccountAccess.ts +223 -0
- package/src/funcs/auditsListPersonnelGroups.ts +200 -0
- package/src/funcs/auditsListPersonnelPeople.ts +198 -0
- package/src/funcs/auditsListRiskSnapshots.ts +188 -0
- package/src/funcs/auditsListVendors.ts +196 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountaccess.ts +99 -0
- package/src/models/components/accountaccessservice.ts +60 -0
- package/src/models/components/accountaccessstatus.ts +34 -0
- package/src/models/components/apicodechangesource.ts +25 -0
- package/src/models/components/auditrisk.ts +216 -0
- package/src/models/components/auditriskcia.ts +23 -0
- package/src/models/components/auditvendor.ts +158 -0
- package/src/models/components/auditvendorrisklevel.ts +24 -0
- package/src/models/components/auditvendorstatus.ts +22 -0
- package/src/models/components/codechange.ts +79 -0
- package/src/models/components/grouporderby.ts +19 -0
- package/src/models/components/index.ts +31 -0
- package/src/models/components/issuesnapshotitemorderby.ts +25 -0
- package/src/models/components/orderdirection.ts +23 -0
- package/src/models/components/paginatedresponseaccountaccess.ts +62 -0
- package/src/models/components/paginatedresponseaccountaccessservice.ts +74 -0
- package/src/models/components/paginatedresponseauditrisk.ts +61 -0
- package/src/models/components/paginatedresponseauditvendor.ts +62 -0
- package/src/models/components/paginatedresponsecodechange.ts +62 -0
- package/src/models/components/paginatedresponsepersonnelgroup.ts +65 -0
- package/src/models/components/paginatedresponsepersonnelperson.ts +70 -0
- package/src/models/components/paginatedresponserisksnapshot.ts +62 -0
- package/src/models/components/peopleemploymentstatus.ts +27 -0
- package/src/models/components/peopleorderby.ts +17 -0
- package/src/models/components/peoplesecuritytaskstatus.ts +27 -0
- package/src/models/components/peopletaskstatus.ts +29 -0
- package/src/models/components/personnelgroup.ts +84 -0
- package/src/models/components/personnelgrouptask.ts +37 -0
- package/src/models/components/personnelperson.ts +554 -0
- package/src/models/components/riskorderby.ts +24 -0
- package/src/models/components/risksnapshot.ts +48 -0
- package/src/models/components/vendororderby.ts +17 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/listaccountaccessservices.ts +48 -0
- package/src/models/operations/listauditissues.ts +13 -0
- package/src/models/operations/listauditrisks.ts +71 -0
- package/src/models/operations/listcodechanges.ts +72 -0
- package/src/models/operations/listpersonnelaccountaccess.ts +67 -0
- package/src/models/operations/listpersonnelgroups.ts +71 -0
- package/src/models/operations/listpersonnelpeople.ts +77 -0
- package/src/models/operations/listrisksnapshots.ts +46 -0
- package/src/models/operations/listvendors.ts +80 -0
- package/src/sdk/audits.ts +307 -1
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A risk assessment snapshot available for an audit.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*
|
|
15
|
+
* Risk snapshots capture the state of an organization's risk register at a
|
|
16
|
+
* point in time. Use the snapshot `id` with the `/audits/{auditId}/risks/{snapshotId}`
|
|
17
|
+
* endpoint to retrieve the risk scenarios within a snapshot.
|
|
18
|
+
*/
|
|
19
|
+
export type RiskSnapshot = {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the risk snapshot.
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The date and time when this risk snapshot was created.
|
|
26
|
+
*/
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const RiskSnapshot$inboundSchema: z.ZodType<
|
|
32
|
+
RiskSnapshot,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
id: z.string(),
|
|
37
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function riskSnapshotFromJSON(
|
|
41
|
+
jsonString: string,
|
|
42
|
+
): SafeParseResult<RiskSnapshot, SDKValidationError> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) => RiskSnapshot$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
+
`Failed to parse 'RiskSnapshot' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const VendorOrderBy = {
|
|
9
|
+
Name: "name",
|
|
10
|
+
InherentRisk: "inherentRisk",
|
|
11
|
+
} as const;
|
|
12
|
+
export type VendorOrderBy = ClosedEnum<typeof VendorOrderBy>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const VendorOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
16
|
+
typeof VendorOrderBy
|
|
17
|
+
> = z.nativeEnum(VendorOrderBy);
|
|
@@ -15,18 +15,26 @@ export * from "./getaudit.js";
|
|
|
15
15
|
export * from "./getframeworkcodes.js";
|
|
16
16
|
export * from "./getinformationrequest.js";
|
|
17
17
|
export * from "./getinformationrequesttestsnapshotevidencedetail.js";
|
|
18
|
+
export * from "./listaccountaccessservices.js";
|
|
18
19
|
export * from "./listauditcomments.js";
|
|
19
20
|
export * from "./listauditcontrols.js";
|
|
20
21
|
export * from "./listauditevidence.js";
|
|
21
22
|
export * from "./listauditevidenceurls.js";
|
|
22
23
|
export * from "./listauditissues.js";
|
|
24
|
+
export * from "./listauditrisks.js";
|
|
23
25
|
export * from "./listaudits.js";
|
|
24
26
|
export * from "./listauditsnapshots.js";
|
|
27
|
+
export * from "./listcodechanges.js";
|
|
25
28
|
export * from "./listcommentsforinformationrequest.js";
|
|
26
29
|
export * from "./listinformationrequestactivity.js";
|
|
27
30
|
export * from "./listinformationrequestevidence.js";
|
|
28
31
|
export * from "./listinformationrequests.js";
|
|
29
32
|
export * from "./listinformationrequestsforcontrol.js";
|
|
33
|
+
export * from "./listpersonnelaccountaccess.js";
|
|
34
|
+
export * from "./listpersonnelgroups.js";
|
|
35
|
+
export * from "./listpersonnelpeople.js";
|
|
36
|
+
export * from "./listrisksnapshots.js";
|
|
37
|
+
export * from "./listvendors.js";
|
|
30
38
|
export * from "./shareinformationrequestlist.js";
|
|
31
39
|
export * from "./updateauditevidence.js";
|
|
32
40
|
export * from "./updatecommentforinformationrequest.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type ListAccountAccessServicesRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The audit ID
|
|
10
|
+
*/
|
|
11
|
+
auditId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of results per page (1-100, default 10)
|
|
14
|
+
*/
|
|
15
|
+
pageSize?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Pagination cursor from previous response
|
|
18
|
+
*/
|
|
19
|
+
pageCursor?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type ListAccountAccessServicesRequest$Outbound = {
|
|
24
|
+
auditId: string;
|
|
25
|
+
pageSize: number;
|
|
26
|
+
pageCursor?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ListAccountAccessServicesRequest$outboundSchema: z.ZodType<
|
|
31
|
+
ListAccountAccessServicesRequest$Outbound,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
ListAccountAccessServicesRequest
|
|
34
|
+
> = z.object({
|
|
35
|
+
auditId: z.string(),
|
|
36
|
+
pageSize: z.number().int().default(10),
|
|
37
|
+
pageCursor: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function listAccountAccessServicesRequestToJSON(
|
|
41
|
+
listAccountAccessServicesRequest: ListAccountAccessServicesRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
ListAccountAccessServicesRequest$outboundSchema.parse(
|
|
45
|
+
listAccountAccessServicesRequest,
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
6
7
|
|
|
7
8
|
export type ListAuditIssuesRequest = {
|
|
8
9
|
/**
|
|
@@ -25,6 +26,14 @@ export type ListAuditIssuesRequest = {
|
|
|
25
26
|
* Filter issues to specific snapshots by snapshot ID
|
|
26
27
|
*/
|
|
27
28
|
snapshotIdMatchesAny?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Field to sort results by. Allowed: "createdAt", "lastModifiedAt". Default: "createdAt"
|
|
31
|
+
*/
|
|
32
|
+
orderBy?: components.IssueSnapshotItemOrderBy | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Sort direction: "asc" or "desc". Default: "desc"
|
|
35
|
+
*/
|
|
36
|
+
orderDirection?: components.OrderDirection | undefined;
|
|
28
37
|
};
|
|
29
38
|
|
|
30
39
|
/** @internal */
|
|
@@ -34,6 +43,8 @@ export type ListAuditIssuesRequest$Outbound = {
|
|
|
34
43
|
pageCursor?: string | undefined;
|
|
35
44
|
search?: string | undefined;
|
|
36
45
|
snapshotIdMatchesAny?: Array<string> | undefined;
|
|
46
|
+
orderBy?: string | undefined;
|
|
47
|
+
orderDirection?: string | undefined;
|
|
37
48
|
};
|
|
38
49
|
|
|
39
50
|
/** @internal */
|
|
@@ -47,6 +58,8 @@ export const ListAuditIssuesRequest$outboundSchema: z.ZodType<
|
|
|
47
58
|
pageCursor: z.string().optional(),
|
|
48
59
|
search: z.string().optional(),
|
|
49
60
|
snapshotIdMatchesAny: z.array(z.string()).optional(),
|
|
61
|
+
orderBy: components.IssueSnapshotItemOrderBy$outboundSchema.optional(),
|
|
62
|
+
orderDirection: components.OrderDirection$outboundSchema.optional(),
|
|
50
63
|
});
|
|
51
64
|
|
|
52
65
|
export function listAuditIssuesRequestToJSON(
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type ListAuditRisksRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The audit ID
|
|
11
|
+
*/
|
|
12
|
+
auditId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The risk assessment snapshot ID
|
|
15
|
+
*/
|
|
16
|
+
snapshotId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum number of results per page (1-100, default 10)
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Pagination cursor from previous response
|
|
23
|
+
*/
|
|
24
|
+
pageCursor?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Search term for filtering by risk scenario description
|
|
27
|
+
*/
|
|
28
|
+
search?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Field to sort results by. Allowed: "riskId", "riskScenario", "inherentRisk", "treatment", "residualRisk", "reviewStatus", "owner", "categories", "ciaCategories", "identified". Default: "identified"
|
|
31
|
+
*/
|
|
32
|
+
orderBy?: components.RiskOrderBy | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Sort direction: "asc" or "desc". Default: "desc"
|
|
35
|
+
*/
|
|
36
|
+
orderDirection?: components.OrderDirection | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type ListAuditRisksRequest$Outbound = {
|
|
41
|
+
auditId: string;
|
|
42
|
+
snapshotId: string;
|
|
43
|
+
pageSize: number;
|
|
44
|
+
pageCursor?: string | undefined;
|
|
45
|
+
search?: string | undefined;
|
|
46
|
+
orderBy?: string | undefined;
|
|
47
|
+
orderDirection?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ListAuditRisksRequest$outboundSchema: z.ZodType<
|
|
52
|
+
ListAuditRisksRequest$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
ListAuditRisksRequest
|
|
55
|
+
> = z.object({
|
|
56
|
+
auditId: z.string(),
|
|
57
|
+
snapshotId: z.string(),
|
|
58
|
+
pageSize: z.number().int().default(10),
|
|
59
|
+
pageCursor: z.string().optional(),
|
|
60
|
+
search: z.string().optional(),
|
|
61
|
+
orderBy: components.RiskOrderBy$outboundSchema.optional(),
|
|
62
|
+
orderDirection: components.OrderDirection$outboundSchema.optional(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function listAuditRisksRequestToJSON(
|
|
66
|
+
listAuditRisksRequest: ListAuditRisksRequest,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
ListAuditRisksRequest$outboundSchema.parse(listAuditRisksRequest),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type ListCodeChangesRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The audit ID
|
|
11
|
+
*/
|
|
12
|
+
auditId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of results per page (1-100, default 10)
|
|
15
|
+
*/
|
|
16
|
+
pageSize?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Pagination cursor from previous response
|
|
19
|
+
*/
|
|
20
|
+
pageCursor?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Search term for filtering by code change title or repository name
|
|
23
|
+
*/
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Filter code changes by version control source (accepted values: github, gitlab, bitbucket, azuredevops)
|
|
27
|
+
*/
|
|
28
|
+
sourcesMatchesAny?: Array<components.ApiCodeChangeSource> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter code changes closed on or after this date (ISO 8601)
|
|
31
|
+
*/
|
|
32
|
+
startDate?: Date | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Filter code changes closed on or before this date (ISO 8601)
|
|
35
|
+
*/
|
|
36
|
+
endDate?: Date | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type ListCodeChangesRequest$Outbound = {
|
|
41
|
+
auditId: string;
|
|
42
|
+
pageSize: number;
|
|
43
|
+
pageCursor?: string | undefined;
|
|
44
|
+
search?: string | undefined;
|
|
45
|
+
sourcesMatchesAny?: Array<string> | undefined;
|
|
46
|
+
startDate?: string | undefined;
|
|
47
|
+
endDate?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ListCodeChangesRequest$outboundSchema: z.ZodType<
|
|
52
|
+
ListCodeChangesRequest$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
ListCodeChangesRequest
|
|
55
|
+
> = z.object({
|
|
56
|
+
auditId: z.string(),
|
|
57
|
+
pageSize: z.number().int().default(10),
|
|
58
|
+
pageCursor: z.string().optional(),
|
|
59
|
+
search: z.string().optional(),
|
|
60
|
+
sourcesMatchesAny: z.array(components.ApiCodeChangeSource$outboundSchema)
|
|
61
|
+
.optional(),
|
|
62
|
+
startDate: z.date().transform(v => v.toISOString()).optional(),
|
|
63
|
+
endDate: z.date().transform(v => v.toISOString()).optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function listCodeChangesRequestToJSON(
|
|
67
|
+
listCodeChangesRequest: ListCodeChangesRequest,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
ListCodeChangesRequest$outboundSchema.parse(listCodeChangesRequest),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type ListPersonnelAccountAccessRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The audit ID
|
|
11
|
+
*/
|
|
12
|
+
auditId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The service ID from the /services endpoint
|
|
15
|
+
*/
|
|
16
|
+
serviceId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum number of results per page (1-100, default 10)
|
|
19
|
+
*/
|
|
20
|
+
pageSize?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Pagination cursor from previous response
|
|
23
|
+
*/
|
|
24
|
+
pageCursor?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Search term for filtering by account name or email
|
|
27
|
+
*/
|
|
28
|
+
search?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter by account status
|
|
31
|
+
*/
|
|
32
|
+
status?: components.AccountAccessStatus | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ListPersonnelAccountAccessRequest$Outbound = {
|
|
37
|
+
auditId: string;
|
|
38
|
+
serviceId: string;
|
|
39
|
+
pageSize: number;
|
|
40
|
+
pageCursor?: string | undefined;
|
|
41
|
+
search?: string | undefined;
|
|
42
|
+
status?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ListPersonnelAccountAccessRequest$outboundSchema: z.ZodType<
|
|
47
|
+
ListPersonnelAccountAccessRequest$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
ListPersonnelAccountAccessRequest
|
|
50
|
+
> = z.object({
|
|
51
|
+
auditId: z.string(),
|
|
52
|
+
serviceId: z.string(),
|
|
53
|
+
pageSize: z.number().int().default(10),
|
|
54
|
+
pageCursor: z.string().optional(),
|
|
55
|
+
search: z.string().optional(),
|
|
56
|
+
status: components.AccountAccessStatus$outboundSchema.optional(),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function listPersonnelAccountAccessRequestToJSON(
|
|
60
|
+
listPersonnelAccountAccessRequest: ListPersonnelAccountAccessRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
ListPersonnelAccountAccessRequest$outboundSchema.parse(
|
|
64
|
+
listPersonnelAccountAccessRequest,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type ListPersonnelGroupsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The audit ID
|
|
11
|
+
*/
|
|
12
|
+
auditId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of results per page (1-100, default 10)
|
|
15
|
+
*/
|
|
16
|
+
pageSize?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Pagination cursor from previous response
|
|
19
|
+
*/
|
|
20
|
+
pageCursor?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Search term for filtering by group name
|
|
23
|
+
*/
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Filter groups by IDP source service names
|
|
27
|
+
*/
|
|
28
|
+
sourcesMatchesAny?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Field to sort results by. Allowed: "name", "members", "source", "tasksLastUpdated", "pointOfContact". Default: "name"
|
|
31
|
+
*/
|
|
32
|
+
orderBy?: components.GroupOrderBy | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Sort direction: "asc" or "desc". Default: "asc"
|
|
35
|
+
*/
|
|
36
|
+
orderDirection?: components.OrderDirection | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type ListPersonnelGroupsRequest$Outbound = {
|
|
41
|
+
auditId: string;
|
|
42
|
+
pageSize: number;
|
|
43
|
+
pageCursor?: string | undefined;
|
|
44
|
+
search?: string | undefined;
|
|
45
|
+
sourcesMatchesAny?: Array<string> | undefined;
|
|
46
|
+
orderBy?: string | undefined;
|
|
47
|
+
orderDirection?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ListPersonnelGroupsRequest$outboundSchema: z.ZodType<
|
|
52
|
+
ListPersonnelGroupsRequest$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
ListPersonnelGroupsRequest
|
|
55
|
+
> = z.object({
|
|
56
|
+
auditId: z.string(),
|
|
57
|
+
pageSize: z.number().int().default(10),
|
|
58
|
+
pageCursor: z.string().optional(),
|
|
59
|
+
search: z.string().optional(),
|
|
60
|
+
sourcesMatchesAny: z.array(z.string()).optional(),
|
|
61
|
+
orderBy: components.GroupOrderBy$outboundSchema.optional(),
|
|
62
|
+
orderDirection: components.OrderDirection$outboundSchema.optional(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function listPersonnelGroupsRequestToJSON(
|
|
66
|
+
listPersonnelGroupsRequest: ListPersonnelGroupsRequest,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
ListPersonnelGroupsRequest$outboundSchema.parse(listPersonnelGroupsRequest),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type ListPersonnelPeopleRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The audit ID
|
|
11
|
+
*/
|
|
12
|
+
auditId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of results per page (1-100, default 10)
|
|
15
|
+
*/
|
|
16
|
+
pageSize?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Pagination cursor from previous response
|
|
19
|
+
*/
|
|
20
|
+
pageCursor?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Search term for filtering by name or email
|
|
23
|
+
*/
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Employment status filter
|
|
27
|
+
*/
|
|
28
|
+
status?: components.PeopleEmploymentStatus | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter people by group IDs
|
|
31
|
+
*/
|
|
32
|
+
groupsMatchesAny?: Array<string> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Field to sort results by. Allowed: "name", "employmentStatus". Default: "name"
|
|
35
|
+
*/
|
|
36
|
+
orderBy?: components.PeopleOrderBy | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Sort direction: "asc" or "desc". Default: "asc"
|
|
39
|
+
*/
|
|
40
|
+
orderDirection?: components.OrderDirection | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type ListPersonnelPeopleRequest$Outbound = {
|
|
45
|
+
auditId: string;
|
|
46
|
+
pageSize: number;
|
|
47
|
+
pageCursor?: string | undefined;
|
|
48
|
+
search?: string | undefined;
|
|
49
|
+
status?: string | undefined;
|
|
50
|
+
groupsMatchesAny?: Array<string> | undefined;
|
|
51
|
+
orderBy?: string | undefined;
|
|
52
|
+
orderDirection?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const ListPersonnelPeopleRequest$outboundSchema: z.ZodType<
|
|
57
|
+
ListPersonnelPeopleRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
ListPersonnelPeopleRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
auditId: z.string(),
|
|
62
|
+
pageSize: z.number().int().default(10),
|
|
63
|
+
pageCursor: z.string().optional(),
|
|
64
|
+
search: z.string().optional(),
|
|
65
|
+
status: components.PeopleEmploymentStatus$outboundSchema.optional(),
|
|
66
|
+
groupsMatchesAny: z.array(z.string()).optional(),
|
|
67
|
+
orderBy: components.PeopleOrderBy$outboundSchema.optional(),
|
|
68
|
+
orderDirection: components.OrderDirection$outboundSchema.optional(),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function listPersonnelPeopleRequestToJSON(
|
|
72
|
+
listPersonnelPeopleRequest: ListPersonnelPeopleRequest,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
ListPersonnelPeopleRequest$outboundSchema.parse(listPersonnelPeopleRequest),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type ListRiskSnapshotsRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The audit ID
|
|
10
|
+
*/
|
|
11
|
+
auditId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of results per page (1-100, default 10)
|
|
14
|
+
*/
|
|
15
|
+
pageSize?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Pagination cursor from previous response
|
|
18
|
+
*/
|
|
19
|
+
pageCursor?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type ListRiskSnapshotsRequest$Outbound = {
|
|
24
|
+
auditId: string;
|
|
25
|
+
pageSize: number;
|
|
26
|
+
pageCursor?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ListRiskSnapshotsRequest$outboundSchema: z.ZodType<
|
|
31
|
+
ListRiskSnapshotsRequest$Outbound,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
ListRiskSnapshotsRequest
|
|
34
|
+
> = z.object({
|
|
35
|
+
auditId: z.string(),
|
|
36
|
+
pageSize: z.number().int().default(10),
|
|
37
|
+
pageCursor: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function listRiskSnapshotsRequestToJSON(
|
|
41
|
+
listRiskSnapshotsRequest: ListRiskSnapshotsRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
ListRiskSnapshotsRequest$outboundSchema.parse(listRiskSnapshotsRequest),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
|
|
8
|
+
export type ListVendorsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The audit ID
|
|
11
|
+
*/
|
|
12
|
+
auditId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of results per page (1-100, default 10)
|
|
15
|
+
*/
|
|
16
|
+
pageSize?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Pagination cursor from previous response
|
|
19
|
+
*/
|
|
20
|
+
pageCursor?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Search term for filtering by vendor name
|
|
23
|
+
*/
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Filter vendors by status values
|
|
27
|
+
*/
|
|
28
|
+
vendorStatusesMatchesAny?: Array<components.AuditVendorStatus> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter vendors by inherent risk level values
|
|
31
|
+
*/
|
|
32
|
+
inherentRiskMatchesAny?: Array<components.AuditVendorRiskLevel> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Field to sort results by. Allowed: "name", "inherentRisk". Default: "name"
|
|
35
|
+
*/
|
|
36
|
+
orderBy?: components.VendorOrderBy | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Sort direction: "asc" or "desc". Default: "asc"
|
|
39
|
+
*/
|
|
40
|
+
orderDirection?: components.OrderDirection | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type ListVendorsRequest$Outbound = {
|
|
45
|
+
auditId: string;
|
|
46
|
+
pageSize: number;
|
|
47
|
+
pageCursor?: string | undefined;
|
|
48
|
+
search?: string | undefined;
|
|
49
|
+
vendorStatusesMatchesAny?: Array<string> | undefined;
|
|
50
|
+
inherentRiskMatchesAny?: Array<string> | undefined;
|
|
51
|
+
orderBy?: string | undefined;
|
|
52
|
+
orderDirection?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const ListVendorsRequest$outboundSchema: z.ZodType<
|
|
57
|
+
ListVendorsRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
ListVendorsRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
auditId: z.string(),
|
|
62
|
+
pageSize: z.number().int().default(10),
|
|
63
|
+
pageCursor: z.string().optional(),
|
|
64
|
+
search: z.string().optional(),
|
|
65
|
+
vendorStatusesMatchesAny: z.array(components.AuditVendorStatus$outboundSchema)
|
|
66
|
+
.optional(),
|
|
67
|
+
inherentRiskMatchesAny: z.array(
|
|
68
|
+
components.AuditVendorRiskLevel$outboundSchema,
|
|
69
|
+
).optional(),
|
|
70
|
+
orderBy: components.VendorOrderBy$outboundSchema.optional(),
|
|
71
|
+
orderDirection: components.OrderDirection$outboundSchema.optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function listVendorsRequestToJSON(
|
|
75
|
+
listVendorsRequest: ListVendorsRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
ListVendorsRequest$outboundSchema.parse(listVendorsRequest),
|
|
79
|
+
);
|
|
80
|
+
}
|