@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.
Files changed (108) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AllowlistsApi.cjs +245 -286
  3. package/src/apis/AllowlistsApi.js +245 -286
  4. package/src/apis/AnalyticsApi.cjs +210 -235
  5. package/src/apis/AnalyticsApi.js +210 -235
  6. package/src/apis/ChainalysisApi.cjs +66 -79
  7. package/src/apis/ChainalysisApi.js +66 -79
  8. package/src/apis/ChainsApi.cjs +25 -30
  9. package/src/apis/ChainsApi.js +25 -30
  10. package/src/apis/CustomFieldsApi.cjs +119 -140
  11. package/src/apis/CustomFieldsApi.js +119 -140
  12. package/src/apis/CustomHostnamesApi.cjs +55 -68
  13. package/src/apis/CustomHostnamesApi.js +55 -68
  14. package/src/apis/CustomNetworksApi.cjs +128 -149
  15. package/src/apis/CustomNetworksApi.js +128 -149
  16. package/src/apis/DeeplinkUrlsApi.cjs +70 -83
  17. package/src/apis/DeeplinkUrlsApi.js +70 -83
  18. package/src/apis/DepositApi.cjs +83 -100
  19. package/src/apis/DepositApi.js +83 -100
  20. package/src/apis/EnvironmentsApi.cjs +168 -197
  21. package/src/apis/EnvironmentsApi.js +168 -197
  22. package/src/apis/EventsApi.cjs +60 -73
  23. package/src/apis/EventsApi.js +60 -73
  24. package/src/apis/ExportsApi.cjs +89 -106
  25. package/src/apis/ExportsApi.js +89 -106
  26. package/src/apis/ExternalJwtApi.cjs +27 -32
  27. package/src/apis/ExternalJwtApi.js +27 -32
  28. package/src/apis/GatesApi.cjs +154 -183
  29. package/src/apis/GatesApi.js +154 -183
  30. package/src/apis/GlobalWalletAccessControlApi.cjs +159 -188
  31. package/src/apis/GlobalWalletAccessControlApi.js +159 -188
  32. package/src/apis/GlobalWalletConnectionsApi.cjs +28 -33
  33. package/src/apis/GlobalWalletConnectionsApi.js +28 -33
  34. package/src/apis/GlobalWalletsApi.cjs +90 -111
  35. package/src/apis/GlobalWalletsApi.js +90 -111
  36. package/src/apis/InvitesApi.cjs +120 -141
  37. package/src/apis/InvitesApi.js +120 -141
  38. package/src/apis/MembersApi.cjs +115 -136
  39. package/src/apis/MembersApi.js +115 -136
  40. package/src/apis/MfaApi.cjs +42 -51
  41. package/src/apis/MfaApi.js +42 -51
  42. package/src/apis/MfaSettingsApi.cjs +72 -85
  43. package/src/apis/MfaSettingsApi.js +72 -85
  44. package/src/apis/NameServicesApi.cjs +123 -148
  45. package/src/apis/NameServicesApi.js +123 -148
  46. package/src/apis/OrganizationsApi.cjs +328 -381
  47. package/src/apis/OrganizationsApi.js +328 -381
  48. package/src/apis/OriginsApi.cjs +58 -71
  49. package/src/apis/OriginsApi.js +58 -71
  50. package/src/apis/ProjectsApi.cjs +119 -140
  51. package/src/apis/ProjectsApi.js +119 -140
  52. package/src/apis/SDKApi.cjs +6187 -7365
  53. package/src/apis/SDKApi.d.ts +3 -2
  54. package/src/apis/SDKApi.js +6187 -7365
  55. package/src/apis/SDKViewsApi.cjs +59 -72
  56. package/src/apis/SDKViewsApi.js +59 -72
  57. package/src/apis/SessionsApi.cjs +69 -82
  58. package/src/apis/SessionsApi.js +69 -82
  59. package/src/apis/SettingsApi.cjs +273 -330
  60. package/src/apis/SettingsApi.js +273 -330
  61. package/src/apis/TestAccountApi.cjs +47 -60
  62. package/src/apis/TestAccountApi.js +47 -60
  63. package/src/apis/TokensApi.cjs +92 -109
  64. package/src/apis/TokensApi.js +92 -109
  65. package/src/apis/UserApiTokensApi.cjs +64 -77
  66. package/src/apis/UserApiTokensApi.js +64 -77
  67. package/src/apis/UsersApi.cjs +357 -410
  68. package/src/apis/UsersApi.js +357 -410
  69. package/src/apis/VisitsApi.cjs +34 -39
  70. package/src/apis/VisitsApi.js +34 -39
  71. package/src/apis/WaasApi.cjs +470 -559
  72. package/src/apis/WaasApi.js +470 -559
  73. package/src/apis/WalletConnectApi.cjs +21 -26
  74. package/src/apis/WalletConnectApi.js +21 -26
  75. package/src/apis/WalletsApi.cjs +340 -393
  76. package/src/apis/WalletsApi.js +340 -393
  77. package/src/apis/WebhooksApi.cjs +167 -200
  78. package/src/apis/WebhooksApi.js +167 -200
  79. package/src/index.cjs +8 -4
  80. package/src/index.js +2 -1
  81. package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
  82. package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
  83. package/src/models/NetworkConfiguration.cjs +4 -0
  84. package/src/models/NetworkConfiguration.d.ts +12 -0
  85. package/src/models/NetworkConfiguration.js +4 -0
  86. package/src/models/PrepareSigningRequest.cjs +35 -0
  87. package/src/models/PrepareSigningRequest.d.ts +33 -0
  88. package/src/models/PrepareSigningRequest.js +29 -0
  89. package/src/models/Provider.cjs +2 -0
  90. package/src/models/Provider.d.ts +6 -0
  91. package/src/models/Provider.js +2 -0
  92. package/src/models/ProviderCreateRequest.cjs +2 -0
  93. package/src/models/ProviderCreateRequest.d.ts +6 -0
  94. package/src/models/ProviderCreateRequest.js +2 -0
  95. package/src/models/ProviderUpdateRequest.cjs +2 -0
  96. package/src/models/ProviderUpdateRequest.d.ts +6 -0
  97. package/src/models/ProviderUpdateRequest.js +2 -0
  98. package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
  99. package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
  100. package/src/models/TransactionFeeEstimateRequest.js +31 -0
  101. package/src/models/index.d.ts +2 -1
  102. package/src/runtime.cjs +45 -36
  103. package/src/runtime.js +45 -36
  104. package/_virtual/_tslib.cjs +0 -35
  105. package/_virtual/_tslib.js +0 -31
  106. package/src/models/InlineObject1.cjs +0 -43
  107. package/src/models/InlineObject1.d.ts +0 -27
  108. package/src/models/InlineObject1.js +0 -37
package/src/runtime.js CHANGED
@@ -1,6 +1,16 @@
1
- import { __awaiter } from '../_virtual/_tslib.js';
2
-
3
1
  /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
4
14
  const BASE_PATH = "https://app.dynamicauth.com/api/v0".replace(/\/+$/, "");
5
15
  const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
6
16
  /**
@@ -9,26 +19,29 @@ const isBlob = (value) => typeof Blob !== 'undefined' && value instanceof Blob;
9
19
  class BaseAPI {
10
20
  constructor(configuration = new Configuration()) {
11
21
  this.configuration = configuration;
12
- this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
22
+ this.fetchApi = async (url, init) => {
13
23
  let fetchParams = { url, init };
14
24
  for (const middleware of this.middleware) {
15
25
  if (middleware.pre) {
16
- fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
26
+ fetchParams = await middleware.pre({
27
+ fetch: this.fetchApi,
28
+ ...fetchParams,
29
+ }) || fetchParams;
17
30
  }
18
31
  }
19
- let response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
32
+ let response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
20
33
  for (const middleware of this.middleware) {
21
34
  if (middleware.post) {
22
- response = (yield middleware.post({
35
+ response = await middleware.post({
23
36
  fetch: this.fetchApi,
24
37
  url: fetchParams.url,
25
38
  init: fetchParams.init,
26
39
  response: response.clone(),
27
- })) || response;
40
+ }) || response;
28
41
  }
29
42
  }
30
43
  return response;
31
- });
44
+ };
32
45
  this.middleware = configuration.middleware;
33
46
  }
34
47
  withMiddleware(...middlewares) {
@@ -44,15 +57,13 @@ class BaseAPI {
44
57
  const middlewares = postMiddlewares.map((post) => ({ post }));
45
58
  return this.withMiddleware(...middlewares);
46
59
  }
47
- request(context, initOverrides) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- const { url, init } = this.createFetchParams(context, initOverrides);
50
- const response = yield this.fetchApi(url, init);
51
- if (response.status >= 200 && response.status < 300) {
52
- return response;
53
- }
54
- throw response;
55
- });
60
+ async request(context, initOverrides) {
61
+ const { url, init } = this.createFetchParams(context, initOverrides);
62
+ const response = await this.fetchApi(url, init);
63
+ if (response.status >= 200 && response.status < 300) {
64
+ return response;
65
+ }
66
+ throw response;
56
67
  }
57
68
  createFetchParams(context, initOverrides) {
58
69
  let url = this.configuration.basePath + context.path;
@@ -66,7 +77,13 @@ class BaseAPI {
66
77
  ? context.body
67
78
  : JSON.stringify(context.body);
68
79
  const headers = Object.assign({}, this.configuration.headers, context.headers);
69
- const init = Object.assign({ method: context.method, headers: headers, body, credentials: this.configuration.credentials }, initOverrides);
80
+ const init = {
81
+ method: context.method,
82
+ headers: headers,
83
+ body,
84
+ credentials: this.configuration.credentials,
85
+ ...initOverrides
86
+ };
70
87
  return { url, init };
71
88
  }
72
89
  /**
@@ -125,7 +142,7 @@ class Configuration {
125
142
  get accessToken() {
126
143
  const accessToken = this.configuration.accessToken;
127
144
  if (accessToken) {
128
- return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
145
+ return typeof accessToken === 'function' ? accessToken : async () => accessToken;
129
146
  }
130
147
  return undefined;
131
148
  }
@@ -162,7 +179,7 @@ function querystring(params, prefix = '') {
162
179
  .join('&');
163
180
  }
164
181
  function mapValues(data, fn) {
165
- return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
182
+ return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
166
183
  }
167
184
  function canConsumeForm(consumes) {
168
185
  for (const consume of consumes) {
@@ -177,30 +194,24 @@ class JSONApiResponse {
177
194
  this.raw = raw;
178
195
  this.transformer = transformer;
179
196
  }
180
- value() {
181
- return __awaiter(this, void 0, void 0, function* () {
182
- return this.transformer(yield this.raw.json());
183
- });
197
+ async value() {
198
+ return this.transformer(await this.raw.json());
184
199
  }
185
200
  }
186
201
  class VoidApiResponse {
187
202
  constructor(raw) {
188
203
  this.raw = raw;
189
204
  }
190
- value() {
191
- return __awaiter(this, void 0, void 0, function* () {
192
- return undefined;
193
- });
205
+ async value() {
206
+ return undefined;
194
207
  }
195
208
  }
196
209
  class BlobApiResponse {
197
210
  constructor(raw) {
198
211
  this.raw = raw;
199
212
  }
200
- value() {
201
- return __awaiter(this, void 0, void 0, function* () {
202
- return yield this.raw.blob();
203
- });
213
+ async value() {
214
+ return await this.raw.blob();
204
215
  }
205
216
  ;
206
217
  }
@@ -208,10 +219,8 @@ class TextApiResponse {
208
219
  constructor(raw) {
209
220
  this.raw = raw;
210
221
  }
211
- value() {
212
- return __awaiter(this, void 0, void 0, function* () {
213
- return yield this.raw.text();
214
- });
222
+ async value() {
223
+ return await this.raw.text();
215
224
  }
216
225
  ;
217
226
  }
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /******************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */
19
-
20
- function __awaiter(thisArg, _arguments, P, generator) {
21
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
- return new (P || (P = Promise))(function (resolve, reject) {
23
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
- step((generator = generator.apply(thisArg, _arguments || [])).next());
27
- });
28
- }
29
-
30
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31
- var e = new Error(message);
32
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
33
- };
34
-
35
- exports.__awaiter = __awaiter;
@@ -1,31 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
-
16
- function __awaiter(thisArg, _arguments, P, generator) {
17
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
- return new (P || (P = Promise))(function (resolve, reject) {
19
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
- step((generator = generator.apply(thisArg, _arguments || [])).next());
23
- });
24
- }
25
-
26
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
27
- var e = new Error(message);
28
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
29
- };
30
-
31
- export { __awaiter };
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
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
- */
18
- function InlineObject1FromJSON(json) {
19
- return InlineObject1FromJSONTyped(json);
20
- }
21
- function InlineObject1FromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'base64RawTransaction': json['base64RawTransaction'],
27
- };
28
- }
29
- function InlineObject1ToJSON(value) {
30
- if (value === undefined) {
31
- return undefined;
32
- }
33
- if (value === null) {
34
- return null;
35
- }
36
- return {
37
- 'base64RawTransaction': value.base64RawTransaction,
38
- };
39
- }
40
-
41
- exports.InlineObject1FromJSON = InlineObject1FromJSON;
42
- exports.InlineObject1FromJSONTyped = InlineObject1FromJSONTyped;
43
- exports.InlineObject1ToJSON = InlineObject1ToJSON;
@@ -1,27 +0,0 @@
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 InlineObject1
16
- */
17
- export interface InlineObject1 {
18
- /**
19
- * The raw transaction to estimate gas fees for
20
- * @type {string}
21
- * @memberof InlineObject1
22
- */
23
- base64RawTransaction: string;
24
- }
25
- export declare function InlineObject1FromJSON(json: any): InlineObject1;
26
- export declare function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1;
27
- export declare function InlineObject1ToJSON(value?: InlineObject1 | null): any;
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- function InlineObject1FromJSON(json) {
15
- return InlineObject1FromJSONTyped(json);
16
- }
17
- function InlineObject1FromJSONTyped(json, ignoreDiscriminator) {
18
- if ((json === undefined) || (json === null)) {
19
- return json;
20
- }
21
- return {
22
- 'base64RawTransaction': json['base64RawTransaction'],
23
- };
24
- }
25
- function InlineObject1ToJSON(value) {
26
- if (value === undefined) {
27
- return undefined;
28
- }
29
- if (value === null) {
30
- return null;
31
- }
32
- return {
33
- 'base64RawTransaction': value.base64RawTransaction,
34
- };
35
- }
36
-
37
- export { InlineObject1FromJSON, InlineObject1FromJSONTyped, InlineObject1ToJSON };