rehive 4.1.4 → 4.2.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/admin.d.mts +43 -106
- package/dist/admin.d.ts +43 -106
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/dist/auth.d.mts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/{chunk-AVPKHYGS.js → chunk-7USVOK77.js} +5 -5
- package/dist/{chunk-X6YDNXYV.js → chunk-ERD2XKSM.js} +1 -1
- package/dist/chunk-G3M5QMRX.js +1 -0
- package/dist/chunk-HSPTEN45.mjs +1 -0
- package/dist/chunk-HWXE5WBF.js +7 -0
- package/dist/chunk-MUN3POSM.mjs +7 -0
- package/dist/{chunk-4WSHB6U6.mjs → chunk-PCR54D6A.mjs} +1 -1
- package/dist/chunk-ZUZHOLAX.mjs +7 -0
- package/dist/{create-api-client-ebyTfhcm.d.ts → create-api-client-ADSlg8HX.d.ts} +1 -1
- package/dist/{create-api-client-C-LEZku2.d.mts → create-api-client-B4Q01gHp.d.mts} +1 -1
- package/dist/{create-auth-DsnHpEf0.d.mts → create-auth-CT_IFt3T.d.mts} +53 -47
- package/dist/{create-auth-DsnHpEf0.d.ts → create-auth-CT_IFt3T.d.ts} +53 -47
- package/dist/extensions/alchemy.d.mts +3 -3
- package/dist/extensions/alchemy.d.ts +3 -3
- package/dist/extensions/alchemy.js +5 -5
- package/dist/extensions/alchemy.mjs +5 -5
- package/dist/extensions/app.d.mts +3 -3
- package/dist/extensions/app.d.ts +3 -3
- package/dist/extensions/app.js +5 -5
- package/dist/extensions/app.mjs +5 -5
- package/dist/extensions/billing.d.mts +3 -3
- package/dist/extensions/billing.d.ts +3 -3
- package/dist/extensions/billing.js +5 -5
- package/dist/extensions/billing.mjs +5 -5
- package/dist/extensions/bridge.d.mts +16 -190
- package/dist/extensions/bridge.d.ts +16 -190
- package/dist/extensions/bridge.js +5 -5
- package/dist/extensions/bridge.mjs +5 -5
- package/dist/extensions/builder.d.mts +3 -3
- package/dist/extensions/builder.d.ts +3 -3
- package/dist/extensions/builder.js +5 -5
- package/dist/extensions/builder.mjs +5 -5
- package/dist/extensions/business.d.mts +47 -82
- package/dist/extensions/business.d.ts +47 -82
- package/dist/extensions/business.js +5 -5
- package/dist/extensions/business.mjs +5 -5
- package/dist/extensions/conversion.d.mts +3 -3
- package/dist/extensions/conversion.d.ts +3 -3
- package/dist/extensions/conversion.js +5 -5
- package/dist/extensions/conversion.mjs +5 -5
- package/dist/extensions/mass-send.d.mts +3 -3
- package/dist/extensions/mass-send.d.ts +3 -3
- package/dist/extensions/mass-send.js +5 -5
- package/dist/extensions/mass-send.mjs +5 -5
- package/dist/extensions/notifications.d.mts +3 -3
- package/dist/extensions/notifications.d.ts +3 -3
- package/dist/extensions/notifications.js +5 -5
- package/dist/extensions/notifications.mjs +5 -5
- package/dist/extensions/payment-requests.d.mts +3 -7
- package/dist/extensions/payment-requests.d.ts +3 -7
- package/dist/extensions/payment-requests.js +5 -5
- package/dist/extensions/payment-requests.mjs +5 -5
- package/dist/extensions/products.d.mts +3 -3
- package/dist/extensions/products.d.ts +3 -3
- package/dist/extensions/products.js +5 -5
- package/dist/extensions/products.mjs +5 -5
- package/dist/extensions/rain.d.mts +3 -3
- package/dist/extensions/rain.d.ts +3 -3
- package/dist/extensions/rain.js +5 -5
- package/dist/extensions/rain.mjs +5 -5
- package/dist/extensions/rewards.d.mts +3 -3
- package/dist/extensions/rewards.d.ts +3 -3
- package/dist/extensions/rewards.js +5 -5
- package/dist/extensions/rewards.mjs +5 -5
- package/dist/extensions/stellar-testnet.d.mts +3 -3
- package/dist/extensions/stellar-testnet.d.ts +3 -3
- package/dist/extensions/stellar-testnet.js +5 -5
- package/dist/extensions/stellar-testnet.mjs +5 -5
- package/dist/extensions/stellar.d.mts +3 -3
- package/dist/extensions/stellar.d.ts +3 -3
- package/dist/extensions/stellar.js +5 -5
- package/dist/extensions/stellar.mjs +5 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +11 -3
- package/dist/react.d.ts +11 -3
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +6 -16
- package/dist/user.d.ts +6 -16
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +1 -1
- package/src/auth/create-auth.ts +773 -169
- package/src/auth/index.ts +25 -2
- package/src/auth/types/index.ts +48 -0
- package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/app/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/app/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/billing/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/bridge/openapi-ts/index.ts +2 -2
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +1 -43
- package/src/extensions/bridge/openapi-ts/types.gen.ts +11 -201
- package/src/extensions/builder/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/business/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/business/openapi-ts/types.gen.ts +44 -79
- package/src/extensions/conversion/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/notifications/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/payment-requests/openapi-ts/types.gen.ts +0 -4
- package/src/extensions/products/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/products/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rain/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/rewards/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +1 -1
- package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +3 -5
- package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/client/client.gen.ts +3 -5
- package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/platform/admin/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/admin/openapi-ts/sdk.gen.ts +10 -10
- package/src/platform/admin/openapi-ts/types.gen.ts +40 -103
- package/src/platform/user/openapi-ts/client/client.gen.ts +3 -5
- package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +8 -6
- package/src/platform/user/openapi-ts/core/params.gen.ts +1 -1
- package/src/platform/user/openapi-ts/index.ts +2 -2
- package/src/platform/user/openapi-ts/sdk.gen.ts +3 -29
- package/src/platform/user/openapi-ts/types.gen.ts +7 -54
- package/dist/chunk-KUT5NSX7.mjs +0 -7
- package/dist/chunk-KZWBOQHZ.mjs +0 -7
- package/dist/chunk-PE6PG7ZE.js +0 -1
- package/dist/chunk-UYYU5OJ4.js +0 -7
- package/dist/chunk-Z7BUNKND.mjs +0 -1
|
@@ -49,22 +49,6 @@ export type AdminCompanyResponse = {
|
|
|
49
49
|
data: AdminCompany;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export type AdminCreateLiquidationAddress = {
|
|
53
|
-
wallet?: string;
|
|
54
|
-
account_currency?: string;
|
|
55
|
-
/**
|
|
56
|
-
* * `solana` - Solana
|
|
57
|
-
* * `base` - Base
|
|
58
|
-
* * `ethereum` - Ethereum
|
|
59
|
-
* * `stellar` - Stellar
|
|
60
|
-
* * `tron` - Tron
|
|
61
|
-
* * `polygon` - Polygon
|
|
62
|
-
* * `arbitrum` - Arbitrum
|
|
63
|
-
* * `optimism` - Optimism
|
|
64
|
-
*/
|
|
65
|
-
chain: 'solana' | 'base' | 'ethereum' | 'stellar' | 'tron' | 'polygon' | 'arbitrum' | 'optimism';
|
|
66
|
-
};
|
|
67
|
-
|
|
68
52
|
/**
|
|
69
53
|
* A ModelSerializer that takes additional arguments for
|
|
70
54
|
* "fields", "omit" and "expand" in order to
|
|
@@ -74,24 +58,11 @@ export type AdminCreateLiquidationAddress = {
|
|
|
74
58
|
export type AdminCreatePayoutConfiguration = {
|
|
75
59
|
/**
|
|
76
60
|
* * `solana` - Solana
|
|
77
|
-
* * `base` - Base
|
|
78
61
|
*/
|
|
79
|
-
destination_chain: 'solana'
|
|
62
|
+
destination_chain: 'solana';
|
|
80
63
|
destination_address: string;
|
|
81
64
|
};
|
|
82
65
|
|
|
83
|
-
export type AdminCreateVirtualAccount = {
|
|
84
|
-
wallet?: string;
|
|
85
|
-
account_currency?: string;
|
|
86
|
-
/**
|
|
87
|
-
* * `usd` - Usd
|
|
88
|
-
* * `eur` - Eur
|
|
89
|
-
* * `mxn` - Mxn
|
|
90
|
-
* * `brl` - Brl
|
|
91
|
-
*/
|
|
92
|
-
source_currency?: 'usd' | 'eur' | 'mxn' | 'brl';
|
|
93
|
-
};
|
|
94
|
-
|
|
95
66
|
export type AdminCryptoReturnPolicy = {
|
|
96
67
|
readonly id: string;
|
|
97
68
|
refund_destination_address?: string | null;
|
|
@@ -132,9 +103,8 @@ export type AdminCurrency = {
|
|
|
132
103
|
bridge_code?: 'usdc' | 'eurc';
|
|
133
104
|
/**
|
|
134
105
|
* * `solana` - Solana
|
|
135
|
-
* * `base` - Base
|
|
136
106
|
*/
|
|
137
|
-
bridge_chain?: 'solana'
|
|
107
|
+
bridge_chain?: 'solana';
|
|
138
108
|
readonly display_code: string | null;
|
|
139
109
|
readonly description: string | null;
|
|
140
110
|
readonly symbol: string | null;
|
|
@@ -221,9 +191,6 @@ export type AdminPaymentProcessorQuote = {
|
|
|
221
191
|
};
|
|
222
192
|
amount?: string | null;
|
|
223
193
|
expiration_date?: string | null;
|
|
224
|
-
user: {
|
|
225
|
-
[key: string]: unknown;
|
|
226
|
-
};
|
|
227
194
|
payer_user?: {
|
|
228
195
|
[key: string]: unknown;
|
|
229
196
|
};
|
|
@@ -259,9 +226,8 @@ export type AdminPayoutConfiguration = {
|
|
|
259
226
|
wallet: AdminWallet;
|
|
260
227
|
/**
|
|
261
228
|
* * `solana` - Solana
|
|
262
|
-
* * `base` - Base
|
|
263
229
|
*/
|
|
264
|
-
destination_chain: 'solana'
|
|
230
|
+
destination_chain: 'solana';
|
|
265
231
|
destination_address: string;
|
|
266
232
|
readonly created: string;
|
|
267
233
|
readonly updated: string;
|
|
@@ -425,9 +391,8 @@ export type Currency = {
|
|
|
425
391
|
bridge_code?: 'usdc' | 'eurc' | 'usd' | 'eur' | 'mxn' | 'brl';
|
|
426
392
|
/**
|
|
427
393
|
* * `solana` - Solana
|
|
428
|
-
* * `base` - Base
|
|
429
394
|
*/
|
|
430
|
-
bridge_chain?: 'solana'
|
|
395
|
+
bridge_chain?: 'solana';
|
|
431
396
|
display_code?: string | null;
|
|
432
397
|
description?: string | null;
|
|
433
398
|
symbol?: string | null;
|
|
@@ -533,18 +498,6 @@ export type PaginatedCurrencyListResponse = {
|
|
|
533
498
|
data: PaginatedCurrencyList;
|
|
534
499
|
};
|
|
535
500
|
|
|
536
|
-
export type PaginatedUserStaticTemplateList = {
|
|
537
|
-
count?: number;
|
|
538
|
-
next?: string | null;
|
|
539
|
-
previous?: string | null;
|
|
540
|
-
results?: Array<UserStaticTemplate>;
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
export type PaginatedUserStaticTemplateListResponse = {
|
|
544
|
-
status: string;
|
|
545
|
-
data: PaginatedUserStaticTemplateList;
|
|
546
|
-
};
|
|
547
|
-
|
|
548
501
|
export type PaginatedUserVirtualAccountList = {
|
|
549
502
|
count?: number;
|
|
550
503
|
next?: string | null;
|
|
@@ -585,9 +538,8 @@ export type PatchedAdminCurrency = {
|
|
|
585
538
|
bridge_code?: 'usdc' | 'eurc';
|
|
586
539
|
/**
|
|
587
540
|
* * `solana` - Solana
|
|
588
|
-
* * `base` - Base
|
|
589
541
|
*/
|
|
590
|
-
bridge_chain?: 'solana'
|
|
542
|
+
bridge_chain?: 'solana';
|
|
591
543
|
readonly display_code?: string | null;
|
|
592
544
|
readonly description?: string | null;
|
|
593
545
|
readonly symbol?: string | null;
|
|
@@ -607,9 +559,8 @@ export type PatchedAdminPayoutConfiguration = {
|
|
|
607
559
|
wallet?: AdminWallet;
|
|
608
560
|
/**
|
|
609
561
|
* * `solana` - Solana
|
|
610
|
-
* * `base` - Base
|
|
611
562
|
*/
|
|
612
|
-
destination_chain?: 'solana'
|
|
563
|
+
destination_chain?: 'solana';
|
|
613
564
|
destination_address?: string;
|
|
614
565
|
readonly created?: string;
|
|
615
566
|
readonly updated?: string;
|
|
@@ -671,17 +622,6 @@ export type UserCreateCustomerKycLink = {
|
|
|
671
622
|
redirect_uri?: string | null;
|
|
672
623
|
};
|
|
673
624
|
|
|
674
|
-
/**
|
|
675
|
-
* A ModelSerializer that takes additional arguments for
|
|
676
|
-
* "fields", "omit" and "expand" in order to
|
|
677
|
-
* control which fields are displayed, and whether to replace simple
|
|
678
|
-
* values with complex, nested serializations
|
|
679
|
-
*/
|
|
680
|
-
export type UserCreateStaticTemplate = {
|
|
681
|
-
account: string;
|
|
682
|
-
currency: string;
|
|
683
|
-
};
|
|
684
|
-
|
|
685
625
|
/**
|
|
686
626
|
* A ModelSerializer that takes additional arguments for
|
|
687
627
|
* "fields", "omit" and "expand" in order to
|
|
@@ -773,28 +713,6 @@ export type UserResponse = {
|
|
|
773
713
|
data: User;
|
|
774
714
|
};
|
|
775
715
|
|
|
776
|
-
/**
|
|
777
|
-
* A ModelSerializer that takes additional arguments for
|
|
778
|
-
* "fields", "omit" and "expand" in order to
|
|
779
|
-
* control which fields are displayed, and whether to replace simple
|
|
780
|
-
* values with complex, nested serializations
|
|
781
|
-
*/
|
|
782
|
-
export type UserStaticTemplate = {
|
|
783
|
-
readonly id: string;
|
|
784
|
-
wallet: UserReducedWallet;
|
|
785
|
-
readonly bridge_id: string | null;
|
|
786
|
-
readonly deposit_instructions: {
|
|
787
|
-
[key: string]: unknown;
|
|
788
|
-
};
|
|
789
|
-
readonly created: number;
|
|
790
|
-
readonly updated: number;
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
export type UserStaticTemplateResponse = {
|
|
794
|
-
status: string;
|
|
795
|
-
data: UserStaticTemplate;
|
|
796
|
-
};
|
|
797
|
-
|
|
798
716
|
/**
|
|
799
717
|
* A ModelSerializer that takes additional arguments for
|
|
800
718
|
* "fields", "omit" and "expand" in order to
|
|
@@ -873,9 +791,8 @@ export type AdminCreatePayoutConfigurationWritable = {
|
|
|
873
791
|
currency: string;
|
|
874
792
|
/**
|
|
875
793
|
* * `solana` - Solana
|
|
876
|
-
* * `base` - Base
|
|
877
794
|
*/
|
|
878
|
-
destination_chain: 'solana'
|
|
795
|
+
destination_chain: 'solana';
|
|
879
796
|
destination_address: string;
|
|
880
797
|
};
|
|
881
798
|
|
|
@@ -917,9 +834,8 @@ export type AdminCurrencyWritable = {
|
|
|
917
834
|
bridge_code?: 'usdc' | 'eurc';
|
|
918
835
|
/**
|
|
919
836
|
* * `solana` - Solana
|
|
920
|
-
* * `base` - Base
|
|
921
837
|
*/
|
|
922
|
-
bridge_chain?: 'solana'
|
|
838
|
+
bridge_chain?: 'solana';
|
|
923
839
|
};
|
|
924
840
|
|
|
925
841
|
export type AdminCurrencyResponseWritable = {
|
|
@@ -955,9 +871,8 @@ export type AdminPaymentProcessorQuoteResponseResponseWritable = {
|
|
|
955
871
|
export type AdminPayoutConfigurationWritable = {
|
|
956
872
|
/**
|
|
957
873
|
* * `solana` - Solana
|
|
958
|
-
* * `base` - Base
|
|
959
874
|
*/
|
|
960
|
-
destination_chain: 'solana'
|
|
875
|
+
destination_chain: 'solana';
|
|
961
876
|
destination_address: string;
|
|
962
877
|
};
|
|
963
878
|
|
|
@@ -1086,18 +1001,6 @@ export type PaginatedAdminWalletListResponseWritable = {
|
|
|
1086
1001
|
data: PaginatedAdminWalletListWritable;
|
|
1087
1002
|
};
|
|
1088
1003
|
|
|
1089
|
-
export type PaginatedUserStaticTemplateListWritable = {
|
|
1090
|
-
count?: number;
|
|
1091
|
-
next?: string | null;
|
|
1092
|
-
previous?: string | null;
|
|
1093
|
-
results?: Array<UserStaticTemplateWritable>;
|
|
1094
|
-
};
|
|
1095
|
-
|
|
1096
|
-
export type PaginatedUserStaticTemplateListResponseWritable = {
|
|
1097
|
-
status: string;
|
|
1098
|
-
data: PaginatedUserStaticTemplateListWritable;
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
1004
|
export type PaginatedUserVirtualAccountListWritable = {
|
|
1102
1005
|
count?: number;
|
|
1103
1006
|
next?: string | null;
|
|
@@ -1136,9 +1039,8 @@ export type PatchedAdminCurrencyWritable = {
|
|
|
1136
1039
|
bridge_code?: 'usdc' | 'eurc';
|
|
1137
1040
|
/**
|
|
1138
1041
|
* * `solana` - Solana
|
|
1139
|
-
* * `base` - Base
|
|
1140
1042
|
*/
|
|
1141
|
-
bridge_chain?: 'solana'
|
|
1043
|
+
bridge_chain?: 'solana';
|
|
1142
1044
|
};
|
|
1143
1045
|
|
|
1144
1046
|
/**
|
|
@@ -1150,9 +1052,8 @@ export type PatchedAdminCurrencyWritable = {
|
|
|
1150
1052
|
export type PatchedAdminPayoutConfigurationWritable = {
|
|
1151
1053
|
/**
|
|
1152
1054
|
* * `solana` - Solana
|
|
1153
|
-
* * `base` - Base
|
|
1154
1055
|
*/
|
|
1155
|
-
destination_chain?: 'solana'
|
|
1056
|
+
destination_chain?: 'solana';
|
|
1156
1057
|
destination_address?: string;
|
|
1157
1058
|
};
|
|
1158
1059
|
|
|
@@ -1213,21 +1114,6 @@ export type UserResponseWritable = {
|
|
|
1213
1114
|
data: UserWritable;
|
|
1214
1115
|
};
|
|
1215
1116
|
|
|
1216
|
-
/**
|
|
1217
|
-
* A ModelSerializer that takes additional arguments for
|
|
1218
|
-
* "fields", "omit" and "expand" in order to
|
|
1219
|
-
* control which fields are displayed, and whether to replace simple
|
|
1220
|
-
* values with complex, nested serializations
|
|
1221
|
-
*/
|
|
1222
|
-
export type UserStaticTemplateWritable = {
|
|
1223
|
-
[key: string]: unknown;
|
|
1224
|
-
};
|
|
1225
|
-
|
|
1226
|
-
export type UserStaticTemplateResponseWritable = {
|
|
1227
|
-
status: string;
|
|
1228
|
-
data: UserStaticTemplateWritable;
|
|
1229
|
-
};
|
|
1230
|
-
|
|
1231
1117
|
/**
|
|
1232
1118
|
* A ModelSerializer that takes additional arguments for
|
|
1233
1119
|
* "fields", "omit" and "expand" in order to
|
|
@@ -1475,19 +1361,6 @@ export type AdminLiquidationAddressesListResponses = {
|
|
|
1475
1361
|
|
|
1476
1362
|
export type AdminLiquidationAddressesListResponse = AdminLiquidationAddressesListResponses[keyof AdminLiquidationAddressesListResponses];
|
|
1477
1363
|
|
|
1478
|
-
export type AdminLiquidationAddressesCreateData = {
|
|
1479
|
-
body: AdminCreateLiquidationAddress;
|
|
1480
|
-
path?: never;
|
|
1481
|
-
query?: never;
|
|
1482
|
-
url: '/admin/liquidation-addresses/';
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
export type AdminLiquidationAddressesCreateResponses = {
|
|
1486
|
-
201: AdminLiquidationAddressResponse;
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
|
-
export type AdminLiquidationAddressesCreateResponse = AdminLiquidationAddressesCreateResponses[keyof AdminLiquidationAddressesCreateResponses];
|
|
1490
|
-
|
|
1491
1364
|
export type AdminLiquidationAddressesRetrieveData = {
|
|
1492
1365
|
body?: never;
|
|
1493
1366
|
path: {
|
|
@@ -1719,19 +1592,6 @@ export type AdminVirtualAccountsListResponses = {
|
|
|
1719
1592
|
|
|
1720
1593
|
export type AdminVirtualAccountsListResponse = AdminVirtualAccountsListResponses[keyof AdminVirtualAccountsListResponses];
|
|
1721
1594
|
|
|
1722
|
-
export type AdminVirtualAccountsCreateData = {
|
|
1723
|
-
body?: AdminCreateVirtualAccount;
|
|
1724
|
-
path?: never;
|
|
1725
|
-
query?: never;
|
|
1726
|
-
url: '/admin/virtual-accounts/';
|
|
1727
|
-
};
|
|
1728
|
-
|
|
1729
|
-
export type AdminVirtualAccountsCreateResponses = {
|
|
1730
|
-
201: AdminVirtualAccountResponse;
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
export type AdminVirtualAccountsCreateResponse = AdminVirtualAccountsCreateResponses[keyof AdminVirtualAccountsCreateResponses];
|
|
1734
|
-
|
|
1735
1595
|
export type AdminVirtualAccountsRetrieveData = {
|
|
1736
1596
|
body?: never;
|
|
1737
1597
|
path: {
|
|
@@ -1931,56 +1791,6 @@ export type UserKycLinksCreateResponses = {
|
|
|
1931
1791
|
|
|
1932
1792
|
export type UserKycLinksCreateResponse = UserKycLinksCreateResponses[keyof UserKycLinksCreateResponses];
|
|
1933
1793
|
|
|
1934
|
-
export type UserStaticTemplatesListData = {
|
|
1935
|
-
body?: never;
|
|
1936
|
-
path?: never;
|
|
1937
|
-
query?: {
|
|
1938
|
-
/**
|
|
1939
|
-
* A page number within the paginated result set.
|
|
1940
|
-
*/
|
|
1941
|
-
page?: number;
|
|
1942
|
-
/**
|
|
1943
|
-
* Number of results to return per page.
|
|
1944
|
-
*/
|
|
1945
|
-
page_size?: number;
|
|
1946
|
-
};
|
|
1947
|
-
url: '/user/static-templates/';
|
|
1948
|
-
};
|
|
1949
|
-
|
|
1950
|
-
export type UserStaticTemplatesListResponses = {
|
|
1951
|
-
200: PaginatedUserStaticTemplateListResponse;
|
|
1952
|
-
};
|
|
1953
|
-
|
|
1954
|
-
export type UserStaticTemplatesListResponse = UserStaticTemplatesListResponses[keyof UserStaticTemplatesListResponses];
|
|
1955
|
-
|
|
1956
|
-
export type UserStaticTemplatesCreateData = {
|
|
1957
|
-
body: UserCreateStaticTemplate;
|
|
1958
|
-
path?: never;
|
|
1959
|
-
query?: never;
|
|
1960
|
-
url: '/user/static-templates/';
|
|
1961
|
-
};
|
|
1962
|
-
|
|
1963
|
-
export type UserStaticTemplatesCreateResponses = {
|
|
1964
|
-
201: UserStaticTemplateResponse;
|
|
1965
|
-
};
|
|
1966
|
-
|
|
1967
|
-
export type UserStaticTemplatesCreateResponse = UserStaticTemplatesCreateResponses[keyof UserStaticTemplatesCreateResponses];
|
|
1968
|
-
|
|
1969
|
-
export type UserStaticTemplatesRetrieveData = {
|
|
1970
|
-
body?: never;
|
|
1971
|
-
path: {
|
|
1972
|
-
identifier: string;
|
|
1973
|
-
};
|
|
1974
|
-
query?: never;
|
|
1975
|
-
url: '/user/static-templates/{identifier}/';
|
|
1976
|
-
};
|
|
1977
|
-
|
|
1978
|
-
export type UserStaticTemplatesRetrieveResponses = {
|
|
1979
|
-
200: UserStaticTemplateResponse;
|
|
1980
|
-
};
|
|
1981
|
-
|
|
1982
|
-
export type UserStaticTemplatesRetrieveResponse = UserStaticTemplatesRetrieveResponses[keyof UserStaticTemplatesRetrieveResponses];
|
|
1983
|
-
|
|
1984
1794
|
export type UserVirtualAccountsListData = {
|
|
1985
1795
|
body?: never;
|
|
1986
1796
|
path?: never;
|
|
@@ -37,7 +37,7 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
37
37
|
...options,
|
|
38
38
|
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
39
39
|
headers: mergeHeaders(_config.headers, options.headers),
|
|
40
|
-
serializedBody: undefined
|
|
40
|
+
serializedBody: undefined,
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
if (opts.security) {
|
|
@@ -52,7 +52,7 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (opts.body !== undefined && opts.bodySerializer) {
|
|
55
|
-
opts.serializedBody = opts.bodySerializer(opts.body)
|
|
55
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// remove Content-Type header if body is empty to avoid sending invalid requests
|
|
@@ -258,10 +258,8 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
const _buildUrl: Client['buildUrl'] = (options) => buildUrl({ ..._config, ...options });
|
|
262
|
-
|
|
263
261
|
return {
|
|
264
|
-
buildUrl
|
|
262
|
+
buildUrl,
|
|
265
263
|
connect: makeMethodFn('CONNECT'),
|
|
266
264
|
delete: makeMethodFn('DELETE'),
|
|
267
265
|
get: makeMethodFn('GET'),
|
|
@@ -4,7 +4,7 @@ import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerialize
|
|
|
4
4
|
|
|
5
5
|
export type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
6
6
|
|
|
7
|
-
export type BodySerializer = (body:
|
|
7
|
+
export type BodySerializer = (body: any) => any;
|
|
8
8
|
|
|
9
9
|
type QuerySerializerOptionsObject = {
|
|
10
10
|
allowReserved?: boolean;
|
|
@@ -39,10 +39,12 @@ const serializeUrlSearchParamsPair = (data: URLSearchParams, key: string, value:
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const formDataBodySerializer = {
|
|
42
|
-
bodySerializer:
|
|
42
|
+
bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(
|
|
43
|
+
body: T,
|
|
44
|
+
): FormData => {
|
|
43
45
|
const data = new FormData();
|
|
44
46
|
|
|
45
|
-
Object.entries(body
|
|
47
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
46
48
|
if (value === undefined || value === null) {
|
|
47
49
|
return;
|
|
48
50
|
}
|
|
@@ -58,15 +60,15 @@ export const formDataBodySerializer = {
|
|
|
58
60
|
};
|
|
59
61
|
|
|
60
62
|
export const jsonBodySerializer = {
|
|
61
|
-
bodySerializer: (body:
|
|
63
|
+
bodySerializer: <T>(body: T): string =>
|
|
62
64
|
JSON.stringify(body, (_key, value) => (typeof value === 'bigint' ? value.toString() : value)),
|
|
63
65
|
};
|
|
64
66
|
|
|
65
67
|
export const urlSearchParamsBodySerializer = {
|
|
66
|
-
bodySerializer: (body:
|
|
68
|
+
bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(body: T): string => {
|
|
67
69
|
const data = new URLSearchParams();
|
|
68
70
|
|
|
69
|
-
Object.entries(body
|
|
71
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
70
72
|
if (value === undefined || value === null) {
|
|
71
73
|
return;
|
|
72
74
|
}
|
|
@@ -96,7 +96,7 @@ interface Params {
|
|
|
96
96
|
|
|
97
97
|
const stripEmptySlots = (params: Params) => {
|
|
98
98
|
for (const [slot, value] of Object.entries(params)) {
|
|
99
|
-
if (value && typeof value === 'object' && !
|
|
99
|
+
if (value && typeof value === 'object' && !Object.keys(value).length) {
|
|
100
100
|
delete params[slot as Slot];
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -37,7 +37,7 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
37
37
|
...options,
|
|
38
38
|
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
39
39
|
headers: mergeHeaders(_config.headers, options.headers),
|
|
40
|
-
serializedBody: undefined
|
|
40
|
+
serializedBody: undefined,
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
if (opts.security) {
|
|
@@ -52,7 +52,7 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (opts.body !== undefined && opts.bodySerializer) {
|
|
55
|
-
opts.serializedBody = opts.bodySerializer(opts.body)
|
|
55
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// remove Content-Type header if body is empty to avoid sending invalid requests
|
|
@@ -258,10 +258,8 @@ export const createClient = (config: Config = {}): Client => {
|
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
const _buildUrl: Client['buildUrl'] = (options) => buildUrl({ ..._config, ...options });
|
|
262
|
-
|
|
263
261
|
return {
|
|
264
|
-
buildUrl
|
|
262
|
+
buildUrl,
|
|
265
263
|
connect: makeMethodFn('CONNECT'),
|
|
266
264
|
delete: makeMethodFn('DELETE'),
|
|
267
265
|
get: makeMethodFn('GET'),
|
|
@@ -4,7 +4,7 @@ import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerialize
|
|
|
4
4
|
|
|
5
5
|
export type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
6
6
|
|
|
7
|
-
export type BodySerializer = (body:
|
|
7
|
+
export type BodySerializer = (body: any) => any;
|
|
8
8
|
|
|
9
9
|
type QuerySerializerOptionsObject = {
|
|
10
10
|
allowReserved?: boolean;
|
|
@@ -39,10 +39,12 @@ const serializeUrlSearchParamsPair = (data: URLSearchParams, key: string, value:
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const formDataBodySerializer = {
|
|
42
|
-
bodySerializer:
|
|
42
|
+
bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(
|
|
43
|
+
body: T,
|
|
44
|
+
): FormData => {
|
|
43
45
|
const data = new FormData();
|
|
44
46
|
|
|
45
|
-
Object.entries(body
|
|
47
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
46
48
|
if (value === undefined || value === null) {
|
|
47
49
|
return;
|
|
48
50
|
}
|
|
@@ -58,15 +60,15 @@ export const formDataBodySerializer = {
|
|
|
58
60
|
};
|
|
59
61
|
|
|
60
62
|
export const jsonBodySerializer = {
|
|
61
|
-
bodySerializer: (body:
|
|
63
|
+
bodySerializer: <T>(body: T): string =>
|
|
62
64
|
JSON.stringify(body, (_key, value) => (typeof value === 'bigint' ? value.toString() : value)),
|
|
63
65
|
};
|
|
64
66
|
|
|
65
67
|
export const urlSearchParamsBodySerializer = {
|
|
66
|
-
bodySerializer: (body:
|
|
68
|
+
bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(body: T): string => {
|
|
67
69
|
const data = new URLSearchParams();
|
|
68
70
|
|
|
69
|
-
Object.entries(body
|
|
71
|
+
Object.entries(body).forEach(([key, value]) => {
|
|
70
72
|
if (value === undefined || value === null) {
|
|
71
73
|
return;
|
|
72
74
|
}
|
|
@@ -96,7 +96,7 @@ interface Params {
|
|
|
96
96
|
|
|
97
97
|
const stripEmptySlots = (params: Params) => {
|
|
98
98
|
for (const [slot, value] of Object.entries(params)) {
|
|
99
|
-
if (value && typeof value === 'object' && !
|
|
99
|
+
if (value && typeof value === 'object' && !Object.keys(value).length) {
|
|
100
100
|
delete params[slot as Slot];
|
|
101
101
|
}
|
|
102
102
|
}
|