@halliday-sdk/payments 2.7.2 → 2.7.4
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 +188 -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 +42 -36
- 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,7 +1237,7 @@ 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>;
|
|
@@ -1164,6 +1245,7 @@ declare const ConfirmQuoteResponse: z.ZodObject<{
|
|
|
1164
1245
|
type ConfirmQuoteResponse = z.infer<typeof ConfirmQuoteResponse>;
|
|
1165
1246
|
declare const PaymentStatus: z.ZodObject<{
|
|
1166
1247
|
payment_id: z.ZodString;
|
|
1248
|
+
org_id: z.ZodString;
|
|
1167
1249
|
status: z.ZodEnum<{
|
|
1168
1250
|
COMPLETE: "COMPLETE";
|
|
1169
1251
|
FAILED: "FAILED";
|
|
@@ -1199,12 +1281,18 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1199
1281
|
}>>>;
|
|
1200
1282
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
1201
1283
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1202
1285
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1203
1286
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1204
1287
|
BETA_EDGES: "BETA_EDGES";
|
|
1205
1288
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
1206
1289
|
ORG_EDGES: "ORG_EDGES";
|
|
1207
1290
|
}>>>;
|
|
1291
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
1293
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
1294
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
1295
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
1208
1296
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1209
1297
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
1210
1298
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -1212,7 +1300,21 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1212
1300
|
amount: z.ZodString;
|
|
1213
1301
|
}, z.core.$strip>;
|
|
1214
1302
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1215
|
-
|
|
1303
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
1304
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1305
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
1306
|
+
target: z.ZodString;
|
|
1307
|
+
value: z.ZodObject<{
|
|
1308
|
+
"#": z.ZodString;
|
|
1309
|
+
}, z.core.$strip>;
|
|
1310
|
+
calldata: z.ZodString;
|
|
1311
|
+
}, z.core.$strip>>;
|
|
1312
|
+
user_estimated_gas: z.ZodObject<{
|
|
1313
|
+
"#": z.ZodString;
|
|
1314
|
+
}, z.core.$strip>;
|
|
1315
|
+
}, z.core.$strip>>;
|
|
1316
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
}, z.core.$strip>], "kind">;
|
|
1216
1318
|
}, z.core.$strip>;
|
|
1217
1319
|
quoted: z.ZodObject<{
|
|
1218
1320
|
onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -1371,12 +1473,14 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1371
1473
|
current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
|
|
1372
1474
|
price_currency: z.ZodString;
|
|
1373
1475
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1374
1477
|
processing_addresses: z.ZodArray<z.ZodObject<{
|
|
1375
|
-
address: z.
|
|
1478
|
+
address: z.ZodString;
|
|
1376
1479
|
chain: z.ZodString;
|
|
1377
1480
|
}, z.core.$strip>>;
|
|
1378
|
-
|
|
1379
|
-
|
|
1481
|
+
owner_chain: z.ZodString;
|
|
1482
|
+
owner_address: z.ZodString;
|
|
1483
|
+
destination_address: z.ZodString;
|
|
1380
1484
|
next_instruction: z.ZodOptional<z.ZodObject<{
|
|
1381
1485
|
type: z.ZodEnum<{
|
|
1382
1486
|
ONRAMP: "ONRAMP";
|
|
@@ -1388,7 +1492,7 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1388
1492
|
deposit_token: z.ZodString;
|
|
1389
1493
|
deposit_chain: z.ZodString;
|
|
1390
1494
|
deposit_amount: z.ZodString;
|
|
1391
|
-
deposit_address: z.
|
|
1495
|
+
deposit_address: z.ZodString;
|
|
1392
1496
|
}, z.core.$strip>>;
|
|
1393
1497
|
}, z.core.$strip>>;
|
|
1394
1498
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1396,7 +1500,8 @@ declare const PaymentStatus: z.ZodObject<{
|
|
|
1396
1500
|
type PaymentStatus = z.infer<typeof PaymentStatus>;
|
|
1397
1501
|
declare const RequestForOnrampSession: z.ZodObject<{
|
|
1398
1502
|
payment_id: z.ZodString;
|
|
1399
|
-
redirect_url: z.
|
|
1503
|
+
redirect_url: z.ZodString;
|
|
1504
|
+
referrer_domain: z.ZodOptional<z.ZodString>;
|
|
1400
1505
|
}, z.core.$strip>;
|
|
1401
1506
|
type RequestForOnrampSession = z.infer<typeof RequestForOnrampSession>;
|
|
1402
1507
|
declare const OnrampSessionResponse: z.ZodObject<{
|
|
@@ -1408,18 +1513,20 @@ type OnrampSessionResponse = z.infer<typeof OnrampSessionResponse>;
|
|
|
1408
1513
|
declare const RequestForPaymentsHistory: z.ZodObject<{
|
|
1409
1514
|
id_query: z.ZodOptional<z.ZodString>;
|
|
1410
1515
|
pagination_key: z.ZodOptional<z.ZodString>;
|
|
1411
|
-
dest_address: z.ZodOptional<z.
|
|
1412
|
-
owner_address: z.ZodOptional<z.
|
|
1516
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
owner_address: z.ZodOptional<z.ZodString>;
|
|
1413
1518
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1414
1519
|
category: z.ZodOptional<z.ZodEnum<{
|
|
1415
1520
|
ALL: "ALL";
|
|
1416
1521
|
NEW_OR_FUNDED: "NEW_OR_FUNDED";
|
|
1417
1522
|
}>>;
|
|
1523
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1418
1524
|
}, z.core.$strip>;
|
|
1419
1525
|
type RequestForPaymentsHistory = z.infer<typeof RequestForPaymentsHistory>;
|
|
1420
1526
|
declare const PaymentHistoryResult: z.ZodObject<{
|
|
1421
1527
|
payment_statuses: z.ZodArray<z.ZodObject<{
|
|
1422
1528
|
payment_id: z.ZodString;
|
|
1529
|
+
org_id: z.ZodString;
|
|
1423
1530
|
status: z.ZodEnum<{
|
|
1424
1531
|
COMPLETE: "COMPLETE";
|
|
1425
1532
|
FAILED: "FAILED";
|
|
@@ -1455,12 +1562,18 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1455
1562
|
}>>>;
|
|
1456
1563
|
customer_ip_address: z.ZodOptional<z.ZodString>;
|
|
1457
1564
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1565
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1458
1566
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
1459
1567
|
features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1460
1568
|
BETA_EDGES: "BETA_EDGES";
|
|
1461
1569
|
ORG_BETA_EDGES: "ORG_BETA_EDGES";
|
|
1462
1570
|
ORG_EDGES: "ORG_EDGES";
|
|
1463
1571
|
}>>>;
|
|
1572
|
+
rev_share_name: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
allow_unsafe_transfer_out: z.ZodOptional<z.ZodBoolean>;
|
|
1574
|
+
show_all_issues: z.ZodOptional<z.ZodBoolean>;
|
|
1575
|
+
allow_exceed_max_input_limit: z.ZodOptional<z.ZodBoolean>;
|
|
1576
|
+
allow_unsafe_slippage: z.ZodOptional<z.ZodBoolean>;
|
|
1464
1577
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1465
1578
|
kind: z.ZodLiteral<"FIXED_INPUT">;
|
|
1466
1579
|
fixed_input_amount: z.ZodObject<{
|
|
@@ -1468,7 +1581,21 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1468
1581
|
amount: z.ZodString;
|
|
1469
1582
|
}, z.core.$strip>;
|
|
1470
1583
|
output_asset: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1471
|
-
|
|
1584
|
+
custom_actions: z.ZodOptional<z.ZodObject<{
|
|
1585
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1586
|
+
type: z.ZodLiteral<"CallImmediateAction">;
|
|
1587
|
+
target: z.ZodString;
|
|
1588
|
+
value: z.ZodObject<{
|
|
1589
|
+
"#": z.ZodString;
|
|
1590
|
+
}, z.core.$strip>;
|
|
1591
|
+
calldata: z.ZodString;
|
|
1592
|
+
}, z.core.$strip>>;
|
|
1593
|
+
user_estimated_gas: z.ZodObject<{
|
|
1594
|
+
"#": z.ZodString;
|
|
1595
|
+
}, z.core.$strip>;
|
|
1596
|
+
}, z.core.$strip>>;
|
|
1597
|
+
dest_address: z.ZodOptional<z.ZodString>;
|
|
1598
|
+
}, z.core.$strip>], "kind">;
|
|
1472
1599
|
}, z.core.$strip>;
|
|
1473
1600
|
quoted: z.ZodObject<{
|
|
1474
1601
|
onramp: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
@@ -1627,12 +1754,14 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1627
1754
|
current_prices: z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodString]>, z.ZodString>;
|
|
1628
1755
|
price_currency: z.ZodString;
|
|
1629
1756
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
1757
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1630
1758
|
processing_addresses: z.ZodArray<z.ZodObject<{
|
|
1631
|
-
address: z.
|
|
1759
|
+
address: z.ZodString;
|
|
1632
1760
|
chain: z.ZodString;
|
|
1633
1761
|
}, z.core.$strip>>;
|
|
1634
|
-
|
|
1635
|
-
|
|
1762
|
+
owner_chain: z.ZodString;
|
|
1763
|
+
owner_address: z.ZodString;
|
|
1764
|
+
destination_address: z.ZodString;
|
|
1636
1765
|
next_instruction: z.ZodOptional<z.ZodObject<{
|
|
1637
1766
|
type: z.ZodEnum<{
|
|
1638
1767
|
ONRAMP: "ONRAMP";
|
|
@@ -1644,7 +1773,7 @@ declare const PaymentHistoryResult: z.ZodObject<{
|
|
|
1644
1773
|
deposit_token: z.ZodString;
|
|
1645
1774
|
deposit_chain: z.ZodString;
|
|
1646
1775
|
deposit_amount: z.ZodString;
|
|
1647
|
-
deposit_address: z.
|
|
1776
|
+
deposit_address: z.ZodString;
|
|
1648
1777
|
}, z.core.$strip>>;
|
|
1649
1778
|
}, z.core.$strip>>;
|
|
1650
1779
|
parent_payment_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1655,10 +1784,10 @@ type PaymentHistoryResult = z.infer<typeof PaymentHistoryResult>;
|
|
|
1655
1784
|
declare const RequestForBalance: z.ZodObject<{
|
|
1656
1785
|
payment_id: z.ZodOptional<z.ZodString>;
|
|
1657
1786
|
custom_queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1658
|
-
address: z.
|
|
1787
|
+
address: z.ZodString;
|
|
1659
1788
|
token: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
1660
1789
|
chain: z.ZodString;
|
|
1661
|
-
address: z.ZodString
|
|
1790
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
1662
1791
|
}, z.core.$strip>, z.ZodObject<{
|
|
1663
1792
|
chain: z.ZodLiteral<"solana">;
|
|
1664
1793
|
address: z.ZodString;
|
|
@@ -1671,14 +1800,14 @@ declare const RequestForBalance: z.ZodObject<{
|
|
|
1671
1800
|
type RequestForBalance = z.infer<typeof RequestForBalance>;
|
|
1672
1801
|
declare const BalanceResponse: z.ZodObject<{
|
|
1673
1802
|
balance_results: z.ZodArray<z.ZodObject<{
|
|
1674
|
-
address: z.
|
|
1803
|
+
address: z.ZodString;
|
|
1675
1804
|
token: z.ZodString;
|
|
1676
1805
|
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1677
1806
|
kind: z.ZodLiteral<"amount">;
|
|
1678
1807
|
amount: z.ZodString;
|
|
1679
1808
|
}, z.core.$strip>, z.ZodObject<{
|
|
1680
1809
|
kind: z.ZodLiteral<"error">;
|
|
1681
|
-
}, z.core.$strip>]>;
|
|
1810
|
+
}, z.core.$strip>], "kind">;
|
|
1682
1811
|
}, z.core.$strip>>;
|
|
1683
1812
|
}, z.core.$strip>;
|
|
1684
1813
|
type BalanceResponse = z.infer<typeof BalanceResponse>;
|
|
@@ -1695,7 +1824,7 @@ declare const RequestForWithdrawAuthorization: z.ZodObject<{
|
|
|
1695
1824
|
token: z.ZodString;
|
|
1696
1825
|
amount: z.ZodString;
|
|
1697
1826
|
}, z.core.$strip>>;
|
|
1698
|
-
recipient_address: z.
|
|
1827
|
+
recipient_address: z.ZodString;
|
|
1699
1828
|
}, z.core.$strip>;
|
|
1700
1829
|
type RequestForWithdrawAuthorization = z.infer<typeof RequestForWithdrawAuthorization>;
|
|
1701
1830
|
declare const WithdrawAuthorizationResponse: z.ZodObject<{
|
|
@@ -1709,7 +1838,7 @@ declare const RequestForWithdraw: z.ZodObject<{
|
|
|
1709
1838
|
token: z.ZodString;
|
|
1710
1839
|
amount: z.ZodString;
|
|
1711
1840
|
}, z.core.$strip>>;
|
|
1712
|
-
recipient_address: z.
|
|
1841
|
+
recipient_address: z.ZodString;
|
|
1713
1842
|
owner_signature: z.ZodString;
|
|
1714
1843
|
}, z.core.$strip>;
|
|
1715
1844
|
type RequestForWithdraw = z.infer<typeof RequestForWithdraw>;
|
|
@@ -1915,5 +2044,5 @@ declare class HSON {
|
|
|
1915
2044
|
static parse(str: string): any;
|
|
1916
2045
|
}
|
|
1917
2046
|
|
|
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 };
|
|
2047
|
+
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
2048
|
export type { PaymentsApiClientOptions, ResponseValidationOptions };
|