@privy-io/node 0.8.0 → 0.9.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 (108) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/client.d.mts +17 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +17 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +17 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +17 -3
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +21 -1
  17. package/resources/aggregations.d.mts +213 -2
  18. package/resources/aggregations.d.mts.map +1 -1
  19. package/resources/aggregations.d.ts +213 -2
  20. package/resources/aggregations.d.ts.map +1 -1
  21. package/resources/client-auth.d.mts +168 -2
  22. package/resources/client-auth.d.mts.map +1 -1
  23. package/resources/client-auth.d.ts +168 -2
  24. package/resources/client-auth.d.ts.map +1 -1
  25. package/resources/index.d.mts +6 -4
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +6 -4
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js +5 -1
  30. package/resources/index.js.map +1 -1
  31. package/resources/index.mjs +2 -0
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/policies.d.mts +2 -4
  34. package/resources/policies.d.mts.map +1 -1
  35. package/resources/policies.d.ts +2 -4
  36. package/resources/policies.d.ts.map +1 -1
  37. package/resources/users.d.mts +16 -6
  38. package/resources/users.d.mts.map +1 -1
  39. package/resources/users.d.ts +16 -6
  40. package/resources/users.d.ts.map +1 -1
  41. package/resources/wallets/balance.d.mts +10 -5
  42. package/resources/wallets/balance.d.mts.map +1 -1
  43. package/resources/wallets/balance.d.ts +10 -5
  44. package/resources/wallets/balance.d.ts.map +1 -1
  45. package/resources/wallets/balance.js +1 -2
  46. package/resources/wallets/balance.js.map +1 -1
  47. package/resources/wallets/balance.mjs +1 -2
  48. package/resources/wallets/balance.mjs.map +1 -1
  49. package/resources/wallets/index.d.mts +1 -1
  50. package/resources/wallets/index.d.mts.map +1 -1
  51. package/resources/wallets/index.d.ts +1 -1
  52. package/resources/wallets/index.d.ts.map +1 -1
  53. package/resources/wallets/index.js.map +1 -1
  54. package/resources/wallets/index.mjs.map +1 -1
  55. package/resources/wallets/transactions.d.mts +2 -2
  56. package/resources/wallets/transactions.d.mts.map +1 -1
  57. package/resources/wallets/transactions.d.ts +2 -2
  58. package/resources/wallets/transactions.d.ts.map +1 -1
  59. package/resources/wallets/wallets.d.mts +133 -13
  60. package/resources/wallets/wallets.d.mts.map +1 -1
  61. package/resources/wallets/wallets.d.ts +133 -13
  62. package/resources/wallets/wallets.d.ts.map +1 -1
  63. package/resources/wallets/wallets.js.map +1 -1
  64. package/resources/wallets/wallets.mjs.map +1 -1
  65. package/resources/webhooks.d.mts +940 -0
  66. package/resources/webhooks.d.mts.map +1 -0
  67. package/resources/webhooks.d.ts +940 -0
  68. package/resources/webhooks.d.ts.map +1 -0
  69. package/resources/webhooks.js +9 -0
  70. package/resources/webhooks.js.map +1 -0
  71. package/resources/webhooks.mjs +5 -0
  72. package/resources/webhooks.mjs.map +1 -0
  73. package/resources/yield.d.mts +264 -0
  74. package/resources/yield.d.mts.map +1 -0
  75. package/resources/yield.d.ts +264 -0
  76. package/resources/yield.d.ts.map +1 -0
  77. package/resources/yield.js +9 -0
  78. package/resources/yield.js.map +1 -0
  79. package/resources/yield.mjs +5 -0
  80. package/resources/yield.mjs.map +1 -0
  81. package/src/client.ts +179 -9
  82. package/src/internal/parse.ts +6 -0
  83. package/src/resources/aggregations.ts +361 -5
  84. package/src/resources/client-auth.ts +288 -1
  85. package/src/resources/index.ts +79 -3
  86. package/src/resources/policies.ts +2 -4
  87. package/src/resources/users.ts +52 -35
  88. package/src/resources/wallets/balance.ts +15 -5
  89. package/src/resources/wallets/index.ts +6 -2
  90. package/src/resources/wallets/transactions.ts +2 -2
  91. package/src/resources/wallets/wallets.ts +176 -30
  92. package/src/resources/webhooks.ts +1287 -0
  93. package/src/resources/yield.ts +330 -0
  94. package/src/types/x402.d.ts +18 -0
  95. package/src/version.ts +1 -1
  96. package/src/x402.ts +87 -0
  97. package/version.d.mts +1 -1
  98. package/version.d.ts +1 -1
  99. package/version.js +1 -1
  100. package/version.mjs +1 -1
  101. package/x402.d.mts +54 -0
  102. package/x402.d.mts.map +1 -0
  103. package/x402.d.ts +54 -0
  104. package/x402.d.ts.map +1 -0
  105. package/x402.js +75 -0
  106. package/x402.js.map +1 -0
  107. package/x402.mjs +72 -0
  108. package/x402.mjs.map +1 -0
@@ -8,11 +8,7 @@ export class Aggregations extends APIResource {}
8
8
  /**
9
9
  * The RPC method this aggregation applies to.
10
10
  */
11
- export type AggregationMethod =
12
- | 'eth_signTransaction'
13
- | 'eth_signUserOperation'
14
- | 'signTransaction'
15
- | 'signTransactionBytes';
11
+ export type AggregationMethod = 'eth_signTransaction' | 'eth_signUserOperation';
16
12
 
17
13
  /**
18
14
  * The metric configuration for an aggregation, defining what field/field_source to
@@ -486,6 +482,365 @@ export namespace Aggregation {
486
482
  }
487
483
  }
488
484
 
485
+ /**
486
+ * Input for creating an aggregation.
487
+ */
488
+ export interface AggregationInput {
489
+ /**
490
+ * The RPC method this aggregation applies to.
491
+ */
492
+ method: AggregationMethod;
493
+
494
+ /**
495
+ * The metric configuration for an aggregation, defining what field/field_source to
496
+ * measure and the aggregation function to apply.
497
+ */
498
+ metric: AggregationMetric;
499
+
500
+ /**
501
+ * The name of the aggregation.
502
+ */
503
+ name: string;
504
+
505
+ /**
506
+ * The time window configuration for an aggregation.
507
+ */
508
+ window: AggregationWindow;
509
+
510
+ /**
511
+ * Optional conditions to filter events before aggregation.
512
+ */
513
+ conditions?: Array<
514
+ | AggregationInput.UnionMember0
515
+ | AggregationInput.UnionMember1
516
+ | AggregationInput.UnionMember2
517
+ | AggregationInput.UnionMember3
518
+ | AggregationInput.UnionMember4
519
+ | AggregationInput.UnionMember5
520
+ | AggregationInput.UnionMember6
521
+ | AggregationInput.UnionMember7
522
+ | AggregationInput.UnionMember8
523
+ | AggregationInput.UnionMember9
524
+ | AggregationInput.UnionMember10
525
+ | AggregationInput.UnionMember11
526
+ | AggregationInput.UnionMember12
527
+ | AggregationInput.UnionMember13
528
+ >;
529
+
530
+ /**
531
+ * Optional grouping configuration for bucketing metrics.
532
+ */
533
+ group_by?: Array<AggregationGroupBy>;
534
+
535
+ /**
536
+ * The owner of the resource. If you provide this, do not specify an owner_id as it
537
+ * will be generated automatically. When updating a wallet, you can set the owner
538
+ * to null to remove the owner.
539
+ */
540
+ owner?: AggregationInput.PublicKeyOwner | AggregationInput.UserOwner | null;
541
+
542
+ owner_id?: string | null;
543
+ }
544
+
545
+ export namespace AggregationInput {
546
+ export interface UnionMember0 {
547
+ field: 'to' | 'value' | 'chain_id';
548
+
549
+ field_source: 'ethereum_transaction';
550
+
551
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
552
+
553
+ value: string | Array<string>;
554
+ }
555
+
556
+ export interface UnionMember1 {
557
+ abi: Array<UnionMember1.Abi>;
558
+
559
+ field: string;
560
+
561
+ field_source: 'ethereum_calldata';
562
+
563
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
564
+
565
+ value: string | Array<string>;
566
+ }
567
+
568
+ export namespace UnionMember1 {
569
+ export interface Abi {
570
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
571
+
572
+ anonymous?: boolean;
573
+
574
+ inputs?: Array<Abi.Input>;
575
+
576
+ name?: string;
577
+
578
+ outputs?: Array<Abi.Output>;
579
+
580
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
581
+ }
582
+
583
+ export namespace Abi {
584
+ export interface Input {
585
+ type: string;
586
+
587
+ components?: Array<unknown>;
588
+
589
+ indexed?: boolean;
590
+
591
+ internalType?: string;
592
+
593
+ name?: string;
594
+ }
595
+
596
+ export interface Output {
597
+ type: string;
598
+
599
+ components?: Array<unknown>;
600
+
601
+ indexed?: boolean;
602
+
603
+ internalType?: string;
604
+
605
+ name?: string;
606
+ }
607
+ }
608
+ }
609
+
610
+ export interface UnionMember2 {
611
+ field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
612
+
613
+ field_source: 'ethereum_typed_data_domain';
614
+
615
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
616
+
617
+ value: string | Array<string>;
618
+ }
619
+
620
+ export interface UnionMember3 {
621
+ field: string;
622
+
623
+ field_source: 'ethereum_typed_data_message';
624
+
625
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
626
+
627
+ typed_data: UnionMember3.TypedData;
628
+
629
+ value: string | Array<string>;
630
+ }
631
+
632
+ export namespace UnionMember3 {
633
+ export interface TypedData {
634
+ primary_type: string;
635
+
636
+ types: { [key: string]: Array<TypedData.Type> };
637
+ }
638
+
639
+ export namespace TypedData {
640
+ export interface Type {
641
+ name: string;
642
+
643
+ type: string;
644
+ }
645
+ }
646
+ }
647
+
648
+ export interface UnionMember4 {
649
+ field: 'contract';
650
+
651
+ field_source: 'ethereum_7702_authorization';
652
+
653
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
654
+
655
+ value: string | Array<string>;
656
+ }
657
+
658
+ export interface UnionMember5 {
659
+ field: 'programId';
660
+
661
+ field_source: 'solana_program_instruction';
662
+
663
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
664
+
665
+ value: string | Array<string>;
666
+ }
667
+
668
+ export interface UnionMember6 {
669
+ field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
670
+
671
+ field_source: 'solana_system_program_instruction';
672
+
673
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
674
+
675
+ value: string | Array<string>;
676
+ }
677
+
678
+ export interface UnionMember7 {
679
+ field:
680
+ | 'instructionName'
681
+ | 'Transfer.source'
682
+ | 'Transfer.destination'
683
+ | 'Transfer.authority'
684
+ | 'Transfer.amount'
685
+ | 'TransferChecked.source'
686
+ | 'TransferChecked.destination'
687
+ | 'TransferChecked.authority'
688
+ | 'TransferChecked.amount'
689
+ | 'TransferChecked.mint'
690
+ | 'Burn.account'
691
+ | 'Burn.mint'
692
+ | 'Burn.authority'
693
+ | 'Burn.amount'
694
+ | 'MintTo.mint'
695
+ | 'MintTo.account'
696
+ | 'MintTo.authority'
697
+ | 'MintTo.amount'
698
+ | 'CloseAccount.account'
699
+ | 'CloseAccount.destination'
700
+ | 'CloseAccount.authority'
701
+ | 'InitializeAccount3.account'
702
+ | 'InitializeAccount3.mint'
703
+ | 'InitializeAccount3.owner';
704
+
705
+ field_source: 'solana_token_program_instruction';
706
+
707
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
708
+
709
+ value: string | Array<string>;
710
+ }
711
+
712
+ export interface UnionMember8 {
713
+ field:
714
+ | 'TransferContract.to_address'
715
+ | 'TransferContract.amount'
716
+ | 'TriggerSmartContract.contract_address'
717
+ | 'TriggerSmartContract.call_value'
718
+ | 'TriggerSmartContract.token_id'
719
+ | 'TriggerSmartContract.call_token_value';
720
+
721
+ field_source: 'tron_transaction';
722
+
723
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
724
+
725
+ value: string | Array<string>;
726
+ }
727
+
728
+ export interface UnionMember9 {
729
+ field: 'current_unix_timestamp';
730
+
731
+ field_source: 'system';
732
+
733
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
734
+
735
+ value: string | Array<string>;
736
+ }
737
+
738
+ export interface UnionMember10 {
739
+ field: string;
740
+
741
+ field_source: 'reference';
742
+
743
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
744
+
745
+ value: string | Array<string>;
746
+ }
747
+
748
+ export interface UnionMember11 {
749
+ abi: Array<UnionMember11.Abi>;
750
+
751
+ field: string;
752
+
753
+ field_source: 'tron_trigger_smart_contract_data';
754
+
755
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
756
+
757
+ value: string | Array<string>;
758
+ }
759
+
760
+ export namespace UnionMember11 {
761
+ export interface Abi {
762
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
763
+
764
+ anonymous?: boolean;
765
+
766
+ inputs?: Array<Abi.Input>;
767
+
768
+ name?: string;
769
+
770
+ outputs?: Array<Abi.Output>;
771
+
772
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
773
+ }
774
+
775
+ export namespace Abi {
776
+ export interface Input {
777
+ type: string;
778
+
779
+ components?: Array<unknown>;
780
+
781
+ indexed?: boolean;
782
+
783
+ internalType?: string;
784
+
785
+ name?: string;
786
+ }
787
+
788
+ export interface Output {
789
+ type: string;
790
+
791
+ components?: Array<unknown>;
792
+
793
+ indexed?: boolean;
794
+
795
+ internalType?: string;
796
+
797
+ name?: string;
798
+ }
799
+ }
800
+ }
801
+
802
+ export interface UnionMember12 {
803
+ field: 'commandName';
804
+
805
+ field_source: 'sui_transaction_command';
806
+
807
+ operator: 'eq' | 'in';
808
+
809
+ /**
810
+ * SUI transaction commands allowlist for raw_sign endpoint policy evaluation
811
+ */
812
+ value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
813
+ }
814
+
815
+ export interface UnionMember13 {
816
+ field: 'recipient' | 'amount';
817
+
818
+ field_source: 'sui_transfer_objects_command';
819
+
820
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
821
+
822
+ value: string | Array<string>;
823
+ }
824
+
825
+ /**
826
+ * The P-256 public key of the owner of the resource, in base64-encoded DER format.
827
+ * If you provide this, do not specify an owner_id as it will be generated
828
+ * automatically.
829
+ */
830
+ export interface PublicKeyOwner {
831
+ public_key: string;
832
+ }
833
+
834
+ /**
835
+ * The user ID of the owner of the resource. The user must already exist, and this
836
+ * value must start with "did:privy:". If you provide this, do not specify an
837
+ * owner_id as it will be generated automatically.
838
+ */
839
+ export interface UserOwner {
840
+ user_id: string;
841
+ }
842
+ }
843
+
489
844
  export declare namespace Aggregations {
490
845
  export {
491
846
  type AggregationMethod as AggregationMethod,
@@ -493,5 +848,6 @@ export declare namespace Aggregations {
493
848
  type AggregationWindow as AggregationWindow,
494
849
  type AggregationGroupBy as AggregationGroupBy,
495
850
  type Aggregation as Aggregation,
851
+ type AggregationInput as AggregationInput,
496
852
  };
497
853
  }
@@ -34,7 +34,272 @@ export type CustomOAuthProviderID = `custom:${string}`;
34
34
  /**
35
35
  * The ID of an OAuth provider.
36
36
  */
37
- export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
37
+ export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID;
38
+
39
+ /**
40
+ * Valid set of onramp providers
41
+ */
42
+ export type OnrampProvider = 'bridge' | 'bridge-sandbox';
43
+
44
+ /**
45
+ * The request input for getting a native onramp provider customer.
46
+ */
47
+ export interface GetFiatCustomerRequestInput {
48
+ /**
49
+ * Valid set of onramp providers
50
+ */
51
+ provider: OnrampProvider;
52
+ }
53
+
54
+ /**
55
+ * The request input for creating (or updating) a native onramp provider customer.
56
+ */
57
+ export interface CreateOrUpdateFiatCustomerRequestInput {
58
+ has_accepted_terms: boolean;
59
+
60
+ /**
61
+ * Valid set of onramp providers
62
+ */
63
+ provider: OnrampProvider;
64
+ }
65
+
66
+ /**
67
+ * The response for getting a native onramp provider customer.
68
+ */
69
+ export interface BridgeFiatCustomerResponse {
70
+ has_accepted_terms: boolean;
71
+
72
+ provider: 'bridge';
73
+
74
+ status:
75
+ | 'not_found'
76
+ | 'active'
77
+ | 'awaiting_questionnaire'
78
+ | 'awaiting_ubo'
79
+ | 'incomplete'
80
+ | 'not_started'
81
+ | 'offboarded'
82
+ | 'paused'
83
+ | 'rejected'
84
+ | 'under_review';
85
+
86
+ kyc_url?: string;
87
+ }
88
+
89
+ /**
90
+ * The response for getting a native onramp provider customer.
91
+ */
92
+ export interface BridgeSandboxFiatCustomerResponse {
93
+ has_accepted_terms: boolean;
94
+
95
+ provider: 'bridge-sandbox';
96
+
97
+ status:
98
+ | 'not_found'
99
+ | 'active'
100
+ | 'awaiting_questionnaire'
101
+ | 'awaiting_ubo'
102
+ | 'incomplete'
103
+ | 'not_started'
104
+ | 'offboarded'
105
+ | 'paused'
106
+ | 'rejected'
107
+ | 'under_review';
108
+
109
+ kyc_url?: string;
110
+ }
111
+
112
+ /**
113
+ * The response for getting a native onramp provider customer.
114
+ */
115
+ export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFiatCustomerResponse;
116
+
117
+ export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
118
+
119
+ export type BridgeSourceAsset = 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
120
+
121
+ export interface BridgeFiatVirtualAccountSource {
122
+ asset: BridgeSourceAsset;
123
+ }
124
+
125
+ export interface BridgeFiatVirtualAccountDestination {
126
+ address: string;
127
+
128
+ asset: BridgeDestinationAsset;
129
+
130
+ chain: string;
131
+ }
132
+
133
+ /**
134
+ * The request input for creating virtual account.
135
+ */
136
+ export interface BridgeFiatVirtualAccountRequest {
137
+ destination: BridgeFiatVirtualAccountDestination;
138
+
139
+ provider: 'bridge';
140
+
141
+ source: BridgeFiatVirtualAccountSource;
142
+ }
143
+
144
+ /**
145
+ * The request input for creating virtual account.
146
+ */
147
+ export interface BridgeSandboxFiatVirtualAccountRequest {
148
+ destination: BridgeFiatVirtualAccountDestination;
149
+
150
+ provider: 'bridge-sandbox';
151
+
152
+ source: BridgeFiatVirtualAccountSource;
153
+ }
154
+
155
+ /**
156
+ * The request input for creating virtual account.
157
+ */
158
+ export type FiatVirtualAccountRequest =
159
+ | BridgeFiatVirtualAccountRequest
160
+ | BridgeSandboxFiatVirtualAccountRequest;
161
+
162
+ /**
163
+ * The deposit instructions for a virtual account.
164
+ */
165
+ export interface BridgeUsdFiatVirtualAccountDepositInstructions {
166
+ asset: 'usd';
167
+
168
+ bank_account_number: string;
169
+
170
+ bank_address: string;
171
+
172
+ bank_beneficiary_address: string;
173
+
174
+ bank_beneficiary_name: string;
175
+
176
+ bank_name: string;
177
+
178
+ bank_routing_number: string;
179
+
180
+ payment_rails: Array<'ach_push' | 'wire'>;
181
+ }
182
+
183
+ /**
184
+ * The deposit instructions for a virtual account.
185
+ */
186
+ export interface BridgeEurFiatVirtualAccountDepositInstructions {
187
+ account_holder_name: string;
188
+
189
+ asset: 'eur';
190
+
191
+ bank_address: string;
192
+
193
+ bank_name: string;
194
+
195
+ bic: string;
196
+
197
+ iban: string;
198
+
199
+ payment_rails: Array<'sepa'>;
200
+ }
201
+
202
+ /**
203
+ * The deposit instructions for a virtual account.
204
+ */
205
+ export interface BridgeMxnFiatVirtualAccountDepositInstructions {
206
+ account_holder_name: string;
207
+
208
+ asset: 'mxn';
209
+
210
+ bank_address: string;
211
+
212
+ bank_name: string;
213
+
214
+ clabe: string;
215
+
216
+ payment_rails: Array<'spei'>;
217
+ }
218
+
219
+ /**
220
+ * The deposit instructions for a virtual account.
221
+ */
222
+ export interface BridgeBrlFiatVirtualAccountDepositInstructions {
223
+ account_holder_name: string;
224
+
225
+ asset: 'brl';
226
+
227
+ bank_address: string;
228
+
229
+ bank_name: string;
230
+
231
+ br_code: string;
232
+
233
+ payment_rails: Array<'pix'>;
234
+ }
235
+
236
+ /**
237
+ * The deposit instructions for a virtual account.
238
+ */
239
+ export interface BridgeGbpFiatVirtualAccountDepositInstructions {
240
+ account_holder_name: string;
241
+
242
+ account_number: string;
243
+
244
+ asset: 'gbp';
245
+
246
+ bank_address: string;
247
+
248
+ bank_name: string;
249
+
250
+ payment_rails: Array<'faster_payments'>;
251
+
252
+ sort_code: string;
253
+ }
254
+
255
+ /**
256
+ * The deposit instructions for a virtual account.
257
+ */
258
+ export type BridgeFiatVirtualAccountDepositInstructions =
259
+ | BridgeUsdFiatVirtualAccountDepositInstructions
260
+ | BridgeEurFiatVirtualAccountDepositInstructions
261
+ | BridgeMxnFiatVirtualAccountDepositInstructions
262
+ | BridgeBrlFiatVirtualAccountDepositInstructions
263
+ | BridgeGbpFiatVirtualAccountDepositInstructions;
264
+
265
+ /**
266
+ * The response for creating virtual account.
267
+ */
268
+ export interface BridgeFiatVirtualAccountResponse {
269
+ /**
270
+ * The deposit instructions for a virtual account.
271
+ */
272
+ deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
273
+
274
+ destination: BridgeFiatVirtualAccountDestination;
275
+
276
+ provider: 'bridge';
277
+
278
+ status: string;
279
+ }
280
+
281
+ /**
282
+ * The response for creating virtual account.
283
+ */
284
+ export interface BridgeSandboxFiatVirtualAccountResponse {
285
+ /**
286
+ * The deposit instructions for a virtual account.
287
+ */
288
+ deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
289
+
290
+ destination: BridgeFiatVirtualAccountDestination;
291
+
292
+ provider: 'bridge-sandbox';
293
+
294
+ status: string;
295
+ }
296
+
297
+ /**
298
+ * The response for creating virtual account.
299
+ */
300
+ export type FiatVirtualAccountResponse =
301
+ | BridgeFiatVirtualAccountResponse
302
+ | BridgeSandboxFiatVirtualAccountResponse;
38
303
 
39
304
  export declare namespace ClientAuth {
40
305
  export {
@@ -42,5 +307,27 @@ export declare namespace ClientAuth {
42
307
  type PrivyOAuthProviderID as PrivyOAuthProviderID,
43
308
  type CustomOAuthProviderID as CustomOAuthProviderID,
44
309
  type OAuthProviderID as OAuthProviderID,
310
+ type OnrampProvider as OnrampProvider,
311
+ type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput,
312
+ type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
313
+ type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse,
314
+ type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse,
315
+ type FiatCustomerResponse as FiatCustomerResponse,
316
+ type BridgeDestinationAsset as BridgeDestinationAsset,
317
+ type BridgeSourceAsset as BridgeSourceAsset,
318
+ type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource,
319
+ type BridgeFiatVirtualAccountDestination as BridgeFiatVirtualAccountDestination,
320
+ type BridgeFiatVirtualAccountRequest as BridgeFiatVirtualAccountRequest,
321
+ type BridgeSandboxFiatVirtualAccountRequest as BridgeSandboxFiatVirtualAccountRequest,
322
+ type FiatVirtualAccountRequest as FiatVirtualAccountRequest,
323
+ type BridgeUsdFiatVirtualAccountDepositInstructions as BridgeUsdFiatVirtualAccountDepositInstructions,
324
+ type BridgeEurFiatVirtualAccountDepositInstructions as BridgeEurFiatVirtualAccountDepositInstructions,
325
+ type BridgeMxnFiatVirtualAccountDepositInstructions as BridgeMxnFiatVirtualAccountDepositInstructions,
326
+ type BridgeBrlFiatVirtualAccountDepositInstructions as BridgeBrlFiatVirtualAccountDepositInstructions,
327
+ type BridgeGbpFiatVirtualAccountDepositInstructions as BridgeGbpFiatVirtualAccountDepositInstructions,
328
+ type BridgeFiatVirtualAccountDepositInstructions as BridgeFiatVirtualAccountDepositInstructions,
329
+ type BridgeFiatVirtualAccountResponse as BridgeFiatVirtualAccountResponse,
330
+ type BridgeSandboxFiatVirtualAccountResponse as BridgeSandboxFiatVirtualAccountResponse,
331
+ type FiatVirtualAccountResponse as FiatVirtualAccountResponse,
45
332
  };
46
333
  }