@dynamic-labs/sdk-api 0.0.921 → 0.0.923
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/package.json +1 -1
- package/src/apis/AllowlistsApi.cjs +245 -286
- package/src/apis/AllowlistsApi.js +245 -286
- package/src/apis/AnalyticsApi.cjs +210 -235
- package/src/apis/AnalyticsApi.js +210 -235
- package/src/apis/ChainalysisApi.cjs +66 -79
- package/src/apis/ChainalysisApi.js +66 -79
- package/src/apis/ChainsApi.cjs +25 -30
- package/src/apis/ChainsApi.js +25 -30
- package/src/apis/CustomFieldsApi.cjs +119 -140
- package/src/apis/CustomFieldsApi.js +119 -140
- package/src/apis/CustomHostnamesApi.cjs +55 -68
- package/src/apis/CustomHostnamesApi.js +55 -68
- package/src/apis/CustomNetworksApi.cjs +128 -149
- package/src/apis/CustomNetworksApi.js +128 -149
- package/src/apis/DeeplinkUrlsApi.cjs +70 -83
- package/src/apis/DeeplinkUrlsApi.js +70 -83
- package/src/apis/DepositApi.cjs +83 -100
- package/src/apis/DepositApi.js +83 -100
- package/src/apis/EnvironmentsApi.cjs +168 -197
- package/src/apis/EnvironmentsApi.js +168 -197
- package/src/apis/EventsApi.cjs +60 -73
- package/src/apis/EventsApi.js +60 -73
- package/src/apis/ExportsApi.cjs +89 -106
- package/src/apis/ExportsApi.js +89 -106
- package/src/apis/ExternalJwtApi.cjs +27 -32
- package/src/apis/ExternalJwtApi.js +27 -32
- package/src/apis/GatesApi.cjs +154 -183
- package/src/apis/GatesApi.js +154 -183
- package/src/apis/GlobalWalletAccessControlApi.cjs +159 -188
- package/src/apis/GlobalWalletAccessControlApi.js +159 -188
- package/src/apis/GlobalWalletConnectionsApi.cjs +28 -33
- package/src/apis/GlobalWalletConnectionsApi.js +28 -33
- package/src/apis/GlobalWalletsApi.cjs +90 -111
- package/src/apis/GlobalWalletsApi.js +90 -111
- package/src/apis/InvitesApi.cjs +120 -141
- package/src/apis/InvitesApi.js +120 -141
- package/src/apis/MembersApi.cjs +115 -136
- package/src/apis/MembersApi.js +115 -136
- package/src/apis/MfaApi.cjs +42 -51
- package/src/apis/MfaApi.js +42 -51
- package/src/apis/MfaSettingsApi.cjs +72 -85
- package/src/apis/MfaSettingsApi.js +72 -85
- package/src/apis/NameServicesApi.cjs +123 -148
- package/src/apis/NameServicesApi.js +123 -148
- package/src/apis/OrganizationsApi.cjs +328 -381
- package/src/apis/OrganizationsApi.js +328 -381
- package/src/apis/OriginsApi.cjs +58 -71
- package/src/apis/OriginsApi.js +58 -71
- package/src/apis/ProjectsApi.cjs +119 -140
- package/src/apis/ProjectsApi.js +119 -140
- package/src/apis/SDKApi.cjs +6187 -7365
- package/src/apis/SDKApi.d.ts +3 -2
- package/src/apis/SDKApi.js +6187 -7365
- package/src/apis/SDKViewsApi.cjs +59 -72
- package/src/apis/SDKViewsApi.js +59 -72
- package/src/apis/SessionsApi.cjs +69 -82
- package/src/apis/SessionsApi.js +69 -82
- package/src/apis/SettingsApi.cjs +273 -330
- package/src/apis/SettingsApi.js +273 -330
- package/src/apis/TestAccountApi.cjs +47 -60
- package/src/apis/TestAccountApi.js +47 -60
- package/src/apis/TokensApi.cjs +92 -109
- package/src/apis/TokensApi.js +92 -109
- package/src/apis/UserApiTokensApi.cjs +64 -77
- package/src/apis/UserApiTokensApi.js +64 -77
- package/src/apis/UsersApi.cjs +357 -410
- package/src/apis/UsersApi.js +357 -410
- package/src/apis/VisitsApi.cjs +34 -39
- package/src/apis/VisitsApi.js +34 -39
- package/src/apis/WaasApi.cjs +470 -559
- package/src/apis/WaasApi.js +470 -559
- package/src/apis/WalletConnectApi.cjs +21 -26
- package/src/apis/WalletConnectApi.js +21 -26
- package/src/apis/WalletsApi.cjs +340 -393
- package/src/apis/WalletsApi.js +340 -393
- package/src/apis/WebhooksApi.cjs +167 -200
- package/src/apis/WebhooksApi.js +167 -200
- package/src/index.cjs +8 -4
- package/src/index.js +2 -1
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/NetworkConfiguration.cjs +4 -0
- package/src/models/NetworkConfiguration.d.ts +12 -0
- package/src/models/NetworkConfiguration.js +4 -0
- package/src/models/PrepareSigningRequest.cjs +35 -0
- package/src/models/PrepareSigningRequest.d.ts +33 -0
- package/src/models/PrepareSigningRequest.js +29 -0
- package/src/models/Provider.cjs +2 -0
- package/src/models/Provider.d.ts +6 -0
- package/src/models/Provider.js +2 -0
- package/src/models/ProviderCreateRequest.cjs +2 -0
- package/src/models/ProviderCreateRequest.d.ts +6 -0
- package/src/models/ProviderCreateRequest.js +2 -0
- package/src/models/ProviderUpdateRequest.cjs +2 -0
- package/src/models/ProviderUpdateRequest.d.ts +6 -0
- package/src/models/ProviderUpdateRequest.js +2 -0
- package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
- package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
- package/src/models/TransactionFeeEstimateRequest.js +31 -0
- package/src/models/index.d.ts +2 -1
- package/src/runtime.cjs +45 -36
- package/src/runtime.js +45 -36
- package/_virtual/_tslib.cjs +0 -35
- package/_virtual/_tslib.js +0 -31
- package/src/models/InlineObject1.cjs +0 -43
- package/src/models/InlineObject1.d.ts +0 -27
- package/src/models/InlineObject1.js +0 -37
|
@@ -131,6 +131,18 @@ export interface NetworkConfiguration {
|
|
|
131
131
|
* @memberof NetworkConfiguration
|
|
132
132
|
*/
|
|
133
133
|
cluster?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Whether this network has a native token. Defaults to true if not specified.
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof NetworkConfiguration
|
|
138
|
+
*/
|
|
139
|
+
hasNativeToken?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Whether this network supports selecting a fee token for transactions. Defaults to false if not specified.
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
* @memberof NetworkConfiguration
|
|
144
|
+
*/
|
|
145
|
+
supportsFeeTokenSelection?: boolean;
|
|
134
146
|
}
|
|
135
147
|
export declare function NetworkConfigurationFromJSON(json: any): NetworkConfiguration;
|
|
136
148
|
export declare function NetworkConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkConfiguration;
|
|
@@ -30,6 +30,8 @@ function NetworkConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'bech32Prefix': !exists(json, 'bech32Prefix') ? undefined : json['bech32Prefix'],
|
|
31
31
|
'genesisHash': !exists(json, 'genesisHash') ? undefined : json['genesisHash'],
|
|
32
32
|
'cluster': !exists(json, 'cluster') ? undefined : json['cluster'],
|
|
33
|
+
'hasNativeToken': !exists(json, 'hasNativeToken') ? undefined : json['hasNativeToken'],
|
|
34
|
+
'supportsFeeTokenSelection': !exists(json, 'supportsFeeTokenSelection') ? undefined : json['supportsFeeTokenSelection'],
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
function NetworkConfigurationToJSON(value) {
|
|
@@ -59,6 +61,8 @@ function NetworkConfigurationToJSON(value) {
|
|
|
59
61
|
'bech32Prefix': value.bech32Prefix,
|
|
60
62
|
'genesisHash': value.genesisHash,
|
|
61
63
|
'cluster': value.cluster,
|
|
64
|
+
'hasNativeToken': value.hasNativeToken,
|
|
65
|
+
'supportsFeeTokenSelection': value.supportsFeeTokenSelection,
|
|
62
66
|
};
|
|
63
67
|
}
|
|
64
68
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function PrepareSigningRequestFromJSON(json) {
|
|
9
|
+
return PrepareSigningRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function PrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'assertBalanceForGasCost': !runtime.exists(json, 'assertBalanceForGasCost') ? undefined : json['assertBalanceForGasCost'],
|
|
17
|
+
'assertBalanceForTransferAmount': !runtime.exists(json, 'assertBalanceForTransferAmount') ? undefined : json['assertBalanceForTransferAmount'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function PrepareSigningRequestToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'assertBalanceForGasCost': value.assertBalanceForGasCost,
|
|
29
|
+
'assertBalanceForTransferAmount': value.assertBalanceForTransferAmount,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.PrepareSigningRequestFromJSON = PrepareSigningRequestFromJSON;
|
|
34
|
+
exports.PrepareSigningRequestFromJSONTyped = PrepareSigningRequestFromJSONTyped;
|
|
35
|
+
exports.PrepareSigningRequestToJSON = PrepareSigningRequestToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PrepareSigningRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PrepareSigningRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Whether to assert if wallet has enough balance to pay for the gas cost. If true, the request will fail if the wallet does not have enough balance to pay for the gas cost.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PrepareSigningRequest
|
|
22
|
+
*/
|
|
23
|
+
assertBalanceForGasCost?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to assert if wallet has enough balance to pay for the transfer amount (not including gas cost). If true, the request will fail if the wallet does not have enough balance to pay for the transfer amount (not including gas cost).
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PrepareSigningRequest
|
|
28
|
+
*/
|
|
29
|
+
assertBalanceForTransferAmount?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function PrepareSigningRequestFromJSON(json: any): PrepareSigningRequest;
|
|
32
|
+
export declare function PrepareSigningRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrepareSigningRequest;
|
|
33
|
+
export declare function PrepareSigningRequestToJSON(value?: PrepareSigningRequest | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function PrepareSigningRequestFromJSON(json) {
|
|
5
|
+
return PrepareSigningRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function PrepareSigningRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'assertBalanceForGasCost': !exists(json, 'assertBalanceForGasCost') ? undefined : json['assertBalanceForGasCost'],
|
|
13
|
+
'assertBalanceForTransferAmount': !exists(json, 'assertBalanceForTransferAmount') ? undefined : json['assertBalanceForTransferAmount'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function PrepareSigningRequestToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'assertBalanceForGasCost': value.assertBalanceForGasCost,
|
|
25
|
+
'assertBalanceForTransferAmount': value.assertBalanceForTransferAmount,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { PrepareSigningRequestFromJSON, PrepareSigningRequestFromJSONTyped, PrepareSigningRequestToJSON };
|
package/src/models/Provider.cjs
CHANGED
|
@@ -60,6 +60,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'zerodevBundlerRpcUrl': !runtime.exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
|
|
61
61
|
'zerodevPaymasterRpcUrl': !runtime.exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
|
|
62
62
|
'zerodevKernelDelegationAddress': !runtime.exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
|
|
63
|
+
'zerodevProjectVersion': !runtime.exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
|
|
63
64
|
'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
64
65
|
'cancelUrl': !runtime.exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
65
66
|
};
|
|
@@ -111,6 +112,7 @@ function ProviderToJSON(value) {
|
|
|
111
112
|
'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
|
|
112
113
|
'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
|
|
113
114
|
'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
|
|
115
|
+
'zerodevProjectVersion': value.zerodevProjectVersion,
|
|
114
116
|
'returnUrl': value.returnUrl,
|
|
115
117
|
'cancelUrl': value.cancelUrl,
|
|
116
118
|
};
|
package/src/models/Provider.d.ts
CHANGED
|
@@ -257,6 +257,12 @@ export interface Provider {
|
|
|
257
257
|
* @memberof Provider
|
|
258
258
|
*/
|
|
259
259
|
zerodevKernelDelegationAddress?: string;
|
|
260
|
+
/**
|
|
261
|
+
* The ZeroDev projects endpoint version (v1 or v2)
|
|
262
|
+
* @type {string}
|
|
263
|
+
* @memberof Provider
|
|
264
|
+
*/
|
|
265
|
+
zerodevProjectVersion?: string;
|
|
260
266
|
/**
|
|
261
267
|
* URL to return to after completion
|
|
262
268
|
* @type {string}
|
package/src/models/Provider.js
CHANGED
|
@@ -56,6 +56,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'zerodevBundlerRpcUrl': !exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
|
|
57
57
|
'zerodevPaymasterRpcUrl': !exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
|
|
58
58
|
'zerodevKernelDelegationAddress': !exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
|
|
59
|
+
'zerodevProjectVersion': !exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
|
|
59
60
|
'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
60
61
|
'cancelUrl': !exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
61
62
|
};
|
|
@@ -107,6 +108,7 @@ function ProviderToJSON(value) {
|
|
|
107
108
|
'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
|
|
108
109
|
'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
|
|
109
110
|
'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
|
|
111
|
+
'zerodevProjectVersion': value.zerodevProjectVersion,
|
|
110
112
|
'returnUrl': value.returnUrl,
|
|
111
113
|
'cancelUrl': value.cancelUrl,
|
|
112
114
|
};
|
|
@@ -52,6 +52,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'zerodevBundlerRpcUrl': !runtime.exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
|
|
53
53
|
'zerodevPaymasterRpcUrl': !runtime.exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
|
|
54
54
|
'zerodevKernelDelegationAddress': !runtime.exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
|
|
55
|
+
'zerodevProjectVersion': !runtime.exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
|
|
55
56
|
'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
|
|
56
57
|
'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
57
58
|
'cancelUrl': !runtime.exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
@@ -97,6 +98,7 @@ function ProviderCreateRequestToJSON(value) {
|
|
|
97
98
|
'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
|
|
98
99
|
'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
|
|
99
100
|
'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
|
|
101
|
+
'zerodevProjectVersion': value.zerodevProjectVersion,
|
|
100
102
|
'domain': value.domain,
|
|
101
103
|
'returnUrl': value.returnUrl,
|
|
102
104
|
'cancelUrl': value.cancelUrl,
|
|
@@ -214,6 +214,12 @@ export interface ProviderCreateRequest {
|
|
|
214
214
|
* @memberof ProviderCreateRequest
|
|
215
215
|
*/
|
|
216
216
|
zerodevKernelDelegationAddress?: string;
|
|
217
|
+
/**
|
|
218
|
+
* The ZeroDev projects endpoint version (v1 or v2)
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof ProviderCreateRequest
|
|
221
|
+
*/
|
|
222
|
+
zerodevProjectVersion?: string;
|
|
217
223
|
/**
|
|
218
224
|
* The subdomain for the provider (mostly used for SSO)
|
|
219
225
|
* @type {string}
|
|
@@ -48,6 +48,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'zerodevBundlerRpcUrl': !exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
|
|
49
49
|
'zerodevPaymasterRpcUrl': !exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
|
|
50
50
|
'zerodevKernelDelegationAddress': !exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
|
|
51
|
+
'zerodevProjectVersion': !exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
|
|
51
52
|
'domain': !exists(json, 'domain') ? undefined : json['domain'],
|
|
52
53
|
'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
53
54
|
'cancelUrl': !exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
@@ -93,6 +94,7 @@ function ProviderCreateRequestToJSON(value) {
|
|
|
93
94
|
'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
|
|
94
95
|
'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
|
|
95
96
|
'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
|
|
97
|
+
'zerodevProjectVersion': value.zerodevProjectVersion,
|
|
96
98
|
'domain': value.domain,
|
|
97
99
|
'returnUrl': value.returnUrl,
|
|
98
100
|
'cancelUrl': value.cancelUrl,
|
|
@@ -50,6 +50,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'zerodevBundlerRpcUrl': !runtime.exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
|
|
51
51
|
'zerodevPaymasterRpcUrl': !runtime.exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
|
|
52
52
|
'zerodevKernelDelegationAddress': !runtime.exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
|
|
53
|
+
'zerodevProjectVersion': !runtime.exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
|
|
53
54
|
'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
54
55
|
'cancelUrl': !runtime.exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
55
56
|
};
|
|
@@ -93,6 +94,7 @@ function ProviderUpdateRequestToJSON(value) {
|
|
|
93
94
|
'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
|
|
94
95
|
'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
|
|
95
96
|
'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
|
|
97
|
+
'zerodevProjectVersion': value.zerodevProjectVersion,
|
|
96
98
|
'returnUrl': value.returnUrl,
|
|
97
99
|
'cancelUrl': value.cancelUrl,
|
|
98
100
|
};
|
|
@@ -207,6 +207,12 @@ export interface ProviderUpdateRequest {
|
|
|
207
207
|
* @memberof ProviderUpdateRequest
|
|
208
208
|
*/
|
|
209
209
|
zerodevKernelDelegationAddress?: string;
|
|
210
|
+
/**
|
|
211
|
+
* The ZeroDev projects endpoint version (v1 or v2)
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof ProviderUpdateRequest
|
|
214
|
+
*/
|
|
215
|
+
zerodevProjectVersion?: string;
|
|
210
216
|
/**
|
|
211
217
|
* URL to return to after completion
|
|
212
218
|
* @type {string}
|
|
@@ -46,6 +46,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'zerodevBundlerRpcUrl': !exists(json, 'zerodevBundlerRpcUrl') ? undefined : json['zerodevBundlerRpcUrl'],
|
|
47
47
|
'zerodevPaymasterRpcUrl': !exists(json, 'zerodevPaymasterRpcUrl') ? undefined : json['zerodevPaymasterRpcUrl'],
|
|
48
48
|
'zerodevKernelDelegationAddress': !exists(json, 'zerodevKernelDelegationAddress') ? undefined : json['zerodevKernelDelegationAddress'],
|
|
49
|
+
'zerodevProjectVersion': !exists(json, 'zerodevProjectVersion') ? undefined : json['zerodevProjectVersion'],
|
|
49
50
|
'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
50
51
|
'cancelUrl': !exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
51
52
|
};
|
|
@@ -89,6 +90,7 @@ function ProviderUpdateRequestToJSON(value) {
|
|
|
89
90
|
'zerodevBundlerRpcUrl': value.zerodevBundlerRpcUrl,
|
|
90
91
|
'zerodevPaymasterRpcUrl': value.zerodevPaymasterRpcUrl,
|
|
91
92
|
'zerodevKernelDelegationAddress': value.zerodevKernelDelegationAddress,
|
|
93
|
+
'zerodevProjectVersion': value.zerodevProjectVersion,
|
|
92
94
|
'returnUrl': value.returnUrl,
|
|
93
95
|
'cancelUrl': value.cancelUrl,
|
|
94
96
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function TransactionFeeEstimateRequestFromJSON(json) {
|
|
9
|
+
return TransactionFeeEstimateRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function TransactionFeeEstimateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'base64RawTransaction': !runtime.exists(json, 'base64RawTransaction') ? undefined : json['base64RawTransaction'],
|
|
17
|
+
'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
18
|
+
'rawTransactionData': !runtime.exists(json, 'rawTransactionData') ? undefined : json['rawTransactionData'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function TransactionFeeEstimateRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'base64RawTransaction': value.base64RawTransaction,
|
|
30
|
+
'fromAddress': value.fromAddress,
|
|
31
|
+
'rawTransactionData': value.rawTransactionData,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.TransactionFeeEstimateRequestFromJSON = TransactionFeeEstimateRequestFromJSON;
|
|
36
|
+
exports.TransactionFeeEstimateRequestFromJSONTyped = TransactionFeeEstimateRequestFromJSONTyped;
|
|
37
|
+
exports.TransactionFeeEstimateRequestToJSON = TransactionFeeEstimateRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionFeeEstimateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionFeeEstimateRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Deprecated — use rawTransactionData instead. The base64-encoded raw transaction to estimate gas fees for.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TransactionFeeEstimateRequest
|
|
22
|
+
*/
|
|
23
|
+
base64RawTransaction?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionFeeEstimateRequest
|
|
28
|
+
*/
|
|
29
|
+
fromAddress?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The raw transaction data to estimate gas fees for. For BTC, the PSBT string. For EVM, the transaction data in JSON format with properties: { to, data, value }. For Solana, the base64-encoded transaction data. For Sui, the base64-encoded transaction data.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TransactionFeeEstimateRequest
|
|
34
|
+
*/
|
|
35
|
+
rawTransactionData?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function TransactionFeeEstimateRequestFromJSON(json: any): TransactionFeeEstimateRequest;
|
|
38
|
+
export declare function TransactionFeeEstimateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFeeEstimateRequest;
|
|
39
|
+
export declare function TransactionFeeEstimateRequestToJSON(value?: TransactionFeeEstimateRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function TransactionFeeEstimateRequestFromJSON(json) {
|
|
5
|
+
return TransactionFeeEstimateRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function TransactionFeeEstimateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'base64RawTransaction': !exists(json, 'base64RawTransaction') ? undefined : json['base64RawTransaction'],
|
|
13
|
+
'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
14
|
+
'rawTransactionData': !exists(json, 'rawTransactionData') ? undefined : json['rawTransactionData'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function TransactionFeeEstimateRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'base64RawTransaction': value.base64RawTransaction,
|
|
26
|
+
'fromAddress': value.fromAddress,
|
|
27
|
+
'rawTransactionData': value.rawTransactionData,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { TransactionFeeEstimateRequestFromJSON, TransactionFeeEstimateRequestFromJSONTyped, TransactionFeeEstimateRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -267,7 +267,6 @@ export * from './InitEmailAuthResponse';
|
|
|
267
267
|
export * from './InitPasskeyRecoveryRequest';
|
|
268
268
|
export * from './InitPasskeyRecoveryResponse';
|
|
269
269
|
export * from './InlineObject';
|
|
270
|
-
export * from './InlineObject1';
|
|
271
270
|
export * from './InlineResponse200';
|
|
272
271
|
export * from './InlineResponse201';
|
|
273
272
|
export * from './InlineResponse400';
|
|
@@ -394,6 +393,7 @@ export * from './PostAllowlistEntriesRequest';
|
|
|
394
393
|
export * from './PostAllowlistsRequest';
|
|
395
394
|
export * from './PostTokenFields';
|
|
396
395
|
export * from './PrefetchRequest';
|
|
396
|
+
export * from './PrepareSigningRequest';
|
|
397
397
|
export * from './PriceData';
|
|
398
398
|
export * from './Project';
|
|
399
399
|
export * from './ProjectEnvironment';
|
|
@@ -551,6 +551,7 @@ export * from './TokenWithRaw';
|
|
|
551
551
|
export * from './TokenWithRawProjectEnvironment';
|
|
552
552
|
export * from './TokensResponse';
|
|
553
553
|
export * from './TooManyRequests';
|
|
554
|
+
export * from './TransactionFeeEstimateRequest';
|
|
554
555
|
export * from './TransactionFeeEstimateResponse';
|
|
555
556
|
export * from './TransferDestination';
|
|
556
557
|
export * from './TransferDestinationResponse';
|
package/src/runtime.cjs
CHANGED
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../_virtual/_tslib.cjs');
|
|
6
|
-
|
|
7
5
|
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
8
18
|
const BASE_PATH = "https://app.dynamicauth.com/api/v0".replace(/\/+$/, "");
|
|
9
19
|
const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
|
|
10
20
|
/**
|
|
@@ -13,26 +23,29 @@ const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
|
|
|
13
23
|
class BaseAPI {
|
|
14
24
|
constructor(configuration = new Configuration()) {
|
|
15
25
|
this.configuration = configuration;
|
|
16
|
-
this.fetchApi = (url, init) =>
|
|
26
|
+
this.fetchApi = async (url, init) => {
|
|
17
27
|
let fetchParams = { url, init };
|
|
18
28
|
for (const middleware of this.middleware) {
|
|
19
29
|
if (middleware.pre) {
|
|
20
|
-
fetchParams =
|
|
30
|
+
fetchParams = await middleware.pre({
|
|
31
|
+
fetch: this.fetchApi,
|
|
32
|
+
...fetchParams,
|
|
33
|
+
}) || fetchParams;
|
|
21
34
|
}
|
|
22
35
|
}
|
|
23
|
-
let response =
|
|
36
|
+
let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
24
37
|
for (const middleware of this.middleware) {
|
|
25
38
|
if (middleware.post) {
|
|
26
|
-
response =
|
|
39
|
+
response = await middleware.post({
|
|
27
40
|
fetch: this.fetchApi,
|
|
28
41
|
url: fetchParams.url,
|
|
29
42
|
init: fetchParams.init,
|
|
30
43
|
response: response.clone(),
|
|
31
|
-
})
|
|
44
|
+
}) || response;
|
|
32
45
|
}
|
|
33
46
|
}
|
|
34
47
|
return response;
|
|
35
|
-
}
|
|
48
|
+
};
|
|
36
49
|
this.middleware = configuration.middleware;
|
|
37
50
|
}
|
|
38
51
|
withMiddleware(...middlewares) {
|
|
@@ -48,15 +61,13 @@ class BaseAPI {
|
|
|
48
61
|
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
49
62
|
return this.withMiddleware(...middlewares);
|
|
50
63
|
}
|
|
51
|
-
request(context, initOverrides) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
throw response;
|
|
59
|
-
});
|
|
64
|
+
async request(context, initOverrides) {
|
|
65
|
+
const { url, init } = this.createFetchParams(context, initOverrides);
|
|
66
|
+
const response = await this.fetchApi(url, init);
|
|
67
|
+
if (response.status >= 200 && response.status < 300) {
|
|
68
|
+
return response;
|
|
69
|
+
}
|
|
70
|
+
throw response;
|
|
60
71
|
}
|
|
61
72
|
createFetchParams(context, initOverrides) {
|
|
62
73
|
let url = this.configuration.basePath + context.path;
|
|
@@ -70,7 +81,13 @@ class BaseAPI {
|
|
|
70
81
|
? context.body
|
|
71
82
|
: JSON.stringify(context.body);
|
|
72
83
|
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
73
|
-
const init =
|
|
84
|
+
const init = {
|
|
85
|
+
method: context.method,
|
|
86
|
+
headers: headers,
|
|
87
|
+
body,
|
|
88
|
+
credentials: this.configuration.credentials,
|
|
89
|
+
...initOverrides
|
|
90
|
+
};
|
|
74
91
|
return { url, init };
|
|
75
92
|
}
|
|
76
93
|
/**
|
|
@@ -129,7 +146,7 @@ class Configuration {
|
|
|
129
146
|
get accessToken() {
|
|
130
147
|
const accessToken = this.configuration.accessToken;
|
|
131
148
|
if (accessToken) {
|
|
132
|
-
return typeof accessToken === 'function' ? accessToken : () =>
|
|
149
|
+
return typeof accessToken === 'function' ? accessToken : async () => accessToken;
|
|
133
150
|
}
|
|
134
151
|
return undefined;
|
|
135
152
|
}
|
|
@@ -166,7 +183,7 @@ function querystring(params, prefix = '') {
|
|
|
166
183
|
.join('&');
|
|
167
184
|
}
|
|
168
185
|
function mapValues(data, fn) {
|
|
169
|
-
return Object.keys(data).reduce((acc, key) => (
|
|
186
|
+
return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
|
|
170
187
|
}
|
|
171
188
|
function canConsumeForm(consumes) {
|
|
172
189
|
for (const consume of consumes) {
|
|
@@ -181,30 +198,24 @@ class JSONApiResponse {
|
|
|
181
198
|
this.raw = raw;
|
|
182
199
|
this.transformer = transformer;
|
|
183
200
|
}
|
|
184
|
-
value() {
|
|
185
|
-
return
|
|
186
|
-
return this.transformer(yield this.raw.json());
|
|
187
|
-
});
|
|
201
|
+
async value() {
|
|
202
|
+
return this.transformer(await this.raw.json());
|
|
188
203
|
}
|
|
189
204
|
}
|
|
190
205
|
class VoidApiResponse {
|
|
191
206
|
constructor(raw) {
|
|
192
207
|
this.raw = raw;
|
|
193
208
|
}
|
|
194
|
-
value() {
|
|
195
|
-
return
|
|
196
|
-
return undefined;
|
|
197
|
-
});
|
|
209
|
+
async value() {
|
|
210
|
+
return undefined;
|
|
198
211
|
}
|
|
199
212
|
}
|
|
200
213
|
class BlobApiResponse {
|
|
201
214
|
constructor(raw) {
|
|
202
215
|
this.raw = raw;
|
|
203
216
|
}
|
|
204
|
-
value() {
|
|
205
|
-
return
|
|
206
|
-
return yield this.raw.blob();
|
|
207
|
-
});
|
|
217
|
+
async value() {
|
|
218
|
+
return await this.raw.blob();
|
|
208
219
|
}
|
|
209
220
|
;
|
|
210
221
|
}
|
|
@@ -212,10 +223,8 @@ class TextApiResponse {
|
|
|
212
223
|
constructor(raw) {
|
|
213
224
|
this.raw = raw;
|
|
214
225
|
}
|
|
215
|
-
value() {
|
|
216
|
-
return
|
|
217
|
-
return yield this.raw.text();
|
|
218
|
-
});
|
|
226
|
+
async value() {
|
|
227
|
+
return await this.raw.text();
|
|
219
228
|
}
|
|
220
229
|
;
|
|
221
230
|
}
|