freestyle-sandboxes 0.0.71 → 0.0.72
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/inde.d.cts +1 -1
- package/dist/inde.d.mts +1 -1
- package/dist/index-BBXyg0JQ.cjs +3253 -0
- package/dist/index-BQHqnjZK.mjs +3231 -0
- package/dist/index-CEEa9WHp.cjs +3238 -0
- package/dist/index-D1ulQeJR.mjs +3247 -0
- package/dist/index-DCF70Xbq.mjs +3246 -0
- package/dist/index-H7UNEAjs.cjs +3254 -0
- package/dist/index.d-CXx1AdyW.d.ts +4210 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/types.gen-1sd31qLV.d.ts +172 -0
- package/dist/{types.gen-wmZuN8DG.d.ts → types.gen-627pxroW.d.ts} +3 -370
- package/dist/types.gen-BCdfx7yt.d.ts +760 -0
- package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
- package/dist/types.gen-BtK6PMQy.d.ts +195 -0
- package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
- package/dist/types.gen-BzRtj_TA.d.ts +725 -0
- package/dist/types.gen-C03gaIPq.d.ts +297 -0
- package/dist/types.gen-CMuCas4r.d.ts +183 -0
- package/dist/types.gen-CZUnqmzP.d.ts +789 -0
- package/dist/types.gen-CnEkmbco.d.ts +314 -0
- package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
- package/dist/types.gen-DHmdEOOa.d.ts +172 -0
- package/dist/types.gen-DLYohMJT.d.ts +382 -0
- package/dist/types.gen-DbTb_SrD.d.ts +156 -0
- package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
- package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
- package/dist/types.gen-MBZCvIhE.d.ts +311 -0
- package/dist/types.gen-YhJAHBw8.d.ts +233 -0
- package/dist/types.gen-cCnnhnB6.d.ts +182 -0
- package/dist/types.gen-mg_JNXrq.d.ts +830 -0
- package/dist/types.gen-uDTr6v-7.d.ts +731 -0
- package/package.json +2 -2
- package/src/index.ts +7 -1
- package/.env +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -278,4 +278,4 @@ declare class FreestyleSandboxes {
|
|
|
278
278
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
281
|
+
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/index.d.mts
CHANGED
|
@@ -278,4 +278,4 @@ declare class FreestyleSandboxes {
|
|
|
278
278
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
281
|
+
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
type FreestyleCloudstateDeployConfiguration = {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the project to deploy, if not provided will create a new project
|
|
4
|
+
*/
|
|
5
|
+
projectId?: (string) | null;
|
|
6
|
+
/**
|
|
7
|
+
* The environment variables that the cloudstate deploy can access
|
|
8
|
+
*/
|
|
9
|
+
envVars?: {
|
|
10
|
+
[key: string]: (string);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type FreestyleCloudstateDeployErrorResponse = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
type FreestyleCloudstateDeployRequest = {
|
|
17
|
+
classes: string;
|
|
18
|
+
config?: FreestyleCloudstateDeployConfiguration;
|
|
19
|
+
};
|
|
20
|
+
type FreestyleCloudstateDeploySuccessResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* The id of the project deployed to
|
|
23
|
+
*/
|
|
24
|
+
projectId: string;
|
|
25
|
+
};
|
|
26
|
+
type FreestyleDeployWebConfiguration = {
|
|
27
|
+
/**
|
|
28
|
+
* The entrypoint file for the website
|
|
29
|
+
*/
|
|
30
|
+
entrypoint?: (string) | null;
|
|
31
|
+
/**
|
|
32
|
+
* The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may not include *.style.dev domains here, those are reserved for projectIds
|
|
33
|
+
*/
|
|
34
|
+
domains?: Array<(string)> | null;
|
|
35
|
+
/**
|
|
36
|
+
* The project id to deploy to, if not provided will create a new project, may be used to provision a new project with a specific id if that id is available
|
|
37
|
+
*/
|
|
38
|
+
projectId?: (string) | null;
|
|
39
|
+
/**
|
|
40
|
+
* Node Modules to install for the website, a map of package names to versions, e.g. { \"express\": \"4.17.1\" }. If this and a package-lock.json are provided, the package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock is also provided, the versions here will override the versions in those lock files.
|
|
41
|
+
*/
|
|
42
|
+
nodeModules?: {
|
|
43
|
+
[key: string]: (string);
|
|
44
|
+
} | null;
|
|
45
|
+
/**
|
|
46
|
+
* The environment variables that the website can access
|
|
47
|
+
* e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
|
|
48
|
+
*/
|
|
49
|
+
envVars?: {
|
|
50
|
+
[key: string]: (string);
|
|
51
|
+
} | null;
|
|
52
|
+
};
|
|
53
|
+
type FreestyleDeployWebErrorResponse = {
|
|
54
|
+
message: string;
|
|
55
|
+
};
|
|
56
|
+
type FreestyleDeployWebPayload = {
|
|
57
|
+
/**
|
|
58
|
+
* The files to deploy, a map of file paths to file contents, e.g. { \"index.js\": {\"content\": \"your main\", \"encoding\": \"utf-8\"}, \"file2.js\": {\"content\": \"your helper\" } }
|
|
59
|
+
*
|
|
60
|
+
* **Do not include node modules in this bundle, they will not work**. Instead, includes a package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock, the node modules for the project will be installed from that lock file, or use the node_modules field in the configuration to specify the node modules to install.
|
|
61
|
+
*/
|
|
62
|
+
files: {
|
|
63
|
+
[key: string]: FreestyleFile;
|
|
64
|
+
};
|
|
65
|
+
config?: FreestyleDeployWebConfiguration;
|
|
66
|
+
};
|
|
67
|
+
type FreestyleDeployWebSuccessResponse = {
|
|
68
|
+
projectId: string;
|
|
69
|
+
};
|
|
70
|
+
type FreestyleDomainVerificationRequest = {
|
|
71
|
+
/**
|
|
72
|
+
* The domain to create a verification code for
|
|
73
|
+
*/
|
|
74
|
+
domain: string;
|
|
75
|
+
};
|
|
76
|
+
type FreestyleExecureScriptResultError = {
|
|
77
|
+
error: string;
|
|
78
|
+
};
|
|
79
|
+
type FreestyleExecureScriptResultSuccess = {
|
|
80
|
+
result: unknown;
|
|
81
|
+
};
|
|
82
|
+
type FreestyleExecuteScriptParams = {
|
|
83
|
+
/**
|
|
84
|
+
* The JavaScript or TypeScript script to execute
|
|
85
|
+
*/
|
|
86
|
+
script: string;
|
|
87
|
+
config?: FreestyleExecuteScriptParamsConfiguration;
|
|
88
|
+
};
|
|
89
|
+
type FreestyleExecuteScriptParamsConfiguration = {
|
|
90
|
+
/**
|
|
91
|
+
* The environment variables to set for the script
|
|
92
|
+
*/
|
|
93
|
+
envVars?: {
|
|
94
|
+
[key: string]: (string);
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* The node modules to install for the script
|
|
98
|
+
*/
|
|
99
|
+
nodeModules?: {
|
|
100
|
+
[key: string]: (string);
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Tags for you to organize your scripts, useful for tracking what you're running
|
|
104
|
+
*/
|
|
105
|
+
tags?: Array<(string)>;
|
|
106
|
+
/**
|
|
107
|
+
* The script timeout
|
|
108
|
+
*/
|
|
109
|
+
timeout?: (string) | null;
|
|
110
|
+
};
|
|
111
|
+
type FreestyleFile = {
|
|
112
|
+
/**
|
|
113
|
+
* The content of the file
|
|
114
|
+
*/
|
|
115
|
+
content: string;
|
|
116
|
+
/**
|
|
117
|
+
* The encoding of the file. Either **utf-8** or **base64**
|
|
118
|
+
*/
|
|
119
|
+
encoding?: string;
|
|
120
|
+
};
|
|
121
|
+
type FreestyleLogResponseObject = {
|
|
122
|
+
message: string;
|
|
123
|
+
};
|
|
124
|
+
type FreestyleVerifyDomainRequest = {
|
|
125
|
+
domain: string;
|
|
126
|
+
};
|
|
127
|
+
type HandleDeployCloudstateData = {
|
|
128
|
+
body: FreestyleCloudstateDeployRequest;
|
|
129
|
+
};
|
|
130
|
+
type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
|
|
131
|
+
type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
|
|
132
|
+
type HandleBackupCloudstateResponse = (Array<(number)>);
|
|
133
|
+
type HandleBackupCloudstateError = (unknown);
|
|
134
|
+
type HandleListDomainsResponse = ({
|
|
135
|
+
domains: Array<(string)>;
|
|
136
|
+
});
|
|
137
|
+
type HandleListDomainsError = ({
|
|
138
|
+
message: string;
|
|
139
|
+
});
|
|
140
|
+
type HandleVerifyDomainData = {
|
|
141
|
+
body: FreestyleVerifyDomainRequest;
|
|
142
|
+
};
|
|
143
|
+
type HandleVerifyDomainResponse = ({
|
|
144
|
+
domain: string;
|
|
145
|
+
});
|
|
146
|
+
type HandleVerifyDomainError = ({
|
|
147
|
+
message: string;
|
|
148
|
+
});
|
|
149
|
+
type HandleCreateDomainVerificationData = {
|
|
150
|
+
body: FreestyleDomainVerificationRequest;
|
|
151
|
+
};
|
|
152
|
+
type HandleCreateDomainVerificationResponse = ({
|
|
153
|
+
verification_code: string;
|
|
154
|
+
domain: string;
|
|
155
|
+
});
|
|
156
|
+
type HandleCreateDomainVerificationError = ({
|
|
157
|
+
message: string;
|
|
158
|
+
});
|
|
159
|
+
type HandleExecuteScriptData = {
|
|
160
|
+
body: FreestyleExecuteScriptParams;
|
|
161
|
+
};
|
|
162
|
+
type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
|
|
163
|
+
type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
|
|
164
|
+
type HandleDeployWebData = {
|
|
165
|
+
body: FreestyleDeployWebPayload;
|
|
166
|
+
};
|
|
167
|
+
type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
168
|
+
type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
169
|
+
type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
|
|
170
|
+
type HandleGetLogsError = unknown;
|
|
171
|
+
|
|
172
|
+
export type { HandleCreateDomainVerificationData as A, HandleCreateDomainVerificationError as B, HandleExecuteScriptData as C, HandleExecuteScriptResponse as D, HandleExecuteScriptError as E, FreestyleExecuteScriptParamsConfiguration as F, HandleDeployWebData as G, HandleBackupCloudstateResponse as H, HandleDeployWebResponse as I, HandleDeployWebError as J, HandleGetLogsError as K, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleListDomainsResponse as i, FreestyleCloudstateDeployConfiguration as j, FreestyleCloudstateDeployErrorResponse as k, FreestyleDeployWebErrorResponse as l, FreestyleDeployWebPayload as m, FreestyleDomainVerificationRequest as n, FreestyleExecureScriptResultError as o, FreestyleExecuteScriptParams as p, FreestyleFile as q, FreestyleLogResponseObject as r, FreestyleVerifyDomainRequest as s, HandleDeployCloudstateData as t, HandleDeployCloudstateResponse as u, HandleDeployCloudstateError as v, HandleBackupCloudstateError as w, HandleListDomainsError as x, HandleVerifyDomainData as y, HandleVerifyDomainError as z };
|
|
@@ -13,68 +13,6 @@ type AccessTokenInfo = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
};
|
|
15
15
|
type Behavior = 'regex' | 'exact';
|
|
16
|
-
/**
|
|
17
|
-
* The encoding of a blob from the API. Always `base64`.
|
|
18
|
-
*/
|
|
19
|
-
type BlobEncoding = 'base64';
|
|
20
|
-
/**
|
|
21
|
-
* Blob object
|
|
22
|
-
*/
|
|
23
|
-
type BlobObject = {
|
|
24
|
-
/**
|
|
25
|
-
* The content of the blob, base64 encoded.
|
|
26
|
-
*/
|
|
27
|
-
content: string;
|
|
28
|
-
/**
|
|
29
|
-
* The encoding of the blob. Always `base64`.
|
|
30
|
-
*/
|
|
31
|
-
encoding: BlobEncoding;
|
|
32
|
-
/**
|
|
33
|
-
* The object's hash.
|
|
34
|
-
*/
|
|
35
|
-
sha: string;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Commit object
|
|
39
|
-
*/
|
|
40
|
-
type CommitObject = {
|
|
41
|
-
/**
|
|
42
|
-
* The author of the commit
|
|
43
|
-
*/
|
|
44
|
-
author: Signature;
|
|
45
|
-
/**
|
|
46
|
-
* The committer
|
|
47
|
-
*/
|
|
48
|
-
committer: Signature;
|
|
49
|
-
/**
|
|
50
|
-
* The commit message
|
|
51
|
-
*/
|
|
52
|
-
message: string;
|
|
53
|
-
/**
|
|
54
|
-
* The ID of the tree pointed to by this commit
|
|
55
|
-
*/
|
|
56
|
-
tree: CommitTree;
|
|
57
|
-
/**
|
|
58
|
-
* Parent commit(s) of this commit
|
|
59
|
-
*/
|
|
60
|
-
parents: Array<CommitParent>;
|
|
61
|
-
/**
|
|
62
|
-
* The commit's hash ID
|
|
63
|
-
*/
|
|
64
|
-
sha: string;
|
|
65
|
-
};
|
|
66
|
-
type CommitParent = {
|
|
67
|
-
/**
|
|
68
|
-
* The commit's hash ID
|
|
69
|
-
*/
|
|
70
|
-
sha: string;
|
|
71
|
-
};
|
|
72
|
-
type CommitTree = {
|
|
73
|
-
/**
|
|
74
|
-
* The tree's hash ID
|
|
75
|
-
*/
|
|
76
|
-
sha: string;
|
|
77
|
-
};
|
|
78
16
|
type CreateDomainMappingRequest = {
|
|
79
17
|
deploymentId: string;
|
|
80
18
|
};
|
|
@@ -110,10 +48,6 @@ type CreateRepoSource = {
|
|
|
110
48
|
type type = 'git';
|
|
111
49
|
type CustomBuildOptions = {
|
|
112
50
|
command?: (string) | null;
|
|
113
|
-
envVars?: {
|
|
114
|
-
[key: string]: (string);
|
|
115
|
-
} | null;
|
|
116
|
-
outDir?: (string) | null;
|
|
117
51
|
};
|
|
118
52
|
type DeploymentBuildOptions = CustomBuildOptions | boolean;
|
|
119
53
|
type DeploymentLogEntry = {
|
|
@@ -149,34 +83,9 @@ type DescribePermissionResponseSuccess = {
|
|
|
149
83
|
accessLevel?: (null | AccessLevel);
|
|
150
84
|
};
|
|
151
85
|
type DevServer = {
|
|
152
|
-
|
|
153
|
-
kind: 'repo';
|
|
154
|
-
};
|
|
155
|
-
type kind2 = 'repo';
|
|
156
|
-
type DevServerRequest = {
|
|
157
|
-
devCommand?: (string) | null;
|
|
158
|
-
preDevCommandOnce?: (string) | null;
|
|
159
|
-
baseId?: (string) | null;
|
|
160
|
-
envVars?: {
|
|
161
|
-
[key: string]: (string);
|
|
162
|
-
} | null;
|
|
86
|
+
command?: (string) | null;
|
|
163
87
|
repoId?: (string) | null;
|
|
164
|
-
computeClass?: (string) | null;
|
|
165
|
-
/**
|
|
166
|
-
* Timeout in seconds
|
|
167
|
-
*/
|
|
168
|
-
timeout?: (number) | null;
|
|
169
|
-
/**
|
|
170
|
-
* @deprecated
|
|
171
|
-
*/
|
|
172
88
|
domain?: (string) | null;
|
|
173
|
-
/**
|
|
174
|
-
* @deprecated
|
|
175
|
-
*/
|
|
176
|
-
repo?: (string) | null;
|
|
177
|
-
};
|
|
178
|
-
type DevServerStatusRequest = {
|
|
179
|
-
devServer: DevServer;
|
|
180
89
|
};
|
|
181
90
|
type DnsRecord = {
|
|
182
91
|
kind: DnsRecordKind;
|
|
@@ -201,14 +110,6 @@ type DomainVerificationRequest = {
|
|
|
201
110
|
verificationCode: string;
|
|
202
111
|
createdAt: number;
|
|
203
112
|
};
|
|
204
|
-
type ExecRequest = {
|
|
205
|
-
devServer: DevServer;
|
|
206
|
-
command: string;
|
|
207
|
-
/**
|
|
208
|
-
* Spawn this command as a background process and return immediately
|
|
209
|
-
*/
|
|
210
|
-
background: boolean;
|
|
211
|
-
};
|
|
212
113
|
type ExecuteLogEntry = {
|
|
213
114
|
deployment: string;
|
|
214
115
|
accountId: string;
|
|
@@ -227,15 +128,6 @@ type ExecuteRunInfo = {
|
|
|
227
128
|
};
|
|
228
129
|
};
|
|
229
130
|
type ExecuteRunState = 'starting' | 'running' | 'complete';
|
|
230
|
-
type FileReadContent = {
|
|
231
|
-
content: string;
|
|
232
|
-
encoding: string;
|
|
233
|
-
kind: 'file';
|
|
234
|
-
} | {
|
|
235
|
-
files: Array<(string)>;
|
|
236
|
-
kind: 'directory';
|
|
237
|
-
};
|
|
238
|
-
type kind3 = 'file';
|
|
239
131
|
type FreestyleCloudstateDeployConfiguration = {
|
|
240
132
|
/**
|
|
241
133
|
* ID of the project to deploy, if not provided will create a new project
|
|
@@ -438,26 +330,8 @@ type FreestyleVerifyDomainRequest = {
|
|
|
438
330
|
} | {
|
|
439
331
|
id: string;
|
|
440
332
|
};
|
|
441
|
-
type GitCommitPushRequest = {
|
|
442
|
-
devServer: DevServer;
|
|
443
|
-
message: string;
|
|
444
|
-
};
|
|
445
333
|
type GitIdentity = {
|
|
446
334
|
id: string;
|
|
447
|
-
managed: boolean;
|
|
448
|
-
};
|
|
449
|
-
/**
|
|
450
|
-
* A reference to a Git object
|
|
451
|
-
*/
|
|
452
|
-
type GitReference = {
|
|
453
|
-
/**
|
|
454
|
-
* The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
|
|
455
|
-
*/
|
|
456
|
-
name: string;
|
|
457
|
-
/**
|
|
458
|
-
* The SHA-1 hash of the Git object this reference points to
|
|
459
|
-
*/
|
|
460
|
-
sha: string;
|
|
461
335
|
};
|
|
462
336
|
type GitRepositoryTrigger = {
|
|
463
337
|
repositoryId: string;
|
|
@@ -502,10 +376,6 @@ type NetworkPermissionData = {
|
|
|
502
376
|
query: string;
|
|
503
377
|
behavior?: Behavior;
|
|
504
378
|
};
|
|
505
|
-
type ReadFileRequest = {
|
|
506
|
-
devServer: DevServer;
|
|
507
|
-
encoding?: string;
|
|
508
|
-
};
|
|
509
379
|
type RepositoryInfo = {
|
|
510
380
|
id: string;
|
|
511
381
|
name?: (string) | null;
|
|
@@ -515,80 +385,10 @@ type RepositoryInfo = {
|
|
|
515
385
|
type RevokeGitTokenRequest = {
|
|
516
386
|
tokenId: string;
|
|
517
387
|
};
|
|
518
|
-
type ShutdownDevServerRequest = {
|
|
519
|
-
/**
|
|
520
|
-
* The dev server to shutdown
|
|
521
|
-
*/
|
|
522
|
-
devServer: DevServer;
|
|
523
|
-
};
|
|
524
|
-
type Signature = {
|
|
525
|
-
/**
|
|
526
|
-
* The date marker for this signature
|
|
527
|
-
*/
|
|
528
|
-
date: string;
|
|
529
|
-
name: string;
|
|
530
|
-
email: string;
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* Tag object
|
|
534
|
-
*/
|
|
535
|
-
type TagObject = {
|
|
536
|
-
/**
|
|
537
|
-
* The tag name
|
|
538
|
-
*/
|
|
539
|
-
name: string;
|
|
540
|
-
tagger?: (null | Signature);
|
|
541
|
-
/**
|
|
542
|
-
* The tag message
|
|
543
|
-
*/
|
|
544
|
-
message?: (string) | null;
|
|
545
|
-
/**
|
|
546
|
-
* The object this tag points to
|
|
547
|
-
*/
|
|
548
|
-
target: TagTarget;
|
|
549
|
-
/**
|
|
550
|
-
* The tag's hash ID
|
|
551
|
-
*/
|
|
552
|
-
sha: string;
|
|
553
|
-
};
|
|
554
|
-
type TagTarget = {
|
|
555
|
-
/**
|
|
556
|
-
* The target object's hash ID
|
|
557
|
-
*/
|
|
558
|
-
sha: string;
|
|
559
|
-
};
|
|
560
|
-
type TreeEntry = {
|
|
561
|
-
path: string;
|
|
562
|
-
sha: string;
|
|
563
|
-
type: 'blob';
|
|
564
|
-
} | {
|
|
565
|
-
path: string;
|
|
566
|
-
sha: string;
|
|
567
|
-
type: 'tree';
|
|
568
|
-
};
|
|
569
|
-
type type2 = 'blob';
|
|
570
|
-
/**
|
|
571
|
-
* Tree object
|
|
572
|
-
*/
|
|
573
|
-
type TreeObject = {
|
|
574
|
-
/**
|
|
575
|
-
* The tree's entries
|
|
576
|
-
*/
|
|
577
|
-
tree: Array<TreeEntry>;
|
|
578
|
-
/**
|
|
579
|
-
* The tree's hash ID
|
|
580
|
-
*/
|
|
581
|
-
sha: string;
|
|
582
|
-
};
|
|
583
388
|
type UpdatePermissionRequest = {
|
|
584
389
|
permission: AccessLevel;
|
|
585
390
|
};
|
|
586
391
|
type Visibility = 'public' | 'private';
|
|
587
|
-
type WriteFileRequest = {
|
|
588
|
-
devServer: DevServer;
|
|
589
|
-
content: string;
|
|
590
|
-
encoding?: string;
|
|
591
|
-
};
|
|
592
392
|
type HandleDeployCloudstateData = {
|
|
593
393
|
body: FreestyleCloudstateDeployRequest;
|
|
594
394
|
};
|
|
@@ -703,89 +503,15 @@ type HandleDeleteDomainVerificationError = ({
|
|
|
703
503
|
message: string;
|
|
704
504
|
});
|
|
705
505
|
type HandleEphemeralDevServerData = {
|
|
706
|
-
body:
|
|
506
|
+
body: DevServer;
|
|
707
507
|
};
|
|
708
508
|
type HandleEphemeralDevServerResponse = ({
|
|
709
|
-
/**
|
|
710
|
-
* @deprecated
|
|
711
|
-
*/
|
|
712
509
|
url: string;
|
|
713
510
|
isNew: boolean;
|
|
714
511
|
devCommandRunning: boolean;
|
|
715
512
|
installCommandRunning: boolean;
|
|
716
|
-
mcpEphemeralUrl?: (string) | null;
|
|
717
|
-
ephemeralUrl?: (string) | null;
|
|
718
513
|
});
|
|
719
514
|
type HandleEphemeralDevServerError = (InternalServerError);
|
|
720
|
-
type HandleExecOnEphemeralDevServerData = {
|
|
721
|
-
body: ExecRequest;
|
|
722
|
-
};
|
|
723
|
-
type HandleExecOnEphemeralDevServerResponse = ({
|
|
724
|
-
id: string;
|
|
725
|
-
isNew: boolean;
|
|
726
|
-
stdout?: Array<(string)> | null;
|
|
727
|
-
stderr?: Array<(string)> | null;
|
|
728
|
-
});
|
|
729
|
-
type HandleExecOnEphemeralDevServerError = (InternalServerError);
|
|
730
|
-
type HandleWriteFileFromEphemeralDevServerData = {
|
|
731
|
-
body: WriteFileRequest;
|
|
732
|
-
path: {
|
|
733
|
-
filepath: unknown;
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
type HandleWriteFileFromEphemeralDevServerResponse = ({
|
|
737
|
-
id: string;
|
|
738
|
-
isNew: boolean;
|
|
739
|
-
});
|
|
740
|
-
type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
|
|
741
|
-
type HandleReadFileFromEphemeralDevServerData = {
|
|
742
|
-
body: ReadFileRequest;
|
|
743
|
-
path: {
|
|
744
|
-
filepath: unknown;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
type HandleReadFileFromEphemeralDevServerResponse = ({
|
|
748
|
-
id: string;
|
|
749
|
-
isNew: boolean;
|
|
750
|
-
content: ({
|
|
751
|
-
content: string;
|
|
752
|
-
encoding: string;
|
|
753
|
-
kind: 'file';
|
|
754
|
-
} | {
|
|
755
|
-
files: Array<(string)>;
|
|
756
|
-
kind: 'directory';
|
|
757
|
-
});
|
|
758
|
-
});
|
|
759
|
-
type HandleReadFileFromEphemeralDevServerError = ({
|
|
760
|
-
id: string;
|
|
761
|
-
isNew: boolean;
|
|
762
|
-
} | InternalServerError);
|
|
763
|
-
type HandleGitCommitPushData = {
|
|
764
|
-
body: GitCommitPushRequest;
|
|
765
|
-
};
|
|
766
|
-
type HandleGitCommitPushResponse = ({
|
|
767
|
-
id: string;
|
|
768
|
-
isNew: boolean;
|
|
769
|
-
});
|
|
770
|
-
type HandleGitCommitPushError = (InternalServerError);
|
|
771
|
-
type HandleShutdownDevServerData = {
|
|
772
|
-
body: ShutdownDevServerRequest;
|
|
773
|
-
};
|
|
774
|
-
type HandleShutdownDevServerResponse = ({
|
|
775
|
-
success: boolean;
|
|
776
|
-
message: string;
|
|
777
|
-
});
|
|
778
|
-
type HandleShutdownDevServerError = ({
|
|
779
|
-
message: string;
|
|
780
|
-
} | InternalServerError);
|
|
781
|
-
type HandleDevServerStatusData = {
|
|
782
|
-
body: DevServerStatusRequest;
|
|
783
|
-
};
|
|
784
|
-
type HandleDevServerStatusResponse = ({
|
|
785
|
-
installing: boolean;
|
|
786
|
-
devRunning: boolean;
|
|
787
|
-
});
|
|
788
|
-
type HandleDevServerStatusError = (InternalServerError);
|
|
789
515
|
type HandleListExecuteRunsData = {
|
|
790
516
|
query?: {
|
|
791
517
|
limit?: (number) | null;
|
|
@@ -828,7 +554,6 @@ type HandleExecuteScriptError = ({
|
|
|
828
554
|
});
|
|
829
555
|
type HandleListIdentitiesData = {
|
|
830
556
|
query?: {
|
|
831
|
-
includeManaged?: (boolean) | null;
|
|
832
557
|
limit?: (number) | null;
|
|
833
558
|
offset?: (number) | null;
|
|
834
559
|
};
|
|
@@ -1003,82 +728,6 @@ type HandleDeleteRepoError = ({
|
|
|
1003
728
|
} | {
|
|
1004
729
|
[key: string]: unknown;
|
|
1005
730
|
});
|
|
1006
|
-
type HandleGetBlobData = {
|
|
1007
|
-
path: {
|
|
1008
|
-
/**
|
|
1009
|
-
* The repository id
|
|
1010
|
-
*/
|
|
1011
|
-
repo: string;
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
type HandleGetBlobResponse = (BlobObject);
|
|
1015
|
-
type HandleGetBlobError = ({
|
|
1016
|
-
message: string;
|
|
1017
|
-
});
|
|
1018
|
-
type HandleGetCommitData = {
|
|
1019
|
-
path: {
|
|
1020
|
-
/**
|
|
1021
|
-
* The object's hash
|
|
1022
|
-
*/
|
|
1023
|
-
hash: string;
|
|
1024
|
-
/**
|
|
1025
|
-
* The repository id
|
|
1026
|
-
*/
|
|
1027
|
-
repo: string;
|
|
1028
|
-
};
|
|
1029
|
-
};
|
|
1030
|
-
type HandleGetCommitResponse = (CommitObject);
|
|
1031
|
-
type HandleGetCommitError = ({
|
|
1032
|
-
message: string;
|
|
1033
|
-
});
|
|
1034
|
-
type HandleGetRefBranchData = {
|
|
1035
|
-
path: {
|
|
1036
|
-
/**
|
|
1037
|
-
* The branch's name
|
|
1038
|
-
*/
|
|
1039
|
-
branch: string;
|
|
1040
|
-
/**
|
|
1041
|
-
* The repository id
|
|
1042
|
-
*/
|
|
1043
|
-
repo: string;
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
type HandleGetRefBranchResponse = (GitReference);
|
|
1047
|
-
type HandleGetRefBranchError = (unknown | {
|
|
1048
|
-
message: string;
|
|
1049
|
-
});
|
|
1050
|
-
type HandleGetTagData = {
|
|
1051
|
-
path: {
|
|
1052
|
-
/**
|
|
1053
|
-
* The object's hash
|
|
1054
|
-
*/
|
|
1055
|
-
hash: string;
|
|
1056
|
-
/**
|
|
1057
|
-
* The repository id
|
|
1058
|
-
*/
|
|
1059
|
-
repo: string;
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
type HandleGetTagResponse = (TagObject);
|
|
1063
|
-
type HandleGetTagError = ({
|
|
1064
|
-
message: string;
|
|
1065
|
-
});
|
|
1066
|
-
type HandleGetTreeData = {
|
|
1067
|
-
path: {
|
|
1068
|
-
/**
|
|
1069
|
-
* The object's hash
|
|
1070
|
-
*/
|
|
1071
|
-
hash: string;
|
|
1072
|
-
/**
|
|
1073
|
-
* The repository id
|
|
1074
|
-
*/
|
|
1075
|
-
repo: string;
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
type HandleGetTreeResponse = (TreeObject);
|
|
1079
|
-
type HandleGetTreeError = ({
|
|
1080
|
-
message: string;
|
|
1081
|
-
});
|
|
1082
731
|
type HandleListGitTriggersData = {
|
|
1083
732
|
path: {
|
|
1084
733
|
/**
|
|
@@ -1142,22 +791,6 @@ type HandleGetLogsData = {
|
|
|
1142
791
|
};
|
|
1143
792
|
type HandleGetLogsResponse = (FreestyleGetLogsResponse);
|
|
1144
793
|
type HandleGetLogsError = unknown;
|
|
1145
|
-
type HandleGetRefTagData = {
|
|
1146
|
-
path: {
|
|
1147
|
-
/**
|
|
1148
|
-
* The repository id
|
|
1149
|
-
*/
|
|
1150
|
-
repo: string;
|
|
1151
|
-
/**
|
|
1152
|
-
* The tag's name
|
|
1153
|
-
*/
|
|
1154
|
-
tag: string;
|
|
1155
|
-
};
|
|
1156
|
-
};
|
|
1157
|
-
type HandleGetRefTagResponse = (GitReference);
|
|
1158
|
-
type HandleGetRefTagError = (unknown | {
|
|
1159
|
-
message: string;
|
|
1160
|
-
});
|
|
1161
794
|
type HandleDeployWebData = {
|
|
1162
795
|
body: FreestyleDeployWebPayload;
|
|
1163
796
|
};
|
|
@@ -1194,4 +827,4 @@ type HandleGetWebDeployDetailsData = {
|
|
|
1194
827
|
};
|
|
1195
828
|
};
|
|
1196
829
|
|
|
1197
|
-
export type {
|
|
830
|
+
export type { ExecuteLogEntry as $, AccessLevel as A, HandleCreateGitTriggerResponse as B, CreateRepositoryResponseSuccess as C, DeploymentSource as D, DeploymentBuildOptions as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, AccessibleRepository as I, AccessTokenInfo as J, Behavior as K, ListPermissionResponseSuccess as L, CreateDomainMappingRequest as M, CreateRecordParams as N, CreateRepoRequest as O, CreateRepositoryRequest as P, CreateRepoSource as Q, type as R, CustomBuildOptions as S, DeploymentLogEntry as T, kind as U, DeploymentState as V, DevServer as W, DnsRecord as X, DnsRecordData as Y, DnsRecordKind as Z, DomainVerificationRequest as _, FreestyleExecuteScriptResultSuccess as a, HandleGetExecuteRunError as a$, ExecuteRunInfo as a0, ExecuteRunState as a1, FreestyleCloudstateDeployConfiguration as a2, FreestyleCloudstateDeployErrorResponse as a3, FreestyleDeleteDomainVerificationRequest as a4, FreestyleDeployWebErrorResponse as a5, FreestyleDeployWebPayload as a6, FreestyleDeployWebPayloadV2 as a7, FreestyleDomainVerificationRequest as a8, FreestyleExecuteScriptParams as a9, HandleCreateRecordData as aA, HandleCreateRecordResponse as aB, HandleCreateRecordError as aC, HandleDeleteRecordData as aD, HandleDeleteRecordResponse as aE, HandleDeleteRecordError as aF, HandleVerifyWildcardData as aG, HandleVerifyWildcardError as aH, HandleListDomainsError as aI, HandleInsertDomainMappingData as aJ, HandleInsertDomainMappingResponse as aK, HandleInsertDomainMappingError as aL, HandleDeleteDomainMappingData as aM, HandleDeleteDomainMappingResponse as aN, HandleDeleteDomainMappingError as aO, HandleListDomainVerificationRequestsError as aP, HandleVerifyDomainData as aQ, HandleCreateDomainVerificationData as aR, HandleCreateDomainVerificationError as aS, HandleDeleteDomainVerificationData as aT, HandleDeleteDomainVerificationError as aU, HandleEphemeralDevServerData as aV, HandleEphemeralDevServerResponse as aW, HandleEphemeralDevServerError as aX, HandleListExecuteRunsData as aY, HandleListExecuteRunsError as aZ, HandleGetExecuteRunData as a_, FreestyleFile as aa, FreestyleGetLogsResponse as ab, FreestyleJavaScriptLog as ac, FreestyleLogResponseObject as ad, FreestyleNetworkPermission as ae, action as af, FreestyleVerifyDomainRequest as ag, GitRepositoryTrigger as ah, event as ai, action2 as aj, GrantPermissionRequest as ak, InternalServerError as al, ListRecordsResponse as am, NetworkPermissionData as an, RepositoryInfo as ao, RevokeGitTokenRequest as ap, UpdatePermissionRequest as aq, Visibility as ar, HandleDeployCloudstateData as as, HandleDeployCloudstateResponse as at, HandleDeployCloudstateError as au, HandleBackupCloudstateData as av, HandleBackupCloudstateError as aw, HandleListRecordsData as ax, HandleListRecordsResponse as ay, HandleListRecordsError as az, FreestyleDeployWebConfiguration as b, HandleExecuteScriptData as b0, HandleExecuteScriptResponse as b1, HandleExecuteScriptError as b2, HandleListIdentitiesData as b3, HandleListIdentitiesResponse as b4, HandleListIdentitiesError as b5, HandleCreateIdentityResponse as b6, HandleCreateIdentityError as b7, HandleDeleteIdentityData as b8, HandleDeleteIdentityError as b9, HandleCreateRepoResponse as bA, HandleCreateRepoError as bB, HandleDeleteRepoData as bC, HandleDeleteRepoError as bD, HandleListGitTriggersData as bE, HandleListGitTriggersError as bF, HandleCreateGitTriggerData as bG, HandleCreateGitTriggerError as bH, HandleDeleteGitTriggerData as bI, HandleDeleteGitTriggerResponse as bJ, HandleDeleteGitTriggerError as bK, HandleGetLogsData as bL, HandleGetLogsError as bM, HandleDeployWebData as bN, HandleDeployWebResponse as bO, HandleDeployWebError as bP, HandleDeployWebV2Data as bQ, HandleDeployWebV2Response as bR, HandleDeployWebV2Error as bS, HandleListWebDeploysData as bT, HandleListWebDeploysError as bU, HandleGetWebDeployDetailsData as bV, HandleListPermissionsData as ba, HandleListPermissionsResponse as bb, HandleListPermissionsError as bc, HandleDescribePermissionData as bd, HandleDescribePermissionResponse as be, HandleDescribePermissionError as bf, HandleGrantPermissionData as bg, HandleGrantPermissionError as bh, HandleRevokePermissionData as bi, HandleRevokePermissionResponse as bj, HandleRevokePermissionError as bk, HandleUpdatePermissionData as bl, HandleUpdatePermissionResponse as bm, HandleUpdatePermissionError as bn, HandleListGitTokensData as bo, HandleListGitTokensResponse as bp, HandleListGitTokensError as bq, HandleCreateGitTokenData as br, HandleCreateGitTokenResponse as bs, HandleCreateGitTokenError as bt, HandleRevokeGitTokenData as bu, HandleRevokeGitTokenResponse as bv, HandleRevokeGitTokenError as bw, HandleListRepositoriesData as bx, HandleListRepositoriesError as by, HandleCreateRepoData as bz, FreestyleDeployWebSuccessResponseV2 as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleVerifyDomainError as i, HandleListDomainsResponse as j, HandleListDomainVerificationRequestsResponse as k, HandleDeleteDomainVerificationResponse as l, HandleListWebDeploysResponse as m, HandleListExecuteRunsResponse as n, HandleGetExecuteRunResponse as o, HandleVerifyWildcardResponse as p, HandleListRepositoriesResponse as q, HandleDeleteRepoResponse as r, HandleDeleteIdentityResponse as s, HandleGrantPermissionResponse as t, DescribePermissionResponseSuccess as u, CreatedToken as v, ListGitTokensResponseSuccess as w, HandleListGitTriggersResponse as x, GitTrigger as y, GitTriggerAction as z };
|