qovery-typescript-axios 1.1.1048 → 1.1.1050

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
@@ -12271,6 +12271,38 @@ export interface CustomDomain {
12271
12271
  }
12272
12272
 
12273
12273
 
12274
+ /**
12275
+ * A domain name to delete in an environment.
12276
+ * @export
12277
+ * @interface CustomDomainBulkDeleteItemRequest
12278
+ */
12279
+ export interface CustomDomainBulkDeleteItemRequest {
12280
+ /**
12281
+ * Id of the environment of the domain. It must belong to the organization of the call.
12282
+ * @type {string}
12283
+ * @memberof CustomDomainBulkDeleteItemRequest
12284
+ */
12285
+ 'environment_id': string;
12286
+ /**
12287
+ * The domain name. Every row of this name in the environment is deleted.
12288
+ * @type {string}
12289
+ * @memberof CustomDomainBulkDeleteItemRequest
12290
+ */
12291
+ 'domain': string;
12292
+ }
12293
+ /**
12294
+ *
12295
+ * @export
12296
+ * @interface CustomDomainDeletionResponse
12297
+ */
12298
+ export interface CustomDomainDeletionResponse {
12299
+ /**
12300
+ * The services that lost a custom domain. They need a redeploy to stop serving it.
12301
+ * @type {Array<ImpactedServiceResponse>}
12302
+ * @memberof CustomDomainDeletionResponse
12303
+ */
12304
+ 'impacted_services': Array<ImpactedServiceResponse>;
12305
+ }
12274
12306
  /**
12275
12307
  *
12276
12308
  * @export
@@ -12298,6 +12330,82 @@ export interface CustomDomainEnvironmentResponse {
12298
12330
  }
12299
12331
 
12300
12332
 
12333
+ /**
12334
+ * Why a service cannot hold the custom domain. * `PATH_ALREADY_ROUTED`: another service already routes this path on the domain. * `GRPC_HOSTNAME_SHARED`: a gRPC port would share the hostname; gRPC has no path selection. * `SETTINGS_MISMATCH`: `generate_certificate` or `use_cdn` differs from the other services on the domain. * `DOMAIN_IN_OTHER_ENVIRONMENT`: the name, or a hostname it serves, is already used in another environment of the organization. * `DOMAIN_ALREADY_ON_SERVICE`: the service already has this domain. * `ROUTING_MODE_NOT_SHAREABLE`: the domain is already used and the routing mode of the environment cannot share it.
12335
+ * @export
12336
+ * @enum {string}
12337
+ */
12338
+
12339
+ export const CustomDomainErrorCodeEnum = {
12340
+ PATH_ALREADY_ROUTED: 'PATH_ALREADY_ROUTED',
12341
+ GRPC_HOSTNAME_SHARED: 'GRPC_HOSTNAME_SHARED',
12342
+ SETTINGS_MISMATCH: 'SETTINGS_MISMATCH',
12343
+ DOMAIN_IN_OTHER_ENVIRONMENT: 'DOMAIN_IN_OTHER_ENVIRONMENT',
12344
+ DOMAIN_ALREADY_ON_SERVICE: 'DOMAIN_ALREADY_ON_SERVICE',
12345
+ ROUTING_MODE_NOT_SHAREABLE: 'ROUTING_MODE_NOT_SHAREABLE'
12346
+ } as const;
12347
+
12348
+ export type CustomDomainErrorCodeEnum = typeof CustomDomainErrorCodeEnum[keyof typeof CustomDomainErrorCodeEnum];
12349
+
12350
+
12351
+ /**
12352
+ * One reason a service cannot hold the custom domain, to show under the request field it blames.
12353
+ * @export
12354
+ * @interface CustomDomainErrorResponse
12355
+ */
12356
+ export interface CustomDomainErrorResponse {
12357
+ /**
12358
+ *
12359
+ * @type {CustomDomainErrorCodeEnum}
12360
+ * @memberof CustomDomainErrorResponse
12361
+ */
12362
+ 'code': CustomDomainErrorCodeEnum;
12363
+ /**
12364
+ * The request field to blame, named as on the wire, such as `domain`, `path`, `port_id`, `generate_certificate` or `use_cdn`.
12365
+ * @type {string}
12366
+ * @memberof CustomDomainErrorResponse
12367
+ */
12368
+ 'field': string;
12369
+ /**
12370
+ * The path in conflict. Null when the error is not about a path.
12371
+ * @type {string}
12372
+ * @memberof CustomDomainErrorResponse
12373
+ */
12374
+ 'path': string | null;
12375
+ /**
12376
+ * Id of the service of the request that cannot hold the domain.
12377
+ * @type {string}
12378
+ * @memberof CustomDomainErrorResponse
12379
+ */
12380
+ 'service_id': string;
12381
+ /**
12382
+ * The service of the same environment the domain conflicts with. Null when the conflict is with another environment, which the caller may not have access to.
12383
+ * @type {CustomDomainServiceResponse}
12384
+ * @memberof CustomDomainErrorResponse
12385
+ */
12386
+ 'conflicting_service': CustomDomainServiceResponse | null;
12387
+ /**
12388
+ * A message to show to the user.
12389
+ * @type {string}
12390
+ * @memberof CustomDomainErrorResponse
12391
+ */
12392
+ 'message': string;
12393
+ }
12394
+
12395
+
12396
+ /**
12397
+ *
12398
+ * @export
12399
+ * @interface CustomDomainErrorsResponse
12400
+ */
12401
+ export interface CustomDomainErrorsResponse {
12402
+ /**
12403
+ * Every conflict of the request. Empty when the domain can be saved.
12404
+ * @type {Array<CustomDomainErrorResponse>}
12405
+ * @memberof CustomDomainErrorsResponse
12406
+ */
12407
+ 'errors': Array<CustomDomainErrorResponse>;
12408
+ }
12301
12409
  /**
12302
12410
  *
12303
12411
  * @export
@@ -12323,6 +12431,49 @@ export interface CustomDomainPortResponse {
12323
12431
  */
12324
12432
  'internal_port': number;
12325
12433
  }
12434
+ /**
12435
+ * A problem detail (RFC 9457). `errors` is set when the custom domain conflicts with other domains.
12436
+ * @export
12437
+ * @interface CustomDomainProblemResponse
12438
+ */
12439
+ export interface CustomDomainProblemResponse {
12440
+ /**
12441
+ *
12442
+ * @type {string}
12443
+ * @memberof CustomDomainProblemResponse
12444
+ */
12445
+ 'type'?: string;
12446
+ /**
12447
+ *
12448
+ * @type {string}
12449
+ * @memberof CustomDomainProblemResponse
12450
+ */
12451
+ 'title'?: string;
12452
+ /**
12453
+ *
12454
+ * @type {number}
12455
+ * @memberof CustomDomainProblemResponse
12456
+ */
12457
+ 'status'?: number;
12458
+ /**
12459
+ * All the error messages, joined.
12460
+ * @type {string}
12461
+ * @memberof CustomDomainProblemResponse
12462
+ */
12463
+ 'detail'?: string;
12464
+ /**
12465
+ * The path of the request.
12466
+ * @type {string}
12467
+ * @memberof CustomDomainProblemResponse
12468
+ */
12469
+ 'instance'?: string;
12470
+ /**
12471
+ *
12472
+ * @type {Array<CustomDomainErrorResponse>}
12473
+ * @memberof CustomDomainProblemResponse
12474
+ */
12475
+ 'errors'?: Array<CustomDomainErrorResponse>;
12476
+ }
12326
12477
  /**
12327
12478
  *
12328
12479
  * @export
@@ -12423,6 +12574,27 @@ export interface CustomDomainRouteResponse {
12423
12574
  */
12424
12575
  'path_rewrite': string | null;
12425
12576
  }
12577
+ /**
12578
+ *
12579
+ * @export
12580
+ * @interface CustomDomainServiceRequest
12581
+ */
12582
+ export interface CustomDomainServiceRequest {
12583
+ /**
12584
+ * Id of the service. It must belong to the environment.
12585
+ * @type {string}
12586
+ * @memberof CustomDomainServiceRequest
12587
+ */
12588
+ 'id': string;
12589
+ /**
12590
+ * Type of the service. Only `APPLICATION`, `CONTAINER` and `HELM` services have custom domains.
12591
+ * @type {ServiceTypeEnum}
12592
+ * @memberof CustomDomainServiceRequest
12593
+ */
12594
+ 'type': ServiceTypeEnum;
12595
+ }
12596
+
12597
+
12426
12598
  /**
12427
12599
  *
12428
12600
  * @export
@@ -12463,6 +12635,43 @@ export const CustomDomainStatusEnum = {
12463
12635
  export type CustomDomainStatusEnum = typeof CustomDomainStatusEnum[keyof typeof CustomDomainStatusEnum];
12464
12636
 
12465
12637
 
12638
+ /**
12639
+ *
12640
+ * @export
12641
+ * @interface CustomDomainValidationRequest
12642
+ */
12643
+ export interface CustomDomainValidationRequest {
12644
+ /**
12645
+ * The domain name.
12646
+ * @type {string}
12647
+ * @memberof CustomDomainValidationRequest
12648
+ */
12649
+ 'domain': string;
12650
+ /**
12651
+ * Whether Qovery generates a certificate for the domain. Set it to `false` when a CDN or another party manages the certificate.
12652
+ * @type {boolean}
12653
+ * @memberof CustomDomainValidationRequest
12654
+ */
12655
+ 'generate_certificate'?: boolean;
12656
+ /**
12657
+ * Whether the domain is behind a CDN. If `true`, Qovery only checks that the domain points to an IP; otherwise it checks that the domain resolves to the service load balancer.
12658
+ * @type {boolean}
12659
+ * @memberof CustomDomainValidationRequest
12660
+ */
12661
+ 'use_cdn'?: boolean;
12662
+ /**
12663
+ * Every service the domain routes to, each with one `/` route served by its default port. Between 1 and 50 services; more than one only when the environment `routing_capabilities.can_share` is `true`.
12664
+ * @type {Array<CustomDomainServiceRequest>}
12665
+ * @memberof CustomDomainValidationRequest
12666
+ */
12667
+ 'services': Array<CustomDomainServiceRequest>;
12668
+ /**
12669
+ * The current name of a domain being edited, so the rows the services hold for it are ignored. Null or absent for a new domain.
12670
+ * @type {string}
12671
+ * @memberof CustomDomainValidationRequest
12672
+ */
12673
+ 'original_domain'?: string | null;
12674
+ }
12466
12675
  /**
12467
12676
  *
12468
12677
  * @export
@@ -15212,6 +15421,12 @@ export interface Environment {
15212
15421
  * @memberof Environment
15213
15422
  */
15214
15423
  'expires_at'?: string | null;
15424
+ /**
15425
+ *
15426
+ * @type {RoutingCapabilitiesResponse}
15427
+ * @memberof Environment
15428
+ */
15429
+ 'routing_capabilities'?: RoutingCapabilitiesResponse;
15215
15430
  }
15216
15431
 
15217
15432
 
@@ -15234,6 +15449,81 @@ export interface EnvironmentAllOfCloudProvider {
15234
15449
  */
15235
15450
  'cluster'?: string;
15236
15451
  }
15452
+ /**
15453
+ *
15454
+ * @export
15455
+ * @interface EnvironmentCnameTargetResponse
15456
+ */
15457
+ export interface EnvironmentCnameTargetResponse {
15458
+ /**
15459
+ * The hostname a custom domain of the environment must point to with a CNAME record.
15460
+ * @type {string}
15461
+ * @memberof EnvironmentCnameTargetResponse
15462
+ */
15463
+ 'cname_target': string;
15464
+ }
15465
+ /**
15466
+ * The full state of a custom domain name of an environment.
15467
+ * @export
15468
+ * @interface EnvironmentCustomDomainRequest
15469
+ */
15470
+ export interface EnvironmentCustomDomainRequest {
15471
+ /**
15472
+ * The domain name.
15473
+ * @type {string}
15474
+ * @memberof EnvironmentCustomDomainRequest
15475
+ */
15476
+ 'domain': string;
15477
+ /**
15478
+ * Whether Qovery generates a certificate for the domain. Set it to `false` when a CDN or another party manages the certificate.
15479
+ * @type {boolean}
15480
+ * @memberof EnvironmentCustomDomainRequest
15481
+ */
15482
+ 'generate_certificate'?: boolean;
15483
+ /**
15484
+ * Whether the domain is behind a CDN. If `true`, Qovery only checks that the domain points to an IP; otherwise it checks that the domain resolves to the service load balancer.
15485
+ * @type {boolean}
15486
+ * @memberof EnvironmentCustomDomainRequest
15487
+ */
15488
+ 'use_cdn'?: boolean;
15489
+ /**
15490
+ * Every service the domain routes to, each with one `/` route served by its default port. Between 1 and 50 services; more than one only when the environment `routing_capabilities.can_share` is `true`.
15491
+ * @type {Array<CustomDomainServiceRequest>}
15492
+ * @memberof EnvironmentCustomDomainRequest
15493
+ */
15494
+ 'services': Array<CustomDomainServiceRequest>;
15495
+ }
15496
+ /**
15497
+ *
15498
+ * @export
15499
+ * @interface EnvironmentCustomDomainResponse
15500
+ */
15501
+ export interface EnvironmentCustomDomainResponse {
15502
+ /**
15503
+ * The domain name.
15504
+ * @type {string}
15505
+ * @memberof EnvironmentCustomDomainResponse
15506
+ */
15507
+ 'domain': string;
15508
+ /**
15509
+ * Whether Qovery generates a certificate for the domain.
15510
+ * @type {boolean}
15511
+ * @memberof EnvironmentCustomDomainResponse
15512
+ */
15513
+ 'generate_certificate': boolean;
15514
+ /**
15515
+ * Whether the domain is behind a CDN.
15516
+ * @type {boolean}
15517
+ * @memberof EnvironmentCustomDomainResponse
15518
+ */
15519
+ 'use_cdn': boolean;
15520
+ /**
15521
+ * The services whose custom domains changed, removed services included. They need a redeploy to serve the change.
15522
+ * @type {Array<ImpactedServiceResponse>}
15523
+ * @memberof EnvironmentCustomDomainResponse
15524
+ */
15525
+ 'impacted_services': Array<ImpactedServiceResponse>;
15526
+ }
15237
15527
  /**
15238
15528
  *
15239
15529
  * @export
@@ -16893,6 +17183,59 @@ export const GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum =
16893
17183
 
16894
17184
  export type GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum = typeof GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum[keyof typeof GcpWorkloadIdentityFederationCredentialsRequestCredentialTypeEnum];
16895
17185
 
17186
+ /**
17187
+ * * `ROOT`: the domain itself (and the parent of a wildcard). It follows the route port, path and rewrite. * `PORT_SUBDOMAIN`: `<port name>.<domain>`, always served by that port at its own public path.
17188
+ * @export
17189
+ * @enum {string}
17190
+ */
17191
+
17192
+ export const GeneratedHostnameKindEnum = {
17193
+ ROOT: 'ROOT',
17194
+ PORT_SUBDOMAIN: 'PORT_SUBDOMAIN'
17195
+ } as const;
17196
+
17197
+ export type GeneratedHostnameKindEnum = typeof GeneratedHostnameKindEnum[keyof typeof GeneratedHostnameKindEnum];
17198
+
17199
+
17200
+ /**
17201
+ * A hostname Qovery serves for a domain, and the port it reaches.
17202
+ * @export
17203
+ * @interface GeneratedHostnameResponse
17204
+ */
17205
+ export interface GeneratedHostnameResponse {
17206
+ /**
17207
+ *
17208
+ * @type {string}
17209
+ * @memberof GeneratedHostnameResponse
17210
+ */
17211
+ 'hostname': string;
17212
+ /**
17213
+ * Id of the port the hostname reaches.
17214
+ * @type {string}
17215
+ * @memberof GeneratedHostnameResponse
17216
+ */
17217
+ 'port_id': string;
17218
+ /**
17219
+ *
17220
+ * @type {string}
17221
+ * @memberof GeneratedHostnameResponse
17222
+ */
17223
+ 'port_name': string;
17224
+ /**
17225
+ * The public path of the hostname.
17226
+ * @type {string}
17227
+ * @memberof GeneratedHostnameResponse
17228
+ */
17229
+ 'path': string;
17230
+ /**
17231
+ *
17232
+ * @type {GeneratedHostnameKindEnum}
17233
+ * @memberof GeneratedHostnameResponse
17234
+ */
17235
+ 'kind': GeneratedHostnameKindEnum;
17236
+ }
17237
+
17238
+
16896
17239
  /**
16897
17240
  *
16898
17241
  * @export
@@ -19239,6 +19582,27 @@ export interface HelmVersionResponseList {
19239
19582
  */
19240
19583
  'results'?: Array<HelmVersionResponse>;
19241
19584
  }
19585
+ /**
19586
+ * A service a custom domain write changed. Nothing is deployed; the service needs a redeploy to serve the change.
19587
+ * @export
19588
+ * @interface ImpactedServiceResponse
19589
+ */
19590
+ export interface ImpactedServiceResponse {
19591
+ /**
19592
+ *
19593
+ * @type {string}
19594
+ * @memberof ImpactedServiceResponse
19595
+ */
19596
+ 'id': string;
19597
+ /**
19598
+ *
19599
+ * @type {ServiceTypeEnum}
19600
+ * @memberof ImpactedServiceResponse
19601
+ */
19602
+ 'type': ServiceTypeEnum;
19603
+ }
19604
+
19605
+
19242
19606
  /**
19243
19607
  * @type InfrastructureOutputs
19244
19608
  * @export
@@ -23320,6 +23684,31 @@ export interface OrganizationCustomDomainResponse {
23320
23684
  * @memberof OrganizationCustomDomainResponse
23321
23685
  */
23322
23686
  'use_cdn': boolean;
23687
+ /**
23688
+ * The hostnames the domain must point to with a CNAME record. One value, except for a legacy domain spread over several service routers.
23689
+ * @type {Array<string>}
23690
+ * @memberof OrganizationCustomDomainResponse
23691
+ */
23692
+ 'cname_targets'?: Array<string>;
23693
+ /**
23694
+ * Every hostname served for the domain by its routes.
23695
+ * @type {Array<GeneratedHostnameResponse>}
23696
+ * @memberof OrganizationCustomDomainResponse
23697
+ */
23698
+ 'generated_hostnames'?: Array<GeneratedHostnameResponse>;
23699
+ }
23700
+ /**
23701
+ *
23702
+ * @export
23703
+ * @interface OrganizationCustomDomainResponseList
23704
+ */
23705
+ export interface OrganizationCustomDomainResponseList {
23706
+ /**
23707
+ *
23708
+ * @type {Array<OrganizationCustomDomainResponse>}
23709
+ * @memberof OrganizationCustomDomainResponseList
23710
+ */
23711
+ 'results': Array<OrganizationCustomDomainResponse>;
23323
23712
  }
23324
23713
  /**
23325
23714
  *
@@ -26775,6 +27164,19 @@ export const Route53StaticCredentialsResponseTypeEnum = {
26775
27164
 
26776
27165
  export type Route53StaticCredentialsResponseTypeEnum = typeof Route53StaticCredentialsResponseTypeEnum[keyof typeof Route53StaticCredentialsResponseTypeEnum];
26777
27166
 
27167
+ /**
27168
+ * What the routing mode of the environment allows on its custom domains.
27169
+ * @export
27170
+ * @interface RoutingCapabilitiesResponse
27171
+ */
27172
+ export interface RoutingCapabilitiesResponse {
27173
+ /**
27174
+ * Whether several services can route the same custom domain. `false` on a `PER_ROUTER_LISTENER_SET` environment, where a domain belongs to one service.
27175
+ * @type {boolean}
27176
+ * @memberof RoutingCapabilitiesResponse
27177
+ */
27178
+ 'can_share': boolean;
27179
+ }
26778
27180
  /**
26779
27181
  *
26780
27182
  * @export
@@ -27385,7 +27787,7 @@ export interface SelfManagedClusterPlatformSelection {
27385
27787
  'managedConfig'?: { [key: string]: { [key: string]: any; }; };
27386
27788
  }
27387
27789
  /**
27388
- * Credentials of the registry, checked before anything is created when Qovery can reach the registry; a refused login answers 400. Omit the object for a registry without credentials.
27790
+ * Credentials of the registry, checked before anything is created when Qovery can reach the registry; a refused login answers 400. Omit the object for a `GENERIC_CR` registry without credentials.
27389
27791
  * @export
27390
27792
  * @interface SelfManagedClusterRegistryCredentialsRequest
27391
27793
  */
@@ -27404,17 +27806,23 @@ export interface SelfManagedClusterRegistryCredentialsRequest {
27404
27806
  'password': string;
27405
27807
  }
27406
27808
  /**
27407
- * Generic registry of an on-premise cluster, created as the cluster\'s own registry. Only for the on-premise providers: it answers 400 on AWS, GCP and SCW, whose registry is derived from the cloud credential. Without it the cluster gets an empty generic registry, to configure with the container registry API before the first application deployment. An unknown key next to `url` and `credentials` answers 400.
27809
+ * Registry of an on-premise cluster, created as the cluster\'s own registry. Only for the on-premise providers: it answers 400 on AWS, GCP and SCW, whose registry is derived from the cloud credential. Without it the cluster gets an empty generic registry, to configure with the container registry API before the first application deployment. An unknown key next to `kind`, `url` and `credentials` answers 400.
27408
27810
  * @export
27409
27811
  * @interface SelfManagedClusterRegistryRequest
27410
27812
  */
27411
27813
  export interface SelfManagedClusterRegistryRequest {
27412
27814
  /**
27413
- * URL of the registry: `http` or `https` scheme, host and optional port only, without user info, path, query or fragment, and not localhost.
27815
+ * Kind of the registry. `GENERIC_CR` is any OCI registry reachable by URL, `GITHUB_CR` is GitHub Container Registry and `DOCKER_HUB` is Docker Hub; both require `credentials`.
27414
27816
  * @type {string}
27415
27817
  * @memberof SelfManagedClusterRegistryRequest
27416
27818
  */
27417
- 'url': string;
27819
+ 'kind': SelfManagedClusterRegistryRequestKindEnum;
27820
+ /**
27821
+ * URL of the registry. Required for `GENERIC_CR`: `http` or `https` scheme, host and optional port only, without user info, path, query or fragment, and not localhost. Optional for `GITHUB_CR` and `DOCKER_HUB`; when given, it must be `https://ghcr.io` or `https://docker.io`.
27822
+ * @type {string}
27823
+ * @memberof SelfManagedClusterRegistryRequest
27824
+ */
27825
+ 'url'?: string;
27418
27826
  /**
27419
27827
  *
27420
27828
  * @type {SelfManagedClusterRegistryCredentialsRequest}
@@ -27422,8 +27830,17 @@ export interface SelfManagedClusterRegistryRequest {
27422
27830
  */
27423
27831
  'credentials'?: SelfManagedClusterRegistryCredentialsRequest;
27424
27832
  }
27833
+
27834
+ export const SelfManagedClusterRegistryRequestKindEnum = {
27835
+ GENERIC_CR: 'GENERIC_CR',
27836
+ GITHUB_CR: 'GITHUB_CR',
27837
+ DOCKER_HUB: 'DOCKER_HUB'
27838
+ } as const;
27839
+
27840
+ export type SelfManagedClusterRegistryRequestKindEnum = typeof SelfManagedClusterRegistryRequestKindEnum[keyof typeof SelfManagedClusterRegistryRequestKindEnum];
27841
+
27425
27842
  /**
27426
- * Registry of the cluster. On AWS, GCP and Scaleway it is derived from the cloud credential and region: ECR, Artifact Registry or Scaleway Container Registry. On an on-premise provider it is the generic registry given in the request, or an empty generic registry.
27843
+ * Registry of the cluster. On AWS, GCP and Scaleway it is derived from the cloud credential and region: ECR, Artifact Registry or Scaleway Container Registry. On an on-premise provider it is the registry given in the request (generic, GitHub Container Registry or Docker Hub), or an empty generic registry.
27427
27844
  * @export
27428
27845
  * @interface SelfManagedClusterRegistryResponse
27429
27846
  */
@@ -27734,6 +28151,123 @@ export const ServiceDeploymentStatusEnum = {
27734
28151
  export type ServiceDeploymentStatusEnum = typeof ServiceDeploymentStatusEnum[keyof typeof ServiceDeploymentStatusEnum];
27735
28152
 
27736
28153
 
28154
+ /**
28155
+ * A custom domain the service routes, possibly shared with other services of the environment.
28156
+ * @export
28157
+ * @interface ServiceDomainCustomResponse
28158
+ */
28159
+ export interface ServiceDomainCustomResponse {
28160
+ /**
28161
+ *
28162
+ * @type {ServiceDomainKindEnum}
28163
+ * @memberof ServiceDomainCustomResponse
28164
+ */
28165
+ 'kind': ServiceDomainKindEnum;
28166
+ /**
28167
+ *
28168
+ * @type {string}
28169
+ * @memberof ServiceDomainCustomResponse
28170
+ */
28171
+ 'domain': string;
28172
+ /**
28173
+ * Whether Qovery generates a certificate for the domain.
28174
+ * @type {boolean}
28175
+ * @memberof ServiceDomainCustomResponse
28176
+ */
28177
+ 'generate_certificate': boolean;
28178
+ /**
28179
+ * Whether the domain is behind a CDN.
28180
+ * @type {boolean}
28181
+ * @memberof ServiceDomainCustomResponse
28182
+ */
28183
+ 'use_cdn': boolean;
28184
+ /**
28185
+ * The hostnames the domain must point to with a CNAME record. One value, except for a legacy domain spread over several service routers.
28186
+ * @type {Array<string>}
28187
+ * @memberof ServiceDomainCustomResponse
28188
+ */
28189
+ 'cname_targets': Array<string>;
28190
+ /**
28191
+ * The hostnames served by the routes of this service only.
28192
+ * @type {Array<GeneratedHostnameResponse>}
28193
+ * @memberof ServiceDomainCustomResponse
28194
+ */
28195
+ 'generated_hostnames': Array<GeneratedHostnameResponse>;
28196
+ /**
28197
+ * Every route of the domain, the routes of the other services included.
28198
+ * @type {Array<CustomDomainRouteResponse>}
28199
+ * @memberof ServiceDomainCustomResponse
28200
+ */
28201
+ 'routes': Array<CustomDomainRouteResponse>;
28202
+ /**
28203
+ * The other services routing the domain. When it is not empty, removing this service\'s route keeps the domain for them.
28204
+ * @type {Array<CustomDomainServiceResponse>}
28205
+ * @memberof ServiceDomainCustomResponse
28206
+ */
28207
+ 'other_services': Array<CustomDomainServiceResponse>;
28208
+ }
28209
+
28210
+
28211
+ /**
28212
+ * * `QOVERY`: the domain Qovery generates for the service. It cannot be edited or deleted. * `CUSTOM`: a custom domain the service routes.
28213
+ * @export
28214
+ * @enum {string}
28215
+ */
28216
+
28217
+ export const ServiceDomainKindEnum = {
28218
+ QOVERY: 'QOVERY',
28219
+ CUSTOM: 'CUSTOM'
28220
+ } as const;
28221
+
28222
+ export type ServiceDomainKindEnum = typeof ServiceDomainKindEnum[keyof typeof ServiceDomainKindEnum];
28223
+
28224
+
28225
+ /**
28226
+ * The read-only domain Qovery generates for the service.
28227
+ * @export
28228
+ * @interface ServiceDomainQoveryResponse
28229
+ */
28230
+ export interface ServiceDomainQoveryResponse {
28231
+ /**
28232
+ *
28233
+ * @type {ServiceDomainKindEnum}
28234
+ * @memberof ServiceDomainQoveryResponse
28235
+ */
28236
+ 'kind': ServiceDomainKindEnum;
28237
+ /**
28238
+ *
28239
+ * @type {string}
28240
+ * @memberof ServiceDomainQoveryResponse
28241
+ */
28242
+ 'domain': string;
28243
+ /**
28244
+ *
28245
+ * @type {Array<GeneratedHostnameResponse>}
28246
+ * @memberof ServiceDomainQoveryResponse
28247
+ */
28248
+ 'generated_hostnames': Array<GeneratedHostnameResponse>;
28249
+ }
28250
+
28251
+
28252
+ /**
28253
+ * @type ServiceDomainResponse
28254
+ * @export
28255
+ */
28256
+ export type ServiceDomainResponse = { kind: 'CUSTOM' } & ServiceDomainCustomResponse | { kind: 'QOVERY' } & ServiceDomainQoveryResponse;
28257
+
28258
+ /**
28259
+ *
28260
+ * @export
28261
+ * @interface ServiceDomainResponseList
28262
+ */
28263
+ export interface ServiceDomainResponseList {
28264
+ /**
28265
+ *
28266
+ * @type {Array<ServiceDomainResponse>}
28267
+ * @memberof ServiceDomainResponseList
28268
+ */
28269
+ 'results': Array<ServiceDomainResponse>;
28270
+ }
27737
28271
  /**
27738
28272
  *
27739
28273
  * @export
@@ -34401,7 +34935,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34401
34935
  };
34402
34936
  },
34403
34937
  /**
34404
- * Add a custom domain to this application in order not to use qovery autogenerated domain
34938
+ * Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
34405
34939
  * @summary Add custom domain to the application.
34406
34940
  * @param {string} applicationId Application ID
34407
34941
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34446,7 +34980,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34446
34980
  };
34447
34981
  },
34448
34982
  /**
34449
- * To delete an CustomDomain you must have the project user permission
34983
+ * Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
34450
34984
  * @summary Delete a Custom Domain
34451
34985
  * @param {string} applicationId Application ID
34452
34986
  * @param {string} customDomainId Custom Domain ID
@@ -34491,7 +35025,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34491
35025
  };
34492
35026
  },
34493
35027
  /**
34494
- * To edit a Custom Domain you must have the project user permission
35028
+ * Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
34495
35029
  * @summary Edit a Custom Domain
34496
35030
  * @param {string} applicationId Application ID
34497
35031
  * @param {string} customDomainId Custom Domain ID
@@ -34616,6 +35150,47 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34616
35150
 
34617
35151
 
34618
35152
 
35153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35155
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35156
+
35157
+ return {
35158
+ url: toPathString(localVarUrlObj),
35159
+ options: localVarRequestOptions,
35160
+ };
35161
+ },
35162
+ /**
35163
+ * List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
35164
+ * @summary List the domains of the application
35165
+ * @param {string} applicationId Application ID
35166
+ * @param {*} [options] Override http request option.
35167
+ * @throws {RequiredError}
35168
+ */
35169
+ listApplicationCustomDomainView: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35170
+ // verify required parameter 'applicationId' is not null or undefined
35171
+ assertParamExists('listApplicationCustomDomainView', 'applicationId', applicationId)
35172
+ const localVarPath = `/application/{applicationId}/customDomainView`
35173
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
35174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35176
+ let baseOptions;
35177
+ if (configuration) {
35178
+ baseOptions = configuration.baseOptions;
35179
+ }
35180
+
35181
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35182
+ const localVarHeaderParameter = {} as any;
35183
+ const localVarQueryParameter = {} as any;
35184
+
35185
+ // authentication ApiKeyAuth required
35186
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
35187
+
35188
+ // authentication bearerAuth required
35189
+ // http bearer authentication required
35190
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
35191
+
35192
+
35193
+
34619
35194
  setSearchParams(localVarUrlObj, localVarQueryParameter);
34620
35195
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34621
35196
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -34649,7 +35224,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34649
35224
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34650
35225
  },
34651
35226
  /**
34652
- * Add a custom domain to this application in order not to use qovery autogenerated domain
35227
+ * Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
34653
35228
  * @summary Add custom domain to the application.
34654
35229
  * @param {string} applicationId Application ID
34655
35230
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34663,7 +35238,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34663
35238
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34664
35239
  },
34665
35240
  /**
34666
- * To delete an CustomDomain you must have the project user permission
35241
+ * Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
34667
35242
  * @summary Delete a Custom Domain
34668
35243
  * @param {string} applicationId Application ID
34669
35244
  * @param {string} customDomainId Custom Domain ID
@@ -34677,7 +35252,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34677
35252
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34678
35253
  },
34679
35254
  /**
34680
- * To edit a Custom Domain you must have the project user permission
35255
+ * Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
34681
35256
  * @summary Edit a Custom Domain
34682
35257
  * @param {string} applicationId Application ID
34683
35258
  * @param {string} customDomainId Custom Domain ID
@@ -34718,6 +35293,19 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34718
35293
  const localVarOperationServerBasePath = operationServerMap['ApplicationCustomDomainApi.listApplicationCustomDomain']?.[localVarOperationServerIndex]?.url;
34719
35294
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34720
35295
  },
35296
+ /**
35297
+ * List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
35298
+ * @summary List the domains of the application
35299
+ * @param {string} applicationId Application ID
35300
+ * @param {*} [options] Override http request option.
35301
+ * @throws {RequiredError}
35302
+ */
35303
+ async listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
35304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationCustomDomainView(applicationId, options);
35305
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35306
+ const localVarOperationServerBasePath = operationServerMap['ApplicationCustomDomainApi.listApplicationCustomDomainView']?.[localVarOperationServerIndex]?.url;
35307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35308
+ },
34721
35309
  }
34722
35310
  };
34723
35311
 
@@ -34739,7 +35327,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34739
35327
  return localVarFp.checkApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
34740
35328
  },
34741
35329
  /**
34742
- * Add a custom domain to this application in order not to use qovery autogenerated domain
35330
+ * Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
34743
35331
  * @summary Add custom domain to the application.
34744
35332
  * @param {string} applicationId Application ID
34745
35333
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34750,7 +35338,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34750
35338
  return localVarFp.createApplicationCustomDomain(applicationId, customDomainRequest, options).then((request) => request(axios, basePath));
34751
35339
  },
34752
35340
  /**
34753
- * To delete an CustomDomain you must have the project user permission
35341
+ * Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
34754
35342
  * @summary Delete a Custom Domain
34755
35343
  * @param {string} applicationId Application ID
34756
35344
  * @param {string} customDomainId Custom Domain ID
@@ -34761,7 +35349,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34761
35349
  return localVarFp.deleteCustomDomain(applicationId, customDomainId, options).then((request) => request(axios, basePath));
34762
35350
  },
34763
35351
  /**
34764
- * To edit a Custom Domain you must have the project user permission
35352
+ * Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
34765
35353
  * @summary Edit a Custom Domain
34766
35354
  * @param {string} applicationId Application ID
34767
35355
  * @param {string} customDomainId Custom Domain ID
@@ -34793,6 +35381,16 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34793
35381
  listApplicationCustomDomain(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
34794
35382
  return localVarFp.listApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
34795
35383
  },
35384
+ /**
35385
+ * List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
35386
+ * @summary List the domains of the application
35387
+ * @param {string} applicationId Application ID
35388
+ * @param {*} [options] Override http request option.
35389
+ * @throws {RequiredError}
35390
+ */
35391
+ listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
35392
+ return localVarFp.listApplicationCustomDomainView(applicationId, options).then((request) => request(axios, basePath));
35393
+ },
34796
35394
  };
34797
35395
  };
34798
35396
 
@@ -34816,7 +35414,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34816
35414
  }
34817
35415
 
34818
35416
  /**
34819
- * Add a custom domain to this application in order not to use qovery autogenerated domain
35417
+ * Add a custom domain to this application in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
34820
35418
  * @summary Add custom domain to the application.
34821
35419
  * @param {string} applicationId Application ID
34822
35420
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34829,7 +35427,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34829
35427
  }
34830
35428
 
34831
35429
  /**
34832
- * To delete an CustomDomain you must have the project user permission
35430
+ * Remove the custom domain from this application only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
34833
35431
  * @summary Delete a Custom Domain
34834
35432
  * @param {string} applicationId Application ID
34835
35433
  * @param {string} customDomainId Custom Domain ID
@@ -34842,7 +35440,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34842
35440
  }
34843
35441
 
34844
35442
  /**
34845
- * To edit a Custom Domain you must have the project user permission
35443
+ * Edit a custom domain of the application. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
34846
35444
  * @summary Edit a Custom Domain
34847
35445
  * @param {string} applicationId Application ID
34848
35446
  * @param {string} customDomainId Custom Domain ID
@@ -34879,6 +35477,18 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34879
35477
  public listApplicationCustomDomain(applicationId: string, options?: RawAxiosRequestConfig) {
34880
35478
  return ApplicationCustomDomainApiFp(this.configuration).listApplicationCustomDomain(applicationId, options).then((request) => request(this.axios, this.basePath));
34881
35479
  }
35480
+
35481
+ /**
35482
+ * List the domains of the application, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this application\'s route from deleting the domain.
35483
+ * @summary List the domains of the application
35484
+ * @param {string} applicationId Application ID
35485
+ * @param {*} [options] Override http request option.
35486
+ * @throws {RequiredError}
35487
+ * @memberof ApplicationCustomDomainApi
35488
+ */
35489
+ public listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig) {
35490
+ return ApplicationCustomDomainApiFp(this.configuration).listApplicationCustomDomainView(applicationId, options).then((request) => request(this.axios, this.basePath));
35491
+ }
34882
35492
  }
34883
35493
 
34884
35494
 
@@ -44871,7 +45481,7 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
44871
45481
  };
44872
45482
  },
44873
45483
  /**
44874
- * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
45484
+ * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
44875
45485
  * @summary Create a self-managed cluster run by the Qovery Operator
44876
45486
  * @param {string} organizationId Organization ID
44877
45487
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -46737,7 +47347,7 @@ export const ClustersApiFp = function(configuration?: Configuration) {
46737
47347
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
46738
47348
  },
46739
47349
  /**
46740
- * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
47350
+ * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
46741
47351
  * @summary Create a self-managed cluster run by the Qovery Operator
46742
47352
  * @param {string} organizationId Organization ID
46743
47353
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -47307,7 +47917,7 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
47307
47917
  return localVarFp.createCluster(organizationId, clusterRequest, options).then((request) => request(axios, basePath));
47308
47918
  },
47309
47919
  /**
47310
- * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
47920
+ * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
47311
47921
  * @summary Create a self-managed cluster run by the Qovery Operator
47312
47922
  * @param {string} organizationId Organization ID
47313
47923
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -47768,7 +48378,7 @@ export class ClustersApi extends BaseAPI {
47768
48378
  }
47769
48379
 
47770
48380
  /**
47771
- * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the generic registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
48381
+ * Creates a self-managed cluster on an existing cloud credential of the organization: AWS, GCP or Scaleway, or an on-premise credential for any other Kubernetes (`provider` `ON_PREMISE`, `HETZNER`, `OVH`, `CIVO`, `ORACLE` or `IBM`, in region `on-premise`). The on-premise providers are not generally available yet: they are accepted for a short list of Qovery test organizations and answer 400 for the others. The organization\'s plan is not checked. On AWS the credential only needs ECR permissions for the cluster itself, including `ecr:DescribeRepositories` in `us-east-1`, which Qovery calls to check the credential whatever the cluster region; features that call other AWS services with the credential, such as managed databases or Terraform services using the cluster credentials, need more. Without `platform.templateKey` and `platform.templateVersion`, Qovery selects its self-managed platform template release and the response returns it: `\"platform\": {}` gives that release with its default configuration. Without `clusterInputs`, the cluster has no cluster inputs. The credential, including its registry access in the cluster region, and the platform configuration are checked before anything is created. One transaction then writes the cluster, its Qovery DNS and build providers, its default registry derived from the credential (ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway), its initial deployment status, its platform configuration and its Qovery Operator enrollment. No registry can be derived from an on-premise credential: the cluster gets the registry given in `registry`, or an empty generic registry to configure with the container registry API before the first application deployment. Install the Operator next with the cluster\'s Operator bootstrap.
47772
48382
  * @summary Create a self-managed cluster run by the Qovery Operator
47773
48383
  * @param {string} organizationId Organization ID
47774
48384
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -49120,7 +49730,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49120
49730
  };
49121
49731
  },
49122
49732
  /**
49123
- * Add a custom domain to this container in order not to use qovery autogenerated domain
49733
+ * Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
49124
49734
  * @summary Add custom domain to the container.
49125
49735
  * @param {string} containerId Container ID
49126
49736
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49165,7 +49775,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49165
49775
  };
49166
49776
  },
49167
49777
  /**
49168
- * To delete an CustomDomain you must have the project user permission
49778
+ * Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
49169
49779
  * @summary Delete a Custom Domain
49170
49780
  * @param {string} containerId Container ID
49171
49781
  * @param {string} customDomainId Custom Domain ID
@@ -49210,7 +49820,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49210
49820
  };
49211
49821
  },
49212
49822
  /**
49213
- * To edit a Custom Domain you must have the project user permission
49823
+ * Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
49214
49824
  * @summary Edit a Custom Domain
49215
49825
  * @param {string} containerId Container ID
49216
49826
  * @param {string} customDomainId Custom Domain ID
@@ -49335,6 +49945,47 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49335
49945
 
49336
49946
 
49337
49947
 
49948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
49949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
49950
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
49951
+
49952
+ return {
49953
+ url: toPathString(localVarUrlObj),
49954
+ options: localVarRequestOptions,
49955
+ };
49956
+ },
49957
+ /**
49958
+ * List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
49959
+ * @summary List the domains of the container
49960
+ * @param {string} containerId Container ID
49961
+ * @param {*} [options] Override http request option.
49962
+ * @throws {RequiredError}
49963
+ */
49964
+ listContainerCustomDomainView: async (containerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
49965
+ // verify required parameter 'containerId' is not null or undefined
49966
+ assertParamExists('listContainerCustomDomainView', 'containerId', containerId)
49967
+ const localVarPath = `/container/{containerId}/customDomainView`
49968
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
49969
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49970
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49971
+ let baseOptions;
49972
+ if (configuration) {
49973
+ baseOptions = configuration.baseOptions;
49974
+ }
49975
+
49976
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
49977
+ const localVarHeaderParameter = {} as any;
49978
+ const localVarQueryParameter = {} as any;
49979
+
49980
+ // authentication ApiKeyAuth required
49981
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
49982
+
49983
+ // authentication bearerAuth required
49984
+ // http bearer authentication required
49985
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
49986
+
49987
+
49988
+
49338
49989
  setSearchParams(localVarUrlObj, localVarQueryParameter);
49339
49990
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
49340
49991
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -49368,7 +50019,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49368
50019
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49369
50020
  },
49370
50021
  /**
49371
- * Add a custom domain to this container in order not to use qovery autogenerated domain
50022
+ * Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
49372
50023
  * @summary Add custom domain to the container.
49373
50024
  * @param {string} containerId Container ID
49374
50025
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49382,7 +50033,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49382
50033
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49383
50034
  },
49384
50035
  /**
49385
- * To delete an CustomDomain you must have the project user permission
50036
+ * Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
49386
50037
  * @summary Delete a Custom Domain
49387
50038
  * @param {string} containerId Container ID
49388
50039
  * @param {string} customDomainId Custom Domain ID
@@ -49396,7 +50047,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49396
50047
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49397
50048
  },
49398
50049
  /**
49399
- * To edit a Custom Domain you must have the project user permission
50050
+ * Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
49400
50051
  * @summary Edit a Custom Domain
49401
50052
  * @param {string} containerId Container ID
49402
50053
  * @param {string} customDomainId Custom Domain ID
@@ -49437,6 +50088,19 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49437
50088
  const localVarOperationServerBasePath = operationServerMap['ContainerCustomDomainApi.listContainerCustomDomain']?.[localVarOperationServerIndex]?.url;
49438
50089
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49439
50090
  },
50091
+ /**
50092
+ * List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
50093
+ * @summary List the domains of the container
50094
+ * @param {string} containerId Container ID
50095
+ * @param {*} [options] Override http request option.
50096
+ * @throws {RequiredError}
50097
+ */
50098
+ async listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
50099
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContainerCustomDomainView(containerId, options);
50100
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
50101
+ const localVarOperationServerBasePath = operationServerMap['ContainerCustomDomainApi.listContainerCustomDomainView']?.[localVarOperationServerIndex]?.url;
50102
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50103
+ },
49440
50104
  }
49441
50105
  };
49442
50106
 
@@ -49458,7 +50122,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49458
50122
  return localVarFp.checkContainerCustomDomain(containerId, options).then((request) => request(axios, basePath));
49459
50123
  },
49460
50124
  /**
49461
- * Add a custom domain to this container in order not to use qovery autogenerated domain
50125
+ * Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
49462
50126
  * @summary Add custom domain to the container.
49463
50127
  * @param {string} containerId Container ID
49464
50128
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49469,7 +50133,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49469
50133
  return localVarFp.createContainerCustomDomain(containerId, customDomainRequest, options).then((request) => request(axios, basePath));
49470
50134
  },
49471
50135
  /**
49472
- * To delete an CustomDomain you must have the project user permission
50136
+ * Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
49473
50137
  * @summary Delete a Custom Domain
49474
50138
  * @param {string} containerId Container ID
49475
50139
  * @param {string} customDomainId Custom Domain ID
@@ -49480,7 +50144,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49480
50144
  return localVarFp.deleteContainerCustomDomain(containerId, customDomainId, options).then((request) => request(axios, basePath));
49481
50145
  },
49482
50146
  /**
49483
- * To edit a Custom Domain you must have the project user permission
50147
+ * Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
49484
50148
  * @summary Edit a Custom Domain
49485
50149
  * @param {string} containerId Container ID
49486
50150
  * @param {string} customDomainId Custom Domain ID
@@ -49512,6 +50176,16 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49512
50176
  listContainerCustomDomain(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
49513
50177
  return localVarFp.listContainerCustomDomain(containerId, options).then((request) => request(axios, basePath));
49514
50178
  },
50179
+ /**
50180
+ * List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
50181
+ * @summary List the domains of the container
50182
+ * @param {string} containerId Container ID
50183
+ * @param {*} [options] Override http request option.
50184
+ * @throws {RequiredError}
50185
+ */
50186
+ listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
50187
+ return localVarFp.listContainerCustomDomainView(containerId, options).then((request) => request(axios, basePath));
50188
+ },
49515
50189
  };
49516
50190
  };
49517
50191
 
@@ -49535,7 +50209,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
49535
50209
  }
49536
50210
 
49537
50211
  /**
49538
- * Add a custom domain to this container in order not to use qovery autogenerated domain
50212
+ * Add a custom domain to this container in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
49539
50213
  * @summary Add custom domain to the container.
49540
50214
  * @param {string} containerId Container ID
49541
50215
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49548,7 +50222,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
49548
50222
  }
49549
50223
 
49550
50224
  /**
49551
- * To delete an CustomDomain you must have the project user permission
50225
+ * Remove the custom domain from this container only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
49552
50226
  * @summary Delete a Custom Domain
49553
50227
  * @param {string} containerId Container ID
49554
50228
  * @param {string} customDomainId Custom Domain ID
@@ -49561,7 +50235,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
49561
50235
  }
49562
50236
 
49563
50237
  /**
49564
- * To edit a Custom Domain you must have the project user permission
50238
+ * Edit a custom domain of the container. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
49565
50239
  * @summary Edit a Custom Domain
49566
50240
  * @param {string} containerId Container ID
49567
50241
  * @param {string} customDomainId Custom Domain ID
@@ -49598,6 +50272,18 @@ export class ContainerCustomDomainApi extends BaseAPI {
49598
50272
  public listContainerCustomDomain(containerId: string, options?: RawAxiosRequestConfig) {
49599
50273
  return ContainerCustomDomainApiFp(this.configuration).listContainerCustomDomain(containerId, options).then((request) => request(this.axios, this.basePath));
49600
50274
  }
50275
+
50276
+ /**
50277
+ * List the domains of the container, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this container\'s route from deleting the domain.
50278
+ * @summary List the domains of the container
50279
+ * @param {string} containerId Container ID
50280
+ * @param {*} [options] Override http request option.
50281
+ * @throws {RequiredError}
50282
+ * @memberof ContainerCustomDomainApi
50283
+ */
50284
+ public listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig) {
50285
+ return ContainerCustomDomainApiFp(this.configuration).listContainerCustomDomainView(containerId, options).then((request) => request(this.axios, this.basePath));
50286
+ }
49601
50287
  }
49602
50288
 
49603
50289
 
@@ -57115,6 +57801,542 @@ export class EnvironmentActionsApi extends BaseAPI {
57115
57801
 
57116
57802
 
57117
57803
 
57804
+ /**
57805
+ * EnvironmentCustomDomainApi - axios parameter creator
57806
+ * @export
57807
+ */
57808
+ export const EnvironmentCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
57809
+ return {
57810
+ /**
57811
+ * Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
57812
+ * @summary Create a custom domain for several services
57813
+ * @param {string} environmentId Environment ID
57814
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
57815
+ * @param {*} [options] Override http request option.
57816
+ * @throws {RequiredError}
57817
+ */
57818
+ createEnvironmentCustomDomain: async (environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57819
+ // verify required parameter 'environmentId' is not null or undefined
57820
+ assertParamExists('createEnvironmentCustomDomain', 'environmentId', environmentId)
57821
+ // verify required parameter 'environmentCustomDomainRequest' is not null or undefined
57822
+ assertParamExists('createEnvironmentCustomDomain', 'environmentCustomDomainRequest', environmentCustomDomainRequest)
57823
+ const localVarPath = `/environment/{environmentId}/customDomain`
57824
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
57825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57827
+ let baseOptions;
57828
+ if (configuration) {
57829
+ baseOptions = configuration.baseOptions;
57830
+ }
57831
+
57832
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57833
+ const localVarHeaderParameter = {} as any;
57834
+ const localVarQueryParameter = {} as any;
57835
+
57836
+ // authentication ApiKeyAuth required
57837
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57838
+
57839
+ // authentication bearerAuth required
57840
+ // http bearer authentication required
57841
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57842
+
57843
+
57844
+
57845
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57846
+
57847
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57848
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57849
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57850
+ localVarRequestOptions.data = serializeDataIfNeeded(environmentCustomDomainRequest, localVarRequestOptions, configuration)
57851
+
57852
+ return {
57853
+ url: toPathString(localVarUrlObj),
57854
+ options: localVarRequestOptions,
57855
+ };
57856
+ },
57857
+ /**
57858
+ * Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
57859
+ * @summary Delete a custom domain of several services
57860
+ * @param {string} environmentId Environment ID
57861
+ * @param {string} domainName The current name of the custom domain.
57862
+ * @param {*} [options] Override http request option.
57863
+ * @throws {RequiredError}
57864
+ */
57865
+ deleteEnvironmentCustomDomain: async (environmentId: string, domainName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57866
+ // verify required parameter 'environmentId' is not null or undefined
57867
+ assertParamExists('deleteEnvironmentCustomDomain', 'environmentId', environmentId)
57868
+ // verify required parameter 'domainName' is not null or undefined
57869
+ assertParamExists('deleteEnvironmentCustomDomain', 'domainName', domainName)
57870
+ const localVarPath = `/environment/{environmentId}/customDomain/{domainName}`
57871
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
57872
+ .replace(`{${"domainName"}}`, encodeURIComponent(String(domainName)));
57873
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57874
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57875
+ let baseOptions;
57876
+ if (configuration) {
57877
+ baseOptions = configuration.baseOptions;
57878
+ }
57879
+
57880
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
57881
+ const localVarHeaderParameter = {} as any;
57882
+ const localVarQueryParameter = {} as any;
57883
+
57884
+ // authentication ApiKeyAuth required
57885
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57886
+
57887
+ // authentication bearerAuth required
57888
+ // http bearer authentication required
57889
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57890
+
57891
+
57892
+
57893
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57894
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57895
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57896
+
57897
+ return {
57898
+ url: toPathString(localVarUrlObj),
57899
+ options: localVarRequestOptions,
57900
+ };
57901
+ },
57902
+ /**
57903
+ * Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
57904
+ * @summary Edit a custom domain of several services
57905
+ * @param {string} environmentId Environment ID
57906
+ * @param {string} domainName The current name of the custom domain.
57907
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
57908
+ * @param {*} [options] Override http request option.
57909
+ * @throws {RequiredError}
57910
+ */
57911
+ editEnvironmentCustomDomain: async (environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57912
+ // verify required parameter 'environmentId' is not null or undefined
57913
+ assertParamExists('editEnvironmentCustomDomain', 'environmentId', environmentId)
57914
+ // verify required parameter 'domainName' is not null or undefined
57915
+ assertParamExists('editEnvironmentCustomDomain', 'domainName', domainName)
57916
+ // verify required parameter 'environmentCustomDomainRequest' is not null or undefined
57917
+ assertParamExists('editEnvironmentCustomDomain', 'environmentCustomDomainRequest', environmentCustomDomainRequest)
57918
+ const localVarPath = `/environment/{environmentId}/customDomain/{domainName}`
57919
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
57920
+ .replace(`{${"domainName"}}`, encodeURIComponent(String(domainName)));
57921
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57922
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57923
+ let baseOptions;
57924
+ if (configuration) {
57925
+ baseOptions = configuration.baseOptions;
57926
+ }
57927
+
57928
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
57929
+ const localVarHeaderParameter = {} as any;
57930
+ const localVarQueryParameter = {} as any;
57931
+
57932
+ // authentication ApiKeyAuth required
57933
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57934
+
57935
+ // authentication bearerAuth required
57936
+ // http bearer authentication required
57937
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57938
+
57939
+
57940
+
57941
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57942
+
57943
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57945
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57946
+ localVarRequestOptions.data = serializeDataIfNeeded(environmentCustomDomainRequest, localVarRequestOptions, configuration)
57947
+
57948
+ return {
57949
+ url: toPathString(localVarUrlObj),
57950
+ options: localVarRequestOptions,
57951
+ };
57952
+ },
57953
+ /**
57954
+ * The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
57955
+ * @summary Get the CNAME target of the environment
57956
+ * @param {string} environmentId Environment ID
57957
+ * @param {*} [options] Override http request option.
57958
+ * @throws {RequiredError}
57959
+ */
57960
+ getEnvironmentCustomDomainCnameTarget: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57961
+ // verify required parameter 'environmentId' is not null or undefined
57962
+ assertParamExists('getEnvironmentCustomDomainCnameTarget', 'environmentId', environmentId)
57963
+ const localVarPath = `/environment/{environmentId}/customDomain/cnameTarget`
57964
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
57965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57967
+ let baseOptions;
57968
+ if (configuration) {
57969
+ baseOptions = configuration.baseOptions;
57970
+ }
57971
+
57972
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57973
+ const localVarHeaderParameter = {} as any;
57974
+ const localVarQueryParameter = {} as any;
57975
+
57976
+ // authentication ApiKeyAuth required
57977
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57978
+
57979
+ // authentication bearerAuth required
57980
+ // http bearer authentication required
57981
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57982
+
57983
+
57984
+
57985
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57986
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57987
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57988
+
57989
+ return {
57990
+ url: toPathString(localVarUrlObj),
57991
+ options: localVarRequestOptions,
57992
+ };
57993
+ },
57994
+ /**
57995
+ * List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
57996
+ * @summary List environment custom domains
57997
+ * @param {string} environmentId Environment ID
57998
+ * @param {*} [options] Override http request option.
57999
+ * @throws {RequiredError}
58000
+ */
58001
+ listEnvironmentCustomDomain: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58002
+ // verify required parameter 'environmentId' is not null or undefined
58003
+ assertParamExists('listEnvironmentCustomDomain', 'environmentId', environmentId)
58004
+ const localVarPath = `/environment/{environmentId}/customDomain`
58005
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
58006
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58007
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58008
+ let baseOptions;
58009
+ if (configuration) {
58010
+ baseOptions = configuration.baseOptions;
58011
+ }
58012
+
58013
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58014
+ const localVarHeaderParameter = {} as any;
58015
+ const localVarQueryParameter = {} as any;
58016
+
58017
+ // authentication ApiKeyAuth required
58018
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58019
+
58020
+ // authentication bearerAuth required
58021
+ // http bearer authentication required
58022
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58023
+
58024
+
58025
+
58026
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58028
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58029
+
58030
+ return {
58031
+ url: toPathString(localVarUrlObj),
58032
+ options: localVarRequestOptions,
58033
+ };
58034
+ },
58035
+ /**
58036
+ * Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
58037
+ * @summary Validate a custom domain for several services
58038
+ * @param {string} environmentId Environment ID
58039
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58040
+ * @param {*} [options] Override http request option.
58041
+ * @throws {RequiredError}
58042
+ */
58043
+ validateEnvironmentCustomDomain: async (environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58044
+ // verify required parameter 'environmentId' is not null or undefined
58045
+ assertParamExists('validateEnvironmentCustomDomain', 'environmentId', environmentId)
58046
+ // verify required parameter 'customDomainValidationRequest' is not null or undefined
58047
+ assertParamExists('validateEnvironmentCustomDomain', 'customDomainValidationRequest', customDomainValidationRequest)
58048
+ const localVarPath = `/environment/{environmentId}/customDomain/validate`
58049
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
58050
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58051
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58052
+ let baseOptions;
58053
+ if (configuration) {
58054
+ baseOptions = configuration.baseOptions;
58055
+ }
58056
+
58057
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
58058
+ const localVarHeaderParameter = {} as any;
58059
+ const localVarQueryParameter = {} as any;
58060
+
58061
+ // authentication ApiKeyAuth required
58062
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58063
+
58064
+ // authentication bearerAuth required
58065
+ // http bearer authentication required
58066
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58067
+
58068
+
58069
+
58070
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58071
+
58072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58074
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58075
+ localVarRequestOptions.data = serializeDataIfNeeded(customDomainValidationRequest, localVarRequestOptions, configuration)
58076
+
58077
+ return {
58078
+ url: toPathString(localVarUrlObj),
58079
+ options: localVarRequestOptions,
58080
+ };
58081
+ },
58082
+ }
58083
+ };
58084
+
58085
+ /**
58086
+ * EnvironmentCustomDomainApi - functional programming interface
58087
+ * @export
58088
+ */
58089
+ export const EnvironmentCustomDomainApiFp = function(configuration?: Configuration) {
58090
+ const localVarAxiosParamCreator = EnvironmentCustomDomainApiAxiosParamCreator(configuration)
58091
+ return {
58092
+ /**
58093
+ * Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
58094
+ * @summary Create a custom domain for several services
58095
+ * @param {string} environmentId Environment ID
58096
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58097
+ * @param {*} [options] Override http request option.
58098
+ * @throws {RequiredError}
58099
+ */
58100
+ async createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCustomDomainResponse>> {
58101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options);
58102
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58103
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.createEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58104
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58105
+ },
58106
+ /**
58107
+ * Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
58108
+ * @summary Delete a custom domain of several services
58109
+ * @param {string} environmentId Environment ID
58110
+ * @param {string} domainName The current name of the custom domain.
58111
+ * @param {*} [options] Override http request option.
58112
+ * @throws {RequiredError}
58113
+ */
58114
+ async deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainDeletionResponse>> {
58115
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentCustomDomain(environmentId, domainName, options);
58116
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58117
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.deleteEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58118
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58119
+ },
58120
+ /**
58121
+ * Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
58122
+ * @summary Edit a custom domain of several services
58123
+ * @param {string} environmentId Environment ID
58124
+ * @param {string} domainName The current name of the custom domain.
58125
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58126
+ * @param {*} [options] Override http request option.
58127
+ * @throws {RequiredError}
58128
+ */
58129
+ async editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCustomDomainResponse>> {
58130
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options);
58131
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58132
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.editEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58133
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58134
+ },
58135
+ /**
58136
+ * The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
58137
+ * @summary Get the CNAME target of the environment
58138
+ * @param {string} environmentId Environment ID
58139
+ * @param {*} [options] Override http request option.
58140
+ * @throws {RequiredError}
58141
+ */
58142
+ async getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCnameTargetResponse>> {
58143
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentCustomDomainCnameTarget(environmentId, options);
58144
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58145
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.getEnvironmentCustomDomainCnameTarget']?.[localVarOperationServerIndex]?.url;
58146
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58147
+ },
58148
+ /**
58149
+ * List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
58150
+ * @summary List environment custom domains
58151
+ * @param {string} environmentId Environment ID
58152
+ * @param {*} [options] Override http request option.
58153
+ * @throws {RequiredError}
58154
+ */
58155
+ async listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomDomainResponseList>> {
58156
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentCustomDomain(environmentId, options);
58157
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58158
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.listEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58160
+ },
58161
+ /**
58162
+ * Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
58163
+ * @summary Validate a custom domain for several services
58164
+ * @param {string} environmentId Environment ID
58165
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58166
+ * @param {*} [options] Override http request option.
58167
+ * @throws {RequiredError}
58168
+ */
58169
+ async validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainErrorsResponse>> {
58170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options);
58171
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58172
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.validateEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58173
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58174
+ },
58175
+ }
58176
+ };
58177
+
58178
+ /**
58179
+ * EnvironmentCustomDomainApi - factory interface
58180
+ * @export
58181
+ */
58182
+ export const EnvironmentCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
58183
+ const localVarFp = EnvironmentCustomDomainApiFp(configuration)
58184
+ return {
58185
+ /**
58186
+ * Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
58187
+ * @summary Create a custom domain for several services
58188
+ * @param {string} environmentId Environment ID
58189
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58190
+ * @param {*} [options] Override http request option.
58191
+ * @throws {RequiredError}
58192
+ */
58193
+ createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCustomDomainResponse> {
58194
+ return localVarFp.createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options).then((request) => request(axios, basePath));
58195
+ },
58196
+ /**
58197
+ * Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
58198
+ * @summary Delete a custom domain of several services
58199
+ * @param {string} environmentId Environment ID
58200
+ * @param {string} domainName The current name of the custom domain.
58201
+ * @param {*} [options] Override http request option.
58202
+ * @throws {RequiredError}
58203
+ */
58204
+ deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainDeletionResponse> {
58205
+ return localVarFp.deleteEnvironmentCustomDomain(environmentId, domainName, options).then((request) => request(axios, basePath));
58206
+ },
58207
+ /**
58208
+ * Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
58209
+ * @summary Edit a custom domain of several services
58210
+ * @param {string} environmentId Environment ID
58211
+ * @param {string} domainName The current name of the custom domain.
58212
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58213
+ * @param {*} [options] Override http request option.
58214
+ * @throws {RequiredError}
58215
+ */
58216
+ editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCustomDomainResponse> {
58217
+ return localVarFp.editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options).then((request) => request(axios, basePath));
58218
+ },
58219
+ /**
58220
+ * The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
58221
+ * @summary Get the CNAME target of the environment
58222
+ * @param {string} environmentId Environment ID
58223
+ * @param {*} [options] Override http request option.
58224
+ * @throws {RequiredError}
58225
+ */
58226
+ getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCnameTargetResponse> {
58227
+ return localVarFp.getEnvironmentCustomDomainCnameTarget(environmentId, options).then((request) => request(axios, basePath));
58228
+ },
58229
+ /**
58230
+ * List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
58231
+ * @summary List environment custom domains
58232
+ * @param {string} environmentId Environment ID
58233
+ * @param {*} [options] Override http request option.
58234
+ * @throws {RequiredError}
58235
+ */
58236
+ listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationCustomDomainResponseList> {
58237
+ return localVarFp.listEnvironmentCustomDomain(environmentId, options).then((request) => request(axios, basePath));
58238
+ },
58239
+ /**
58240
+ * Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
58241
+ * @summary Validate a custom domain for several services
58242
+ * @param {string} environmentId Environment ID
58243
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58244
+ * @param {*} [options] Override http request option.
58245
+ * @throws {RequiredError}
58246
+ */
58247
+ validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainErrorsResponse> {
58248
+ return localVarFp.validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options).then((request) => request(axios, basePath));
58249
+ },
58250
+ };
58251
+ };
58252
+
58253
+ /**
58254
+ * EnvironmentCustomDomainApi - object-oriented interface
58255
+ * @export
58256
+ * @class EnvironmentCustomDomainApi
58257
+ * @extends {BaseAPI}
58258
+ */
58259
+ export class EnvironmentCustomDomainApi extends BaseAPI {
58260
+ /**
58261
+ * Create a custom domain on several services of the environment at once: one custom domain and one `/` route per service, served by the service default port. If any service conflicts, nothing is created and the response lists every conflict. More than one service is refused with a 400 on an environment whose `routing_capabilities.can_share` is `false`. Nothing is deployed: redeploy the services listed in `impacted_services` to serve the domain.
58262
+ * @summary Create a custom domain for several services
58263
+ * @param {string} environmentId Environment ID
58264
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58265
+ * @param {*} [options] Override http request option.
58266
+ * @throws {RequiredError}
58267
+ * @memberof EnvironmentCustomDomainApi
58268
+ */
58269
+ public createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig) {
58270
+ return EnvironmentCustomDomainApiFp(this.configuration).createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options).then((request) => request(this.axios, this.basePath));
58271
+ }
58272
+
58273
+ /**
58274
+ * Delete every custom domain row of `domainName` in the environment, for every service routing it, with their routes. To remove the domain from one service only, use the delete endpoint of that service. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
58275
+ * @summary Delete a custom domain of several services
58276
+ * @param {string} environmentId Environment ID
58277
+ * @param {string} domainName The current name of the custom domain.
58278
+ * @param {*} [options] Override http request option.
58279
+ * @throws {RequiredError}
58280
+ * @memberof EnvironmentCustomDomainApi
58281
+ */
58282
+ public deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig) {
58283
+ return EnvironmentCustomDomainApiFp(this.configuration).deleteEnvironmentCustomDomain(environmentId, domainName, options).then((request) => request(this.axios, this.basePath));
58284
+ }
58285
+
58286
+ /**
58287
+ * Replace every custom domain row of `domainName` in the environment with the state of the body: * services not in the body lose their row and its routes; * services new in the body get a row and a `/` route; * kept services get the name, `generate_certificate` and `use_cdn` of the body. Renaming is allowed and is checked like a creation. If any service conflicts, nothing changes and the response lists every conflict. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
58288
+ * @summary Edit a custom domain of several services
58289
+ * @param {string} environmentId Environment ID
58290
+ * @param {string} domainName The current name of the custom domain.
58291
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58292
+ * @param {*} [options] Override http request option.
58293
+ * @throws {RequiredError}
58294
+ * @memberof EnvironmentCustomDomainApi
58295
+ */
58296
+ public editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig) {
58297
+ return EnvironmentCustomDomainApiFp(this.configuration).editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options).then((request) => request(this.axios, this.basePath));
58298
+ }
58299
+
58300
+ /**
58301
+ * The hostname a new custom domain of the environment must point to with a CNAME record. Returns 404 until the environment is deployed for the first time and has its router.
58302
+ * @summary Get the CNAME target of the environment
58303
+ * @param {string} environmentId Environment ID
58304
+ * @param {*} [options] Override http request option.
58305
+ * @throws {RequiredError}
58306
+ * @memberof EnvironmentCustomDomainApi
58307
+ */
58308
+ public getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig) {
58309
+ return EnvironmentCustomDomainApiFp(this.configuration).getEnvironmentCustomDomainCnameTarget(environmentId, options).then((request) => request(this.axios, this.basePath));
58310
+ }
58311
+
58312
+ /**
58313
+ * List the custom domains of the environment. Each result is one domain name, with every route that serves it: a domain shared by several services is a single result. The items are the same as in the organization list. The list is not paginated.
58314
+ * @summary List environment custom domains
58315
+ * @param {string} environmentId Environment ID
58316
+ * @param {*} [options] Override http request option.
58317
+ * @throws {RequiredError}
58318
+ * @memberof EnvironmentCustomDomainApi
58319
+ */
58320
+ public listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig) {
58321
+ return EnvironmentCustomDomainApiFp(this.configuration).listEnvironmentCustomDomain(environmentId, options).then((request) => request(this.axios, this.basePath));
58322
+ }
58323
+
58324
+ /**
58325
+ * Run the checks of a custom domain creation or edit for several services, without saving anything. Returns every conflict, not only the first one. The services of the body are checked against each other as well as against the existing domains. It takes no lock: a later creation can still fail if the domains change meanwhile. A service outside the environment returns a 403.
58326
+ * @summary Validate a custom domain for several services
58327
+ * @param {string} environmentId Environment ID
58328
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58329
+ * @param {*} [options] Override http request option.
58330
+ * @throws {RequiredError}
58331
+ * @memberof EnvironmentCustomDomainApi
58332
+ */
58333
+ public validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig) {
58334
+ return EnvironmentCustomDomainApiFp(this.configuration).validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options).then((request) => request(this.axios, this.basePath));
58335
+ }
58336
+ }
58337
+
58338
+
58339
+
57118
58340
  /**
57119
58341
  * EnvironmentDeploymentHistoryApi - axios parameter creator
57120
58342
  * @export
@@ -61141,7 +62363,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61141
62363
  };
61142
62364
  },
61143
62365
  /**
61144
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62366
+ * Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
61145
62367
  * @summary Add custom domain to the helm.
61146
62368
  * @param {string} helmId Helm ID
61147
62369
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61186,7 +62408,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61186
62408
  };
61187
62409
  },
61188
62410
  /**
61189
- * To delete an CustomDomain you must have the project user permission
62411
+ * Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
61190
62412
  * @summary Delete a Custom Domain
61191
62413
  * @param {string} helmId Helm ID
61192
62414
  * @param {string} customDomainId Custom Domain ID
@@ -61231,7 +62453,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61231
62453
  };
61232
62454
  },
61233
62455
  /**
61234
- * To edit a Custom Domain you must have the project user permission
62456
+ * Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
61235
62457
  * @summary Edit a Custom Domain
61236
62458
  * @param {string} helmId Helm ID
61237
62459
  * @param {string} customDomainId Custom Domain ID
@@ -61356,6 +62578,47 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61356
62578
 
61357
62579
 
61358
62580
 
62581
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62582
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62583
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62584
+
62585
+ return {
62586
+ url: toPathString(localVarUrlObj),
62587
+ options: localVarRequestOptions,
62588
+ };
62589
+ },
62590
+ /**
62591
+ * List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
62592
+ * @summary List the domains of the helm
62593
+ * @param {string} helmId Helm ID
62594
+ * @param {*} [options] Override http request option.
62595
+ * @throws {RequiredError}
62596
+ */
62597
+ listHelmCustomDomainView: async (helmId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62598
+ // verify required parameter 'helmId' is not null or undefined
62599
+ assertParamExists('listHelmCustomDomainView', 'helmId', helmId)
62600
+ const localVarPath = `/helm/{helmId}/customDomainView`
62601
+ .replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)));
62602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62604
+ let baseOptions;
62605
+ if (configuration) {
62606
+ baseOptions = configuration.baseOptions;
62607
+ }
62608
+
62609
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62610
+ const localVarHeaderParameter = {} as any;
62611
+ const localVarQueryParameter = {} as any;
62612
+
62613
+ // authentication ApiKeyAuth required
62614
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
62615
+
62616
+ // authentication bearerAuth required
62617
+ // http bearer authentication required
62618
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
62619
+
62620
+
62621
+
61359
62622
  setSearchParams(localVarUrlObj, localVarQueryParameter);
61360
62623
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61361
62624
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -61389,7 +62652,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61389
62652
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61390
62653
  },
61391
62654
  /**
61392
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62655
+ * Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
61393
62656
  * @summary Add custom domain to the helm.
61394
62657
  * @param {string} helmId Helm ID
61395
62658
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61403,7 +62666,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61403
62666
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61404
62667
  },
61405
62668
  /**
61406
- * To delete an CustomDomain you must have the project user permission
62669
+ * Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
61407
62670
  * @summary Delete a Custom Domain
61408
62671
  * @param {string} helmId Helm ID
61409
62672
  * @param {string} customDomainId Custom Domain ID
@@ -61417,7 +62680,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61417
62680
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61418
62681
  },
61419
62682
  /**
61420
- * To edit a Custom Domain you must have the project user permission
62683
+ * Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
61421
62684
  * @summary Edit a Custom Domain
61422
62685
  * @param {string} helmId Helm ID
61423
62686
  * @param {string} customDomainId Custom Domain ID
@@ -61458,6 +62721,19 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61458
62721
  const localVarOperationServerBasePath = operationServerMap['HelmCustomDomainApi.listHelmCustomDomain']?.[localVarOperationServerIndex]?.url;
61459
62722
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61460
62723
  },
62724
+ /**
62725
+ * List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
62726
+ * @summary List the domains of the helm
62727
+ * @param {string} helmId Helm ID
62728
+ * @param {*} [options] Override http request option.
62729
+ * @throws {RequiredError}
62730
+ */
62731
+ async listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
62732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listHelmCustomDomainView(helmId, options);
62733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
62734
+ const localVarOperationServerBasePath = operationServerMap['HelmCustomDomainApi.listHelmCustomDomainView']?.[localVarOperationServerIndex]?.url;
62735
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62736
+ },
61461
62737
  }
61462
62738
  };
61463
62739
 
@@ -61479,7 +62755,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61479
62755
  return localVarFp.checkHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
61480
62756
  },
61481
62757
  /**
61482
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62758
+ * Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
61483
62759
  * @summary Add custom domain to the helm.
61484
62760
  * @param {string} helmId Helm ID
61485
62761
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61490,7 +62766,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61490
62766
  return localVarFp.createHelmCustomDomain(helmId, customDomainRequest, options).then((request) => request(axios, basePath));
61491
62767
  },
61492
62768
  /**
61493
- * To delete an CustomDomain you must have the project user permission
62769
+ * Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
61494
62770
  * @summary Delete a Custom Domain
61495
62771
  * @param {string} helmId Helm ID
61496
62772
  * @param {string} customDomainId Custom Domain ID
@@ -61501,7 +62777,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61501
62777
  return localVarFp.deleteHelmCustomDomain(helmId, customDomainId, options).then((request) => request(axios, basePath));
61502
62778
  },
61503
62779
  /**
61504
- * To edit a Custom Domain you must have the project user permission
62780
+ * Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
61505
62781
  * @summary Edit a Custom Domain
61506
62782
  * @param {string} helmId Helm ID
61507
62783
  * @param {string} customDomainId Custom Domain ID
@@ -61533,6 +62809,16 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61533
62809
  listHelmCustomDomain(helmId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
61534
62810
  return localVarFp.listHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
61535
62811
  },
62812
+ /**
62813
+ * List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
62814
+ * @summary List the domains of the helm
62815
+ * @param {string} helmId Helm ID
62816
+ * @param {*} [options] Override http request option.
62817
+ * @throws {RequiredError}
62818
+ */
62819
+ listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
62820
+ return localVarFp.listHelmCustomDomainView(helmId, options).then((request) => request(axios, basePath));
62821
+ },
61536
62822
  };
61537
62823
  };
61538
62824
 
@@ -61556,7 +62842,7 @@ export class HelmCustomDomainApi extends BaseAPI {
61556
62842
  }
61557
62843
 
61558
62844
  /**
61559
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62845
+ * Add a custom domain to this helm in order not to use qovery autogenerated domain. A conflict with another service returns every reason in `errors`.
61560
62846
  * @summary Add custom domain to the helm.
61561
62847
  * @param {string} helmId Helm ID
61562
62848
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61569,7 +62855,7 @@ export class HelmCustomDomainApi extends BaseAPI {
61569
62855
  }
61570
62856
 
61571
62857
  /**
61572
- * To delete an CustomDomain you must have the project user permission
62858
+ * Remove the custom domain from this helm only, with its routes. Other services routing the same domain name keep it. To delete the domain for every service, use `deleteEnvironmentCustomDomain`. The project user permission is required.
61573
62859
  * @summary Delete a Custom Domain
61574
62860
  * @param {string} helmId Helm ID
61575
62861
  * @param {string} customDomainId Custom Domain ID
@@ -61582,7 +62868,7 @@ export class HelmCustomDomainApi extends BaseAPI {
61582
62868
  }
61583
62869
 
61584
62870
  /**
61585
- * To edit a Custom Domain you must have the project user permission
62871
+ * Edit a custom domain of the helm. The project user permission is required. When other services route the same domain name in the environment, a change of the name, `generate_certificate` or `use_cdn` applies to all of them. A conflict returns every reason in `errors`. Nothing is deployed: redeploy the services routing the domain to apply the change.
61586
62872
  * @summary Edit a Custom Domain
61587
62873
  * @param {string} helmId Helm ID
61588
62874
  * @param {string} customDomainId Custom Domain ID
@@ -61619,6 +62905,18 @@ export class HelmCustomDomainApi extends BaseAPI {
61619
62905
  public listHelmCustomDomain(helmId: string, options?: RawAxiosRequestConfig) {
61620
62906
  return HelmCustomDomainApiFp(this.configuration).listHelmCustomDomain(helmId, options).then((request) => request(this.axios, this.basePath));
61621
62907
  }
62908
+
62909
+ /**
62910
+ * List the domains of the helm, as shown on its settings page: its Qovery domain (`kind` `QOVERY`, read-only) and each custom domain it routes (`kind` `CUSTOM`). A custom domain also lists the other services routing it, so a client can tell removing this helm\'s route from deleting the domain.
62911
+ * @summary List the domains of the helm
62912
+ * @param {string} helmId Helm ID
62913
+ * @param {*} [options] Override http request option.
62914
+ * @throws {RequiredError}
62915
+ * @memberof HelmCustomDomainApi
62916
+ */
62917
+ public listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig) {
62918
+ return HelmCustomDomainApiFp(this.configuration).listHelmCustomDomainView(helmId, options).then((request) => request(this.axios, this.basePath));
62919
+ }
61622
62920
  }
61623
62921
 
61624
62922
 
@@ -71434,6 +72732,53 @@ export class OrganizationClusterLockApi extends BaseAPI {
71434
72732
  */
71435
72733
  export const OrganizationCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
71436
72734
  return {
72735
+ /**
72736
+ * Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
72737
+ * @summary Delete custom domains of several environments
72738
+ * @param {string} organizationId Organization ID
72739
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72740
+ * @param {*} [options] Override http request option.
72741
+ * @throws {RequiredError}
72742
+ */
72743
+ bulkDeleteOrganizationCustomDomain: async (organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
72744
+ // verify required parameter 'organizationId' is not null or undefined
72745
+ assertParamExists('bulkDeleteOrganizationCustomDomain', 'organizationId', organizationId)
72746
+ // verify required parameter 'customDomainBulkDeleteItemRequest' is not null or undefined
72747
+ assertParamExists('bulkDeleteOrganizationCustomDomain', 'customDomainBulkDeleteItemRequest', customDomainBulkDeleteItemRequest)
72748
+ const localVarPath = `/organization/{organizationId}/customDomain/bulkDelete`
72749
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
72750
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72751
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72752
+ let baseOptions;
72753
+ if (configuration) {
72754
+ baseOptions = configuration.baseOptions;
72755
+ }
72756
+
72757
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72758
+ const localVarHeaderParameter = {} as any;
72759
+ const localVarQueryParameter = {} as any;
72760
+
72761
+ // authentication ApiKeyAuth required
72762
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
72763
+
72764
+ // authentication bearerAuth required
72765
+ // http bearer authentication required
72766
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
72767
+
72768
+
72769
+
72770
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72771
+
72772
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72773
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72774
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72775
+ localVarRequestOptions.data = serializeDataIfNeeded(customDomainBulkDeleteItemRequest, localVarRequestOptions, configuration)
72776
+
72777
+ return {
72778
+ url: toPathString(localVarUrlObj),
72779
+ options: localVarRequestOptions,
72780
+ };
72781
+ },
71437
72782
  /**
71438
72783
  * List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
71439
72784
  * @summary List organization custom domains
@@ -71510,6 +72855,20 @@ export const OrganizationCustomDomainApiAxiosParamCreator = function (configurat
71510
72855
  export const OrganizationCustomDomainApiFp = function(configuration?: Configuration) {
71511
72856
  const localVarAxiosParamCreator = OrganizationCustomDomainApiAxiosParamCreator(configuration)
71512
72857
  return {
72858
+ /**
72859
+ * Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
72860
+ * @summary Delete custom domains of several environments
72861
+ * @param {string} organizationId Organization ID
72862
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72863
+ * @param {*} [options] Override http request option.
72864
+ * @throws {RequiredError}
72865
+ */
72866
+ async bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainDeletionResponse>> {
72867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options);
72868
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
72869
+ const localVarOperationServerBasePath = operationServerMap['OrganizationCustomDomainApi.bulkDeleteOrganizationCustomDomain']?.[localVarOperationServerIndex]?.url;
72870
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
72871
+ },
71513
72872
  /**
71514
72873
  * List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
71515
72874
  * @summary List organization custom domains
@@ -71538,6 +72897,17 @@ export const OrganizationCustomDomainApiFp = function(configuration?: Configurat
71538
72897
  export const OrganizationCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
71539
72898
  const localVarFp = OrganizationCustomDomainApiFp(configuration)
71540
72899
  return {
72900
+ /**
72901
+ * Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
72902
+ * @summary Delete custom domains of several environments
72903
+ * @param {string} organizationId Organization ID
72904
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72905
+ * @param {*} [options] Override http request option.
72906
+ * @throws {RequiredError}
72907
+ */
72908
+ bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainDeletionResponse> {
72909
+ return localVarFp.bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options).then((request) => request(axios, basePath));
72910
+ },
71541
72911
  /**
71542
72912
  * List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
71543
72913
  * @summary List organization custom domains
@@ -71563,6 +72933,19 @@ export const OrganizationCustomDomainApiFactory = function (configuration?: Conf
71563
72933
  * @extends {BaseAPI}
71564
72934
  */
71565
72935
  export class OrganizationCustomDomainApi extends BaseAPI {
72936
+ /**
72937
+ * Delete custom domains of several environments of the organization at once: all of them, or none. Each item deletes every row of the domain name in its environment, for every service routing it, with their routes. The caller needs the permission to manage each environment. An environment of another organization refuses the whole call with a 403, and nothing is deleted. Nothing is deployed: redeploy the services listed in `impacted_services` to apply the change.
72938
+ * @summary Delete custom domains of several environments
72939
+ * @param {string} organizationId Organization ID
72940
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72941
+ * @param {*} [options] Override http request option.
72942
+ * @throws {RequiredError}
72943
+ * @memberof OrganizationCustomDomainApi
72944
+ */
72945
+ public bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig) {
72946
+ return OrganizationCustomDomainApiFp(this.configuration).bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options).then((request) => request(this.axios, this.basePath));
72947
+ }
72948
+
71566
72949
  /**
71567
72950
  * List the custom domains of every environment of the organization. Only organization admins can call it. Each result is one domain name of one environment, with every route that serves it: a domain shared by several services of an environment is a single result. Results are sorted by project name, environment name, environment id, then domain. A page never splits a domain.
71568
72951
  * @summary List organization custom domains