import {z} from 'zod' export type USISVSellerCompany30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, agreed_terms: {date: string, ip_address: string, name: string, email: string, version: string}, seller_category: string, profile: {urls: Array, mccs: Array, default_holding_currency: 'USD', holding_currencies: Array<'USD'>}, contact_details: {phone: {country_code: 'US', number: string}, email_addresses: {primary: string, pci_compliance_contact: string}}, processing_details: {annual_processing_volume: number, average_transaction_value: number, average_order_fulfillment_time: number, currency: 'USD', target_countries: Array, payments: {ach: {annual_ach_volume: number, average_ach_transaction_size: number, estimated_monthly_credit_volume: number, average_credit_amount: number}}}, company: {legal_name: string, trading_name: string, additional_trading_names?: Array | undefined, business_type: 'private_corporation' | 'limited_liability_corporation' | 'publicly_traded_corporation' | 'limited_partnership' | 'non_profit_entity' | 'government_agency' | 'regulated_financial_institution' | 'sec_registered_entity' | 'cftc_registered_entity', business_registration_number: string, date_of_incorporation: {day: number, month: number, year: number}, tax_details: {tax_classification: 'c_corporation' | 's_corporation' | 'partnership' | 'trust_estate' | 'other', foreign_ownership?: boolean | undefined, exempt_payee_code?: ('1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13') | undefined, fatca_exemption_code?: ('A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M') | undefined}, registered_address: {address_line1: string, address_line2?: string | undefined, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: 'US'}, principal_address: {address_line1: string, address_line2?: string | undefined, city: string, state?: string | undefined, zip?: string | undefined, country: unknown}, representatives: Array<{roles: Array<'ubo' | 'authorised_signatory' | 'control_person'>, ownership_percentage?: number | undefined, company_position?: ('ceo' | 'cfo' | 'coo' | 'managing_member' | 'general_partner' | 'president' | 'vice_president' | 'treasurer' | 'other_senior_management' | 'other_executive_officer' | 'other_non_executive_non_senior') | undefined, individual: {first_name: string, middle_name?: string | undefined, last_name: string, email_address: string, date_of_birth: {day: number, month: number, year: number}, address: {address_line1: string, address_line2?: string | undefined, city: string, state?: string | undefined, zip: string, country: unknown}, place_of_birth: {country: unknown}, citizenships: Array<{type?: string | undefined, country: unknown}>, national_id_type: 'ssn' | 'itin' | 'passport' | 'driving_license' | 'national_id_card' | 'residence_permit' | 'other', national_id_number: string, phone: {country_code: unknown, number: string}}, documents?: ({identity_verification?: ({type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}) | undefined, certified_authorised_signatory?: {type: 'power_of_attorney', front: string} | undefined}) | undefined}>}, documents?: ({tax_verification?: {type: 'ein_letter', front: string} | undefined, company_verification?: {type: 'incorporation_document', front: string} | undefined, articles_of_association?: ({type: 'memorandum_of_association' | 'articles_of_association', front: string}) | undefined, shareholder_structure?: {type: 'certified_shareholder_structure', front: string} | undefined, proof_of_legality?: {type: 'proof_of_legality', front: string} | undefined, proof_of_principal_address?: {type: 'proof_of_address', front: string} | undefined, financial_statements?: {type: 'financial_statements', front: string} | undefined}) | undefined}; export type USISVSellerSoleTrader30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, agreed_terms: {date: string, ip_address: string, name: string, email: string, version: string}, seller_category: string, profile: {urls: Array, mccs: Array, default_holding_currency: 'USD', holding_currencies: Array<'USD'>}, contact_details: {phone: {country_code: 'US', number: string}, email_addresses: {primary: string, pci_compliance_contact: string}}, processing_details: {annual_processing_volume: number, average_transaction_value: number, average_order_fulfillment_time: number, currency: 'USD', target_countries: Array, payments: {ach: {annual_ach_volume: number, average_ach_transaction_size: number, estimated_monthly_credit_volume: number, average_credit_amount: number}}}, company: {is_registered_company: false, trading_name: string, additional_trading_names?: Array | undefined, business_type: 'individual_or_sole_proprietorship', date_of_incorporation: {day: number, month: number, year: number}, principal_address: {address_line1: string, address_line2?: string | undefined, city: string, state?: ('AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM') | undefined, zip: string, country: 'US'}, representatives: Array<{roles: Array<'ubo'>, ownership_percentage?: number | undefined, individual: {first_name: string, middle_name?: string | undefined, last_name: string, email_address: string, date_of_birth: {day: number, month: number, year: number}, address: {address_line1: string, address_line2?: string | undefined, city: string, state?: string | undefined, zip: string, country: unknown}, place_of_birth: {country: unknown}, citizenships: Array<{type?: string | undefined, country: unknown}>, national_id_type: 'ssn' | 'itin' | 'passport' | 'driving_license' | 'national_id_card' | 'residence_permit' | 'other', national_id_number: string, phone: {country_code: unknown, number: string}}, documents?: ({identity_verification?: ({type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}) | undefined}) | undefined}>}, documents?: ({tax_verification?: {type: 'ein_letter', front: string} | undefined, company_verification?: {type: 'incorporation_document', front: string} | undefined, articles_of_association?: ({type: 'memorandum_of_association' | 'articles_of_association', front: string}) | undefined, proof_of_legality?: {type: 'proof_of_legality', front: string} | undefined, proof_of_principal_address?: {type: 'proof_of_address', front: string} | undefined, financial_statements?: {type: 'financial_statements', front: string} | undefined}) | undefined}; export type GBCompanyFull30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies: Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'KWD' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>}, contact_details: {phone?: ({country_code: 'GI' | 'CH' | 'GG' | 'IM' | 'JE' | 'GB', number: string}) | undefined, email_addresses?: {primary: unknown} | undefined, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined, message?: string | undefined}>) | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, date_of_incorporation: {day?: number | undefined, month: number, year: number}, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, individual: {first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}, national_id_number: unknown, email_address: unknown, phone?: ({country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'SX' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'BQ' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW', number: string}) | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, company_position?: ('ceo' | 'cfo' | 'coo' | 'managing_member' | 'general_partner' | 'president' | 'vice_president' | 'treasurer' | 'other_senior_management' | 'other_executive_officer' | 'other_non_executive_non_senior') | undefined, roles: Array<'ubo' | 'authorised_signatory' | 'director' | 'control_person'>, ownership_percentage?: number | undefined, documents?: ({identity_verification?: ({type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}) | undefined, certified_authorised_signatory?: {type: 'power_of_attorney', front: string} | undefined}) | undefined} | {id: unknown, company: {legal_name: string, trading_name: string, registered_address: {address_line1?: string | undefined, address_line2: unknown, city?: string | undefined, state?: string | undefined, zip?: string | undefined, country: unknown}}, ownership_percentage?: number | undefined}>, business_type: 'individual_or_sole_proprietorship' | 'limited_company' | 'public_limited_company' | 'limited_partnership' | 'general_partnership' | 'scottish_limited_partnership' | 'government_agency' | 'non_profit_entity' | 'trust' | 'club_or_society' | 'unincorporated_association'}, processing_details: {settlement_country: unknown, target_countries: Array, annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'GBP'}, documents: {company_verification?: {type: 'incorporation_document', front: string} | undefined, articles_of_association: {type: 'memorandum_of_association' | 'articles_of_association', front: string}, bank_verification?: ({type: 'bank_statement' | 'bank_letter', front: string}) | undefined, shareholder_structure: {type: 'certified_shareholder_structure', front: string}, proof_of_legality?: {type: 'proof_of_legality', front: string} | undefined, proof_of_principal_address?: {type: 'proof_of_address', front: string} | undefined, additional_document1?: {front: string} | undefined, additional_document2?: {front: string} | undefined, additional_document3?: {front: string} | undefined}}; export type EEACompanyFull30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies: Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>}, contact_details?: ({phone?: ({country_code: 'GR' | 'NL' | 'BE' | 'FR' | 'ES' | 'PT' | 'LU' | 'IE' | 'IS' | 'MT' | 'CY' | 'FI' | 'BG' | 'HU' | 'LT' | 'LV' | 'EE' | 'AD' | 'HR' | 'SI' | 'IT' | 'RO' | 'CZ' | 'SK' | 'LI' | 'AT' | 'DK' | 'SE' | 'NO' | 'PL' | 'DE', number: string}) | undefined, email_addresses?: {primary: unknown} | undefined, invitee?: {email: unknown} | undefined}) | undefined, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined, message?: string | undefined}>) | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, date_of_incorporation: {day?: number | undefined, month: number, year: number}, regulatory_licence_number: unknown, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, individual: {first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}, national_id_number: unknown, email_address: unknown, phone?: ({country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'BQ' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW', number: string}) | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, company_position?: ('ceo' | 'cfo' | 'coo' | 'managing_member' | 'general_partner' | 'president' | 'vice_president' | 'treasurer' | 'other_senior_management' | 'other_executive_officer' | 'other_non_executive_non_senior') | undefined, roles: Array<'ubo' | 'legal_representative' | 'authorised_signatory' | 'control_person'>, ownership_percentage?: number | undefined, documents?: ({identity_verification?: ({type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}) | undefined, certified_authorised_signatory?: {type: 'power_of_attorney', front: string} | undefined}) | undefined} | {id: unknown, company: {legal_name: string, trading_name: string, registered_address: {address_line1?: string | undefined, address_line2: unknown, city?: string | undefined, state?: string | undefined, zip?: string | undefined, country: unknown}}, ownership_percentage?: number | undefined}>, business_type: 'individual_or_sole_proprietorship' | 'limited_company' | 'public_limited_company' | 'limited_partnership' | 'general_partnership' | 'government_agency' | 'non_profit_entity' | 'trust' | 'club_or_society' | 'unincorporated_association'}, processing_details: {settlement_country: unknown, target_countries: Array, annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'EUR'}, documents: {company_verification: {type: 'incorporation_document', front: string}, articles_of_association: {type: 'memorandum_of_association' | 'articles_of_association', front: string}, bank_verification: {type: 'bank_statement' | 'bank_letter', front: string}, shareholder_structure: {type: 'certified_shareholder_structure', front: string}, proof_of_legality?: {type: 'proof_of_legality', front: string} | undefined, proof_of_principal_address?: {type: 'proof_of_address', front: string} | undefined, additional_document1?: {front: string} | undefined, additional_document2?: {front: string} | undefined, additional_document3?: {front: string} | undefined}}; export type USCompanyFull30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies: Array<'USD'>}, contact_details: {phone?: {country_code: 'US', number: string} | undefined, email_addresses?: {primary: unknown} | undefined, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined, message?: string | undefined}>) | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, date_of_incorporation: {day?: number | undefined, month: number, year: number}, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, representatives: Array<{id: unknown, individual: {first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}, national_id_number: unknown, email_address: unknown, phone?: ({country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'BQ' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW', number: string}) | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, company_position?: ('ceo' | 'cfo' | 'coo' | 'managing_member' | 'general_partner' | 'president' | 'vice_president' | 'treasurer' | 'other_senior_management' | 'other_executive_officer' | 'other_non_executive_non_senior') | undefined, roles: Array<'ubo' | 'authorised_signatory' | 'control_person'>, ownership_percentage?: number | undefined, documents?: ({identity_verification?: ({type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}) | undefined, certified_authorised_signatory?: {type: 'power_of_attorney', front: string} | undefined}) | undefined}>, business_type: 'individual_or_sole_proprietorship' | 'private_corporation' | 'limited_liability_corporation' | 'publicly_traded_corporation' | 'limited_partnership' | 'non_profit_entity' | 'government_agency' | 'regulated_financial_institution' | 'sec_registered_entity' | 'cftc_registered_entity'}, processing_details: {settlement_country: unknown, target_countries: Array, annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'USD'}, documents: {tax_verification?: {type: 'ein_letter', front: string} | undefined, company_verification?: {type: 'incorporation_document', front: string} | undefined, articles_of_association?: ({type: 'memorandum_of_association' | 'articles_of_association', front: string}) | undefined, bank_verification?: ({type: 'bank_statement' | 'bank_letter' | 'voided_check', front: string}) | undefined, shareholder_structure?: {type: 'certified_shareholder_structure', front: string} | undefined, proof_of_legality?: {type: 'proof_of_legality', front: string} | undefined, proof_of_principal_address?: {type: 'proof_of_address', front: string} | undefined, additional_document1?: {front: string} | undefined, additional_document2?: {front: string} | undefined, additional_document3?: {front: string} | undefined}}; export type GBCompanyFull20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies?: (Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'KWD' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>) | undefined}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, first_name: string, middle_name?: string | undefined, last_name: string, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, date_of_birth: {day: number, month: number, year: number}, phone?: {number: unknown} | undefined, address: {address_line1?: string | undefined, address_line2: unknown, city?: string | undefined, state?: string | undefined, zip?: string | undefined, country: unknown}, roles: Array<'ubo' | 'authorised_signatory'>}>, date_of_incorporation?: ({day?: number | undefined, month: number, year: number}) | undefined}, documents?: {company_verification: {type: 'incorporation_document', front: string}} | undefined}; export type EEACompanyFull20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies?: (Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>) | undefined}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, phone?: {number: unknown} | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, place_of_birth: {country: unknown}, roles: Array<'ubo' | 'legal_representative'>, documents: {identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}}>, financial_details: {annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency?: 'EUR' | undefined}, business_type: 'general_partnership' | 'limited_partnership' | 'public_limited_company' | 'limited_company' | 'professional_association' | 'unincorporated_association' | 'auto_entrepreneur', date_of_incorporation?: ({day?: number | undefined, month: number, year: number}) | undefined}, documents: {company_verification: {type: 'incorporation_document', front: string}, bank_verification?: ({type: 'bank_statement' | 'bank_letter', front: string}) | undefined, financial_verification?: {type: 'financial_statement', front: string} | undefined}}; export type USCompanyFull20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies?: Array<'USD'> | undefined}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, company: {legal_name: string, trading_name: string, business_registration_number: string, principal_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, representatives: Array<{id: unknown, first_name: string, middle_name?: string | undefined, last_name: string, identification: {national_id_number: unknown}, date_of_birth: {day: number, month: number, year: number}, phone?: {number: unknown} | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, roles: Array<'ubo' | 'authorised_signatory' | 'control_person'>}>, business_type: 'private_corporation' | 'publicly_traded_corporation' | 'government_agency' | 'individual_or_sole_proprietorship' | 'limited_liability_corporation' | 'limited_partnership' | 'non_profit_entity' | 'sec_registered_entity' | 'cftc_registered_entity' | 'regulated_financial_institution', financial_details: {annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'USD'}, date_of_incorporation?: ({day?: number | undefined, month: number, year: number}) | undefined}, documents?: ({company_verification?: ({type: 'incorporation_document' | 'articles_of_association', front: string}) | undefined, tax_verification?: {type: 'ein_letter', front: string} | undefined}) | undefined}; export type GBCompanyLite20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, first_name: string, middle_name?: string | undefined, last_name: string, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, date_of_birth?: {day: number, month: number, year: number} | undefined, phone?: {number: unknown} | undefined, address: {address_line1?: string | undefined, address_line2: unknown, city?: string | undefined, state?: string | undefined, zip?: string | undefined, country: unknown}, roles: Array<'ubo' | 'authorised_signatory'>}>}, documents?: ({company_verification?: {type: 'incorporation_document', front: string} | undefined}) | undefined}; export type EEACompanyLite20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, company: {legal_name: string, trading_name: string, business_registration_number: unknown, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, first_name: string, middle_name?: string | undefined, last_name: string, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, date_of_birth?: {day: number, month: number, year: number} | undefined, phone?: {number: unknown} | undefined, address: {address_line1?: string | undefined, address_line2: unknown, city?: string | undefined, state?: string | undefined, zip?: string | undefined, country: unknown}, place_of_birth?: {country: unknown} | undefined, roles?: (Array<'ubo' | 'legal_representative'>) | undefined}>, financial_details?: ({annual_processing_volume?: number | undefined, average_transaction_value?: number | undefined, highest_transaction_value?: number | undefined, currency?: 'EUR' | undefined}) | undefined, business_type?: ('general_partnership' | 'limited_partnership' | 'public_limited_company' | 'limited_company' | 'professional_association' | 'unincorporated_association' | 'auto_entrepreneur') | undefined}, documents?: ({company_verification?: {type: 'incorporation_document', front: string} | undefined, bank_verification?: {type: 'bank_statement', front: string} | undefined, financial_verification?: {type: 'financial_statement', front: string} | undefined}) | undefined}; export type USCompanyLite20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, company: {legal_name: string, trading_name: string, business_registration_number?: string | undefined, principal_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, registered_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, representatives: Array<{first_name: string, middle_name?: string | undefined, last_name: string, identification?: {national_id_number: unknown} | undefined, date_of_birth?: {day: number, month: number, year: number} | undefined, phone?: {number: unknown} | undefined, address: {address_line1?: string | undefined, address_line2: unknown, city?: string | undefined, state?: string | undefined, zip?: string | undefined, country: unknown}, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, roles?: (Array<'ubo' | 'authorised_signatory' | 'control_person'>) | undefined}>, business_type?: ('private_corporation' | 'publicly_traded_corporation' | 'government_agency' | 'individual_or_sole_proprietorship' | 'limited_liability_corporation' | 'limited_partnership' | 'non_profit_entity' | 'sec_registered_entity' | 'cftc_registered_entity' | 'regulated_financial_institution') | undefined, financial_details?: ({annual_processing_volume?: number | undefined, average_transaction_value?: number | undefined, highest_transaction_value?: number | undefined, currency?: 'USD' | undefined}) | undefined}, documents?: ({company_verification?: ({type: 'incorporation_document' | 'articles_of_association', front: string}) | undefined, tax_verification?: {type: 'ein_letter', front: string} | undefined}) | undefined}; export type GBSoleTraderFull30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies: Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'KWD' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>}, contact_details: {phone?: ({country_code: 'GI' | 'CH' | 'GG' | 'IM' | 'JE' | 'GB', number: string}) | undefined, email_addresses?: {primary: unknown} | undefined, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined, message?: string | undefined}>) | undefined, company: {trading_name: string, date_of_incorporation: {day?: number | undefined, month: number, year: number}, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, individual: {first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}, national_id_number: unknown, email_address: unknown, phone?: ({country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'BQ' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW', number: string}) | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, roles: Array<'ubo'>, documents: {identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}}>, business_type: 'individual_or_sole_proprietorship' | 'limited_company' | 'public_limited_company' | 'limited_partnership' | 'general_partnership' | 'scottish_limited_partnership' | 'government_agency' | 'non_profit_entity' | 'trust' | 'club_or_society' | 'unincorporated_association'}, processing_details: {settlement_country: unknown, target_countries: Array, annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'GBP'}, documents: {bank_verification: {type: 'bank_statement' | 'bank_letter', front: string}, additional_document1?: {front: string} | undefined, additional_document2?: {front: string} | undefined, additional_document3?: {front: string} | undefined}}; export type EEASoleTraderFull30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies: Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>}, contact_details: {phone?: ({country_code: 'GR' | 'NL' | 'BE' | 'FR' | 'ES' | 'PT' | 'LU' | 'IE' | 'IS' | 'MT' | 'CY' | 'FI' | 'BG' | 'HU' | 'LT' | 'LV' | 'EE' | 'AD' | 'HR' | 'SI' | 'IT' | 'RO' | 'CZ' | 'SK' | 'LI' | 'AT' | 'DK' | 'SE' | 'NO' | 'PL' | 'DE', number: string}) | undefined, email_addresses?: {primary: unknown} | undefined, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined, message?: string | undefined}>) | undefined, company: {trading_name: string, is_registered_company?: boolean | undefined, business_registration_number?: string | undefined, date_of_incorporation: {day?: number | undefined, month: number, year: number}, principal_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, representatives: Array<{id: unknown, individual: {first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}, national_id_number: unknown, email_address: unknown, phone?: ({country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'BQ' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW', number: string}) | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, roles: Array<'ubo'>, documents: {identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}, proof_of_residential_address: {type: 'proof_of_address', front: string}, proof_of_registration: {type: 'extract_from_trade_register' | 'other', front: string}}}>, business_type: 'individual_or_sole_proprietorship' | 'limited_company' | 'public_limited_company' | 'limited_partnership' | 'general_partnership' | 'government_agency' | 'non_profit_entity' | 'trust' | 'club_or_society' | 'unincorporated_association'}, processing_details: {settlement_country: unknown, target_countries: Array, annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'EUR'}, documents: {bank_verification: {type: 'bank_statement' | 'bank_letter', front: string}, additional_document1?: {front: string} | undefined, additional_document2?: {front: string} | undefined, additional_document3?: {front: string} | undefined}}; export type USSoleTraderFull30 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies: Array<'USD'>}, contact_details: {phone?: {country_code: 'US', number: string} | undefined, email_addresses?: {primary: unknown} | undefined, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined, message?: string | undefined}>) | undefined, company: {trading_name: string, date_of_incorporation: {day?: number | undefined, month: number, year: number}, principal_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, representatives: Array<{id: unknown, individual: {first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}, national_id_number: unknown, email_address: unknown, phone?: ({country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CO' | 'KM' | 'CD' | 'CG' | 'CK' | 'CR' | 'HR' | 'CU' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'BQ' | 'SX' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VA' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW', number: string}) | undefined, address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, roles: Array<'ubo'>, documents: {identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}}>, business_type: 'individual_or_sole_proprietorship' | 'private_corporation' | 'limited_liability_corporation' | 'publicly_traded_corporation' | 'limited_partnership' | 'non_profit_entity' | 'government_agency' | 'regulated_financial_institution' | 'sec_registered_entity' | 'cftc_registered_entity'}, processing_details: {settlement_country: unknown, target_countries: Array, annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'USD'}, documents: {bank_verification: {type: 'bank_statement' | 'bank_letter' | 'voided_check', front: string}, additional_document1?: {front: string} | undefined, additional_document2?: {front: string} | undefined, additional_document3?: {front: string} | undefined}}; export type GBSoleTraderFull20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies?: (Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'KWD' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>) | undefined}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, individual: {trading_name: string, first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined}; export type EEASoleTraderFull20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies?: (Array<'AED' | 'AUD' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'JPY' | 'NOK' | 'NZD' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'USD' | 'ZAR'>) | undefined}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, individual: {trading_name: string, is_registered_company?: boolean | undefined, business_registration_number?: string | undefined, national_tax_id?: string | undefined, first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, place_of_birth: {country: unknown}}, documents: {identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}}; export type USSoleTraderFull20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array, default_holding_currency: unknown, holding_currencies?: Array<'USD'> | undefined}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, individual: {trading_name: string, first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, registered_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, identification: {national_id_number: unknown}, financial_details: {annual_processing_volume: number, average_transaction_value: number, highest_transaction_value: number, currency: 'USD'}}}; export type GBSoleTraderLite20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, individual: {trading_name: string, first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth?: {day: number, month: number, year: number} | undefined, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}}}; export type EEASoleTraderLite20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, individual: {trading_name: string, is_registered_company?: boolean | undefined, business_registration_number?: string | undefined, national_tax_id?: string | undefined, first_name: string, middle_name?: string | undefined, last_name: string, registered_address: {address_line1: string, address_line2: unknown, city: string, state?: string | undefined, zip: string, country: unknown}, date_of_birth: {day: number, month: number, year: number}, place_of_birth: {country: unknown}}}; export type USSoleTraderLite20 = {reference: string, status?: string | undefined, is_draft?: boolean | undefined, profile: {urls: Array, mccs: Array}, contact_details: {phone: {number: unknown}, email_addresses: {primary: unknown}, invitee?: {email: unknown} | undefined}, capabilities?: Record | undefined, requirements_due?: (Array<{field?: string | undefined, reason?: string | undefined}>) | undefined, instruments?: Array> | undefined, documents?: ({identity_verification: {type: 'passport' | 'national_identity_card' | 'driving_license' | 'citizen_card' | 'residence_permit' | 'electoral_id', front: string, back?: string | undefined}}) | undefined, individual: {trading_name: string, first_name: string, middle_name?: string | undefined, last_name: string, date_of_birth: {day: number, month: number, year: number}, registered_address: {address_line1: string, address_line2: unknown, city: string, state: 'AL' | 'AK' | 'AZ' | 'AR' | 'CA' | 'CO' | 'CT' | 'DE' | 'DC' | 'FL' | 'GA' | 'HI' | 'ID' | 'IL' | 'IN' | 'IA' | 'KS' | 'KY' | 'LA' | 'ME' | 'MD' | 'MA' | 'MI' | 'MN' | 'MS' | 'MO' | 'MT' | 'NE' | 'NV' | 'NH' | 'NJ' | 'NM' | 'NY' | 'NC' | 'ND' | 'OH' | 'OK' | 'OR' | 'PA' | 'RI' | 'SC' | 'SD' | 'TN' | 'TX' | 'UT' | 'VT' | 'VA' | 'WA' | 'WV' | 'WI' | 'WY' | 'AS' | 'GU' | 'MP' | 'PR' | 'VI' | 'UM', zip: string, country: unknown}, identification?: {national_id_number: unknown} | undefined, financial_details?: ({annual_processing_volume?: number | undefined, average_transaction_value?: number | undefined, highest_transaction_value?: number | undefined, currency?: 'USD' | undefined}) | undefined}}; export type UpdateApiAccountsEntitiesIdArgs = {body: USISVSellerCompany30 | USISVSellerSoleTrader30 | GBCompanyFull30 | EEACompanyFull30 | USCompanyFull30 | GBCompanyFull20 | EEACompanyFull20 | USCompanyFull20 | GBCompanyLite20 | EEACompanyLite20 | USCompanyLite20 | GBSoleTraderFull30 | EEASoleTraderFull30 | USSoleTraderFull30 | GBSoleTraderFull20 | EEASoleTraderFull20 | USSoleTraderFull20 | GBSoleTraderLite20 | EEASoleTraderLite20 | USSoleTraderLite20}; export type UpdateApiAccountsEntitiesIdOptions = {baseUrl: string, OAuth?: string | undefined, fetch?: typeof fetch | undefined}; export const entityRequirementV3 = z.object({field: z.string().optional(), reason: z.string().optional(), message: z.string().optional()}); export const entityBasicResponseWithLinksV3 = z.object({id: z.string().optional(), reference: z.string().min(1).max(50).optional(), requirements_due: z.array(entityRequirementV3).optional(), _links: z.unknown()}); export const entityCapabilities = z.object({payments: z.object({available: z.boolean().optional(), enabled: z.boolean().optional()}).optional(), payouts: z.object({available: z.boolean().optional(), enabled: z.boolean().optional()}).optional(), issuing: z.object({available: z.boolean().optional(), enabled: z.boolean().optional()}).optional()}); export const entityRequirementV2 = z.object({field: z.string().optional(), reason: z.string().optional()}); export const entityBasicResponseWithLinksV2 = z.object({id: z.string().optional(), reference: z.string().min(1).max(50).optional(), capabilities: entityCapabilities.optional(), requirements_due: z.array(entityRequirementV2).optional(), _links: z.unknown()}); export const updateApiAccountsEntitiesIdResponse = z.union([entityBasicResponseWithLinksV3, entityBasicResponseWithLinksV2]); export const validateResponse = async ( schema: { readonly '~standard': { readonly validate: (value: unknown) => ({ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }) | Promise<{ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }> } }, value: unknown ): Promise => { const result = await schema['~standard'].validate(value) if (result.issues !== undefined) { const detail = result.issues .map(({ message, path }) => path?.length ? `${path.map((segment) => String(typeof segment === 'object' ? segment.key : segment)).join('.')}: ${message}` : message ) .join('; ') throw new Error(`Response does not match the schema: ${detail}`, { cause: { issues: result.issues } }) } return result.value }; /** * Update entity details * * PUT /accounts/entities/{id} */ export const updateApiAccountsEntitiesId = async (args: UpdateApiAccountsEntitiesIdArgs, options: UpdateApiAccountsEntitiesIdOptions) => { const {baseUrl, fetch: fetchFn = fetch, OAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/json") if (OAuth !== undefined) headers.set('authorization', `Bearer ${OAuth}`) const url = `${baseUrl.replace(/\/+$/, '')}/accounts/entities/${encodeURIComponent(String(args.id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return validateResponse(updateApiAccountsEntitiesIdResponse, await res.json()) };