@dynamic-labs/sdk-api 0.0.921 → 0.0.922

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 (102) 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 +6184 -7365
  53. package/src/apis/SDKApi.d.ts +2 -2
  54. package/src/apis/SDKApi.js +6184 -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 +4 -4
  80. package/src/index.js +1 -1
  81. package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
  82. package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
  83. package/src/models/Provider.cjs +2 -0
  84. package/src/models/Provider.d.ts +6 -0
  85. package/src/models/Provider.js +2 -0
  86. package/src/models/ProviderCreateRequest.cjs +2 -0
  87. package/src/models/ProviderCreateRequest.d.ts +6 -0
  88. package/src/models/ProviderCreateRequest.js +2 -0
  89. package/src/models/ProviderUpdateRequest.cjs +2 -0
  90. package/src/models/ProviderUpdateRequest.d.ts +6 -0
  91. package/src/models/ProviderUpdateRequest.js +2 -0
  92. package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
  93. package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
  94. package/src/models/TransactionFeeEstimateRequest.js +31 -0
  95. package/src/models/index.d.ts +1 -1
  96. package/src/runtime.cjs +45 -36
  97. package/src/runtime.js +45 -36
  98. package/_virtual/_tslib.cjs +0 -35
  99. package/_virtual/_tslib.js +0 -31
  100. package/src/models/InlineObject1.cjs +0 -43
  101. package/src/models/InlineObject1.d.ts +0 -27
  102. package/src/models/InlineObject1.js +0 -37
@@ -1,4 +1,3 @@
1
- import { __awaiter } from '../../_virtual/_tslib.js';
2
1
  import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse } from '../runtime.js';
3
2
  import '../models/AccessOutcomeEnum.js';
4
3
  import '../models/ExchangeKeyEnum.js';
@@ -122,195 +121,175 @@ class ProjectsApi extends BaseAPI {
122
121
  * Creates a new project for the specified organization.
123
122
  * Create a project
124
123
  */
125
- createProjectRaw(requestParameters, initOverrides) {
126
- return __awaiter(this, void 0, void 0, function* () {
127
- if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
128
- throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling createProject.');
124
+ async createProjectRaw(requestParameters, initOverrides) {
125
+ if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
126
+ throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling createProject.');
127
+ }
128
+ if (requestParameters.projectRequest === null || requestParameters.projectRequest === undefined) {
129
+ throw new RequiredError('projectRequest', 'Required parameter requestParameters.projectRequest was null or undefined when calling createProject.');
130
+ }
131
+ const queryParameters = {};
132
+ const headerParameters = {};
133
+ headerParameters['Content-Type'] = 'application/json';
134
+ if (this.configuration && this.configuration.accessToken) {
135
+ const token = this.configuration.accessToken;
136
+ const tokenString = await token("bearerAuth", []);
137
+ if (tokenString) {
138
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
129
139
  }
130
- if (requestParameters.projectRequest === null || requestParameters.projectRequest === undefined) {
131
- throw new RequiredError('projectRequest', 'Required parameter requestParameters.projectRequest was null or undefined when calling createProject.');
132
- }
133
- const queryParameters = {};
134
- const headerParameters = {};
135
- headerParameters['Content-Type'] = 'application/json';
136
- if (this.configuration && this.configuration.accessToken) {
137
- const token = this.configuration.accessToken;
138
- const tokenString = yield token("bearerAuth", []);
139
- if (tokenString) {
140
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
141
- }
142
- }
143
- const response = yield this.request({
144
- path: `/organizations/{organizationId}/projects`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
145
- method: 'POST',
146
- headers: headerParameters,
147
- query: queryParameters,
148
- body: ProjectRequestToJSON(requestParameters.projectRequest),
149
- }, initOverrides);
150
- return new JSONApiResponse(response, (jsonValue) => CreateProjectResponseFromJSON(jsonValue));
151
- });
140
+ }
141
+ const response = await this.request({
142
+ path: `/organizations/{organizationId}/projects`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
143
+ method: 'POST',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ body: ProjectRequestToJSON(requestParameters.projectRequest),
147
+ }, initOverrides);
148
+ return new JSONApiResponse(response, (jsonValue) => CreateProjectResponseFromJSON(jsonValue));
152
149
  }
153
150
  /**
154
151
  * Creates a new project for the specified organization.
155
152
  * Create a project
156
153
  */
157
- createProject(requestParameters, initOverrides) {
158
- return __awaiter(this, void 0, void 0, function* () {
159
- const response = yield this.createProjectRaw(requestParameters, initOverrides);
160
- return yield response.value();
161
- });
154
+ async createProject(requestParameters, initOverrides) {
155
+ const response = await this.createProjectRaw(requestParameters, initOverrides);
156
+ return await response.value();
162
157
  }
163
158
  /**
164
159
  * Permanently removes the specified project.
165
160
  * Delete a project by ID
166
161
  */
167
- deleteProjectByIdRaw(requestParameters, initOverrides) {
168
- return __awaiter(this, void 0, void 0, function* () {
169
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
170
- throw new RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProjectById.');
162
+ async deleteProjectByIdRaw(requestParameters, initOverrides) {
163
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
164
+ throw new RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProjectById.');
165
+ }
166
+ const queryParameters = {};
167
+ const headerParameters = {};
168
+ if (this.configuration && this.configuration.accessToken) {
169
+ const token = this.configuration.accessToken;
170
+ const tokenString = await token("bearerAuth", []);
171
+ if (tokenString) {
172
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
171
173
  }
172
- const queryParameters = {};
173
- const headerParameters = {};
174
- if (this.configuration && this.configuration.accessToken) {
175
- const token = this.configuration.accessToken;
176
- const tokenString = yield token("bearerAuth", []);
177
- if (tokenString) {
178
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
179
- }
180
- }
181
- const response = yield this.request({
182
- path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
183
- method: 'DELETE',
184
- headers: headerParameters,
185
- query: queryParameters,
186
- }, initOverrides);
187
- return new VoidApiResponse(response);
188
- });
174
+ }
175
+ const response = await this.request({
176
+ path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
177
+ method: 'DELETE',
178
+ headers: headerParameters,
179
+ query: queryParameters,
180
+ }, initOverrides);
181
+ return new VoidApiResponse(response);
189
182
  }
190
183
  /**
191
184
  * Permanently removes the specified project.
192
185
  * Delete a project by ID
193
186
  */
194
- deleteProjectById(requestParameters, initOverrides) {
195
- return __awaiter(this, void 0, void 0, function* () {
196
- yield this.deleteProjectByIdRaw(requestParameters, initOverrides);
197
- });
187
+ async deleteProjectById(requestParameters, initOverrides) {
188
+ await this.deleteProjectByIdRaw(requestParameters, initOverrides);
198
189
  }
199
190
  /**
200
191
  * Returns a single project by its unique identifier.
201
192
  * Get a project by ID
202
193
  */
203
- getProjectByIdRaw(requestParameters, initOverrides) {
204
- return __awaiter(this, void 0, void 0, function* () {
205
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
206
- throw new RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectById.');
207
- }
208
- const queryParameters = {};
209
- const headerParameters = {};
210
- if (this.configuration && this.configuration.accessToken) {
211
- const token = this.configuration.accessToken;
212
- const tokenString = yield token("bearerAuth", []);
213
- if (tokenString) {
214
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
215
- }
194
+ async getProjectByIdRaw(requestParameters, initOverrides) {
195
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
196
+ throw new RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectById.');
197
+ }
198
+ const queryParameters = {};
199
+ const headerParameters = {};
200
+ if (this.configuration && this.configuration.accessToken) {
201
+ const token = this.configuration.accessToken;
202
+ const tokenString = await token("bearerAuth", []);
203
+ if (tokenString) {
204
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
216
205
  }
217
- const response = yield this.request({
218
- path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
219
- method: 'GET',
220
- headers: headerParameters,
221
- query: queryParameters,
222
- }, initOverrides);
223
- return new JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
224
- });
206
+ }
207
+ const response = await this.request({
208
+ path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
209
+ method: 'GET',
210
+ headers: headerParameters,
211
+ query: queryParameters,
212
+ }, initOverrides);
213
+ return new JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
225
214
  }
226
215
  /**
227
216
  * Returns a single project by its unique identifier.
228
217
  * Get a project by ID
229
218
  */
230
- getProjectById(requestParameters, initOverrides) {
231
- return __awaiter(this, void 0, void 0, function* () {
232
- const response = yield this.getProjectByIdRaw(requestParameters, initOverrides);
233
- return yield response.value();
234
- });
219
+ async getProjectById(requestParameters, initOverrides) {
220
+ const response = await this.getProjectByIdRaw(requestParameters, initOverrides);
221
+ return await response.value();
235
222
  }
236
223
  /**
237
224
  * Returns the projects for the specified organization.
238
225
  * Get projects for the organization
239
226
  */
240
- getProjectsRaw(requestParameters, initOverrides) {
241
- return __awaiter(this, void 0, void 0, function* () {
242
- if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
243
- throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getProjects.');
227
+ async getProjectsRaw(requestParameters, initOverrides) {
228
+ if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
229
+ throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getProjects.');
230
+ }
231
+ const queryParameters = {};
232
+ const headerParameters = {};
233
+ if (this.configuration && this.configuration.accessToken) {
234
+ const token = this.configuration.accessToken;
235
+ const tokenString = await token("bearerAuth", []);
236
+ if (tokenString) {
237
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
244
238
  }
245
- const queryParameters = {};
246
- const headerParameters = {};
247
- if (this.configuration && this.configuration.accessToken) {
248
- const token = this.configuration.accessToken;
249
- const tokenString = yield token("bearerAuth", []);
250
- if (tokenString) {
251
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
252
- }
253
- }
254
- const response = yield this.request({
255
- path: `/organizations/{organizationId}/projects`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
256
- method: 'GET',
257
- headers: headerParameters,
258
- query: queryParameters,
259
- }, initOverrides);
260
- return new JSONApiResponse(response, (jsonValue) => ProjectsResponseFromJSON(jsonValue));
261
- });
239
+ }
240
+ const response = await this.request({
241
+ path: `/organizations/{organizationId}/projects`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
242
+ method: 'GET',
243
+ headers: headerParameters,
244
+ query: queryParameters,
245
+ }, initOverrides);
246
+ return new JSONApiResponse(response, (jsonValue) => ProjectsResponseFromJSON(jsonValue));
262
247
  }
263
248
  /**
264
249
  * Returns the projects for the specified organization.
265
250
  * Get projects for the organization
266
251
  */
267
- getProjects(requestParameters, initOverrides) {
268
- return __awaiter(this, void 0, void 0, function* () {
269
- const response = yield this.getProjectsRaw(requestParameters, initOverrides);
270
- return yield response.value();
271
- });
252
+ async getProjects(requestParameters, initOverrides) {
253
+ const response = await this.getProjectsRaw(requestParameters, initOverrides);
254
+ return await response.value();
272
255
  }
273
256
  /**
274
257
  * Updates the specified project.
275
258
  * Update a project
276
259
  */
277
- updateProjectRaw(requestParameters, initOverrides) {
278
- return __awaiter(this, void 0, void 0, function* () {
279
- if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
280
- throw new RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
281
- }
282
- if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
283
- throw new RequiredError('updateProjectRequest', 'Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
284
- }
285
- const queryParameters = {};
286
- const headerParameters = {};
287
- headerParameters['Content-Type'] = 'application/json';
288
- if (this.configuration && this.configuration.accessToken) {
289
- const token = this.configuration.accessToken;
290
- const tokenString = yield token("bearerAuth", []);
291
- if (tokenString) {
292
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
293
- }
260
+ async updateProjectRaw(requestParameters, initOverrides) {
261
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
262
+ throw new RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
263
+ }
264
+ if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
265
+ throw new RequiredError('updateProjectRequest', 'Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
266
+ }
267
+ const queryParameters = {};
268
+ const headerParameters = {};
269
+ headerParameters['Content-Type'] = 'application/json';
270
+ if (this.configuration && this.configuration.accessToken) {
271
+ const token = this.configuration.accessToken;
272
+ const tokenString = await token("bearerAuth", []);
273
+ if (tokenString) {
274
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
294
275
  }
295
- const response = yield this.request({
296
- path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
297
- method: 'PUT',
298
- headers: headerParameters,
299
- query: queryParameters,
300
- body: UpdateProjectRequestToJSON(requestParameters.updateProjectRequest),
301
- }, initOverrides);
302
- return new JSONApiResponse(response, (jsonValue) => UpdateProjectResponseFromJSON(jsonValue));
303
- });
276
+ }
277
+ const response = await this.request({
278
+ path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
279
+ method: 'PUT',
280
+ headers: headerParameters,
281
+ query: queryParameters,
282
+ body: UpdateProjectRequestToJSON(requestParameters.updateProjectRequest),
283
+ }, initOverrides);
284
+ return new JSONApiResponse(response, (jsonValue) => UpdateProjectResponseFromJSON(jsonValue));
304
285
  }
305
286
  /**
306
287
  * Updates the specified project.
307
288
  * Update a project
308
289
  */
309
- updateProject(requestParameters, initOverrides) {
310
- return __awaiter(this, void 0, void 0, function* () {
311
- const response = yield this.updateProjectRaw(requestParameters, initOverrides);
312
- return yield response.value();
313
- });
290
+ async updateProject(requestParameters, initOverrides) {
291
+ const response = await this.updateProjectRaw(requestParameters, initOverrides);
292
+ return await response.value();
314
293
  }
315
294
  }
316
295