@dynamic-labs/sdk-api 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.514",
3
+ "version": "0.0.516",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2932,6 +2932,33 @@ class SDKApi extends runtime.BaseAPI {
2932
2932
  return yield response.value();
2933
2933
  });
2934
2934
  }
2935
+ /**
2936
+ * Options call for this endpoint
2937
+ */
2938
+ optimizeTransactionOptionsRaw(requestParameters, initOverrides) {
2939
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2940
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2941
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.');
2942
+ }
2943
+ const queryParameters = {};
2944
+ const headerParameters = {};
2945
+ const response = yield this.request({
2946
+ path: `/sdk/{environmentId}/solana/optimizeTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2947
+ method: 'OPTIONS',
2948
+ headers: headerParameters,
2949
+ query: queryParameters,
2950
+ }, initOverrides);
2951
+ return new runtime.VoidApiResponse(response);
2952
+ });
2953
+ }
2954
+ /**
2955
+ * Options call for this endpoint
2956
+ */
2957
+ optimizeTransactionOptions(requestParameters, initOverrides) {
2958
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2959
+ yield this.optimizeTransactionOptionsRaw(requestParameters, initOverrides);
2960
+ });
2961
+ }
2935
2962
  /**
2936
2963
  * Options call for this endpoint
2937
2964
  */
@@ -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
  }
@@ -1242,6 +1245,14 @@ export declare class SDKApi extends runtime.BaseAPI {
1242
1245
  * Add fees to a Solana transaction
1243
1246
  */
1244
1247
  optimizeTransaction(requestParameters: OptimizeTransactionRequest, initOverrides?: RequestInit): Promise<SolanaTransactionOptimizationResponse>;
1248
+ /**
1249
+ * Options call for this endpoint
1250
+ */
1251
+ optimizeTransactionOptionsRaw(requestParameters: OptimizeTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1252
+ /**
1253
+ * Options call for this endpoint
1254
+ */
1255
+ optimizeTransactionOptions(requestParameters: OptimizeTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1245
1256
  /**
1246
1257
  * Options call for this endpoint
1247
1258
  */
@@ -2928,6 +2928,33 @@ class SDKApi extends BaseAPI {
2928
2928
  return yield response.value();
2929
2929
  });
2930
2930
  }
2931
+ /**
2932
+ * Options call for this endpoint
2933
+ */
2934
+ optimizeTransactionOptionsRaw(requestParameters, initOverrides) {
2935
+ return __awaiter(this, void 0, void 0, function* () {
2936
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2937
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.');
2938
+ }
2939
+ const queryParameters = {};
2940
+ const headerParameters = {};
2941
+ const response = yield this.request({
2942
+ path: `/sdk/{environmentId}/solana/optimizeTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2943
+ method: 'OPTIONS',
2944
+ headers: headerParameters,
2945
+ query: queryParameters,
2946
+ }, initOverrides);
2947
+ return new VoidApiResponse(response);
2948
+ });
2949
+ }
2950
+ /**
2951
+ * Options call for this endpoint
2952
+ */
2953
+ optimizeTransactionOptions(requestParameters, initOverrides) {
2954
+ return __awaiter(this, void 0, void 0, function* () {
2955
+ yield this.optimizeTransactionOptionsRaw(requestParameters, initOverrides);
2956
+ });
2957
+ }
2931
2958
  /**
2932
2959
  * Options call for this endpoint
2933
2960
  */
@@ -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}
@@ -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
  };