@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.
- package/package.json +1 -1
- package/src/apis/AllowlistsApi.cjs +245 -286
- package/src/apis/AllowlistsApi.js +245 -286
- package/src/apis/AnalyticsApi.cjs +210 -235
- package/src/apis/AnalyticsApi.js +210 -235
- package/src/apis/ChainalysisApi.cjs +66 -79
- package/src/apis/ChainalysisApi.js +66 -79
- package/src/apis/ChainsApi.cjs +25 -30
- package/src/apis/ChainsApi.js +25 -30
- package/src/apis/CustomFieldsApi.cjs +119 -140
- package/src/apis/CustomFieldsApi.js +119 -140
- package/src/apis/CustomHostnamesApi.cjs +55 -68
- package/src/apis/CustomHostnamesApi.js +55 -68
- package/src/apis/CustomNetworksApi.cjs +128 -149
- package/src/apis/CustomNetworksApi.js +128 -149
- package/src/apis/DeeplinkUrlsApi.cjs +70 -83
- package/src/apis/DeeplinkUrlsApi.js +70 -83
- package/src/apis/DepositApi.cjs +83 -100
- package/src/apis/DepositApi.js +83 -100
- package/src/apis/EnvironmentsApi.cjs +168 -197
- package/src/apis/EnvironmentsApi.js +168 -197
- package/src/apis/EventsApi.cjs +60 -73
- package/src/apis/EventsApi.js +60 -73
- package/src/apis/ExportsApi.cjs +89 -106
- package/src/apis/ExportsApi.js +89 -106
- package/src/apis/ExternalJwtApi.cjs +27 -32
- package/src/apis/ExternalJwtApi.js +27 -32
- package/src/apis/GatesApi.cjs +154 -183
- package/src/apis/GatesApi.js +154 -183
- package/src/apis/GlobalWalletAccessControlApi.cjs +159 -188
- package/src/apis/GlobalWalletAccessControlApi.js +159 -188
- package/src/apis/GlobalWalletConnectionsApi.cjs +28 -33
- package/src/apis/GlobalWalletConnectionsApi.js +28 -33
- package/src/apis/GlobalWalletsApi.cjs +90 -111
- package/src/apis/GlobalWalletsApi.js +90 -111
- package/src/apis/InvitesApi.cjs +120 -141
- package/src/apis/InvitesApi.js +120 -141
- package/src/apis/MembersApi.cjs +115 -136
- package/src/apis/MembersApi.js +115 -136
- package/src/apis/MfaApi.cjs +42 -51
- package/src/apis/MfaApi.js +42 -51
- package/src/apis/MfaSettingsApi.cjs +72 -85
- package/src/apis/MfaSettingsApi.js +72 -85
- package/src/apis/NameServicesApi.cjs +123 -148
- package/src/apis/NameServicesApi.js +123 -148
- package/src/apis/OrganizationsApi.cjs +328 -381
- package/src/apis/OrganizationsApi.js +328 -381
- package/src/apis/OriginsApi.cjs +58 -71
- package/src/apis/OriginsApi.js +58 -71
- package/src/apis/ProjectsApi.cjs +119 -140
- package/src/apis/ProjectsApi.js +119 -140
- package/src/apis/SDKApi.cjs +6184 -7365
- package/src/apis/SDKApi.d.ts +2 -2
- package/src/apis/SDKApi.js +6184 -7365
- package/src/apis/SDKViewsApi.cjs +59 -72
- package/src/apis/SDKViewsApi.js +59 -72
- package/src/apis/SessionsApi.cjs +69 -82
- package/src/apis/SessionsApi.js +69 -82
- package/src/apis/SettingsApi.cjs +273 -330
- package/src/apis/SettingsApi.js +273 -330
- package/src/apis/TestAccountApi.cjs +47 -60
- package/src/apis/TestAccountApi.js +47 -60
- package/src/apis/TokensApi.cjs +92 -109
- package/src/apis/TokensApi.js +92 -109
- package/src/apis/UserApiTokensApi.cjs +64 -77
- package/src/apis/UserApiTokensApi.js +64 -77
- package/src/apis/UsersApi.cjs +357 -410
- package/src/apis/UsersApi.js +357 -410
- package/src/apis/VisitsApi.cjs +34 -39
- package/src/apis/VisitsApi.js +34 -39
- package/src/apis/WaasApi.cjs +470 -559
- package/src/apis/WaasApi.js +470 -559
- package/src/apis/WalletConnectApi.cjs +21 -26
- package/src/apis/WalletConnectApi.js +21 -26
- package/src/apis/WalletsApi.cjs +340 -393
- package/src/apis/WalletsApi.js +340 -393
- package/src/apis/WebhooksApi.cjs +167 -200
- package/src/apis/WebhooksApi.js +167 -200
- package/src/index.cjs +4 -4
- package/src/index.js +1 -1
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/Provider.cjs +2 -0
- package/src/models/Provider.d.ts +6 -0
- package/src/models/Provider.js +2 -0
- package/src/models/ProviderCreateRequest.cjs +2 -0
- package/src/models/ProviderCreateRequest.d.ts +6 -0
- package/src/models/ProviderCreateRequest.js +2 -0
- package/src/models/ProviderUpdateRequest.cjs +2 -0
- package/src/models/ProviderUpdateRequest.d.ts +6 -0
- package/src/models/ProviderUpdateRequest.js +2 -0
- package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
- package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
- package/src/models/TransactionFeeEstimateRequest.js +31 -0
- package/src/models/index.d.ts +1 -1
- package/src/runtime.cjs +45 -36
- package/src/runtime.js +45 -36
- package/_virtual/_tslib.cjs +0 -35
- package/_virtual/_tslib.js +0 -31
- package/src/models/InlineObject1.cjs +0 -43
- package/src/models/InlineObject1.d.ts +0 -27
- package/src/models/InlineObject1.js +0 -37
package/src/apis/ProjectsApi.js
CHANGED
|
@@ -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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
159
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
|
|
232
|
-
|
|
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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
|
|
269
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
311
|
-
|
|
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
|
|