freestyle-sandboxes 0.0.46 → 0.0.48
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/ai/inde.d.cts +71 -0
- package/dist/ai/inde.d.mts +71 -0
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/expo/inde.d.cts +6 -0
- package/dist/expo/inde.d.mts +6 -0
- package/dist/inde.d.cts +192 -0
- package/dist/inde.d.mts +192 -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 +28 -0
- package/dist/index.d.cts +12 -3
- package/dist/index.d.mts +12 -3
- package/dist/index.mjs +28 -0
- package/dist/langgraph/inde.d.cts +2162 -0
- package/dist/langgraph/inde.d.mts +2162 -0
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/inde.d.cts +2623 -0
- package/dist/mastra/inde.d.mts +2623 -0
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/react/dev-server/index..d.cts +28 -0
- package/dist/react/dev-server/index..d.mts +28 -0
- package/dist/react/dev-server/index.cjs +94 -0
- package/dist/react/dev-server/index.d.cts +28 -0
- package/dist/react/dev-server/index.d.mts +28 -0
- package/dist/react/dev-server/index.mjs +91 -0
- package/dist/types.gen-1sd31qLV.d.ts +172 -0
- 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-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-uDTr6v-7.d.ts +731 -0
- package/dist/utils/inde.d.cts +10 -0
- package/dist/utils/inde.d.mts +10 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/types.gen.ts +4 -1
- package/openapi.json +4649 -1
- package/package.json +14 -2
- package/src/index.ts +29 -4
- package/src/react/dev-server/index.tsx +127 -0
- package/src/react/dev-server/types.ts +5 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,297 @@
|
|
|
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
|
+
account_id: string;
|
|
17
|
+
provisioned_at: string;
|
|
18
|
+
started_at?: (string) | null;
|
|
19
|
+
duration?: (string) | null;
|
|
20
|
+
state: ExecuteRunState;
|
|
21
|
+
env_vars: {
|
|
22
|
+
[key: string]: (string);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type ExecuteRunState = 'starting' | 'running' | 'complete';
|
|
26
|
+
type FreestyleCloudstateDeployConfiguration = {
|
|
27
|
+
/**
|
|
28
|
+
* ID of the project to deploy, if not provided will create a new project
|
|
29
|
+
*/
|
|
30
|
+
domains?: Array<(string)> | null;
|
|
31
|
+
/**
|
|
32
|
+
* The environment variables that the cloudstate deploy can access
|
|
33
|
+
*/
|
|
34
|
+
envVars?: {
|
|
35
|
+
[key: string]: (string);
|
|
36
|
+
};
|
|
37
|
+
cloudstateDatabaseId?: (string) | null;
|
|
38
|
+
};
|
|
39
|
+
type FreestyleCloudstateDeployErrorResponse = {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
type FreestyleCloudstateDeployRequest = {
|
|
43
|
+
classes: string;
|
|
44
|
+
config?: FreestyleCloudstateDeployConfiguration;
|
|
45
|
+
};
|
|
46
|
+
type FreestyleCloudstateDeploySuccessResponse = {
|
|
47
|
+
deploymentId: string;
|
|
48
|
+
cloudstateDatabaseId: string;
|
|
49
|
+
};
|
|
50
|
+
type FreestyleDeleteDomainVerificationRequest = {
|
|
51
|
+
/**
|
|
52
|
+
* The domain to create a verification code for
|
|
53
|
+
*/
|
|
54
|
+
domain: string;
|
|
55
|
+
/**
|
|
56
|
+
* The verification code
|
|
57
|
+
*/
|
|
58
|
+
verificationCode: string;
|
|
59
|
+
};
|
|
60
|
+
type FreestyleDeployWebConfiguration = {
|
|
61
|
+
/**
|
|
62
|
+
* The entrypoint file for the website
|
|
63
|
+
*/
|
|
64
|
+
entrypoint?: (string) | null;
|
|
65
|
+
/**
|
|
66
|
+
* The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
|
|
67
|
+
*/
|
|
68
|
+
domains?: Array<(string)> | null;
|
|
69
|
+
/**
|
|
70
|
+
* 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.
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
73
|
+
projectId?: (string) | null;
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
*/
|
|
77
|
+
nodeModules?: {
|
|
78
|
+
[key: string]: (string);
|
|
79
|
+
} | null;
|
|
80
|
+
/**
|
|
81
|
+
* The environment variables that the website can access
|
|
82
|
+
* e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
|
|
83
|
+
*/
|
|
84
|
+
envVars?: {
|
|
85
|
+
[key: string]: (string);
|
|
86
|
+
} | null;
|
|
87
|
+
serverStartCheck?: boolean;
|
|
88
|
+
};
|
|
89
|
+
type FreestyleDeployWebErrorResponse = {
|
|
90
|
+
message: string;
|
|
91
|
+
};
|
|
92
|
+
type FreestyleDeployWebPayload = {
|
|
93
|
+
/**
|
|
94
|
+
* 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\" } }
|
|
95
|
+
*
|
|
96
|
+
* **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.
|
|
97
|
+
*/
|
|
98
|
+
files: {
|
|
99
|
+
[key: string]: FreestyleFile;
|
|
100
|
+
};
|
|
101
|
+
config?: FreestyleDeployWebConfiguration;
|
|
102
|
+
};
|
|
103
|
+
type FreestyleDeployWebSuccessResponse = {
|
|
104
|
+
deploymentId: string;
|
|
105
|
+
domains?: Array<(string)> | null;
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated
|
|
108
|
+
*/
|
|
109
|
+
projectId?: (string) | null;
|
|
110
|
+
};
|
|
111
|
+
type FreestyleDomainVerificationRequest = {
|
|
112
|
+
/**
|
|
113
|
+
* The domain to create a verification code for
|
|
114
|
+
*/
|
|
115
|
+
domain: string;
|
|
116
|
+
};
|
|
117
|
+
type FreestyleExecuteScriptParams = {
|
|
118
|
+
/**
|
|
119
|
+
* The JavaScript or TypeScript script to execute
|
|
120
|
+
*/
|
|
121
|
+
script: string;
|
|
122
|
+
config?: FreestyleExecuteScriptParamsConfiguration;
|
|
123
|
+
};
|
|
124
|
+
type FreestyleExecuteScriptParamsConfiguration = {
|
|
125
|
+
/**
|
|
126
|
+
* The environment variables to set for the script
|
|
127
|
+
*/
|
|
128
|
+
envVars?: {
|
|
129
|
+
[key: string]: (string);
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* The node modules to install for the script
|
|
133
|
+
*/
|
|
134
|
+
nodeModules?: {
|
|
135
|
+
[key: string]: (string);
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Tags for you to organize your scripts, useful for tracking what you're running
|
|
139
|
+
*/
|
|
140
|
+
tags?: Array<(string)>;
|
|
141
|
+
/**
|
|
142
|
+
* The script timeout
|
|
143
|
+
*/
|
|
144
|
+
timeout?: (string) | null;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
*/
|
|
148
|
+
peerDependencyResolution?: boolean;
|
|
149
|
+
};
|
|
150
|
+
type FreestyleExecuteScriptResultSuccess = {
|
|
151
|
+
result: unknown;
|
|
152
|
+
logs: Array<FreestyleJavaScriptLog>;
|
|
153
|
+
};
|
|
154
|
+
type FreestyleFile = {
|
|
155
|
+
/**
|
|
156
|
+
* The content of the file
|
|
157
|
+
*/
|
|
158
|
+
content: string;
|
|
159
|
+
/**
|
|
160
|
+
* The encoding of the file. Either **utf-8** or **base64**
|
|
161
|
+
*/
|
|
162
|
+
encoding?: string;
|
|
163
|
+
};
|
|
164
|
+
type FreestyleJavaScriptLog = {
|
|
165
|
+
/**
|
|
166
|
+
* The log message
|
|
167
|
+
*/
|
|
168
|
+
message: string;
|
|
169
|
+
/**
|
|
170
|
+
* The log level
|
|
171
|
+
*/
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
type FreestyleLogResponseObject = {
|
|
175
|
+
message: string;
|
|
176
|
+
timestamp: string;
|
|
177
|
+
};
|
|
178
|
+
type FreestyleVerifyDomainRequest = {
|
|
179
|
+
domain: string;
|
|
180
|
+
};
|
|
181
|
+
type HandleDeployCloudstateData = {
|
|
182
|
+
body: FreestyleCloudstateDeployRequest;
|
|
183
|
+
};
|
|
184
|
+
type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
|
|
185
|
+
type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
|
|
186
|
+
type HandleBackupCloudstateData = {
|
|
187
|
+
path: {
|
|
188
|
+
id: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
type HandleBackupCloudstateResponse = (Array<(number)>);
|
|
192
|
+
type HandleBackupCloudstateError = (unknown);
|
|
193
|
+
type HandleVerifyWildcardResponse = ({
|
|
194
|
+
domain: string;
|
|
195
|
+
});
|
|
196
|
+
type HandleVerifyWildcardError = ({
|
|
197
|
+
message: string;
|
|
198
|
+
});
|
|
199
|
+
type HandleListDomainsResponse = (Array<{
|
|
200
|
+
domain: string;
|
|
201
|
+
createdAt: number;
|
|
202
|
+
}>);
|
|
203
|
+
type HandleListDomainsError = ({
|
|
204
|
+
message: string;
|
|
205
|
+
});
|
|
206
|
+
type HandleListDomainVerificationRequestsResponse = (Array<{
|
|
207
|
+
verificationCode: string;
|
|
208
|
+
domain: string;
|
|
209
|
+
createdAt: number;
|
|
210
|
+
}>);
|
|
211
|
+
type HandleListDomainVerificationRequestsError = ({
|
|
212
|
+
message: string;
|
|
213
|
+
});
|
|
214
|
+
type HandleVerifyDomainData = {
|
|
215
|
+
body: FreestyleVerifyDomainRequest;
|
|
216
|
+
};
|
|
217
|
+
type HandleVerifyDomainResponse = ({
|
|
218
|
+
domain: string;
|
|
219
|
+
});
|
|
220
|
+
type HandleVerifyDomainError = ({
|
|
221
|
+
message: string;
|
|
222
|
+
});
|
|
223
|
+
type HandleCreateDomainVerificationData = {
|
|
224
|
+
body: FreestyleDomainVerificationRequest;
|
|
225
|
+
};
|
|
226
|
+
type HandleCreateDomainVerificationResponse = ({
|
|
227
|
+
verificationCode: string;
|
|
228
|
+
domain: string;
|
|
229
|
+
});
|
|
230
|
+
type HandleCreateDomainVerificationError = ({
|
|
231
|
+
message: string;
|
|
232
|
+
});
|
|
233
|
+
type HandleDeleteDomainVerificationData = {
|
|
234
|
+
body: FreestyleDeleteDomainVerificationRequest;
|
|
235
|
+
};
|
|
236
|
+
type HandleDeleteDomainVerificationResponse = ({
|
|
237
|
+
verificationCode: string;
|
|
238
|
+
domain: string;
|
|
239
|
+
});
|
|
240
|
+
type HandleDeleteDomainVerificationError = ({
|
|
241
|
+
message: string;
|
|
242
|
+
});
|
|
243
|
+
type HandleListExecuteRunsData = {
|
|
244
|
+
query?: {
|
|
245
|
+
limit?: (number) | null;
|
|
246
|
+
offset?: (number) | null;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
type HandleListExecuteRunsResponse = ({
|
|
250
|
+
entries: Array<ExecuteLogEntry>;
|
|
251
|
+
total: number;
|
|
252
|
+
offset: number;
|
|
253
|
+
});
|
|
254
|
+
type HandleListExecuteRunsError = ({
|
|
255
|
+
message: string;
|
|
256
|
+
});
|
|
257
|
+
type HandleGetExecuteRunData = {
|
|
258
|
+
path: {
|
|
259
|
+
deployment: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
type HandleGetExecuteRunResponse = (ExecuteLogEntry);
|
|
263
|
+
type HandleGetExecuteRunError = ({
|
|
264
|
+
message: string;
|
|
265
|
+
});
|
|
266
|
+
type HandleExecuteScriptData = {
|
|
267
|
+
body: FreestyleExecuteScriptParams;
|
|
268
|
+
};
|
|
269
|
+
type HandleExecuteScriptResponse = ({
|
|
270
|
+
result: unknown;
|
|
271
|
+
logs: Array<FreestyleJavaScriptLog>;
|
|
272
|
+
});
|
|
273
|
+
type HandleExecuteScriptError = ({
|
|
274
|
+
error: string;
|
|
275
|
+
});
|
|
276
|
+
type HandleGetLogsData = {
|
|
277
|
+
query: {
|
|
278
|
+
deploymentId: string;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
|
|
282
|
+
type HandleGetLogsError = unknown;
|
|
283
|
+
type HandleDeployWebData = {
|
|
284
|
+
body: FreestyleDeployWebPayload;
|
|
285
|
+
};
|
|
286
|
+
type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
287
|
+
type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
288
|
+
type HandleListWebDeploysResponse = ({
|
|
289
|
+
entries: Array<DeploymentLogEntry>;
|
|
290
|
+
total: number;
|
|
291
|
+
offset: number;
|
|
292
|
+
});
|
|
293
|
+
type HandleListWebDeploysError = ({
|
|
294
|
+
message: string;
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
export type { HandleGetLogsData as $, FreestyleJavaScriptLog as A, FreestyleLogResponseObject as B, FreestyleVerifyDomainRequest as C, DeploymentLogEntry as D, ExecuteLogEntry as E, FreestyleExecuteScriptParamsConfiguration as F, HandleDeployCloudstateData as G, HandleBackupCloudstateResponse as H, HandleDeployCloudstateResponse as I, HandleDeployCloudstateError as J, HandleBackupCloudstateData as K, HandleBackupCloudstateError as L, HandleVerifyWildcardError as M, HandleListDomainsError as N, HandleListDomainVerificationRequestsError as O, HandleVerifyDomainData as P, HandleCreateDomainVerificationData as Q, HandleCreateDomainVerificationError as R, HandleDeleteDomainVerificationData as S, HandleDeleteDomainVerificationError as T, HandleListExecuteRunsData as U, HandleListExecuteRunsError as V, HandleGetExecuteRunData as W, HandleGetExecuteRunError as X, HandleExecuteScriptData as Y, HandleExecuteScriptResponse as Z, HandleExecuteScriptError as _, FreestyleExecuteScriptResultSuccess as a, HandleGetLogsError as a0, HandleDeployWebData as a1, HandleDeployWebResponse as a2, HandleDeployWebError as a3, HandleListWebDeploysError as a4, 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, ExecuteRunState as r, FreestyleCloudstateDeployConfiguration as s, FreestyleCloudstateDeployErrorResponse as t, FreestyleDeleteDomainVerificationRequest as u, FreestyleDeployWebErrorResponse as v, FreestyleDeployWebPayload as w, FreestyleDomainVerificationRequest as x, FreestyleExecuteScriptParams as y, FreestyleFile as z };
|
|
@@ -78,8 +78,9 @@ type DescribePermissionResponseSuccess = {
|
|
|
78
78
|
accessLevel?: (null | AccessLevel);
|
|
79
79
|
};
|
|
80
80
|
type DevServer = {
|
|
81
|
-
domain?: (string) | null;
|
|
82
81
|
command?: (string) | null;
|
|
82
|
+
repo?: (string) | null;
|
|
83
|
+
domain?: (string) | null;
|
|
83
84
|
};
|
|
84
85
|
type DnsRecord = {
|
|
85
86
|
kind: DnsRecordKind;
|
|
@@ -498,6 +499,8 @@ type HandleEphemeralDevServerData = {
|
|
|
498
499
|
type HandleEphemeralDevServerResponse = ({
|
|
499
500
|
url: string;
|
|
500
501
|
isNew: boolean;
|
|
502
|
+
devCommandRunning: boolean;
|
|
503
|
+
installCommandRunning: boolean;
|
|
501
504
|
});
|
|
502
505
|
type HandleEphemeralDevServerError = (InternalServerError);
|
|
503
506
|
type HandleListExecuteRunsData = {
|
|
@@ -801,4 +804,4 @@ type HandleGetWebDeployDetailsData = {
|
|
|
801
804
|
};
|
|
802
805
|
};
|
|
803
806
|
|
|
804
|
-
export type {
|
|
807
|
+
export type { ExecuteLogEntry as $, AccessLevel as A, BuildOptions as B, CreateRepositoryResponseSuccess as C, DeploymentSource as D, HandleCreateGitTriggerResponse as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, HandleEphemeralDevServerResponse as I, AccessibleRepository as J, AccessTokenInfo as K, ListPermissionResponseSuccess as L, Behavior as M, CreateDomainMappingRequest as N, CreateRecordParams as O, CreateRepoRequest as P, CreateRepositoryRequest as Q, CreateRepoSource as R, type 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, HandleExecuteScriptData 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, HandleEphemeralDevServerError as aW, HandleListExecuteRunsData as aX, HandleListExecuteRunsError as aY, HandleGetExecuteRunData as aZ, HandleGetExecuteRunError 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, HandleExecuteScriptResponse as b0, HandleExecuteScriptError as b1, HandleCreateIdentityResponse as b2, HandleCreateIdentityError as b3, HandleDeleteIdentityData as b4, HandleDeleteIdentityError as b5, HandleListPermissionsData as b6, HandleListPermissionsResponse as b7, HandleListPermissionsError as b8, HandleDescribePermissionData as b9, HandleListGitTriggersData as bA, HandleListGitTriggersError as bB, HandleCreateGitTriggerData as bC, HandleCreateGitTriggerError as bD, HandleDeleteGitTriggerData as bE, HandleDeleteGitTriggerResponse as bF, HandleDeleteGitTriggerError as bG, HandleGetLogsData as bH, HandleGetLogsError as bI, HandleDeployWebData as bJ, HandleDeployWebResponse as bK, HandleDeployWebError as bL, HandleDeployWebV2Data as bM, HandleDeployWebV2Response as bN, HandleDeployWebV2Error as bO, HandleListWebDeploysData as bP, HandleListWebDeploysError as bQ, HandleGetWebDeployDetailsData as bR, HandleDescribePermissionResponse as ba, HandleDescribePermissionError as bb, HandleGrantPermissionData as bc, HandleGrantPermissionError as bd, HandleRevokePermissionData as be, HandleRevokePermissionResponse as bf, HandleRevokePermissionError as bg, HandleUpdatePermissionData as bh, HandleUpdatePermissionResponse as bi, HandleUpdatePermissionError as bj, HandleListGitTokensData as bk, HandleListGitTokensResponse as bl, HandleListGitTokensError as bm, HandleCreateGitTokenData as bn, HandleCreateGitTokenResponse as bo, HandleCreateGitTokenError as bp, HandleRevokeGitTokenData as bq, HandleRevokeGitTokenResponse as br, HandleRevokeGitTokenError as bs, HandleListRepositoriesData as bt, HandleListRepositoriesError as bu, HandleCreateRepoData as bv, HandleCreateRepoResponse as bw, HandleCreateRepoError as bx, HandleDeleteRepoData as by, HandleDeleteRepoError 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 };
|
|
@@ -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 };
|