rehive 4.3.0 → 4.4.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 +14445 -5452
- package/dist/admin.d.ts +14445 -5452
- 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-MAMZSYFF.js → chunk-3BG2PD7X.js} +1 -1
- package/dist/chunk-4FVXXRGV.mjs +6 -0
- package/dist/chunk-AIKSGC2F.js +6 -0
- package/dist/chunk-BLPR7LRO.mjs +6 -0
- package/dist/{chunk-KOUIKOXX.mjs → chunk-HAVKMJEY.mjs} +1 -1
- package/dist/{chunk-QKHQP5JT.mjs → chunk-JZVYT324.mjs} +1 -1
- package/dist/chunk-K5GNAPOS.js +6 -0
- package/dist/{chunk-OP7MQ6KX.js → chunk-Y7BCC5TX.js} +1 -1
- package/dist/{create-api-client-DvXFNRl7.d.mts → create-api-client-BY6W7Qz9.d.mts} +1 -1
- package/dist/{create-api-client-C02JVdcx.d.ts → create-api-client-CBNjHT-x.d.ts} +1 -1
- package/dist/{create-auth-9l3wfvKL.d.mts → create-auth-CROjq_cP.d.mts} +9193 -2388
- package/dist/{create-auth-9l3wfvKL.d.ts → create-auth-CROjq_cP.d.ts} +9193 -2388
- package/dist/extensions/alchemy.d.mts +84 -6
- package/dist/extensions/alchemy.d.ts +84 -6
- package/dist/extensions/alchemy.js +3 -3
- package/dist/extensions/alchemy.mjs +3 -3
- package/dist/extensions/app.d.mts +8 -3
- package/dist/extensions/app.d.ts +8 -3
- package/dist/extensions/app.js +3 -3
- package/dist/extensions/app.mjs +3 -3
- package/dist/extensions/billing.d.mts +8 -3
- package/dist/extensions/billing.d.ts +8 -3
- package/dist/extensions/billing.js +3 -3
- package/dist/extensions/billing.mjs +3 -3
- package/dist/extensions/bridge.d.mts +165 -5
- package/dist/extensions/bridge.d.ts +165 -5
- package/dist/extensions/bridge.js +3 -3
- package/dist/extensions/bridge.mjs +3 -3
- package/dist/extensions/builder.d.mts +8 -3
- package/dist/extensions/builder.d.ts +8 -3
- package/dist/extensions/builder.js +4 -4
- package/dist/extensions/builder.mjs +4 -4
- package/dist/extensions/business.d.mts +8 -3
- package/dist/extensions/business.d.ts +8 -3
- package/dist/extensions/business.js +5 -5
- package/dist/extensions/business.mjs +5 -5
- package/dist/extensions/conversion.d.mts +8 -3
- package/dist/extensions/conversion.d.ts +8 -3
- package/dist/extensions/mass-send.d.mts +8 -3
- package/dist/extensions/mass-send.d.ts +8 -3
- package/dist/extensions/mukuru.d.mts +207 -55
- package/dist/extensions/mukuru.d.ts +207 -55
- package/dist/extensions/mukuru.js +5 -5
- package/dist/extensions/mukuru.mjs +5 -5
- package/dist/extensions/notifications.d.mts +9 -3
- package/dist/extensions/notifications.d.ts +9 -3
- package/dist/extensions/payment-requests.d.mts +8 -3
- package/dist/extensions/payment-requests.d.ts +8 -3
- package/dist/extensions/payment-requests.js +4 -4
- package/dist/extensions/payment-requests.mjs +4 -4
- package/dist/extensions/products.d.mts +8 -3
- package/dist/extensions/products.d.ts +8 -3
- package/dist/extensions/rain.d.mts +8 -3
- package/dist/extensions/rain.d.ts +8 -3
- package/dist/extensions/rain.js +2 -2
- package/dist/extensions/rain.mjs +2 -2
- package/dist/extensions/rewards.d.mts +8 -3
- package/dist/extensions/rewards.d.ts +8 -3
- package/dist/extensions/rewards.js +2 -2
- package/dist/extensions/rewards.mjs +2 -2
- package/dist/extensions/stellar-testnet.d.mts +8 -3
- package/dist/extensions/stellar-testnet.d.ts +8 -3
- package/dist/extensions/stellar-testnet.js +4 -4
- package/dist/extensions/stellar-testnet.mjs +4 -4
- package/dist/extensions/stellar.d.mts +8 -3
- package/dist/extensions/stellar.d.ts +8 -3
- package/dist/extensions/stellar.js +4 -4
- package/dist/extensions/stellar.mjs +4 -4
- package/dist/extensions/sumsub.d.mts +54 -27
- package/dist/extensions/sumsub.d.ts +54 -27
- package/dist/extensions/sumsub.js +2 -2
- package/dist/extensions/sumsub.mjs +2 -2
- 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 +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +17 -6
- package/dist/user.d.ts +17 -6
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +1 -1
- package/src/extensions/alchemy/openapi-ts/client/index.ts +1 -0
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/alchemy/openapi-ts/index.ts +2 -2
- package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +29 -3
- package/src/extensions/alchemy/openapi-ts/types.gen.ts +82 -1
- package/src/extensions/app/openapi-ts/client/index.ts +1 -0
- package/src/extensions/app/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/app/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/app/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/billing/openapi-ts/client/index.ts +1 -0
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/billing/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/billing/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/bridge/openapi-ts/client/index.ts +1 -0
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/bridge/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/bridge/openapi-ts/index.ts +2 -2
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +35 -3
- package/src/extensions/bridge/openapi-ts/types.gen.ts +171 -0
- package/src/extensions/builder/openapi-ts/client/index.ts +1 -0
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/builder/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/builder/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/business/openapi-ts/client/index.ts +1 -0
- package/src/extensions/business/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/business/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/business/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/conversion/openapi-ts/client/index.ts +1 -0
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/conversion/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/conversion/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/mass-send/openapi-ts/client/index.ts +1 -0
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/mukuru/openapi-ts/client/index.ts +1 -0
- package/src/extensions/mukuru/openapi-ts/client.gen.ts +1 -1
- package/src/extensions/mukuru/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/mukuru/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/mukuru/openapi-ts/index.ts +2 -2
- package/src/extensions/mukuru/openapi-ts/sdk.gen.ts +21 -3
- package/src/extensions/mukuru/openapi-ts/types.gen.ts +204 -52
- package/src/extensions/notifications/openapi-ts/client/index.ts +1 -0
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/notifications/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/notifications/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/notifications/openapi-ts/types.gen.ts +1 -0
- package/src/extensions/payment-requests/openapi-ts/client/index.ts +1 -0
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/products/openapi-ts/client/index.ts +1 -0
- package/src/extensions/products/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/products/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/products/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/rain/openapi-ts/client/index.ts +1 -0
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/rain/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/rain/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/rewards/openapi-ts/client/index.ts +1 -0
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/rewards/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/rewards/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/stellar/openapi-ts/client/index.ts +1 -0
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/stellar/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/stellar/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +1 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/sumsub/openapi-ts/client/index.ts +1 -0
- package/src/extensions/sumsub/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/sumsub/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/sumsub/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/sumsub/openapi-ts/types.gen.ts +46 -24
- package/src/platform/admin/openapi-ts/client/index.ts +1 -0
- package/src/platform/admin/openapi-ts/core/params.gen.ts +18 -11
- package/src/platform/admin/openapi-ts/core/types.gen.ts +6 -0
- package/src/platform/admin/openapi-ts/index.ts +2 -2
- package/src/platform/admin/openapi-ts/sdk.gen.ts +51 -3
- package/src/platform/admin/openapi-ts/types.gen.ts +13012 -4000
- package/src/platform/user/openapi-ts/client/index.ts +1 -0
- package/src/platform/user/openapi-ts/core/params.gen.ts +18 -11
- package/src/platform/user/openapi-ts/core/types.gen.ts +6 -0
- package/src/platform/user/openapi-ts/index.ts +2 -2
- package/src/platform/user/openapi-ts/sdk.gen.ts +37 -3
- package/src/platform/user/openapi-ts/types.gen.ts +11236 -4408
- package/dist/chunk-HSNZ57ET.mjs +0 -6
- package/dist/chunk-M6Z3PA5D.js +0 -6
- package/dist/chunk-WNBM6WBC.mjs +0 -6
- package/dist/chunk-YPGO2Y5R.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
export type ClientOptions = {
|
|
4
|
-
baseUrl: 'https://mukuru.services.rehive.com/
|
|
4
|
+
baseUrl: 'https://mukuru.services.rehive.com/' | (string & {});
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -38,6 +38,7 @@ export type AdminCompany = {
|
|
|
38
38
|
*/
|
|
39
39
|
readonly mode: 'test' | 'production';
|
|
40
40
|
mukuru_keycloak_client_id?: string;
|
|
41
|
+
readonly mukuru_keycloak_client_secret: string;
|
|
41
42
|
mukuru_keycloak_token_url?: string;
|
|
42
43
|
mukuru_base_url?: string;
|
|
43
44
|
mukuru_operational_address?: string;
|
|
@@ -45,6 +46,14 @@ export type AdminCompany = {
|
|
|
45
46
|
* * `base` - Base
|
|
46
47
|
*/
|
|
47
48
|
mukuru_chain?: 'base';
|
|
49
|
+
readonly mukuru_callback_password: string;
|
|
50
|
+
business_sender_first_name?: string;
|
|
51
|
+
business_sender_last_name?: string;
|
|
52
|
+
business_sender_street_address?: string;
|
|
53
|
+
business_sender_city?: string;
|
|
54
|
+
business_sender_region?: string;
|
|
55
|
+
business_sender_postal_code?: string;
|
|
56
|
+
business_sender_country_code?: string;
|
|
48
57
|
readonly configured: boolean;
|
|
49
58
|
};
|
|
50
59
|
|
|
@@ -99,11 +108,12 @@ export type AdminMukuruTransaction = {
|
|
|
99
108
|
* * `received` - Received
|
|
100
109
|
* * `successful` - Successful
|
|
101
110
|
* * `cancelled` - Cancelled
|
|
111
|
+
* * `refunded` - Refunded
|
|
102
112
|
* * `failed` - Failed
|
|
103
113
|
* * `kyc_failed` - Kyc Failed
|
|
104
114
|
* * `insufficient_funds` - Insufficient Funds
|
|
105
115
|
*/
|
|
106
|
-
readonly mukuru_status: 'pending' | 'ready' | 'paid' | 'received' | 'successful' | 'cancelled' | 'failed' | 'kyc_failed' | 'insufficient_funds';
|
|
116
|
+
readonly mukuru_status: 'pending' | 'ready' | 'paid' | 'received' | 'successful' | 'cancelled' | 'refunded' | 'failed' | 'kyc_failed' | 'insufficient_funds';
|
|
107
117
|
readonly rehive_secondary_status: string;
|
|
108
118
|
readonly terminated_at: string | null;
|
|
109
119
|
readonly recipient_mobile: string;
|
|
@@ -117,6 +127,57 @@ export type AdminMukuruTransactionResponse = {
|
|
|
117
127
|
data: AdminMukuruTransaction;
|
|
118
128
|
};
|
|
119
129
|
|
|
130
|
+
/**
|
|
131
|
+
* One Mukuru operational ("clearing") balance, in MAJOR currency units.
|
|
132
|
+
*/
|
|
133
|
+
export type AdminOperationalAccount = {
|
|
134
|
+
currency: string;
|
|
135
|
+
available: string;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Response for GET /api/admin/operational-accounts/ — the partner's
|
|
140
|
+
* operational float held at the Mukuru aggregator, per currency, plus the
|
|
141
|
+
* time it was fetched.
|
|
142
|
+
*/
|
|
143
|
+
export type AdminOperationalAccounts = {
|
|
144
|
+
accounts: Array<AdminOperationalAccount>;
|
|
145
|
+
as_of: string;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Write variant of `AdminCompanySerializer` used for PATCH/PUT. Secrets
|
|
150
|
+
* are writable here (plain CharFields) but marked write-only so the
|
|
151
|
+
* PATCH response can't leak the plaintext the admin just sent — the
|
|
152
|
+
* dashboard refetches via GET to display the masked values.
|
|
153
|
+
*/
|
|
154
|
+
export type AdminUpdateCompany = {
|
|
155
|
+
readonly id: string;
|
|
156
|
+
readonly secret: string;
|
|
157
|
+
readonly name: string;
|
|
158
|
+
/**
|
|
159
|
+
* * `test` - Test
|
|
160
|
+
* * `production` - Production
|
|
161
|
+
*/
|
|
162
|
+
readonly mode: 'test' | 'production';
|
|
163
|
+
mukuru_keycloak_client_id?: string;
|
|
164
|
+
mukuru_keycloak_token_url?: string;
|
|
165
|
+
mukuru_base_url?: string;
|
|
166
|
+
mukuru_operational_address?: string;
|
|
167
|
+
/**
|
|
168
|
+
* * `base` - Base
|
|
169
|
+
*/
|
|
170
|
+
mukuru_chain?: 'base';
|
|
171
|
+
business_sender_first_name?: string;
|
|
172
|
+
business_sender_last_name?: string;
|
|
173
|
+
business_sender_street_address?: string;
|
|
174
|
+
business_sender_city?: string;
|
|
175
|
+
business_sender_region?: string;
|
|
176
|
+
business_sender_postal_code?: string;
|
|
177
|
+
business_sender_country_code?: string;
|
|
178
|
+
readonly configured: boolean;
|
|
179
|
+
};
|
|
180
|
+
|
|
120
181
|
/**
|
|
121
182
|
* A ModelSerializer that takes additional arguments for
|
|
122
183
|
* "fields", "omit" and "expand" in order to
|
|
@@ -186,32 +247,6 @@ export type PaginatedUserMukuruTransactionListResponse = {
|
|
|
186
247
|
data: PaginatedUserMukuruTransactionList;
|
|
187
248
|
};
|
|
188
249
|
|
|
189
|
-
/**
|
|
190
|
-
* A ModelSerializer that takes additional arguments for
|
|
191
|
-
* "fields", "omit" and "expand" in order to
|
|
192
|
-
* control which fields are displayed, and whether to replace simple
|
|
193
|
-
* values with complex, nested serializations
|
|
194
|
-
*/
|
|
195
|
-
export type PatchedAdminCompany = {
|
|
196
|
-
readonly id?: string;
|
|
197
|
-
readonly secret?: string;
|
|
198
|
-
readonly name?: string;
|
|
199
|
-
/**
|
|
200
|
-
* * `test` - Test
|
|
201
|
-
* * `production` - Production
|
|
202
|
-
*/
|
|
203
|
-
readonly mode?: 'test' | 'production';
|
|
204
|
-
mukuru_keycloak_client_id?: string;
|
|
205
|
-
mukuru_keycloak_token_url?: string;
|
|
206
|
-
mukuru_base_url?: string;
|
|
207
|
-
mukuru_operational_address?: string;
|
|
208
|
-
/**
|
|
209
|
-
* * `base` - Base
|
|
210
|
-
*/
|
|
211
|
-
mukuru_chain?: 'base';
|
|
212
|
-
readonly configured?: boolean;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
250
|
/**
|
|
216
251
|
* Per-company Mukuru payout product, configurable by company admins via
|
|
217
252
|
* `/api/admin/products/`. Lets clients self-configure their own catalog
|
|
@@ -236,6 +271,39 @@ export type PatchedAdminMukuruProduct = {
|
|
|
236
271
|
readonly updated?: string;
|
|
237
272
|
};
|
|
238
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Write variant of `AdminCompanySerializer` used for PATCH/PUT. Secrets
|
|
276
|
+
* are writable here (plain CharFields) but marked write-only so the
|
|
277
|
+
* PATCH response can't leak the plaintext the admin just sent — the
|
|
278
|
+
* dashboard refetches via GET to display the masked values.
|
|
279
|
+
*/
|
|
280
|
+
export type PatchedAdminUpdateCompany = {
|
|
281
|
+
readonly id?: string;
|
|
282
|
+
readonly secret?: string;
|
|
283
|
+
readonly name?: string;
|
|
284
|
+
/**
|
|
285
|
+
* * `test` - Test
|
|
286
|
+
* * `production` - Production
|
|
287
|
+
*/
|
|
288
|
+
readonly mode?: 'test' | 'production';
|
|
289
|
+
mukuru_keycloak_client_id?: string;
|
|
290
|
+
mukuru_keycloak_token_url?: string;
|
|
291
|
+
mukuru_base_url?: string;
|
|
292
|
+
mukuru_operational_address?: string;
|
|
293
|
+
/**
|
|
294
|
+
* * `base` - Base
|
|
295
|
+
*/
|
|
296
|
+
mukuru_chain?: 'base';
|
|
297
|
+
business_sender_first_name?: string;
|
|
298
|
+
business_sender_last_name?: string;
|
|
299
|
+
business_sender_street_address?: string;
|
|
300
|
+
business_sender_city?: string;
|
|
301
|
+
business_sender_region?: string;
|
|
302
|
+
business_sender_postal_code?: string;
|
|
303
|
+
business_sender_country_code?: string;
|
|
304
|
+
readonly configured?: boolean;
|
|
305
|
+
};
|
|
306
|
+
|
|
239
307
|
/**
|
|
240
308
|
* A ModelSerializer that takes additional arguments for
|
|
241
309
|
* "fields", "omit" and "expand" in order to
|
|
@@ -253,11 +321,12 @@ export type UserMukuruTransaction = {
|
|
|
253
321
|
* * `received` - Received
|
|
254
322
|
* * `successful` - Successful
|
|
255
323
|
* * `cancelled` - Cancelled
|
|
324
|
+
* * `refunded` - Refunded
|
|
256
325
|
* * `failed` - Failed
|
|
257
326
|
* * `kyc_failed` - Kyc Failed
|
|
258
327
|
* * `insufficient_funds` - Insufficient Funds
|
|
259
328
|
*/
|
|
260
|
-
readonly mukuru_status: 'pending' | 'ready' | 'paid' | 'received' | 'successful' | 'cancelled' | 'failed' | 'kyc_failed' | 'insufficient_funds';
|
|
329
|
+
readonly mukuru_status: 'pending' | 'ready' | 'paid' | 'received' | 'successful' | 'cancelled' | 'refunded' | 'failed' | 'kyc_failed' | 'insufficient_funds';
|
|
261
330
|
readonly rehive_secondary_status: string;
|
|
262
331
|
readonly terminated_at: string | null;
|
|
263
332
|
readonly recipient_mobile: string;
|
|
@@ -308,7 +377,6 @@ export type Webhook = {
|
|
|
308
377
|
*/
|
|
309
378
|
export type AdminCompanyWritable = {
|
|
310
379
|
mukuru_keycloak_client_id?: string;
|
|
311
|
-
mukuru_keycloak_client_secret?: string;
|
|
312
380
|
mukuru_keycloak_token_url?: string;
|
|
313
381
|
mukuru_base_url?: string;
|
|
314
382
|
mukuru_operational_address?: string;
|
|
@@ -316,7 +384,13 @@ export type AdminCompanyWritable = {
|
|
|
316
384
|
* * `base` - Base
|
|
317
385
|
*/
|
|
318
386
|
mukuru_chain?: 'base';
|
|
319
|
-
|
|
387
|
+
business_sender_first_name?: string;
|
|
388
|
+
business_sender_last_name?: string;
|
|
389
|
+
business_sender_street_address?: string;
|
|
390
|
+
business_sender_city?: string;
|
|
391
|
+
business_sender_region?: string;
|
|
392
|
+
business_sender_postal_code?: string;
|
|
393
|
+
business_sender_country_code?: string;
|
|
320
394
|
};
|
|
321
395
|
|
|
322
396
|
export type AdminCompanyResponseWritable = {
|
|
@@ -355,6 +429,32 @@ export type AdminMukuruTransactionResponseWritable = {
|
|
|
355
429
|
status: string;
|
|
356
430
|
};
|
|
357
431
|
|
|
432
|
+
/**
|
|
433
|
+
* Write variant of `AdminCompanySerializer` used for PATCH/PUT. Secrets
|
|
434
|
+
* are writable here (plain CharFields) but marked write-only so the
|
|
435
|
+
* PATCH response can't leak the plaintext the admin just sent — the
|
|
436
|
+
* dashboard refetches via GET to display the masked values.
|
|
437
|
+
*/
|
|
438
|
+
export type AdminUpdateCompanyWritable = {
|
|
439
|
+
mukuru_keycloak_client_id?: string;
|
|
440
|
+
mukuru_keycloak_client_secret?: string;
|
|
441
|
+
mukuru_keycloak_token_url?: string;
|
|
442
|
+
mukuru_base_url?: string;
|
|
443
|
+
mukuru_operational_address?: string;
|
|
444
|
+
/**
|
|
445
|
+
* * `base` - Base
|
|
446
|
+
*/
|
|
447
|
+
mukuru_chain?: 'base';
|
|
448
|
+
mukuru_callback_password?: string;
|
|
449
|
+
business_sender_first_name?: string;
|
|
450
|
+
business_sender_last_name?: string;
|
|
451
|
+
business_sender_street_address?: string;
|
|
452
|
+
business_sender_city?: string;
|
|
453
|
+
business_sender_region?: string;
|
|
454
|
+
business_sender_postal_code?: string;
|
|
455
|
+
business_sender_country_code?: string;
|
|
456
|
+
};
|
|
457
|
+
|
|
358
458
|
export type PaginatedAdminMukuruProductListWritable = {
|
|
359
459
|
count: number;
|
|
360
460
|
next?: string | null;
|
|
@@ -403,25 +503,6 @@ export type PaginatedUserMukuruTransactionListResponseWritable = {
|
|
|
403
503
|
data: PaginatedUserMukuruTransactionListWritable;
|
|
404
504
|
};
|
|
405
505
|
|
|
406
|
-
/**
|
|
407
|
-
* A ModelSerializer that takes additional arguments for
|
|
408
|
-
* "fields", "omit" and "expand" in order to
|
|
409
|
-
* control which fields are displayed, and whether to replace simple
|
|
410
|
-
* values with complex, nested serializations
|
|
411
|
-
*/
|
|
412
|
-
export type PatchedAdminCompanyWritable = {
|
|
413
|
-
mukuru_keycloak_client_id?: string;
|
|
414
|
-
mukuru_keycloak_client_secret?: string;
|
|
415
|
-
mukuru_keycloak_token_url?: string;
|
|
416
|
-
mukuru_base_url?: string;
|
|
417
|
-
mukuru_operational_address?: string;
|
|
418
|
-
/**
|
|
419
|
-
* * `base` - Base
|
|
420
|
-
*/
|
|
421
|
-
mukuru_chain?: 'base';
|
|
422
|
-
mukuru_callback_password?: string;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
506
|
/**
|
|
426
507
|
* Per-company Mukuru payout product, configurable by company admins via
|
|
427
508
|
* `/api/admin/products/`. Lets clients self-configure their own catalog
|
|
@@ -444,6 +525,32 @@ export type PatchedAdminMukuruProductWritable = {
|
|
|
444
525
|
active?: boolean;
|
|
445
526
|
};
|
|
446
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Write variant of `AdminCompanySerializer` used for PATCH/PUT. Secrets
|
|
530
|
+
* are writable here (plain CharFields) but marked write-only so the
|
|
531
|
+
* PATCH response can't leak the plaintext the admin just sent — the
|
|
532
|
+
* dashboard refetches via GET to display the masked values.
|
|
533
|
+
*/
|
|
534
|
+
export type PatchedAdminUpdateCompanyWritable = {
|
|
535
|
+
mukuru_keycloak_client_id?: string;
|
|
536
|
+
mukuru_keycloak_client_secret?: string;
|
|
537
|
+
mukuru_keycloak_token_url?: string;
|
|
538
|
+
mukuru_base_url?: string;
|
|
539
|
+
mukuru_operational_address?: string;
|
|
540
|
+
/**
|
|
541
|
+
* * `base` - Base
|
|
542
|
+
*/
|
|
543
|
+
mukuru_chain?: 'base';
|
|
544
|
+
mukuru_callback_password?: string;
|
|
545
|
+
business_sender_first_name?: string;
|
|
546
|
+
business_sender_last_name?: string;
|
|
547
|
+
business_sender_street_address?: string;
|
|
548
|
+
business_sender_city?: string;
|
|
549
|
+
business_sender_region?: string;
|
|
550
|
+
business_sender_postal_code?: string;
|
|
551
|
+
business_sender_country_code?: string;
|
|
552
|
+
};
|
|
553
|
+
|
|
447
554
|
export type UserMukuruTransactionResponseWritable = {
|
|
448
555
|
status: string;
|
|
449
556
|
};
|
|
@@ -475,7 +582,7 @@ export type AdminCompanyRetrieveResponses = {
|
|
|
475
582
|
export type AdminCompanyRetrieveResponse = AdminCompanyRetrieveResponses[keyof AdminCompanyRetrieveResponses];
|
|
476
583
|
|
|
477
584
|
export type AdminCompanyPartialUpdateData = {
|
|
478
|
-
body?:
|
|
585
|
+
body?: PatchedAdminUpdateCompanyWritable;
|
|
479
586
|
path?: never;
|
|
480
587
|
query?: never;
|
|
481
588
|
url: '/admin/company/';
|
|
@@ -488,7 +595,7 @@ export type AdminCompanyPartialUpdateResponses = {
|
|
|
488
595
|
export type AdminCompanyPartialUpdateResponse = AdminCompanyPartialUpdateResponses[keyof AdminCompanyPartialUpdateResponses];
|
|
489
596
|
|
|
490
597
|
export type AdminCompanyUpdateData = {
|
|
491
|
-
body?:
|
|
598
|
+
body?: AdminUpdateCompanyWritable;
|
|
492
599
|
path?: never;
|
|
493
600
|
query?: never;
|
|
494
601
|
url: '/admin/company/';
|
|
@@ -500,6 +607,19 @@ export type AdminCompanyUpdateResponses = {
|
|
|
500
607
|
|
|
501
608
|
export type AdminCompanyUpdateResponse = AdminCompanyUpdateResponses[keyof AdminCompanyUpdateResponses];
|
|
502
609
|
|
|
610
|
+
export type AdminOperationalAccountsRetrieveData = {
|
|
611
|
+
body?: never;
|
|
612
|
+
path?: never;
|
|
613
|
+
query?: never;
|
|
614
|
+
url: '/admin/operational-accounts/';
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
export type AdminOperationalAccountsRetrieveResponses = {
|
|
618
|
+
200: AdminOperationalAccounts;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
export type AdminOperationalAccountsRetrieveResponse = AdminOperationalAccountsRetrieveResponses[keyof AdminOperationalAccountsRetrieveResponses];
|
|
622
|
+
|
|
503
623
|
export type AdminProductsListData = {
|
|
504
624
|
body?: never;
|
|
505
625
|
path?: never;
|
|
@@ -632,6 +752,22 @@ export type AdminTransactionsRetrieveResponses = {
|
|
|
632
752
|
|
|
633
753
|
export type AdminTransactionsRetrieveResponse = AdminTransactionsRetrieveResponses[keyof AdminTransactionsRetrieveResponses];
|
|
634
754
|
|
|
755
|
+
export type AdminTransactionsCancelCreateData = {
|
|
756
|
+
body?: never;
|
|
757
|
+
path: {
|
|
758
|
+
rehive_transaction_id: string;
|
|
759
|
+
};
|
|
760
|
+
query?: never;
|
|
761
|
+
url: '/admin/transactions/{rehive_transaction_id}/cancel/';
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
export type AdminTransactionsCancelCreateResponses = {
|
|
765
|
+
/**
|
|
766
|
+
* No response body
|
|
767
|
+
*/
|
|
768
|
+
200: unknown;
|
|
769
|
+
};
|
|
770
|
+
|
|
635
771
|
export type AdminTransactionsRefreshStatusCreateData = {
|
|
636
772
|
body?: never;
|
|
637
773
|
path: {
|
|
@@ -764,6 +900,22 @@ export type UserTransactionsRetrieveResponses = {
|
|
|
764
900
|
|
|
765
901
|
export type UserTransactionsRetrieveResponse = UserTransactionsRetrieveResponses[keyof UserTransactionsRetrieveResponses];
|
|
766
902
|
|
|
903
|
+
export type UserTransactionsCancelCreateData = {
|
|
904
|
+
body?: never;
|
|
905
|
+
path: {
|
|
906
|
+
rehive_transaction_id: string;
|
|
907
|
+
};
|
|
908
|
+
query?: never;
|
|
909
|
+
url: '/user/transactions/{rehive_transaction_id}/cancel/';
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
export type UserTransactionsCancelCreateResponses = {
|
|
913
|
+
/**
|
|
914
|
+
* No response body
|
|
915
|
+
*/
|
|
916
|
+
200: unknown;
|
|
917
|
+
};
|
|
918
|
+
|
|
767
919
|
export type WebhookCreateData = {
|
|
768
920
|
body: Webhook;
|
|
769
921
|
path?: never;
|
|
@@ -10,6 +10,7 @@ export {
|
|
|
10
10
|
export { buildClientParams } from '../core/params.gen';
|
|
11
11
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
12
12
|
export type { ServerSentEventsResult } from '../core/serverSentEvents.gen';
|
|
13
|
+
export type { ClientMeta } from '../core/types.gen';
|
|
13
14
|
export { createClient } from './client.gen';
|
|
14
15
|
export type {
|
|
15
16
|
Client,
|
|
@@ -88,16 +88,15 @@ function buildKeyMap(fields: FieldsConfig, map?: KeyMap): KeyMap {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
interface Params {
|
|
91
|
-
body
|
|
91
|
+
body?: unknown;
|
|
92
92
|
headers: Record<string, unknown>;
|
|
93
93
|
path: Record<string, unknown>;
|
|
94
94
|
query: Record<string, unknown>;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
function stripEmptySlots(params: ParamsSlotMap): void {
|
|
97
|
+
function stripEmptySlots(params: Params): void {
|
|
100
98
|
for (const [slot, value] of Object.entries(params)) {
|
|
99
|
+
if (slot === 'body') continue;
|
|
101
100
|
if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) {
|
|
102
101
|
delete params[slot as Slot];
|
|
103
102
|
}
|
|
@@ -105,8 +104,7 @@ function stripEmptySlots(params: ParamsSlotMap): void {
|
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsConfig): Params {
|
|
108
|
-
const params:
|
|
109
|
-
body: Object.create(null),
|
|
107
|
+
const params: Params = {
|
|
110
108
|
headers: Object.create(null),
|
|
111
109
|
path: Object.create(null),
|
|
112
110
|
query: Object.create(null),
|
|
@@ -114,6 +112,15 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
114
112
|
|
|
115
113
|
const map = buildKeyMap(fields);
|
|
116
114
|
|
|
115
|
+
function writeSlot(slot: Slot, key: string, value: unknown): void {
|
|
116
|
+
let record = params[slot] as Record<string, unknown> | undefined;
|
|
117
|
+
if (record === undefined) {
|
|
118
|
+
record = Object.create(null) as Record<string, unknown>;
|
|
119
|
+
params[slot] = record;
|
|
120
|
+
}
|
|
121
|
+
record[key] = value;
|
|
122
|
+
}
|
|
123
|
+
|
|
117
124
|
let config: FieldsConfig[number] | undefined;
|
|
118
125
|
|
|
119
126
|
for (const [index, arg] of args.entries()) {
|
|
@@ -130,7 +137,7 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
130
137
|
const field = map.get(config.key)!;
|
|
131
138
|
const name = field.map || config.key;
|
|
132
139
|
if (field.in) {
|
|
133
|
-
(
|
|
140
|
+
writeSlot(field.in, name, arg);
|
|
134
141
|
}
|
|
135
142
|
} else {
|
|
136
143
|
params.body = arg;
|
|
@@ -142,7 +149,7 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
142
149
|
if (field) {
|
|
143
150
|
if (field.in) {
|
|
144
151
|
const name = field.map || key;
|
|
145
|
-
(
|
|
152
|
+
writeSlot(field.in, name, value);
|
|
146
153
|
} else {
|
|
147
154
|
params[field.map] = value;
|
|
148
155
|
}
|
|
@@ -151,11 +158,11 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
151
158
|
|
|
152
159
|
if (extra) {
|
|
153
160
|
const [prefix, slot] = extra;
|
|
154
|
-
(
|
|
161
|
+
writeSlot(slot, key.slice(prefix.length), value);
|
|
155
162
|
} else if ('allowExtra' in config && config.allowExtra) {
|
|
156
163
|
for (const [slot, allowed] of Object.entries(config.allowExtra)) {
|
|
157
164
|
if (allowed) {
|
|
158
|
-
(
|
|
165
|
+
writeSlot(slot as Slot, key, value);
|
|
159
166
|
break;
|
|
160
167
|
}
|
|
161
168
|
}
|
|
@@ -167,5 +174,5 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
167
174
|
|
|
168
175
|
stripEmptySlots(params);
|
|
169
176
|
|
|
170
|
-
return params
|
|
177
|
+
return params;
|
|
171
178
|
}
|
|
@@ -91,6 +91,12 @@ export interface Config {
|
|
|
91
91
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
96
|
+
*/
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
98
|
+
export interface ClientMeta {}
|
|
99
|
+
|
|
94
100
|
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never]
|
|
95
101
|
? true
|
|
96
102
|
: [T] extends [never | undefined]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import type { Client, Options as Options2, RequestResult, TDataShape } from './client';
|
|
3
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
5
|
import type { ActivateCreateData, ActivateCreateResponses, AdminCompanyPartialUpdateData, AdminCompanyPartialUpdateResponses, AdminCompanyRetrieveData, AdminCompanyRetrieveResponses, AdminCompanyUpdateData, AdminCompanyUpdateResponses, AdminCredentialsCreateData, AdminCredentialsCreateResponses, AdminCredentialsDestroyData, AdminCredentialsDestroyResponses, AdminCredentialsListData, AdminCredentialsListResponses, AdminCredentialsPartialUpdateData, AdminCredentialsPartialUpdateResponses, AdminCredentialsRetrieveData, AdminCredentialsRetrieveResponses, AdminCredentialsUpdateData, AdminCredentialsUpdateResponses, AdminLayoutsCreateData, AdminLayoutsCreateResponses, AdminLayoutsDestroyData, AdminLayoutsDestroyResponses, AdminLayoutsListData, AdminLayoutsListResponses, AdminLayoutsPartialUpdateData, AdminLayoutsPartialUpdateResponses, AdminLayoutsRetrieveData, AdminLayoutsRetrieveResponses, AdminLayoutsUpdateData, AdminLayoutsUpdateResponses, AdminLayoutTemplatesListData, AdminLayoutTemplatesListResponses, AdminLayoutTemplatesRetrieveData, AdminLayoutTemplatesRetrieveResponses, AdminLogsListData, AdminLogsListResponses, AdminLogsRetrieveData, AdminLogsRetrieveResponses, AdminLogsSendCreateData, AdminLogsSendCreateResponses, AdminNotificationsCreateData, AdminNotificationsCreateResponses, AdminNotificationsDestroyData, AdminNotificationsDestroyResponses, AdminNotificationsListData, AdminNotificationsListResponses, AdminNotificationsPartialUpdateData, AdminNotificationsPartialUpdateResponses, AdminNotificationsRetrieveData, AdminNotificationsRetrieveResponses, AdminNotificationsTriggerCreateData, AdminNotificationsTriggerCreateResponses, AdminNotificationsUpdateData, AdminNotificationsUpdateResponses, AdminTemplatesListData, AdminTemplatesListResponses, AdminTemplatesRetrieveData, AdminTemplatesRetrieveResponses, AdminWebhookCreateData, AdminWebhookCreateResponses, DeactivateCreateData, DeactivateCreateResponses, UserLogsListData, UserLogsListResponses, UserLogsPartialUpdateData, UserLogsPartialUpdateResponses, UserLogsRetrieveData, UserLogsRetrieveResponses, UserLogsUpdateData, UserLogsUpdateResponses, UserNotificationsListData, UserNotificationsListResponses, UserNotificationsPartialUpdateData, UserNotificationsPartialUpdateResponses, UserNotificationsRetrieveData, UserNotificationsRetrieveResponses, UserNotificationsUpdateData, UserNotificationsUpdateResponses, WebhookCreateData, WebhookCreateResponses } from './types.gen';
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
15
15
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
16
|
* used to access values that aren't defined as part of the SDK function.
|
|
17
17
|
*/
|
|
18
|
-
meta?: Record<string, unknown
|
|
18
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -10,6 +10,7 @@ export {
|
|
|
10
10
|
export { buildClientParams } from '../core/params.gen';
|
|
11
11
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
12
12
|
export type { ServerSentEventsResult } from '../core/serverSentEvents.gen';
|
|
13
|
+
export type { ClientMeta } from '../core/types.gen';
|
|
13
14
|
export { createClient } from './client.gen';
|
|
14
15
|
export type {
|
|
15
16
|
Client,
|
|
@@ -88,16 +88,15 @@ function buildKeyMap(fields: FieldsConfig, map?: KeyMap): KeyMap {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
interface Params {
|
|
91
|
-
body
|
|
91
|
+
body?: unknown;
|
|
92
92
|
headers: Record<string, unknown>;
|
|
93
93
|
path: Record<string, unknown>;
|
|
94
94
|
query: Record<string, unknown>;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
function stripEmptySlots(params: ParamsSlotMap): void {
|
|
97
|
+
function stripEmptySlots(params: Params): void {
|
|
100
98
|
for (const [slot, value] of Object.entries(params)) {
|
|
99
|
+
if (slot === 'body') continue;
|
|
101
100
|
if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) {
|
|
102
101
|
delete params[slot as Slot];
|
|
103
102
|
}
|
|
@@ -105,8 +104,7 @@ function stripEmptySlots(params: ParamsSlotMap): void {
|
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsConfig): Params {
|
|
108
|
-
const params:
|
|
109
|
-
body: Object.create(null),
|
|
107
|
+
const params: Params = {
|
|
110
108
|
headers: Object.create(null),
|
|
111
109
|
path: Object.create(null),
|
|
112
110
|
query: Object.create(null),
|
|
@@ -114,6 +112,15 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
114
112
|
|
|
115
113
|
const map = buildKeyMap(fields);
|
|
116
114
|
|
|
115
|
+
function writeSlot(slot: Slot, key: string, value: unknown): void {
|
|
116
|
+
let record = params[slot] as Record<string, unknown> | undefined;
|
|
117
|
+
if (record === undefined) {
|
|
118
|
+
record = Object.create(null) as Record<string, unknown>;
|
|
119
|
+
params[slot] = record;
|
|
120
|
+
}
|
|
121
|
+
record[key] = value;
|
|
122
|
+
}
|
|
123
|
+
|
|
117
124
|
let config: FieldsConfig[number] | undefined;
|
|
118
125
|
|
|
119
126
|
for (const [index, arg] of args.entries()) {
|
|
@@ -130,7 +137,7 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
130
137
|
const field = map.get(config.key)!;
|
|
131
138
|
const name = field.map || config.key;
|
|
132
139
|
if (field.in) {
|
|
133
|
-
(
|
|
140
|
+
writeSlot(field.in, name, arg);
|
|
134
141
|
}
|
|
135
142
|
} else {
|
|
136
143
|
params.body = arg;
|
|
@@ -142,7 +149,7 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
142
149
|
if (field) {
|
|
143
150
|
if (field.in) {
|
|
144
151
|
const name = field.map || key;
|
|
145
|
-
(
|
|
152
|
+
writeSlot(field.in, name, value);
|
|
146
153
|
} else {
|
|
147
154
|
params[field.map] = value;
|
|
148
155
|
}
|
|
@@ -151,11 +158,11 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
151
158
|
|
|
152
159
|
if (extra) {
|
|
153
160
|
const [prefix, slot] = extra;
|
|
154
|
-
(
|
|
161
|
+
writeSlot(slot, key.slice(prefix.length), value);
|
|
155
162
|
} else if ('allowExtra' in config && config.allowExtra) {
|
|
156
163
|
for (const [slot, allowed] of Object.entries(config.allowExtra)) {
|
|
157
164
|
if (allowed) {
|
|
158
|
-
(
|
|
165
|
+
writeSlot(slot as Slot, key, value);
|
|
159
166
|
break;
|
|
160
167
|
}
|
|
161
168
|
}
|
|
@@ -167,5 +174,5 @@ export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsCo
|
|
|
167
174
|
|
|
168
175
|
stripEmptySlots(params);
|
|
169
176
|
|
|
170
|
-
return params
|
|
177
|
+
return params;
|
|
171
178
|
}
|
|
@@ -91,6 +91,12 @@ export interface Config {
|
|
|
91
91
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
96
|
+
*/
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
98
|
+
export interface ClientMeta {}
|
|
99
|
+
|
|
94
100
|
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never]
|
|
95
101
|
? true
|
|
96
102
|
: [T] extends [never | undefined]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
import type { Client, Options as Options2, RequestResult, TDataShape } from './client';
|
|
3
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
|
|
4
4
|
import { client } from './client.gen';
|
|
5
5
|
import type { ActivateCreateData, ActivateCreateResponses, AdminCompanyConfigurationPartialUpdateData, AdminCompanyConfigurationPartialUpdateResponses, AdminCompanyConfigurationRetrieveData, AdminCompanyConfigurationRetrieveResponses, AdminCompanyConfigurationUpdateData, AdminCompanyConfigurationUpdateResponses, AdminCompanyPartialUpdateData, AdminCompanyPartialUpdateResponses, AdminCompanyPaymentProcessorsCreateData, AdminCompanyPaymentProcessorsCreateResponses, AdminCompanyPaymentProcessorsDestroyData, AdminCompanyPaymentProcessorsDestroyResponses, AdminCompanyPaymentProcessorsListData, AdminCompanyPaymentProcessorsListResponses, AdminCompanyPaymentProcessorsPartialUpdateData, AdminCompanyPaymentProcessorsPartialUpdateResponses, AdminCompanyPaymentProcessorsRetrieveData, AdminCompanyPaymentProcessorsRetrieveResponses, AdminCompanyPaymentProcessorsUpdateData, AdminCompanyPaymentProcessorsUpdateResponses, AdminCompanyRetrieveData, AdminCompanyRetrieveResponses, AdminCompanyUpdateData, AdminCompanyUpdateResponses, AdminPaymentProcessorQuoteListData, AdminPaymentProcessorQuoteListResponses, AdminPaymentProcessorsCreateData, AdminPaymentProcessorsCreateResponses, AdminPaymentProcessorsDestroyData, AdminPaymentProcessorsDestroyResponses, AdminPaymentProcessorsListData, AdminPaymentProcessorsListResponses, AdminPaymentProcessorsPartialUpdateData, AdminPaymentProcessorsPartialUpdateResponses, AdminPaymentProcessorsRetrieveData, AdminPaymentProcessorsRetrieveResponses, AdminPaymentProcessorsUpdateData, AdminPaymentProcessorsUpdateResponses, AdminRequestsCreateData, AdminRequestsCreateResponses, AdminRequestsListData, AdminRequestsListResponses, AdminRequestsLogsListData, AdminRequestsLogsListResponses, AdminRequestsPartialUpdateData, AdminRequestsPartialUpdateResponses, AdminRequestsPaymentProcessQuotesExecuteRetrieveData, AdminRequestsPaymentProcessQuotesExecuteRetrieveResponses, AdminRequestsPaymentProcessQuotesListData, AdminRequestsPaymentProcessQuotesListResponses, AdminRequestsPaymentProcessQuotesRetrieveData, AdminRequestsPaymentProcessQuotesRetrieveResponses, AdminRequestsRefundsCreateData, AdminRequestsRefundsCreateResponses, AdminRequestsRefundsListData, AdminRequestsRefundsListResponses, AdminRequestsRetrieveData, AdminRequestsRetrieveResponses, AdminRequestsTransactionsListData, AdminRequestsTransactionsListResponses, AdminRequestsUpdateData, AdminRequestsUpdateResponses, AdminUsersListData, AdminUsersListResponses, AdminUsersPartialUpdateData, AdminUsersPartialUpdateResponses, AdminUsersRetrieveData, AdminUsersRetrieveResponses, AdminUsersUpdateData, AdminUsersUpdateResponses, AdminWebhooksCreateData, AdminWebhooksCreateResponses, AdminWebhooksDestroyData, AdminWebhooksDestroyResponses, AdminWebhooksListData, AdminWebhooksListResponses, AdminWebhooksPartialUpdateData, AdminWebhooksPartialUpdateResponses, AdminWebhooksRetrieveData, AdminWebhooksRetrieveResponses, AdminWebhooksUpdateData, AdminWebhooksUpdateResponses, DeactivateCreateData, DeactivateCreateResponses, RequestsOtpChallengeCreateData, RequestsOtpChallengeCreateResponses, RequestsPartialUpdateData, RequestsPartialUpdateResponses, RequestsPaymentProcessorsListData, RequestsPaymentProcessorsListResponses, RequestsResendOtpCreateData, RequestsResendOtpCreateResponses, RequestsRetrieveData, RequestsRetrieveResponses, RequestsTransactionsListData, RequestsTransactionsListResponses, RequestsUpdateData, RequestsUpdateResponses, UserPaymentProcessorsCreateData, UserPaymentProcessorsCreateResponses, UserPaymentProcessorsDestroyData, UserPaymentProcessorsDestroyResponses, UserPaymentProcessorsListData, UserPaymentProcessorsListResponses, UserPaymentProcessorsPartialUpdateData, UserPaymentProcessorsPartialUpdateResponses, UserPaymentProcessorsRetrieveData, UserPaymentProcessorsRetrieveResponses, UserPaymentProcessorsUpdateData, UserPaymentProcessorsUpdateResponses, UserRequestsCreateData, UserRequestsCreateResponses, UserRequestsListData, UserRequestsListResponses, UserRequestsNotifyCreateData, UserRequestsNotifyCreateResponses, UserRequestsPartialUpdateData, UserRequestsPartialUpdateResponses, UserRequestsRefundsCreateData, UserRequestsRefundsCreateResponses, UserRequestsRefundsListData, UserRequestsRefundsListResponses, UserRequestsRetrieveData, UserRequestsRetrieveResponses, UserRequestsTransactionsListData, UserRequestsTransactionsListResponses, UserRequestsUpdateData, UserRequestsUpdateResponses, UserWebhooksCreateData, UserWebhooksCreateResponses, UserWebhooksDestroyData, UserWebhooksDestroyResponses, UserWebhooksListData, UserWebhooksListResponses, UserWebhooksPartialUpdateData, UserWebhooksPartialUpdateResponses, UserWebhooksRetrieveData, UserWebhooksRetrieveResponses, UserWebhooksUpdateData, UserWebhooksUpdateResponses, WebhookCreateData, WebhookCreateResponses, WebhooksRehiveTransactionExecutedCreateData, WebhooksRehiveTransactionExecutedCreateResponses, WebhooksRehiveTransactionInitiatedCreateData, WebhooksRehiveTransactionInitiatedCreateResponses, WebhooksRehiveUserCreateCreateData, WebhooksRehiveUserCreateCreateResponses, WebhooksRehiveUserEmailUpdateCreateData, WebhooksRehiveUserEmailUpdateCreateResponses, WebhooksRehiveUserUpdateCreateData, WebhooksRehiveUserUpdateCreateResponses } from './types.gen';
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
15
15
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
16
|
* used to access values that aren't defined as part of the SDK function.
|
|
17
17
|
*/
|
|
18
|
-
meta?: Record<string, unknown
|
|
18
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -10,6 +10,7 @@ export {
|
|
|
10
10
|
export { buildClientParams } from '../core/params.gen';
|
|
11
11
|
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
12
12
|
export type { ServerSentEventsResult } from '../core/serverSentEvents.gen';
|
|
13
|
+
export type { ClientMeta } from '../core/types.gen';
|
|
13
14
|
export { createClient } from './client.gen';
|
|
14
15
|
export type {
|
|
15
16
|
Client,
|