freestyle-sandboxes 0.0.77 → 0.0.78
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 -0
- package/dist/inde.d.mts +1 -0
- package/dist/{index-CGc0kRd_.cjs → index-BBXyg0JQ.cjs} +5 -9
- package/dist/index-BQHqnjZK.mjs +3231 -0
- package/dist/index-CEEa9WHp.cjs +3238 -0
- package/dist/{index-jh-93svX.mjs → index-DCF70Xbq.mjs} +5 -9
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +14 -0
- package/dist/types.gen-1sd31qLV.d.ts +172 -0
- package/dist/types.gen-627pxroW.d.ts +830 -0
- package/dist/types.gen-BCdfx7yt.d.ts +760 -0
- package/dist/{types.gen-0bQ5Wn0o.d.ts → types.gen-BVXmFV7d.d.ts} +17 -18
- package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
- package/dist/types.gen-BbekD8Sd.d.ts +1119 -0
- package/dist/types.gen-BqN1t03N.d.ts +842 -0
- package/dist/types.gen-BtK6PMQy.d.ts +195 -0
- package/dist/types.gen-C03gaIPq.d.ts +297 -0
- package/dist/{types.gen-BJArgpto.d.ts → types.gen-CIf3ciN7.d.ts} +5 -2
- package/dist/types.gen-CMuCas4r.d.ts +183 -0
- package/dist/{types.gen-DxZanGNF.d.ts → types.gen-CZUnqmzP.d.ts} +6 -9
- 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-CfrGF-JI.d.ts → types.gen-DLYohMJT.d.ts} +1 -1
- package/dist/types.gen-DbTb_SrD.d.ts +156 -0
- package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
- package/dist/types.gen-DyY7Deri.d.ts +138 -0
- 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 +1 -1
- package/src/index.ts +57 -39
- package/src/temp.ts +0 -10
|
@@ -0,0 +1,183 @@
|
|
|
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 HandleBackupCloudstateData = {
|
|
133
|
+
path: {
|
|
134
|
+
id: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
type HandleBackupCloudstateResponse = (Array<(number)>);
|
|
138
|
+
type HandleBackupCloudstateError = (unknown);
|
|
139
|
+
type HandleListDomainsResponse = (Array<{
|
|
140
|
+
domain: string;
|
|
141
|
+
createdAt: number;
|
|
142
|
+
}>);
|
|
143
|
+
type HandleListDomainsError = ({
|
|
144
|
+
message: string;
|
|
145
|
+
});
|
|
146
|
+
type HandleVerifyDomainData = {
|
|
147
|
+
body: FreestyleVerifyDomainRequest;
|
|
148
|
+
};
|
|
149
|
+
type HandleVerifyDomainResponse = ({
|
|
150
|
+
domain: string;
|
|
151
|
+
});
|
|
152
|
+
type HandleVerifyDomainError = ({
|
|
153
|
+
message: string;
|
|
154
|
+
});
|
|
155
|
+
type HandleCreateDomainVerificationData = {
|
|
156
|
+
body: FreestyleDomainVerificationRequest;
|
|
157
|
+
};
|
|
158
|
+
type HandleCreateDomainVerificationResponse = ({
|
|
159
|
+
verificationCode: string;
|
|
160
|
+
domain: string;
|
|
161
|
+
});
|
|
162
|
+
type HandleCreateDomainVerificationError = ({
|
|
163
|
+
message: string;
|
|
164
|
+
});
|
|
165
|
+
type HandleExecuteScriptData = {
|
|
166
|
+
body: FreestyleExecuteScriptParams;
|
|
167
|
+
};
|
|
168
|
+
type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
|
|
169
|
+
type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
|
|
170
|
+
type HandleDeployWebData = {
|
|
171
|
+
body: FreestyleDeployWebPayload;
|
|
172
|
+
};
|
|
173
|
+
type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
174
|
+
type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
175
|
+
type HandleGetLogsData = {
|
|
176
|
+
path: {
|
|
177
|
+
id: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
|
|
181
|
+
type HandleGetLogsError = unknown;
|
|
182
|
+
|
|
183
|
+
export type { HandleVerifyDomainError as A, HandleCreateDomainVerificationData as B, HandleCreateDomainVerificationError as C, HandleExecuteScriptData as D, HandleExecuteScriptResponse as E, FreestyleExecuteScriptParamsConfiguration as F, HandleExecuteScriptError as G, HandleBackupCloudstateResponse as H, HandleDeployWebData as I, HandleDeployWebResponse as J, HandleDeployWebError as K, HandleGetLogsData as L, HandleGetLogsError as M, 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, HandleBackupCloudstateData as w, HandleBackupCloudstateError as x, HandleListDomainsError as y, HandleVerifyDomainData as z };
|
|
@@ -27,7 +27,7 @@ type CreateRecordParams = {
|
|
|
27
27
|
domain: string;
|
|
28
28
|
record: DnsRecordData;
|
|
29
29
|
};
|
|
30
|
-
type CreateRepositoryRequest =
|
|
30
|
+
type CreateRepositoryRequest = {
|
|
31
31
|
/**
|
|
32
32
|
* This name is not visible to users, and is only accessible to you via API and in the
|
|
33
33
|
* dashboard. Mostly useful for observability.
|
|
@@ -38,13 +38,6 @@ type CreateRepositoryRequest = (null | CreateRepoSource) & {
|
|
|
38
38
|
type CreateRepositoryResponseSuccess = {
|
|
39
39
|
repoId: string;
|
|
40
40
|
};
|
|
41
|
-
type CreateRepoSource = {
|
|
42
|
-
cloneFrom: {
|
|
43
|
-
url: string;
|
|
44
|
-
branch?: (string) | null;
|
|
45
|
-
depth?: (number) | null;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
41
|
type DeploymentLogEntry = {
|
|
49
42
|
deploymentId: string;
|
|
50
43
|
accountId: string;
|
|
@@ -731,6 +724,10 @@ type HandleCreateGitTriggerError = ({
|
|
|
731
724
|
});
|
|
732
725
|
type HandleDeleteGitTriggerData = {
|
|
733
726
|
path: {
|
|
727
|
+
/**
|
|
728
|
+
* The repository id
|
|
729
|
+
*/
|
|
730
|
+
repo: string;
|
|
734
731
|
/**
|
|
735
732
|
* The trigger id
|
|
736
733
|
*/
|
|
@@ -789,4 +786,4 @@ type HandleGetWebDeployDetailsData = {
|
|
|
789
786
|
};
|
|
790
787
|
};
|
|
791
788
|
|
|
792
|
-
export type {
|
|
789
|
+
export type { FreestyleDeployWebPayloadV2 as $, AccessLevel as A, BuildOptions as B, CreateRepositoryResponseSuccess as C, DeploymentSource as D, CreateDomainMappingRequest as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, CreateRecordParams as I, CreateRepositoryRequest as J, DeploymentLogEntry as K, ListPermissionResponseSuccess as L, kind as M, DeploymentState as N, DevServer as O, DnsRecord as P, DnsRecordData as Q, DnsRecordKind as R, DomainVerificationRequest as S, ExecuteLogEntry as T, ExecuteRunInfo as U, ExecuteRunState as V, FreestyleCloudstateDeployConfiguration as W, FreestyleCloudstateDeployErrorResponse as X, FreestyleDeleteDomainVerificationRequest as Y, FreestyleDeployWebErrorResponse as Z, FreestyleDeployWebPayload as _, FreestyleExecuteScriptResultSuccess as a, HandleDeleteIdentityData as a$, FreestyleDomainVerificationRequest as a0, FreestyleExecuteScriptParams as a1, FreestyleFile as a2, FreestyleGetLogsResponse as a3, FreestyleJavaScriptLog as a4, FreestyleLogResponseObject as a5, FreestyleNetworkPermission as a6, action as a7, FreestyleVerifyDomainRequest as a8, GitRepositoryTrigger as a9, HandleVerifyWildcardData as aA, HandleVerifyWildcardError as aB, HandleListDomainsError as aC, HandleInsertDomainMappingData as aD, HandleInsertDomainMappingResponse as aE, HandleInsertDomainMappingError as aF, HandleDeleteDomainMappingData as aG, HandleDeleteDomainMappingResponse as aH, HandleDeleteDomainMappingError as aI, HandleListDomainVerificationRequestsError as aJ, HandleVerifyDomainData as aK, HandleCreateDomainVerificationData as aL, HandleCreateDomainVerificationError as aM, HandleDeleteDomainVerificationData as aN, HandleDeleteDomainVerificationError as aO, HandleEphemeralDevServerData as aP, HandleEphemeralDevServerResponse as aQ, HandleEphemeralDevServerError as aR, HandleListExecuteRunsData as aS, HandleListExecuteRunsError as aT, HandleGetExecuteRunData as aU, HandleGetExecuteRunError as aV, HandleExecuteScriptData as aW, HandleExecuteScriptResponse as aX, HandleExecuteScriptError as aY, HandleCreateIdentityResponse as aZ, HandleCreateIdentityError as a_, event as aa, action2 as ab, GitTrigger as ac, GitTriggerAction as ad, GrantPermissionRequest as ae, InternalServerError as af, ListRecordsResponse as ag, NetworkPermissionData as ah, RepositoryInfo as ai, RevokeGitTokenRequest as aj, UpdatePermissionRequest as ak, Visibility as al, HandleDeployCloudstateData as am, HandleDeployCloudstateResponse as an, HandleDeployCloudstateError as ao, HandleBackupCloudstateData as ap, HandleBackupCloudstateError as aq, HandleListRecordsData as ar, HandleListRecordsResponse as as, HandleListRecordsError as at, HandleCreateRecordData as au, HandleCreateRecordResponse as av, HandleCreateRecordError as aw, HandleDeleteRecordData as ax, HandleDeleteRecordResponse as ay, HandleDeleteRecordError as az, FreestyleDeployWebConfiguration as b, HandleDeleteIdentityError as b0, HandleListPermissionsData as b1, HandleListPermissionsResponse as b2, HandleListPermissionsError as b3, HandleDescribePermissionData as b4, HandleDescribePermissionResponse as b5, HandleDescribePermissionError as b6, HandleGrantPermissionData as b7, HandleGrantPermissionError as b8, HandleRevokePermissionData as b9, HandleCreateGitTriggerError as bA, HandleDeleteGitTriggerData as bB, HandleDeleteGitTriggerResponse as bC, HandleDeleteGitTriggerError as bD, HandleGetLogsData as bE, HandleGetLogsError as bF, HandleDeployWebData as bG, HandleDeployWebResponse as bH, HandleDeployWebError as bI, HandleDeployWebV2Data as bJ, HandleDeployWebV2Response as bK, HandleDeployWebV2Error as bL, HandleListWebDeploysData as bM, HandleListWebDeploysError as bN, HandleGetWebDeployDetailsData as bO, HandleRevokePermissionResponse as ba, HandleRevokePermissionError as bb, HandleUpdatePermissionData as bc, HandleUpdatePermissionResponse as bd, HandleUpdatePermissionError as be, HandleListGitTokensData as bf, HandleListGitTokensResponse as bg, HandleListGitTokensError as bh, HandleCreateGitTokenData as bi, HandleCreateGitTokenResponse as bj, HandleCreateGitTokenError as bk, HandleRevokeGitTokenData as bl, HandleRevokeGitTokenResponse as bm, HandleRevokeGitTokenError as bn, HandleListRepositoriesData as bo, HandleListRepositoriesError as bp, HandleCreateRepoData as bq, HandleCreateRepoResponse as br, HandleCreateRepoError as bs, HandleDeleteRepoData as bt, HandleDeleteRepoError as bu, HandleListGitTriggersData as bv, HandleListGitTriggersResponse as bw, HandleListGitTriggersError as bx, HandleCreateGitTriggerData as by, HandleCreateGitTriggerResponse 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, AccessibleRepository as x, AccessTokenInfo as y, Behavior as z };
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
type DeploymentLogEntry = {
|
|
2
|
+
deploymentId: string;
|
|
3
|
+
accountId: string;
|
|
4
|
+
provisionedAt: string;
|
|
5
|
+
timeout: string;
|
|
6
|
+
state: DeploymentState;
|
|
7
|
+
deployedAt?: (string) | null;
|
|
8
|
+
domains: Array<(string)>;
|
|
9
|
+
envVars: {
|
|
10
|
+
[key: string]: (string);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type DeploymentState = 'provisioning' | 'deployed' | 'failed';
|
|
14
|
+
type ExecuteLogEntry = {
|
|
15
|
+
deployment: string;
|
|
16
|
+
accountId: string;
|
|
17
|
+
provisionedAt: string;
|
|
18
|
+
startedAt?: (string) | null;
|
|
19
|
+
duration?: (string) | null;
|
|
20
|
+
state: ExecuteRunState;
|
|
21
|
+
envVars: {
|
|
22
|
+
[key: string]: (string);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type ExecuteRunInfo = {
|
|
26
|
+
code: string;
|
|
27
|
+
nodeModules: {
|
|
28
|
+
[key: string]: (string);
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type ExecuteRunState = 'starting' | 'running' | 'complete';
|
|
32
|
+
type FreestyleCloudstateDeployConfiguration = {
|
|
33
|
+
/**
|
|
34
|
+
* ID of the project to deploy, if not provided will create a new project
|
|
35
|
+
*/
|
|
36
|
+
domains?: Array<(string)> | null;
|
|
37
|
+
/**
|
|
38
|
+
* The environment variables that the cloudstate deploy can access
|
|
39
|
+
*/
|
|
40
|
+
envVars?: {
|
|
41
|
+
[key: string]: (string);
|
|
42
|
+
};
|
|
43
|
+
cloudstateDatabaseId?: (string) | null;
|
|
44
|
+
};
|
|
45
|
+
type FreestyleCloudstateDeployErrorResponse = {
|
|
46
|
+
message: string;
|
|
47
|
+
};
|
|
48
|
+
type FreestyleCloudstateDeployRequest = {
|
|
49
|
+
classes: string;
|
|
50
|
+
config?: FreestyleCloudstateDeployConfiguration;
|
|
51
|
+
};
|
|
52
|
+
type FreestyleCloudstateDeploySuccessResponse = {
|
|
53
|
+
deploymentId: string;
|
|
54
|
+
cloudstateDatabaseId: string;
|
|
55
|
+
};
|
|
56
|
+
type FreestyleDeleteDomainVerificationRequest = {
|
|
57
|
+
/**
|
|
58
|
+
* The domain to create a verification code for
|
|
59
|
+
*/
|
|
60
|
+
domain: string;
|
|
61
|
+
/**
|
|
62
|
+
* The verification code
|
|
63
|
+
*/
|
|
64
|
+
verificationCode: string;
|
|
65
|
+
};
|
|
66
|
+
type FreestyleDeployWebConfiguration = {
|
|
67
|
+
/**
|
|
68
|
+
* The entrypoint file for the website
|
|
69
|
+
*/
|
|
70
|
+
entrypoint?: (string) | null;
|
|
71
|
+
/**
|
|
72
|
+
* The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
|
|
73
|
+
*/
|
|
74
|
+
domains?: Array<(string)> | null;
|
|
75
|
+
/**
|
|
76
|
+
* Project ID was our original way of tracking deployments together, it is now deprecated and will be removed in the future. Please use the domains field to specify the domains for your project.
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
projectId?: (string) | null;
|
|
80
|
+
/**
|
|
81
|
+
* 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.
|
|
82
|
+
*/
|
|
83
|
+
nodeModules?: {
|
|
84
|
+
[key: string]: (string);
|
|
85
|
+
} | null;
|
|
86
|
+
/**
|
|
87
|
+
* The environment variables that the website can access
|
|
88
|
+
* e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
|
|
89
|
+
*/
|
|
90
|
+
envVars?: {
|
|
91
|
+
[key: string]: (string);
|
|
92
|
+
} | null;
|
|
93
|
+
serverStartCheck?: boolean;
|
|
94
|
+
};
|
|
95
|
+
type FreestyleDeployWebErrorResponse = {
|
|
96
|
+
message: string;
|
|
97
|
+
};
|
|
98
|
+
type FreestyleDeployWebPayload = {
|
|
99
|
+
/**
|
|
100
|
+
* 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\" } }
|
|
101
|
+
*
|
|
102
|
+
* **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.
|
|
103
|
+
*/
|
|
104
|
+
files: {
|
|
105
|
+
[key: string]: FreestyleFile;
|
|
106
|
+
};
|
|
107
|
+
config?: FreestyleDeployWebConfiguration;
|
|
108
|
+
};
|
|
109
|
+
type FreestyleDeployWebSuccessResponse = {
|
|
110
|
+
deploymentId: string;
|
|
111
|
+
domains?: Array<(string)> | null;
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated
|
|
114
|
+
*/
|
|
115
|
+
projectId?: (string) | null;
|
|
116
|
+
};
|
|
117
|
+
type FreestyleDomainVerificationRequest = {
|
|
118
|
+
/**
|
|
119
|
+
* The domain to create a verification code for
|
|
120
|
+
*/
|
|
121
|
+
domain: string;
|
|
122
|
+
};
|
|
123
|
+
type FreestyleExecuteScriptParams = {
|
|
124
|
+
/**
|
|
125
|
+
* The JavaScript or TypeScript script to execute
|
|
126
|
+
*/
|
|
127
|
+
script: string;
|
|
128
|
+
config?: FreestyleExecuteScriptParamsConfiguration;
|
|
129
|
+
};
|
|
130
|
+
type FreestyleExecuteScriptParamsConfiguration = {
|
|
131
|
+
/**
|
|
132
|
+
* The environment variables to set for the script
|
|
133
|
+
*/
|
|
134
|
+
envVars?: {
|
|
135
|
+
[key: string]: (string);
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* The node modules to install for the script
|
|
139
|
+
*/
|
|
140
|
+
nodeModules?: {
|
|
141
|
+
[key: string]: (string);
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Tags for you to organize your scripts, useful for tracking what you're running
|
|
145
|
+
*/
|
|
146
|
+
tags?: Array<(string)>;
|
|
147
|
+
/**
|
|
148
|
+
* The script timeout
|
|
149
|
+
*/
|
|
150
|
+
timeout?: (string) | null;
|
|
151
|
+
/**
|
|
152
|
+
* If false, we'll not resolve peer dependencies for the packages given, this can speed up execute performance, but will break packages with peers unless the peers are manually specified.
|
|
153
|
+
*/
|
|
154
|
+
peerDependencyResolution?: boolean;
|
|
155
|
+
};
|
|
156
|
+
type FreestyleExecuteScriptResultSuccess = {
|
|
157
|
+
result: unknown;
|
|
158
|
+
logs: Array<FreestyleJavaScriptLog>;
|
|
159
|
+
};
|
|
160
|
+
type FreestyleFile = {
|
|
161
|
+
/**
|
|
162
|
+
* The content of the file
|
|
163
|
+
*/
|
|
164
|
+
content: string;
|
|
165
|
+
/**
|
|
166
|
+
* The encoding of the file. Either **utf-8** or **base64**
|
|
167
|
+
*/
|
|
168
|
+
encoding?: string;
|
|
169
|
+
};
|
|
170
|
+
type FreestyleGetLogsResponse = {
|
|
171
|
+
logs: Array<FreestyleLogResponseObject>;
|
|
172
|
+
};
|
|
173
|
+
type FreestyleJavaScriptLog = {
|
|
174
|
+
/**
|
|
175
|
+
* The log message
|
|
176
|
+
*/
|
|
177
|
+
message: string;
|
|
178
|
+
/**
|
|
179
|
+
* The log level
|
|
180
|
+
*/
|
|
181
|
+
type: string;
|
|
182
|
+
};
|
|
183
|
+
type FreestyleLogResponseObject = {
|
|
184
|
+
message: string;
|
|
185
|
+
timestamp: string;
|
|
186
|
+
};
|
|
187
|
+
type FreestyleVerifyDomainRequest = {
|
|
188
|
+
domain: string;
|
|
189
|
+
};
|
|
190
|
+
type HandleDeployCloudstateData = {
|
|
191
|
+
body: FreestyleCloudstateDeployRequest;
|
|
192
|
+
};
|
|
193
|
+
type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
|
|
194
|
+
type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
|
|
195
|
+
type HandleBackupCloudstateData = {
|
|
196
|
+
path: {
|
|
197
|
+
id: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
type HandleBackupCloudstateResponse = (Array<(number)>);
|
|
201
|
+
type HandleBackupCloudstateError = (unknown);
|
|
202
|
+
type HandleVerifyWildcardResponse = ({
|
|
203
|
+
domain: string;
|
|
204
|
+
});
|
|
205
|
+
type HandleVerifyWildcardError = ({
|
|
206
|
+
message: string;
|
|
207
|
+
});
|
|
208
|
+
type HandleListDomainsResponse = (Array<{
|
|
209
|
+
domain: string;
|
|
210
|
+
createdAt: number;
|
|
211
|
+
}>);
|
|
212
|
+
type HandleListDomainsError = ({
|
|
213
|
+
message: string;
|
|
214
|
+
});
|
|
215
|
+
type HandleListDomainVerificationRequestsResponse = (Array<{
|
|
216
|
+
verificationCode: string;
|
|
217
|
+
domain: string;
|
|
218
|
+
createdAt: number;
|
|
219
|
+
}>);
|
|
220
|
+
type HandleListDomainVerificationRequestsError = ({
|
|
221
|
+
message: string;
|
|
222
|
+
});
|
|
223
|
+
type HandleVerifyDomainData = {
|
|
224
|
+
body: FreestyleVerifyDomainRequest;
|
|
225
|
+
};
|
|
226
|
+
type HandleVerifyDomainResponse = ({
|
|
227
|
+
domain: string;
|
|
228
|
+
});
|
|
229
|
+
type HandleVerifyDomainError = ({
|
|
230
|
+
message: string;
|
|
231
|
+
});
|
|
232
|
+
type HandleCreateDomainVerificationData = {
|
|
233
|
+
body: FreestyleDomainVerificationRequest;
|
|
234
|
+
};
|
|
235
|
+
type HandleCreateDomainVerificationResponse = ({
|
|
236
|
+
verificationCode: string;
|
|
237
|
+
domain: string;
|
|
238
|
+
});
|
|
239
|
+
type HandleCreateDomainVerificationError = ({
|
|
240
|
+
message: string;
|
|
241
|
+
});
|
|
242
|
+
type HandleDeleteDomainVerificationData = {
|
|
243
|
+
body: FreestyleDeleteDomainVerificationRequest;
|
|
244
|
+
};
|
|
245
|
+
type HandleDeleteDomainVerificationResponse = ({
|
|
246
|
+
verificationCode: string;
|
|
247
|
+
domain: string;
|
|
248
|
+
});
|
|
249
|
+
type HandleDeleteDomainVerificationError = ({
|
|
250
|
+
message: string;
|
|
251
|
+
});
|
|
252
|
+
type HandleListExecuteRunsData = {
|
|
253
|
+
query?: {
|
|
254
|
+
limit?: (number) | null;
|
|
255
|
+
offset?: (number) | null;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
type HandleListExecuteRunsResponse = ({
|
|
259
|
+
entries: Array<ExecuteLogEntry>;
|
|
260
|
+
total: number;
|
|
261
|
+
offset: number;
|
|
262
|
+
});
|
|
263
|
+
type HandleListExecuteRunsError = ({
|
|
264
|
+
message: string;
|
|
265
|
+
});
|
|
266
|
+
type HandleGetExecuteRunData = {
|
|
267
|
+
path: {
|
|
268
|
+
deployment: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
type HandleGetExecuteRunResponse = ({
|
|
272
|
+
metadata: ExecuteLogEntry;
|
|
273
|
+
code: ExecuteRunInfo;
|
|
274
|
+
});
|
|
275
|
+
type HandleGetExecuteRunError = ({
|
|
276
|
+
message: string;
|
|
277
|
+
});
|
|
278
|
+
type HandleExecuteScriptData = {
|
|
279
|
+
body: FreestyleExecuteScriptParams;
|
|
280
|
+
};
|
|
281
|
+
type HandleExecuteScriptResponse = ({
|
|
282
|
+
result: unknown;
|
|
283
|
+
logs: Array<FreestyleJavaScriptLog>;
|
|
284
|
+
});
|
|
285
|
+
type HandleExecuteScriptError = ({
|
|
286
|
+
error: string;
|
|
287
|
+
});
|
|
288
|
+
type HandleGetLogsData = {
|
|
289
|
+
query: {
|
|
290
|
+
deploymentId: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
type HandleGetLogsResponse = (FreestyleGetLogsResponse);
|
|
294
|
+
type HandleGetLogsError = unknown;
|
|
295
|
+
type HandleDeployWebData = {
|
|
296
|
+
body: FreestyleDeployWebPayload;
|
|
297
|
+
};
|
|
298
|
+
type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
299
|
+
type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
300
|
+
type HandleListWebDeploysResponse = ({
|
|
301
|
+
entries: Array<DeploymentLogEntry>;
|
|
302
|
+
total: number;
|
|
303
|
+
offset: number;
|
|
304
|
+
});
|
|
305
|
+
type HandleListWebDeploysError = ({
|
|
306
|
+
message: string;
|
|
307
|
+
});
|
|
308
|
+
type HandleGetWebDeployDetailsData = {
|
|
309
|
+
path: {
|
|
310
|
+
deployment_id: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export type { HandleExecuteScriptResponse as $, FreestyleFile as A, FreestyleGetLogsResponse as B, FreestyleJavaScriptLog as C, DeploymentLogEntry as D, ExecuteLogEntry as E, FreestyleExecuteScriptParamsConfiguration as F, FreestyleLogResponseObject as G, HandleBackupCloudstateResponse as H, FreestyleVerifyDomainRequest as I, HandleDeployCloudstateData as J, HandleDeployCloudstateResponse as K, HandleDeployCloudstateError as L, HandleBackupCloudstateData as M, HandleBackupCloudstateError as N, HandleVerifyWildcardError as O, HandleListDomainsError as P, HandleListDomainVerificationRequestsError as Q, HandleVerifyDomainData as R, HandleCreateDomainVerificationData as S, HandleCreateDomainVerificationError as T, HandleDeleteDomainVerificationData as U, HandleDeleteDomainVerificationError as V, HandleListExecuteRunsData as W, HandleListExecuteRunsError as X, HandleGetExecuteRunData as Y, HandleGetExecuteRunError as Z, HandleExecuteScriptData as _, FreestyleExecuteScriptResultSuccess as a, HandleExecuteScriptError as a0, HandleGetLogsData as a1, HandleGetLogsError as a2, HandleDeployWebData as a3, HandleDeployWebResponse as a4, HandleDeployWebError as a5, HandleListWebDeploysError as a6, HandleGetWebDeployDetailsData as a7, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse 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, DeploymentState as q, ExecuteRunInfo as r, ExecuteRunState as s, FreestyleCloudstateDeployConfiguration as t, FreestyleCloudstateDeployErrorResponse as u, FreestyleDeleteDomainVerificationRequest as v, FreestyleDeployWebErrorResponse as w, FreestyleDeployWebPayload as x, FreestyleDomainVerificationRequest as y, FreestyleExecuteScriptParams as z };
|