@privy-io/api-types 0.22.0 → 0.23.0

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/accounts.d.mts +0 -8
  10. package/resources/accounts.d.mts.map +1 -1
  11. package/resources/accounts.d.ts +0 -8
  12. package/resources/accounts.d.ts.map +1 -1
  13. package/resources/cards.d.mts +4 -0
  14. package/resources/cards.d.mts.map +1 -1
  15. package/resources/cards.d.ts +4 -0
  16. package/resources/cards.d.ts.map +1 -1
  17. package/resources/fiat.d.mts +525 -61
  18. package/resources/fiat.d.mts.map +1 -1
  19. package/resources/fiat.d.ts +525 -61
  20. package/resources/fiat.d.ts.map +1 -1
  21. package/resources/index.d.mts +3 -3
  22. package/resources/index.d.mts.map +1 -1
  23. package/resources/index.d.ts +3 -3
  24. package/resources/index.d.ts.map +1 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/wallet-automations.d.mts +10 -8
  28. package/resources/wallet-automations.d.mts.map +1 -1
  29. package/resources/wallet-automations.d.ts +10 -8
  30. package/resources/wallet-automations.d.ts.map +1 -1
  31. package/resources/wallets/actions.d.mts +7 -0
  32. package/resources/wallets/actions.d.mts.map +1 -1
  33. package/resources/wallets/actions.d.ts +7 -0
  34. package/resources/wallets/actions.d.ts.map +1 -1
  35. package/resources/wallets/index.d.mts +1 -1
  36. package/resources/wallets/index.d.mts.map +1 -1
  37. package/resources/wallets/index.d.ts +1 -1
  38. package/resources/wallets/index.d.ts.map +1 -1
  39. package/resources/wallets/index.js.map +1 -1
  40. package/resources/wallets/index.mjs.map +1 -1
  41. package/resources/wallets/wallets.d.mts +228 -9
  42. package/resources/wallets/wallets.d.mts.map +1 -1
  43. package/resources/wallets/wallets.d.ts +228 -9
  44. package/resources/wallets/wallets.d.ts.map +1 -1
  45. package/resources/wallets/wallets.js.map +1 -1
  46. package/resources/wallets/wallets.mjs.map +1 -1
  47. package/resources/webhooks.d.mts +14 -14
  48. package/resources/webhooks.d.mts.map +1 -1
  49. package/resources/webhooks.d.ts +14 -14
  50. package/resources/webhooks.d.ts.map +1 -1
  51. package/src/client.ts +64 -6
  52. package/src/resources/accounts.ts +0 -10
  53. package/src/resources/cards.ts +5 -0
  54. package/src/resources/fiat.ts +637 -63
  55. package/src/resources/index.ts +32 -3
  56. package/src/resources/wallet-automations.ts +11 -9
  57. package/src/resources/wallets/actions.ts +8 -0
  58. package/src/resources/wallets/index.ts +14 -0
  59. package/src/resources/wallets/wallets.ts +287 -10
  60. package/src/resources/webhooks.ts +15 -15
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.js +1 -1
  65. package/version.mjs +1 -1
@@ -559,6 +559,210 @@ export interface FiatDepositInstructions {
559
559
  */
560
560
  export type FiatPaymentRail = 'sepa' | 'ach_push' | 'wire' | 'fednow' | 'faster_payments';
561
561
 
562
+ /**
563
+ * Primary purpose the business will use the account for. Passthrough to the
564
+ * provider. See the
565
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
566
+ * for accepted values.
567
+ */
568
+ export type KYBAccountPurpose = string;
569
+
570
+ /**
571
+ * A beneficial owner, control person, or signer associated with the business. At
572
+ * least one of has_ownership, has_control, or is_signer must be true, and the
573
+ * business must have at least one control person and one signer.
574
+ */
575
+ export interface KYBAssociatedPerson {
576
+ /**
577
+ * Date of birth in YYYY-MM-DD format. Must be 18 years or older.
578
+ */
579
+ date_of_birth: string;
580
+
581
+ /**
582
+ * Email address.
583
+ */
584
+ email: string;
585
+
586
+ /**
587
+ * Legal first name.
588
+ */
589
+ first_name: string;
590
+
591
+ /**
592
+ * Whether this person is a control person.
593
+ */
594
+ has_control: boolean;
595
+
596
+ /**
597
+ * Whether this person owns 25% or more of the business.
598
+ */
599
+ has_ownership: boolean;
600
+
601
+ /**
602
+ * Identifying documents for this person.
603
+ */
604
+ identifying_information: Array<VerificationDocument>;
605
+
606
+ /**
607
+ * Whether this person is a signer for the business.
608
+ */
609
+ is_signer: boolean;
610
+
611
+ /**
612
+ * Legal last name.
613
+ */
614
+ last_name: string;
615
+
616
+ /**
617
+ * A postal address used in KYC and KYB data submission.
618
+ */
619
+ residential_address: VerificationAddress;
620
+
621
+ /**
622
+ * Supporting documents for this person, such as proof of address.
623
+ */
624
+ documents?: Array<KYBIndividualDocument>;
625
+
626
+ /**
627
+ * Whether this person is a director.
628
+ */
629
+ is_director?: boolean;
630
+
631
+ /**
632
+ * Legal middle name.
633
+ */
634
+ middle_name?: string;
635
+
636
+ /**
637
+ * ISO 3166-1 alpha-3 codes for all nationalities held.
638
+ */
639
+ nationalities?: Array<string>;
640
+
641
+ /**
642
+ * Percentage of the business this person owns.
643
+ */
644
+ ownership_percentage?: number;
645
+
646
+ /**
647
+ * Phone number in E.164 format.
648
+ */
649
+ phone?: string;
650
+
651
+ /**
652
+ * Place of birth for an associated person.
653
+ */
654
+ place_of_birth?: KYBPlaceOfBirth;
655
+
656
+ /**
657
+ * Date the relationship with the business was established, in YYYY-MM-DD format.
658
+ */
659
+ relationship_established_at?: string;
660
+
661
+ /**
662
+ * Job title. Required when has_control is true.
663
+ */
664
+ title?: string;
665
+
666
+ /**
667
+ * Latin-1 transliteration of the first name. Required for non-Latin-1 names.
668
+ */
669
+ transliterated_first_name?: string;
670
+
671
+ /**
672
+ * Latin-1 transliteration of the last name. Required for non-Latin-1 names.
673
+ */
674
+ transliterated_last_name?: string;
675
+
676
+ /**
677
+ * Latin-1 transliteration of the middle name. Required for non-Latin-1 names.
678
+ */
679
+ transliterated_middle_name?: string;
680
+
681
+ /**
682
+ * A postal address used in KYC and KYB data submission.
683
+ */
684
+ transliterated_residential_address?: VerificationAddress;
685
+ }
686
+
687
+ /**
688
+ * A supporting document for business verification.
689
+ */
690
+ export interface KYBBusinessDocument {
691
+ /**
692
+ * Base64-encoded data URI of the document.
693
+ */
694
+ file: string;
695
+
696
+ /**
697
+ * What this document evidences. Supports multiple purposes per file.
698
+ */
699
+ purposes: Array<KYBDocumentPurpose>;
700
+
701
+ /**
702
+ * Document description. Required when "other" is one of the purposes.
703
+ */
704
+ description?: string;
705
+ }
706
+
707
+ /**
708
+ * Legal structure of the business. Passthrough to the provider. See the
709
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
710
+ * for accepted values.
711
+ */
712
+ export type KYBBusinessType = string;
713
+
714
+ /**
715
+ * What a supporting business document evidences. Passthrough to the provider. See
716
+ * the
717
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
718
+ * for accepted values.
719
+ */
720
+ export type KYBDocumentPurpose = string;
721
+
722
+ /**
723
+ * Estimated annual revenue of the business, in USD buckets. Passthrough to the
724
+ * provider. See the
725
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
726
+ * for accepted values.
727
+ */
728
+ export type KYBEstimatedAnnualRevenue = string;
729
+
730
+ /**
731
+ * A high-risk activity the business engages in. Passthrough to the provider. See
732
+ * the
733
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
734
+ * for accepted values.
735
+ */
736
+ export type KYBHighRiskActivity = string;
737
+
738
+ /**
739
+ * A supporting document for an associated person.
740
+ */
741
+ export interface KYBIndividualDocument {
742
+ /**
743
+ * Base64-encoded data URI of the document.
744
+ */
745
+ file: string;
746
+
747
+ /**
748
+ * What this document evidences. Supports multiple purposes per file.
749
+ */
750
+ purposes: Array<KYBIndividualDocumentPurpose>;
751
+
752
+ /**
753
+ * Document description. Required when "other" is one of the purposes.
754
+ */
755
+ description?: string;
756
+ }
757
+
758
+ /**
759
+ * What a supporting document for an associated person evidences. Passthrough to
760
+ * the provider. See the
761
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
762
+ * for accepted values.
763
+ */
764
+ export type KYBIndividualDocumentPurpose = string;
765
+
562
766
  /**
563
767
  * Request body for initiating a hosted KYB flow for an organization.
564
768
  */
@@ -599,6 +803,74 @@ export interface KYBLinksRequestBody {
599
803
  redirect_uri?: string;
600
804
  }
601
805
 
806
+ /**
807
+ * Place of birth for an associated person.
808
+ */
809
+ export interface KYBPlaceOfBirth {
810
+ /**
811
+ * ISO 3166-1 alpha-3 country code.
812
+ */
813
+ country: string;
814
+
815
+ /**
816
+ * City of birth.
817
+ */
818
+ city?: string;
819
+ }
820
+
821
+ /**
822
+ * A public exchange listing for the business.
823
+ */
824
+ export interface KYBPubliclyTradedListing {
825
+ /**
826
+ * ISO 10383 market identifier code of the listing venue.
827
+ */
828
+ market_identifier_code: string;
829
+
830
+ /**
831
+ * ISIN with dashes removed.
832
+ */
833
+ stock_number: string;
834
+
835
+ /**
836
+ * Exchange ticker symbol.
837
+ */
838
+ ticker: string;
839
+ }
840
+
841
+ /**
842
+ * Details of the regulated activity a business is licensed to perform.
843
+ */
844
+ export interface KYBRegulatedActivity {
845
+ /**
846
+ * License number issued by the regulator.
847
+ */
848
+ license_number: string;
849
+
850
+ /**
851
+ * ISO 3166-1 alpha-3 country code of the primary regulator.
852
+ */
853
+ primary_regulatory_authority_country: string;
854
+
855
+ /**
856
+ * Name of the primary regulator.
857
+ */
858
+ primary_regulatory_authority_name: string;
859
+
860
+ /**
861
+ * Description of the regulated activities performed.
862
+ */
863
+ regulated_activities_description: string;
864
+ }
865
+
866
+ /**
867
+ * Primary source of the funds the business will transact with. Passthrough to the
868
+ * provider. See the
869
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
870
+ * for accepted values.
871
+ */
872
+ export type KYBSourceOfFunds = string;
873
+
602
874
  /**
603
875
  * List of KYB status snapshots, one per configured provider/environment.
604
876
  */
@@ -656,74 +928,233 @@ export interface KYBStatusResponse {
656
928
  }
657
929
 
658
930
  /**
659
- * Request body for initiating Terms of Service acceptance for an organization.
931
+ * KYB verification data for headless submission. Fields are individually optional
932
+ * because the provider accepts partial submissions and grants endorsements once
933
+ * enough data has arrived; a partial submission can be completed by calling the
934
+ * endpoint again.
660
935
  */
661
- export interface KYBTosRequestBody {
936
+ export interface KYBSubmitData {
662
937
  /**
663
- * Email address for the organization.
938
+ * Primary purpose the business will use the account for. Passthrough to the
939
+ * provider. See the
940
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
941
+ * for accepted values.
664
942
  */
665
- email: string;
943
+ account_purpose?: KYBAccountPurpose;
666
944
 
667
945
  /**
668
- * KYC/KYB provider identifier.
946
+ * Free-text purpose. Required when account_purpose is "other".
669
947
  */
670
- provider: KyxProvider;
948
+ account_purpose_other?: string;
671
949
 
672
950
  /**
673
- * Legal name of the business.
951
+ * Whether the business moves funds on behalf of third parties.
674
952
  */
675
- business_name?: string;
953
+ acting_as_intermediary?: boolean;
676
954
 
677
955
  /**
678
- * Provider environment (production or sandbox).
956
+ * Beneficial owners, control persons, and signers.
679
957
  */
680
- environment?: KyxEnvironment;
681
- }
958
+ associated_persons?: Array<KYBAssociatedPerson>;
682
959
 
683
- /**
684
- * An identity document for KYC verification.
685
- */
686
- export interface KYCIdentifyingDocument {
687
960
  /**
688
- * ISO 3166-1 alpha-3 issuing country code.
961
+ * Short summary of what the business does.
689
962
  */
690
- issuing_country: string;
963
+ business_description?: string;
691
964
 
692
965
  /**
693
- * Document type identifier.
966
+ * 2022 NAICS codes describing the industries the business operates in.
694
967
  */
695
- type: string;
968
+ business_industry?: Array<string>;
696
969
 
697
970
  /**
698
- * Document description.
971
+ * Registered legal name as filed with government authorities.
699
972
  */
700
- description?: string;
973
+ business_legal_name?: string;
701
974
 
702
975
  /**
703
- * Document expiration date.
976
+ * Public trading name (DBA), if different from the legal name.
704
977
  */
705
- expiration?: string;
978
+ business_trade_name?: string;
706
979
 
707
980
  /**
708
- * Base64-encoded back image.
981
+ * Legal structure of the business. Passthrough to the provider. See the
982
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
983
+ * for accepted values.
709
984
  */
710
- image_back?: string;
985
+ business_type?: KYBBusinessType;
711
986
 
712
987
  /**
713
- * Base64-encoded front image.
988
+ * Description of the AML and sanctions screening controls in place.
714
989
  */
715
- image_front?: string;
990
+ compliance_screening_explanation?: string;
716
991
 
717
992
  /**
718
- * Document number.
993
+ * Whether the business conducts money services.
719
994
  */
720
- number?: string;
995
+ conducts_money_services?: boolean;
996
+
997
+ /**
998
+ * Description of the money services conducted.
999
+ */
1000
+ conducts_money_services_description?: string;
1001
+
1002
+ /**
1003
+ * Whether money services are conducted through the provider. Requires a
1004
+ * flow_of_funds document when true.
1005
+ */
1006
+ conducts_money_services_using_bridge?: boolean;
1007
+
1008
+ /**
1009
+ * Supporting documents for verification.
1010
+ */
1011
+ documents?: Array<KYBBusinessDocument>;
1012
+
1013
+ /**
1014
+ * Primary business email address.
1015
+ */
1016
+ email?: string;
1017
+
1018
+ /**
1019
+ * Estimated annual revenue of the business, in USD buckets. Passthrough to the
1020
+ * provider. See the
1021
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
1022
+ * for accepted values.
1023
+ */
1024
+ estimated_annual_revenue_usd?: KYBEstimatedAnnualRevenue;
1025
+
1026
+ /**
1027
+ * Expected monthly payment volume in USD. Required for high-risk businesses.
1028
+ */
1029
+ expected_monthly_payments_usd?: number;
1030
+
1031
+ /**
1032
+ * Whether the business is tax-registered outside its country of incorporation.
1033
+ */
1034
+ has_foreign_tax_registration?: boolean;
1035
+
1036
+ /**
1037
+ * Whether an intermediate entity owner holds 25% or more of the business.
1038
+ */
1039
+ has_material_intermediary_ownership?: boolean;
1040
+
1041
+ /**
1042
+ * High-risk activities the business engages in.
1043
+ */
1044
+ high_risk_activities?: Array<KYBHighRiskActivity>;
1045
+
1046
+ /**
1047
+ * Explanation of the high-risk activities. Required unless the only value is
1048
+ * "none_of_the_above".
1049
+ */
1050
+ high_risk_activities_explanation?: string;
1051
+
1052
+ /**
1053
+ * Business tax and registration identifiers.
1054
+ */
1055
+ identifying_information?: Array<VerificationDocument>;
1056
+
1057
+ /**
1058
+ * Date of incorporation in YYYY-MM-DD format.
1059
+ */
1060
+ incorporation_date?: string;
1061
+
1062
+ /**
1063
+ * Whether the business is a decentralized autonomous organization.
1064
+ */
1065
+ is_dao?: boolean;
1066
+
1067
+ /**
1068
+ * Whether the business operates in prohibited jurisdictions.
1069
+ */
1070
+ operates_in_prohibited_countries?: boolean;
1071
+
1072
+ /**
1073
+ * Additional websites and social handles.
1074
+ */
1075
+ other_websites?: Array<string>;
1076
+
1077
+ /**
1078
+ * Ownership percentage at which a person is treated as a beneficial owner.
1079
+ */
1080
+ ownership_threshold?: number;
1081
+
1082
+ /**
1083
+ * Business phone number in E.164 format.
1084
+ */
1085
+ phone?: string;
1086
+
1087
+ /**
1088
+ * A postal address used in KYC and KYB data submission.
1089
+ */
1090
+ physical_address?: VerificationAddress;
1091
+
1092
+ /**
1093
+ * Primary website. If omitted, a proof_of_nature_of_business document is required.
1094
+ */
1095
+ primary_website?: string;
1096
+
1097
+ /**
1098
+ * Public exchange listings for the business.
1099
+ */
1100
+ publicly_traded_listings?: Array<KYBPubliclyTradedListing>;
1101
+
1102
+ /**
1103
+ * A postal address used in KYC and KYB data submission.
1104
+ */
1105
+ registered_address?: VerificationAddress;
1106
+
1107
+ /**
1108
+ * Details of the regulated activity a business is licensed to perform.
1109
+ */
1110
+ regulated_activity?: KYBRegulatedActivity;
1111
+
1112
+ /**
1113
+ * Primary source of the funds the business will transact with. Passthrough to the
1114
+ * provider. See the
1115
+ * [Bridge customer API reference](https://apidocs.bridge.xyz/platform/customers/customers/api)
1116
+ * for accepted values.
1117
+ */
1118
+ source_of_funds?: KYBSourceOfFunds;
1119
+
1120
+ /**
1121
+ * Free-text detail on the source of funds. Required for high-risk businesses.
1122
+ */
1123
+ source_of_funds_description?: string;
1124
+
1125
+ /**
1126
+ * Latin-1 transliteration of the legal name. Required for non-Latin-1 names.
1127
+ */
1128
+ transliterated_business_legal_name?: string;
1129
+
1130
+ /**
1131
+ * Latin-1 transliteration of the trade name. Required for non-Latin-1 names.
1132
+ */
1133
+ transliterated_business_trade_name?: string;
1134
+
1135
+ /**
1136
+ * A postal address used in KYC and KYB data submission.
1137
+ */
1138
+ transliterated_physical_address?: VerificationAddress;
1139
+
1140
+ /**
1141
+ * A postal address used in KYC and KYB data submission.
1142
+ */
1143
+ transliterated_registered_address?: VerificationAddress;
721
1144
  }
722
1145
 
723
1146
  /**
724
- * Request body for initiating a hosted KYC flow.
1147
+ * Request body for headless KYB data submission.
725
1148
  */
726
- export interface KYCLinksRequestBody {
1149
+ export interface KYBSubmitRequestBody {
1150
+ /**
1151
+ * KYB verification data for headless submission. Fields are individually optional
1152
+ * because the provider accepts partial submissions and grants endorsements once
1153
+ * enough data has arrived; a partial submission can be completed by calling the
1154
+ * endpoint again.
1155
+ */
1156
+ data: KYBSubmitData;
1157
+
727
1158
  /**
728
1159
  * KYC/KYB provider identifier.
729
1160
  */
@@ -735,12 +1166,7 @@ export interface KYCLinksRequestBody {
735
1166
  client_agreement_id?: string;
736
1167
 
737
1168
  /**
738
- * Email address for the KYC session.
739
- */
740
- email?: string;
741
-
742
- /**
743
- * Endorsements to request during KYC.
1169
+ * Endorsements to request during KYB.
744
1170
  */
745
1171
  endorsements?: Array<KyxEndorsementName>;
746
1172
 
@@ -748,46 +1174,66 @@ export interface KYCLinksRequestBody {
748
1174
  * Provider environment (production or sandbox).
749
1175
  */
750
1176
  environment?: KyxEnvironment;
1177
+ }
751
1178
 
1179
+ /**
1180
+ * Request body for initiating Terms of Service acceptance for an organization.
1181
+ */
1182
+ export interface KYBTosRequestBody {
752
1183
  /**
753
- * URI to redirect the user after completing KYC.
1184
+ * Email address for the organization.
754
1185
  */
755
- redirect_uri?: string;
1186
+ email: string;
1187
+
1188
+ /**
1189
+ * KYC/KYB provider identifier.
1190
+ */
1191
+ provider: KyxProvider;
1192
+
1193
+ /**
1194
+ * Legal name of the business.
1195
+ */
1196
+ business_name?: string;
1197
+
1198
+ /**
1199
+ * Provider environment (production or sandbox).
1200
+ */
1201
+ environment?: KyxEnvironment;
756
1202
  }
757
1203
 
758
1204
  /**
759
- * Residential address for KYC data submission.
1205
+ * Request body for initiating a hosted KYC flow.
760
1206
  */
761
- export interface KYCResidentialAddress {
1207
+ export interface KYCLinksRequestBody {
762
1208
  /**
763
- * City.
1209
+ * KYC/KYB provider identifier.
764
1210
  */
765
- city: string;
1211
+ provider: KyxProvider;
766
1212
 
767
1213
  /**
768
- * ISO 3166-1 alpha-3 country code.
1214
+ * Client-side agreement ID for ToS acceptance.
769
1215
  */
770
- country: string;
1216
+ client_agreement_id?: string;
771
1217
 
772
1218
  /**
773
- * Street address line 1.
1219
+ * Email address for the KYC session.
774
1220
  */
775
- street_line_1: string;
1221
+ email?: string;
776
1222
 
777
1223
  /**
778
- * State or province code.
1224
+ * Endorsements to request during KYC.
779
1225
  */
780
- subdivision: string;
1226
+ endorsements?: Array<KyxEndorsementName>;
781
1227
 
782
1228
  /**
783
- * Postal code.
1229
+ * Provider environment (production or sandbox).
784
1230
  */
785
- postal_code?: string;
1231
+ environment?: KyxEnvironment;
786
1232
 
787
1233
  /**
788
- * Street address line 2.
1234
+ * URI to redirect the user after completing KYC.
789
1235
  */
790
- street_line_2?: string;
1236
+ redirect_uri?: string;
791
1237
  }
792
1238
 
793
1239
  /**
@@ -853,37 +1299,73 @@ export interface KYCSubmitData {
853
1299
  /**
854
1300
  * Date of birth in YYYY-MM-DD format.
855
1301
  */
856
- date_of_birth: string;
1302
+ date_of_birth?: string;
1303
+
1304
+ /**
1305
+ * Email address.
1306
+ */
1307
+ email?: string;
857
1308
 
858
1309
  /**
859
1310
  * Legal first name.
860
1311
  */
861
- first_name: string;
1312
+ first_name?: string;
862
1313
 
863
1314
  /**
864
1315
  * Identifying documents.
865
1316
  */
866
- identifying_information: Array<KYCIdentifyingDocument>;
1317
+ identifying_information?: Array<VerificationDocument>;
867
1318
 
868
1319
  /**
869
1320
  * Legal last name.
870
1321
  */
871
- last_name: string;
1322
+ last_name?: string;
872
1323
 
873
1324
  /**
874
- * Residential address for KYC data submission.
1325
+ * Legal middle name.
875
1326
  */
876
- residential_address: KYCResidentialAddress;
1327
+ middle_name?: string;
877
1328
 
878
1329
  /**
879
- * Email address.
1330
+ * ISO 3166-1 alpha-3 codes for all nationalities held.
880
1331
  */
881
- email?: string;
1332
+ nationalities?: Array<string>;
1333
+
1334
+ /**
1335
+ * Attests the user is a nonresident alien to satisfy identification without a US
1336
+ * tax ID (must be enabled for you).
1337
+ */
1338
+ nonresident_alien_attestation?: boolean;
882
1339
 
883
1340
  /**
884
1341
  * Phone number in E.164 format.
885
1342
  */
886
1343
  phone?: string;
1344
+
1345
+ /**
1346
+ * A postal address used in KYC and KYB data submission.
1347
+ */
1348
+ residential_address?: VerificationAddress;
1349
+
1350
+ /**
1351
+ * Latin-1 transliteration of the first name. Required for non-Latin-1 names.
1352
+ */
1353
+ transliterated_first_name?: string;
1354
+
1355
+ /**
1356
+ * Latin-1 transliteration of the last name. Required for non-Latin-1 names.
1357
+ */
1358
+ transliterated_last_name?: string;
1359
+
1360
+ /**
1361
+ * Latin-1 transliteration of the middle name. Required for non-Latin-1 names.
1362
+ */
1363
+ transliterated_middle_name?: string;
1364
+
1365
+ /**
1366
+ * A postal address used in KYC and KYB data submission.
1367
+ */
1368
+ transliterated_residential_address?: VerificationAddress;
887
1369
  }
888
1370
 
889
1371
  /**
@@ -1325,6 +1807,83 @@ export interface PayoutSource {
1325
1807
  chain: string;
1326
1808
  }
1327
1809
 
1810
+ /**
1811
+ * A postal address used in KYC and KYB data submission.
1812
+ */
1813
+ export interface VerificationAddress {
1814
+ /**
1815
+ * City.
1816
+ */
1817
+ city: string;
1818
+
1819
+ /**
1820
+ * ISO 3166-1 alpha-3 country code.
1821
+ */
1822
+ country: string;
1823
+
1824
+ /**
1825
+ * Street address line 1.
1826
+ */
1827
+ street_line_1: string;
1828
+
1829
+ /**
1830
+ * Postal code. Required for countries that use them.
1831
+ */
1832
+ postal_code?: string;
1833
+
1834
+ /**
1835
+ * Street address line 2.
1836
+ */
1837
+ street_line_2?: string;
1838
+
1839
+ /**
1840
+ * ISO 3166-2 state or province code. Required for US addresses.
1841
+ */
1842
+ subdivision?: string;
1843
+ }
1844
+
1845
+ /**
1846
+ * An identifying document for KYC or KYB verification. Also used for business
1847
+ * identifiers such as tax and registration numbers, for which the image and
1848
+ * expiration fields do not apply.
1849
+ */
1850
+ export interface VerificationDocument {
1851
+ /**
1852
+ * ISO 3166-1 alpha-3 issuing country code.
1853
+ */
1854
+ issuing_country: string;
1855
+
1856
+ /**
1857
+ * Document type identifier.
1858
+ */
1859
+ type: string;
1860
+
1861
+ /**
1862
+ * Document description.
1863
+ */
1864
+ description?: string;
1865
+
1866
+ /**
1867
+ * Document expiration date.
1868
+ */
1869
+ expiration?: string;
1870
+
1871
+ /**
1872
+ * Base64-encoded back image.
1873
+ */
1874
+ image_back?: string;
1875
+
1876
+ /**
1877
+ * Base64-encoded front image.
1878
+ */
1879
+ image_front?: string;
1880
+
1881
+ /**
1882
+ * Document number.
1883
+ */
1884
+ number?: string;
1885
+ }
1886
+
1328
1887
  export declare namespace Fiat {
1329
1888
  export {
1330
1889
  type BridgeCreateExternalFiatAccountRequestBody as BridgeCreateExternalFiatAccountRequestBody,
@@ -1355,13 +1914,26 @@ export declare namespace Fiat {
1355
1914
  type FiatDepositAccountStatus as FiatDepositAccountStatus,
1356
1915
  type FiatDepositInstructions as FiatDepositInstructions,
1357
1916
  type FiatPaymentRail as FiatPaymentRail,
1917
+ type KYBAccountPurpose as KYBAccountPurpose,
1918
+ type KYBAssociatedPerson as KYBAssociatedPerson,
1919
+ type KYBBusinessDocument as KYBBusinessDocument,
1920
+ type KYBBusinessType as KYBBusinessType,
1921
+ type KYBDocumentPurpose as KYBDocumentPurpose,
1922
+ type KYBEstimatedAnnualRevenue as KYBEstimatedAnnualRevenue,
1923
+ type KYBHighRiskActivity as KYBHighRiskActivity,
1924
+ type KYBIndividualDocument as KYBIndividualDocument,
1925
+ type KYBIndividualDocumentPurpose as KYBIndividualDocumentPurpose,
1358
1926
  type KYBLinksRequestBody as KYBLinksRequestBody,
1927
+ type KYBPlaceOfBirth as KYBPlaceOfBirth,
1928
+ type KYBPubliclyTradedListing as KYBPubliclyTradedListing,
1929
+ type KYBRegulatedActivity as KYBRegulatedActivity,
1930
+ type KYBSourceOfFunds as KYBSourceOfFunds,
1359
1931
  type KYBStatusListResponse as KYBStatusListResponse,
1360
1932
  type KYBStatusResponse as KYBStatusResponse,
1933
+ type KYBSubmitData as KYBSubmitData,
1934
+ type KYBSubmitRequestBody as KYBSubmitRequestBody,
1361
1935
  type KYBTosRequestBody as KYBTosRequestBody,
1362
- type KYCIdentifyingDocument as KYCIdentifyingDocument,
1363
1936
  type KYCLinksRequestBody as KYCLinksRequestBody,
1364
- type KYCResidentialAddress as KYCResidentialAddress,
1365
1937
  type KYCStatusListResponse as KYCStatusListResponse,
1366
1938
  type KYCStatusResponse as KYCStatusResponse,
1367
1939
  type KYCSubmitData as KYCSubmitData,
@@ -1396,5 +1968,7 @@ export declare namespace Fiat {
1396
1968
  type OrganizationExternalFiatAccountResponse as OrganizationExternalFiatAccountResponse,
1397
1969
  type PayoutDestination as PayoutDestination,
1398
1970
  type PayoutSource as PayoutSource,
1971
+ type VerificationAddress as VerificationAddress,
1972
+ type VerificationDocument as VerificationDocument,
1399
1973
  };
1400
1974
  }