@spritz-finance/api-client 0.18.1 → 0.19.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.
- package/README.md +283 -0
- package/dist/spritz-api-client.cjs +52 -52
- package/dist/spritz-api-client.d.ts +526 -37
- package/dist/spritz-api-client.mjs +68 -68
- package/package.json +1 -1
|
@@ -3983,7 +3983,7 @@ interface operations {
|
|
|
3983
3983
|
/**
|
|
3984
3984
|
* Format: date-time
|
|
3985
3985
|
* @description Creation timestamp
|
|
3986
|
-
* @example 2026-09-
|
|
3986
|
+
* @example 2026-09-23T08:12:57.990Z
|
|
3987
3987
|
*/
|
|
3988
3988
|
createdAt?: string;
|
|
3989
3989
|
}[];
|
|
@@ -4148,7 +4148,7 @@ interface operations {
|
|
|
4148
4148
|
"application/json": {
|
|
4149
4149
|
/**
|
|
4150
4150
|
* @description Destination account ID
|
|
4151
|
-
* @example
|
|
4151
|
+
* @example 6ab38a093ae8393c020db77f
|
|
4152
4152
|
*/
|
|
4153
4153
|
accountId: string;
|
|
4154
4154
|
/**
|
|
@@ -4176,7 +4176,7 @@ interface operations {
|
|
|
4176
4176
|
"application/x-www-form-urlencoded": {
|
|
4177
4177
|
/**
|
|
4178
4178
|
* @description Destination account ID
|
|
4179
|
-
* @example
|
|
4179
|
+
* @example 6ab38a093ae8393c020db77f
|
|
4180
4180
|
*/
|
|
4181
4181
|
accountId: string;
|
|
4182
4182
|
/**
|
|
@@ -4204,7 +4204,7 @@ interface operations {
|
|
|
4204
4204
|
"multipart/form-data": {
|
|
4205
4205
|
/**
|
|
4206
4206
|
* @description Destination account ID
|
|
4207
|
-
* @example
|
|
4207
|
+
* @example 6ab38a093ae8393c020db77f
|
|
4208
4208
|
*/
|
|
4209
4209
|
accountId: string;
|
|
4210
4210
|
/**
|
|
@@ -4251,7 +4251,7 @@ interface operations {
|
|
|
4251
4251
|
/**
|
|
4252
4252
|
* Format: date-time
|
|
4253
4253
|
* @description When the quote was created
|
|
4254
|
-
* @example 2026-09-
|
|
4254
|
+
* @example 2026-09-23T08:12:57.968Z
|
|
4255
4255
|
*/
|
|
4256
4256
|
createdAt: string;
|
|
4257
4257
|
/** @description Exact USD value collected by Spritz and the token route used to fund it. The exact token quantity is returned by the transaction endpoint. */
|
|
@@ -4290,7 +4290,7 @@ interface operations {
|
|
|
4290
4290
|
rail: "ach_standard" | "ach_same_day" | "rtp" | "wire" | "eft" | "sepa" | "faster_payments" | "push_to_card" | "bill_pay" | "card_deposit";
|
|
4291
4291
|
/**
|
|
4292
4292
|
* @description Destination account ID
|
|
4293
|
-
* @example
|
|
4293
|
+
* @example 6ab38a093ae8393c020db780
|
|
4294
4294
|
*/
|
|
4295
4295
|
accountId: string;
|
|
4296
4296
|
/** @description True when this quote does not lock the destination amount. EUR quotes remain estimates; actual settlement is reported by the off-ramp resource. */
|
|
@@ -4547,7 +4547,7 @@ interface operations {
|
|
|
4547
4547
|
/**
|
|
4548
4548
|
* Format: date-time
|
|
4549
4549
|
* @description When the quote was created
|
|
4550
|
-
* @example 2026-09-
|
|
4550
|
+
* @example 2026-09-23T08:12:57.968Z
|
|
4551
4551
|
*/
|
|
4552
4552
|
createdAt: string;
|
|
4553
4553
|
/** @description Exact USD value collected by Spritz and the token route used to fund it. The exact token quantity is returned by the transaction endpoint. */
|
|
@@ -4586,7 +4586,7 @@ interface operations {
|
|
|
4586
4586
|
rail: "ach_standard" | "ach_same_day" | "rtp" | "wire" | "eft" | "sepa" | "faster_payments" | "push_to_card" | "bill_pay" | "card_deposit";
|
|
4587
4587
|
/**
|
|
4588
4588
|
* @description Destination account ID
|
|
4589
|
-
* @example
|
|
4589
|
+
* @example 6ab38a093ae8393c020db780
|
|
4590
4590
|
*/
|
|
4591
4591
|
accountId: string;
|
|
4592
4592
|
/** @description True when this quote does not lock the destination amount. EUR quotes remain estimates; actual settlement is reported by the off-ramp resource. */
|
|
@@ -5182,7 +5182,7 @@ interface operations {
|
|
|
5182
5182
|
/**
|
|
5183
5183
|
* Format: date-time
|
|
5184
5184
|
* @description When the quote was created
|
|
5185
|
-
* @example 2026-09-
|
|
5185
|
+
* @example 2026-09-23T08:12:57.968Z
|
|
5186
5186
|
*/
|
|
5187
5187
|
createdAt: string;
|
|
5188
5188
|
/** @description Exact USD value collected by Spritz and the token route used to fund it. The exact token quantity is returned by the transaction endpoint. */
|
|
@@ -5221,7 +5221,7 @@ interface operations {
|
|
|
5221
5221
|
rail: "ach_standard" | "ach_same_day" | "rtp" | "wire" | "eft" | "sepa" | "faster_payments" | "push_to_card" | "bill_pay" | "card_deposit";
|
|
5222
5222
|
/**
|
|
5223
5223
|
* @description Destination account ID
|
|
5224
|
-
* @example
|
|
5224
|
+
* @example 6ab38a093ae8393c020db780
|
|
5225
5225
|
*/
|
|
5226
5226
|
accountId: string;
|
|
5227
5227
|
/** @description True when this quote does not lock the destination amount. EUR quotes remain estimates; actual settlement is reported by the off-ramp resource. */
|
|
@@ -5524,7 +5524,7 @@ interface operations {
|
|
|
5524
5524
|
currency: string;
|
|
5525
5525
|
/**
|
|
5526
5526
|
* @description Destination account ID
|
|
5527
|
-
* @example
|
|
5527
|
+
* @example 6ab38a093ae8393c020db781
|
|
5528
5528
|
*/
|
|
5529
5529
|
accountId: string;
|
|
5530
5530
|
/**
|
|
@@ -5815,7 +5815,7 @@ interface operations {
|
|
|
5815
5815
|
currency: string;
|
|
5816
5816
|
/**
|
|
5817
5817
|
* @description Destination account ID
|
|
5818
|
-
* @example
|
|
5818
|
+
* @example 6ab38a093ae8393c020db781
|
|
5819
5819
|
*/
|
|
5820
5820
|
accountId: string;
|
|
5821
5821
|
/**
|
|
@@ -6056,7 +6056,7 @@ interface operations {
|
|
|
6056
6056
|
method: "account";
|
|
6057
6057
|
/**
|
|
6058
6058
|
* @description Destination account to reissue the payout to. Omit to reuse the off-ramp's original destination account.
|
|
6059
|
-
* @example
|
|
6059
|
+
* @example 6ab38a093ae8393c020db782
|
|
6060
6060
|
*/
|
|
6061
6061
|
accountId?: string;
|
|
6062
6062
|
};
|
|
@@ -6074,7 +6074,7 @@ interface operations {
|
|
|
6074
6074
|
method: "account";
|
|
6075
6075
|
/**
|
|
6076
6076
|
* @description Destination account to reissue the payout to. Omit to reuse the off-ramp's original destination account.
|
|
6077
|
-
* @example
|
|
6077
|
+
* @example 6ab38a093ae8393c020db782
|
|
6078
6078
|
*/
|
|
6079
6079
|
accountId?: string;
|
|
6080
6080
|
};
|
|
@@ -6092,7 +6092,7 @@ interface operations {
|
|
|
6092
6092
|
method: "account";
|
|
6093
6093
|
/**
|
|
6094
6094
|
* @description Destination account to reissue the payout to. Omit to reuse the off-ramp's original destination account.
|
|
6095
|
-
* @example
|
|
6095
|
+
* @example 6ab38a093ae8393c020db782
|
|
6096
6096
|
*/
|
|
6097
6097
|
accountId?: string;
|
|
6098
6098
|
};
|
|
@@ -6158,7 +6158,7 @@ interface operations {
|
|
|
6158
6158
|
currency: string;
|
|
6159
6159
|
/**
|
|
6160
6160
|
* @description Destination account ID
|
|
6161
|
-
* @example
|
|
6161
|
+
* @example 6ab38a093ae8393c020db781
|
|
6162
6162
|
*/
|
|
6163
6163
|
accountId: string;
|
|
6164
6164
|
/**
|
|
@@ -11723,6 +11723,10 @@ interface operations {
|
|
|
11723
11723
|
requestBody: {
|
|
11724
11724
|
content: {
|
|
11725
11725
|
"application/json": {
|
|
11726
|
+
/** @description Optional partner-provided customer context. Maximum 8192 encoded UTF-8 bytes. Missing, unrecognized or unsupported fields do not block preparation. Do not send credentials or bank data. */
|
|
11727
|
+
customerContext?: {
|
|
11728
|
+
[key: string]: unknown;
|
|
11729
|
+
};
|
|
11726
11730
|
/**
|
|
11727
11731
|
* @description Opaque public funding source identifier
|
|
11728
11732
|
* @example fs_01JV7Q8M4Y8K6N2Z5P3R1T9W0X
|
|
@@ -11766,6 +11770,10 @@ interface operations {
|
|
|
11766
11770
|
};
|
|
11767
11771
|
};
|
|
11768
11772
|
"application/x-www-form-urlencoded": {
|
|
11773
|
+
/** @description Optional partner-provided customer context. Maximum 8192 encoded UTF-8 bytes. Missing, unrecognized or unsupported fields do not block preparation. Do not send credentials or bank data. */
|
|
11774
|
+
customerContext?: {
|
|
11775
|
+
[key: string]: unknown;
|
|
11776
|
+
};
|
|
11769
11777
|
/**
|
|
11770
11778
|
* @description Opaque public funding source identifier
|
|
11771
11779
|
* @example fs_01JV7Q8M4Y8K6N2Z5P3R1T9W0X
|
|
@@ -11809,6 +11817,10 @@ interface operations {
|
|
|
11809
11817
|
};
|
|
11810
11818
|
};
|
|
11811
11819
|
"multipart/form-data": {
|
|
11820
|
+
/** @description Optional partner-provided customer context. Maximum 8192 encoded UTF-8 bytes. Missing, unrecognized or unsupported fields do not block preparation. Do not send credentials or bank data. */
|
|
11821
|
+
customerContext?: {
|
|
11822
|
+
[key: string]: unknown;
|
|
11823
|
+
};
|
|
11812
11824
|
/**
|
|
11813
11825
|
* @description Opaque public funding source identifier
|
|
11814
11826
|
* @example fs_01JV7Q8M4Y8K6N2Z5P3R1T9W0X
|
|
@@ -17917,7 +17929,7 @@ interface operations {
|
|
|
17917
17929
|
data: {
|
|
17918
17930
|
/**
|
|
17919
17931
|
* @description Unique identifier for the debit card
|
|
17920
|
-
* @example
|
|
17932
|
+
* @example 6ab38a093ae8393c020db786
|
|
17921
17933
|
*/
|
|
17922
17934
|
id: string;
|
|
17923
17935
|
/** @enum {string} */
|
|
@@ -18365,7 +18377,7 @@ interface operations {
|
|
|
18365
18377
|
"application/json": {
|
|
18366
18378
|
/**
|
|
18367
18379
|
* @description Unique identifier for the debit card
|
|
18368
|
-
* @example
|
|
18380
|
+
* @example 6ab38a093ae8393c020db786
|
|
18369
18381
|
*/
|
|
18370
18382
|
id: string;
|
|
18371
18383
|
/** @enum {string} */
|
|
@@ -18582,7 +18594,7 @@ interface operations {
|
|
|
18582
18594
|
"application/json": {
|
|
18583
18595
|
/**
|
|
18584
18596
|
* @description Unique identifier for the debit card
|
|
18585
|
-
* @example
|
|
18597
|
+
* @example 6ab38a093ae8393c020db786
|
|
18586
18598
|
*/
|
|
18587
18599
|
id: string;
|
|
18588
18600
|
/** @enum {string} */
|
|
@@ -19103,7 +19115,7 @@ interface operations {
|
|
|
19103
19115
|
"application/json": {
|
|
19104
19116
|
/**
|
|
19105
19117
|
* @description Unique identifier for the debit card
|
|
19106
|
-
* @example
|
|
19118
|
+
* @example 6ab38a093ae8393c020db786
|
|
19107
19119
|
*/
|
|
19108
19120
|
id: string;
|
|
19109
19121
|
/** @enum {string} */
|
|
@@ -20286,7 +20298,7 @@ interface operations {
|
|
|
20286
20298
|
accessToken: string;
|
|
20287
20299
|
/**
|
|
20288
20300
|
* @description The internal ID of the authorized user
|
|
20289
|
-
* @example
|
|
20301
|
+
* @example 6ab38a0a3ae8393c020db78a
|
|
20290
20302
|
*/
|
|
20291
20303
|
userId: string;
|
|
20292
20304
|
/**
|
|
@@ -20302,7 +20314,7 @@ interface operations {
|
|
|
20302
20314
|
/**
|
|
20303
20315
|
* Format: date-time
|
|
20304
20316
|
* @description ISO 8601 timestamp when token expires
|
|
20305
|
-
* @example 2026-09-
|
|
20317
|
+
* @example 2026-09-23T09:12:58.281Z
|
|
20306
20318
|
*/
|
|
20307
20319
|
expiresAt: string;
|
|
20308
20320
|
};
|
|
@@ -20501,7 +20513,7 @@ interface operations {
|
|
|
20501
20513
|
/**
|
|
20502
20514
|
* Format: date-time
|
|
20503
20515
|
* @description ISO 8601 timestamp of when the integrator was created
|
|
20504
|
-
* @example 2026-09-
|
|
20516
|
+
* @example 2026-09-23T08:12:58.280Z
|
|
20505
20517
|
*/
|
|
20506
20518
|
createdAt: string;
|
|
20507
20519
|
};
|
|
@@ -20714,7 +20726,7 @@ interface operations {
|
|
|
20714
20726
|
"application/json": {
|
|
20715
20727
|
/**
|
|
20716
20728
|
* @description The internal ID of the newly created user
|
|
20717
|
-
* @example
|
|
20729
|
+
* @example 6ab38a0a3ae8393c020db78c
|
|
20718
20730
|
*/
|
|
20719
20731
|
userId: string;
|
|
20720
20732
|
/**
|
|
@@ -21058,7 +21070,7 @@ interface operations {
|
|
|
21058
21070
|
depositId: string;
|
|
21059
21071
|
/**
|
|
21060
21072
|
* @description Spritz user ID associated with the returned deposit
|
|
21061
|
-
* @example
|
|
21073
|
+
* @example 6ab38a0a3ae8393c020db789
|
|
21062
21074
|
*/
|
|
21063
21075
|
userId: string;
|
|
21064
21076
|
/**
|
|
@@ -21270,7 +21282,7 @@ interface operations {
|
|
|
21270
21282
|
depositId: string;
|
|
21271
21283
|
/**
|
|
21272
21284
|
* @description Spritz user ID associated with the returned deposit
|
|
21273
|
-
* @example
|
|
21285
|
+
* @example 6ab38a0a3ae8393c020db789
|
|
21274
21286
|
*/
|
|
21275
21287
|
userId: string;
|
|
21276
21288
|
/**
|
|
@@ -21463,7 +21475,7 @@ interface operations {
|
|
|
21463
21475
|
"application/json": {
|
|
21464
21476
|
/**
|
|
21465
21477
|
* @description Unique identifier for the webhook
|
|
21466
|
-
* @example
|
|
21478
|
+
* @example 6ab38a0a3ae8393c020db78b
|
|
21467
21479
|
*/
|
|
21468
21480
|
id: string;
|
|
21469
21481
|
/** @description List of event types this webhook is subscribed to */
|
|
@@ -21694,7 +21706,7 @@ interface operations {
|
|
|
21694
21706
|
"application/json": {
|
|
21695
21707
|
/**
|
|
21696
21708
|
* @description Unique identifier for the webhook
|
|
21697
|
-
* @example
|
|
21709
|
+
* @example 6ab38a0a3ae8393c020db78b
|
|
21698
21710
|
*/
|
|
21699
21711
|
id: string;
|
|
21700
21712
|
/** @description List of event types this webhook is subscribed to */
|
|
@@ -23662,7 +23674,7 @@ interface operations {
|
|
|
23662
23674
|
"application/json": {
|
|
23663
23675
|
/**
|
|
23664
23676
|
* @description Unique identifier for the webhook
|
|
23665
|
-
* @example
|
|
23677
|
+
* @example 6ab38a0a3ae8393c020db78b
|
|
23666
23678
|
*/
|
|
23667
23679
|
id: string;
|
|
23668
23680
|
/** @description List of event types this webhook is subscribed to */
|
|
@@ -24079,7 +24091,7 @@ interface operations {
|
|
|
24079
24091
|
/**
|
|
24080
24092
|
* Format: date-time
|
|
24081
24093
|
* @description ISO 8601 timestamp when the old secret will expire. Only present if a grace period was specified.
|
|
24082
|
-
* @example 2026-09-
|
|
24094
|
+
* @example 2026-09-23T08:17:58.281Z
|
|
24083
24095
|
*/
|
|
24084
24096
|
oldSecretExpiresAt?: string;
|
|
24085
24097
|
};
|
|
@@ -24250,7 +24262,7 @@ interface operations {
|
|
|
24250
24262
|
"application/json": {
|
|
24251
24263
|
/**
|
|
24252
24264
|
* @description Unique identifier for the user
|
|
24253
|
-
* @example
|
|
24265
|
+
* @example 6ab38a0a3ae8393c020db787
|
|
24254
24266
|
*/
|
|
24255
24267
|
id: string;
|
|
24256
24268
|
/**
|
|
@@ -24267,7 +24279,7 @@ interface operations {
|
|
|
24267
24279
|
/**
|
|
24268
24280
|
* Format: date-time
|
|
24269
24281
|
* @description ISO 8601 timestamp of when the user was created
|
|
24270
|
-
* @example 2026-09-
|
|
24282
|
+
* @example 2026-09-23T08:12:58.271Z
|
|
24271
24283
|
*/
|
|
24272
24284
|
signedUpAt: string;
|
|
24273
24285
|
/**
|
|
@@ -24639,7 +24651,7 @@ interface operations {
|
|
|
24639
24651
|
"application/json": {
|
|
24640
24652
|
/**
|
|
24641
24653
|
* @description Unique identifier for the user
|
|
24642
|
-
* @example
|
|
24654
|
+
* @example 6ab38a0a3ae8393c020db787
|
|
24643
24655
|
*/
|
|
24644
24656
|
id: string;
|
|
24645
24657
|
/**
|
|
@@ -24656,7 +24668,7 @@ interface operations {
|
|
|
24656
24668
|
/**
|
|
24657
24669
|
* Format: date-time
|
|
24658
24670
|
* @description ISO 8601 timestamp of when the user was created
|
|
24659
|
-
* @example 2026-09-
|
|
24671
|
+
* @example 2026-09-23T08:12:58.271Z
|
|
24660
24672
|
*/
|
|
24661
24673
|
signedUpAt: string;
|
|
24662
24674
|
/**
|
|
@@ -25128,7 +25140,7 @@ interface operations {
|
|
|
25128
25140
|
"application/json": {
|
|
25129
25141
|
/**
|
|
25130
25142
|
* @description Unique identifier for the user
|
|
25131
|
-
* @example
|
|
25143
|
+
* @example 6ab38a0a3ae8393c020db787
|
|
25132
25144
|
*/
|
|
25133
25145
|
id: string;
|
|
25134
25146
|
/**
|
|
@@ -25145,7 +25157,7 @@ interface operations {
|
|
|
25145
25157
|
/**
|
|
25146
25158
|
* Format: date-time
|
|
25147
25159
|
* @description ISO 8601 timestamp of when the user was created
|
|
25148
|
-
* @example 2026-09-
|
|
25160
|
+
* @example 2026-09-23T08:12:58.271Z
|
|
25149
25161
|
*/
|
|
25150
25162
|
signedUpAt: string;
|
|
25151
25163
|
/**
|
|
@@ -35336,6 +35348,10 @@ interface operations {
|
|
|
35336
35348
|
requestBody: {
|
|
35337
35349
|
content: {
|
|
35338
35350
|
"application/json": {
|
|
35351
|
+
/** @description Optional partner-provided customer context. Maximum 8192 encoded UTF-8 bytes. Missing, unrecognized or unsupported fields do not block preparation. Do not send credentials or bank data. */
|
|
35352
|
+
customerContext?: {
|
|
35353
|
+
[key: string]: unknown;
|
|
35354
|
+
};
|
|
35339
35355
|
/**
|
|
35340
35356
|
* @description Opaque public funding source identifier
|
|
35341
35357
|
* @example fs_01JV7Q8M4Y8K6N2Z5P3R1T9W0X
|
|
@@ -35388,6 +35404,10 @@ interface operations {
|
|
|
35388
35404
|
};
|
|
35389
35405
|
};
|
|
35390
35406
|
"application/x-www-form-urlencoded": {
|
|
35407
|
+
/** @description Optional partner-provided customer context. Maximum 8192 encoded UTF-8 bytes. Missing, unrecognized or unsupported fields do not block preparation. Do not send credentials or bank data. */
|
|
35408
|
+
customerContext?: {
|
|
35409
|
+
[key: string]: unknown;
|
|
35410
|
+
};
|
|
35391
35411
|
/**
|
|
35392
35412
|
* @description Opaque public funding source identifier
|
|
35393
35413
|
* @example fs_01JV7Q8M4Y8K6N2Z5P3R1T9W0X
|
|
@@ -35440,6 +35460,10 @@ interface operations {
|
|
|
35440
35460
|
};
|
|
35441
35461
|
};
|
|
35442
35462
|
"multipart/form-data": {
|
|
35463
|
+
/** @description Optional partner-provided customer context. Maximum 8192 encoded UTF-8 bytes. Missing, unrecognized or unsupported fields do not block preparation. Do not send credentials or bank data. */
|
|
35464
|
+
customerContext?: {
|
|
35465
|
+
[key: string]: unknown;
|
|
35466
|
+
};
|
|
35443
35467
|
/**
|
|
35444
35468
|
* @description Opaque public funding source identifier
|
|
35445
35469
|
* @example fs_01JV7Q8M4Y8K6N2Z5P3R1T9W0X
|
|
@@ -41863,6 +41887,49 @@ declare class BillService {
|
|
|
41863
41887
|
add(institutionId: string, accountNumber: string, type?: BillType): Promise<CreateUSBill_addUSBill>;
|
|
41864
41888
|
}
|
|
41865
41889
|
|
|
41890
|
+
type ComplianceRequirements = PathResponse<'/v1/users/me/compliance/requirements', 'get'>;
|
|
41891
|
+
type ComplianceRequirementField = ComplianceRequirements['fields'][number];
|
|
41892
|
+
type SubmitComplianceRequest = PathRequestBody<'/v1/users/me/compliance', 'post'>;
|
|
41893
|
+
type SubmitComplianceResponse = PathResponse<'/v1/users/me/compliance', 'post'>;
|
|
41894
|
+
declare class ComplianceService {
|
|
41895
|
+
private client;
|
|
41896
|
+
constructor(client: SpritzClient);
|
|
41897
|
+
/**
|
|
41898
|
+
* Fetch the additional compliance fields the authenticated user's region requires
|
|
41899
|
+
* (`GET /v1/users/me/compliance/requirements`).
|
|
41900
|
+
*
|
|
41901
|
+
* Users outside a regulated region get `required: false` with an empty `fields`
|
|
41902
|
+
* array. While `complete` is false, capabilities for the region are gated behind a
|
|
41903
|
+
* `regional_compliance` requirement on `user.getMe()`.
|
|
41904
|
+
*/
|
|
41905
|
+
getRequirements(): Promise<{
|
|
41906
|
+
required: boolean;
|
|
41907
|
+
region: string | null;
|
|
41908
|
+
complete: boolean;
|
|
41909
|
+
deadline: string | null;
|
|
41910
|
+
fields: {
|
|
41911
|
+
field: string;
|
|
41912
|
+
status: "complete" | "missing";
|
|
41913
|
+
}[];
|
|
41914
|
+
}>;
|
|
41915
|
+
/**
|
|
41916
|
+
* Submit the regional compliance fields (`POST /v1/users/me/compliance`).
|
|
41917
|
+
*
|
|
41918
|
+
* All required fields must be supplied together: a partial submission is rejected
|
|
41919
|
+
* with field-level errors on `error.problem.errors` rather than being stored.
|
|
41920
|
+
* `placeOfBirth.country` and `nationalities` are ISO 3166-1 alpha-3 codes, and
|
|
41921
|
+
* `accountPurposeOther` is required when `accountPurpose` is `'other'`.
|
|
41922
|
+
*
|
|
41923
|
+
* `bridgeCustomerUpdated` is false when the user has not accepted the provider's
|
|
41924
|
+
* terms yet. The fields are stored and included when the customer is created, so
|
|
41925
|
+
* this is not a failure.
|
|
41926
|
+
*/
|
|
41927
|
+
submit(input: SubmitComplianceRequest): Promise<{
|
|
41928
|
+
complianceFieldsComplete: boolean;
|
|
41929
|
+
bridgeCustomerUpdated: boolean;
|
|
41930
|
+
}>;
|
|
41931
|
+
}
|
|
41932
|
+
|
|
41866
41933
|
interface CreateDebitCard_createDebitCard {
|
|
41867
41934
|
__typename: 'DebitCard';
|
|
41868
41935
|
id: string;
|
|
@@ -42235,6 +42302,8 @@ type SetAchDebitExposureCapResponse = PathResponse<'/v1/sandbox/ach-debit/exposu
|
|
|
42235
42302
|
type LinkBankAccountRequest = PathRequestBody<'/v1/sandbox/bank-accounts/link', 'post'>;
|
|
42236
42303
|
type LinkBankAccountResponse = PathResponse<'/v1/sandbox/bank-accounts/link', 'post'>;
|
|
42237
42304
|
type DeleteFundingSourceResponse = PathResponse<'/v1/sandbox/funding-sources/{fundingSourceId}', 'delete'>;
|
|
42305
|
+
type SimulateAutoRampDepositRequest = PathRequestBody<'/v1/sandbox/auto-ramp-accounts/{id}/deposit', 'post'>;
|
|
42306
|
+
type SimulateAutoRampDepositResponse = PathResponse<'/v1/sandbox/auto-ramp-accounts/{id}/deposit', 'post'>;
|
|
42238
42307
|
declare class SandboxService {
|
|
42239
42308
|
private client;
|
|
42240
42309
|
constructor(client: SpritzClient);
|
|
@@ -42457,6 +42526,42 @@ declare class SandboxService {
|
|
|
42457
42526
|
id: string;
|
|
42458
42527
|
deleted: true;
|
|
42459
42528
|
}>;
|
|
42529
|
+
/**
|
|
42530
|
+
* Simulate a fiat deposit arriving in an auto-ramp account and settling to crypto
|
|
42531
|
+
* (`POST /v1/sandbox/auto-ramp-accounts/{id}/deposit`). This is the only way to make
|
|
42532
|
+
* an auto-ramp account settle in sandbox. The on-ramp it produces is an ordinary one:
|
|
42533
|
+
* follow `onRampId` with `onrampPayment.get()`.
|
|
42534
|
+
*
|
|
42535
|
+
* `amount` is in the account's own currency. Pass `settle: false` to leave the
|
|
42536
|
+
* deposit at `processing`, then pass the returned `depositId` back to advance that
|
|
42537
|
+
* same on-ramp. `gasFee` sets the network fee the provider reports (defaults to
|
|
42538
|
+
* `0.00`); `exchangeFee` sets the conversion fee, which is otherwise derived from the
|
|
42539
|
+
* provider's live bid/ask spread. Set both for a predictable fee breakdown.
|
|
42540
|
+
*
|
|
42541
|
+
* Only available in sandbox environments — returns 403 in production.
|
|
42542
|
+
*/
|
|
42543
|
+
simulateAutoRampDeposit(accountId: string, input: SimulateAutoRampDepositRequest): Promise<{
|
|
42544
|
+
onRampId: string;
|
|
42545
|
+
depositId: string;
|
|
42546
|
+
status: "awaiting_payment" | "processing" | "partially_delivered" | "completed" | "cancelled" | "failed" | "reversed" | "refunded" | "in_review";
|
|
42547
|
+
input: {
|
|
42548
|
+
amount: string;
|
|
42549
|
+
currency: string;
|
|
42550
|
+
};
|
|
42551
|
+
fees: {
|
|
42552
|
+
total: string;
|
|
42553
|
+
currency: string;
|
|
42554
|
+
breakdown: {
|
|
42555
|
+
platform: string;
|
|
42556
|
+
exchange: string;
|
|
42557
|
+
network: string;
|
|
42558
|
+
};
|
|
42559
|
+
};
|
|
42560
|
+
output: {
|
|
42561
|
+
amount: string;
|
|
42562
|
+
token: string;
|
|
42563
|
+
};
|
|
42564
|
+
}>;
|
|
42460
42565
|
}
|
|
42461
42566
|
|
|
42462
42567
|
type OffRampRefundRequest = PathRequestBody<'/v1/off-ramps/{offRampId}/refund', 'post'>;
|
|
@@ -42503,6 +42608,205 @@ declare class OfframpService {
|
|
|
42503
42608
|
}>;
|
|
42504
42609
|
}
|
|
42505
42610
|
|
|
42611
|
+
type CreateOffRampQuoteRequest = PathRequestBody<'/v1/off-ramp-quotes/', 'post'>;
|
|
42612
|
+
type OffRampQuote = PathResponse<'/v1/off-ramp-quotes/', 'post'>;
|
|
42613
|
+
type OffRampQuoteTransactionRequest = PathRequestBody<'/v1/off-ramp-quotes/{quoteId}/transaction', 'post'>;
|
|
42614
|
+
type OffRampQuoteTransaction = PathResponse<'/v1/off-ramp-quotes/{quoteId}/transaction', 'post'>;
|
|
42615
|
+
type SubmitOffRampQuoteRequest = PathRequestBody<'/v1/off-ramp-quotes/{quoteId}/submit', 'post'>;
|
|
42616
|
+
declare class OffRampQuoteService {
|
|
42617
|
+
private client;
|
|
42618
|
+
constructor(client: SpritzClient);
|
|
42619
|
+
/**
|
|
42620
|
+
* Create a quote to convert crypto to fiat (`POST /v1/off-ramp-quotes/`).
|
|
42621
|
+
*
|
|
42622
|
+
* Check `fulfillment` on the response for the next step: `sign_transaction` means
|
|
42623
|
+
* call `getTransaction`, sign and broadcast; `send_to_address` means send exactly
|
|
42624
|
+
* `sendTo.amount` to `sendTo.address` before `sendTo.expiresAt`.
|
|
42625
|
+
*
|
|
42626
|
+
* `amountMode` defaults to `output`, which fixes the destination fiat amount. EUR
|
|
42627
|
+
* destinations require `input`: `amount` is then the exact USD value collected and
|
|
42628
|
+
* `output.amount` is an estimate (`output.estimated` is `true`).
|
|
42629
|
+
*
|
|
42630
|
+
* `tokenAddress` is optional in the type but required on every chain except
|
|
42631
|
+
* Bitcoin and Dash; a request without it is rejected with a 400.
|
|
42632
|
+
*
|
|
42633
|
+
* **This endpoint does not support an idempotency key.** A retry creates a second
|
|
42634
|
+
* quote. A quote that is never funded ends as `expired`.
|
|
42635
|
+
*/
|
|
42636
|
+
create(input: CreateOffRampQuoteRequest): Promise<{
|
|
42637
|
+
id: string;
|
|
42638
|
+
fulfillment: "sign_transaction" | "send_to_address";
|
|
42639
|
+
status: "created" | "transaction_pending" | "transaction_failed" | "insufficient_funds" | "confirmed" | "completed" | "expired" | "failed" | "refunded";
|
|
42640
|
+
createdAt: string;
|
|
42641
|
+
input: {
|
|
42642
|
+
amount: string;
|
|
42643
|
+
currency: "USD";
|
|
42644
|
+
tokenAddress: string;
|
|
42645
|
+
chain: "ethereum" | "polygon" | "arbitrum" | "base" | "optimism" | "avalanche" | "binance-smart-chain" | "solana" | "bitcoin" | "dash" | "tron" | "sui" | "hyperevm" | "monad" | "sonic" | "unichain";
|
|
42646
|
+
};
|
|
42647
|
+
output: {
|
|
42648
|
+
amount: string;
|
|
42649
|
+
currency: string;
|
|
42650
|
+
rail: "ach_standard" | "ach_same_day" | "rtp" | "wire" | "eft" | "sepa" | "faster_payments" | "push_to_card" | "bill_pay" | "card_deposit";
|
|
42651
|
+
accountId: string;
|
|
42652
|
+
estimated: boolean;
|
|
42653
|
+
exchangeRate: {
|
|
42654
|
+
baseCurrency: "USD";
|
|
42655
|
+
quoteCurrency: string;
|
|
42656
|
+
rate: string;
|
|
42657
|
+
} | null;
|
|
42658
|
+
};
|
|
42659
|
+
fees: {
|
|
42660
|
+
amount: string;
|
|
42661
|
+
currency: "USD";
|
|
42662
|
+
};
|
|
42663
|
+
sendTo: {
|
|
42664
|
+
address: string;
|
|
42665
|
+
amount: string;
|
|
42666
|
+
token: string;
|
|
42667
|
+
expiresAt: string;
|
|
42668
|
+
} | null;
|
|
42669
|
+
confirmation: {
|
|
42670
|
+
transactionHash: string;
|
|
42671
|
+
explorerUrl: string;
|
|
42672
|
+
} | null;
|
|
42673
|
+
offRampId: string | null;
|
|
42674
|
+
}>;
|
|
42675
|
+
get(quoteId: string): Promise<{
|
|
42676
|
+
id: string;
|
|
42677
|
+
fulfillment: "sign_transaction" | "send_to_address";
|
|
42678
|
+
status: "created" | "transaction_pending" | "transaction_failed" | "insufficient_funds" | "confirmed" | "completed" | "expired" | "failed" | "refunded";
|
|
42679
|
+
createdAt: string;
|
|
42680
|
+
input: {
|
|
42681
|
+
amount: string;
|
|
42682
|
+
currency: "USD";
|
|
42683
|
+
tokenAddress: string;
|
|
42684
|
+
chain: "ethereum" | "polygon" | "arbitrum" | "base" | "optimism" | "avalanche" | "binance-smart-chain" | "solana" | "bitcoin" | "dash" | "tron" | "sui" | "hyperevm" | "monad" | "sonic" | "unichain";
|
|
42685
|
+
};
|
|
42686
|
+
output: {
|
|
42687
|
+
amount: string;
|
|
42688
|
+
currency: string;
|
|
42689
|
+
rail: "ach_standard" | "ach_same_day" | "rtp" | "wire" | "eft" | "sepa" | "faster_payments" | "push_to_card" | "bill_pay" | "card_deposit";
|
|
42690
|
+
accountId: string;
|
|
42691
|
+
estimated: boolean;
|
|
42692
|
+
exchangeRate: {
|
|
42693
|
+
baseCurrency: "USD";
|
|
42694
|
+
quoteCurrency: string;
|
|
42695
|
+
rate: string;
|
|
42696
|
+
} | null;
|
|
42697
|
+
};
|
|
42698
|
+
fees: {
|
|
42699
|
+
amount: string;
|
|
42700
|
+
currency: "USD";
|
|
42701
|
+
};
|
|
42702
|
+
sendTo: {
|
|
42703
|
+
address: string;
|
|
42704
|
+
amount: string;
|
|
42705
|
+
token: string;
|
|
42706
|
+
expiresAt: string;
|
|
42707
|
+
} | null;
|
|
42708
|
+
confirmation: {
|
|
42709
|
+
transactionHash: string;
|
|
42710
|
+
explorerUrl: string;
|
|
42711
|
+
} | null;
|
|
42712
|
+
offRampId: string | null;
|
|
42713
|
+
}>;
|
|
42714
|
+
/**
|
|
42715
|
+
* Get the transaction to sign for a `sign_transaction` quote
|
|
42716
|
+
* (`POST /v1/off-ramp-quotes/{quoteId}/transaction`).
|
|
42717
|
+
*
|
|
42718
|
+
* Branch on `type`: `evm` returns `contractAddress`, `calldata` and `value` to build the
|
|
42719
|
+
* transaction; `solana` and `sui` return a base64 `transactionSerialized` to sign as-is.
|
|
42720
|
+
* Nothing is stored: it only prepares the transaction.
|
|
42721
|
+
*
|
|
42722
|
+
* Solana and Sui transactions are built for `senderAddress`, so pass it on those chains.
|
|
42723
|
+
* `feePayer` is Solana only and defaults to `senderAddress`. The body is always sent,
|
|
42724
|
+
* as `{}` when `input` is omitted.
|
|
42725
|
+
*
|
|
42726
|
+
* Throws a `BadRequestError` (400) with problem code `sender_address_required` on a
|
|
42727
|
+
* Solana or Sui quote without `senderAddress`, and an `UnprocessableEntityError` (422)
|
|
42728
|
+
* on a `send_to_address` quote (Bitcoin, Dash, Tron), which has no transaction to sign.
|
|
42729
|
+
*/
|
|
42730
|
+
getTransaction(quoteId: string, input?: OffRampQuoteTransactionRequest): Promise<{
|
|
42731
|
+
type: "evm";
|
|
42732
|
+
chain: string;
|
|
42733
|
+
inputToken: string;
|
|
42734
|
+
outputToken: string;
|
|
42735
|
+
requiredTokenInput: string;
|
|
42736
|
+
contractAddress: string;
|
|
42737
|
+
calldata: string;
|
|
42738
|
+
method: string;
|
|
42739
|
+
value: string | null;
|
|
42740
|
+
} | {
|
|
42741
|
+
type: "solana";
|
|
42742
|
+
chain: string;
|
|
42743
|
+
inputToken: string;
|
|
42744
|
+
outputToken: string;
|
|
42745
|
+
requiredTokenInput: string;
|
|
42746
|
+
recipientAddress: string;
|
|
42747
|
+
transactionSerialized: string;
|
|
42748
|
+
} | {
|
|
42749
|
+
type: "sui";
|
|
42750
|
+
chain: string;
|
|
42751
|
+
inputToken: string;
|
|
42752
|
+
outputToken: string;
|
|
42753
|
+
requiredTokenInput: string;
|
|
42754
|
+
recipientAddress: string;
|
|
42755
|
+
transactionSerialized: string;
|
|
42756
|
+
}>;
|
|
42757
|
+
/**
|
|
42758
|
+
* Report the on-chain transaction broadcast for a quote
|
|
42759
|
+
* (`POST /v1/off-ramp-quotes/{quoteId}/submit`).
|
|
42760
|
+
*
|
|
42761
|
+
* Optional: the chain watcher detects the transaction on its own. Reporting it moves
|
|
42762
|
+
* the quote to `transaction_pending` without waiting for the watcher; `confirmed` still
|
|
42763
|
+
* comes from the chain. Works for both fulfillment types. `offRampId` on the response
|
|
42764
|
+
* can still be `null`: read the quote again with `get` to pick it up.
|
|
42765
|
+
*
|
|
42766
|
+
* Safe to retry with the same hash, including after a timeout. Throws a
|
|
42767
|
+
* `BadRequestError` (400) when a different hash is already on record for the quote.
|
|
42768
|
+
*/
|
|
42769
|
+
submit(quoteId: string, input: SubmitOffRampQuoteRequest): Promise<{
|
|
42770
|
+
id: string;
|
|
42771
|
+
fulfillment: "sign_transaction" | "send_to_address";
|
|
42772
|
+
status: "created" | "transaction_pending" | "transaction_failed" | "insufficient_funds" | "confirmed" | "completed" | "expired" | "failed" | "refunded";
|
|
42773
|
+
createdAt: string;
|
|
42774
|
+
input: {
|
|
42775
|
+
amount: string;
|
|
42776
|
+
currency: "USD";
|
|
42777
|
+
tokenAddress: string;
|
|
42778
|
+
chain: "ethereum" | "polygon" | "arbitrum" | "base" | "optimism" | "avalanche" | "binance-smart-chain" | "solana" | "bitcoin" | "dash" | "tron" | "sui" | "hyperevm" | "monad" | "sonic" | "unichain";
|
|
42779
|
+
};
|
|
42780
|
+
output: {
|
|
42781
|
+
amount: string;
|
|
42782
|
+
currency: string;
|
|
42783
|
+
rail: "ach_standard" | "ach_same_day" | "rtp" | "wire" | "eft" | "sepa" | "faster_payments" | "push_to_card" | "bill_pay" | "card_deposit";
|
|
42784
|
+
accountId: string;
|
|
42785
|
+
estimated: boolean;
|
|
42786
|
+
exchangeRate: {
|
|
42787
|
+
baseCurrency: "USD";
|
|
42788
|
+
quoteCurrency: string;
|
|
42789
|
+
rate: string;
|
|
42790
|
+
} | null;
|
|
42791
|
+
};
|
|
42792
|
+
fees: {
|
|
42793
|
+
amount: string;
|
|
42794
|
+
currency: "USD";
|
|
42795
|
+
};
|
|
42796
|
+
sendTo: {
|
|
42797
|
+
address: string;
|
|
42798
|
+
amount: string;
|
|
42799
|
+
token: string;
|
|
42800
|
+
expiresAt: string;
|
|
42801
|
+
} | null;
|
|
42802
|
+
confirmation: {
|
|
42803
|
+
transactionHash: string;
|
|
42804
|
+
explorerUrl: string;
|
|
42805
|
+
} | null;
|
|
42806
|
+
offRampId: string | null;
|
|
42807
|
+
}>;
|
|
42808
|
+
}
|
|
42809
|
+
|
|
42506
42810
|
interface CreateOnrampPayment_createOnrampPayment_depositInstructions {
|
|
42507
42811
|
__typename: 'OnrampPaymentDepositInstructions';
|
|
42508
42812
|
amount: number;
|
|
@@ -42714,6 +43018,149 @@ declare class VirtualAccountsService {
|
|
|
42714
43018
|
create(input: CreateVirtualAccountInput): Promise<CreateVirtualAccount_createVirtualAccount>;
|
|
42715
43019
|
}
|
|
42716
43020
|
|
|
43021
|
+
type AutoRampAccountList = PathResponse<'/v1/auto-ramp-accounts/', 'get'>;
|
|
43022
|
+
type AutoRampAccount = AutoRampAccountList[number];
|
|
43023
|
+
type CreateAutoRampAccountRequest = PathRequestBody<'/v1/auto-ramp-accounts/', 'post'>;
|
|
43024
|
+
type AutoRampAccountEstimate = PathResponse<'/v1/auto-ramp-accounts/{id}/estimate', 'get'>;
|
|
43025
|
+
declare class AutoRampAccountService {
|
|
43026
|
+
private client;
|
|
43027
|
+
constructor(client: SpritzClient);
|
|
43028
|
+
list(): Promise<{
|
|
43029
|
+
id: string;
|
|
43030
|
+
depositInstructions: {
|
|
43031
|
+
bankName: string;
|
|
43032
|
+
bankAddress: string;
|
|
43033
|
+
paymentRails: string[];
|
|
43034
|
+
type: "us";
|
|
43035
|
+
bankRoutingNumber: string;
|
|
43036
|
+
bankAccountNumber: string;
|
|
43037
|
+
} | {
|
|
43038
|
+
bankName: string;
|
|
43039
|
+
bankAddress: string;
|
|
43040
|
+
paymentRails: string[];
|
|
43041
|
+
type: "iban";
|
|
43042
|
+
iban: string;
|
|
43043
|
+
bic?: string;
|
|
43044
|
+
};
|
|
43045
|
+
network: string;
|
|
43046
|
+
address: string;
|
|
43047
|
+
token: string;
|
|
43048
|
+
currency: string;
|
|
43049
|
+
status: "active" | "inactive";
|
|
43050
|
+
createdAt: string;
|
|
43051
|
+
}[]>;
|
|
43052
|
+
get(accountId: string): Promise<{
|
|
43053
|
+
id: string;
|
|
43054
|
+
depositInstructions: {
|
|
43055
|
+
bankName: string;
|
|
43056
|
+
bankAddress: string;
|
|
43057
|
+
paymentRails: string[];
|
|
43058
|
+
type: "us";
|
|
43059
|
+
bankRoutingNumber: string;
|
|
43060
|
+
bankAccountNumber: string;
|
|
43061
|
+
} | {
|
|
43062
|
+
bankName: string;
|
|
43063
|
+
bankAddress: string;
|
|
43064
|
+
paymentRails: string[];
|
|
43065
|
+
type: "iban";
|
|
43066
|
+
iban: string;
|
|
43067
|
+
bic?: string;
|
|
43068
|
+
};
|
|
43069
|
+
network: string;
|
|
43070
|
+
address: string;
|
|
43071
|
+
token: string;
|
|
43072
|
+
currency: string;
|
|
43073
|
+
status: "active" | "inactive";
|
|
43074
|
+
createdAt: string;
|
|
43075
|
+
}>;
|
|
43076
|
+
/**
|
|
43077
|
+
* Create an auto-ramp account (`POST /v1/auto-ramp-accounts/`): a virtual bank
|
|
43078
|
+
* account in the user's name that converts fiat deposits to `token` and sends them
|
|
43079
|
+
* to `address` on `network`.
|
|
43080
|
+
*
|
|
43081
|
+
* Branch on `depositInstructions.type` in the response: `us` carries routing and
|
|
43082
|
+
* account numbers, `iban` carries the IBAN and BIC for SEPA. Confirm `status` is
|
|
43083
|
+
* `active` before telling a user to deposit.
|
|
43084
|
+
*
|
|
43085
|
+
* The address must be valid for the network, and the network/token pair must be
|
|
43086
|
+
* supported in the user's region; otherwise a `BadRequestError` (400) names the
|
|
43087
|
+
* `field` (`address` or `network`).
|
|
43088
|
+
*
|
|
43089
|
+
* **This endpoint does not support an idempotency key.** After a timeout or lost
|
|
43090
|
+
* reply, call `list()` and look for the account before creating it again.
|
|
43091
|
+
*
|
|
43092
|
+
* This is the REST replacement for the legacy GraphQL `virtualAccounts.create()`.
|
|
43093
|
+
*/
|
|
43094
|
+
create(input: CreateAutoRampAccountRequest): Promise<{
|
|
43095
|
+
id: string;
|
|
43096
|
+
depositInstructions: {
|
|
43097
|
+
bankName: string;
|
|
43098
|
+
bankAddress: string;
|
|
43099
|
+
paymentRails: string[];
|
|
43100
|
+
type: "us";
|
|
43101
|
+
bankRoutingNumber: string;
|
|
43102
|
+
bankAccountNumber: string;
|
|
43103
|
+
} | {
|
|
43104
|
+
bankName: string;
|
|
43105
|
+
bankAddress: string;
|
|
43106
|
+
paymentRails: string[];
|
|
43107
|
+
type: "iban";
|
|
43108
|
+
iban: string;
|
|
43109
|
+
bic?: string;
|
|
43110
|
+
};
|
|
43111
|
+
network: string;
|
|
43112
|
+
address: string;
|
|
43113
|
+
token: string;
|
|
43114
|
+
currency: string;
|
|
43115
|
+
status: "active" | "inactive";
|
|
43116
|
+
createdAt: string;
|
|
43117
|
+
}>;
|
|
43118
|
+
/**
|
|
43119
|
+
* Estimate what depositing `amount` into this account is expected to cost
|
|
43120
|
+
* (`GET /v1/auto-ramp-accounts/{id}/estimate`). `amount` is a decimal string in the
|
|
43121
|
+
* account's own currency, e.g. `'2525.00'`.
|
|
43122
|
+
*
|
|
43123
|
+
* An estimate, not a quote: no rate is locked. The fee is this account's, so do not
|
|
43124
|
+
* reuse an estimate across accounts. `fees.maximum` and `output.minimum` are omitted
|
|
43125
|
+
* until enough deposits have settled on the network; do not promise a user a
|
|
43126
|
+
* ceiling or a floor when they are absent.
|
|
43127
|
+
*
|
|
43128
|
+
* When no estimate can be produced, branch on `error.problem.code`:
|
|
43129
|
+
* `rate_unavailable` (503, transient: retry), `unsupported_currency_pair` (400,
|
|
43130
|
+
* permanent) or `exchange_rate_provider_error` (502).
|
|
43131
|
+
*/
|
|
43132
|
+
estimate(accountId: string, amount: string): Promise<{
|
|
43133
|
+
input: {
|
|
43134
|
+
amount: string;
|
|
43135
|
+
currency: string;
|
|
43136
|
+
};
|
|
43137
|
+
fees: {
|
|
43138
|
+
total: string;
|
|
43139
|
+
currency: string;
|
|
43140
|
+
breakdown: {
|
|
43141
|
+
platform: string;
|
|
43142
|
+
exchange: string;
|
|
43143
|
+
network: string;
|
|
43144
|
+
};
|
|
43145
|
+
estimated: ("platform" | "exchange" | "network")[];
|
|
43146
|
+
maximum?: string;
|
|
43147
|
+
networkFeeSamples: number;
|
|
43148
|
+
};
|
|
43149
|
+
output: {
|
|
43150
|
+
amount: string;
|
|
43151
|
+
minimum?: string;
|
|
43152
|
+
token: string;
|
|
43153
|
+
network: string;
|
|
43154
|
+
address: string;
|
|
43155
|
+
};
|
|
43156
|
+
rate: {
|
|
43157
|
+
value: string;
|
|
43158
|
+
source: "provider" | "peg";
|
|
43159
|
+
asOf: string;
|
|
43160
|
+
};
|
|
43161
|
+
}>;
|
|
43162
|
+
}
|
|
43163
|
+
|
|
42717
43164
|
interface PaymentLimitsResponse {
|
|
42718
43165
|
perTransaction: number;
|
|
42719
43166
|
dailyLimit: number;
|
|
@@ -42765,6 +43212,33 @@ declare class PaymentRequestService {
|
|
|
42765
43212
|
}>;
|
|
42766
43213
|
}
|
|
42767
43214
|
|
|
43215
|
+
type AcceptTermsRequest = PathRequestBody<'/v1/users/me/terms', 'post'>;
|
|
43216
|
+
type AcceptTermsResponse = PathResponse<'/v1/users/me/terms', 'post'>;
|
|
43217
|
+
declare class TermsService {
|
|
43218
|
+
private client;
|
|
43219
|
+
constructor(client: SpritzClient);
|
|
43220
|
+
/**
|
|
43221
|
+
* Record acceptance of the terms a capability requires (`POST /v1/users/me/terms`).
|
|
43222
|
+
*
|
|
43223
|
+
* `agreementId` is the signed agreement id the user obtained from the provider's
|
|
43224
|
+
* hosted flow, whose URL is the `actionUrl` of the outstanding `terms_acceptance`
|
|
43225
|
+
* requirement on `user.getMe()`. It is opaque: the platform resolves which provider
|
|
43226
|
+
* it belongs to.
|
|
43227
|
+
*
|
|
43228
|
+
* Branch on `termsAccepted`: it is `true` when the agreement was recorded and terms
|
|
43229
|
+
* are now accepted.
|
|
43230
|
+
*
|
|
43231
|
+
* **This endpoint does not accept an idempotency key.** If a request times out, call
|
|
43232
|
+
* `user.getMe()` and check whether the `terms_acceptance` requirement is still
|
|
43233
|
+
* outstanding before submitting again.
|
|
43234
|
+
*
|
|
43235
|
+
* This is the REST replacement for the legacy GraphQL `onramp.acceptTermsOfService()`.
|
|
43236
|
+
*/
|
|
43237
|
+
accept(input: AcceptTermsRequest): Promise<{
|
|
43238
|
+
termsAccepted: boolean;
|
|
43239
|
+
}>;
|
|
43240
|
+
}
|
|
43241
|
+
|
|
42768
43242
|
interface GetVerificationParams_getVerificationParams {
|
|
42769
43243
|
__typename: 'VerificationParams';
|
|
42770
43244
|
inquiryId: string;
|
|
@@ -42871,6 +43345,17 @@ interface AuthorizeApiKeyParams {
|
|
|
42871
43345
|
declare class UserService {
|
|
42872
43346
|
private client;
|
|
42873
43347
|
constructor(client: SpritzClient);
|
|
43348
|
+
/**
|
|
43349
|
+
* Create a user under the integrator and return their API key.
|
|
43350
|
+
*
|
|
43351
|
+
* With integrator HMAC credentials (`integrationKey` + `integratorSecret`, as issued
|
|
43352
|
+
* by the Developer Console) this calls `POST /v1/integrator/users` on the REST API.
|
|
43353
|
+
* Without a secret it uses the legacy `/users/integration` route, which does not
|
|
43354
|
+
* accept Developer Console credentials.
|
|
43355
|
+
*
|
|
43356
|
+
* On the REST route an email that already exists is rejected with a `ConflictError`
|
|
43357
|
+
* (409); use Spritz Connect to have that user authorize the integrator instead.
|
|
43358
|
+
*/
|
|
42874
43359
|
createUser(args: CreateUserParams): Promise<CreateUserResponse>;
|
|
42875
43360
|
create(args: CreateUserParams): Promise<CreateUserResponse>;
|
|
42876
43361
|
requestApiKey(email: string): Promise<RequestApiKeyResponse>;
|
|
@@ -43133,6 +43618,8 @@ declare class SpritzApiClient {
|
|
|
43133
43618
|
private client;
|
|
43134
43619
|
user: UserService;
|
|
43135
43620
|
verification: VerificationService;
|
|
43621
|
+
compliance: ComplianceService;
|
|
43622
|
+
terms: TermsService;
|
|
43136
43623
|
bankAccount: BankAccountService;
|
|
43137
43624
|
debitCard: DebitCardService;
|
|
43138
43625
|
deposit: DepositService;
|
|
@@ -43144,7 +43631,9 @@ declare class SpritzApiClient {
|
|
|
43144
43631
|
onrampPayment: OnrampPaymentService;
|
|
43145
43632
|
onramp: OnrampService;
|
|
43146
43633
|
offramp: OfframpService;
|
|
43634
|
+
offRampQuote: OffRampQuoteService;
|
|
43147
43635
|
virtualAccounts: VirtualAccountsService;
|
|
43636
|
+
autoRampAccount: AutoRampAccountService;
|
|
43148
43637
|
virtualCard: VirtualCardService;
|
|
43149
43638
|
bill: BillService;
|
|
43150
43639
|
institution: InstitutionService;
|
|
@@ -43305,4 +43794,4 @@ declare function hasProblemCode<T extends string>(error: unknown, code: T): erro
|
|
|
43305
43794
|
};
|
|
43306
43795
|
|
|
43307
43796
|
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AmountMode, AuthenticationError, BadRequestError, BankAccountSubType, BankAccountType, BillType, CardFeatureType, ConflictError, DebitCardNetwork, Environment, InternalServerError, NotFoundError, OfframpFeatureType, OnrampFeatureType, PayableAccountType, PaymentDeliveryMethod, PaymentNetwork, DirectPaymentStatus as PaymentRequestStatus, PaymentStatus, PermissionDeniedError, RateLimitError, RequirementType, SpritzApiClient, SpritzApiError, UnprocessableEntityError, VirtualCardType, hasProblemCode, hasProblemType, isAPIError, onrampSupportedTokens };
|
|
43308
|
-
export type { AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, AccountPayments_paymentsForAccount_transaction, AchDebitEligibilityRequest, AchDebitEligibilityResponse, AchDebitExposureResponse, AchDebitReturn, AchDebitReturnListQuery, AchDebitReturnListResponse, BankAccount, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountFragment_paymentAddresses, BankAccountInput, BankAccountList, BillFragment, BillFragment_billAccountDetails, BillFragment_dataSync, BillFragment_institution, BillFragment_paymentAddresses, BypassKycRequest, CategoryAccess, ClientOptions, CompleteLinkingRequest, CompleteLinkingResponse, CreateBankAccountInput, CreateBankAccountResponse, CreateDepositOptions, CreateDepositRequest, CreateDepositWithReturnRequest, CreateDepositWithReturnResponse, CreateDirectPaymentInput, CreateOnrampPaymentInput, CreatePaymentRequestInput, CreateVirtualAccountInput, CreateWebhookParams, CurrentUser, CurrentUser_me, CurrentUser_verification, CurrentUser_verification_identity, CurrentUser_verification_identity_verificationMetadata, CurrentUser_verification_identity_verificationMetadata_details, DebitCardFragment, DebitCardInput, DeleteBankAccountResponse, DeleteFundingSourceResponse, Deposit, DepositListQuery, DepositListResponse, FullBridgeUser, FundingSource, FundingSourceDepositLimits, GetSolanaPayParams, GetSolanaPayParamsVariables, GetSolanaPayParams_solanaParams, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, IntegratorWebhook, KycStatus, LinkBankAccountRequest, LinkBankAccountResponse, LinkTokenResponse, OffRampRefundRequest, OffRampRefundResponse, OnRamp, OnRampDetail, OnRampListQuery, OnRampListResponse, OnrampPaymentFragment, OnrampPaymentFragment_depositInstructions, OnrampPayments, OnrampPayments_onrampPayments, OnrampPayments_onrampPayments_depositInstructions, PathParams, PathQuery, PathRequestBody, PathResponse, PayableAccountFragment, PayableAccountFragment_BankAccount, PayableAccountFragment_BankAccount_bankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails, PayableAccountFragment_BankAccount_dataSync, PayableAccountFragment_BankAccount_institution, PayableAccountFragment_Bill, PayableAccountFragment_Bill_billAccountDetails, PayableAccountFragment_Bill_dataSync, PayableAccountFragment_Bill_institution, PayableAccountFragment_DebitCard, PayableAccountFragment_DebitCard_dataSync, PayableAccountFragment_DebitCard_institution, PayableAccountFragment_VirtualCard, PayableAccountFragment_VirtualCard_billingInfo, PayableAccountFragment_VirtualCard_billingInfo_address, PayableAccountFragment_VirtualCard_dataSync, PayableAccountFragment_VirtualCard_institution, PayableAccountInstitutionFragment, Payment, PaymentFragment, PaymentFragment_transaction, PaymentLimits, PaymentLimitsResponse, PaymentLimitsVariables, PaymentLimits_paymentLimits, PaymentRequestFragment, PaymentRequestPayment, PaymentRequestPaymentVariables, PaymentRequestPayment_paymentForPaymentRequest, PaymentRequestPayment_paymentForPaymentRequest_transaction, PaymentVariables, Payment_payment, Payment_payment_transaction, PopularBillInstitutions, PopularBillInstitutionsVariables, PopularBillInstitutions_popularUSBillInstitutions, PrepareDepositRequest, PrepareDepositResponse, PrepareDepositWithProgramControlRequest, PrepareDepositWithProgramControlResponse, ProblemDetails, ProblemFieldError, ProblemSuggestedAction, Requirement, operations as RestApiOperations, paths as RestApiPaths, SearchUSBillInstitutions, SearchUSBillInstitutionsVariables, SearchUSBillInstitutions_searchUSBillInstitutions, SetAchDebitExposureCapRequest, SetAchDebitExposureCapResponse, TokenBalanceFragment, UpdateWebhookParams, UpdateWebhookSecretResponse, UserAccess, UserAccessCapabilities, UserAccess_bridgeUser, UserAccess_me, UserAccess_verification, UserAccess_verification_identity, UserAccess_verification_identity_verificationMetadata, UserAccess_verification_identity_verificationMetadata_details, UserBankAccounts, UserBankAccounts_bankAccounts, UserBankAccounts_bankAccounts_bankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails, UserBankAccounts_bankAccounts_institution, UserBankAccounts_bankAccounts_paymentAddresses, UserBills, UserBills_bills, UserBills_bills_billAccountDetails, UserBills_bills_dataSync, UserBills_bills_institution, UserBills_bills_paymentAddresses, UserDebitCards, UserDebitCards_debitCards, UserFragment, UserPayableAccounts, UserPayableAccounts_payableAccounts, UserPayableAccounts_payableAccounts_BankAccount, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_USBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_dataSync, UserPayableAccounts_payableAccounts_BankAccount_institution, UserPayableAccounts_payableAccounts_Bill, UserPayableAccounts_payableAccounts_Bill_billAccountDetails, UserPayableAccounts_payableAccounts_Bill_dataSync, UserPayableAccounts_payableAccounts_Bill_institution, UserPayableAccounts_payableAccounts_DebitCard, UserPayableAccounts_payableAccounts_DebitCard_dataSync, UserPayableAccounts_payableAccounts_DebitCard_institution, UserPayableAccounts_payableAccounts_VirtualCard, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address, UserPayableAccounts_payableAccounts_VirtualCard_dataSync, UserPayableAccounts_payableAccounts_VirtualCard_institution, UserProfile, UserVerification, UserVerification_verification, UserVerification_verification_identity, UserVerification_verification_identity_user, UserVerification_verification_identity_verificationMetadata, UserVerification_verification_identity_verificationMetadata_details, UserVirtualDebitCard, UserVirtualDebitCard_virtualDebitCard, UserVirtualDebitCard_virtualDebitCard_billingInfo, UserVirtualDebitCard_virtualDebitCard_billingInfo_address, UserVirtualDebitCard_virtualDebitCard_paymentAddresses, VerificationFragment, VerificationFragment_identity, VerificationFragment_identity_verificationMetadata, VerificationFragment_identity_verificationMetadata_details, VerificationSession, VirtualAccountFragment, VirtualAccountFragment_depositInstructions, VirtualAccounts, VirtualAccounts_virtualAccounts, VirtualAccounts_virtualAccounts_depositInstructions, VirtualDebitCardFragment, VirtualDebitCardFragment_billingInfo, VirtualDebitCardFragment_billingInfo_address, VirtualDebitCardFragment_paymentAddresses, WalletTokenBalances, WalletTokenBalancesVariables, WalletTokenBalances_tokenBalances, WebhookEvent };
|
|
43797
|
+
export type { AcceptTermsRequest, AcceptTermsResponse, AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, AccountPayments_paymentsForAccount_transaction, AchDebitEligibilityRequest, AchDebitEligibilityResponse, AchDebitExposureResponse, AchDebitReturn, AchDebitReturnListQuery, AchDebitReturnListResponse, AutoRampAccount, AutoRampAccountEstimate, AutoRampAccountList, BankAccount, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountFragment_paymentAddresses, BankAccountInput, BankAccountList, BillFragment, BillFragment_billAccountDetails, BillFragment_dataSync, BillFragment_institution, BillFragment_paymentAddresses, BypassKycRequest, CategoryAccess, ClientOptions, CompleteLinkingRequest, CompleteLinkingResponse, ComplianceRequirementField, ComplianceRequirements, CreateAutoRampAccountRequest, CreateBankAccountInput, CreateBankAccountResponse, CreateDepositOptions, CreateDepositRequest, CreateDepositWithReturnRequest, CreateDepositWithReturnResponse, CreateDirectPaymentInput, CreateOffRampQuoteRequest, CreateOnrampPaymentInput, CreatePaymentRequestInput, CreateVirtualAccountInput, CreateWebhookParams, CurrentUser, CurrentUser_me, CurrentUser_verification, CurrentUser_verification_identity, CurrentUser_verification_identity_verificationMetadata, CurrentUser_verification_identity_verificationMetadata_details, DebitCardFragment, DebitCardInput, DeleteBankAccountResponse, DeleteFundingSourceResponse, Deposit, DepositListQuery, DepositListResponse, FullBridgeUser, FundingSource, FundingSourceDepositLimits, GetSolanaPayParams, GetSolanaPayParamsVariables, GetSolanaPayParams_solanaParams, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, IntegratorWebhook, KycStatus, LinkBankAccountRequest, LinkBankAccountResponse, LinkTokenResponse, OffRampQuote, OffRampQuoteTransaction, OffRampQuoteTransactionRequest, OffRampRefundRequest, OffRampRefundResponse, OnRamp, OnRampDetail, OnRampListQuery, OnRampListResponse, OnrampPaymentFragment, OnrampPaymentFragment_depositInstructions, OnrampPayments, OnrampPayments_onrampPayments, OnrampPayments_onrampPayments_depositInstructions, PathParams, PathQuery, PathRequestBody, PathResponse, PayableAccountFragment, PayableAccountFragment_BankAccount, PayableAccountFragment_BankAccount_bankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails, PayableAccountFragment_BankAccount_dataSync, PayableAccountFragment_BankAccount_institution, PayableAccountFragment_Bill, PayableAccountFragment_Bill_billAccountDetails, PayableAccountFragment_Bill_dataSync, PayableAccountFragment_Bill_institution, PayableAccountFragment_DebitCard, PayableAccountFragment_DebitCard_dataSync, PayableAccountFragment_DebitCard_institution, PayableAccountFragment_VirtualCard, PayableAccountFragment_VirtualCard_billingInfo, PayableAccountFragment_VirtualCard_billingInfo_address, PayableAccountFragment_VirtualCard_dataSync, PayableAccountFragment_VirtualCard_institution, PayableAccountInstitutionFragment, Payment, PaymentFragment, PaymentFragment_transaction, PaymentLimits, PaymentLimitsResponse, PaymentLimitsVariables, PaymentLimits_paymentLimits, PaymentRequestFragment, PaymentRequestPayment, PaymentRequestPaymentVariables, PaymentRequestPayment_paymentForPaymentRequest, PaymentRequestPayment_paymentForPaymentRequest_transaction, PaymentVariables, Payment_payment, Payment_payment_transaction, PopularBillInstitutions, PopularBillInstitutionsVariables, PopularBillInstitutions_popularUSBillInstitutions, PrepareDepositRequest, PrepareDepositResponse, PrepareDepositWithProgramControlRequest, PrepareDepositWithProgramControlResponse, ProblemDetails, ProblemFieldError, ProblemSuggestedAction, Requirement, operations as RestApiOperations, paths as RestApiPaths, SearchUSBillInstitutions, SearchUSBillInstitutionsVariables, SearchUSBillInstitutions_searchUSBillInstitutions, SetAchDebitExposureCapRequest, SetAchDebitExposureCapResponse, SimulateAutoRampDepositRequest, SimulateAutoRampDepositResponse, SubmitComplianceRequest, SubmitComplianceResponse, SubmitOffRampQuoteRequest, TokenBalanceFragment, UpdateWebhookParams, UpdateWebhookSecretResponse, UserAccess, UserAccessCapabilities, UserAccess_bridgeUser, UserAccess_me, UserAccess_verification, UserAccess_verification_identity, UserAccess_verification_identity_verificationMetadata, UserAccess_verification_identity_verificationMetadata_details, UserBankAccounts, UserBankAccounts_bankAccounts, UserBankAccounts_bankAccounts_bankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails, UserBankAccounts_bankAccounts_institution, UserBankAccounts_bankAccounts_paymentAddresses, UserBills, UserBills_bills, UserBills_bills_billAccountDetails, UserBills_bills_dataSync, UserBills_bills_institution, UserBills_bills_paymentAddresses, UserDebitCards, UserDebitCards_debitCards, UserFragment, UserPayableAccounts, UserPayableAccounts_payableAccounts, UserPayableAccounts_payableAccounts_BankAccount, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_USBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_dataSync, UserPayableAccounts_payableAccounts_BankAccount_institution, UserPayableAccounts_payableAccounts_Bill, UserPayableAccounts_payableAccounts_Bill_billAccountDetails, UserPayableAccounts_payableAccounts_Bill_dataSync, UserPayableAccounts_payableAccounts_Bill_institution, UserPayableAccounts_payableAccounts_DebitCard, UserPayableAccounts_payableAccounts_DebitCard_dataSync, UserPayableAccounts_payableAccounts_DebitCard_institution, UserPayableAccounts_payableAccounts_VirtualCard, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address, UserPayableAccounts_payableAccounts_VirtualCard_dataSync, UserPayableAccounts_payableAccounts_VirtualCard_institution, UserProfile, UserVerification, UserVerification_verification, UserVerification_verification_identity, UserVerification_verification_identity_user, UserVerification_verification_identity_verificationMetadata, UserVerification_verification_identity_verificationMetadata_details, UserVirtualDebitCard, UserVirtualDebitCard_virtualDebitCard, UserVirtualDebitCard_virtualDebitCard_billingInfo, UserVirtualDebitCard_virtualDebitCard_billingInfo_address, UserVirtualDebitCard_virtualDebitCard_paymentAddresses, VerificationFragment, VerificationFragment_identity, VerificationFragment_identity_verificationMetadata, VerificationFragment_identity_verificationMetadata_details, VerificationSession, VirtualAccountFragment, VirtualAccountFragment_depositInstructions, VirtualAccounts, VirtualAccounts_virtualAccounts, VirtualAccounts_virtualAccounts_depositInstructions, VirtualDebitCardFragment, VirtualDebitCardFragment_billingInfo, VirtualDebitCardFragment_billingInfo_address, VirtualDebitCardFragment_paymentAddresses, WalletTokenBalances, WalletTokenBalancesVariables, WalletTokenBalances_tokenBalances, WebhookEvent };
|