qovery-typescript-axios 1.1.1047 → 1.1.1049

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
@@ -27323,7 +27725,7 @@ export interface SecretResponseList {
27323
27725
  'results'?: Array<Secret>;
27324
27726
  }
27325
27727
  /**
27326
- * Cloud credential of the organization that the cluster runs on, of the same provider as the cluster. This operation only takes and returns its id.
27728
+ * Cloud credential of the organization that the cluster runs on, of the same provider as the cluster; an on-premise credential for the on-premise providers. This operation only takes and returns its id.
27327
27729
  * @export
27328
27730
  * @interface SelfManagedClusterCredentials
27329
27731
  */
@@ -27385,7 +27787,45 @@ export interface SelfManagedClusterPlatformSelection {
27385
27787
  'managedConfig'?: { [key: string]: { [key: string]: any; }; };
27386
27788
  }
27387
27789
  /**
27388
- * Default registry of the cluster, derived from its cloud credential and region: ECR on AWS, Artifact Registry on GCP, Scaleway Container Registry on Scaleway.
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 registry without credentials.
27791
+ * @export
27792
+ * @interface SelfManagedClusterRegistryCredentialsRequest
27793
+ */
27794
+ export interface SelfManagedClusterRegistryCredentialsRequest {
27795
+ /**
27796
+ *
27797
+ * @type {string}
27798
+ * @memberof SelfManagedClusterRegistryCredentialsRequest
27799
+ */
27800
+ 'username': string;
27801
+ /**
27802
+ *
27803
+ * @type {string}
27804
+ * @memberof SelfManagedClusterRegistryCredentialsRequest
27805
+ */
27806
+ 'password': string;
27807
+ }
27808
+ /**
27809
+ * 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.
27810
+ * @export
27811
+ * @interface SelfManagedClusterRegistryRequest
27812
+ */
27813
+ export interface SelfManagedClusterRegistryRequest {
27814
+ /**
27815
+ * URL of the registry: `http` or `https` scheme, host and optional port only, without user info, path, query or fragment, and not localhost.
27816
+ * @type {string}
27817
+ * @memberof SelfManagedClusterRegistryRequest
27818
+ */
27819
+ 'url': string;
27820
+ /**
27821
+ *
27822
+ * @type {SelfManagedClusterRegistryCredentialsRequest}
27823
+ * @memberof SelfManagedClusterRegistryRequest
27824
+ */
27825
+ 'credentials'?: SelfManagedClusterRegistryCredentialsRequest;
27826
+ }
27827
+ /**
27828
+ * 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.
27389
27829
  * @export
27390
27830
  * @interface SelfManagedClusterRegistryResponse
27391
27831
  */
@@ -27424,13 +27864,13 @@ export interface SelfManagedClusterRequest {
27424
27864
  */
27425
27865
  'production'?: boolean;
27426
27866
  /**
27427
- * Cloud provider of the cluster. The cluster kind is EKS_SELF_MANAGED on AWS, GKE_SELF_MANAGED on GCP and SCW_SELF_MANAGED on SCW.
27867
+ * Cloud provider of the cluster. The cluster kind is EKS_SELF_MANAGED on AWS, GKE_SELF_MANAGED on GCP and SCW_SELF_MANAGED on SCW. ON_PREMISE, HETZNER, OVH, CIVO, ORACLE and IBM are the on-premise providers, for any other Kubernetes: the cluster kind is SELF_MANAGED. They are not generally available yet and answer 400 outside a short list of Qovery test organizations.
27428
27868
  * @type {string}
27429
27869
  * @memberof SelfManagedClusterRequest
27430
27870
  */
27431
27871
  'provider': SelfManagedClusterRequestProviderEnum;
27432
27872
  /**
27433
- * Region of the provider known to Qovery; a zone such as `fr-par-1` on Scaleway.
27873
+ * Region of the provider known to Qovery; a zone such as `fr-par-1` on Scaleway; `on-premise` for the on-premise providers.
27434
27874
  * @type {string}
27435
27875
  * @memberof SelfManagedClusterRequest
27436
27876
  */
@@ -27453,12 +27893,24 @@ export interface SelfManagedClusterRequest {
27453
27893
  * @memberof SelfManagedClusterRequest
27454
27894
  */
27455
27895
  'clusterInputs'?: { [key: string]: { [key: string]: string; }; };
27896
+ /**
27897
+ *
27898
+ * @type {SelfManagedClusterRegistryRequest}
27899
+ * @memberof SelfManagedClusterRequest
27900
+ */
27901
+ 'registry'?: SelfManagedClusterRegistryRequest;
27456
27902
  }
27457
27903
 
27458
27904
  export const SelfManagedClusterRequestProviderEnum = {
27459
27905
  AWS: 'AWS',
27460
27906
  GCP: 'GCP',
27461
- SCW: 'SCW'
27907
+ SCW: 'SCW',
27908
+ ON_PREMISE: 'ON_PREMISE',
27909
+ HETZNER: 'HETZNER',
27910
+ OVH: 'OVH',
27911
+ CIVO: 'CIVO',
27912
+ ORACLE: 'ORACLE',
27913
+ IBM: 'IBM'
27462
27914
  } as const;
27463
27915
 
27464
27916
  export type SelfManagedClusterRequestProviderEnum = typeof SelfManagedClusterRequestProviderEnum[keyof typeof SelfManagedClusterRequestProviderEnum];
@@ -27684,6 +28136,123 @@ export const ServiceDeploymentStatusEnum = {
27684
28136
  export type ServiceDeploymentStatusEnum = typeof ServiceDeploymentStatusEnum[keyof typeof ServiceDeploymentStatusEnum];
27685
28137
 
27686
28138
 
28139
+ /**
28140
+ * A custom domain the service routes, possibly shared with other services of the environment.
28141
+ * @export
28142
+ * @interface ServiceDomainCustomResponse
28143
+ */
28144
+ export interface ServiceDomainCustomResponse {
28145
+ /**
28146
+ *
28147
+ * @type {ServiceDomainKindEnum}
28148
+ * @memberof ServiceDomainCustomResponse
28149
+ */
28150
+ 'kind': ServiceDomainKindEnum;
28151
+ /**
28152
+ *
28153
+ * @type {string}
28154
+ * @memberof ServiceDomainCustomResponse
28155
+ */
28156
+ 'domain': string;
28157
+ /**
28158
+ * Whether Qovery generates a certificate for the domain.
28159
+ * @type {boolean}
28160
+ * @memberof ServiceDomainCustomResponse
28161
+ */
28162
+ 'generate_certificate': boolean;
28163
+ /**
28164
+ * Whether the domain is behind a CDN.
28165
+ * @type {boolean}
28166
+ * @memberof ServiceDomainCustomResponse
28167
+ */
28168
+ 'use_cdn': boolean;
28169
+ /**
28170
+ * The hostnames the domain must point to with a CNAME record. One value, except for a legacy domain spread over several service routers.
28171
+ * @type {Array<string>}
28172
+ * @memberof ServiceDomainCustomResponse
28173
+ */
28174
+ 'cname_targets': Array<string>;
28175
+ /**
28176
+ * The hostnames served by the routes of this service only.
28177
+ * @type {Array<GeneratedHostnameResponse>}
28178
+ * @memberof ServiceDomainCustomResponse
28179
+ */
28180
+ 'generated_hostnames': Array<GeneratedHostnameResponse>;
28181
+ /**
28182
+ * Every route of the domain, the routes of the other services included.
28183
+ * @type {Array<CustomDomainRouteResponse>}
28184
+ * @memberof ServiceDomainCustomResponse
28185
+ */
28186
+ 'routes': Array<CustomDomainRouteResponse>;
28187
+ /**
28188
+ * The other services routing the domain. When it is not empty, removing this service\'s route keeps the domain for them.
28189
+ * @type {Array<CustomDomainServiceResponse>}
28190
+ * @memberof ServiceDomainCustomResponse
28191
+ */
28192
+ 'other_services': Array<CustomDomainServiceResponse>;
28193
+ }
28194
+
28195
+
28196
+ /**
28197
+ * * `QOVERY`: the domain Qovery generates for the service. It cannot be edited or deleted. * `CUSTOM`: a custom domain the service routes.
28198
+ * @export
28199
+ * @enum {string}
28200
+ */
28201
+
28202
+ export const ServiceDomainKindEnum = {
28203
+ QOVERY: 'QOVERY',
28204
+ CUSTOM: 'CUSTOM'
28205
+ } as const;
28206
+
28207
+ export type ServiceDomainKindEnum = typeof ServiceDomainKindEnum[keyof typeof ServiceDomainKindEnum];
28208
+
28209
+
28210
+ /**
28211
+ * The read-only domain Qovery generates for the service.
28212
+ * @export
28213
+ * @interface ServiceDomainQoveryResponse
28214
+ */
28215
+ export interface ServiceDomainQoveryResponse {
28216
+ /**
28217
+ *
28218
+ * @type {ServiceDomainKindEnum}
28219
+ * @memberof ServiceDomainQoveryResponse
28220
+ */
28221
+ 'kind': ServiceDomainKindEnum;
28222
+ /**
28223
+ *
28224
+ * @type {string}
28225
+ * @memberof ServiceDomainQoveryResponse
28226
+ */
28227
+ 'domain': string;
28228
+ /**
28229
+ *
28230
+ * @type {Array<GeneratedHostnameResponse>}
28231
+ * @memberof ServiceDomainQoveryResponse
28232
+ */
28233
+ 'generated_hostnames': Array<GeneratedHostnameResponse>;
28234
+ }
28235
+
28236
+
28237
+ /**
28238
+ * @type ServiceDomainResponse
28239
+ * @export
28240
+ */
28241
+ export type ServiceDomainResponse = { kind: 'CUSTOM' } & ServiceDomainCustomResponse | { kind: 'QOVERY' } & ServiceDomainQoveryResponse;
28242
+
28243
+ /**
28244
+ *
28245
+ * @export
28246
+ * @interface ServiceDomainResponseList
28247
+ */
28248
+ export interface ServiceDomainResponseList {
28249
+ /**
28250
+ *
28251
+ * @type {Array<ServiceDomainResponse>}
28252
+ * @memberof ServiceDomainResponseList
28253
+ */
28254
+ 'results': Array<ServiceDomainResponse>;
28255
+ }
27687
28256
  /**
27688
28257
  *
27689
28258
  * @export
@@ -34351,7 +34920,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34351
34920
  };
34352
34921
  },
34353
34922
  /**
34354
- * Add a custom domain to this application in order not to use qovery autogenerated domain
34923
+ * 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`.
34355
34924
  * @summary Add custom domain to the application.
34356
34925
  * @param {string} applicationId Application ID
34357
34926
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34396,7 +34965,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34396
34965
  };
34397
34966
  },
34398
34967
  /**
34399
- * To delete an CustomDomain you must have the project user permission
34968
+ * 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.
34400
34969
  * @summary Delete a Custom Domain
34401
34970
  * @param {string} applicationId Application ID
34402
34971
  * @param {string} customDomainId Custom Domain ID
@@ -34441,7 +35010,7 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34441
35010
  };
34442
35011
  },
34443
35012
  /**
34444
- * To edit a Custom Domain you must have the project user permission
35013
+ * 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.
34445
35014
  * @summary Edit a Custom Domain
34446
35015
  * @param {string} applicationId Application ID
34447
35016
  * @param {string} customDomainId Custom Domain ID
@@ -34566,6 +35135,47 @@ export const ApplicationCustomDomainApiAxiosParamCreator = function (configurati
34566
35135
 
34567
35136
 
34568
35137
 
35138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
35139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35140
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35141
+
35142
+ return {
35143
+ url: toPathString(localVarUrlObj),
35144
+ options: localVarRequestOptions,
35145
+ };
35146
+ },
35147
+ /**
35148
+ * 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.
35149
+ * @summary List the domains of the application
35150
+ * @param {string} applicationId Application ID
35151
+ * @param {*} [options] Override http request option.
35152
+ * @throws {RequiredError}
35153
+ */
35154
+ listApplicationCustomDomainView: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35155
+ // verify required parameter 'applicationId' is not null or undefined
35156
+ assertParamExists('listApplicationCustomDomainView', 'applicationId', applicationId)
35157
+ const localVarPath = `/application/{applicationId}/customDomainView`
35158
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
35159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35161
+ let baseOptions;
35162
+ if (configuration) {
35163
+ baseOptions = configuration.baseOptions;
35164
+ }
35165
+
35166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
35167
+ const localVarHeaderParameter = {} as any;
35168
+ const localVarQueryParameter = {} as any;
35169
+
35170
+ // authentication ApiKeyAuth required
35171
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
35172
+
35173
+ // authentication bearerAuth required
35174
+ // http bearer authentication required
35175
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
35176
+
35177
+
35178
+
34569
35179
  setSearchParams(localVarUrlObj, localVarQueryParameter);
34570
35180
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34571
35181
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -34599,7 +35209,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34599
35209
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34600
35210
  },
34601
35211
  /**
34602
- * Add a custom domain to this application in order not to use qovery autogenerated domain
35212
+ * 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`.
34603
35213
  * @summary Add custom domain to the application.
34604
35214
  * @param {string} applicationId Application ID
34605
35215
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34613,7 +35223,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34613
35223
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34614
35224
  },
34615
35225
  /**
34616
- * To delete an CustomDomain you must have the project user permission
35226
+ * 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.
34617
35227
  * @summary Delete a Custom Domain
34618
35228
  * @param {string} applicationId Application ID
34619
35229
  * @param {string} customDomainId Custom Domain ID
@@ -34627,7 +35237,7 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34627
35237
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34628
35238
  },
34629
35239
  /**
34630
- * To edit a Custom Domain you must have the project user permission
35240
+ * 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.
34631
35241
  * @summary Edit a Custom Domain
34632
35242
  * @param {string} applicationId Application ID
34633
35243
  * @param {string} customDomainId Custom Domain ID
@@ -34668,6 +35278,19 @@ export const ApplicationCustomDomainApiFp = function(configuration?: Configurati
34668
35278
  const localVarOperationServerBasePath = operationServerMap['ApplicationCustomDomainApi.listApplicationCustomDomain']?.[localVarOperationServerIndex]?.url;
34669
35279
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34670
35280
  },
35281
+ /**
35282
+ * 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.
35283
+ * @summary List the domains of the application
35284
+ * @param {string} applicationId Application ID
35285
+ * @param {*} [options] Override http request option.
35286
+ * @throws {RequiredError}
35287
+ */
35288
+ async listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
35289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationCustomDomainView(applicationId, options);
35290
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35291
+ const localVarOperationServerBasePath = operationServerMap['ApplicationCustomDomainApi.listApplicationCustomDomainView']?.[localVarOperationServerIndex]?.url;
35292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35293
+ },
34671
35294
  }
34672
35295
  };
34673
35296
 
@@ -34689,7 +35312,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34689
35312
  return localVarFp.checkApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
34690
35313
  },
34691
35314
  /**
34692
- * Add a custom domain to this application in order not to use qovery autogenerated domain
35315
+ * 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`.
34693
35316
  * @summary Add custom domain to the application.
34694
35317
  * @param {string} applicationId Application ID
34695
35318
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34700,7 +35323,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34700
35323
  return localVarFp.createApplicationCustomDomain(applicationId, customDomainRequest, options).then((request) => request(axios, basePath));
34701
35324
  },
34702
35325
  /**
34703
- * To delete an CustomDomain you must have the project user permission
35326
+ * 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.
34704
35327
  * @summary Delete a Custom Domain
34705
35328
  * @param {string} applicationId Application ID
34706
35329
  * @param {string} customDomainId Custom Domain ID
@@ -34711,7 +35334,7 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34711
35334
  return localVarFp.deleteCustomDomain(applicationId, customDomainId, options).then((request) => request(axios, basePath));
34712
35335
  },
34713
35336
  /**
34714
- * To edit a Custom Domain you must have the project user permission
35337
+ * 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.
34715
35338
  * @summary Edit a Custom Domain
34716
35339
  * @param {string} applicationId Application ID
34717
35340
  * @param {string} customDomainId Custom Domain ID
@@ -34743,6 +35366,16 @@ export const ApplicationCustomDomainApiFactory = function (configuration?: Confi
34743
35366
  listApplicationCustomDomain(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
34744
35367
  return localVarFp.listApplicationCustomDomain(applicationId, options).then((request) => request(axios, basePath));
34745
35368
  },
35369
+ /**
35370
+ * 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.
35371
+ * @summary List the domains of the application
35372
+ * @param {string} applicationId Application ID
35373
+ * @param {*} [options] Override http request option.
35374
+ * @throws {RequiredError}
35375
+ */
35376
+ listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
35377
+ return localVarFp.listApplicationCustomDomainView(applicationId, options).then((request) => request(axios, basePath));
35378
+ },
34746
35379
  };
34747
35380
  };
34748
35381
 
@@ -34766,7 +35399,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34766
35399
  }
34767
35400
 
34768
35401
  /**
34769
- * Add a custom domain to this application in order not to use qovery autogenerated domain
35402
+ * 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`.
34770
35403
  * @summary Add custom domain to the application.
34771
35404
  * @param {string} applicationId Application ID
34772
35405
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -34779,7 +35412,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34779
35412
  }
34780
35413
 
34781
35414
  /**
34782
- * To delete an CustomDomain you must have the project user permission
35415
+ * 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.
34783
35416
  * @summary Delete a Custom Domain
34784
35417
  * @param {string} applicationId Application ID
34785
35418
  * @param {string} customDomainId Custom Domain ID
@@ -34792,7 +35425,7 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34792
35425
  }
34793
35426
 
34794
35427
  /**
34795
- * To edit a Custom Domain you must have the project user permission
35428
+ * 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.
34796
35429
  * @summary Edit a Custom Domain
34797
35430
  * @param {string} applicationId Application ID
34798
35431
  * @param {string} customDomainId Custom Domain ID
@@ -34829,6 +35462,18 @@ export class ApplicationCustomDomainApi extends BaseAPI {
34829
35462
  public listApplicationCustomDomain(applicationId: string, options?: RawAxiosRequestConfig) {
34830
35463
  return ApplicationCustomDomainApiFp(this.configuration).listApplicationCustomDomain(applicationId, options).then((request) => request(this.axios, this.basePath));
34831
35464
  }
35465
+
35466
+ /**
35467
+ * 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.
35468
+ * @summary List the domains of the application
35469
+ * @param {string} applicationId Application ID
35470
+ * @param {*} [options] Override http request option.
35471
+ * @throws {RequiredError}
35472
+ * @memberof ApplicationCustomDomainApi
35473
+ */
35474
+ public listApplicationCustomDomainView(applicationId: string, options?: RawAxiosRequestConfig) {
35475
+ return ApplicationCustomDomainApiFp(this.configuration).listApplicationCustomDomainView(applicationId, options).then((request) => request(this.axios, this.basePath));
35476
+ }
34832
35477
  }
34833
35478
 
34834
35479
 
@@ -44821,7 +45466,7 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
44821
45466
  };
44822
45467
  },
44823
45468
  /**
44824
- * Creates a self-managed cluster on an existing AWS, GCP or Scaleway cloud credential of the organization. The organization\'s plan must include self-managed clusters, otherwise the call answers 403. 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. Install the Operator next with the cluster\'s Operator bootstrap.
45469
+ * 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.
44825
45470
  * @summary Create a self-managed cluster run by the Qovery Operator
44826
45471
  * @param {string} organizationId Organization ID
44827
45472
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -46687,7 +47332,7 @@ export const ClustersApiFp = function(configuration?: Configuration) {
46687
47332
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
46688
47333
  },
46689
47334
  /**
46690
- * Creates a self-managed cluster on an existing AWS, GCP or Scaleway cloud credential of the organization. The organization\'s plan must include self-managed clusters, otherwise the call answers 403. 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. Install the Operator next with the cluster\'s Operator bootstrap.
47335
+ * 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.
46691
47336
  * @summary Create a self-managed cluster run by the Qovery Operator
46692
47337
  * @param {string} organizationId Organization ID
46693
47338
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -47257,7 +47902,7 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
47257
47902
  return localVarFp.createCluster(organizationId, clusterRequest, options).then((request) => request(axios, basePath));
47258
47903
  },
47259
47904
  /**
47260
- * Creates a self-managed cluster on an existing AWS, GCP or Scaleway cloud credential of the organization. The organization\'s plan must include self-managed clusters, otherwise the call answers 403. 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. Install the Operator next with the cluster\'s Operator bootstrap.
47905
+ * 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.
47261
47906
  * @summary Create a self-managed cluster run by the Qovery Operator
47262
47907
  * @param {string} organizationId Organization ID
47263
47908
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -47718,7 +48363,7 @@ export class ClustersApi extends BaseAPI {
47718
48363
  }
47719
48364
 
47720
48365
  /**
47721
- * Creates a self-managed cluster on an existing AWS, GCP or Scaleway cloud credential of the organization. The organization\'s plan must include self-managed clusters, otherwise the call answers 403. 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. Install the Operator next with the cluster\'s Operator bootstrap.
48366
+ * 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.
47722
48367
  * @summary Create a self-managed cluster run by the Qovery Operator
47723
48368
  * @param {string} organizationId Organization ID
47724
48369
  * @param {SelfManagedClusterRequest} selfManagedClusterRequest
@@ -49070,7 +49715,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49070
49715
  };
49071
49716
  },
49072
49717
  /**
49073
- * Add a custom domain to this container in order not to use qovery autogenerated domain
49718
+ * 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`.
49074
49719
  * @summary Add custom domain to the container.
49075
49720
  * @param {string} containerId Container ID
49076
49721
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49115,7 +49760,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49115
49760
  };
49116
49761
  },
49117
49762
  /**
49118
- * To delete an CustomDomain you must have the project user permission
49763
+ * 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.
49119
49764
  * @summary Delete a Custom Domain
49120
49765
  * @param {string} containerId Container ID
49121
49766
  * @param {string} customDomainId Custom Domain ID
@@ -49160,7 +49805,7 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49160
49805
  };
49161
49806
  },
49162
49807
  /**
49163
- * To edit a Custom Domain you must have the project user permission
49808
+ * 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.
49164
49809
  * @summary Edit a Custom Domain
49165
49810
  * @param {string} containerId Container ID
49166
49811
  * @param {string} customDomainId Custom Domain ID
@@ -49285,6 +49930,47 @@ export const ContainerCustomDomainApiAxiosParamCreator = function (configuration
49285
49930
 
49286
49931
 
49287
49932
 
49933
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
49934
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
49935
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
49936
+
49937
+ return {
49938
+ url: toPathString(localVarUrlObj),
49939
+ options: localVarRequestOptions,
49940
+ };
49941
+ },
49942
+ /**
49943
+ * 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.
49944
+ * @summary List the domains of the container
49945
+ * @param {string} containerId Container ID
49946
+ * @param {*} [options] Override http request option.
49947
+ * @throws {RequiredError}
49948
+ */
49949
+ listContainerCustomDomainView: async (containerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
49950
+ // verify required parameter 'containerId' is not null or undefined
49951
+ assertParamExists('listContainerCustomDomainView', 'containerId', containerId)
49952
+ const localVarPath = `/container/{containerId}/customDomainView`
49953
+ .replace(`{${"containerId"}}`, encodeURIComponent(String(containerId)));
49954
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49955
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49956
+ let baseOptions;
49957
+ if (configuration) {
49958
+ baseOptions = configuration.baseOptions;
49959
+ }
49960
+
49961
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
49962
+ const localVarHeaderParameter = {} as any;
49963
+ const localVarQueryParameter = {} as any;
49964
+
49965
+ // authentication ApiKeyAuth required
49966
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
49967
+
49968
+ // authentication bearerAuth required
49969
+ // http bearer authentication required
49970
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
49971
+
49972
+
49973
+
49288
49974
  setSearchParams(localVarUrlObj, localVarQueryParameter);
49289
49975
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
49290
49976
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -49318,7 +50004,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49318
50004
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49319
50005
  },
49320
50006
  /**
49321
- * Add a custom domain to this container in order not to use qovery autogenerated domain
50007
+ * 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`.
49322
50008
  * @summary Add custom domain to the container.
49323
50009
  * @param {string} containerId Container ID
49324
50010
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49332,7 +50018,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49332
50018
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49333
50019
  },
49334
50020
  /**
49335
- * To delete an CustomDomain you must have the project user permission
50021
+ * 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.
49336
50022
  * @summary Delete a Custom Domain
49337
50023
  * @param {string} containerId Container ID
49338
50024
  * @param {string} customDomainId Custom Domain ID
@@ -49346,7 +50032,7 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49346
50032
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49347
50033
  },
49348
50034
  /**
49349
- * To edit a Custom Domain you must have the project user permission
50035
+ * 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.
49350
50036
  * @summary Edit a Custom Domain
49351
50037
  * @param {string} containerId Container ID
49352
50038
  * @param {string} customDomainId Custom Domain ID
@@ -49387,6 +50073,19 @@ export const ContainerCustomDomainApiFp = function(configuration?: Configuration
49387
50073
  const localVarOperationServerBasePath = operationServerMap['ContainerCustomDomainApi.listContainerCustomDomain']?.[localVarOperationServerIndex]?.url;
49388
50074
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
49389
50075
  },
50076
+ /**
50077
+ * 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.
50078
+ * @summary List the domains of the container
50079
+ * @param {string} containerId Container ID
50080
+ * @param {*} [options] Override http request option.
50081
+ * @throws {RequiredError}
50082
+ */
50083
+ async listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
50084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContainerCustomDomainView(containerId, options);
50085
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
50086
+ const localVarOperationServerBasePath = operationServerMap['ContainerCustomDomainApi.listContainerCustomDomainView']?.[localVarOperationServerIndex]?.url;
50087
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50088
+ },
49390
50089
  }
49391
50090
  };
49392
50091
 
@@ -49408,7 +50107,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49408
50107
  return localVarFp.checkContainerCustomDomain(containerId, options).then((request) => request(axios, basePath));
49409
50108
  },
49410
50109
  /**
49411
- * Add a custom domain to this container in order not to use qovery autogenerated domain
50110
+ * 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`.
49412
50111
  * @summary Add custom domain to the container.
49413
50112
  * @param {string} containerId Container ID
49414
50113
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49419,7 +50118,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49419
50118
  return localVarFp.createContainerCustomDomain(containerId, customDomainRequest, options).then((request) => request(axios, basePath));
49420
50119
  },
49421
50120
  /**
49422
- * To delete an CustomDomain you must have the project user permission
50121
+ * 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.
49423
50122
  * @summary Delete a Custom Domain
49424
50123
  * @param {string} containerId Container ID
49425
50124
  * @param {string} customDomainId Custom Domain ID
@@ -49430,7 +50129,7 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49430
50129
  return localVarFp.deleteContainerCustomDomain(containerId, customDomainId, options).then((request) => request(axios, basePath));
49431
50130
  },
49432
50131
  /**
49433
- * To edit a Custom Domain you must have the project user permission
50132
+ * 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.
49434
50133
  * @summary Edit a Custom Domain
49435
50134
  * @param {string} containerId Container ID
49436
50135
  * @param {string} customDomainId Custom Domain ID
@@ -49462,6 +50161,16 @@ export const ContainerCustomDomainApiFactory = function (configuration?: Configu
49462
50161
  listContainerCustomDomain(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
49463
50162
  return localVarFp.listContainerCustomDomain(containerId, options).then((request) => request(axios, basePath));
49464
50163
  },
50164
+ /**
50165
+ * 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.
50166
+ * @summary List the domains of the container
50167
+ * @param {string} containerId Container ID
50168
+ * @param {*} [options] Override http request option.
50169
+ * @throws {RequiredError}
50170
+ */
50171
+ listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
50172
+ return localVarFp.listContainerCustomDomainView(containerId, options).then((request) => request(axios, basePath));
50173
+ },
49465
50174
  };
49466
50175
  };
49467
50176
 
@@ -49485,7 +50194,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
49485
50194
  }
49486
50195
 
49487
50196
  /**
49488
- * Add a custom domain to this container in order not to use qovery autogenerated domain
50197
+ * 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`.
49489
50198
  * @summary Add custom domain to the container.
49490
50199
  * @param {string} containerId Container ID
49491
50200
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -49498,7 +50207,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
49498
50207
  }
49499
50208
 
49500
50209
  /**
49501
- * To delete an CustomDomain you must have the project user permission
50210
+ * 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.
49502
50211
  * @summary Delete a Custom Domain
49503
50212
  * @param {string} containerId Container ID
49504
50213
  * @param {string} customDomainId Custom Domain ID
@@ -49511,7 +50220,7 @@ export class ContainerCustomDomainApi extends BaseAPI {
49511
50220
  }
49512
50221
 
49513
50222
  /**
49514
- * To edit a Custom Domain you must have the project user permission
50223
+ * 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.
49515
50224
  * @summary Edit a Custom Domain
49516
50225
  * @param {string} containerId Container ID
49517
50226
  * @param {string} customDomainId Custom Domain ID
@@ -49548,6 +50257,18 @@ export class ContainerCustomDomainApi extends BaseAPI {
49548
50257
  public listContainerCustomDomain(containerId: string, options?: RawAxiosRequestConfig) {
49549
50258
  return ContainerCustomDomainApiFp(this.configuration).listContainerCustomDomain(containerId, options).then((request) => request(this.axios, this.basePath));
49550
50259
  }
50260
+
50261
+ /**
50262
+ * 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.
50263
+ * @summary List the domains of the container
50264
+ * @param {string} containerId Container ID
50265
+ * @param {*} [options] Override http request option.
50266
+ * @throws {RequiredError}
50267
+ * @memberof ContainerCustomDomainApi
50268
+ */
50269
+ public listContainerCustomDomainView(containerId: string, options?: RawAxiosRequestConfig) {
50270
+ return ContainerCustomDomainApiFp(this.configuration).listContainerCustomDomainView(containerId, options).then((request) => request(this.axios, this.basePath));
50271
+ }
49551
50272
  }
49552
50273
 
49553
50274
 
@@ -57065,6 +57786,542 @@ export class EnvironmentActionsApi extends BaseAPI {
57065
57786
 
57066
57787
 
57067
57788
 
57789
+ /**
57790
+ * EnvironmentCustomDomainApi - axios parameter creator
57791
+ * @export
57792
+ */
57793
+ export const EnvironmentCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
57794
+ return {
57795
+ /**
57796
+ * 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.
57797
+ * @summary Create a custom domain for several services
57798
+ * @param {string} environmentId Environment ID
57799
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
57800
+ * @param {*} [options] Override http request option.
57801
+ * @throws {RequiredError}
57802
+ */
57803
+ createEnvironmentCustomDomain: async (environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57804
+ // verify required parameter 'environmentId' is not null or undefined
57805
+ assertParamExists('createEnvironmentCustomDomain', 'environmentId', environmentId)
57806
+ // verify required parameter 'environmentCustomDomainRequest' is not null or undefined
57807
+ assertParamExists('createEnvironmentCustomDomain', 'environmentCustomDomainRequest', environmentCustomDomainRequest)
57808
+ const localVarPath = `/environment/{environmentId}/customDomain`
57809
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
57810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57811
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57812
+ let baseOptions;
57813
+ if (configuration) {
57814
+ baseOptions = configuration.baseOptions;
57815
+ }
57816
+
57817
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57818
+ const localVarHeaderParameter = {} as any;
57819
+ const localVarQueryParameter = {} as any;
57820
+
57821
+ // authentication ApiKeyAuth required
57822
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57823
+
57824
+ // authentication bearerAuth required
57825
+ // http bearer authentication required
57826
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57827
+
57828
+
57829
+
57830
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57831
+
57832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57835
+ localVarRequestOptions.data = serializeDataIfNeeded(environmentCustomDomainRequest, localVarRequestOptions, configuration)
57836
+
57837
+ return {
57838
+ url: toPathString(localVarUrlObj),
57839
+ options: localVarRequestOptions,
57840
+ };
57841
+ },
57842
+ /**
57843
+ * 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.
57844
+ * @summary Delete a custom domain of several services
57845
+ * @param {string} environmentId Environment ID
57846
+ * @param {string} domainName The current name of the custom domain.
57847
+ * @param {*} [options] Override http request option.
57848
+ * @throws {RequiredError}
57849
+ */
57850
+ deleteEnvironmentCustomDomain: async (environmentId: string, domainName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57851
+ // verify required parameter 'environmentId' is not null or undefined
57852
+ assertParamExists('deleteEnvironmentCustomDomain', 'environmentId', environmentId)
57853
+ // verify required parameter 'domainName' is not null or undefined
57854
+ assertParamExists('deleteEnvironmentCustomDomain', 'domainName', domainName)
57855
+ const localVarPath = `/environment/{environmentId}/customDomain/{domainName}`
57856
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
57857
+ .replace(`{${"domainName"}}`, encodeURIComponent(String(domainName)));
57858
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57859
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57860
+ let baseOptions;
57861
+ if (configuration) {
57862
+ baseOptions = configuration.baseOptions;
57863
+ }
57864
+
57865
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
57866
+ const localVarHeaderParameter = {} as any;
57867
+ const localVarQueryParameter = {} as any;
57868
+
57869
+ // authentication ApiKeyAuth required
57870
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57871
+
57872
+ // authentication bearerAuth required
57873
+ // http bearer authentication required
57874
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57875
+
57876
+
57877
+
57878
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57879
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57880
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57881
+
57882
+ return {
57883
+ url: toPathString(localVarUrlObj),
57884
+ options: localVarRequestOptions,
57885
+ };
57886
+ },
57887
+ /**
57888
+ * 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.
57889
+ * @summary Edit a custom domain of several services
57890
+ * @param {string} environmentId Environment ID
57891
+ * @param {string} domainName The current name of the custom domain.
57892
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
57893
+ * @param {*} [options] Override http request option.
57894
+ * @throws {RequiredError}
57895
+ */
57896
+ editEnvironmentCustomDomain: async (environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57897
+ // verify required parameter 'environmentId' is not null or undefined
57898
+ assertParamExists('editEnvironmentCustomDomain', 'environmentId', environmentId)
57899
+ // verify required parameter 'domainName' is not null or undefined
57900
+ assertParamExists('editEnvironmentCustomDomain', 'domainName', domainName)
57901
+ // verify required parameter 'environmentCustomDomainRequest' is not null or undefined
57902
+ assertParamExists('editEnvironmentCustomDomain', 'environmentCustomDomainRequest', environmentCustomDomainRequest)
57903
+ const localVarPath = `/environment/{environmentId}/customDomain/{domainName}`
57904
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)))
57905
+ .replace(`{${"domainName"}}`, encodeURIComponent(String(domainName)));
57906
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57907
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57908
+ let baseOptions;
57909
+ if (configuration) {
57910
+ baseOptions = configuration.baseOptions;
57911
+ }
57912
+
57913
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
57914
+ const localVarHeaderParameter = {} as any;
57915
+ const localVarQueryParameter = {} as any;
57916
+
57917
+ // authentication ApiKeyAuth required
57918
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57919
+
57920
+ // authentication bearerAuth required
57921
+ // http bearer authentication required
57922
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57923
+
57924
+
57925
+
57926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57927
+
57928
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57929
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57930
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57931
+ localVarRequestOptions.data = serializeDataIfNeeded(environmentCustomDomainRequest, localVarRequestOptions, configuration)
57932
+
57933
+ return {
57934
+ url: toPathString(localVarUrlObj),
57935
+ options: localVarRequestOptions,
57936
+ };
57937
+ },
57938
+ /**
57939
+ * 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.
57940
+ * @summary Get the CNAME target of the environment
57941
+ * @param {string} environmentId Environment ID
57942
+ * @param {*} [options] Override http request option.
57943
+ * @throws {RequiredError}
57944
+ */
57945
+ getEnvironmentCustomDomainCnameTarget: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57946
+ // verify required parameter 'environmentId' is not null or undefined
57947
+ assertParamExists('getEnvironmentCustomDomainCnameTarget', 'environmentId', environmentId)
57948
+ const localVarPath = `/environment/{environmentId}/customDomain/cnameTarget`
57949
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
57950
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57951
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57952
+ let baseOptions;
57953
+ if (configuration) {
57954
+ baseOptions = configuration.baseOptions;
57955
+ }
57956
+
57957
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57958
+ const localVarHeaderParameter = {} as any;
57959
+ const localVarQueryParameter = {} as any;
57960
+
57961
+ // authentication ApiKeyAuth required
57962
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
57963
+
57964
+ // authentication bearerAuth required
57965
+ // http bearer authentication required
57966
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57967
+
57968
+
57969
+
57970
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57971
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57972
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57973
+
57974
+ return {
57975
+ url: toPathString(localVarUrlObj),
57976
+ options: localVarRequestOptions,
57977
+ };
57978
+ },
57979
+ /**
57980
+ * 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.
57981
+ * @summary List environment custom domains
57982
+ * @param {string} environmentId Environment ID
57983
+ * @param {*} [options] Override http request option.
57984
+ * @throws {RequiredError}
57985
+ */
57986
+ listEnvironmentCustomDomain: async (environmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57987
+ // verify required parameter 'environmentId' is not null or undefined
57988
+ assertParamExists('listEnvironmentCustomDomain', 'environmentId', environmentId)
57989
+ const localVarPath = `/environment/{environmentId}/customDomain`
57990
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
57991
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57992
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57993
+ let baseOptions;
57994
+ if (configuration) {
57995
+ baseOptions = configuration.baseOptions;
57996
+ }
57997
+
57998
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57999
+ const localVarHeaderParameter = {} as any;
58000
+ const localVarQueryParameter = {} as any;
58001
+
58002
+ // authentication ApiKeyAuth required
58003
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58004
+
58005
+ // authentication bearerAuth required
58006
+ // http bearer authentication required
58007
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58008
+
58009
+
58010
+
58011
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58013
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58014
+
58015
+ return {
58016
+ url: toPathString(localVarUrlObj),
58017
+ options: localVarRequestOptions,
58018
+ };
58019
+ },
58020
+ /**
58021
+ * 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.
58022
+ * @summary Validate a custom domain for several services
58023
+ * @param {string} environmentId Environment ID
58024
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58025
+ * @param {*} [options] Override http request option.
58026
+ * @throws {RequiredError}
58027
+ */
58028
+ validateEnvironmentCustomDomain: async (environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
58029
+ // verify required parameter 'environmentId' is not null or undefined
58030
+ assertParamExists('validateEnvironmentCustomDomain', 'environmentId', environmentId)
58031
+ // verify required parameter 'customDomainValidationRequest' is not null or undefined
58032
+ assertParamExists('validateEnvironmentCustomDomain', 'customDomainValidationRequest', customDomainValidationRequest)
58033
+ const localVarPath = `/environment/{environmentId}/customDomain/validate`
58034
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
58035
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58036
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58037
+ let baseOptions;
58038
+ if (configuration) {
58039
+ baseOptions = configuration.baseOptions;
58040
+ }
58041
+
58042
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
58043
+ const localVarHeaderParameter = {} as any;
58044
+ const localVarQueryParameter = {} as any;
58045
+
58046
+ // authentication ApiKeyAuth required
58047
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
58048
+
58049
+ // authentication bearerAuth required
58050
+ // http bearer authentication required
58051
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58052
+
58053
+
58054
+
58055
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58056
+
58057
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
58058
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58059
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
58060
+ localVarRequestOptions.data = serializeDataIfNeeded(customDomainValidationRequest, localVarRequestOptions, configuration)
58061
+
58062
+ return {
58063
+ url: toPathString(localVarUrlObj),
58064
+ options: localVarRequestOptions,
58065
+ };
58066
+ },
58067
+ }
58068
+ };
58069
+
58070
+ /**
58071
+ * EnvironmentCustomDomainApi - functional programming interface
58072
+ * @export
58073
+ */
58074
+ export const EnvironmentCustomDomainApiFp = function(configuration?: Configuration) {
58075
+ const localVarAxiosParamCreator = EnvironmentCustomDomainApiAxiosParamCreator(configuration)
58076
+ return {
58077
+ /**
58078
+ * 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.
58079
+ * @summary Create a custom domain for several services
58080
+ * @param {string} environmentId Environment ID
58081
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58082
+ * @param {*} [options] Override http request option.
58083
+ * @throws {RequiredError}
58084
+ */
58085
+ async createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCustomDomainResponse>> {
58086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options);
58087
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58088
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.createEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58089
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58090
+ },
58091
+ /**
58092
+ * 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.
58093
+ * @summary Delete a custom domain of several services
58094
+ * @param {string} environmentId Environment ID
58095
+ * @param {string} domainName The current name of the custom domain.
58096
+ * @param {*} [options] Override http request option.
58097
+ * @throws {RequiredError}
58098
+ */
58099
+ async deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainDeletionResponse>> {
58100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentCustomDomain(environmentId, domainName, options);
58101
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58102
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.deleteEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58103
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58104
+ },
58105
+ /**
58106
+ * 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.
58107
+ * @summary Edit a custom domain of several services
58108
+ * @param {string} environmentId Environment ID
58109
+ * @param {string} domainName The current name of the custom domain.
58110
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58111
+ * @param {*} [options] Override http request option.
58112
+ * @throws {RequiredError}
58113
+ */
58114
+ async editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCustomDomainResponse>> {
58115
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options);
58116
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58117
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.editEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58118
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58119
+ },
58120
+ /**
58121
+ * 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.
58122
+ * @summary Get the CNAME target of the environment
58123
+ * @param {string} environmentId Environment ID
58124
+ * @param {*} [options] Override http request option.
58125
+ * @throws {RequiredError}
58126
+ */
58127
+ async getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvironmentCnameTargetResponse>> {
58128
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentCustomDomainCnameTarget(environmentId, options);
58129
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58130
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.getEnvironmentCustomDomainCnameTarget']?.[localVarOperationServerIndex]?.url;
58131
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58132
+ },
58133
+ /**
58134
+ * 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.
58135
+ * @summary List environment custom domains
58136
+ * @param {string} environmentId Environment ID
58137
+ * @param {*} [options] Override http request option.
58138
+ * @throws {RequiredError}
58139
+ */
58140
+ async listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomDomainResponseList>> {
58141
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentCustomDomain(environmentId, options);
58142
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58143
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.listEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58144
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58145
+ },
58146
+ /**
58147
+ * 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.
58148
+ * @summary Validate a custom domain for several services
58149
+ * @param {string} environmentId Environment ID
58150
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58151
+ * @param {*} [options] Override http request option.
58152
+ * @throws {RequiredError}
58153
+ */
58154
+ async validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainErrorsResponse>> {
58155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options);
58156
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
58157
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentCustomDomainApi.validateEnvironmentCustomDomain']?.[localVarOperationServerIndex]?.url;
58158
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
58159
+ },
58160
+ }
58161
+ };
58162
+
58163
+ /**
58164
+ * EnvironmentCustomDomainApi - factory interface
58165
+ * @export
58166
+ */
58167
+ export const EnvironmentCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
58168
+ const localVarFp = EnvironmentCustomDomainApiFp(configuration)
58169
+ return {
58170
+ /**
58171
+ * 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.
58172
+ * @summary Create a custom domain for several services
58173
+ * @param {string} environmentId Environment ID
58174
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58175
+ * @param {*} [options] Override http request option.
58176
+ * @throws {RequiredError}
58177
+ */
58178
+ createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCustomDomainResponse> {
58179
+ return localVarFp.createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options).then((request) => request(axios, basePath));
58180
+ },
58181
+ /**
58182
+ * 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.
58183
+ * @summary Delete a custom domain of several services
58184
+ * @param {string} environmentId Environment ID
58185
+ * @param {string} domainName The current name of the custom domain.
58186
+ * @param {*} [options] Override http request option.
58187
+ * @throws {RequiredError}
58188
+ */
58189
+ deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainDeletionResponse> {
58190
+ return localVarFp.deleteEnvironmentCustomDomain(environmentId, domainName, options).then((request) => request(axios, basePath));
58191
+ },
58192
+ /**
58193
+ * 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.
58194
+ * @summary Edit a custom domain of several services
58195
+ * @param {string} environmentId Environment ID
58196
+ * @param {string} domainName The current name of the custom domain.
58197
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58198
+ * @param {*} [options] Override http request option.
58199
+ * @throws {RequiredError}
58200
+ */
58201
+ editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCustomDomainResponse> {
58202
+ return localVarFp.editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options).then((request) => request(axios, basePath));
58203
+ },
58204
+ /**
58205
+ * 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.
58206
+ * @summary Get the CNAME target of the environment
58207
+ * @param {string} environmentId Environment ID
58208
+ * @param {*} [options] Override http request option.
58209
+ * @throws {RequiredError}
58210
+ */
58211
+ getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<EnvironmentCnameTargetResponse> {
58212
+ return localVarFp.getEnvironmentCustomDomainCnameTarget(environmentId, options).then((request) => request(axios, basePath));
58213
+ },
58214
+ /**
58215
+ * 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.
58216
+ * @summary List environment custom domains
58217
+ * @param {string} environmentId Environment ID
58218
+ * @param {*} [options] Override http request option.
58219
+ * @throws {RequiredError}
58220
+ */
58221
+ listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationCustomDomainResponseList> {
58222
+ return localVarFp.listEnvironmentCustomDomain(environmentId, options).then((request) => request(axios, basePath));
58223
+ },
58224
+ /**
58225
+ * 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.
58226
+ * @summary Validate a custom domain for several services
58227
+ * @param {string} environmentId Environment ID
58228
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58229
+ * @param {*} [options] Override http request option.
58230
+ * @throws {RequiredError}
58231
+ */
58232
+ validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainErrorsResponse> {
58233
+ return localVarFp.validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options).then((request) => request(axios, basePath));
58234
+ },
58235
+ };
58236
+ };
58237
+
58238
+ /**
58239
+ * EnvironmentCustomDomainApi - object-oriented interface
58240
+ * @export
58241
+ * @class EnvironmentCustomDomainApi
58242
+ * @extends {BaseAPI}
58243
+ */
58244
+ export class EnvironmentCustomDomainApi extends BaseAPI {
58245
+ /**
58246
+ * 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.
58247
+ * @summary Create a custom domain for several services
58248
+ * @param {string} environmentId Environment ID
58249
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58250
+ * @param {*} [options] Override http request option.
58251
+ * @throws {RequiredError}
58252
+ * @memberof EnvironmentCustomDomainApi
58253
+ */
58254
+ public createEnvironmentCustomDomain(environmentId: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig) {
58255
+ return EnvironmentCustomDomainApiFp(this.configuration).createEnvironmentCustomDomain(environmentId, environmentCustomDomainRequest, options).then((request) => request(this.axios, this.basePath));
58256
+ }
58257
+
58258
+ /**
58259
+ * 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.
58260
+ * @summary Delete a custom domain of several services
58261
+ * @param {string} environmentId Environment ID
58262
+ * @param {string} domainName The current name of the custom domain.
58263
+ * @param {*} [options] Override http request option.
58264
+ * @throws {RequiredError}
58265
+ * @memberof EnvironmentCustomDomainApi
58266
+ */
58267
+ public deleteEnvironmentCustomDomain(environmentId: string, domainName: string, options?: RawAxiosRequestConfig) {
58268
+ return EnvironmentCustomDomainApiFp(this.configuration).deleteEnvironmentCustomDomain(environmentId, domainName, options).then((request) => request(this.axios, this.basePath));
58269
+ }
58270
+
58271
+ /**
58272
+ * 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.
58273
+ * @summary Edit a custom domain of several services
58274
+ * @param {string} environmentId Environment ID
58275
+ * @param {string} domainName The current name of the custom domain.
58276
+ * @param {EnvironmentCustomDomainRequest} environmentCustomDomainRequest
58277
+ * @param {*} [options] Override http request option.
58278
+ * @throws {RequiredError}
58279
+ * @memberof EnvironmentCustomDomainApi
58280
+ */
58281
+ public editEnvironmentCustomDomain(environmentId: string, domainName: string, environmentCustomDomainRequest: EnvironmentCustomDomainRequest, options?: RawAxiosRequestConfig) {
58282
+ return EnvironmentCustomDomainApiFp(this.configuration).editEnvironmentCustomDomain(environmentId, domainName, environmentCustomDomainRequest, options).then((request) => request(this.axios, this.basePath));
58283
+ }
58284
+
58285
+ /**
58286
+ * 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.
58287
+ * @summary Get the CNAME target of the environment
58288
+ * @param {string} environmentId Environment ID
58289
+ * @param {*} [options] Override http request option.
58290
+ * @throws {RequiredError}
58291
+ * @memberof EnvironmentCustomDomainApi
58292
+ */
58293
+ public getEnvironmentCustomDomainCnameTarget(environmentId: string, options?: RawAxiosRequestConfig) {
58294
+ return EnvironmentCustomDomainApiFp(this.configuration).getEnvironmentCustomDomainCnameTarget(environmentId, options).then((request) => request(this.axios, this.basePath));
58295
+ }
58296
+
58297
+ /**
58298
+ * 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.
58299
+ * @summary List environment custom domains
58300
+ * @param {string} environmentId Environment ID
58301
+ * @param {*} [options] Override http request option.
58302
+ * @throws {RequiredError}
58303
+ * @memberof EnvironmentCustomDomainApi
58304
+ */
58305
+ public listEnvironmentCustomDomain(environmentId: string, options?: RawAxiosRequestConfig) {
58306
+ return EnvironmentCustomDomainApiFp(this.configuration).listEnvironmentCustomDomain(environmentId, options).then((request) => request(this.axios, this.basePath));
58307
+ }
58308
+
58309
+ /**
58310
+ * 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.
58311
+ * @summary Validate a custom domain for several services
58312
+ * @param {string} environmentId Environment ID
58313
+ * @param {CustomDomainValidationRequest} customDomainValidationRequest
58314
+ * @param {*} [options] Override http request option.
58315
+ * @throws {RequiredError}
58316
+ * @memberof EnvironmentCustomDomainApi
58317
+ */
58318
+ public validateEnvironmentCustomDomain(environmentId: string, customDomainValidationRequest: CustomDomainValidationRequest, options?: RawAxiosRequestConfig) {
58319
+ return EnvironmentCustomDomainApiFp(this.configuration).validateEnvironmentCustomDomain(environmentId, customDomainValidationRequest, options).then((request) => request(this.axios, this.basePath));
58320
+ }
58321
+ }
58322
+
58323
+
58324
+
57068
58325
  /**
57069
58326
  * EnvironmentDeploymentHistoryApi - axios parameter creator
57070
58327
  * @export
@@ -61091,7 +62348,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61091
62348
  };
61092
62349
  },
61093
62350
  /**
61094
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62351
+ * 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`.
61095
62352
  * @summary Add custom domain to the helm.
61096
62353
  * @param {string} helmId Helm ID
61097
62354
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61136,7 +62393,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61136
62393
  };
61137
62394
  },
61138
62395
  /**
61139
- * To delete an CustomDomain you must have the project user permission
62396
+ * 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.
61140
62397
  * @summary Delete a Custom Domain
61141
62398
  * @param {string} helmId Helm ID
61142
62399
  * @param {string} customDomainId Custom Domain ID
@@ -61181,7 +62438,7 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61181
62438
  };
61182
62439
  },
61183
62440
  /**
61184
- * To edit a Custom Domain you must have the project user permission
62441
+ * 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.
61185
62442
  * @summary Edit a Custom Domain
61186
62443
  * @param {string} helmId Helm ID
61187
62444
  * @param {string} customDomainId Custom Domain ID
@@ -61306,6 +62563,47 @@ export const HelmCustomDomainApiAxiosParamCreator = function (configuration?: Co
61306
62563
 
61307
62564
 
61308
62565
 
62566
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62567
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
62568
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62569
+
62570
+ return {
62571
+ url: toPathString(localVarUrlObj),
62572
+ options: localVarRequestOptions,
62573
+ };
62574
+ },
62575
+ /**
62576
+ * 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.
62577
+ * @summary List the domains of the helm
62578
+ * @param {string} helmId Helm ID
62579
+ * @param {*} [options] Override http request option.
62580
+ * @throws {RequiredError}
62581
+ */
62582
+ listHelmCustomDomainView: async (helmId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
62583
+ // verify required parameter 'helmId' is not null or undefined
62584
+ assertParamExists('listHelmCustomDomainView', 'helmId', helmId)
62585
+ const localVarPath = `/helm/{helmId}/customDomainView`
62586
+ .replace(`{${"helmId"}}`, encodeURIComponent(String(helmId)));
62587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
62589
+ let baseOptions;
62590
+ if (configuration) {
62591
+ baseOptions = configuration.baseOptions;
62592
+ }
62593
+
62594
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62595
+ const localVarHeaderParameter = {} as any;
62596
+ const localVarQueryParameter = {} as any;
62597
+
62598
+ // authentication ApiKeyAuth required
62599
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
62600
+
62601
+ // authentication bearerAuth required
62602
+ // http bearer authentication required
62603
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
62604
+
62605
+
62606
+
61309
62607
  setSearchParams(localVarUrlObj, localVarQueryParameter);
61310
62608
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61311
62609
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -61339,7 +62637,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61339
62637
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61340
62638
  },
61341
62639
  /**
61342
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62640
+ * 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`.
61343
62641
  * @summary Add custom domain to the helm.
61344
62642
  * @param {string} helmId Helm ID
61345
62643
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61353,7 +62651,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61353
62651
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61354
62652
  },
61355
62653
  /**
61356
- * To delete an CustomDomain you must have the project user permission
62654
+ * 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.
61357
62655
  * @summary Delete a Custom Domain
61358
62656
  * @param {string} helmId Helm ID
61359
62657
  * @param {string} customDomainId Custom Domain ID
@@ -61367,7 +62665,7 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61367
62665
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61368
62666
  },
61369
62667
  /**
61370
- * To edit a Custom Domain you must have the project user permission
62668
+ * 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.
61371
62669
  * @summary Edit a Custom Domain
61372
62670
  * @param {string} helmId Helm ID
61373
62671
  * @param {string} customDomainId Custom Domain ID
@@ -61408,6 +62706,19 @@ export const HelmCustomDomainApiFp = function(configuration?: Configuration) {
61408
62706
  const localVarOperationServerBasePath = operationServerMap['HelmCustomDomainApi.listHelmCustomDomain']?.[localVarOperationServerIndex]?.url;
61409
62707
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
61410
62708
  },
62709
+ /**
62710
+ * 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.
62711
+ * @summary List the domains of the helm
62712
+ * @param {string} helmId Helm ID
62713
+ * @param {*} [options] Override http request option.
62714
+ * @throws {RequiredError}
62715
+ */
62716
+ async listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServiceDomainResponseList>> {
62717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listHelmCustomDomainView(helmId, options);
62718
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
62719
+ const localVarOperationServerBasePath = operationServerMap['HelmCustomDomainApi.listHelmCustomDomainView']?.[localVarOperationServerIndex]?.url;
62720
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
62721
+ },
61411
62722
  }
61412
62723
  };
61413
62724
 
@@ -61429,7 +62740,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61429
62740
  return localVarFp.checkHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
61430
62741
  },
61431
62742
  /**
61432
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62743
+ * 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`.
61433
62744
  * @summary Add custom domain to the helm.
61434
62745
  * @param {string} helmId Helm ID
61435
62746
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61440,7 +62751,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61440
62751
  return localVarFp.createHelmCustomDomain(helmId, customDomainRequest, options).then((request) => request(axios, basePath));
61441
62752
  },
61442
62753
  /**
61443
- * To delete an CustomDomain you must have the project user permission
62754
+ * 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.
61444
62755
  * @summary Delete a Custom Domain
61445
62756
  * @param {string} helmId Helm ID
61446
62757
  * @param {string} customDomainId Custom Domain ID
@@ -61451,7 +62762,7 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61451
62762
  return localVarFp.deleteHelmCustomDomain(helmId, customDomainId, options).then((request) => request(axios, basePath));
61452
62763
  },
61453
62764
  /**
61454
- * To edit a Custom Domain you must have the project user permission
62765
+ * 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.
61455
62766
  * @summary Edit a Custom Domain
61456
62767
  * @param {string} helmId Helm ID
61457
62768
  * @param {string} customDomainId Custom Domain ID
@@ -61483,6 +62794,16 @@ export const HelmCustomDomainApiFactory = function (configuration?: Configuratio
61483
62794
  listHelmCustomDomain(helmId: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainResponseList> {
61484
62795
  return localVarFp.listHelmCustomDomain(helmId, options).then((request) => request(axios, basePath));
61485
62796
  },
62797
+ /**
62798
+ * 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.
62799
+ * @summary List the domains of the helm
62800
+ * @param {string} helmId Helm ID
62801
+ * @param {*} [options] Override http request option.
62802
+ * @throws {RequiredError}
62803
+ */
62804
+ listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig): AxiosPromise<ServiceDomainResponseList> {
62805
+ return localVarFp.listHelmCustomDomainView(helmId, options).then((request) => request(axios, basePath));
62806
+ },
61486
62807
  };
61487
62808
  };
61488
62809
 
@@ -61506,7 +62827,7 @@ export class HelmCustomDomainApi extends BaseAPI {
61506
62827
  }
61507
62828
 
61508
62829
  /**
61509
- * Add a custom domain to this helm in order not to use qovery autogenerated domain
62830
+ * 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`.
61510
62831
  * @summary Add custom domain to the helm.
61511
62832
  * @param {string} helmId Helm ID
61512
62833
  * @param {CustomDomainRequest} [customDomainRequest]
@@ -61519,7 +62840,7 @@ export class HelmCustomDomainApi extends BaseAPI {
61519
62840
  }
61520
62841
 
61521
62842
  /**
61522
- * To delete an CustomDomain you must have the project user permission
62843
+ * 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.
61523
62844
  * @summary Delete a Custom Domain
61524
62845
  * @param {string} helmId Helm ID
61525
62846
  * @param {string} customDomainId Custom Domain ID
@@ -61532,7 +62853,7 @@ export class HelmCustomDomainApi extends BaseAPI {
61532
62853
  }
61533
62854
 
61534
62855
  /**
61535
- * To edit a Custom Domain you must have the project user permission
62856
+ * 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.
61536
62857
  * @summary Edit a Custom Domain
61537
62858
  * @param {string} helmId Helm ID
61538
62859
  * @param {string} customDomainId Custom Domain ID
@@ -61569,6 +62890,18 @@ export class HelmCustomDomainApi extends BaseAPI {
61569
62890
  public listHelmCustomDomain(helmId: string, options?: RawAxiosRequestConfig) {
61570
62891
  return HelmCustomDomainApiFp(this.configuration).listHelmCustomDomain(helmId, options).then((request) => request(this.axios, this.basePath));
61571
62892
  }
62893
+
62894
+ /**
62895
+ * 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.
62896
+ * @summary List the domains of the helm
62897
+ * @param {string} helmId Helm ID
62898
+ * @param {*} [options] Override http request option.
62899
+ * @throws {RequiredError}
62900
+ * @memberof HelmCustomDomainApi
62901
+ */
62902
+ public listHelmCustomDomainView(helmId: string, options?: RawAxiosRequestConfig) {
62903
+ return HelmCustomDomainApiFp(this.configuration).listHelmCustomDomainView(helmId, options).then((request) => request(this.axios, this.basePath));
62904
+ }
61572
62905
  }
61573
62906
 
61574
62907
 
@@ -71384,6 +72717,53 @@ export class OrganizationClusterLockApi extends BaseAPI {
71384
72717
  */
71385
72718
  export const OrganizationCustomDomainApiAxiosParamCreator = function (configuration?: Configuration) {
71386
72719
  return {
72720
+ /**
72721
+ * 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.
72722
+ * @summary Delete custom domains of several environments
72723
+ * @param {string} organizationId Organization ID
72724
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72725
+ * @param {*} [options] Override http request option.
72726
+ * @throws {RequiredError}
72727
+ */
72728
+ bulkDeleteOrganizationCustomDomain: async (organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
72729
+ // verify required parameter 'organizationId' is not null or undefined
72730
+ assertParamExists('bulkDeleteOrganizationCustomDomain', 'organizationId', organizationId)
72731
+ // verify required parameter 'customDomainBulkDeleteItemRequest' is not null or undefined
72732
+ assertParamExists('bulkDeleteOrganizationCustomDomain', 'customDomainBulkDeleteItemRequest', customDomainBulkDeleteItemRequest)
72733
+ const localVarPath = `/organization/{organizationId}/customDomain/bulkDelete`
72734
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
72735
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72736
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72737
+ let baseOptions;
72738
+ if (configuration) {
72739
+ baseOptions = configuration.baseOptions;
72740
+ }
72741
+
72742
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72743
+ const localVarHeaderParameter = {} as any;
72744
+ const localVarQueryParameter = {} as any;
72745
+
72746
+ // authentication ApiKeyAuth required
72747
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
72748
+
72749
+ // authentication bearerAuth required
72750
+ // http bearer authentication required
72751
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
72752
+
72753
+
72754
+
72755
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72756
+
72757
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72759
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72760
+ localVarRequestOptions.data = serializeDataIfNeeded(customDomainBulkDeleteItemRequest, localVarRequestOptions, configuration)
72761
+
72762
+ return {
72763
+ url: toPathString(localVarUrlObj),
72764
+ options: localVarRequestOptions,
72765
+ };
72766
+ },
71387
72767
  /**
71388
72768
  * 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.
71389
72769
  * @summary List organization custom domains
@@ -71460,6 +72840,20 @@ export const OrganizationCustomDomainApiAxiosParamCreator = function (configurat
71460
72840
  export const OrganizationCustomDomainApiFp = function(configuration?: Configuration) {
71461
72841
  const localVarAxiosParamCreator = OrganizationCustomDomainApiAxiosParamCreator(configuration)
71462
72842
  return {
72843
+ /**
72844
+ * 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.
72845
+ * @summary Delete custom domains of several environments
72846
+ * @param {string} organizationId Organization ID
72847
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72848
+ * @param {*} [options] Override http request option.
72849
+ * @throws {RequiredError}
72850
+ */
72851
+ async bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDomainDeletionResponse>> {
72852
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options);
72853
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
72854
+ const localVarOperationServerBasePath = operationServerMap['OrganizationCustomDomainApi.bulkDeleteOrganizationCustomDomain']?.[localVarOperationServerIndex]?.url;
72855
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
72856
+ },
71463
72857
  /**
71464
72858
  * 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.
71465
72859
  * @summary List organization custom domains
@@ -71488,6 +72882,17 @@ export const OrganizationCustomDomainApiFp = function(configuration?: Configurat
71488
72882
  export const OrganizationCustomDomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
71489
72883
  const localVarFp = OrganizationCustomDomainApiFp(configuration)
71490
72884
  return {
72885
+ /**
72886
+ * 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.
72887
+ * @summary Delete custom domains of several environments
72888
+ * @param {string} organizationId Organization ID
72889
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72890
+ * @param {*} [options] Override http request option.
72891
+ * @throws {RequiredError}
72892
+ */
72893
+ bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig): AxiosPromise<CustomDomainDeletionResponse> {
72894
+ return localVarFp.bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options).then((request) => request(axios, basePath));
72895
+ },
71491
72896
  /**
71492
72897
  * 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.
71493
72898
  * @summary List organization custom domains
@@ -71513,6 +72918,19 @@ export const OrganizationCustomDomainApiFactory = function (configuration?: Conf
71513
72918
  * @extends {BaseAPI}
71514
72919
  */
71515
72920
  export class OrganizationCustomDomainApi extends BaseAPI {
72921
+ /**
72922
+ * 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.
72923
+ * @summary Delete custom domains of several environments
72924
+ * @param {string} organizationId Organization ID
72925
+ * @param {Array<CustomDomainBulkDeleteItemRequest>} customDomainBulkDeleteItemRequest
72926
+ * @param {*} [options] Override http request option.
72927
+ * @throws {RequiredError}
72928
+ * @memberof OrganizationCustomDomainApi
72929
+ */
72930
+ public bulkDeleteOrganizationCustomDomain(organizationId: string, customDomainBulkDeleteItemRequest: Array<CustomDomainBulkDeleteItemRequest>, options?: RawAxiosRequestConfig) {
72931
+ return OrganizationCustomDomainApiFp(this.configuration).bulkDeleteOrganizationCustomDomain(organizationId, customDomainBulkDeleteItemRequest, options).then((request) => request(this.axios, this.basePath));
72932
+ }
72933
+
71516
72934
  /**
71517
72935
  * 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.
71518
72936
  * @summary List organization custom domains