@hostinger/sdk 1.57.0 → 1.58.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +464 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +296 -1
- package/dist/api.js +308 -10
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +296 -1
- package/dist/esm/api.js +299 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingGitApi.md +228 -0
- package/docs/HostingV1GitDeployWebsiteGitRepositoryRequest.md +24 -0
- package/docs/HostingV1GitGitDeployOutputResource.md +23 -0
- package/docs/HostingV1GitGitSshKeyResource.md +21 -0
- package/docs/HostingV1GitWebsiteGitRepositoryResource.md +27 -0
- package/docs/HostingV1GitWebsiteGitRepositoryWebhookResource.md +27 -0
- package/docs/WordPressV1McpExecuteMcpToolRequest.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.58.1
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.58.1 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.58.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -7494,6 +7494,31 @@ export interface HostingV1FilesUploadUrlResource {
|
|
|
7494
7494
|
*/
|
|
7495
7495
|
'rest_auth_key': string;
|
|
7496
7496
|
}
|
|
7497
|
+
/**
|
|
7498
|
+
*
|
|
7499
|
+
* @export
|
|
7500
|
+
* @interface HostingV1GitDeployWebsiteGitRepositoryRequest
|
|
7501
|
+
*/
|
|
7502
|
+
export interface HostingV1GitDeployWebsiteGitRepositoryRequest {
|
|
7503
|
+
/**
|
|
7504
|
+
* Clone URL of the repository on any Git host, SSH or HTTPS. Private repositories need an SSH URL and the account\'s Git SSH key added to the repository as a deploy key. An HTTP or HTTPS URL with a username or token, or any URL with a password, is rejected.
|
|
7505
|
+
* @type {string}
|
|
7506
|
+
* @memberof HostingV1GitDeployWebsiteGitRepositoryRequest
|
|
7507
|
+
*/
|
|
7508
|
+
'repository_url': string;
|
|
7509
|
+
/**
|
|
7510
|
+
* Branch to clone and pull
|
|
7511
|
+
* @type {string}
|
|
7512
|
+
* @memberof HostingV1GitDeployWebsiteGitRepositoryRequest
|
|
7513
|
+
*/
|
|
7514
|
+
'branch': string;
|
|
7515
|
+
/**
|
|
7516
|
+
* Directory under the website document root, exactly as `List website Git repositories` returns it for an existing repository. Empty, null or omitted means the document root.
|
|
7517
|
+
* @type {string}
|
|
7518
|
+
* @memberof HostingV1GitDeployWebsiteGitRepositoryRequest
|
|
7519
|
+
*/
|
|
7520
|
+
'directory': string | null;
|
|
7521
|
+
}
|
|
7497
7522
|
/**
|
|
7498
7523
|
* Every field is null when the website has no Git auto-deployment configured.
|
|
7499
7524
|
* @export
|
|
@@ -7581,6 +7606,25 @@ export interface HostingV1GitGitCommitResource {
|
|
|
7581
7606
|
*/
|
|
7582
7607
|
'author': HostingV1GitGitCommitAuthorResource;
|
|
7583
7608
|
}
|
|
7609
|
+
/**
|
|
7610
|
+
* Result of cloning or pulling a Git repository into the website
|
|
7611
|
+
* @export
|
|
7612
|
+
* @interface HostingV1GitGitDeployOutputResource
|
|
7613
|
+
*/
|
|
7614
|
+
export interface HostingV1GitGitDeployOutputResource {
|
|
7615
|
+
/**
|
|
7616
|
+
* Whether the clone or pull, and composer install when it ran, finished without errors
|
|
7617
|
+
* @type {boolean}
|
|
7618
|
+
* @memberof HostingV1GitGitDeployOutputResource
|
|
7619
|
+
*/
|
|
7620
|
+
'is_success': boolean;
|
|
7621
|
+
/**
|
|
7622
|
+
* Log of the deployment steps, and the Git or composer error when `is_success` is false
|
|
7623
|
+
* @type {string}
|
|
7624
|
+
* @memberof HostingV1GitGitDeployOutputResource
|
|
7625
|
+
*/
|
|
7626
|
+
'output': string;
|
|
7627
|
+
}
|
|
7584
7628
|
/**
|
|
7585
7629
|
*
|
|
7586
7630
|
* @export
|
|
@@ -7719,6 +7763,19 @@ export interface HostingV1GitGitRepositoryResource {
|
|
|
7719
7763
|
*/
|
|
7720
7764
|
'default_branch': string;
|
|
7721
7765
|
}
|
|
7766
|
+
/**
|
|
7767
|
+
* Public SSH key the hosting account uses to clone and pull Git repositories
|
|
7768
|
+
* @export
|
|
7769
|
+
* @interface HostingV1GitGitSshKeyResource
|
|
7770
|
+
*/
|
|
7771
|
+
export interface HostingV1GitGitSshKeyResource {
|
|
7772
|
+
/**
|
|
7773
|
+
* Public key to add as a deploy key on the Git host. Null when the account has no key yet.
|
|
7774
|
+
* @type {string}
|
|
7775
|
+
* @memberof HostingV1GitGitSshKeyResource
|
|
7776
|
+
*/
|
|
7777
|
+
'public_key': string | null;
|
|
7778
|
+
}
|
|
7722
7779
|
/**
|
|
7723
7780
|
*
|
|
7724
7781
|
* @export
|
|
@@ -7762,6 +7819,68 @@ export interface HostingV1GitUpdateGitAutoDeploymentSettingsRequest {
|
|
|
7762
7819
|
*/
|
|
7763
7820
|
'is_enabled': boolean;
|
|
7764
7821
|
}
|
|
7822
|
+
/**
|
|
7823
|
+
* Git repository linked to a directory of the website. A repository whose clone failed stays listed; deploying it again retries the clone.
|
|
7824
|
+
* @export
|
|
7825
|
+
* @interface HostingV1GitWebsiteGitRepositoryResource
|
|
7826
|
+
*/
|
|
7827
|
+
export interface HostingV1GitWebsiteGitRepositoryResource {
|
|
7828
|
+
/**
|
|
7829
|
+
* Clone URL of the repository. A username, password or token in an HTTP(S) URL, or a password in any URL, is shown as `***`.
|
|
7830
|
+
* @type {string}
|
|
7831
|
+
* @memberof HostingV1GitWebsiteGitRepositoryResource
|
|
7832
|
+
*/
|
|
7833
|
+
'repository_url': string;
|
|
7834
|
+
/**
|
|
7835
|
+
* Branch that is cloned and pulled
|
|
7836
|
+
* @type {string}
|
|
7837
|
+
* @memberof HostingV1GitWebsiteGitRepositoryResource
|
|
7838
|
+
*/
|
|
7839
|
+
'branch': string;
|
|
7840
|
+
/**
|
|
7841
|
+
* Directory under the website document root. Empty means the document root.
|
|
7842
|
+
* @type {string}
|
|
7843
|
+
* @memberof HostingV1GitWebsiteGitRepositoryResource
|
|
7844
|
+
*/
|
|
7845
|
+
'directory': string;
|
|
7846
|
+
/**
|
|
7847
|
+
*
|
|
7848
|
+
* @type {HostingV1GitWebsiteGitRepositoryWebhookResource}
|
|
7849
|
+
* @memberof HostingV1GitWebsiteGitRepositoryResource
|
|
7850
|
+
*/
|
|
7851
|
+
'webhook': HostingV1GitWebsiteGitRepositoryWebhookResource;
|
|
7852
|
+
}
|
|
7853
|
+
/**
|
|
7854
|
+
* Auto-deployment webhook of the repository, the same one the Git section of hPanel shows
|
|
7855
|
+
* @export
|
|
7856
|
+
* @interface HostingV1GitWebsiteGitRepositoryWebhookResource
|
|
7857
|
+
*/
|
|
7858
|
+
export interface HostingV1GitWebsiteGitRepositoryWebhookResource {
|
|
7859
|
+
/**
|
|
7860
|
+
* Webhook URL to add on the Git host for automatic deployment
|
|
7861
|
+
* @type {string}
|
|
7862
|
+
* @memberof HostingV1GitWebsiteGitRepositoryWebhookResource
|
|
7863
|
+
*/
|
|
7864
|
+
'url': string;
|
|
7865
|
+
/**
|
|
7866
|
+
* Git host detected from the repository URL. Null when it is not GitHub, GitLab or Bitbucket.
|
|
7867
|
+
* @type {string}
|
|
7868
|
+
* @memberof HostingV1GitWebsiteGitRepositoryWebhookResource
|
|
7869
|
+
*/
|
|
7870
|
+
'provider': string | null;
|
|
7871
|
+
/**
|
|
7872
|
+
* Page on the Git host where the webhook is added. Null when the host is not detected.
|
|
7873
|
+
* @type {string}
|
|
7874
|
+
* @memberof HostingV1GitWebsiteGitRepositoryWebhookResource
|
|
7875
|
+
*/
|
|
7876
|
+
'setup_url': string | null;
|
|
7877
|
+
/**
|
|
7878
|
+
* Git host guide for adding a webhook. Null when the host is not detected.
|
|
7879
|
+
* @type {string}
|
|
7880
|
+
* @memberof HostingV1GitWebsiteGitRepositoryWebhookResource
|
|
7881
|
+
*/
|
|
7882
|
+
'tutorial_url': string | null;
|
|
7883
|
+
}
|
|
7765
7884
|
/**
|
|
7766
7885
|
*
|
|
7767
7886
|
* @export
|
|
@@ -16479,6 +16598,39 @@ export interface WordPressV1MaintenanceToggleMaintenanceRequest {
|
|
|
16479
16598
|
*/
|
|
16480
16599
|
'enabled': boolean;
|
|
16481
16600
|
}
|
|
16601
|
+
/**
|
|
16602
|
+
*
|
|
16603
|
+
* @export
|
|
16604
|
+
* @interface WordPressV1McpExecuteMcpToolRequest
|
|
16605
|
+
*/
|
|
16606
|
+
export interface WordPressV1McpExecuteMcpToolRequest {
|
|
16607
|
+
/**
|
|
16608
|
+
* Tool name as returned by the List MCP tools endpoint.
|
|
16609
|
+
* @type {string}
|
|
16610
|
+
* @memberof WordPressV1McpExecuteMcpToolRequest
|
|
16611
|
+
*/
|
|
16612
|
+
'tool_name': string;
|
|
16613
|
+
/**
|
|
16614
|
+
* Tool input matching the input schema returned by the Show MCP tool info endpoint.
|
|
16615
|
+
* @type {{ [key: string]: any; }}
|
|
16616
|
+
* @memberof WordPressV1McpExecuteMcpToolRequest
|
|
16617
|
+
*/
|
|
16618
|
+
'parameters': { [key: string]: any; };
|
|
16619
|
+
/**
|
|
16620
|
+
* MCP server exposing the tool. Defaults to the mcp-adapter default server.
|
|
16621
|
+
* @type {string}
|
|
16622
|
+
* @memberof WordPressV1McpExecuteMcpToolRequest
|
|
16623
|
+
*/
|
|
16624
|
+
'server': WordPressV1McpExecuteMcpToolRequestServerEnum | null;
|
|
16625
|
+
}
|
|
16626
|
+
|
|
16627
|
+
export const WordPressV1McpExecuteMcpToolRequestServerEnum = {
|
|
16628
|
+
McpAdapterDefaultServer: 'mcp-adapter-default-server',
|
|
16629
|
+
HostingerAiAssistantMcpServer: 'hostinger-ai-assistant-mcp-server'
|
|
16630
|
+
} as const;
|
|
16631
|
+
|
|
16632
|
+
export type WordPressV1McpExecuteMcpToolRequestServerEnum = typeof WordPressV1McpExecuteMcpToolRequestServerEnum[keyof typeof WordPressV1McpExecuteMcpToolRequestServerEnum];
|
|
16633
|
+
|
|
16482
16634
|
/**
|
|
16483
16635
|
*
|
|
16484
16636
|
* @export
|
|
@@ -31805,6 +31957,92 @@ export const HostingGitApiAxiosParamCreator = function (configuration?: Configur
|
|
|
31805
31957
|
|
|
31806
31958
|
|
|
31807
31959
|
|
|
31960
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31961
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31962
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31963
|
+
|
|
31964
|
+
return {
|
|
31965
|
+
url: toPathString(localVarUrlObj),
|
|
31966
|
+
options: localVarRequestOptions,
|
|
31967
|
+
};
|
|
31968
|
+
},
|
|
31969
|
+
/**
|
|
31970
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
31971
|
+
* @summary Deploy website Git repository
|
|
31972
|
+
* @param {string} username
|
|
31973
|
+
* @param {string} domain Domain name
|
|
31974
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
31975
|
+
* @param {*} [options] Override http request option.
|
|
31976
|
+
* @throws {RequiredError}
|
|
31977
|
+
*/
|
|
31978
|
+
deployWebsiteGitRepositoryV1: async (username: string, domain: string, hostingV1GitDeployWebsiteGitRepositoryRequest: HostingV1GitDeployWebsiteGitRepositoryRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31979
|
+
// verify required parameter 'username' is not null or undefined
|
|
31980
|
+
assertParamExists('deployWebsiteGitRepositoryV1', 'username', username)
|
|
31981
|
+
// verify required parameter 'domain' is not null or undefined
|
|
31982
|
+
assertParamExists('deployWebsiteGitRepositoryV1', 'domain', domain)
|
|
31983
|
+
// verify required parameter 'hostingV1GitDeployWebsiteGitRepositoryRequest' is not null or undefined
|
|
31984
|
+
assertParamExists('deployWebsiteGitRepositoryV1', 'hostingV1GitDeployWebsiteGitRepositoryRequest', hostingV1GitDeployWebsiteGitRepositoryRequest)
|
|
31985
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/repositories/deploy`
|
|
31986
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
31987
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
31988
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31989
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31990
|
+
let baseOptions;
|
|
31991
|
+
if (configuration) {
|
|
31992
|
+
baseOptions = configuration.baseOptions;
|
|
31993
|
+
}
|
|
31994
|
+
|
|
31995
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
31996
|
+
const localVarHeaderParameter = {} as any;
|
|
31997
|
+
const localVarQueryParameter = {} as any;
|
|
31998
|
+
|
|
31999
|
+
// authentication apiToken required
|
|
32000
|
+
// http bearer authentication required
|
|
32001
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32002
|
+
|
|
32003
|
+
|
|
32004
|
+
|
|
32005
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32006
|
+
|
|
32007
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32008
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32009
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32010
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1GitDeployWebsiteGitRepositoryRequest, localVarRequestOptions, configuration)
|
|
32011
|
+
|
|
32012
|
+
return {
|
|
32013
|
+
url: toPathString(localVarUrlObj),
|
|
32014
|
+
options: localVarRequestOptions,
|
|
32015
|
+
};
|
|
32016
|
+
},
|
|
32017
|
+
/**
|
|
32018
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
32019
|
+
* @summary Generate Git SSH key
|
|
32020
|
+
* @param {string} username
|
|
32021
|
+
* @param {*} [options] Override http request option.
|
|
32022
|
+
* @throws {RequiredError}
|
|
32023
|
+
*/
|
|
32024
|
+
generateGitSSHKeyV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32025
|
+
// verify required parameter 'username' is not null or undefined
|
|
32026
|
+
assertParamExists('generateGitSSHKeyV1', 'username', username)
|
|
32027
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/git/ssh-key`
|
|
32028
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
32029
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32030
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32031
|
+
let baseOptions;
|
|
32032
|
+
if (configuration) {
|
|
32033
|
+
baseOptions = configuration.baseOptions;
|
|
32034
|
+
}
|
|
32035
|
+
|
|
32036
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32037
|
+
const localVarHeaderParameter = {} as any;
|
|
32038
|
+
const localVarQueryParameter = {} as any;
|
|
32039
|
+
|
|
32040
|
+
// authentication apiToken required
|
|
32041
|
+
// http bearer authentication required
|
|
32042
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32043
|
+
|
|
32044
|
+
|
|
32045
|
+
|
|
31808
32046
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31809
32047
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31810
32048
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -31847,6 +32085,44 @@ export const HostingGitApiAxiosParamCreator = function (configuration?: Configur
|
|
|
31847
32085
|
|
|
31848
32086
|
|
|
31849
32087
|
|
|
32088
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32089
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32090
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32091
|
+
|
|
32092
|
+
return {
|
|
32093
|
+
url: toPathString(localVarUrlObj),
|
|
32094
|
+
options: localVarRequestOptions,
|
|
32095
|
+
};
|
|
32096
|
+
},
|
|
32097
|
+
/**
|
|
32098
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
32099
|
+
* @summary Get Git SSH public key
|
|
32100
|
+
* @param {string} username
|
|
32101
|
+
* @param {*} [options] Override http request option.
|
|
32102
|
+
* @throws {RequiredError}
|
|
32103
|
+
*/
|
|
32104
|
+
getGitSSHPublicKeyV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32105
|
+
// verify required parameter 'username' is not null or undefined
|
|
32106
|
+
assertParamExists('getGitSSHPublicKeyV1', 'username', username)
|
|
32107
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/git/ssh-key`
|
|
32108
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
32109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32111
|
+
let baseOptions;
|
|
32112
|
+
if (configuration) {
|
|
32113
|
+
baseOptions = configuration.baseOptions;
|
|
32114
|
+
}
|
|
32115
|
+
|
|
32116
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32117
|
+
const localVarHeaderParameter = {} as any;
|
|
32118
|
+
const localVarQueryParameter = {} as any;
|
|
32119
|
+
|
|
32120
|
+
// authentication apiToken required
|
|
32121
|
+
// http bearer authentication required
|
|
32122
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32123
|
+
|
|
32124
|
+
|
|
32125
|
+
|
|
31850
32126
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31851
32127
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31852
32128
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -31929,6 +32205,48 @@ export const HostingGitApiAxiosParamCreator = function (configuration?: Configur
|
|
|
31929
32205
|
|
|
31930
32206
|
|
|
31931
32207
|
|
|
32208
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32209
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32210
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32211
|
+
|
|
32212
|
+
return {
|
|
32213
|
+
url: toPathString(localVarUrlObj),
|
|
32214
|
+
options: localVarRequestOptions,
|
|
32215
|
+
};
|
|
32216
|
+
},
|
|
32217
|
+
/**
|
|
32218
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
32219
|
+
* @summary List website Git repositories
|
|
32220
|
+
* @param {string} username
|
|
32221
|
+
* @param {string} domain Domain name
|
|
32222
|
+
* @param {*} [options] Override http request option.
|
|
32223
|
+
* @throws {RequiredError}
|
|
32224
|
+
*/
|
|
32225
|
+
listWebsiteGitRepositoriesV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32226
|
+
// verify required parameter 'username' is not null or undefined
|
|
32227
|
+
assertParamExists('listWebsiteGitRepositoriesV1', 'username', username)
|
|
32228
|
+
// verify required parameter 'domain' is not null or undefined
|
|
32229
|
+
assertParamExists('listWebsiteGitRepositoriesV1', 'domain', domain)
|
|
32230
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/repositories`
|
|
32231
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
32232
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
32233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32235
|
+
let baseOptions;
|
|
32236
|
+
if (configuration) {
|
|
32237
|
+
baseOptions = configuration.baseOptions;
|
|
32238
|
+
}
|
|
32239
|
+
|
|
32240
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
32241
|
+
const localVarHeaderParameter = {} as any;
|
|
32242
|
+
const localVarQueryParameter = {} as any;
|
|
32243
|
+
|
|
32244
|
+
// authentication apiToken required
|
|
32245
|
+
// http bearer authentication required
|
|
32246
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32247
|
+
|
|
32248
|
+
|
|
32249
|
+
|
|
31932
32250
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31933
32251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31934
32252
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -32009,6 +32327,32 @@ export const HostingGitApiFp = function(configuration?: Configuration) {
|
|
|
32009
32327
|
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.deleteGitAutoDeploymentSettingsV1']?.[0]?.url;
|
|
32010
32328
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32011
32329
|
},
|
|
32330
|
+
/**
|
|
32331
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
32332
|
+
* @summary Deploy website Git repository
|
|
32333
|
+
* @param {string} username
|
|
32334
|
+
* @param {string} domain Domain name
|
|
32335
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
32336
|
+
* @param {*} [options] Override http request option.
|
|
32337
|
+
* @throws {RequiredError}
|
|
32338
|
+
*/
|
|
32339
|
+
async deployWebsiteGitRepositoryV1(username: string, domain: string, hostingV1GitDeployWebsiteGitRepositoryRequest: HostingV1GitDeployWebsiteGitRepositoryRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1GitGitDeployOutputResource>> {
|
|
32340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options);
|
|
32341
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.deployWebsiteGitRepositoryV1']?.[0]?.url;
|
|
32342
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32343
|
+
},
|
|
32344
|
+
/**
|
|
32345
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
32346
|
+
* @summary Generate Git SSH key
|
|
32347
|
+
* @param {string} username
|
|
32348
|
+
* @param {*} [options] Override http request option.
|
|
32349
|
+
* @throws {RequiredError}
|
|
32350
|
+
*/
|
|
32351
|
+
async generateGitSSHKeyV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1GitGitSshKeyResource>> {
|
|
32352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateGitSSHKeyV1(username, options);
|
|
32353
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.generateGitSSHKeyV1']?.[0]?.url;
|
|
32354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32355
|
+
},
|
|
32012
32356
|
/**
|
|
32013
32357
|
* 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`.
|
|
32014
32358
|
* @summary Get Git auto-deployment settings
|
|
@@ -32022,6 +32366,18 @@ export const HostingGitApiFp = function(configuration?: Configuration) {
|
|
|
32022
32366
|
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.getGitAutoDeploymentSettingsV1']?.[0]?.url;
|
|
32023
32367
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32024
32368
|
},
|
|
32369
|
+
/**
|
|
32370
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
32371
|
+
* @summary Get Git SSH public key
|
|
32372
|
+
* @param {string} username
|
|
32373
|
+
* @param {*} [options] Override http request option.
|
|
32374
|
+
* @throws {RequiredError}
|
|
32375
|
+
*/
|
|
32376
|
+
async getGitSSHPublicKeyV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1GitGitSshKeyResource>> {
|
|
32377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGitSSHPublicKeyV1(username, options);
|
|
32378
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.getGitSSHPublicKeyV1']?.[0]?.url;
|
|
32379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32380
|
+
},
|
|
32025
32381
|
/**
|
|
32026
32382
|
* 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).
|
|
32027
32383
|
* @summary List Git installation repositories
|
|
@@ -32047,6 +32403,19 @@ export const HostingGitApiFp = function(configuration?: Configuration) {
|
|
|
32047
32403
|
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.listGitInstallationsV1']?.[0]?.url;
|
|
32048
32404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32049
32405
|
},
|
|
32406
|
+
/**
|
|
32407
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
32408
|
+
* @summary List website Git repositories
|
|
32409
|
+
* @param {string} username
|
|
32410
|
+
* @param {string} domain Domain name
|
|
32411
|
+
* @param {*} [options] Override http request option.
|
|
32412
|
+
* @throws {RequiredError}
|
|
32413
|
+
*/
|
|
32414
|
+
async listWebsiteGitRepositoriesV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1GitWebsiteGitRepositoryResource>>> {
|
|
32415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWebsiteGitRepositoriesV1(username, domain, options);
|
|
32416
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.listWebsiteGitRepositoriesV1']?.[0]?.url;
|
|
32417
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32418
|
+
},
|
|
32050
32419
|
/**
|
|
32051
32420
|
* 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.
|
|
32052
32421
|
* @summary Update Git auto-deployment settings
|
|
@@ -32082,6 +32451,28 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
32082
32451
|
deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
32083
32452
|
return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
32084
32453
|
},
|
|
32454
|
+
/**
|
|
32455
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
32456
|
+
* @summary Deploy website Git repository
|
|
32457
|
+
* @param {string} username
|
|
32458
|
+
* @param {string} domain Domain name
|
|
32459
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
32460
|
+
* @param {*} [options] Override http request option.
|
|
32461
|
+
* @throws {RequiredError}
|
|
32462
|
+
*/
|
|
32463
|
+
deployWebsiteGitRepositoryV1(username: string, domain: string, hostingV1GitDeployWebsiteGitRepositoryRequest: HostingV1GitDeployWebsiteGitRepositoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1GitGitDeployOutputResource> {
|
|
32464
|
+
return localVarFp.deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options).then((request) => request(axios, basePath));
|
|
32465
|
+
},
|
|
32466
|
+
/**
|
|
32467
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
32468
|
+
* @summary Generate Git SSH key
|
|
32469
|
+
* @param {string} username
|
|
32470
|
+
* @param {*} [options] Override http request option.
|
|
32471
|
+
* @throws {RequiredError}
|
|
32472
|
+
*/
|
|
32473
|
+
generateGitSSHKeyV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1GitGitSshKeyResource> {
|
|
32474
|
+
return localVarFp.generateGitSSHKeyV1(username, options).then((request) => request(axios, basePath));
|
|
32475
|
+
},
|
|
32085
32476
|
/**
|
|
32086
32477
|
* 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`.
|
|
32087
32478
|
* @summary Get Git auto-deployment settings
|
|
@@ -32093,6 +32484,16 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
32093
32484
|
getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1GitGitAutoDeploymentSettingsResource> {
|
|
32094
32485
|
return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
32095
32486
|
},
|
|
32487
|
+
/**
|
|
32488
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
32489
|
+
* @summary Get Git SSH public key
|
|
32490
|
+
* @param {string} username
|
|
32491
|
+
* @param {*} [options] Override http request option.
|
|
32492
|
+
* @throws {RequiredError}
|
|
32493
|
+
*/
|
|
32494
|
+
getGitSSHPublicKeyV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1GitGitSshKeyResource> {
|
|
32495
|
+
return localVarFp.getGitSSHPublicKeyV1(username, options).then((request) => request(axios, basePath));
|
|
32496
|
+
},
|
|
32096
32497
|
/**
|
|
32097
32498
|
* 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).
|
|
32098
32499
|
* @summary List Git installation repositories
|
|
@@ -32114,6 +32515,17 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
32114
32515
|
listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitGitInstallationResource>> {
|
|
32115
32516
|
return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
|
|
32116
32517
|
},
|
|
32518
|
+
/**
|
|
32519
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
32520
|
+
* @summary List website Git repositories
|
|
32521
|
+
* @param {string} username
|
|
32522
|
+
* @param {string} domain Domain name
|
|
32523
|
+
* @param {*} [options] Override http request option.
|
|
32524
|
+
* @throws {RequiredError}
|
|
32525
|
+
*/
|
|
32526
|
+
listWebsiteGitRepositoriesV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitWebsiteGitRepositoryResource>> {
|
|
32527
|
+
return localVarFp.listWebsiteGitRepositoriesV1(username, domain, options).then((request) => request(axios, basePath));
|
|
32528
|
+
},
|
|
32117
32529
|
/**
|
|
32118
32530
|
* 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.
|
|
32119
32531
|
* @summary Update Git auto-deployment settings
|
|
@@ -32149,6 +32561,32 @@ export class HostingGitApi extends BaseAPI {
|
|
|
32149
32561
|
return HostingGitApiFp(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
32150
32562
|
}
|
|
32151
32563
|
|
|
32564
|
+
/**
|
|
32565
|
+
* Clones a Git repository into a directory of the website, or pulls it again. An empty or missing directory gets a clone of the branch. A directory that already holds this repository and branch is reset to its last commit and pulled: changes made on the server to files the repository tracks are discarded, files it does not track stay. A directory that holds other files, including another repository or another branch of this one, is rejected. `composer install` runs after the clone or pull when the repository has a `composer.json`. The call waits for the deployment and returns its log. `is_success` false means Git or composer failed and the log says why. A second call for the same directory is rejected while the first is still waiting for the server. If the request times out, the deployment may still finish on the server; calling again later with the same repository and branch pulls. Private repositories need an SSH URL and the account\'s Git SSH key from `Generate Git SSH key`, added to the repository as a deploy key.
|
|
32566
|
+
* @summary Deploy website Git repository
|
|
32567
|
+
* @param {string} username
|
|
32568
|
+
* @param {string} domain Domain name
|
|
32569
|
+
* @param {HostingV1GitDeployWebsiteGitRepositoryRequest} hostingV1GitDeployWebsiteGitRepositoryRequest
|
|
32570
|
+
* @param {*} [options] Override http request option.
|
|
32571
|
+
* @throws {RequiredError}
|
|
32572
|
+
* @memberof HostingGitApi
|
|
32573
|
+
*/
|
|
32574
|
+
public deployWebsiteGitRepositoryV1(username: string, domain: string, hostingV1GitDeployWebsiteGitRepositoryRequest: HostingV1GitDeployWebsiteGitRepositoryRequest, options?: RawAxiosRequestConfig) {
|
|
32575
|
+
return HostingGitApiFp(this.configuration).deployWebsiteGitRepositoryV1(username, domain, hostingV1GitDeployWebsiteGitRepositoryRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32576
|
+
}
|
|
32577
|
+
|
|
32578
|
+
/**
|
|
32579
|
+
* Creates the SSH key pair of the hosting account and returns the public key. When the account already has a key, returns that key unchanged. One key serves every website of the account; add the public key to a private repository as a deploy key before deploying it.
|
|
32580
|
+
* @summary Generate Git SSH key
|
|
32581
|
+
* @param {string} username
|
|
32582
|
+
* @param {*} [options] Override http request option.
|
|
32583
|
+
* @throws {RequiredError}
|
|
32584
|
+
* @memberof HostingGitApi
|
|
32585
|
+
*/
|
|
32586
|
+
public generateGitSSHKeyV1(username: string, options?: RawAxiosRequestConfig) {
|
|
32587
|
+
return HostingGitApiFp(this.configuration).generateGitSSHKeyV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
32588
|
+
}
|
|
32589
|
+
|
|
32152
32590
|
/**
|
|
32153
32591
|
* 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`.
|
|
32154
32592
|
* @summary Get Git auto-deployment settings
|
|
@@ -32162,6 +32600,18 @@ export class HostingGitApi extends BaseAPI {
|
|
|
32162
32600
|
return HostingGitApiFp(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
32163
32601
|
}
|
|
32164
32602
|
|
|
32603
|
+
/**
|
|
32604
|
+
* Returns the public SSH key of the hosting account. `Deploy website Git repository` uses this key to clone and pull over SSH, so a private repository works once the key is added to it as a deploy key on the Git host. `public_key` is null when the account has no key yet.
|
|
32605
|
+
* @summary Get Git SSH public key
|
|
32606
|
+
* @param {string} username
|
|
32607
|
+
* @param {*} [options] Override http request option.
|
|
32608
|
+
* @throws {RequiredError}
|
|
32609
|
+
* @memberof HostingGitApi
|
|
32610
|
+
*/
|
|
32611
|
+
public getGitSSHPublicKeyV1(username: string, options?: RawAxiosRequestConfig) {
|
|
32612
|
+
return HostingGitApiFp(this.configuration).getGitSSHPublicKeyV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
32613
|
+
}
|
|
32614
|
+
|
|
32165
32615
|
/**
|
|
32166
32616
|
* 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).
|
|
32167
32617
|
* @summary List Git installation repositories
|
|
@@ -32187,6 +32637,19 @@ export class HostingGitApi extends BaseAPI {
|
|
|
32187
32637
|
return HostingGitApiFp(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
|
|
32188
32638
|
}
|
|
32189
32639
|
|
|
32640
|
+
/**
|
|
32641
|
+
* Lists the Git repositories linked to directories of the website, with `Deploy website Git repository` or in the Git section of hPanel: clone URL, branch and directory of each one. A repository whose clone failed stays listed; deploying it again retries the clone. GitHub and GitLab auto-deployments are not listed here; see `Get Git auto-deployment settings`.
|
|
32642
|
+
* @summary List website Git repositories
|
|
32643
|
+
* @param {string} username
|
|
32644
|
+
* @param {string} domain Domain name
|
|
32645
|
+
* @param {*} [options] Override http request option.
|
|
32646
|
+
* @throws {RequiredError}
|
|
32647
|
+
* @memberof HostingGitApi
|
|
32648
|
+
*/
|
|
32649
|
+
public listWebsiteGitRepositoriesV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
32650
|
+
return HostingGitApiFp(this.configuration).listWebsiteGitRepositoriesV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
32651
|
+
}
|
|
32652
|
+
|
|
32190
32653
|
/**
|
|
32191
32654
|
* 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.
|
|
32192
32655
|
* @summary Update Git auto-deployment settings
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.58.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.58.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.58.1
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.58.1",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|