@dynamic-labs/sdk-api-core 0.0.514 → 0.0.516
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/SDKApi.cjs +27 -0
- package/src/apis/SDKApi.d.ts +11 -0
- package/src/apis/SDKApi.js +27 -0
- package/src/models/MFADevice.cjs +2 -0
- package/src/models/MFADevice.d.ts +6 -0
- package/src/models/MFADevice.js +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -2865,6 +2865,33 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2865
2865
|
return yield response.value();
|
|
2866
2866
|
});
|
|
2867
2867
|
}
|
|
2868
|
+
/**
|
|
2869
|
+
* Options call for this endpoint
|
|
2870
|
+
*/
|
|
2871
|
+
optimizeTransactionOptionsRaw(requestParameters, initOverrides) {
|
|
2872
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2873
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2874
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.');
|
|
2875
|
+
}
|
|
2876
|
+
const queryParameters = {};
|
|
2877
|
+
const headerParameters = {};
|
|
2878
|
+
const response = yield this.request({
|
|
2879
|
+
path: `/sdk/{environmentId}/solana/optimizeTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2880
|
+
method: 'OPTIONS',
|
|
2881
|
+
headers: headerParameters,
|
|
2882
|
+
query: queryParameters,
|
|
2883
|
+
}, initOverrides);
|
|
2884
|
+
return new runtime.VoidApiResponse(response);
|
|
2885
|
+
});
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
* Options call for this endpoint
|
|
2889
|
+
*/
|
|
2890
|
+
optimizeTransactionOptions(requestParameters, initOverrides) {
|
|
2891
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2892
|
+
yield this.optimizeTransactionOptionsRaw(requestParameters, initOverrides);
|
|
2893
|
+
});
|
|
2894
|
+
}
|
|
2868
2895
|
/**
|
|
2869
2896
|
* Options call for this endpoint
|
|
2870
2897
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -332,6 +332,9 @@ export interface OptimizeTransactionRequest {
|
|
|
332
332
|
environmentId: string;
|
|
333
333
|
solanaTransactionOptimizationRequest: SolanaTransactionOptimizationRequest;
|
|
334
334
|
}
|
|
335
|
+
export interface OptimizeTransactionOptionsRequest {
|
|
336
|
+
environmentId: string;
|
|
337
|
+
}
|
|
335
338
|
export interface OptionsConnectRequest {
|
|
336
339
|
environmentId: string;
|
|
337
340
|
}
|
|
@@ -1226,6 +1229,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1226
1229
|
* Add fees to a Solana transaction
|
|
1227
1230
|
*/
|
|
1228
1231
|
optimizeTransaction(requestParameters: OptimizeTransactionRequest, initOverrides?: RequestInit): Promise<SolanaTransactionOptimizationResponse>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Options call for this endpoint
|
|
1234
|
+
*/
|
|
1235
|
+
optimizeTransactionOptionsRaw(requestParameters: OptimizeTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Options call for this endpoint
|
|
1238
|
+
*/
|
|
1239
|
+
optimizeTransactionOptions(requestParameters: OptimizeTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1229
1240
|
/**
|
|
1230
1241
|
* Options call for this endpoint
|
|
1231
1242
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -2861,6 +2861,33 @@ class SDKApi extends BaseAPI {
|
|
|
2861
2861
|
return yield response.value();
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
|
+
/**
|
|
2865
|
+
* Options call for this endpoint
|
|
2866
|
+
*/
|
|
2867
|
+
optimizeTransactionOptionsRaw(requestParameters, initOverrides) {
|
|
2868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2869
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2870
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.');
|
|
2871
|
+
}
|
|
2872
|
+
const queryParameters = {};
|
|
2873
|
+
const headerParameters = {};
|
|
2874
|
+
const response = yield this.request({
|
|
2875
|
+
path: `/sdk/{environmentId}/solana/optimizeTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2876
|
+
method: 'OPTIONS',
|
|
2877
|
+
headers: headerParameters,
|
|
2878
|
+
query: queryParameters,
|
|
2879
|
+
}, initOverrides);
|
|
2880
|
+
return new VoidApiResponse(response);
|
|
2881
|
+
});
|
|
2882
|
+
}
|
|
2883
|
+
/**
|
|
2884
|
+
* Options call for this endpoint
|
|
2885
|
+
*/
|
|
2886
|
+
optimizeTransactionOptions(requestParameters, initOverrides) {
|
|
2887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2888
|
+
yield this.optimizeTransactionOptionsRaw(requestParameters, initOverrides);
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2864
2891
|
/**
|
|
2865
2892
|
* Options call for this endpoint
|
|
2866
2893
|
*/
|
package/src/models/MFADevice.cjs
CHANGED
|
@@ -18,6 +18,7 @@ function MFADeviceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'verified': !runtime.exists(json, 'verified') ? undefined : json['verified'],
|
|
19
19
|
'id': !runtime.exists(json, 'id') ? undefined : json['id'],
|
|
20
20
|
'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
21
|
+
'verifiedAt': !runtime.exists(json, 'verifiedAt') ? undefined : (json['verifiedAt'] === null ? null : new Date(json['verifiedAt'])),
|
|
21
22
|
'_default': !runtime.exists(json, 'default') ? undefined : json['default'],
|
|
22
23
|
'alias': !runtime.exists(json, 'alias') ? undefined : json['alias'],
|
|
23
24
|
};
|
|
@@ -34,6 +35,7 @@ function MFADeviceToJSON(value) {
|
|
|
34
35
|
'verified': value.verified,
|
|
35
36
|
'id': value.id,
|
|
36
37
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
38
|
+
'verifiedAt': value.verifiedAt === undefined ? undefined : (value.verifiedAt === null ? null : value.verifiedAt.toISOString()),
|
|
37
39
|
'default': value._default,
|
|
38
40
|
'alias': value.alias,
|
|
39
41
|
};
|
|
@@ -40,6 +40,12 @@ export interface MFADevice {
|
|
|
40
40
|
* @memberof MFADevice
|
|
41
41
|
*/
|
|
42
42
|
createdAt?: Date;
|
|
43
|
+
/**
|
|
44
|
+
* The date and time the MFA device was verified
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof MFADevice
|
|
47
|
+
*/
|
|
48
|
+
verifiedAt?: Date | null;
|
|
43
49
|
/**
|
|
44
50
|
* Whether or not this is the default MFA device for the user
|
|
45
51
|
* @type {boolean}
|
package/src/models/MFADevice.js
CHANGED
|
@@ -14,6 +14,7 @@ function MFADeviceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
'verified': !exists(json, 'verified') ? undefined : json['verified'],
|
|
15
15
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
16
16
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
17
|
+
'verifiedAt': !exists(json, 'verifiedAt') ? undefined : (json['verifiedAt'] === null ? null : new Date(json['verifiedAt'])),
|
|
17
18
|
'_default': !exists(json, 'default') ? undefined : json['default'],
|
|
18
19
|
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
|
19
20
|
};
|
|
@@ -30,6 +31,7 @@ function MFADeviceToJSON(value) {
|
|
|
30
31
|
'verified': value.verified,
|
|
31
32
|
'id': value.id,
|
|
32
33
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
34
|
+
'verifiedAt': value.verifiedAt === undefined ? undefined : (value.verifiedAt === null ? null : value.verifiedAt.toISOString()),
|
|
33
35
|
'default': value._default,
|
|
34
36
|
'alias': value.alias,
|
|
35
37
|
};
|