@halliday-sdk/payments 2.7.2 → 2.8.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/dist/paymentsApiClient/index.cjs.min.js +1 -1
- package/dist/paymentsApiClient/index.cjs.min.js.map +1 -1
- package/dist/paymentsApiClient/index.d.ts +191 -59
- package/dist/paymentsApiClient/index.esm.min.js +1 -1
- package/dist/paymentsApiClient/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/ethers/index.cjs.min.js +1 -1
- package/dist/paymentsWidget/ethers/index.cjs.min.js.map +1 -1
- package/dist/paymentsWidget/ethers/index.d.ts +12 -10
- package/dist/paymentsWidget/ethers/index.esm.min.js +1 -1
- package/dist/paymentsWidget/ethers/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/ethers/index.umd.min.js +1 -1
- package/dist/paymentsWidget/ethers/index.umd.min.js.map +1 -1
- package/dist/paymentsWidget/index.cjs.min.js +1 -1
- package/dist/paymentsWidget/index.cjs.min.js.map +1 -1
- package/dist/paymentsWidget/index.d.ts +83 -41
- package/dist/paymentsWidget/index.esm.min.js +1 -1
- package/dist/paymentsWidget/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/index.umd.min.js +1 -1
- package/dist/paymentsWidget/index.umd.min.js.map +1 -1
- package/dist/paymentsWidget/viem/index.cjs.min.js +1 -1
- package/dist/paymentsWidget/viem/index.cjs.min.js.map +1 -1
- package/dist/paymentsWidget/viem/index.d.ts +12 -10
- package/dist/paymentsWidget/viem/index.esm.min.js +1 -1
- package/dist/paymentsWidget/viem/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/viem/index.umd.min.js +1 -1
- package/dist/paymentsWidget/viem/index.umd.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { z, ZodError } from 'zod
|
|
1
|
+
import { z, ZodError } from 'zod';
|
|
2
2
|
import { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
type Amount = z.infer<typeof Amount>;
|
|
6
|
-
declare const EVMTokenAddress: z.ZodString;
|
|
4
|
+
declare const EVMTokenAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
7
5
|
type EVMTokenAddress = z.infer<typeof EVMTokenAddress>;
|
|
8
|
-
declare const EVMAddress: z.ZodString
|
|
6
|
+
declare const EVMAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
9
7
|
type EVMAddress = z.infer<typeof EVMAddress>;
|
|
10
|
-
declare const SolTokenAddress: z.ZodString;
|
|
11
|
-
type SolTokenAddress = z.infer<typeof SolTokenAddress>;
|
|
12
8
|
declare const SolAddress: z.ZodString;
|
|
13
9
|
type SolAddress = z.infer<typeof SolAddress>;
|
|
14
|
-
declare const Address: z.
|
|
10
|
+
declare const Address: z.ZodString;
|
|
15
11
|
type Address = z.infer<typeof Address>;
|
|
12
|
+
declare const Amount: z.ZodString;
|
|
13
|
+
type Amount = z.infer<typeof Amount>;
|
|
14
|
+
|
|
16
15
|
declare const Fiat: z.ZodString;
|
|
17
16
|
type Fiat = z.infer<typeof Fiat>;
|
|
18
17
|
declare const FiatDetails: z.ZodObject<{
|
|
@@ -27,7 +26,7 @@ declare const Token: z.ZodString;
|
|
|
27
26
|
type Token = z.infer<typeof Token>;
|
|
28
27
|
declare const EVMTokenDetails: z.ZodObject<{
|
|
29
28
|
chain: z.ZodString;
|
|
30
|
-
address: z.ZodString
|
|
29
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
31
30
|
name: z.ZodString;
|
|
32
31
|
symbol: z.ZodString;
|
|
33
32
|
decimals: z.ZodNumber;
|
|
@@ -53,7 +52,7 @@ declare const SolTokenDetails: z.ZodObject<{
|
|
|
53
52
|
type SolTokenDetails = z.infer<typeof SolTokenDetails>;
|
|
54
53
|
declare const TokenDetails: z.ZodUnion<readonly [z.ZodObject<{
|
|
55
54
|
chain: z.ZodString;
|
|
56
|
-
address: z.ZodString
|
|
55
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
57
56
|
name: z.ZodString;
|
|
58
57
|
symbol: z.ZodString;
|
|
59
58
|
decimals: z.ZodNumber;
|
|
@@ -90,7 +89,7 @@ declare const Asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
|
90
89
|
type Asset = z.infer<typeof Asset>;
|
|
91
90
|
declare const AssetDetails: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
92
91
|
chain: z.ZodString;
|
|
93
|
-
address: z.ZodString
|
|
92
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
94
93
|
name: z.ZodString;
|
|
95
94
|
symbol: z.ZodString;
|
|
96
95
|
decimals: z.ZodNumber;
|
|
@@ -135,7 +134,7 @@ declare const Realm: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
135
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
136
135
|
type: z.ZodLiteral<"issuer">;
|
|
137
136
|
issuer: z.ZodString;
|
|
138
|
-
}, z.core.$strip>]>;
|
|
137
|
+
}, z.core.$strip>], "type">;
|
|
139
138
|
type Realm = z.infer<typeof Realm>;
|
|
140
139
|
declare const RampName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
141
140
|
type RampName = z.infer<typeof RampName>;
|
|
@@ -145,8 +144,8 @@ declare const RampType: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<{
|
|
|
145
144
|
}>>;
|
|
146
145
|
type RampType = z.infer<typeof RampType>;
|
|
147
146
|
declare const TransactionRequest: z.ZodObject<{
|
|
148
|
-
to: z.ZodString
|
|
149
|
-
from: z.ZodOptional<z.ZodString
|
|
147
|
+
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
148
|
+
from: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
150
149
|
nonce: z.ZodOptional<z.ZodNumber>;
|
|
151
150
|
gasLimit: z.ZodOptional<z.ZodBigInt>;
|
|
152
151
|
gasPrice: z.ZodOptional<z.ZodBigInt>;
|
|
@@ -161,46 +160,63 @@ declare const TransactionReceipt: z.ZodObject<{
|
|
|
161
160
|
transactionHash: z.ZodOptional<z.ZodString>;
|
|
162
161
|
blockHash: z.ZodOptional<z.ZodString>;
|
|
163
162
|
blockNumber: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
from: z.ZodOptional<z.ZodString
|
|
165
|
-
to: z.ZodOptional<z.ZodString
|
|
163
|
+
from: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
164
|
+
to: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
166
165
|
rawReceipt: z.ZodAny;
|
|
167
166
|
}, z.core.$strip>;
|
|
168
167
|
type TransactionReceipt = z.infer<typeof TransactionReceipt>;
|
|
169
168
|
declare const EVMChainConfig: z.ZodObject<{
|
|
170
169
|
chain_id: z.ZodBigInt;
|
|
171
170
|
network: z.ZodString;
|
|
171
|
+
explorer: z.ZodOptional<z.ZodURL>;
|
|
172
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
173
|
+
is_testnet: z.ZodBoolean;
|
|
174
|
+
address_family: z.ZodLiteral<"EVM">;
|
|
172
175
|
native_currency: z.ZodObject<{
|
|
173
176
|
name: z.ZodString;
|
|
174
177
|
symbol: z.ZodString;
|
|
175
178
|
decimals: z.ZodNumber;
|
|
176
179
|
}, z.core.$strip>;
|
|
177
|
-
rpc: z.ZodString
|
|
178
|
-
image: z.ZodString;
|
|
179
|
-
is_testnet: z.ZodBoolean;
|
|
180
|
-
explorer: z.ZodString;
|
|
180
|
+
rpc: z.ZodOptional<z.ZodString>;
|
|
181
181
|
}, z.core.$strip>;
|
|
182
182
|
type EVMChainConfig = z.infer<typeof EVMChainConfig>;
|
|
183
183
|
declare const SolChainConfig: z.ZodObject<{
|
|
184
184
|
chain_id: z.ZodBigInt;
|
|
185
185
|
network: z.ZodString;
|
|
186
|
+
explorer: z.ZodOptional<z.ZodURL>;
|
|
187
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
188
|
+
is_testnet: z.ZodBoolean;
|
|
189
|
+
address_family: z.ZodLiteral<"SOL">;
|
|
186
190
|
}, z.core.$strip>;
|
|
187
191
|
type SolChainConfig = z.infer<typeof SolChainConfig>;
|
|
188
|
-
declare const ChainConfig: z.
|
|
192
|
+
declare const ChainConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
189
193
|
chain_id: z.ZodBigInt;
|
|
190
194
|
network: z.ZodString;
|
|
195
|
+
explorer: z.ZodOptional<z.ZodURL>;
|
|
196
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
197
|
+
is_testnet: z.ZodBoolean;
|
|
198
|
+
address_family: z.ZodLiteral<"EVM">;
|
|
191
199
|
native_currency: z.ZodObject<{
|
|
192
200
|
name: z.ZodString;
|
|
193
201
|
symbol: z.ZodString;
|
|
194
202
|
decimals: z.ZodNumber;
|
|
195
203
|
}, z.core.$strip>;
|
|
196
|
-
rpc: z.ZodString
|
|
197
|
-
|
|
204
|
+
rpc: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
chain_id: z.ZodBigInt;
|
|
207
|
+
network: z.ZodString;
|
|
208
|
+
explorer: z.ZodOptional<z.ZodURL>;
|
|
209
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
198
210
|
is_testnet: z.ZodBoolean;
|
|
199
|
-
|
|
211
|
+
address_family: z.ZodLiteral<"SOL">;
|
|
200
212
|
}, z.core.$strip>, z.ZodObject<{
|
|
201
213
|
chain_id: z.ZodBigInt;
|
|
202
214
|
network: z.ZodString;
|
|
203
|
-
|
|
215
|
+
address_family: z.ZodUndefined;
|
|
216
|
+
explorer: z.ZodOptional<z.ZodURL>;
|
|
217
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
218
|
+
is_testnet: z.ZodBoolean;
|
|
219
|
+
}, z.core.$strip>], "address_family">;
|
|
204
220
|
type ChainConfig = z.infer<typeof ChainConfig>;
|
|
205
221
|
declare const OnrampMethod: z.ZodEnum<{
|
|
206
222
|
CREDIT_CARD: "CREDIT_CARD";
|
|
@@ -401,12 +417,18 @@ declare const RequestForQuotes: z.ZodObject<{
|
|
|
401
417
|
}>>>;
|
|
402
418
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
403
419
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
420
|
+
label: z.ZodOptional<z.ZodString>;
|
|
404
421
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
405
422
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
406
423
|
BETA_EDGES: "BETA_EDGES";
|
|
407
424
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
408
425
|
ORG_EDGES: "ORG_EDGES";
|
|
409
426
|
}>>>;
|
|
427
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
428
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
410
432
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
411
433
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
412
434
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -414,7 +436,21 @@ declare const RequestForQuotes: z.ZodObject<{
|
|
|
414
436
|
amount: z.ZodString;
|
|
415
437
|
}, z.core.$strip>;
|
|
416
438
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
417
|
-
|
|
439
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
440
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
442
|
+
target: z.ZodString;
|
|
443
|
+
value: z.ZodObject<{
|
|
444
|
+
"#": z.ZodString;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
calldata: z.ZodString;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
user_estimated_gas: z.ZodObject<{
|
|
449
|
+
"#": z.ZodString;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>], "kind">;
|
|
418
454
|
}, z.core.$strip>;
|
|
419
455
|
type RequestForQuotes = z.infer<typeof RequestForQuotes>;
|
|
420
456
|
declare const Account: z.ZodEnum<{
|
|
@@ -470,7 +506,7 @@ declare const Issue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
470
506
|
}, z.core.$strip>, z.ZodObject<{
|
|
471
507
|
kind: z.ZodLiteral<"unknown">;
|
|
472
508
|
message: z.ZodString;
|
|
473
|
-
}, z.core.$strip>]>;
|
|
509
|
+
}, z.core.$strip>], "kind">;
|
|
474
510
|
type Issue = z.infer<typeof Issue>;
|
|
475
511
|
declare const Failure: z.ZodObject<{
|
|
476
512
|
service_ids: z.ZodArray<z.ZodString>;
|
|
@@ -496,7 +532,7 @@ declare const Failure: z.ZodObject<{
|
|
|
496
532
|
}, z.core.$strip>, z.ZodObject<{
|
|
497
533
|
kind: z.ZodLiteral<"unknown">;
|
|
498
534
|
message: z.ZodString;
|
|
499
|
-
}, z.core.$strip>]>>>;
|
|
535
|
+
}, z.core.$strip>], "kind">>>;
|
|
500
536
|
}, z.core.$strip>;
|
|
501
537
|
type Failure = z.infer<typeof Failure>;
|
|
502
538
|
declare const RouteType: z.ZodUnion<readonly [z.ZodLiteral<"USER_FUND">, z.ZodLiteral<"ONCHAIN_STEP">, z.ZodLiteral<"ONRAMP">]>;
|
|
@@ -775,12 +811,18 @@ declare const QuotesResponse: z.ZodObject<{
|
|
|
775
811
|
}>>>;
|
|
776
812
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
777
813
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
814
|
+
label: z.ZodOptional<z.ZodString>;
|
|
778
815
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
779
816
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
780
817
|
BETA_EDGES: "BETA_EDGES";
|
|
781
818
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
782
819
|
ORG_EDGES: "ORG_EDGES";
|
|
783
820
|
}>>>;
|
|
821
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
822
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
823
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
825
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
784
826
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
785
827
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
786
828
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -788,7 +830,21 @@ declare const QuotesResponse: z.ZodObject<{
|
|
|
788
830
|
amount: z.ZodString;
|
|
789
831
|
}, z.core.$strip>;
|
|
790
832
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
791
|
-
|
|
833
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
834
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
835
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
836
|
+
target: z.ZodString;
|
|
837
|
+
value: z.ZodObject<{
|
|
838
|
+
"#": z.ZodString;
|
|
839
|
+
}, z.core.$strip>;
|
|
840
|
+
calldata: z.ZodString;
|
|
841
|
+
}, z.core.$strip>>;
|
|
842
|
+
user_estimated_gas: z.ZodObject<{
|
|
843
|
+
"#": z.ZodString;
|
|
844
|
+
}, z.core.$strip>;
|
|
845
|
+
}, z.core.$strip>>;
|
|
846
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
847
|
+
}, z.core.$strip>], "kind">;
|
|
792
848
|
}, z.core.$strip>;
|
|
793
849
|
quotes: z.ZodArray<z.ZodObject<{
|
|
794
850
|
payment_id: z.ZodString;
|
|
@@ -896,23 +952,25 @@ declare const QuotesResponse: z.ZodObject<{
|
|
|
896
952
|
}, z.core.$strip>, z.ZodObject<{
|
|
897
953
|
kind: z.ZodLiteral<"unknown">;
|
|
898
954
|
message: z.ZodString;
|
|
899
|
-
}, z.core.$strip>]>>>;
|
|
955
|
+
}, z.core.$strip>], "kind">>>;
|
|
900
956
|
}, z.core.$strip>>;
|
|
901
957
|
}, z.core.$strip>;
|
|
902
958
|
type QuotesResponse = z.infer<typeof QuotesResponse>;
|
|
903
959
|
declare const RequestForConfirmQuote: z.ZodObject<{
|
|
904
960
|
payment_id: z.ZodString;
|
|
905
961
|
state_token: z.ZodString;
|
|
906
|
-
|
|
907
|
-
|
|
962
|
+
owner_chain: z.ZodOptional<z.ZodString>;
|
|
963
|
+
owner_address: z.ZodString;
|
|
964
|
+
destination_address: z.ZodString;
|
|
908
965
|
client_redirect_url: z.ZodOptional<z.ZodString>;
|
|
966
|
+
allow_unsafe_owner: z.ZodOptional<z.ZodBoolean>;
|
|
909
967
|
}, z.core.$strip>;
|
|
910
968
|
type RequestForConfirmQuote = z.infer<typeof RequestForConfirmQuote>;
|
|
911
969
|
declare const DepositInfo: z.ZodObject<{
|
|
912
970
|
deposit_token: z.ZodString;
|
|
913
971
|
deposit_chain: z.ZodString;
|
|
914
972
|
deposit_amount: z.ZodString;
|
|
915
|
-
deposit_address: z.
|
|
973
|
+
deposit_address: z.ZodString;
|
|
916
974
|
}, z.core.$strip>;
|
|
917
975
|
type DepositInfo = z.infer<typeof DepositInfo>;
|
|
918
976
|
declare const NextInstruction: z.ZodObject<{
|
|
@@ -926,12 +984,13 @@ declare const NextInstruction: z.ZodObject<{
|
|
|
926
984
|
deposit_token: z.ZodString;
|
|
927
985
|
deposit_chain: z.ZodString;
|
|
928
986
|
deposit_amount: z.ZodString;
|
|
929
|
-
deposit_address: z.
|
|
987
|
+
deposit_address: z.ZodString;
|
|
930
988
|
}, z.core.$strip>>;
|
|
931
989
|
}, z.core.$strip>;
|
|
932
990
|
type NextInstruction = z.infer<typeof NextInstruction>;
|
|
933
991
|
declare const ConfirmQuoteResponse: z.ZodObject<{
|
|
934
992
|
payment_id: z.ZodString;
|
|
993
|
+
org_id: z.ZodString;
|
|
935
994
|
status: z.ZodEnum<{
|
|
936
995
|
COMPLETE: "COMPLETE";
|
|
937
996
|
FAILED: "FAILED";
|
|
@@ -967,12 +1026,18 @@ declare const ConfirmQuoteResponse: z.ZodObject<{
|
|
|
967
1026
|
}>>>;
|
|
968
1027
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
969
1028
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
label: z.ZodOptional<z.ZodString>;
|
|
970
1030
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
971
1031
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
972
1032
|
BETA_EDGES: "BETA_EDGES";
|
|
973
1033
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
974
1034
|
ORG_EDGES: "ORG_EDGES";
|
|
975
1035
|
}>>>;
|
|
1036
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
1038
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
1039
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
1040
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
976
1041
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
977
1042
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
978
1043
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -980,7 +1045,21 @@ declare const ConfirmQuoteResponse: z.ZodObject<{
|
|
|
980
1045
|
amount: z.ZodString;
|
|
981
1046
|
}, z.core.$strip>;
|
|
982
1047
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
983
|
-
|
|
1048
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
1049
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1050
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
1051
|
+
target: z.ZodString;
|
|
1052
|
+
value: z.ZodObject<{
|
|
1053
|
+
"#": z.ZodString;
|
|
1054
|
+
}, z.core.$strip>;
|
|
1055
|
+
calldata: z.ZodString;
|
|
1056
|
+
}, z.core.$strip>>;
|
|
1057
|
+
user_estimated_gas: z.ZodObject<{
|
|
1058
|
+
"#": z.ZodString;
|
|
1059
|
+
}, z.core.$strip>;
|
|
1060
|
+
}, z.core.$strip>>;
|
|
1061
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
}, z.core.$strip>], "kind">;
|
|
984
1063
|
}, z.core.$strip>;
|
|
985
1064
|
quoted: z.ZodObject<{
|
|
986
1065
|
onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -1139,12 +1218,14 @@ declare const ConfirmQuoteResponse: z.ZodObject<{
|
|
|
1139
1218
|
current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
|
|
1140
1219
|
price_currency: z.ZodString;
|
|
1141
1220
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1142
1222
|
processing_addresses: z.ZodArray<z.ZodObject<{
|
|
1143
|
-
address: z.
|
|
1223
|
+
address: z.ZodString;
|
|
1144
1224
|
chain: z.ZodString;
|
|
1145
1225
|
}, z.core.$strip>>;
|
|
1146
|
-
|
|
1147
|
-
|
|
1226
|
+
owner_chain: z.ZodString;
|
|
1227
|
+
owner_address: z.ZodString;
|
|
1228
|
+
destination_address: z.ZodString;
|
|
1148
1229
|
next_instruction: z.ZodOptional<z.ZodObject<{
|
|
1149
1230
|
type: z.ZodEnum<{
|
|
1150
1231
|
ONRAMP: "ONRAMP";
|
|
@@ -1156,14 +1237,16 @@ declare const ConfirmQuoteResponse: z.ZodObject<{
|
|
|
1156
1237
|
deposit_token: z.ZodString;
|
|
1157
1238
|
deposit_chain: z.ZodString;
|
|
1158
1239
|
deposit_amount: z.ZodString;
|
|
1159
|
-
deposit_address: z.
|
|
1240
|
+
deposit_address: z.ZodString;
|
|
1160
1241
|
}, z.core.$strip>>;
|
|
1161
1242
|
}, z.core.$strip>>;
|
|
1162
1243
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
client_redirect_url: z.ZodNullable<z.ZodString>;
|
|
1163
1245
|
}, z.core.$strip>;
|
|
1164
1246
|
type ConfirmQuoteResponse = z.infer<typeof ConfirmQuoteResponse>;
|
|
1165
1247
|
declare const PaymentStatus: z.ZodObject<{
|
|
1166
1248
|
payment_id: z.ZodString;
|
|
1249
|
+
org_id: z.ZodString;
|
|
1167
1250
|
status: z.ZodEnum<{
|
|
1168
1251
|
COMPLETE: "COMPLETE";
|
|
1169
1252
|
FAILED: "FAILED";
|
|
@@ -1199,12 +1282,18 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1199
1282
|
}>>>;
|
|
1200
1283
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
1201
1284
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1202
1286
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1203
1287
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1204
1288
|
BETA_EDGES: "BETA_EDGES";
|
|
1205
1289
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
1206
1290
|
ORG_EDGES: "ORG_EDGES";
|
|
1207
1291
|
}>>>;
|
|
1292
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
1293
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
1294
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
1295
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
1296
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
1208
1297
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1209
1298
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
1210
1299
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -1212,7 +1301,21 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1212
1301
|
amount: z.ZodString;
|
|
1213
1302
|
}, z.core.$strip>;
|
|
1214
1303
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1215
|
-
|
|
1304
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
1305
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1306
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
1307
|
+
target: z.ZodString;
|
|
1308
|
+
value: z.ZodObject<{
|
|
1309
|
+
"#": z.ZodString;
|
|
1310
|
+
}, z.core.$strip>;
|
|
1311
|
+
calldata: z.ZodString;
|
|
1312
|
+
}, z.core.$strip>>;
|
|
1313
|
+
user_estimated_gas: z.ZodObject<{
|
|
1314
|
+
"#": z.ZodString;
|
|
1315
|
+
}, z.core.$strip>;
|
|
1316
|
+
}, z.core.$strip>>;
|
|
1317
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
}, z.core.$strip>], "kind">;
|
|
1216
1319
|
}, z.core.$strip>;
|
|
1217
1320
|
quoted: z.ZodObject<{
|
|
1218
1321
|
onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -1371,12 +1474,14 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1371
1474
|
current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
|
|
1372
1475
|
price_currency: z.ZodString;
|
|
1373
1476
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1374
1478
|
processing_addresses: z.ZodArray<z.ZodObject<{
|
|
1375
|
-
address: z.
|
|
1479
|
+
address: z.ZodString;
|
|
1376
1480
|
chain: z.ZodString;
|
|
1377
1481
|
}, z.core.$strip>>;
|
|
1378
|
-
|
|
1379
|
-
|
|
1482
|
+
owner_chain: z.ZodString;
|
|
1483
|
+
owner_address: z.ZodString;
|
|
1484
|
+
destination_address: z.ZodString;
|
|
1380
1485
|
next_instruction: z.ZodOptional<z.ZodObject<{
|
|
1381
1486
|
type: z.ZodEnum<{
|
|
1382
1487
|
ONRAMP: "ONRAMP";
|
|
@@ -1388,15 +1493,17 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1388
1493
|
deposit_token: z.ZodString;
|
|
1389
1494
|
deposit_chain: z.ZodString;
|
|
1390
1495
|
deposit_amount: z.ZodString;
|
|
1391
|
-
deposit_address: z.
|
|
1496
|
+
deposit_address: z.ZodString;
|
|
1392
1497
|
}, z.core.$strip>>;
|
|
1393
1498
|
}, z.core.$strip>>;
|
|
1394
1499
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1500
|
+
client_redirect_url: z.ZodNullable<z.ZodString>;
|
|
1395
1501
|
}, z.core.$strip>;
|
|
1396
1502
|
type PaymentStatus = z.infer<typeof PaymentStatus>;
|
|
1397
1503
|
declare const RequestForOnrampSession: z.ZodObject<{
|
|
1398
1504
|
payment_id: z.ZodString;
|
|
1399
|
-
redirect_url: z.
|
|
1505
|
+
redirect_url: z.ZodString;
|
|
1506
|
+
referrer_domain: z.ZodOptional<z.ZodString>;
|
|
1400
1507
|
}, z.core.$strip>;
|
|
1401
1508
|
type RequestForOnrampSession = z.infer<typeof RequestForOnrampSession>;
|
|
1402
1509
|
declare const OnrampSessionResponse: z.ZodObject<{
|
|
@@ -1408,18 +1515,20 @@ type OnrampSessionResponse = z.infer<typeof OnrampSessionResponse>;
|
|
|
1408
1515
|
declare const RequestForPaymentsHistory: z.ZodObject<{
|
|
1409
1516
|
id_query: z.ZodOptional<z.ZodString>;
|
|
1410
1517
|
pagination_key: z.ZodOptional<z.ZodString>;
|
|
1411
|
-
dest_address: z.ZodOptional<z.
|
|
1412
|
-
owner_address: z.ZodOptional<z.
|
|
1518
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
owner_address: z.ZodOptional<z.ZodString>;
|
|
1413
1520
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1414
1521
|
category: z.ZodOptional<z.ZodEnum<{
|
|
1415
1522
|
ALL: "ALL";
|
|
1416
1523
|
NEW_OR_FUNDED: "NEW_OR_FUNDED";
|
|
1417
1524
|
}>>;
|
|
1525
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1418
1526
|
}, z.core.$strip>;
|
|
1419
1527
|
type RequestForPaymentsHistory = z.infer<typeof RequestForPaymentsHistory>;
|
|
1420
1528
|
declare const PaymentHistoryResult: z.ZodObject<{
|
|
1421
1529
|
payment_statuses: z.ZodArray<z.ZodObject<{
|
|
1422
1530
|
payment_id: z.ZodString;
|
|
1531
|
+
org_id: z.ZodString;
|
|
1423
1532
|
status: z.ZodEnum<{
|
|
1424
1533
|
COMPLETE: "COMPLETE";
|
|
1425
1534
|
FAILED: "FAILED";
|
|
@@ -1455,12 +1564,18 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1455
1564
|
}>>>;
|
|
1456
1565
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
1457
1566
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1567
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1458
1568
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1459
1569
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1460
1570
|
BETA_EDGES: "BETA_EDGES";
|
|
1461
1571
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
1462
1572
|
ORG_EDGES: "ORG_EDGES";
|
|
1463
1573
|
}>>>;
|
|
1574
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
1576
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
1577
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
1578
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
1464
1579
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1465
1580
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
1466
1581
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -1468,7 +1583,21 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1468
1583
|
amount: z.ZodString;
|
|
1469
1584
|
}, z.core.$strip>;
|
|
1470
1585
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1471
|
-
|
|
1586
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
1587
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1588
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
1589
|
+
target: z.ZodString;
|
|
1590
|
+
value: z.ZodObject<{
|
|
1591
|
+
"#": z.ZodString;
|
|
1592
|
+
}, z.core.$strip>;
|
|
1593
|
+
calldata: z.ZodString;
|
|
1594
|
+
}, z.core.$strip>>;
|
|
1595
|
+
user_estimated_gas: z.ZodObject<{
|
|
1596
|
+
"#": z.ZodString;
|
|
1597
|
+
}, z.core.$strip>;
|
|
1598
|
+
}, z.core.$strip>>;
|
|
1599
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1600
|
+
}, z.core.$strip>], "kind">;
|
|
1472
1601
|
}, z.core.$strip>;
|
|
1473
1602
|
quoted: z.ZodObject<{
|
|
1474
1603
|
onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -1627,12 +1756,14 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1627
1756
|
current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
|
|
1628
1757
|
price_currency: z.ZodString;
|
|
1629
1758
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1759
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1630
1760
|
processing_addresses: z.ZodArray<z.ZodObject<{
|
|
1631
|
-
address: z.
|
|
1761
|
+
address: z.ZodString;
|
|
1632
1762
|
chain: z.ZodString;
|
|
1633
1763
|
}, z.core.$strip>>;
|
|
1634
|
-
|
|
1635
|
-
|
|
1764
|
+
owner_chain: z.ZodString;
|
|
1765
|
+
owner_address: z.ZodString;
|
|
1766
|
+
destination_address: z.ZodString;
|
|
1636
1767
|
next_instruction: z.ZodOptional<z.ZodObject<{
|
|
1637
1768
|
type: z.ZodEnum<{
|
|
1638
1769
|
ONRAMP: "ONRAMP";
|
|
@@ -1644,10 +1775,11 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1644
1775
|
deposit_token: z.ZodString;
|
|
1645
1776
|
deposit_chain: z.ZodString;
|
|
1646
1777
|
deposit_amount: z.ZodString;
|
|
1647
|
-
deposit_address: z.
|
|
1778
|
+
deposit_address: z.ZodString;
|
|
1648
1779
|
}, z.core.$strip>>;
|
|
1649
1780
|
}, z.core.$strip>>;
|
|
1650
1781
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
client_redirect_url: z.ZodNullable<z.ZodString>;
|
|
1651
1783
|
}, z.core.$strip>>;
|
|
1652
1784
|
next_pagination_key: z.ZodNullable<z.ZodString>;
|
|
1653
1785
|
}, z.core.$strip>;
|
|
@@ -1655,10 +1787,10 @@ type PaymentHistoryResult = z.infer<typeof PaymentHistoryResult>;
|
|
|
1655
1787
|
declare const RequestForBalance: z.ZodObject<{
|
|
1656
1788
|
payment_id: z.ZodOptional<z.ZodString>;
|
|
1657
1789
|
custom_queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1658
|
-
address: z.
|
|
1790
|
+
address: z.ZodString;
|
|
1659
1791
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
1660
1792
|
chain: z.ZodString;
|
|
1661
|
-
address: z.ZodString
|
|
1793
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
1662
1794
|
}, z.core.$strip>, z.ZodObject<{
|
|
1663
1795
|
chain: z.ZodLiteral<"solana">;
|
|
1664
1796
|
address: z.ZodString;
|
|
@@ -1671,14 +1803,14 @@ declare const RequestForBalance: z.ZodObject<{
|
|
|
1671
1803
|
type RequestForBalance = z.infer<typeof RequestForBalance>;
|
|
1672
1804
|
declare const BalanceResponse: z.ZodObject<{
|
|
1673
1805
|
balance_results: z.ZodArray<z.ZodObject<{
|
|
1674
|
-
address: z.
|
|
1806
|
+
address: z.ZodString;
|
|
1675
1807
|
token: z.ZodString;
|
|
1676
1808
|
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1677
1809
|
kind: z.ZodLiteral<"amount">;
|
|
1678
1810
|
amount: z.ZodString;
|
|
1679
1811
|
}, z.core.$strip>, z.ZodObject<{
|
|
1680
1812
|
kind: z.ZodLiteral<"error">;
|
|
1681
|
-
}, z.core.$strip>]>;
|
|
1813
|
+
}, z.core.$strip>], "kind">;
|
|
1682
1814
|
}, z.core.$strip>>;
|
|
1683
1815
|
}, z.core.$strip>;
|
|
1684
1816
|
type BalanceResponse = z.infer<typeof BalanceResponse>;
|
|
@@ -1695,7 +1827,7 @@ declare const RequestForWithdrawAuthorization: z.ZodObject<{
|
|
|
1695
1827
|
token: z.ZodString;
|
|
1696
1828
|
amount: z.ZodString;
|
|
1697
1829
|
}, z.core.$strip>>;
|
|
1698
|
-
recipient_address: z.
|
|
1830
|
+
recipient_address: z.ZodString;
|
|
1699
1831
|
}, z.core.$strip>;
|
|
1700
1832
|
type RequestForWithdrawAuthorization = z.infer<typeof RequestForWithdrawAuthorization>;
|
|
1701
1833
|
declare const WithdrawAuthorizationResponse: z.ZodObject<{
|
|
@@ -1709,7 +1841,7 @@ declare const RequestForWithdraw: z.ZodObject<{
|
|
|
1709
1841
|
token: z.ZodString;
|
|
1710
1842
|
amount: z.ZodString;
|
|
1711
1843
|
}, z.core.$strip>>;
|
|
1712
|
-
recipient_address: z.
|
|
1844
|
+
recipient_address: z.ZodString;
|
|
1713
1845
|
owner_signature: z.ZodString;
|
|
1714
1846
|
}, z.core.$strip>;
|
|
1715
1847
|
type RequestForWithdraw = z.infer<typeof RequestForWithdraw>;
|
|
@@ -1915,5 +2047,5 @@ declare class HSON {
|
|
|
1915
2047
|
static parse(str: string): any;
|
|
1916
2048
|
}
|
|
1917
2049
|
|
|
1918
|
-
export { Account, Address, Amount, Asset, AssetDetails, AssetFilters, BalanceResponse, ChainConfig, ChangeAmount, ConfirmQuoteResponse, DepositInfo, EVMAddress, EVMChainConfig, EVMTokenAddress, EVMTokenDetails, ErrorCodes, Failure, Feature, Fiat, FiatDetails, Fulfillment, FulfillmentRoute, HSON, IPAddressOverride, InputsAssetFilters, Issue, NextInstruction, ObservedStatus, OnrampMethod, OnrampSessionResponse, OutputsAssetFilters, PaymentHistoryResult, PaymentId, PaymentStatus, PaymentsApiClientError, Prices, Quote, QuotedRoute, QuotesResponse, RampName, RampType, Realm, RequestForBalance, RequestForConfirmQuote, RequestForOnrampSession, RequestForPaymentsHistory, RequestForPrices, RequestForQuotes, RequestForWithdraw, RequestForWithdrawAuthorization, RouteType, SolAddress, SolChainConfig, SolTokenAddress, SolTokenDetails, Token, TokenDetails, TransactionReceipt, TransactionRequest, TypedData, WithdrawAuthorizationResponse, WithdrawResponse, PaymentsApiClient as default };
|
|
2050
|
+
export { Account, Address, Amount, Asset, AssetDetails, AssetFilters, BalanceResponse, ChainConfig, ChangeAmount, ConfirmQuoteResponse, DepositInfo, EVMAddress, EVMChainConfig, EVMTokenAddress, EVMTokenDetails, ErrorCodes, Failure, Feature, Fiat, FiatDetails, Fulfillment, FulfillmentRoute, HSON, IPAddressOverride, InputsAssetFilters, Issue, NextInstruction, ObservedStatus, OnrampMethod, OnrampSessionResponse, OutputsAssetFilters, PaymentHistoryResult, PaymentId, PaymentStatus, PaymentsApiClientError, Prices, Quote, QuotedRoute, QuotesResponse, RampName, RampType, Realm, RequestForBalance, RequestForConfirmQuote, RequestForOnrampSession, RequestForPaymentsHistory, RequestForPrices, RequestForQuotes, RequestForWithdraw, RequestForWithdrawAuthorization, RouteType, SolAddress, SolChainConfig, SolAddress as SolTokenAddress, SolTokenDetails, Token, TokenDetails, TransactionReceipt, TransactionRequest, TypedData, WithdrawAuthorizationResponse, WithdrawResponse, PaymentsApiClient as default };
|
|
1919
2051
|
export type { PaymentsApiClientOptions, ResponseValidationOptions };
|