@dynamic-labs/sdk-api-core 0.0.513 → 0.0.515

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-core",
3
- "version": "0.0.513",
3
+ "version": "0.0.515",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -19,6 +19,7 @@ function MFADeviceFromJSONTyped(json, ignoreDiscriminator) {
19
19
  'id': !runtime.exists(json, 'id') ? undefined : json['id'],
20
20
  'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
21
21
  '_default': !runtime.exists(json, 'default') ? undefined : json['default'],
22
+ 'alias': !runtime.exists(json, 'alias') ? undefined : json['alias'],
22
23
  };
23
24
  }
24
25
  function MFADeviceToJSON(value) {
@@ -34,6 +35,7 @@ function MFADeviceToJSON(value) {
34
35
  'id': value.id,
35
36
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
36
37
  'default': value._default,
38
+ 'alias': value.alias,
37
39
  };
38
40
  }
39
41
 
@@ -46,6 +46,12 @@ export interface MFADevice {
46
46
  * @memberof MFADevice
47
47
  */
48
48
  _default?: boolean;
49
+ /**
50
+ * The optional alias for the MFA device
51
+ * @type {string}
52
+ * @memberof MFADevice
53
+ */
54
+ alias?: string;
49
55
  }
50
56
  export declare function MFADeviceFromJSON(json: any): MFADevice;
51
57
  export declare function MFADeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFADevice;
@@ -15,6 +15,7 @@ function MFADeviceFromJSONTyped(json, ignoreDiscriminator) {
15
15
  'id': !exists(json, 'id') ? undefined : json['id'],
16
16
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
17
17
  '_default': !exists(json, 'default') ? undefined : json['default'],
18
+ 'alias': !exists(json, 'alias') ? undefined : json['alias'],
18
19
  };
19
20
  }
20
21
  function MFADeviceToJSON(value) {
@@ -30,6 +31,7 @@ function MFADeviceToJSON(value) {
30
31
  'id': value.id,
31
32
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
32
33
  'default': value._default,
34
+ 'alias': value.alias,
33
35
  };
34
36
  }
35
37