@teemill/platform 0.21.0 → 0.22.1

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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.21.0
7
+ * The version of the OpenAPI document: 0.22.1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -97,19 +97,6 @@ export interface ApiError {
97
97
  */
98
98
  'message': string;
99
99
  }
100
- /**
101
- *
102
- * @export
103
- * @interface AuthorizeStripe200Response
104
- */
105
- export interface AuthorizeStripe200Response {
106
- /**
107
- * The URL to redirect to
108
- * @type {string}
109
- * @memberof AuthorizeStripe200Response
110
- */
111
- 'redirect_url': string;
112
- }
113
100
  /**
114
101
  *
115
102
  * @export
@@ -173,6 +160,19 @@ export interface Coupon {
173
160
  */
174
161
  'code': string;
175
162
  }
163
+ /**
164
+ *
165
+ * @export
166
+ * @interface CreateDomainRequest
167
+ */
168
+ export interface CreateDomainRequest {
169
+ /**
170
+ *
171
+ * @type {string}
172
+ * @memberof CreateDomainRequest
173
+ */
174
+ 'domain'?: string;
175
+ }
176
176
  /**
177
177
  * The customer that has placed an order on your platform
178
178
  * @export
@@ -260,6 +260,37 @@ export interface DeliveryEstimates {
260
260
  */
261
261
  'max'?: string;
262
262
  }
263
+ /**
264
+ *
265
+ * @export
266
+ * @interface Domain
267
+ */
268
+ export interface Domain {
269
+ /**
270
+ *
271
+ * @type {number}
272
+ * @memberof Domain
273
+ */
274
+ 'id': number;
275
+ /**
276
+ *
277
+ * @type {string}
278
+ * @memberof Domain
279
+ */
280
+ 'name': string;
281
+ /**
282
+ *
283
+ * @type {number}
284
+ * @memberof Domain
285
+ */
286
+ 'priority': number;
287
+ /**
288
+ *
289
+ * @type {string}
290
+ * @memberof Domain
291
+ */
292
+ 'enabledAt': string | null;
293
+ }
263
294
  /**
264
295
  *
265
296
  * @export
@@ -562,6 +593,38 @@ export interface Image {
562
593
  */
563
594
  'sortOrder'?: number;
564
595
  }
596
+ /**
597
+ *
598
+ * @export
599
+ * @interface InlineObject
600
+ */
601
+ export interface InlineObject {
602
+ /**
603
+ *
604
+ * @type {Array<Domain>}
605
+ * @memberof InlineObject
606
+ */
607
+ 'domains'?: Array<Domain>;
608
+ /**
609
+ *
610
+ * @type {number}
611
+ * @memberof InlineObject
612
+ */
613
+ 'nextPageToken'?: number;
614
+ }
615
+ /**
616
+ *
617
+ * @export
618
+ * @interface InlineObject1
619
+ */
620
+ export interface InlineObject1 {
621
+ /**
622
+ * The URL to redirect to
623
+ * @type {string}
624
+ * @memberof InlineObject1
625
+ */
626
+ 'redirect_url': string;
627
+ }
565
628
  /**
566
629
  *
567
630
  * @export
@@ -3799,7 +3862,7 @@ export const PaymentApiFp = function(configuration?: Configuration) {
3799
3862
  * @param {*} [options] Override http request option.
3800
3863
  * @throws {RequiredError}
3801
3864
  */
3802
- async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthorizeStripe200Response>> {
3865
+ async authorizeStripe(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject1>> {
3803
3866
  const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeStripe(project, options);
3804
3867
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3805
3868
  const localVarOperationServerBasePath = operationServerMap['PaymentApi.authorizeStripe']?.[localVarOperationServerIndex]?.url;
@@ -3848,7 +3911,7 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
3848
3911
  * @param {*} [options] Override http request option.
3849
3912
  * @throws {RequiredError}
3850
3913
  */
3851
- authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthorizeStripe200Response> {
3914
+ authorizeStripe(requestParameters: PaymentApiAuthorizeStripeRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject1> {
3852
3915
  return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
3853
3916
  },
3854
3917
  /**
@@ -3968,6 +4031,198 @@ export class PaymentApi extends BaseAPI {
3968
4031
  */
3969
4032
  export const PlatformApiAxiosParamCreator = function (configuration?: Configuration) {
3970
4033
  return {
4034
+ /**
4035
+ * Create a new client platform domain
4036
+ * @summary Create a platform client domain
4037
+ * @param {string} project Project unique identifier
4038
+ * @param {CreateDomainRequest} [createDomainRequest]
4039
+ * @param {*} [options] Override http request option.
4040
+ * @throws {RequiredError}
4041
+ */
4042
+ createClientDomain: async (project: string, createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4043
+ // verify required parameter 'project' is not null or undefined
4044
+ assertParamExists('createClientDomain', 'project', project)
4045
+ const localVarPath = `/v1/platform/clients/domains`;
4046
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4047
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4048
+ let baseOptions;
4049
+ if (configuration) {
4050
+ baseOptions = configuration.baseOptions;
4051
+ }
4052
+
4053
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4054
+ const localVarHeaderParameter = {} as any;
4055
+ const localVarQueryParameter = {} as any;
4056
+
4057
+ // authentication session-oauth required
4058
+ // oauth required
4059
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4060
+
4061
+ // authentication api-key required
4062
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4063
+
4064
+ if (project !== undefined) {
4065
+ localVarQueryParameter['project'] = project;
4066
+ }
4067
+
4068
+
4069
+
4070
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4071
+
4072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4074
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4075
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
4076
+
4077
+ return {
4078
+ url: toPathString(localVarUrlObj),
4079
+ options: localVarRequestOptions,
4080
+ };
4081
+ },
4082
+ /**
4083
+ * Create a new platform domain
4084
+ * @summary Create a platform domain
4085
+ * @param {string} project Project unique identifier
4086
+ * @param {CreateDomainRequest} [createDomainRequest]
4087
+ * @param {*} [options] Override http request option.
4088
+ * @throws {RequiredError}
4089
+ */
4090
+ createDomain: async (project: string, createDomainRequest?: CreateDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4091
+ // verify required parameter 'project' is not null or undefined
4092
+ assertParamExists('createDomain', 'project', project)
4093
+ const localVarPath = `/v1/platform/domains`;
4094
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4095
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4096
+ let baseOptions;
4097
+ if (configuration) {
4098
+ baseOptions = configuration.baseOptions;
4099
+ }
4100
+
4101
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4102
+ const localVarHeaderParameter = {} as any;
4103
+ const localVarQueryParameter = {} as any;
4104
+
4105
+ // authentication session-oauth required
4106
+ // oauth required
4107
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4108
+
4109
+ // authentication api-key required
4110
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4111
+
4112
+ if (project !== undefined) {
4113
+ localVarQueryParameter['project'] = project;
4114
+ }
4115
+
4116
+
4117
+
4118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4119
+
4120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4123
+ localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration)
4124
+
4125
+ return {
4126
+ url: toPathString(localVarUrlObj),
4127
+ options: localVarRequestOptions,
4128
+ };
4129
+ },
4130
+ /**
4131
+ * Delete an existing client platform domain
4132
+ * @summary Delete a platform client domain
4133
+ * @param {string} project Project unique identifier
4134
+ * @param {string} domain The domain identifier
4135
+ * @param {*} [options] Override http request option.
4136
+ * @throws {RequiredError}
4137
+ */
4138
+ deleteClientDomain: async (project: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4139
+ // verify required parameter 'project' is not null or undefined
4140
+ assertParamExists('deleteClientDomain', 'project', project)
4141
+ // verify required parameter 'domain' is not null or undefined
4142
+ assertParamExists('deleteClientDomain', 'domain', domain)
4143
+ const localVarPath = `/v1/platform/clients/domains/{domain}`
4144
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4147
+ let baseOptions;
4148
+ if (configuration) {
4149
+ baseOptions = configuration.baseOptions;
4150
+ }
4151
+
4152
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4153
+ const localVarHeaderParameter = {} as any;
4154
+ const localVarQueryParameter = {} as any;
4155
+
4156
+ // authentication session-oauth required
4157
+ // oauth required
4158
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4159
+
4160
+ // authentication api-key required
4161
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4162
+
4163
+ if (project !== undefined) {
4164
+ localVarQueryParameter['project'] = project;
4165
+ }
4166
+
4167
+
4168
+
4169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4172
+
4173
+ return {
4174
+ url: toPathString(localVarUrlObj),
4175
+ options: localVarRequestOptions,
4176
+ };
4177
+ },
4178
+ /**
4179
+ * Delete an existing platform domain
4180
+ * @summary Delete a platform domain
4181
+ * @param {string} project Project unique identifier
4182
+ * @param {string} domain The domain identifier
4183
+ * @param {*} [options] Override http request option.
4184
+ * @throws {RequiredError}
4185
+ */
4186
+ deleteDomain: async (project: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4187
+ // verify required parameter 'project' is not null or undefined
4188
+ assertParamExists('deleteDomain', 'project', project)
4189
+ // verify required parameter 'domain' is not null or undefined
4190
+ assertParamExists('deleteDomain', 'domain', domain)
4191
+ const localVarPath = `/v1/platform/domains/{domain}`
4192
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4195
+ let baseOptions;
4196
+ if (configuration) {
4197
+ baseOptions = configuration.baseOptions;
4198
+ }
4199
+
4200
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4201
+ const localVarHeaderParameter = {} as any;
4202
+ const localVarQueryParameter = {} as any;
4203
+
4204
+ // authentication session-oauth required
4205
+ // oauth required
4206
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4207
+
4208
+ // authentication api-key required
4209
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4210
+
4211
+ if (project !== undefined) {
4212
+ localVarQueryParameter['project'] = project;
4213
+ }
4214
+
4215
+
4216
+
4217
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4219
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4220
+
4221
+ return {
4222
+ url: toPathString(localVarUrlObj),
4223
+ options: localVarRequestOptions,
4224
+ };
4225
+ },
3971
4226
  /**
3972
4227
  *
3973
4228
  * @summary Get platform details
@@ -4003,6 +4258,94 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
4003
4258
 
4004
4259
 
4005
4260
 
4261
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4262
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4263
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4264
+
4265
+ return {
4266
+ url: toPathString(localVarUrlObj),
4267
+ options: localVarRequestOptions,
4268
+ };
4269
+ },
4270
+ /**
4271
+ * List the client domains attached to a platform
4272
+ * @summary List platform client domains
4273
+ * @param {string} project Project unique identifier
4274
+ * @param {*} [options] Override http request option.
4275
+ * @throws {RequiredError}
4276
+ */
4277
+ listClientDomains: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4278
+ // verify required parameter 'project' is not null or undefined
4279
+ assertParamExists('listClientDomains', 'project', project)
4280
+ const localVarPath = `/v1/platform/clients/domains`;
4281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4283
+ let baseOptions;
4284
+ if (configuration) {
4285
+ baseOptions = configuration.baseOptions;
4286
+ }
4287
+
4288
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4289
+ const localVarHeaderParameter = {} as any;
4290
+ const localVarQueryParameter = {} as any;
4291
+
4292
+ // authentication session-oauth required
4293
+ // oauth required
4294
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4295
+
4296
+ // authentication api-key required
4297
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4298
+
4299
+ if (project !== undefined) {
4300
+ localVarQueryParameter['project'] = project;
4301
+ }
4302
+
4303
+
4304
+
4305
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4306
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4307
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4308
+
4309
+ return {
4310
+ url: toPathString(localVarUrlObj),
4311
+ options: localVarRequestOptions,
4312
+ };
4313
+ },
4314
+ /**
4315
+ * List the domains attached to a platform
4316
+ * @summary List platform domains
4317
+ * @param {string} project Project unique identifier
4318
+ * @param {*} [options] Override http request option.
4319
+ * @throws {RequiredError}
4320
+ */
4321
+ listDomains: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4322
+ // verify required parameter 'project' is not null or undefined
4323
+ assertParamExists('listDomains', 'project', project)
4324
+ const localVarPath = `/v1/platform/domains`;
4325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4326
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4327
+ let baseOptions;
4328
+ if (configuration) {
4329
+ baseOptions = configuration.baseOptions;
4330
+ }
4331
+
4332
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4333
+ const localVarHeaderParameter = {} as any;
4334
+ const localVarQueryParameter = {} as any;
4335
+
4336
+ // authentication session-oauth required
4337
+ // oauth required
4338
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
4339
+
4340
+ // authentication api-key required
4341
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4342
+
4343
+ if (project !== undefined) {
4344
+ localVarQueryParameter['project'] = project;
4345
+ }
4346
+
4347
+
4348
+
4006
4349
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4007
4350
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4008
4351
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4072,6 +4415,62 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
4072
4415
  export const PlatformApiFp = function(configuration?: Configuration) {
4073
4416
  const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
4074
4417
  return {
4418
+ /**
4419
+ * Create a new client platform domain
4420
+ * @summary Create a platform client domain
4421
+ * @param {string} project Project unique identifier
4422
+ * @param {CreateDomainRequest} [createDomainRequest]
4423
+ * @param {*} [options] Override http request option.
4424
+ * @throws {RequiredError}
4425
+ */
4426
+ async createClientDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
4427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClientDomain(project, createDomainRequest, options);
4428
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4429
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.createClientDomain']?.[localVarOperationServerIndex]?.url;
4430
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4431
+ },
4432
+ /**
4433
+ * Create a new platform domain
4434
+ * @summary Create a platform domain
4435
+ * @param {string} project Project unique identifier
4436
+ * @param {CreateDomainRequest} [createDomainRequest]
4437
+ * @param {*} [options] Override http request option.
4438
+ * @throws {RequiredError}
4439
+ */
4440
+ async createDomain(project: string, createDomainRequest?: CreateDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Domain>> {
4441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDomain(project, createDomainRequest, options);
4442
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4443
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.createDomain']?.[localVarOperationServerIndex]?.url;
4444
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4445
+ },
4446
+ /**
4447
+ * Delete an existing client platform domain
4448
+ * @summary Delete a platform client domain
4449
+ * @param {string} project Project unique identifier
4450
+ * @param {string} domain The domain identifier
4451
+ * @param {*} [options] Override http request option.
4452
+ * @throws {RequiredError}
4453
+ */
4454
+ async deleteClientDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4455
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClientDomain(project, domain, options);
4456
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4457
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.deleteClientDomain']?.[localVarOperationServerIndex]?.url;
4458
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4459
+ },
4460
+ /**
4461
+ * Delete an existing platform domain
4462
+ * @summary Delete a platform domain
4463
+ * @param {string} project Project unique identifier
4464
+ * @param {string} domain The domain identifier
4465
+ * @param {*} [options] Override http request option.
4466
+ * @throws {RequiredError}
4467
+ */
4468
+ async deleteDomain(project: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDomain(project, domain, options);
4470
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4471
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.deleteDomain']?.[localVarOperationServerIndex]?.url;
4472
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4473
+ },
4075
4474
  /**
4076
4475
  *
4077
4476
  * @summary Get platform details
@@ -4085,6 +4484,32 @@ export const PlatformApiFp = function(configuration?: Configuration) {
4085
4484
  const localVarOperationServerBasePath = operationServerMap['PlatformApi.getPlatform']?.[localVarOperationServerIndex]?.url;
4086
4485
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4087
4486
  },
4487
+ /**
4488
+ * List the client domains attached to a platform
4489
+ * @summary List platform client domains
4490
+ * @param {string} project Project unique identifier
4491
+ * @param {*} [options] Override http request option.
4492
+ * @throws {RequiredError}
4493
+ */
4494
+ async listClientDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
4495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClientDomains(project, options);
4496
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4497
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.listClientDomains']?.[localVarOperationServerIndex]?.url;
4498
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4499
+ },
4500
+ /**
4501
+ * List the domains attached to a platform
4502
+ * @summary List platform domains
4503
+ * @param {string} project Project unique identifier
4504
+ * @param {*} [options] Override http request option.
4505
+ * @throws {RequiredError}
4506
+ */
4507
+ async listDomains(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineObject>> {
4508
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDomains(project, options);
4509
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4510
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.listDomains']?.[localVarOperationServerIndex]?.url;
4511
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4512
+ },
4088
4513
  /**
4089
4514
  *
4090
4515
  * @summary Update platform
@@ -4109,6 +4534,46 @@ export const PlatformApiFp = function(configuration?: Configuration) {
4109
4534
  export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4110
4535
  const localVarFp = PlatformApiFp(configuration)
4111
4536
  return {
4537
+ /**
4538
+ * Create a new client platform domain
4539
+ * @summary Create a platform client domain
4540
+ * @param {PlatformApiCreateClientDomainRequest} requestParameters Request parameters.
4541
+ * @param {*} [options] Override http request option.
4542
+ * @throws {RequiredError}
4543
+ */
4544
+ createClientDomain(requestParameters: PlatformApiCreateClientDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
4545
+ return localVarFp.createClientDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
4546
+ },
4547
+ /**
4548
+ * Create a new platform domain
4549
+ * @summary Create a platform domain
4550
+ * @param {PlatformApiCreateDomainRequest} requestParameters Request parameters.
4551
+ * @param {*} [options] Override http request option.
4552
+ * @throws {RequiredError}
4553
+ */
4554
+ createDomain(requestParameters: PlatformApiCreateDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<Domain> {
4555
+ return localVarFp.createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
4556
+ },
4557
+ /**
4558
+ * Delete an existing client platform domain
4559
+ * @summary Delete a platform client domain
4560
+ * @param {PlatformApiDeleteClientDomainRequest} requestParameters Request parameters.
4561
+ * @param {*} [options] Override http request option.
4562
+ * @throws {RequiredError}
4563
+ */
4564
+ deleteClientDomain(requestParameters: PlatformApiDeleteClientDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4565
+ return localVarFp.deleteClientDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
4566
+ },
4567
+ /**
4568
+ * Delete an existing platform domain
4569
+ * @summary Delete a platform domain
4570
+ * @param {PlatformApiDeleteDomainRequest} requestParameters Request parameters.
4571
+ * @param {*} [options] Override http request option.
4572
+ * @throws {RequiredError}
4573
+ */
4574
+ deleteDomain(requestParameters: PlatformApiDeleteDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4575
+ return localVarFp.deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(axios, basePath));
4576
+ },
4112
4577
  /**
4113
4578
  *
4114
4579
  * @summary Get platform details
@@ -4119,6 +4584,26 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
4119
4584
  getPlatform(requestParameters: PlatformApiGetPlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
4120
4585
  return localVarFp.getPlatform(requestParameters.project, options).then((request) => request(axios, basePath));
4121
4586
  },
4587
+ /**
4588
+ * List the client domains attached to a platform
4589
+ * @summary List platform client domains
4590
+ * @param {PlatformApiListClientDomainsRequest} requestParameters Request parameters.
4591
+ * @param {*} [options] Override http request option.
4592
+ * @throws {RequiredError}
4593
+ */
4594
+ listClientDomains(requestParameters: PlatformApiListClientDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
4595
+ return localVarFp.listClientDomains(requestParameters.project, options).then((request) => request(axios, basePath));
4596
+ },
4597
+ /**
4598
+ * List the domains attached to a platform
4599
+ * @summary List platform domains
4600
+ * @param {PlatformApiListDomainsRequest} requestParameters Request parameters.
4601
+ * @param {*} [options] Override http request option.
4602
+ * @throws {RequiredError}
4603
+ */
4604
+ listDomains(requestParameters: PlatformApiListDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<InlineObject> {
4605
+ return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
4606
+ },
4122
4607
  /**
4123
4608
  *
4124
4609
  * @summary Update platform
@@ -4132,6 +4617,90 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
4132
4617
  };
4133
4618
  };
4134
4619
 
4620
+ /**
4621
+ * Request parameters for createClientDomain operation in PlatformApi.
4622
+ * @export
4623
+ * @interface PlatformApiCreateClientDomainRequest
4624
+ */
4625
+ export interface PlatformApiCreateClientDomainRequest {
4626
+ /**
4627
+ * Project unique identifier
4628
+ * @type {string}
4629
+ * @memberof PlatformApiCreateClientDomain
4630
+ */
4631
+ readonly project: string
4632
+
4633
+ /**
4634
+ *
4635
+ * @type {CreateDomainRequest}
4636
+ * @memberof PlatformApiCreateClientDomain
4637
+ */
4638
+ readonly createDomainRequest?: CreateDomainRequest
4639
+ }
4640
+
4641
+ /**
4642
+ * Request parameters for createDomain operation in PlatformApi.
4643
+ * @export
4644
+ * @interface PlatformApiCreateDomainRequest
4645
+ */
4646
+ export interface PlatformApiCreateDomainRequest {
4647
+ /**
4648
+ * Project unique identifier
4649
+ * @type {string}
4650
+ * @memberof PlatformApiCreateDomain
4651
+ */
4652
+ readonly project: string
4653
+
4654
+ /**
4655
+ *
4656
+ * @type {CreateDomainRequest}
4657
+ * @memberof PlatformApiCreateDomain
4658
+ */
4659
+ readonly createDomainRequest?: CreateDomainRequest
4660
+ }
4661
+
4662
+ /**
4663
+ * Request parameters for deleteClientDomain operation in PlatformApi.
4664
+ * @export
4665
+ * @interface PlatformApiDeleteClientDomainRequest
4666
+ */
4667
+ export interface PlatformApiDeleteClientDomainRequest {
4668
+ /**
4669
+ * Project unique identifier
4670
+ * @type {string}
4671
+ * @memberof PlatformApiDeleteClientDomain
4672
+ */
4673
+ readonly project: string
4674
+
4675
+ /**
4676
+ * The domain identifier
4677
+ * @type {string}
4678
+ * @memberof PlatformApiDeleteClientDomain
4679
+ */
4680
+ readonly domain: string
4681
+ }
4682
+
4683
+ /**
4684
+ * Request parameters for deleteDomain operation in PlatformApi.
4685
+ * @export
4686
+ * @interface PlatformApiDeleteDomainRequest
4687
+ */
4688
+ export interface PlatformApiDeleteDomainRequest {
4689
+ /**
4690
+ * Project unique identifier
4691
+ * @type {string}
4692
+ * @memberof PlatformApiDeleteDomain
4693
+ */
4694
+ readonly project: string
4695
+
4696
+ /**
4697
+ * The domain identifier
4698
+ * @type {string}
4699
+ * @memberof PlatformApiDeleteDomain
4700
+ */
4701
+ readonly domain: string
4702
+ }
4703
+
4135
4704
  /**
4136
4705
  * Request parameters for getPlatform operation in PlatformApi.
4137
4706
  * @export
@@ -4146,6 +4715,34 @@ export interface PlatformApiGetPlatformRequest {
4146
4715
  readonly project: string
4147
4716
  }
4148
4717
 
4718
+ /**
4719
+ * Request parameters for listClientDomains operation in PlatformApi.
4720
+ * @export
4721
+ * @interface PlatformApiListClientDomainsRequest
4722
+ */
4723
+ export interface PlatformApiListClientDomainsRequest {
4724
+ /**
4725
+ * Project unique identifier
4726
+ * @type {string}
4727
+ * @memberof PlatformApiListClientDomains
4728
+ */
4729
+ readonly project: string
4730
+ }
4731
+
4732
+ /**
4733
+ * Request parameters for listDomains operation in PlatformApi.
4734
+ * @export
4735
+ * @interface PlatformApiListDomainsRequest
4736
+ */
4737
+ export interface PlatformApiListDomainsRequest {
4738
+ /**
4739
+ * Project unique identifier
4740
+ * @type {string}
4741
+ * @memberof PlatformApiListDomains
4742
+ */
4743
+ readonly project: string
4744
+ }
4745
+
4149
4746
  /**
4150
4747
  * Request parameters for updatePlatform operation in PlatformApi.
4151
4748
  * @export
@@ -4174,6 +4771,54 @@ export interface PlatformApiUpdatePlatformRequest {
4174
4771
  * @extends {BaseAPI}
4175
4772
  */
4176
4773
  export class PlatformApi extends BaseAPI {
4774
+ /**
4775
+ * Create a new client platform domain
4776
+ * @summary Create a platform client domain
4777
+ * @param {PlatformApiCreateClientDomainRequest} requestParameters Request parameters.
4778
+ * @param {*} [options] Override http request option.
4779
+ * @throws {RequiredError}
4780
+ * @memberof PlatformApi
4781
+ */
4782
+ public createClientDomain(requestParameters: PlatformApiCreateClientDomainRequest, options?: RawAxiosRequestConfig) {
4783
+ return PlatformApiFp(this.configuration).createClientDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
4784
+ }
4785
+
4786
+ /**
4787
+ * Create a new platform domain
4788
+ * @summary Create a platform domain
4789
+ * @param {PlatformApiCreateDomainRequest} requestParameters Request parameters.
4790
+ * @param {*} [options] Override http request option.
4791
+ * @throws {RequiredError}
4792
+ * @memberof PlatformApi
4793
+ */
4794
+ public createDomain(requestParameters: PlatformApiCreateDomainRequest, options?: RawAxiosRequestConfig) {
4795
+ return PlatformApiFp(this.configuration).createDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
4796
+ }
4797
+
4798
+ /**
4799
+ * Delete an existing client platform domain
4800
+ * @summary Delete a platform client domain
4801
+ * @param {PlatformApiDeleteClientDomainRequest} requestParameters Request parameters.
4802
+ * @param {*} [options] Override http request option.
4803
+ * @throws {RequiredError}
4804
+ * @memberof PlatformApi
4805
+ */
4806
+ public deleteClientDomain(requestParameters: PlatformApiDeleteClientDomainRequest, options?: RawAxiosRequestConfig) {
4807
+ return PlatformApiFp(this.configuration).deleteClientDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
4808
+ }
4809
+
4810
+ /**
4811
+ * Delete an existing platform domain
4812
+ * @summary Delete a platform domain
4813
+ * @param {PlatformApiDeleteDomainRequest} requestParameters Request parameters.
4814
+ * @param {*} [options] Override http request option.
4815
+ * @throws {RequiredError}
4816
+ * @memberof PlatformApi
4817
+ */
4818
+ public deleteDomain(requestParameters: PlatformApiDeleteDomainRequest, options?: RawAxiosRequestConfig) {
4819
+ return PlatformApiFp(this.configuration).deleteDomain(requestParameters.project, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
4820
+ }
4821
+
4177
4822
  /**
4178
4823
  *
4179
4824
  * @summary Get platform details
@@ -4186,6 +4831,30 @@ export class PlatformApi extends BaseAPI {
4186
4831
  return PlatformApiFp(this.configuration).getPlatform(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4187
4832
  }
4188
4833
 
4834
+ /**
4835
+ * List the client domains attached to a platform
4836
+ * @summary List platform client domains
4837
+ * @param {PlatformApiListClientDomainsRequest} requestParameters Request parameters.
4838
+ * @param {*} [options] Override http request option.
4839
+ * @throws {RequiredError}
4840
+ * @memberof PlatformApi
4841
+ */
4842
+ public listClientDomains(requestParameters: PlatformApiListClientDomainsRequest, options?: RawAxiosRequestConfig) {
4843
+ return PlatformApiFp(this.configuration).listClientDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4844
+ }
4845
+
4846
+ /**
4847
+ * List the domains attached to a platform
4848
+ * @summary List platform domains
4849
+ * @param {PlatformApiListDomainsRequest} requestParameters Request parameters.
4850
+ * @param {*} [options] Override http request option.
4851
+ * @throws {RequiredError}
4852
+ * @memberof PlatformApi
4853
+ */
4854
+ public listDomains(requestParameters: PlatformApiListDomainsRequest, options?: RawAxiosRequestConfig) {
4855
+ return PlatformApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
4856
+ }
4857
+
4189
4858
  /**
4190
4859
  *
4191
4860
  * @summary Update platform