@dynamic-labs/sdk-api 0.0.602 → 0.0.604

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.602",
3
+ "version": "0.0.604",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -155,6 +155,9 @@ class ExportsApi extends runtime.BaseAPI {
155
155
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEnvironmentExports.');
156
156
  }
157
157
  const queryParameters = {};
158
+ if (requestParameters.model !== undefined) {
159
+ queryParameters['model'] = requestParameters.model;
160
+ }
158
161
  const headerParameters = {};
159
162
  const response = yield this.request({
160
163
  path: `/environments/{environmentId}/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Export, ExportCreateRequest, ExportsResponse } from '../models';
13
+ import { Export, ExportCreateRequest, ExportModelEnum, ExportsResponse } from '../models';
14
14
  export interface CreateExportRequest {
15
15
  environmentId: string;
16
16
  exportCreateRequest: ExportCreateRequest;
@@ -20,6 +20,7 @@ export interface DownloadExportByIdRequest {
20
20
  }
21
21
  export interface GetEnvironmentExportsRequest {
22
22
  environmentId: string;
23
+ model?: ExportModelEnum;
23
24
  }
24
25
  export interface GetExportByIdRequest {
25
26
  exportId: string;
@@ -151,6 +151,9 @@ class ExportsApi extends BaseAPI {
151
151
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEnvironmentExports.');
152
152
  }
153
153
  const queryParameters = {};
154
+ if (requestParameters.model !== undefined) {
155
+ queryParameters['model'] = requestParameters.model;
156
+ }
154
157
  const headerParameters = {};
155
158
  const response = yield this.request({
156
159
  path: `/environments/{environmentId}/exports`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
@@ -1781,6 +1781,61 @@ class SDKApi extends runtime.BaseAPI {
1781
1781
  return yield response.value();
1782
1782
  });
1783
1783
  }
1784
+ /**
1785
+ * Exchange rates for the given currency
1786
+ */
1787
+ getCurrencyExchangeRatesRaw(requestParameters, initOverrides) {
1788
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
1789
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1790
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCurrencyExchangeRates.');
1791
+ }
1792
+ const queryParameters = {};
1793
+ const headerParameters = {};
1794
+ const response = yield this.request({
1795
+ path: `/sdk/{environmentId}/exchangeRates`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1796
+ method: 'GET',
1797
+ headers: headerParameters,
1798
+ query: queryParameters,
1799
+ }, initOverrides);
1800
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Currency.CurrencyFromJSON));
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Exchange rates for the given currency
1805
+ */
1806
+ getCurrencyExchangeRates(requestParameters, initOverrides) {
1807
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
1808
+ const response = yield this.getCurrencyExchangeRatesRaw(requestParameters, initOverrides);
1809
+ return yield response.value();
1810
+ });
1811
+ }
1812
+ /**
1813
+ * Options call for this endpoint
1814
+ */
1815
+ getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides) {
1816
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
1817
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1818
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCurrencyExchangeRatesOptions.');
1819
+ }
1820
+ const queryParameters = {};
1821
+ const headerParameters = {};
1822
+ const response = yield this.request({
1823
+ path: `/sdk/{environmentId}/exchangeRates`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1824
+ method: 'OPTIONS',
1825
+ headers: headerParameters,
1826
+ query: queryParameters,
1827
+ }, initOverrides);
1828
+ return new runtime.VoidApiResponse(response);
1829
+ });
1830
+ }
1831
+ /**
1832
+ * Options call for this endpoint
1833
+ */
1834
+ getCurrencyExchangeRatesOptions(requestParameters, initOverrides) {
1835
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
1836
+ yield this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
1837
+ });
1838
+ }
1784
1839
  /**
1785
1840
  * Return the email provider to be used for signing in with a given email. If an external provider such as magicLink is disabled, this endpoint would return emailOnly. If an external provider such as magicLink is enabled, it will return emailOnly when the email already exists in Dynamic and it is associated with a wallet, otherwise it will return magicLink.
1786
1841
  * Get signin email provider
@@ -190,6 +190,12 @@ export interface GetCreateWalletAccountRequestRequest {
190
190
  environmentId: string;
191
191
  chain: EmbeddedWalletChainEnum;
192
192
  }
193
+ export interface GetCurrencyExchangeRatesRequest {
194
+ environmentId: string;
195
+ }
196
+ export interface GetCurrencyExchangeRatesOptionsRequest {
197
+ environmentId: string;
198
+ }
193
199
  export interface GetEmailProviderRequest {
194
200
  environmentId: string;
195
201
  email: string;
@@ -1090,6 +1096,22 @@ export declare class SDKApi extends runtime.BaseAPI {
1090
1096
  * Generates the turnkey request body for a user\'s create wallet account request
1091
1097
  */
1092
1098
  getCreateWalletAccountRequest(requestParameters: GetCreateWalletAccountRequestRequest, initOverrides?: RequestInit): Promise<TurnkeyCreateWalletAccountsRequestBody>;
1099
+ /**
1100
+ * Exchange rates for the given currency
1101
+ */
1102
+ getCurrencyExchangeRatesRaw(requestParameters: GetCurrencyExchangeRatesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Currency>>>;
1103
+ /**
1104
+ * Exchange rates for the given currency
1105
+ */
1106
+ getCurrencyExchangeRates(requestParameters: GetCurrencyExchangeRatesRequest, initOverrides?: RequestInit): Promise<Array<Currency>>;
1107
+ /**
1108
+ * Options call for this endpoint
1109
+ */
1110
+ getCurrencyExchangeRatesOptionsRaw(requestParameters: GetCurrencyExchangeRatesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1111
+ /**
1112
+ * Options call for this endpoint
1113
+ */
1114
+ getCurrencyExchangeRatesOptions(requestParameters: GetCurrencyExchangeRatesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1093
1115
  /**
1094
1116
  * Return the email provider to be used for signing in with a given email. If an external provider such as magicLink is disabled, this endpoint would return emailOnly. If an external provider such as magicLink is enabled, it will return emailOnly when the email already exists in Dynamic and it is associated with a wallet, otherwise it will return magicLink.
1095
1117
  * Get signin email provider
@@ -1777,6 +1777,61 @@ class SDKApi extends BaseAPI {
1777
1777
  return yield response.value();
1778
1778
  });
1779
1779
  }
1780
+ /**
1781
+ * Exchange rates for the given currency
1782
+ */
1783
+ getCurrencyExchangeRatesRaw(requestParameters, initOverrides) {
1784
+ return __awaiter(this, void 0, void 0, function* () {
1785
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1786
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCurrencyExchangeRates.');
1787
+ }
1788
+ const queryParameters = {};
1789
+ const headerParameters = {};
1790
+ const response = yield this.request({
1791
+ path: `/sdk/{environmentId}/exchangeRates`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1792
+ method: 'GET',
1793
+ headers: headerParameters,
1794
+ query: queryParameters,
1795
+ }, initOverrides);
1796
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(CurrencyFromJSON));
1797
+ });
1798
+ }
1799
+ /**
1800
+ * Exchange rates for the given currency
1801
+ */
1802
+ getCurrencyExchangeRates(requestParameters, initOverrides) {
1803
+ return __awaiter(this, void 0, void 0, function* () {
1804
+ const response = yield this.getCurrencyExchangeRatesRaw(requestParameters, initOverrides);
1805
+ return yield response.value();
1806
+ });
1807
+ }
1808
+ /**
1809
+ * Options call for this endpoint
1810
+ */
1811
+ getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides) {
1812
+ return __awaiter(this, void 0, void 0, function* () {
1813
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1814
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCurrencyExchangeRatesOptions.');
1815
+ }
1816
+ const queryParameters = {};
1817
+ const headerParameters = {};
1818
+ const response = yield this.request({
1819
+ path: `/sdk/{environmentId}/exchangeRates`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1820
+ method: 'OPTIONS',
1821
+ headers: headerParameters,
1822
+ query: queryParameters,
1823
+ }, initOverrides);
1824
+ return new VoidApiResponse(response);
1825
+ });
1826
+ }
1827
+ /**
1828
+ * Options call for this endpoint
1829
+ */
1830
+ getCurrencyExchangeRatesOptions(requestParameters, initOverrides) {
1831
+ return __awaiter(this, void 0, void 0, function* () {
1832
+ yield this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
1833
+ });
1834
+ }
1780
1835
  /**
1781
1836
  * Return the email provider to be used for signing in with a given email. If an external provider such as magicLink is disabled, this endpoint would return emailOnly. If an external provider such as magicLink is enabled, it will return emailOnly when the email already exists in Dynamic and it is associated with a wallet, otherwise it will return magicLink.
1782
1837
  * Get signin email provider