@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';
@@ -118,195 +117,175 @@ class CustomFieldsApi extends BaseAPI {
118
117
  * Creates a new custom field for the specified environment.
119
118
  * Create a custom field for the environment
120
119
  */
121
- createCustomFieldForEnvironmentRaw(requestParameters, initOverrides) {
122
- return __awaiter(this, void 0, void 0, function* () {
123
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
124
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createCustomFieldForEnvironment.');
120
+ async createCustomFieldForEnvironmentRaw(requestParameters, initOverrides) {
121
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
122
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createCustomFieldForEnvironment.');
123
+ }
124
+ if (requestParameters.customFieldRequest === null || requestParameters.customFieldRequest === undefined) {
125
+ throw new RequiredError('customFieldRequest', 'Required parameter requestParameters.customFieldRequest was null or undefined when calling createCustomFieldForEnvironment.');
126
+ }
127
+ const queryParameters = {};
128
+ const headerParameters = {};
129
+ headerParameters['Content-Type'] = 'application/json';
130
+ if (this.configuration && this.configuration.accessToken) {
131
+ const token = this.configuration.accessToken;
132
+ const tokenString = await token("bearerAuth", []);
133
+ if (tokenString) {
134
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
125
135
  }
126
- if (requestParameters.customFieldRequest === null || requestParameters.customFieldRequest === undefined) {
127
- throw new RequiredError('customFieldRequest', 'Required parameter requestParameters.customFieldRequest was null or undefined when calling createCustomFieldForEnvironment.');
128
- }
129
- const queryParameters = {};
130
- const headerParameters = {};
131
- headerParameters['Content-Type'] = 'application/json';
132
- if (this.configuration && this.configuration.accessToken) {
133
- const token = this.configuration.accessToken;
134
- const tokenString = yield token("bearerAuth", []);
135
- if (tokenString) {
136
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
137
- }
138
- }
139
- const response = yield this.request({
140
- path: `/environments/{environmentId}/custom/fields`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
141
- method: 'POST',
142
- headers: headerParameters,
143
- query: queryParameters,
144
- body: CustomFieldRequestToJSON(requestParameters.customFieldRequest),
145
- }, initOverrides);
146
- return new JSONApiResponse(response, (jsonValue) => CustomFieldFromJSON(jsonValue));
147
- });
136
+ }
137
+ const response = await this.request({
138
+ path: `/environments/{environmentId}/custom/fields`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
139
+ method: 'POST',
140
+ headers: headerParameters,
141
+ query: queryParameters,
142
+ body: CustomFieldRequestToJSON(requestParameters.customFieldRequest),
143
+ }, initOverrides);
144
+ return new JSONApiResponse(response, (jsonValue) => CustomFieldFromJSON(jsonValue));
148
145
  }
149
146
  /**
150
147
  * Creates a new custom field for the specified environment.
151
148
  * Create a custom field for the environment
152
149
  */
153
- createCustomFieldForEnvironment(requestParameters, initOverrides) {
154
- return __awaiter(this, void 0, void 0, function* () {
155
- const response = yield this.createCustomFieldForEnvironmentRaw(requestParameters, initOverrides);
156
- return yield response.value();
157
- });
150
+ async createCustomFieldForEnvironment(requestParameters, initOverrides) {
151
+ const response = await this.createCustomFieldForEnvironmentRaw(requestParameters, initOverrides);
152
+ return await response.value();
158
153
  }
159
154
  /**
160
155
  * Permanently removes the specified custom field.
161
156
  * Delete a specific custom field by its ID
162
157
  */
163
- deleteCustomFieldByIdRaw(requestParameters, initOverrides) {
164
- return __awaiter(this, void 0, void 0, function* () {
165
- if (requestParameters.customFieldId === null || requestParameters.customFieldId === undefined) {
166
- throw new RequiredError('customFieldId', 'Required parameter requestParameters.customFieldId was null or undefined when calling deleteCustomFieldById.');
158
+ async deleteCustomFieldByIdRaw(requestParameters, initOverrides) {
159
+ if (requestParameters.customFieldId === null || requestParameters.customFieldId === undefined) {
160
+ throw new RequiredError('customFieldId', 'Required parameter requestParameters.customFieldId was null or undefined when calling deleteCustomFieldById.');
161
+ }
162
+ const queryParameters = {};
163
+ const headerParameters = {};
164
+ if (this.configuration && this.configuration.accessToken) {
165
+ const token = this.configuration.accessToken;
166
+ const tokenString = await token("bearerAuth", []);
167
+ if (tokenString) {
168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
167
169
  }
168
- const queryParameters = {};
169
- const headerParameters = {};
170
- if (this.configuration && this.configuration.accessToken) {
171
- const token = this.configuration.accessToken;
172
- const tokenString = yield token("bearerAuth", []);
173
- if (tokenString) {
174
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
175
- }
176
- }
177
- const response = yield this.request({
178
- path: `/custom/fields/{customFieldId}`.replace(`{${"customFieldId"}}`, encodeURIComponent(String(requestParameters.customFieldId))),
179
- method: 'DELETE',
180
- headers: headerParameters,
181
- query: queryParameters,
182
- }, initOverrides);
183
- return new VoidApiResponse(response);
184
- });
170
+ }
171
+ const response = await this.request({
172
+ path: `/custom/fields/{customFieldId}`.replace(`{${"customFieldId"}}`, encodeURIComponent(String(requestParameters.customFieldId))),
173
+ method: 'DELETE',
174
+ headers: headerParameters,
175
+ query: queryParameters,
176
+ }, initOverrides);
177
+ return new VoidApiResponse(response);
185
178
  }
186
179
  /**
187
180
  * Permanently removes the specified custom field.
188
181
  * Delete a specific custom field by its ID
189
182
  */
190
- deleteCustomFieldById(requestParameters, initOverrides) {
191
- return __awaiter(this, void 0, void 0, function* () {
192
- yield this.deleteCustomFieldByIdRaw(requestParameters, initOverrides);
193
- });
183
+ async deleteCustomFieldById(requestParameters, initOverrides) {
184
+ await this.deleteCustomFieldByIdRaw(requestParameters, initOverrides);
194
185
  }
195
186
  /**
196
187
  * Returns a custom field by its unique identifier.
197
188
  * Retrieve a specific custom field by its ID
198
189
  */
199
- getCustomFieldByIdRaw(requestParameters, initOverrides) {
200
- return __awaiter(this, void 0, void 0, function* () {
201
- if (requestParameters.customFieldId === null || requestParameters.customFieldId === undefined) {
202
- throw new RequiredError('customFieldId', 'Required parameter requestParameters.customFieldId was null or undefined when calling getCustomFieldById.');
203
- }
204
- const queryParameters = {};
205
- const headerParameters = {};
206
- if (this.configuration && this.configuration.accessToken) {
207
- const token = this.configuration.accessToken;
208
- const tokenString = yield token("bearerAuth", []);
209
- if (tokenString) {
210
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
211
- }
190
+ async getCustomFieldByIdRaw(requestParameters, initOverrides) {
191
+ if (requestParameters.customFieldId === null || requestParameters.customFieldId === undefined) {
192
+ throw new RequiredError('customFieldId', 'Required parameter requestParameters.customFieldId was null or undefined when calling getCustomFieldById.');
193
+ }
194
+ const queryParameters = {};
195
+ const headerParameters = {};
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = await token("bearerAuth", []);
199
+ if (tokenString) {
200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
212
201
  }
213
- const response = yield this.request({
214
- path: `/custom/fields/{customFieldId}`.replace(`{${"customFieldId"}}`, encodeURIComponent(String(requestParameters.customFieldId))),
215
- method: 'GET',
216
- headers: headerParameters,
217
- query: queryParameters,
218
- }, initOverrides);
219
- return new JSONApiResponse(response, (jsonValue) => CustomFieldFromJSON(jsonValue));
220
- });
202
+ }
203
+ const response = await this.request({
204
+ path: `/custom/fields/{customFieldId}`.replace(`{${"customFieldId"}}`, encodeURIComponent(String(requestParameters.customFieldId))),
205
+ method: 'GET',
206
+ headers: headerParameters,
207
+ query: queryParameters,
208
+ }, initOverrides);
209
+ return new JSONApiResponse(response, (jsonValue) => CustomFieldFromJSON(jsonValue));
221
210
  }
222
211
  /**
223
212
  * Returns a custom field by its unique identifier.
224
213
  * Retrieve a specific custom field by its ID
225
214
  */
226
- getCustomFieldById(requestParameters, initOverrides) {
227
- return __awaiter(this, void 0, void 0, function* () {
228
- const response = yield this.getCustomFieldByIdRaw(requestParameters, initOverrides);
229
- return yield response.value();
230
- });
215
+ async getCustomFieldById(requestParameters, initOverrides) {
216
+ const response = await this.getCustomFieldByIdRaw(requestParameters, initOverrides);
217
+ return await response.value();
231
218
  }
232
219
  /**
233
220
  * Returns the custom fields for the specified environment.
234
221
  * Get custom fields for the environment
235
222
  */
236
- getCustomFieldsForEnvironmentRaw(requestParameters, initOverrides) {
237
- return __awaiter(this, void 0, void 0, function* () {
238
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
239
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCustomFieldsForEnvironment.');
223
+ async getCustomFieldsForEnvironmentRaw(requestParameters, initOverrides) {
224
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
225
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCustomFieldsForEnvironment.');
226
+ }
227
+ const queryParameters = {};
228
+ const headerParameters = {};
229
+ if (this.configuration && this.configuration.accessToken) {
230
+ const token = this.configuration.accessToken;
231
+ const tokenString = await token("bearerAuth", []);
232
+ if (tokenString) {
233
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
240
234
  }
241
- const queryParameters = {};
242
- const headerParameters = {};
243
- if (this.configuration && this.configuration.accessToken) {
244
- const token = this.configuration.accessToken;
245
- const tokenString = yield token("bearerAuth", []);
246
- if (tokenString) {
247
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
248
- }
249
- }
250
- const response = yield this.request({
251
- path: `/environments/{environmentId}/custom/fields`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
252
- method: 'GET',
253
- headers: headerParameters,
254
- query: queryParameters,
255
- }, initOverrides);
256
- return new JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomFieldFromJSON));
257
- });
235
+ }
236
+ const response = await this.request({
237
+ path: `/environments/{environmentId}/custom/fields`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
238
+ method: 'GET',
239
+ headers: headerParameters,
240
+ query: queryParameters,
241
+ }, initOverrides);
242
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomFieldFromJSON));
258
243
  }
259
244
  /**
260
245
  * Returns the custom fields for the specified environment.
261
246
  * Get custom fields for the environment
262
247
  */
263
- getCustomFieldsForEnvironment(requestParameters, initOverrides) {
264
- return __awaiter(this, void 0, void 0, function* () {
265
- const response = yield this.getCustomFieldsForEnvironmentRaw(requestParameters, initOverrides);
266
- return yield response.value();
267
- });
248
+ async getCustomFieldsForEnvironment(requestParameters, initOverrides) {
249
+ const response = await this.getCustomFieldsForEnvironmentRaw(requestParameters, initOverrides);
250
+ return await response.value();
268
251
  }
269
252
  /**
270
253
  * Updates the specified custom field.
271
254
  * Update an existing custom field by its ID
272
255
  */
273
- updateCustomFieldByIdRaw(requestParameters, initOverrides) {
274
- return __awaiter(this, void 0, void 0, function* () {
275
- if (requestParameters.customFieldId === null || requestParameters.customFieldId === undefined) {
276
- throw new RequiredError('customFieldId', 'Required parameter requestParameters.customFieldId was null or undefined when calling updateCustomFieldById.');
277
- }
278
- if (requestParameters.customFieldRequest === null || requestParameters.customFieldRequest === undefined) {
279
- throw new RequiredError('customFieldRequest', 'Required parameter requestParameters.customFieldRequest was null or undefined when calling updateCustomFieldById.');
280
- }
281
- const queryParameters = {};
282
- const headerParameters = {};
283
- headerParameters['Content-Type'] = 'application/json';
284
- if (this.configuration && this.configuration.accessToken) {
285
- const token = this.configuration.accessToken;
286
- const tokenString = yield token("bearerAuth", []);
287
- if (tokenString) {
288
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
- }
256
+ async updateCustomFieldByIdRaw(requestParameters, initOverrides) {
257
+ if (requestParameters.customFieldId === null || requestParameters.customFieldId === undefined) {
258
+ throw new RequiredError('customFieldId', 'Required parameter requestParameters.customFieldId was null or undefined when calling updateCustomFieldById.');
259
+ }
260
+ if (requestParameters.customFieldRequest === null || requestParameters.customFieldRequest === undefined) {
261
+ throw new RequiredError('customFieldRequest', 'Required parameter requestParameters.customFieldRequest was null or undefined when calling updateCustomFieldById.');
262
+ }
263
+ const queryParameters = {};
264
+ const headerParameters = {};
265
+ headerParameters['Content-Type'] = 'application/json';
266
+ if (this.configuration && this.configuration.accessToken) {
267
+ const token = this.configuration.accessToken;
268
+ const tokenString = await token("bearerAuth", []);
269
+ if (tokenString) {
270
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
290
271
  }
291
- const response = yield this.request({
292
- path: `/custom/fields/{customFieldId}`.replace(`{${"customFieldId"}}`, encodeURIComponent(String(requestParameters.customFieldId))),
293
- method: 'PUT',
294
- headers: headerParameters,
295
- query: queryParameters,
296
- body: CustomFieldRequestToJSON(requestParameters.customFieldRequest),
297
- }, initOverrides);
298
- return new JSONApiResponse(response, (jsonValue) => CustomFieldFromJSON(jsonValue));
299
- });
272
+ }
273
+ const response = await this.request({
274
+ path: `/custom/fields/{customFieldId}`.replace(`{${"customFieldId"}}`, encodeURIComponent(String(requestParameters.customFieldId))),
275
+ method: 'PUT',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ body: CustomFieldRequestToJSON(requestParameters.customFieldRequest),
279
+ }, initOverrides);
280
+ return new JSONApiResponse(response, (jsonValue) => CustomFieldFromJSON(jsonValue));
300
281
  }
301
282
  /**
302
283
  * Updates the specified custom field.
303
284
  * Update an existing custom field by its ID
304
285
  */
305
- updateCustomFieldById(requestParameters, initOverrides) {
306
- return __awaiter(this, void 0, void 0, function* () {
307
- const response = yield this.updateCustomFieldByIdRaw(requestParameters, initOverrides);
308
- return yield response.value();
309
- });
286
+ async updateCustomFieldById(requestParameters, initOverrides) {
287
+ const response = await this.updateCustomFieldByIdRaw(requestParameters, initOverrides);
288
+ return await response.value();
310
289
  }
311
290
  }
312
291
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _tslib = require('../../_virtual/_tslib.cjs');
6
5
  var runtime = require('../runtime.cjs');
7
6
  require('../models/AccessOutcomeEnum.cjs');
8
7
  require('../models/ExchangeKeyEnum.cjs');
@@ -123,98 +122,86 @@ class CustomHostnamesApi extends runtime.BaseAPI {
123
122
  * Creates a new custom hostname for the specified environment.
124
123
  * Create a custom hostname for the environment
125
124
  */
126
- createCustomHostnameRaw(requestParameters, initOverrides) {
127
- return _tslib.__awaiter(this, void 0, void 0, function* () {
128
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
129
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createCustomHostname.');
130
- }
131
- if (requestParameters.customHostnameCreateRequest === null || requestParameters.customHostnameCreateRequest === undefined) {
132
- throw new runtime.RequiredError('customHostnameCreateRequest', 'Required parameter requestParameters.customHostnameCreateRequest was null or undefined when calling createCustomHostname.');
133
- }
134
- const queryParameters = {};
135
- const headerParameters = {};
136
- headerParameters['Content-Type'] = 'application/json';
137
- const response = yield this.request({
138
- path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
139
- method: 'POST',
140
- headers: headerParameters,
141
- query: queryParameters,
142
- body: CustomHostnameCreateRequest.CustomHostnameCreateRequestToJSON(requestParameters.customHostnameCreateRequest),
143
- }, initOverrides);
144
- return new runtime.JSONApiResponse(response, (jsonValue) => CustomHostname.CustomHostnameFromJSON(jsonValue));
145
- });
125
+ async createCustomHostnameRaw(requestParameters, initOverrides) {
126
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
127
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createCustomHostname.');
128
+ }
129
+ if (requestParameters.customHostnameCreateRequest === null || requestParameters.customHostnameCreateRequest === undefined) {
130
+ throw new runtime.RequiredError('customHostnameCreateRequest', 'Required parameter requestParameters.customHostnameCreateRequest was null or undefined when calling createCustomHostname.');
131
+ }
132
+ const queryParameters = {};
133
+ const headerParameters = {};
134
+ headerParameters['Content-Type'] = 'application/json';
135
+ const response = await this.request({
136
+ path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
137
+ method: 'POST',
138
+ headers: headerParameters,
139
+ query: queryParameters,
140
+ body: CustomHostnameCreateRequest.CustomHostnameCreateRequestToJSON(requestParameters.customHostnameCreateRequest),
141
+ }, initOverrides);
142
+ return new runtime.JSONApiResponse(response, (jsonValue) => CustomHostname.CustomHostnameFromJSON(jsonValue));
146
143
  }
147
144
  /**
148
145
  * Creates a new custom hostname for the specified environment.
149
146
  * Create a custom hostname for the environment
150
147
  */
151
- createCustomHostname(requestParameters, initOverrides) {
152
- return _tslib.__awaiter(this, void 0, void 0, function* () {
153
- const response = yield this.createCustomHostnameRaw(requestParameters, initOverrides);
154
- return yield response.value();
155
- });
148
+ async createCustomHostname(requestParameters, initOverrides) {
149
+ const response = await this.createCustomHostnameRaw(requestParameters, initOverrides);
150
+ return await response.value();
156
151
  }
157
152
  /**
158
153
  * Permanently removes the specified custom hostname.
159
154
  * Delete the custom hostname
160
155
  */
161
- deleteCustomHostnameRaw(requestParameters, initOverrides) {
162
- return _tslib.__awaiter(this, void 0, void 0, function* () {
163
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
164
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteCustomHostname.');
165
- }
166
- if (requestParameters.customHostnameId === null || requestParameters.customHostnameId === undefined) {
167
- throw new runtime.RequiredError('customHostnameId', 'Required parameter requestParameters.customHostnameId was null or undefined when calling deleteCustomHostname.');
168
- }
169
- const queryParameters = {};
170
- const headerParameters = {};
171
- const response = yield this.request({
172
- path: `/environments/{environmentId}/custom/hostnames/{customHostnameId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"customHostnameId"}}`, encodeURIComponent(String(requestParameters.customHostnameId))),
173
- method: 'DELETE',
174
- headers: headerParameters,
175
- query: queryParameters,
176
- }, initOverrides);
177
- return new runtime.VoidApiResponse(response);
178
- });
156
+ async deleteCustomHostnameRaw(requestParameters, initOverrides) {
157
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
158
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteCustomHostname.');
159
+ }
160
+ if (requestParameters.customHostnameId === null || requestParameters.customHostnameId === undefined) {
161
+ throw new runtime.RequiredError('customHostnameId', 'Required parameter requestParameters.customHostnameId was null or undefined when calling deleteCustomHostname.');
162
+ }
163
+ const queryParameters = {};
164
+ const headerParameters = {};
165
+ const response = await this.request({
166
+ path: `/environments/{environmentId}/custom/hostnames/{customHostnameId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"customHostnameId"}}`, encodeURIComponent(String(requestParameters.customHostnameId))),
167
+ method: 'DELETE',
168
+ headers: headerParameters,
169
+ query: queryParameters,
170
+ }, initOverrides);
171
+ return new runtime.VoidApiResponse(response);
179
172
  }
180
173
  /**
181
174
  * Permanently removes the specified custom hostname.
182
175
  * Delete the custom hostname
183
176
  */
184
- deleteCustomHostname(requestParameters, initOverrides) {
185
- return _tslib.__awaiter(this, void 0, void 0, function* () {
186
- yield this.deleteCustomHostnameRaw(requestParameters, initOverrides);
187
- });
177
+ async deleteCustomHostname(requestParameters, initOverrides) {
178
+ await this.deleteCustomHostnameRaw(requestParameters, initOverrides);
188
179
  }
189
180
  /**
190
181
  * Returns all custom hostnames for the specified environment.
191
182
  * Get the custom hostnames for this environment
192
183
  */
193
- getCustomHostnamesRaw(requestParameters, initOverrides) {
194
- return _tslib.__awaiter(this, void 0, void 0, function* () {
195
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
196
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCustomHostnames.');
197
- }
198
- const queryParameters = {};
199
- const headerParameters = {};
200
- const response = yield this.request({
201
- path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
202
- method: 'GET',
203
- headers: headerParameters,
204
- query: queryParameters,
205
- }, initOverrides);
206
- return new runtime.JSONApiResponse(response, (jsonValue) => CustomHostnamesResponse.CustomHostnamesResponseFromJSON(jsonValue));
207
- });
184
+ async getCustomHostnamesRaw(requestParameters, initOverrides) {
185
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
186
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCustomHostnames.');
187
+ }
188
+ const queryParameters = {};
189
+ const headerParameters = {};
190
+ const response = await this.request({
191
+ path: `/environments/{environmentId}/custom/hostnames`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
192
+ method: 'GET',
193
+ headers: headerParameters,
194
+ query: queryParameters,
195
+ }, initOverrides);
196
+ return new runtime.JSONApiResponse(response, (jsonValue) => CustomHostnamesResponse.CustomHostnamesResponseFromJSON(jsonValue));
208
197
  }
209
198
  /**
210
199
  * Returns all custom hostnames for the specified environment.
211
200
  * Get the custom hostnames for this environment
212
201
  */
213
- getCustomHostnames(requestParameters, initOverrides) {
214
- return _tslib.__awaiter(this, void 0, void 0, function* () {
215
- const response = yield this.getCustomHostnamesRaw(requestParameters, initOverrides);
216
- return yield response.value();
217
- });
202
+ async getCustomHostnames(requestParameters, initOverrides) {
203
+ const response = await this.getCustomHostnamesRaw(requestParameters, initOverrides);
204
+ return await response.value();
218
205
  }
219
206
  }
220
207