import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CurrencyCode } from "./currencycode.js"; import { CustomField } from "./customfield.js"; import { VendorDecisionStatus } from "./vendordecisionstatus.js"; import { VendorRelationshipSummary } from "./vendorrelationshipsummary.js"; import { VendorRiskLevel } from "./vendorrisklevel.js"; import { VendorStatus } from "./vendorstatus.js"; /** * The vendor's category. * * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible. */ export type Category = { displayName: string; }; /** * The vendor's authentication method. */ export declare const Method: { readonly Auth0: "AUTH_0"; readonly AzureAd: "AZURE_AD"; readonly GoogleWorkspace: "GOOGLE_WORKSPACE"; readonly OAuth: "O_AUTH"; readonly O365: "O365"; readonly Okta: "OKTA"; readonly OneLogin: "ONE_LOGIN"; readonly Owa: "OWA"; readonly Sso: "SSO"; readonly UsernamePassword: "USERNAME_PASSWORD"; readonly Other: "OTHER"; }; /** * The vendor's authentication method. */ export type Method = ClosedEnum; /** * The vendor's authentication details. */ export type AuthDetails = { /** * Minimum number for chacters required for passwords for this vendor. */ passwordMinimumLength: number | null; /** * Whether or not the vendor requires passwords to have a symbol. */ passwordRequiresSymbol: boolean | null; /** * Whether or not the vendor requires passwords to have a number. */ passwordRequiresNumber: boolean | null; /** * Whether or not the vendor requires passwords to have multi factor authentication. */ passwordMFA: boolean | null; /** * The vendor's authentication method. */ method: Method | null; }; /** * The vendor's headquarters. */ export declare const VendorHeadquarters: { readonly Eue: "EUE"; readonly And: "AND"; readonly Are: "ARE"; readonly Afg: "AFG"; readonly Atg: "ATG"; readonly Aia: "AIA"; readonly Alb: "ALB"; readonly Arm: "ARM"; readonly Ago: "AGO"; readonly Ata: "ATA"; readonly Arg: "ARG"; readonly Asm: "ASM"; readonly Aut: "AUT"; readonly Aus: "AUS"; readonly Abw: "ABW"; readonly Ala: "ALA"; readonly Aze: "AZE"; readonly Bih: "BIH"; readonly Brb: "BRB"; readonly Bgd: "BGD"; readonly Bel: "BEL"; readonly Bfa: "BFA"; readonly Bgr: "BGR"; readonly Bhr: "BHR"; readonly Bdi: "BDI"; readonly Ben: "BEN"; readonly Blm: "BLM"; readonly Bmu: "BMU"; readonly Brn: "BRN"; readonly Bol: "BOL"; readonly Bes: "BES"; readonly Bra: "BRA"; readonly Bhs: "BHS"; readonly Btn: "BTN"; readonly Bvt: "BVT"; readonly Bwa: "BWA"; readonly Blr: "BLR"; readonly Blz: "BLZ"; readonly Can: "CAN"; readonly Cck: "CCK"; readonly Cod: "COD"; readonly Caf: "CAF"; readonly Cog: "COG"; readonly Che: "CHE"; readonly Civ: "CIV"; readonly Cok: "COK"; readonly Chl: "CHL"; readonly Cmr: "CMR"; readonly Chn: "CHN"; readonly Col: "COL"; readonly Cri: "CRI"; readonly Cub: "CUB"; readonly Cpv: "CPV"; readonly Cuw: "CUW"; readonly Cxr: "CXR"; readonly Cyp: "CYP"; readonly Cze: "CZE"; readonly Deu: "DEU"; readonly Dji: "DJI"; readonly Dnk: "DNK"; readonly Dma: "DMA"; readonly Dom: "DOM"; readonly Dza: "DZA"; readonly Ecu: "ECU"; readonly Est: "EST"; readonly Egy: "EGY"; readonly Esh: "ESH"; readonly Eri: "ERI"; readonly Esp: "ESP"; readonly Eth: "ETH"; readonly Fin: "FIN"; readonly Fji: "FJI"; readonly Flk: "FLK"; readonly Fsm: "FSM"; readonly Fro: "FRO"; readonly Fra: "FRA"; readonly Gab: "GAB"; readonly Eng: "ENG"; readonly Sct: "SCT"; readonly Gbr: "GBR"; readonly Wal: "WAL"; readonly Nir: "NIR"; readonly Grd: "GRD"; readonly Geo: "GEO"; readonly Guf: "GUF"; readonly Ggy: "GGY"; readonly Gha: "GHA"; readonly Gib: "GIB"; readonly Grl: "GRL"; readonly Gmb: "GMB"; readonly Gin: "GIN"; readonly Glp: "GLP"; readonly Gnq: "GNQ"; readonly Grc: "GRC"; readonly Sgs: "SGS"; readonly Gtm: "GTM"; readonly Gum: "GUM"; readonly Gnb: "GNB"; readonly Guy: "GUY"; readonly Hkg: "HKG"; readonly Hmd: "HMD"; readonly Hnd: "HND"; readonly Hrv: "HRV"; readonly Hti: "HTI"; readonly Hun: "HUN"; readonly Idn: "IDN"; readonly Irl: "IRL"; readonly Isr: "ISR"; readonly Imn: "IMN"; readonly Ind: "IND"; readonly Iot: "IOT"; readonly Irq: "IRQ"; readonly Irn: "IRN"; readonly Isl: "ISL"; readonly Ita: "ITA"; readonly Jey: "JEY"; readonly Jam: "JAM"; readonly Jor: "JOR"; readonly Jpn: "JPN"; readonly Ken: "KEN"; readonly Kgz: "KGZ"; readonly Khm: "KHM"; readonly Kir: "KIR"; readonly Com: "COM"; readonly Kna: "KNA"; readonly Prk: "PRK"; readonly Kor: "KOR"; readonly Kwt: "KWT"; readonly Cym: "CYM"; readonly Kaz: "KAZ"; readonly Lao: "LAO"; readonly Lbn: "LBN"; readonly Lca: "LCA"; readonly Lie: "LIE"; readonly Lka: "LKA"; readonly Lbr: "LBR"; readonly Lso: "LSO"; readonly Ltu: "LTU"; readonly Lux: "LUX"; readonly Lva: "LVA"; readonly Lby: "LBY"; readonly Mar: "MAR"; readonly Mco: "MCO"; readonly Mda: "MDA"; readonly Mne: "MNE"; readonly Maf: "MAF"; readonly Mdg: "MDG"; readonly Mhl: "MHL"; readonly Mkd: "MKD"; readonly Mli: "MLI"; readonly Mmr: "MMR"; readonly Mng: "MNG"; readonly Mac: "MAC"; readonly Mnp: "MNP"; readonly Mtq: "MTQ"; readonly Mrt: "MRT"; readonly Msr: "MSR"; readonly Mlt: "MLT"; readonly Mus: "MUS"; readonly Mdv: "MDV"; readonly Mwi: "MWI"; readonly Mex: "MEX"; readonly Mys: "MYS"; readonly Moz: "MOZ"; readonly Nam: "NAM"; readonly Ncl: "NCL"; readonly Ner: "NER"; readonly Nfk: "NFK"; readonly Nga: "NGA"; readonly Nic: "NIC"; readonly Nld: "NLD"; readonly Nor: "NOR"; readonly Npl: "NPL"; readonly Nru: "NRU"; readonly Niu: "NIU"; readonly Nzl: "NZL"; readonly Omn: "OMN"; readonly Pan: "PAN"; readonly Per: "PER"; readonly Pyf: "PYF"; readonly Png: "PNG"; readonly Phl: "PHL"; readonly Pak: "PAK"; readonly Pol: "POL"; readonly Spm: "SPM"; readonly Pcn: "PCN"; readonly Pri: "PRI"; readonly Pse: "PSE"; readonly Prt: "PRT"; readonly Plw: "PLW"; readonly Pry: "PRY"; readonly Qat: "QAT"; readonly Reu: "REU"; readonly Rou: "ROU"; readonly Srb: "SRB"; readonly Rus: "RUS"; readonly Rwa: "RWA"; readonly Sau: "SAU"; readonly Slb: "SLB"; readonly Syc: "SYC"; readonly Sdn: "SDN"; readonly Swe: "SWE"; readonly Sgp: "SGP"; readonly Shn: "SHN"; readonly Svn: "SVN"; readonly Sjm: "SJM"; readonly Svk: "SVK"; readonly Sle: "SLE"; readonly Smr: "SMR"; readonly Sen: "SEN"; readonly Som: "SOM"; readonly Sur: "SUR"; readonly Ssd: "SSD"; readonly Stp: "STP"; readonly Slv: "SLV"; readonly Sxm: "SXM"; readonly Syr: "SYR"; readonly Swz: "SWZ"; readonly Tca: "TCA"; readonly Tcd: "TCD"; readonly Atf: "ATF"; readonly Tgo: "TGO"; readonly Tha: "THA"; readonly Tjk: "TJK"; readonly Tkl: "TKL"; readonly Tls: "TLS"; readonly Tkm: "TKM"; readonly Tun: "TUN"; readonly Ton: "TON"; readonly Tur: "TUR"; readonly Tto: "TTO"; readonly Tuv: "TUV"; readonly Twn: "TWN"; readonly Tza: "TZA"; readonly Ukr: "UKR"; readonly Uga: "UGA"; readonly Umi: "UMI"; readonly Usa: "USA"; readonly Ury: "URY"; readonly Uzb: "UZB"; readonly Vat: "VAT"; readonly Vct: "VCT"; readonly Ven: "VEN"; readonly Vgb: "VGB"; readonly Vir: "VIR"; readonly Vnm: "VNM"; readonly Vut: "VUT"; readonly Wlf: "WLF"; readonly Wsm: "WSM"; readonly Yem: "YEM"; readonly Myt: "MYT"; readonly Zaf: "ZAF"; readonly Zmb: "ZMB"; readonly Zwe: "ZWE"; }; /** * The vendor's headquarters. */ export type VendorHeadquarters = ClosedEnum; /** * The contract amount for the vendor. */ export type ContractAmount = { /** * The amount of the contract. */ amount: number; currency: CurrencyCode; }; /** * The vendor's latest decision status. Null means no decision has been made. */ export type LatestDecision = { status: VendorDecisionStatus; lastUpdatedAt: Date; }; /** * The task tracker procurement request associated with this vendor (if linked). */ export type LinkedTaskTrackerTaskProcurementRequest = { url: string; service: string; }; /** * The parent vendor of this engagement, or null when there is no accessible parent. */ export type ParentVendor = { /** * The vendor's unique ID. */ id: string; /** * The vendor's display name. */ name: string; /** * The current state of a vendor: * * @remarks * - MANAGED: The vendor is actively managed. * - ARCHIVED: The vendor has been archived * - IN_PROCUREMENT: The vendor is in the procurement process */ status: VendorStatus; /** * The vendor's website URL, or null when none is set. */ websiteUrl: string | null; }; export type Vendor = { /** * The vendor's unique ID. */ id: string; /** * The vendor's display name. */ name: string; /** * The vendor's website URL. */ websiteUrl: string | null; /** * The vendor's external account manager name. */ accountManagerName: string | null; /** * The vendor's external account manager email. */ accountManagerEmail: string | null; /** * Services provided by the vendor. */ servicesProvided: string | null; /** * Any additional notes about the vendor */ additionalNotes: string | null; /** * The vendor's security owner's Vanta user ID. */ securityOwnerUserId: string | null; /** * The vendor's business owner's Vanta user ID. */ businessOwnerUserId: string | null; /** * The date the contract with the vendor began. */ contractStartDate: Date | null; /** * The date the contract with the vendor is up for renewal. */ contractRenewalDate: Date | null; /** * The date the contract with the vendor was terminated. */ contractTerminationDate: Date | null; /** * The next due date for a security review. */ nextSecurityReviewDueDate: Date | null; /** * The most recent date a security review was completed. */ lastSecurityReviewCompletionDate: Date | null; /** * Whether or not auditors can view this vendor. */ isVisibleToAuditors: boolean | null; /** * Whether or not the vendor's risk is automatically scored. */ isRiskAutoScored: boolean | null; /** * The list of risk attribute IDs the vendor has been assigned to. */ riskAttributeIds: Array; /** * The ID of the vendor's category. */ categoryId: string | null; /** * The vendor's category. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ category: Category | null; /** * The vendor's authentication details. */ authDetails: AuthDetails; /** * The current state of a vendor: * * @remarks * - MANAGED: The vendor is actively managed. * - ARCHIVED: The vendor has been archived * - IN_PROCUREMENT: The vendor is in the procurement process */ status: VendorStatus; /** * The risk level of a vendor: * * @remarks * - CRITICAL: The vendor has a critical security risk * - HIGH: The vendor has a high security risk * - MEDIUM: The vendor has a medium security risk * - LOW: The vendor has a low security risk * - UNSCORED: The vendor has not been given a risk level */ inherentRiskLevel: VendorRiskLevel; /** * The risk level of a vendor: * * @remarks * - CRITICAL: The vendor has a critical security risk * - HIGH: The vendor has a high security risk * - MEDIUM: The vendor has a medium security risk * - LOW: The vendor has a low security risk * - UNSCORED: The vendor has not been given a risk level */ residualRiskLevel: VendorRiskLevel; /** * The vendor's headquarters. */ vendorHeadquarters: VendorHeadquarters | null; /** * The contract amount for the vendor. */ contractAmount: ContractAmount | null; /** * The vendor's custom fields. */ customFields: Array | null; /** * The vendor's latest decision status. Null means no decision has been made. */ latestDecision: LatestDecision | null; /** * The task tracker procurement request associated with this vendor (if linked). */ linkedTaskTrackerTaskProcurementRequest: LinkedTaskTrackerTaskProcurementRequest | null; /** * A product, service, or subsidiary you use from a vendor. Each engagement * * @remarks * belongs to one parent vendor, has its own risk score and assessments, and * cannot have engagements of its own. Returned engagements are sorted by name. * Empty when there are none. */ engagements?: Array | undefined; /** * The parent vendor of this engagement, or null when there is no accessible parent. */ parentVendor?: ParentVendor | null | undefined; }; /** @internal */ export declare const Category$inboundSchema: z.ZodType; export declare function categoryFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Method$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AuthDetails$inboundSchema: z.ZodType; export declare function authDetailsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const VendorHeadquarters$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ContractAmount$inboundSchema: z.ZodType; export declare function contractAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const LatestDecision$inboundSchema: z.ZodType; export declare function latestDecisionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const LinkedTaskTrackerTaskProcurementRequest$inboundSchema: z.ZodType; export declare function linkedTaskTrackerTaskProcurementRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ParentVendor$inboundSchema: z.ZodType; export declare function parentVendorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Vendor$inboundSchema: z.ZodType; export declare function vendorFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=vendor.d.ts.map