@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
|
@@ -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';
|
|
@@ -127,511 +126,459 @@ class OrganizationsApi extends BaseAPI {
|
|
|
127
126
|
* Applies a coupon to the subscription for the specified organization.
|
|
128
127
|
* Add coupon to subscription
|
|
129
128
|
*/
|
|
130
|
-
applyCouponForSubscriptionRaw(requestParameters, initOverrides) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
156
|
-
});
|
|
129
|
+
async applyCouponForSubscriptionRaw(requestParameters, initOverrides) {
|
|
130
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
131
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling applyCouponForSubscription.');
|
|
132
|
+
}
|
|
133
|
+
if (requestParameters.billingSubscriptionCoupon === null || requestParameters.billingSubscriptionCoupon === undefined) {
|
|
134
|
+
throw new RequiredError('billingSubscriptionCoupon', 'Required parameter requestParameters.billingSubscriptionCoupon was null or undefined when calling applyCouponForSubscription.');
|
|
135
|
+
}
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
140
|
+
const token = this.configuration.accessToken;
|
|
141
|
+
const tokenString = await token("bearerAuth", []);
|
|
142
|
+
if (tokenString) {
|
|
143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const response = await this.request({
|
|
147
|
+
path: `/organizations/{organizationId}/billing/subscription/coupon`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
148
|
+
method: 'PUT',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
body: BillingSubscriptionCouponToJSON(requestParameters.billingSubscriptionCoupon),
|
|
152
|
+
}, initOverrides);
|
|
153
|
+
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
157
154
|
}
|
|
158
155
|
/**
|
|
159
156
|
* Applies a coupon to the subscription for the specified organization.
|
|
160
157
|
* Add coupon to subscription
|
|
161
158
|
*/
|
|
162
|
-
applyCouponForSubscription(requestParameters, initOverrides) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return yield response.value();
|
|
166
|
-
});
|
|
159
|
+
async applyCouponForSubscription(requestParameters, initOverrides) {
|
|
160
|
+
const response = await this.applyCouponForSubscriptionRaw(requestParameters, initOverrides);
|
|
161
|
+
return await response.value();
|
|
167
162
|
}
|
|
168
163
|
/**
|
|
169
164
|
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
170
165
|
* Cancel subscription at period end
|
|
171
166
|
*/
|
|
172
|
-
cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
193
|
-
});
|
|
167
|
+
async cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
168
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
169
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling cancelSubscriptionForOrganization.');
|
|
170
|
+
}
|
|
171
|
+
const queryParameters = {};
|
|
172
|
+
const headerParameters = {};
|
|
173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
+
const token = this.configuration.accessToken;
|
|
175
|
+
const tokenString = await token("bearerAuth", []);
|
|
176
|
+
if (tokenString) {
|
|
177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const response = await this.request({
|
|
181
|
+
path: `/organizations/{organizationId}/billing/subscription/cancel`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
182
|
+
method: 'POST',
|
|
183
|
+
headers: headerParameters,
|
|
184
|
+
query: queryParameters,
|
|
185
|
+
}, initOverrides);
|
|
186
|
+
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
194
187
|
}
|
|
195
188
|
/**
|
|
196
189
|
* Schedules the subscription for cancellation at the end of the current billing period. The subscription remains active until then.
|
|
197
190
|
* Cancel subscription at period end
|
|
198
191
|
*/
|
|
199
|
-
cancelSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return yield response.value();
|
|
203
|
-
});
|
|
192
|
+
async cancelSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
193
|
+
const response = await this.cancelSubscriptionForOrganizationRaw(requestParameters, initOverrides);
|
|
194
|
+
return await response.value();
|
|
204
195
|
}
|
|
205
196
|
/**
|
|
206
197
|
* Creates a new organization.
|
|
207
198
|
* Create an organization
|
|
208
199
|
*/
|
|
209
|
-
createOrganizationRaw(requestParameters, initOverrides) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
232
|
-
});
|
|
200
|
+
async createOrganizationRaw(requestParameters, initOverrides) {
|
|
201
|
+
if (requestParameters.organizationRequest === null || requestParameters.organizationRequest === undefined) {
|
|
202
|
+
throw new RequiredError('organizationRequest', 'Required parameter requestParameters.organizationRequest was null or undefined when calling createOrganization.');
|
|
203
|
+
}
|
|
204
|
+
const queryParameters = {};
|
|
205
|
+
const headerParameters = {};
|
|
206
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
208
|
+
const token = this.configuration.accessToken;
|
|
209
|
+
const tokenString = await token("bearerAuth", []);
|
|
210
|
+
if (tokenString) {
|
|
211
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const response = await this.request({
|
|
215
|
+
path: `/organizations`,
|
|
216
|
+
method: 'POST',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
body: OrganizationRequestToJSON(requestParameters.organizationRequest),
|
|
220
|
+
}, initOverrides);
|
|
221
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
233
222
|
}
|
|
234
223
|
/**
|
|
235
224
|
* Creates a new organization.
|
|
236
225
|
* Create an organization
|
|
237
226
|
*/
|
|
238
|
-
createOrganization(requestParameters, initOverrides) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
return yield response.value();
|
|
242
|
-
});
|
|
227
|
+
async createOrganization(requestParameters, initOverrides) {
|
|
228
|
+
const response = await this.createOrganizationRaw(requestParameters, initOverrides);
|
|
229
|
+
return await response.value();
|
|
243
230
|
}
|
|
244
231
|
/**
|
|
245
232
|
* Creates a new SSO provider configuration for the specified organization.
|
|
246
233
|
* Create SSO provider configuration for organization
|
|
247
234
|
*/
|
|
248
|
-
createSsoProviderRaw(requestParameters, initOverrides) {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
return new JSONApiResponse(response, (jsonValue) => SsoProviderFromJSON(jsonValue));
|
|
274
|
-
});
|
|
235
|
+
async createSsoProviderRaw(requestParameters, initOverrides) {
|
|
236
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
237
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling createSsoProvider.');
|
|
238
|
+
}
|
|
239
|
+
if (requestParameters.ssoProviderCreateRequest === null || requestParameters.ssoProviderCreateRequest === undefined) {
|
|
240
|
+
throw new RequiredError('ssoProviderCreateRequest', 'Required parameter requestParameters.ssoProviderCreateRequest was null or undefined when calling createSsoProvider.');
|
|
241
|
+
}
|
|
242
|
+
const queryParameters = {};
|
|
243
|
+
const headerParameters = {};
|
|
244
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
245
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
246
|
+
const token = this.configuration.accessToken;
|
|
247
|
+
const tokenString = await token("bearerAuth", []);
|
|
248
|
+
if (tokenString) {
|
|
249
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
const response = await this.request({
|
|
253
|
+
path: `/organizations/{organizationId}/ssoProvider`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
254
|
+
method: 'POST',
|
|
255
|
+
headers: headerParameters,
|
|
256
|
+
query: queryParameters,
|
|
257
|
+
body: SsoProviderCreateRequestToJSON(requestParameters.ssoProviderCreateRequest),
|
|
258
|
+
}, initOverrides);
|
|
259
|
+
return new JSONApiResponse(response, (jsonValue) => SsoProviderFromJSON(jsonValue));
|
|
275
260
|
}
|
|
276
261
|
/**
|
|
277
262
|
* Creates a new SSO provider configuration for the specified organization.
|
|
278
263
|
* Create SSO provider configuration for organization
|
|
279
264
|
*/
|
|
280
|
-
createSsoProvider(requestParameters, initOverrides) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
return yield response.value();
|
|
284
|
-
});
|
|
265
|
+
async createSsoProvider(requestParameters, initOverrides) {
|
|
266
|
+
const response = await this.createSsoProviderRaw(requestParameters, initOverrides);
|
|
267
|
+
return await response.value();
|
|
285
268
|
}
|
|
286
269
|
/**
|
|
287
270
|
* Permanently removes the specified SSO provider configuration.
|
|
288
271
|
* Delete SSO provider configuration
|
|
289
272
|
*/
|
|
290
|
-
deleteSsoProviderRaw(requestParameters, initOverrides) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return new VoidApiResponse(response);
|
|
314
|
-
});
|
|
273
|
+
async deleteSsoProviderRaw(requestParameters, initOverrides) {
|
|
274
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
275
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling deleteSsoProvider.');
|
|
276
|
+
}
|
|
277
|
+
if (requestParameters.ssoProviderId === null || requestParameters.ssoProviderId === undefined) {
|
|
278
|
+
throw new RequiredError('ssoProviderId', 'Required parameter requestParameters.ssoProviderId was null or undefined when calling deleteSsoProvider.');
|
|
279
|
+
}
|
|
280
|
+
const queryParameters = {};
|
|
281
|
+
const headerParameters = {};
|
|
282
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
283
|
+
const token = this.configuration.accessToken;
|
|
284
|
+
const tokenString = await token("bearerAuth", []);
|
|
285
|
+
if (tokenString) {
|
|
286
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const response = await this.request({
|
|
290
|
+
path: `/organizations/{organizationId}/ssoProvider/{ssoProviderId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"ssoProviderId"}}`, encodeURIComponent(String(requestParameters.ssoProviderId))),
|
|
291
|
+
method: 'DELETE',
|
|
292
|
+
headers: headerParameters,
|
|
293
|
+
query: queryParameters,
|
|
294
|
+
}, initOverrides);
|
|
295
|
+
return new VoidApiResponse(response);
|
|
315
296
|
}
|
|
316
297
|
/**
|
|
317
298
|
* Permanently removes the specified SSO provider configuration.
|
|
318
299
|
* Delete SSO provider configuration
|
|
319
300
|
*/
|
|
320
|
-
deleteSsoProvider(requestParameters, initOverrides) {
|
|
321
|
-
|
|
322
|
-
yield this.deleteSsoProviderRaw(requestParameters, initOverrides);
|
|
323
|
-
});
|
|
301
|
+
async deleteSsoProvider(requestParameters, initOverrides) {
|
|
302
|
+
await this.deleteSsoProviderRaw(requestParameters, initOverrides);
|
|
324
303
|
}
|
|
325
304
|
/**
|
|
326
305
|
* Returns the billing subscription for the specified organization.
|
|
327
306
|
* Get the subscription for an organization
|
|
328
307
|
*/
|
|
329
|
-
getBillingSubscriptionByOrganizationRaw(requestParameters, initOverrides) {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
350
|
-
});
|
|
308
|
+
async getBillingSubscriptionByOrganizationRaw(requestParameters, initOverrides) {
|
|
309
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
310
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getBillingSubscriptionByOrganization.');
|
|
311
|
+
}
|
|
312
|
+
const queryParameters = {};
|
|
313
|
+
const headerParameters = {};
|
|
314
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
315
|
+
const token = this.configuration.accessToken;
|
|
316
|
+
const tokenString = await token("bearerAuth", []);
|
|
317
|
+
if (tokenString) {
|
|
318
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
const response = await this.request({
|
|
322
|
+
path: `/organizations/{organizationId}/billing/subscription`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
323
|
+
method: 'GET',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
}, initOverrides);
|
|
327
|
+
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
351
328
|
}
|
|
352
329
|
/**
|
|
353
330
|
* Returns the billing subscription for the specified organization.
|
|
354
331
|
* Get the subscription for an organization
|
|
355
332
|
*/
|
|
356
|
-
getBillingSubscriptionByOrganization(requestParameters, initOverrides) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
return yield response.value();
|
|
360
|
-
});
|
|
333
|
+
async getBillingSubscriptionByOrganization(requestParameters, initOverrides) {
|
|
334
|
+
const response = await this.getBillingSubscriptionByOrganizationRaw(requestParameters, initOverrides);
|
|
335
|
+
return await response.value();
|
|
361
336
|
}
|
|
362
337
|
/**
|
|
363
338
|
* Returns a single organization by its unique identifier.
|
|
364
339
|
* Get an organization by ID
|
|
365
340
|
*/
|
|
366
|
-
getOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationFromJSON(jsonValue));
|
|
387
|
-
});
|
|
341
|
+
async getOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
342
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
343
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationById.');
|
|
344
|
+
}
|
|
345
|
+
const queryParameters = {};
|
|
346
|
+
const headerParameters = {};
|
|
347
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
348
|
+
const token = this.configuration.accessToken;
|
|
349
|
+
const tokenString = await token("bearerAuth", []);
|
|
350
|
+
if (tokenString) {
|
|
351
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const response = await this.request({
|
|
355
|
+
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
356
|
+
method: 'GET',
|
|
357
|
+
headers: headerParameters,
|
|
358
|
+
query: queryParameters,
|
|
359
|
+
}, initOverrides);
|
|
360
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationFromJSON(jsonValue));
|
|
388
361
|
}
|
|
389
362
|
/**
|
|
390
363
|
* Returns a single organization by its unique identifier.
|
|
391
364
|
* Get an organization by ID
|
|
392
365
|
*/
|
|
393
|
-
getOrganizationById(requestParameters, initOverrides) {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
return yield response.value();
|
|
397
|
-
});
|
|
366
|
+
async getOrganizationById(requestParameters, initOverrides) {
|
|
367
|
+
const response = await this.getOrganizationByIdRaw(requestParameters, initOverrides);
|
|
368
|
+
return await response.value();
|
|
398
369
|
}
|
|
399
370
|
/**
|
|
400
371
|
* Returns the organizations for the current user.
|
|
401
372
|
* Get organizations for the current user
|
|
402
373
|
*/
|
|
403
|
-
getOrganizationsForMemberRaw(initOverrides) {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationsResponseFromJSON(jsonValue));
|
|
421
|
-
});
|
|
374
|
+
async getOrganizationsForMemberRaw(initOverrides) {
|
|
375
|
+
const queryParameters = {};
|
|
376
|
+
const headerParameters = {};
|
|
377
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
378
|
+
const token = this.configuration.accessToken;
|
|
379
|
+
const tokenString = await token("bearerAuth", []);
|
|
380
|
+
if (tokenString) {
|
|
381
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
const response = await this.request({
|
|
385
|
+
path: `/organizations`,
|
|
386
|
+
method: 'GET',
|
|
387
|
+
headers: headerParameters,
|
|
388
|
+
query: queryParameters,
|
|
389
|
+
}, initOverrides);
|
|
390
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationsResponseFromJSON(jsonValue));
|
|
422
391
|
}
|
|
423
392
|
/**
|
|
424
393
|
* Returns the organizations for the current user.
|
|
425
394
|
* Get organizations for the current user
|
|
426
395
|
*/
|
|
427
|
-
getOrganizationsForMember(initOverrides) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return yield response.value();
|
|
431
|
-
});
|
|
396
|
+
async getOrganizationsForMember(initOverrides) {
|
|
397
|
+
const response = await this.getOrganizationsForMemberRaw(initOverrides);
|
|
398
|
+
return await response.value();
|
|
432
399
|
}
|
|
433
400
|
/**
|
|
434
401
|
* Returns the SSO provider configuration for the specified organization.
|
|
435
402
|
* Get SSO provider configuration for organization
|
|
436
403
|
*/
|
|
437
|
-
getSsoProviderForOrganizationRaw(requestParameters, initOverrides) {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
return new JSONApiResponse(response, (jsonValue) => SsoProviderFromJSON(jsonValue));
|
|
458
|
-
});
|
|
404
|
+
async getSsoProviderForOrganizationRaw(requestParameters, initOverrides) {
|
|
405
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
406
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getSsoProviderForOrganization.');
|
|
407
|
+
}
|
|
408
|
+
const queryParameters = {};
|
|
409
|
+
const headerParameters = {};
|
|
410
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
411
|
+
const token = this.configuration.accessToken;
|
|
412
|
+
const tokenString = await token("bearerAuth", []);
|
|
413
|
+
if (tokenString) {
|
|
414
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
const response = await this.request({
|
|
418
|
+
path: `/organizations/{organizationId}/ssoProvider`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
419
|
+
method: 'GET',
|
|
420
|
+
headers: headerParameters,
|
|
421
|
+
query: queryParameters,
|
|
422
|
+
}, initOverrides);
|
|
423
|
+
return new JSONApiResponse(response, (jsonValue) => SsoProviderFromJSON(jsonValue));
|
|
459
424
|
}
|
|
460
425
|
/**
|
|
461
426
|
* Returns the SSO provider configuration for the specified organization.
|
|
462
427
|
* Get SSO provider configuration for organization
|
|
463
428
|
*/
|
|
464
|
-
getSsoProviderForOrganization(requestParameters, initOverrides) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return yield response.value();
|
|
468
|
-
});
|
|
429
|
+
async getSsoProviderForOrganization(requestParameters, initOverrides) {
|
|
430
|
+
const response = await this.getSsoProviderForOrganizationRaw(requestParameters, initOverrides);
|
|
431
|
+
return await response.value();
|
|
469
432
|
}
|
|
470
433
|
/**
|
|
471
434
|
* Updates the address for the specified organization.
|
|
472
435
|
* Update an organization address by ID
|
|
473
436
|
*/
|
|
474
|
-
updateOrganizationAddressByIdRaw(requestParameters, initOverrides) {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
500
|
-
});
|
|
437
|
+
async updateOrganizationAddressByIdRaw(requestParameters, initOverrides) {
|
|
438
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
439
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationAddressById.');
|
|
440
|
+
}
|
|
441
|
+
if (requestParameters.organizationAddressFields === null || requestParameters.organizationAddressFields === undefined) {
|
|
442
|
+
throw new RequiredError('organizationAddressFields', 'Required parameter requestParameters.organizationAddressFields was null or undefined when calling updateOrganizationAddressById.');
|
|
443
|
+
}
|
|
444
|
+
const queryParameters = {};
|
|
445
|
+
const headerParameters = {};
|
|
446
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
447
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
448
|
+
const token = this.configuration.accessToken;
|
|
449
|
+
const tokenString = await token("bearerAuth", []);
|
|
450
|
+
if (tokenString) {
|
|
451
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
const response = await this.request({
|
|
455
|
+
path: `/organizations/{organizationId}/address`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
456
|
+
method: 'PUT',
|
|
457
|
+
headers: headerParameters,
|
|
458
|
+
query: queryParameters,
|
|
459
|
+
body: OrganizationAddressFieldsToJSON(requestParameters.organizationAddressFields),
|
|
460
|
+
}, initOverrides);
|
|
461
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
501
462
|
}
|
|
502
463
|
/**
|
|
503
464
|
* Updates the address for the specified organization.
|
|
504
465
|
* Update an organization address by ID
|
|
505
466
|
*/
|
|
506
|
-
updateOrganizationAddressById(requestParameters, initOverrides) {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
return yield response.value();
|
|
510
|
-
});
|
|
467
|
+
async updateOrganizationAddressById(requestParameters, initOverrides) {
|
|
468
|
+
const response = await this.updateOrganizationAddressByIdRaw(requestParameters, initOverrides);
|
|
469
|
+
return await response.value();
|
|
511
470
|
}
|
|
512
471
|
/**
|
|
513
472
|
* Updates the specified organization.
|
|
514
473
|
* Update an organization by ID
|
|
515
474
|
*/
|
|
516
|
-
updateOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
542
|
-
});
|
|
475
|
+
async updateOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
476
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
477
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateOrganizationById.');
|
|
478
|
+
}
|
|
479
|
+
if (requestParameters.organizationFields === null || requestParameters.organizationFields === undefined) {
|
|
480
|
+
throw new RequiredError('organizationFields', 'Required parameter requestParameters.organizationFields was null or undefined when calling updateOrganizationById.');
|
|
481
|
+
}
|
|
482
|
+
const queryParameters = {};
|
|
483
|
+
const headerParameters = {};
|
|
484
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
485
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
486
|
+
const token = this.configuration.accessToken;
|
|
487
|
+
const tokenString = await token("bearerAuth", []);
|
|
488
|
+
if (tokenString) {
|
|
489
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
const response = await this.request({
|
|
493
|
+
path: `/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
494
|
+
method: 'PUT',
|
|
495
|
+
headers: headerParameters,
|
|
496
|
+
query: queryParameters,
|
|
497
|
+
body: OrganizationFieldsToJSON(requestParameters.organizationFields),
|
|
498
|
+
}, initOverrides);
|
|
499
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationResponseFromJSON(jsonValue));
|
|
543
500
|
}
|
|
544
501
|
/**
|
|
545
502
|
* Updates the specified organization.
|
|
546
503
|
* Update an organization by ID
|
|
547
504
|
*/
|
|
548
|
-
updateOrganizationById(requestParameters, initOverrides) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
return yield response.value();
|
|
552
|
-
});
|
|
505
|
+
async updateOrganizationById(requestParameters, initOverrides) {
|
|
506
|
+
const response = await this.updateOrganizationByIdRaw(requestParameters, initOverrides);
|
|
507
|
+
return await response.value();
|
|
553
508
|
}
|
|
554
509
|
/**
|
|
555
510
|
* Updates the specified SSO provider configuration.
|
|
556
511
|
* Update SSO provider configuration
|
|
557
512
|
*/
|
|
558
|
-
updateSsoProviderRaw(requestParameters, initOverrides) {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
return new JSONApiResponse(response, (jsonValue) => SsoProviderFromJSON(jsonValue));
|
|
587
|
-
});
|
|
513
|
+
async updateSsoProviderRaw(requestParameters, initOverrides) {
|
|
514
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
515
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling updateSsoProvider.');
|
|
516
|
+
}
|
|
517
|
+
if (requestParameters.ssoProviderId === null || requestParameters.ssoProviderId === undefined) {
|
|
518
|
+
throw new RequiredError('ssoProviderId', 'Required parameter requestParameters.ssoProviderId was null or undefined when calling updateSsoProvider.');
|
|
519
|
+
}
|
|
520
|
+
if (requestParameters.ssoProviderUpdateRequest === null || requestParameters.ssoProviderUpdateRequest === undefined) {
|
|
521
|
+
throw new RequiredError('ssoProviderUpdateRequest', 'Required parameter requestParameters.ssoProviderUpdateRequest was null or undefined when calling updateSsoProvider.');
|
|
522
|
+
}
|
|
523
|
+
const queryParameters = {};
|
|
524
|
+
const headerParameters = {};
|
|
525
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
526
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
527
|
+
const token = this.configuration.accessToken;
|
|
528
|
+
const tokenString = await token("bearerAuth", []);
|
|
529
|
+
if (tokenString) {
|
|
530
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
const response = await this.request({
|
|
534
|
+
path: `/organizations/{organizationId}/ssoProvider/{ssoProviderId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"ssoProviderId"}}`, encodeURIComponent(String(requestParameters.ssoProviderId))),
|
|
535
|
+
method: 'PUT',
|
|
536
|
+
headers: headerParameters,
|
|
537
|
+
query: queryParameters,
|
|
538
|
+
body: SsoProviderUpdateRequestToJSON(requestParameters.ssoProviderUpdateRequest),
|
|
539
|
+
}, initOverrides);
|
|
540
|
+
return new JSONApiResponse(response, (jsonValue) => SsoProviderFromJSON(jsonValue));
|
|
588
541
|
}
|
|
589
542
|
/**
|
|
590
543
|
* Updates the specified SSO provider configuration.
|
|
591
544
|
* Update SSO provider configuration
|
|
592
545
|
*/
|
|
593
|
-
updateSsoProvider(requestParameters, initOverrides) {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
return yield response.value();
|
|
597
|
-
});
|
|
546
|
+
async updateSsoProvider(requestParameters, initOverrides) {
|
|
547
|
+
const response = await this.updateSsoProviderRaw(requestParameters, initOverrides);
|
|
548
|
+
return await response.value();
|
|
598
549
|
}
|
|
599
550
|
/**
|
|
600
551
|
* Upgrades the subscription plan for the specified organization.
|
|
601
552
|
* Upgrade organization to advanced plan
|
|
602
553
|
*/
|
|
603
|
-
upgradeSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
624
|
-
});
|
|
554
|
+
async upgradeSubscriptionForOrganizationRaw(requestParameters, initOverrides) {
|
|
555
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
556
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling upgradeSubscriptionForOrganization.');
|
|
557
|
+
}
|
|
558
|
+
const queryParameters = {};
|
|
559
|
+
const headerParameters = {};
|
|
560
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
561
|
+
const token = this.configuration.accessToken;
|
|
562
|
+
const tokenString = await token("bearerAuth", []);
|
|
563
|
+
if (tokenString) {
|
|
564
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
const response = await this.request({
|
|
568
|
+
path: `/organizations/{organizationId}/billing/upgrade`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
569
|
+
method: 'PUT',
|
|
570
|
+
headers: headerParameters,
|
|
571
|
+
query: queryParameters,
|
|
572
|
+
}, initOverrides);
|
|
573
|
+
return new JSONApiResponse(response, (jsonValue) => BillingSubscriptionFromJSON(jsonValue));
|
|
625
574
|
}
|
|
626
575
|
/**
|
|
627
576
|
* Upgrades the subscription plan for the specified organization.
|
|
628
577
|
* Upgrade organization to advanced plan
|
|
629
578
|
*/
|
|
630
|
-
upgradeSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
return yield response.value();
|
|
634
|
-
});
|
|
579
|
+
async upgradeSubscriptionForOrganization(requestParameters, initOverrides) {
|
|
580
|
+
const response = await this.upgradeSubscriptionForOrganizationRaw(requestParameters, initOverrides);
|
|
581
|
+
return await response.value();
|
|
635
582
|
}
|
|
636
583
|
}
|
|
637
584
|
|