@hostinger/sdk 1.52.0 → 1.52.2

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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.52.0
4
+ * API Version: 1.52.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7209,6 +7209,269 @@ export interface HostingV1FilesUploadUrlResource {
7209
7209
  */
7210
7210
  'rest_auth_key': string;
7211
7211
  }
7212
+ /**
7213
+ * Every field is null when the website has no Git auto-deployment configured.
7214
+ * @export
7215
+ * @interface HostingV1GitGitAutoDeploymentSettingsResource
7216
+ */
7217
+ export interface HostingV1GitGitAutoDeploymentSettingsResource {
7218
+ /**
7219
+ * Git installation the repository is accessed through
7220
+ * @type {string}
7221
+ * @memberof HostingV1GitGitAutoDeploymentSettingsResource
7222
+ */
7223
+ 'installation_uuid': string | null;
7224
+ /**
7225
+ * Whether pushes to the branch deploy automatically
7226
+ * @type {boolean}
7227
+ * @memberof HostingV1GitGitAutoDeploymentSettingsResource
7228
+ */
7229
+ 'is_enabled': boolean | null;
7230
+ /**
7231
+ * Repository owner login
7232
+ * @type {string}
7233
+ * @memberof HostingV1GitGitAutoDeploymentSettingsResource
7234
+ */
7235
+ 'owner': string | null;
7236
+ /**
7237
+ * Repository name
7238
+ * @type {string}
7239
+ * @memberof HostingV1GitGitAutoDeploymentSettingsResource
7240
+ */
7241
+ 'repository': string | null;
7242
+ /**
7243
+ * Branch that is deployed
7244
+ * @type {string}
7245
+ * @memberof HostingV1GitGitAutoDeploymentSettingsResource
7246
+ */
7247
+ 'branch': string | null;
7248
+ /**
7249
+ * Subdirectory under the website document root the repository deploys into. Empty means the document root.
7250
+ * @type {string}
7251
+ * @memberof HostingV1GitGitAutoDeploymentSettingsResource
7252
+ */
7253
+ 'directory': string | null;
7254
+ }
7255
+ /**
7256
+ *
7257
+ * @export
7258
+ * @interface HostingV1GitGitCommitAuthorResource
7259
+ */
7260
+ export interface HostingV1GitGitCommitAuthorResource {
7261
+ /**
7262
+ * Author name as recorded in the commit
7263
+ * @type {string}
7264
+ * @memberof HostingV1GitGitCommitAuthorResource
7265
+ */
7266
+ 'name': string;
7267
+ /**
7268
+ * Avatar URL of the author on the Git provider
7269
+ * @type {string}
7270
+ * @memberof HostingV1GitGitCommitAuthorResource
7271
+ */
7272
+ 'avatar_url': string | null;
7273
+ }
7274
+ /**
7275
+ *
7276
+ * @export
7277
+ * @interface HostingV1GitGitCommitResource
7278
+ */
7279
+ export interface HostingV1GitGitCommitResource {
7280
+ /**
7281
+ * Full commit SHA
7282
+ * @type {string}
7283
+ * @memberof HostingV1GitGitCommitResource
7284
+ */
7285
+ 'hash': string;
7286
+ /**
7287
+ * Commit message
7288
+ * @type {string}
7289
+ * @memberof HostingV1GitGitCommitResource
7290
+ */
7291
+ 'message': string;
7292
+ /**
7293
+ *
7294
+ * @type {HostingV1GitGitCommitAuthorResource}
7295
+ * @memberof HostingV1GitGitCommitResource
7296
+ */
7297
+ 'author': HostingV1GitGitCommitAuthorResource;
7298
+ }
7299
+ /**
7300
+ *
7301
+ * @export
7302
+ * @interface HostingV1GitGitInstallationResource
7303
+ */
7304
+ export interface HostingV1GitGitInstallationResource {
7305
+ /**
7306
+ * Installation identifier. Use it as the path parameter of List Git installation repositories.
7307
+ * @type {string}
7308
+ * @memberof HostingV1GitGitInstallationResource
7309
+ */
7310
+ 'uuid': string;
7311
+ /**
7312
+ * Git provider the account belongs to
7313
+ * @type {string}
7314
+ * @memberof HostingV1GitGitInstallationResource
7315
+ */
7316
+ 'provider': HostingV1GitGitInstallationResourceProviderEnum;
7317
+ /**
7318
+ * Login of the connected provider account (user or organization)
7319
+ * @type {string}
7320
+ * @memberof HostingV1GitGitInstallationResource
7321
+ */
7322
+ 'account_login': string | null;
7323
+ /**
7324
+ * Whether the connected account is a user or an organization
7325
+ * @type {string}
7326
+ * @memberof HostingV1GitGitInstallationResource
7327
+ */
7328
+ 'account_type': HostingV1GitGitInstallationResourceAccountTypeEnum | null;
7329
+ /**
7330
+ * Avatar URL of the connected provider account
7331
+ * @type {string}
7332
+ * @memberof HostingV1GitGitInstallationResource
7333
+ */
7334
+ 'account_avatar_url': string | null;
7335
+ /**
7336
+ * Installation status. Only active installations are listed unless the status filter says otherwise.
7337
+ * @type {string}
7338
+ * @memberof HostingV1GitGitInstallationResource
7339
+ */
7340
+ 'status': HostingV1GitGitInstallationResourceStatusEnum;
7341
+ /**
7342
+ * When the provider app was installed on the account
7343
+ * @type {string}
7344
+ * @memberof HostingV1GitGitInstallationResource
7345
+ */
7346
+ 'installed_at': string | null;
7347
+ /**
7348
+ * When the installation record was created
7349
+ * @type {string}
7350
+ * @memberof HostingV1GitGitInstallationResource
7351
+ */
7352
+ 'created_at': string;
7353
+ /**
7354
+ * True when the GitHub user account has a stored OAuth token whose refresh token is still valid, false when the token is missing or its refresh token expired. Null for organization accounts and for providers other than GitHub.
7355
+ * @type {boolean}
7356
+ * @memberof HostingV1GitGitInstallationResource
7357
+ */
7358
+ 'has_oauth': boolean | null;
7359
+ }
7360
+ export declare const HostingV1GitGitInstallationResourceProviderEnum: {
7361
+ readonly Github: "github";
7362
+ readonly Gitlab: "gitlab";
7363
+ readonly Bitbucket: "bitbucket";
7364
+ };
7365
+ export type HostingV1GitGitInstallationResourceProviderEnum = typeof HostingV1GitGitInstallationResourceProviderEnum[keyof typeof HostingV1GitGitInstallationResourceProviderEnum];
7366
+ export declare const HostingV1GitGitInstallationResourceAccountTypeEnum: {
7367
+ readonly User: "User";
7368
+ readonly Organization: "Organization";
7369
+ };
7370
+ export type HostingV1GitGitInstallationResourceAccountTypeEnum = typeof HostingV1GitGitInstallationResourceAccountTypeEnum[keyof typeof HostingV1GitGitInstallationResourceAccountTypeEnum];
7371
+ export declare const HostingV1GitGitInstallationResourceStatusEnum: {
7372
+ readonly Pending: "pending";
7373
+ readonly Active: "active";
7374
+ readonly Suspended: "suspended";
7375
+ };
7376
+ export type HostingV1GitGitInstallationResourceStatusEnum = typeof HostingV1GitGitInstallationResourceStatusEnum[keyof typeof HostingV1GitGitInstallationResourceStatusEnum];
7377
+ /**
7378
+ *
7379
+ * @export
7380
+ * @interface HostingV1GitGitRepositoryResource
7381
+ */
7382
+ export interface HostingV1GitGitRepositoryResource {
7383
+ /**
7384
+ * Repository identifier assigned by the Git provider
7385
+ * @type {number}
7386
+ * @memberof HostingV1GitGitRepositoryResource
7387
+ */
7388
+ 'id': number;
7389
+ /**
7390
+ * Repository name without the .git suffix
7391
+ * @type {string}
7392
+ * @memberof HostingV1GitGitRepositoryResource
7393
+ */
7394
+ 'name': string;
7395
+ /**
7396
+ * Owner and repository name joined with a slash
7397
+ * @type {string}
7398
+ * @memberof HostingV1GitGitRepositoryResource
7399
+ */
7400
+ 'full_name': string;
7401
+ /**
7402
+ * Repository owner login
7403
+ * @type {string}
7404
+ * @memberof HostingV1GitGitRepositoryResource
7405
+ */
7406
+ 'owner': string;
7407
+ /**
7408
+ * Whether the repository is private
7409
+ * @type {boolean}
7410
+ * @memberof HostingV1GitGitRepositoryResource
7411
+ */
7412
+ 'is_private': boolean;
7413
+ /**
7414
+ * Repository page URL
7415
+ * @type {string}
7416
+ * @memberof HostingV1GitGitRepositoryResource
7417
+ */
7418
+ 'html_url': string;
7419
+ /**
7420
+ * HTTPS clone URL
7421
+ * @type {string}
7422
+ * @memberof HostingV1GitGitRepositoryResource
7423
+ */
7424
+ 'clone_url': string;
7425
+ /**
7426
+ * Default branch of the repository
7427
+ * @type {string}
7428
+ * @memberof HostingV1GitGitRepositoryResource
7429
+ */
7430
+ 'default_branch': string;
7431
+ }
7432
+ /**
7433
+ *
7434
+ * @export
7435
+ * @interface HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7436
+ */
7437
+ export interface HostingV1GitUpdateGitAutoDeploymentSettingsRequest {
7438
+ /**
7439
+ * Active Git installation from `List Git installations`
7440
+ * @type {string}
7441
+ * @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7442
+ */
7443
+ 'installation_uuid': string;
7444
+ /**
7445
+ * Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
7446
+ * @type {string}
7447
+ * @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7448
+ */
7449
+ 'owner': string;
7450
+ /**
7451
+ * Repository name without the .git suffix
7452
+ * @type {string}
7453
+ * @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7454
+ */
7455
+ 'repository': string;
7456
+ /**
7457
+ * Branch to deploy
7458
+ * @type {string}
7459
+ * @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7460
+ */
7461
+ 'branch': string;
7462
+ /**
7463
+ * Subdirectory under the website document root to deploy into. Empty, null or omitted means the document root.
7464
+ * @type {string}
7465
+ * @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7466
+ */
7467
+ 'directory': string | null;
7468
+ /**
7469
+ * Whether pushes to the branch deploy automatically
7470
+ * @type {boolean}
7471
+ * @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
7472
+ */
7473
+ 'is_enabled': boolean;
7474
+ }
7212
7475
  /**
7213
7476
  *
7214
7477
  * @export
@@ -7338,6 +7601,7 @@ export declare const HostingV1NodeJsBuildOptionsResourcePackageManagerEnum: {
7338
7601
  export type HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = typeof HostingV1NodeJsBuildOptionsResourcePackageManagerEnum[keyof typeof HostingV1NodeJsBuildOptionsResourcePackageManagerEnum];
7339
7602
  export declare const HostingV1NodeJsBuildOptionsResourceSourceTypeEnum: {
7340
7603
  readonly Archive: "archive";
7604
+ readonly Git: "git";
7341
7605
  };
7342
7606
  export type HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = typeof HostingV1NodeJsBuildOptionsResourceSourceTypeEnum[keyof typeof HostingV1NodeJsBuildOptionsResourceSourceTypeEnum];
7343
7607
  /**
@@ -7722,7 +7986,7 @@ export interface HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner {
7722
7986
  'value': string;
7723
7987
  }
7724
7988
  /**
7725
- *
7989
+ * Which keys carry values depends on the parent source_type; the others are null.
7726
7990
  * @export
7727
7991
  * @interface HostingV1NodeJsSourceOptionsResource
7728
7992
  */
@@ -7733,6 +7997,36 @@ export interface HostingV1NodeJsSourceOptionsResource {
7733
7997
  * @memberof HostingV1NodeJsSourceOptionsResource
7734
7998
  */
7735
7999
  'archive_path': string | null;
8000
+ /**
8001
+ * Repository owner login (present if source_type is \"git\")
8002
+ * @type {string}
8003
+ * @memberof HostingV1NodeJsSourceOptionsResource
8004
+ */
8005
+ 'owner': string | null;
8006
+ /**
8007
+ * Repository name without the .git suffix (present if source_type is \"git\")
8008
+ * @type {string}
8009
+ * @memberof HostingV1NodeJsSourceOptionsResource
8010
+ */
8011
+ 'repository': string | null;
8012
+ /**
8013
+ * Branch that was built (present if source_type is \"git\")
8014
+ * @type {string}
8015
+ * @memberof HostingV1NodeJsSourceOptionsResource
8016
+ */
8017
+ 'branch': string | null;
8018
+ /**
8019
+ * Git installation used to access the repository (present if source_type is \"git\")
8020
+ * @type {string}
8021
+ * @memberof HostingV1NodeJsSourceOptionsResource
8022
+ */
8023
+ 'installation_uuid': string | null;
8024
+ /**
8025
+ *
8026
+ * @type {HostingV1GitGitCommitResource}
8027
+ * @memberof HostingV1NodeJsSourceOptionsResource
8028
+ */
8029
+ 'commit': HostingV1GitGitCommitResource | null;
7736
8030
  }
7737
8031
  /**
7738
8032
  *
@@ -7783,7 +8077,7 @@ export interface HostingV1NodeJsStartBuildRequest {
7783
8077
  */
7784
8078
  'package_manager': HostingV1NodeJsStartBuildRequestPackageManagerEnum | null;
7785
8079
  /**
7786
- * The source type of the files
8080
+ * Where the files come from: `archive` (an uploaded archive on the website) or `git` (a branch of a repository reachable through a Git installation).
7787
8081
  * @type {string}
7788
8082
  * @memberof HostingV1NodeJsStartBuildRequest
7789
8083
  */
@@ -7832,10 +8126,11 @@ export declare const HostingV1NodeJsStartBuildRequestPackageManagerEnum: {
7832
8126
  export type HostingV1NodeJsStartBuildRequestPackageManagerEnum = typeof HostingV1NodeJsStartBuildRequestPackageManagerEnum[keyof typeof HostingV1NodeJsStartBuildRequestPackageManagerEnum];
7833
8127
  export declare const HostingV1NodeJsStartBuildRequestSourceTypeEnum: {
7834
8128
  readonly Archive: "archive";
8129
+ readonly Git: "git";
7835
8130
  };
7836
8131
  export type HostingV1NodeJsStartBuildRequestSourceTypeEnum = typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum[keyof typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum];
7837
8132
  /**
7838
- * Source-specific options
8133
+ * Source-specific options. For `archive` send `archive_path`. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
7839
8134
  * @export
7840
8135
  * @interface HostingV1NodeJsStartBuildRequestSourceOptions
7841
8136
  */
@@ -7846,6 +8141,30 @@ export interface HostingV1NodeJsStartBuildRequestSourceOptions {
7846
8141
  * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
7847
8142
  */
7848
8143
  'archive_path': string;
8144
+ /**
8145
+ * Repository owner login (required if source is \"git\"). GitLab group paths use slashes.
8146
+ * @type {string}
8147
+ * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
8148
+ */
8149
+ 'owner': string;
8150
+ /**
8151
+ * Repository name without the .git suffix (required if source is \"git\")
8152
+ * @type {string}
8153
+ * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
8154
+ */
8155
+ 'repository': string;
8156
+ /**
8157
+ * Branch to build (required if source is \"git\")
8158
+ * @type {string}
8159
+ * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
8160
+ */
8161
+ 'branch': string;
8162
+ /**
8163
+ * Git installation used to access the repository (required if source is \"git\")
8164
+ * @type {string}
8165
+ * @memberof HostingV1NodeJsStartBuildRequestSourceOptions
8166
+ */
8167
+ 'installation_uuid': string;
7849
8168
  }
7850
8169
  /**
7851
8170
  *
@@ -23065,6 +23384,235 @@ export declare const ListWebsiteFilesAndDirectoriesV1FileTypesEnum: {
23065
23384
  readonly Other: "other";
23066
23385
  };
23067
23386
  export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum[keyof typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum];
23387
+ /**
23388
+ * HostingGitApi - axios parameter creator
23389
+ * @export
23390
+ */
23391
+ export declare const HostingGitApiAxiosParamCreator: (configuration?: Configuration) => {
23392
+ /**
23393
+ * Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
23394
+ * @summary Delete Git auto-deployment settings
23395
+ * @param {string} username
23396
+ * @param {string} domain Domain name
23397
+ * @param {*} [options] Override http request option.
23398
+ * @throws {RequiredError}
23399
+ */
23400
+ deleteGitAutoDeploymentSettingsV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23401
+ /**
23402
+ * Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
23403
+ * @summary Get Git auto-deployment settings
23404
+ * @param {string} username
23405
+ * @param {string} domain Domain name
23406
+ * @param {*} [options] Override http request option.
23407
+ * @throws {RequiredError}
23408
+ */
23409
+ getGitAutoDeploymentSettingsV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23410
+ /**
23411
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23412
+ * @summary List Git installation repositories
23413
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23414
+ * @param {*} [options] Override http request option.
23415
+ * @throws {RequiredError}
23416
+ */
23417
+ listGitInstallationRepositoriesV1: (uuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23418
+ /**
23419
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
23420
+ * @summary List Git installations
23421
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23422
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23423
+ * @param {*} [options] Override http request option.
23424
+ * @throws {RequiredError}
23425
+ */
23426
+ listGitInstallationsV1: (provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23427
+ /**
23428
+ * Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
23429
+ * @summary Update Git auto-deployment settings
23430
+ * @param {string} username
23431
+ * @param {string} domain Domain name
23432
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
23433
+ * @param {*} [options] Override http request option.
23434
+ * @throws {RequiredError}
23435
+ */
23436
+ updateGitAutoDeploymentSettingsV1: (username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23437
+ };
23438
+ /**
23439
+ * HostingGitApi - functional programming interface
23440
+ * @export
23441
+ */
23442
+ export declare const HostingGitApiFp: (configuration?: Configuration) => {
23443
+ /**
23444
+ * Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
23445
+ * @summary Delete Git auto-deployment settings
23446
+ * @param {string} username
23447
+ * @param {string} domain Domain name
23448
+ * @param {*} [options] Override http request option.
23449
+ * @throws {RequiredError}
23450
+ */
23451
+ deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
23452
+ /**
23453
+ * Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
23454
+ * @summary Get Git auto-deployment settings
23455
+ * @param {string} username
23456
+ * @param {string} domain Domain name
23457
+ * @param {*} [options] Override http request option.
23458
+ * @throws {RequiredError}
23459
+ */
23460
+ getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1GitGitAutoDeploymentSettingsResource>>;
23461
+ /**
23462
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23463
+ * @summary List Git installation repositories
23464
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23465
+ * @param {*} [options] Override http request option.
23466
+ * @throws {RequiredError}
23467
+ */
23468
+ listGitInstallationRepositoriesV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1GitGitRepositoryResource>>>;
23469
+ /**
23470
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
23471
+ * @summary List Git installations
23472
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23473
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23474
+ * @param {*} [options] Override http request option.
23475
+ * @throws {RequiredError}
23476
+ */
23477
+ listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1GitGitInstallationResource>>>;
23478
+ /**
23479
+ * Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
23480
+ * @summary Update Git auto-deployment settings
23481
+ * @param {string} username
23482
+ * @param {string} domain Domain name
23483
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
23484
+ * @param {*} [options] Override http request option.
23485
+ * @throws {RequiredError}
23486
+ */
23487
+ updateGitAutoDeploymentSettingsV1(username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
23488
+ };
23489
+ /**
23490
+ * HostingGitApi - factory interface
23491
+ * @export
23492
+ */
23493
+ export declare const HostingGitApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
23494
+ /**
23495
+ * Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
23496
+ * @summary Delete Git auto-deployment settings
23497
+ * @param {string} username
23498
+ * @param {string} domain Domain name
23499
+ * @param {*} [options] Override http request option.
23500
+ * @throws {RequiredError}
23501
+ */
23502
+ deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
23503
+ /**
23504
+ * Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
23505
+ * @summary Get Git auto-deployment settings
23506
+ * @param {string} username
23507
+ * @param {string} domain Domain name
23508
+ * @param {*} [options] Override http request option.
23509
+ * @throws {RequiredError}
23510
+ */
23511
+ getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1GitGitAutoDeploymentSettingsResource>;
23512
+ /**
23513
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23514
+ * @summary List Git installation repositories
23515
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23516
+ * @param {*} [options] Override http request option.
23517
+ * @throws {RequiredError}
23518
+ */
23519
+ listGitInstallationRepositoriesV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitGitRepositoryResource>>;
23520
+ /**
23521
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
23522
+ * @summary List Git installations
23523
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23524
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23525
+ * @param {*} [options] Override http request option.
23526
+ * @throws {RequiredError}
23527
+ */
23528
+ listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitGitInstallationResource>>;
23529
+ /**
23530
+ * Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
23531
+ * @summary Update Git auto-deployment settings
23532
+ * @param {string} username
23533
+ * @param {string} domain Domain name
23534
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
23535
+ * @param {*} [options] Override http request option.
23536
+ * @throws {RequiredError}
23537
+ */
23538
+ updateGitAutoDeploymentSettingsV1(username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
23539
+ };
23540
+ /**
23541
+ * HostingGitApi - object-oriented interface
23542
+ * @export
23543
+ * @class HostingGitApi
23544
+ * @extends {BaseAPI}
23545
+ */
23546
+ export declare class HostingGitApi extends BaseAPI {
23547
+ /**
23548
+ * Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
23549
+ * @summary Delete Git auto-deployment settings
23550
+ * @param {string} username
23551
+ * @param {string} domain Domain name
23552
+ * @param {*} [options] Override http request option.
23553
+ * @throws {RequiredError}
23554
+ * @memberof HostingGitApi
23555
+ */
23556
+ deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
23557
+ /**
23558
+ * Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
23559
+ * @summary Get Git auto-deployment settings
23560
+ * @param {string} username
23561
+ * @param {string} domain Domain name
23562
+ * @param {*} [options] Override http request option.
23563
+ * @throws {RequiredError}
23564
+ * @memberof HostingGitApi
23565
+ */
23566
+ getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1GitGitAutoDeploymentSettingsResource, any, {}, any>>;
23567
+ /**
23568
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23569
+ * @summary List Git installation repositories
23570
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23571
+ * @param {*} [options] Override http request option.
23572
+ * @throws {RequiredError}
23573
+ * @memberof HostingGitApi
23574
+ */
23575
+ listGitInstallationRepositoriesV1(uuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1GitGitRepositoryResource[], any, {}, any>>;
23576
+ /**
23577
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
23578
+ * @summary List Git installations
23579
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23580
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23581
+ * @param {*} [options] Override http request option.
23582
+ * @throws {RequiredError}
23583
+ * @memberof HostingGitApi
23584
+ */
23585
+ listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1GitGitInstallationResource[], any, {}, any>>;
23586
+ /**
23587
+ * Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
23588
+ * @summary Update Git auto-deployment settings
23589
+ * @param {string} username
23590
+ * @param {string} domain Domain name
23591
+ * @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
23592
+ * @param {*} [options] Override http request option.
23593
+ * @throws {RequiredError}
23594
+ * @memberof HostingGitApi
23595
+ */
23596
+ updateGitAutoDeploymentSettingsV1(username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
23597
+ }
23598
+ /**
23599
+ * @export
23600
+ */
23601
+ export declare const ListGitInstallationsV1ProviderEnum: {
23602
+ readonly Github: "github";
23603
+ readonly Gitlab: "gitlab";
23604
+ readonly Bitbucket: "bitbucket";
23605
+ };
23606
+ export type ListGitInstallationsV1ProviderEnum = typeof ListGitInstallationsV1ProviderEnum[keyof typeof ListGitInstallationsV1ProviderEnum];
23607
+ /**
23608
+ * @export
23609
+ */
23610
+ export declare const ListGitInstallationsV1StatusEnum: {
23611
+ readonly Pending: "pending";
23612
+ readonly Active: "active";
23613
+ readonly Suspended: "suspended";
23614
+ };
23615
+ export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1StatusEnum[keyof typeof ListGitInstallationsV1StatusEnum];
23068
23616
  /**
23069
23617
  * HostingNodeJSApi - axios parameter creator
23070
23618
  * @export
@@ -23203,7 +23751,7 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
23203
23751
  */
23204
23752
  restartNodeJsApplicationV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23205
23753
  /**
23206
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
23754
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
23207
23755
  * @summary Start Node.js build
23208
23756
  * @param {string} username
23209
23757
  * @param {string} domain Domain name
@@ -23361,7 +23909,7 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
23361
23909
  */
23362
23910
  restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
23363
23911
  /**
23364
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
23912
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
23365
23913
  * @summary Start Node.js build
23366
23914
  * @param {string} username
23367
23915
  * @param {string} domain Domain name
@@ -23519,7 +24067,7 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
23519
24067
  */
23520
24068
  restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
23521
24069
  /**
23522
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
24070
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
23523
24071
  * @summary Start Node.js build
23524
24072
  * @param {string} username
23525
24073
  * @param {string} domain Domain name
@@ -23692,7 +24240,7 @@ export declare class HostingNodeJSApi extends BaseAPI {
23692
24240
  */
23693
24241
  restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
23694
24242
  /**
23695
- * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. The `source_type` must be `archive` and `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
24243
+ * Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
23696
24244
  * @summary Start Node.js build
23697
24245
  * @param {string} username
23698
24246
  * @param {string} domain Domain name