@marcohefti/request-network-api-client 0.5.10 → 0.5.12

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.
Files changed (40) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/domains/client-ids/index.js +5 -5
  3. package/dist/cjs/domains/client-ids/index.js.map +1 -1
  4. package/dist/cjs/domains/currencies/index.js +15 -15
  5. package/dist/cjs/domains/currencies/index.js.map +1 -1
  6. package/dist/cjs/domains/payee-destination/index.js +276 -0
  7. package/dist/cjs/domains/payee-destination/index.js.map +1 -0
  8. package/dist/cjs/domains/payouts/index.js +2 -2
  9. package/dist/cjs/domains/payouts/index.js.map +1 -1
  10. package/dist/cjs/domains/requests/index.js +7 -5
  11. package/dist/cjs/domains/requests/index.js.map +1 -1
  12. package/dist/cjs/index.js +271 -112
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/esm/domains/client-ids/index.d.mts +2 -2
  15. package/dist/esm/domains/client-ids/index.js +5 -5
  16. package/dist/esm/domains/client-ids/index.js.map +1 -1
  17. package/dist/esm/domains/currencies/index.d.mts +2 -2
  18. package/dist/esm/domains/currencies/index.js +15 -15
  19. package/dist/esm/domains/currencies/index.js.map +1 -1
  20. package/dist/esm/domains/payee-destination/index.d.mts +2 -0
  21. package/dist/esm/domains/payee-destination/index.js +274 -0
  22. package/dist/esm/domains/payee-destination/index.js.map +1 -0
  23. package/dist/esm/domains/payer/index.d.mts +2 -2
  24. package/dist/esm/domains/payouts/index.d.mts +2 -2
  25. package/dist/esm/domains/payouts/index.js +2 -2
  26. package/dist/esm/domains/payouts/index.js.map +1 -1
  27. package/dist/esm/domains/requests/index.d.mts +2 -2
  28. package/dist/esm/domains/requests/index.js +7 -5
  29. package/dist/esm/domains/requests/index.js.map +1 -1
  30. package/dist/esm/{index-Bum0bfZQ.d.mts → index-DJGHELE1.d.mts} +16 -16
  31. package/dist/esm/{index-Q2g0D7V8.d.mts → index-DJjp2Jbk.d.mts} +1 -1
  32. package/dist/esm/index-DQIf9k5x.d.mts +31 -0
  33. package/dist/esm/{index-BmWmfcnn.d.mts → index-DbnV_D6L.d.mts} +1 -1
  34. package/dist/esm/{index-CNK36ZX5.d.mts → index-hYoC2ndH.d.mts} +1 -1
  35. package/dist/esm/{index-Cd7x0Hv-.d.mts → index-y1nxa55y.d.mts} +1 -1
  36. package/dist/esm/index.d.mts +124 -120
  37. package/dist/esm/index.js +271 -113
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/{openapi-types-CtUFCrk4.d.mts → openapi-types-CQ1z27_K.d.mts} +310 -51
  40. package/package.json +13 -7
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { o as operations, a as RuntimeValidationOption, b as HttpClient, c as RequestOptions } from './openapi-types-CtUFCrk4.mjs';
2
+ import { o as operations, a as RuntimeValidationOption, b as HttpClient, c as RequestOptions } from './openapi-types-CQ1z27_K.mjs';
3
3
 
4
4
  declare const CurrencyTokenSchema: z.ZodObject<{
5
5
  id: z.ZodString;
6
- name: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
7
  symbol: z.ZodString;
8
8
  decimals: z.ZodNumber;
9
9
  address: z.ZodOptional<z.ZodString>;
@@ -13,7 +13,7 @@ declare const CurrencyTokenSchema: z.ZodObject<{
13
13
  chainId: z.ZodOptional<z.ZodNumber>;
14
14
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15
15
  id: z.ZodString;
16
- name: z.ZodString;
16
+ name: z.ZodOptional<z.ZodString>;
17
17
  symbol: z.ZodString;
18
18
  decimals: z.ZodNumber;
19
19
  address: z.ZodOptional<z.ZodString>;
@@ -23,7 +23,7 @@ declare const CurrencyTokenSchema: z.ZodObject<{
23
23
  chainId: z.ZodOptional<z.ZodNumber>;
24
24
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
25
25
  id: z.ZodString;
26
- name: z.ZodString;
26
+ name: z.ZodOptional<z.ZodString>;
27
27
  symbol: z.ZodString;
28
28
  decimals: z.ZodNumber;
29
29
  address: z.ZodOptional<z.ZodString>;
@@ -34,7 +34,7 @@ declare const CurrencyTokenSchema: z.ZodObject<{
34
34
  }, z.ZodTypeAny, "passthrough">>;
35
35
  declare const CurrenciesListSchema: z.ZodArray<z.ZodObject<{
36
36
  id: z.ZodString;
37
- name: z.ZodString;
37
+ name: z.ZodOptional<z.ZodString>;
38
38
  symbol: z.ZodString;
39
39
  decimals: z.ZodNumber;
40
40
  address: z.ZodOptional<z.ZodString>;
@@ -44,7 +44,7 @@ declare const CurrenciesListSchema: z.ZodArray<z.ZodObject<{
44
44
  chainId: z.ZodOptional<z.ZodNumber>;
45
45
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
46
46
  id: z.ZodString;
47
- name: z.ZodString;
47
+ name: z.ZodOptional<z.ZodString>;
48
48
  symbol: z.ZodString;
49
49
  decimals: z.ZodNumber;
50
50
  address: z.ZodOptional<z.ZodString>;
@@ -54,7 +54,7 @@ declare const CurrenciesListSchema: z.ZodArray<z.ZodObject<{
54
54
  chainId: z.ZodOptional<z.ZodNumber>;
55
55
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
56
56
  id: z.ZodString;
57
- name: z.ZodString;
57
+ name: z.ZodOptional<z.ZodString>;
58
58
  symbol: z.ZodString;
59
59
  decimals: z.ZodNumber;
60
60
  address: z.ZodOptional<z.ZodString>;
@@ -70,7 +70,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
70
70
  network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  conversionRoutes: z.ZodArray<z.ZodObject<{
72
72
  id: z.ZodString;
73
- name: z.ZodString;
73
+ name: z.ZodOptional<z.ZodString>;
74
74
  symbol: z.ZodString;
75
75
  decimals: z.ZodNumber;
76
76
  address: z.ZodOptional<z.ZodString>;
@@ -80,7 +80,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
80
80
  chainId: z.ZodOptional<z.ZodNumber>;
81
81
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
82
82
  id: z.ZodString;
83
- name: z.ZodString;
83
+ name: z.ZodOptional<z.ZodString>;
84
84
  symbol: z.ZodString;
85
85
  decimals: z.ZodNumber;
86
86
  address: z.ZodOptional<z.ZodString>;
@@ -90,7 +90,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
90
90
  chainId: z.ZodOptional<z.ZodNumber>;
91
91
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
92
92
  id: z.ZodString;
93
- name: z.ZodString;
93
+ name: z.ZodOptional<z.ZodString>;
94
94
  symbol: z.ZodString;
95
95
  decimals: z.ZodNumber;
96
96
  address: z.ZodOptional<z.ZodString>;
@@ -104,7 +104,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
104
104
  network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
105
  conversionRoutes: z.ZodArray<z.ZodObject<{
106
106
  id: z.ZodString;
107
- name: z.ZodString;
107
+ name: z.ZodOptional<z.ZodString>;
108
108
  symbol: z.ZodString;
109
109
  decimals: z.ZodNumber;
110
110
  address: z.ZodOptional<z.ZodString>;
@@ -114,7 +114,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
114
114
  chainId: z.ZodOptional<z.ZodNumber>;
115
115
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
116
116
  id: z.ZodString;
117
- name: z.ZodString;
117
+ name: z.ZodOptional<z.ZodString>;
118
118
  symbol: z.ZodString;
119
119
  decimals: z.ZodNumber;
120
120
  address: z.ZodOptional<z.ZodString>;
@@ -124,7 +124,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
124
124
  chainId: z.ZodOptional<z.ZodNumber>;
125
125
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
126
126
  id: z.ZodString;
127
- name: z.ZodString;
127
+ name: z.ZodOptional<z.ZodString>;
128
128
  symbol: z.ZodString;
129
129
  decimals: z.ZodNumber;
130
130
  address: z.ZodOptional<z.ZodString>;
@@ -138,7 +138,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
138
138
  network: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
139
  conversionRoutes: z.ZodArray<z.ZodObject<{
140
140
  id: z.ZodString;
141
- name: z.ZodString;
141
+ name: z.ZodOptional<z.ZodString>;
142
142
  symbol: z.ZodString;
143
143
  decimals: z.ZodNumber;
144
144
  address: z.ZodOptional<z.ZodString>;
@@ -148,7 +148,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
148
148
  chainId: z.ZodOptional<z.ZodNumber>;
149
149
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
150
150
  id: z.ZodString;
151
- name: z.ZodString;
151
+ name: z.ZodOptional<z.ZodString>;
152
152
  symbol: z.ZodString;
153
153
  decimals: z.ZodNumber;
154
154
  address: z.ZodOptional<z.ZodString>;
@@ -158,7 +158,7 @@ declare const ConversionRoutesSchema: z.ZodObject<{
158
158
  chainId: z.ZodOptional<z.ZodNumber>;
159
159
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
160
160
  id: z.ZodString;
161
- name: z.ZodString;
161
+ name: z.ZodOptional<z.ZodString>;
162
162
  symbol: z.ZodString;
163
163
  decimals: z.ZodNumber;
164
164
  address: z.ZodOptional<z.ZodString>;
@@ -1,4 +1,4 @@
1
- import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CtUFCrk4.mjs';
1
+ import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
2
2
 
3
3
  declare const OP_CREATE_COMPLIANCE$1: "PayerV1Controller_getComplianceData_v1";
4
4
  declare const OP_GET_STATUS$1: "PayerV1Controller_getComplianceStatus_v1";
@@ -0,0 +1,31 @@
1
+ import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
2
+
3
+ declare const OP_GET_SIGNING_DATA: "PayeeDestinationController_getSigningData_v2";
4
+ declare const OP_CREATE: "PayeeDestinationController_createPayeeDestination_v2";
5
+ declare const OP_DEACTIVATE: "PayeeDestinationController_deactivatePayeeDestination_v2";
6
+ type GetSigningDataQuery = operations[typeof OP_GET_SIGNING_DATA]["parameters"]["query"];
7
+ type CreateBody = operations[typeof OP_CREATE]["requestBody"]["content"]["application/json"];
8
+ type DeactivateBody = operations[typeof OP_DEACTIVATE]["requestBody"]["content"]["application/json"];
9
+ interface PayeeDestinationOperationOptions {
10
+ signal?: AbortSignal;
11
+ timeoutMs?: number;
12
+ validation?: RuntimeValidationOption;
13
+ meta?: RequestOptions["meta"];
14
+ }
15
+ interface PayeeDestinationApi {
16
+ getSigningData(query: GetSigningDataQuery, options?: PayeeDestinationOperationOptions): Promise<unknown>;
17
+ getActive(walletAddress: string, options?: PayeeDestinationOperationOptions): Promise<unknown>;
18
+ create(body: CreateBody, options?: PayeeDestinationOperationOptions): Promise<unknown>;
19
+ getById(destinationId: string, options?: PayeeDestinationOperationOptions): Promise<unknown>;
20
+ deactivate(destinationId: string, body: DeactivateBody, options?: PayeeDestinationOperationOptions): Promise<unknown>;
21
+ }
22
+ declare function createPayeeDestinationApi(http: HttpClient): PayeeDestinationApi;
23
+
24
+ type index_PayeeDestinationApi = PayeeDestinationApi;
25
+ type index_PayeeDestinationOperationOptions = PayeeDestinationOperationOptions;
26
+ declare const index_createPayeeDestinationApi: typeof createPayeeDestinationApi;
27
+ declare namespace index {
28
+ export { type index_PayeeDestinationApi as PayeeDestinationApi, type index_PayeeDestinationOperationOptions as PayeeDestinationOperationOptions, type GetSigningDataQuery as PayeeDestinationSigningDataQuery, index_createPayeeDestinationApi as createPayeeDestinationApi };
29
+ }
30
+
31
+ export { type GetSigningDataQuery as G, type PayeeDestinationApi as P, type PayeeDestinationOperationOptions as a, createPayeeDestinationApi as c, index as i };
@@ -1,4 +1,4 @@
1
- import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CtUFCrk4.mjs';
1
+ import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
2
2
 
3
3
  interface RequestStatusAddress {
4
4
  street?: string;
@@ -1,4 +1,4 @@
1
- import { o as operations, b as HttpClient } from './openapi-types-CtUFCrk4.mjs';
1
+ import { o as operations, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
2
2
 
3
3
  type ClientIdListResponse = operations["ClientIdV2Controller_findAll_v2"]["responses"][200]["content"]["application/json"];
4
4
  type ClientIdCreateBody = operations["ClientIdV2Controller_create_v2"]["requestBody"]["content"]["application/json"];
@@ -1,4 +1,4 @@
1
- import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CtUFCrk4.mjs';
1
+ import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
2
2
 
3
3
  declare const OP_CREATE: "PayoutV2Controller_payRequest_v2";
4
4
  declare const OP_CREATE_BATCH: "PayoutV2Controller_payBatchRequest_v2";