freestyle-sandboxes 0.0.70 → 0.0.71

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.
@@ -1,172 +0,0 @@
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 { HandleCreateDomainVerificationResponse 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, HandleVerifyDomainResponse as g, HandleListDomainsResponse as h, FreestyleCloudstateDeployConfiguration as i, FreestyleCloudstateDeployErrorResponse as j, FreestyleDeployWebErrorResponse as k, FreestyleDeployWebPayload as l, FreestyleDomainVerificationRequest as m, FreestyleExecureScriptResultError as n, FreestyleExecuteScriptParams as o, FreestyleFile as p, FreestyleLogResponseObject as q, FreestyleVerifyDomainRequest as r, HandleDeployCloudstateData as s, HandleDeployCloudstateResponse as t, HandleDeployCloudstateError as u, HandleBackupCloudstateError as v, HandleListDomainsError as w, HandleVerifyDomainData as x, HandleVerifyDomainError as y, HandleCreateDomainVerificationData as z };
@@ -1,382 +0,0 @@
1
- type Behavior = 'regex' | 'exact';
2
- type CreateRepositoryRequest = {
3
- name: string;
4
- };
5
- type DeploymentLogEntry = {
6
- deploymentId: string;
7
- accountId: string;
8
- provisionedAt: string;
9
- timeout: string;
10
- state: DeploymentState;
11
- deployedAt?: (string) | null;
12
- domains: Array<(string)>;
13
- envVars: {
14
- [key: string]: (string);
15
- };
16
- };
17
- type DeploymentState = 'provisioning' | 'deployed' | 'failed';
18
- type ExecuteLogEntry = {
19
- deployment: string;
20
- accountId: string;
21
- provisionedAt: string;
22
- startedAt?: (string) | null;
23
- duration?: (string) | null;
24
- state: ExecuteRunState;
25
- envVars: {
26
- [key: string]: (string);
27
- };
28
- };
29
- type ExecuteRunInfo = {
30
- code: string;
31
- nodeModules: {
32
- [key: string]: (string);
33
- };
34
- };
35
- type ExecuteRunState = 'starting' | 'running' | 'complete';
36
- type FreestyleCloudstateDeployConfiguration = {
37
- /**
38
- * ID of the project to deploy, if not provided will create a new project
39
- */
40
- domains?: Array<(string)> | null;
41
- /**
42
- * The environment variables that the cloudstate deploy can access
43
- */
44
- envVars?: {
45
- [key: string]: (string);
46
- };
47
- cloudstateDatabaseId?: (string) | null;
48
- };
49
- type FreestyleCloudstateDeployErrorResponse = {
50
- message: string;
51
- };
52
- type FreestyleCloudstateDeployRequest = {
53
- classes: string;
54
- config?: FreestyleCloudstateDeployConfiguration;
55
- };
56
- type FreestyleCloudstateDeploySuccessResponse = {
57
- deploymentId: string;
58
- cloudstateDatabaseId: string;
59
- };
60
- type FreestyleDeleteDomainVerificationRequest = {
61
- /**
62
- * The domain to create a verification code for
63
- */
64
- domain: string;
65
- /**
66
- * The verification code
67
- */
68
- verificationCode: string;
69
- };
70
- type FreestyleDeployWebConfiguration = {
71
- /**
72
- * The entrypoint file for the website
73
- */
74
- entrypoint?: (string) | null;
75
- /**
76
- * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
77
- */
78
- domains?: Array<(string)> | null;
79
- /**
80
- * 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.
81
- * @deprecated
82
- */
83
- projectId?: (string) | null;
84
- /**
85
- * 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.
86
- */
87
- nodeModules?: {
88
- [key: string]: (string);
89
- } | null;
90
- /**
91
- * The environment variables that the website can access
92
- * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
93
- */
94
- envVars?: {
95
- [key: string]: (string);
96
- } | null;
97
- serverStartCheck?: boolean;
98
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
99
- };
100
- type FreestyleDeployWebErrorResponse = {
101
- message: string;
102
- };
103
- type FreestyleDeployWebPayload = {
104
- /**
105
- * 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\" } }
106
- *
107
- * **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.
108
- */
109
- files: {
110
- [key: string]: FreestyleFile;
111
- };
112
- config?: FreestyleDeployWebConfiguration;
113
- };
114
- type FreestyleDeployWebSuccessResponse = {
115
- deploymentId: string;
116
- domains?: Array<(string)> | null;
117
- /**
118
- * @deprecated
119
- */
120
- projectId?: (string) | null;
121
- };
122
- type FreestyleDomainVerificationRequest = {
123
- /**
124
- * The domain to create a verification code for
125
- */
126
- domain: string;
127
- };
128
- type FreestyleExecuteScriptParams = {
129
- /**
130
- * The JavaScript or TypeScript script to execute
131
- */
132
- script: string;
133
- config?: FreestyleExecuteScriptParamsConfiguration;
134
- };
135
- type FreestyleExecuteScriptParamsConfiguration = {
136
- /**
137
- * The environment variables to set for the script
138
- */
139
- envVars?: {
140
- [key: string]: (string);
141
- };
142
- /**
143
- * The node modules to install for the script
144
- */
145
- nodeModules?: {
146
- [key: string]: (string);
147
- };
148
- /**
149
- * Tags for you to organize your scripts, useful for tracking what you're running
150
- */
151
- tags?: Array<(string)>;
152
- /**
153
- * The script timeout
154
- */
155
- timeout?: (string) | null;
156
- /**
157
- * 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.
158
- */
159
- peerDependencyResolution?: boolean;
160
- networkPermissions?: Array<FreestyleNetworkPermission> | null;
161
- };
162
- type FreestyleExecuteScriptResultSuccess = {
163
- result: unknown;
164
- logs: Array<FreestyleJavaScriptLog>;
165
- };
166
- type FreestyleFile = {
167
- /**
168
- * The content of the file
169
- */
170
- content: string;
171
- /**
172
- * The encoding of the file. Either **utf-8** or **base64**
173
- */
174
- encoding?: string;
175
- };
176
- type FreestyleGetLogsResponse = {
177
- logs: Array<FreestyleLogResponseObject>;
178
- };
179
- type FreestyleJavaScriptLog = {
180
- /**
181
- * The log message
182
- */
183
- message: string;
184
- /**
185
- * The log level
186
- */
187
- type: string;
188
- };
189
- type FreestyleLogResponseObject = {
190
- message: string;
191
- timestamp: string;
192
- };
193
- type FreestyleNetworkPermission = (NetworkPermissionData & {
194
- action: 'allow';
195
- }) | (NetworkPermissionData & {
196
- action: 'deny';
197
- });
198
- type action = 'allow';
199
- type FreestyleVerifyDomainRequest = {
200
- domain: string;
201
- };
202
- type NetworkPermissionData = {
203
- query: string;
204
- behavior?: Behavior;
205
- };
206
- type RepositoryInfo = {
207
- id: string;
208
- name: string;
209
- ownerId: string;
210
- };
211
- type HandleDeployCloudstateData = {
212
- body: FreestyleCloudstateDeployRequest;
213
- };
214
- type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
215
- type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
216
- type HandleBackupCloudstateData = {
217
- path: {
218
- id: string;
219
- };
220
- };
221
- type HandleBackupCloudstateResponse = (Array<(number)>);
222
- type HandleBackupCloudstateError = (unknown);
223
- type HandleVerifyWildcardResponse = ({
224
- domain: string;
225
- });
226
- type HandleVerifyWildcardError = ({
227
- message: string;
228
- });
229
- type HandleListDomainsResponse = (Array<{
230
- domain: string;
231
- createdAt: number;
232
- }>);
233
- type HandleListDomainsError = ({
234
- message: string;
235
- });
236
- type HandleListDomainVerificationRequestsResponse = (Array<{
237
- verificationCode: string;
238
- domain: string;
239
- createdAt: number;
240
- }>);
241
- type HandleListDomainVerificationRequestsError = ({
242
- message: string;
243
- });
244
- type HandleVerifyDomainData = {
245
- body: FreestyleVerifyDomainRequest;
246
- };
247
- type HandleVerifyDomainResponse = ({
248
- domain: string;
249
- });
250
- type HandleVerifyDomainError = ({
251
- message: string;
252
- });
253
- type HandleCreateDomainVerificationData = {
254
- body: FreestyleDomainVerificationRequest;
255
- };
256
- type HandleCreateDomainVerificationResponse = ({
257
- verificationCode: string;
258
- domain: string;
259
- });
260
- type HandleCreateDomainVerificationError = ({
261
- message: string;
262
- });
263
- type HandleDeleteDomainVerificationData = {
264
- body: FreestyleDeleteDomainVerificationRequest;
265
- };
266
- type HandleDeleteDomainVerificationResponse = ({
267
- verificationCode: string;
268
- domain: string;
269
- });
270
- type HandleDeleteDomainVerificationError = ({
271
- message: string;
272
- });
273
- type HandleListExecuteRunsData = {
274
- query?: {
275
- limit?: (number) | null;
276
- offset?: (number) | null;
277
- };
278
- };
279
- type HandleListExecuteRunsResponse = ({
280
- entries: Array<ExecuteLogEntry>;
281
- total: number;
282
- offset: number;
283
- });
284
- type HandleListExecuteRunsError = ({
285
- message: string;
286
- });
287
- type HandleGetExecuteRunData = {
288
- path: {
289
- deployment: string;
290
- };
291
- };
292
- type HandleGetExecuteRunResponse = ({
293
- metadata: ExecuteLogEntry;
294
- code: ExecuteRunInfo;
295
- });
296
- type HandleGetExecuteRunError = ({
297
- message: string;
298
- });
299
- type HandleExecuteScriptData = {
300
- body: FreestyleExecuteScriptParams;
301
- };
302
- type HandleExecuteScriptResponse = ({
303
- result: unknown;
304
- logs: Array<FreestyleJavaScriptLog>;
305
- });
306
- type HandleExecuteScriptError = ({
307
- error: string;
308
- });
309
- type ListRepositoriesHandlerData = {
310
- query: {
311
- /**
312
- * Maximum number of repositories to return
313
- */
314
- limit: number;
315
- /**
316
- * Offset for the list of repositories
317
- */
318
- offset: number;
319
- };
320
- };
321
- type ListRepositoriesHandlerResponse = ({
322
- repositories: Array<RepositoryInfo>;
323
- offset: number;
324
- });
325
- type ListRepositoriesHandlerError = (string);
326
- type CreateRepoHandlerData = {
327
- body: CreateRepositoryRequest;
328
- };
329
- type CreateRepoHandlerResponse = ({
330
- repo_id: string;
331
- });
332
- type CreateRepoHandlerError = (string | unknown);
333
- type DeleteRepoHandlerData = {
334
- path: {
335
- /**
336
- * The repository id
337
- */
338
- repo: string;
339
- };
340
- };
341
- type DeleteRepoHandlerResponse = (unknown);
342
- type DeleteRepoHandlerError = (string | unknown);
343
- type HandleGetLogsData = {
344
- query?: {
345
- deploymentId?: (string) | null;
346
- domain?: (string) | null;
347
- };
348
- };
349
- type HandleGetLogsResponse = (FreestyleGetLogsResponse);
350
- type HandleGetLogsError = unknown;
351
- type HandleDeployWebData = {
352
- body: FreestyleDeployWebPayload;
353
- };
354
- type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
355
- type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
356
- type HandleListWebDeploysData = {
357
- query: {
358
- /**
359
- * Maximum number of repositories to return
360
- */
361
- limit: number;
362
- /**
363
- * Offset for the list of repositories
364
- */
365
- offset: number;
366
- };
367
- };
368
- type HandleListWebDeploysResponse = ({
369
- entries: Array<DeploymentLogEntry>;
370
- total: number;
371
- offset: number;
372
- });
373
- type HandleListWebDeploysError = ({
374
- message: string;
375
- });
376
- type HandleGetWebDeployDetailsData = {
377
- path: {
378
- deployment_id: string;
379
- };
380
- };
381
-
382
- export type { HandleCreateDomainVerificationData as $, FreestyleDomainVerificationRequest as A, Behavior as B, CreateRepoHandlerResponse as C, DeleteRepoHandlerResponse as D, ExecuteLogEntry as E, FreestyleExecuteScriptParamsConfiguration as F, FreestyleExecuteScriptParams as G, HandleBackupCloudstateResponse as H, FreestyleFile as I, FreestyleGetLogsResponse as J, FreestyleJavaScriptLog as K, ListRepositoriesHandlerResponse as L, FreestyleLogResponseObject as M, FreestyleNetworkPermission as N, action as O, FreestyleVerifyDomainRequest as P, NetworkPermissionData as Q, RepositoryInfo as R, HandleDeployCloudstateData as S, HandleDeployCloudstateResponse as T, HandleDeployCloudstateError as U, HandleBackupCloudstateData as V, HandleBackupCloudstateError as W, HandleVerifyWildcardError as X, HandleListDomainsError as Y, HandleListDomainVerificationRequestsError as Z, HandleVerifyDomainData as _, FreestyleExecuteScriptResultSuccess as a, HandleCreateDomainVerificationError as a0, HandleDeleteDomainVerificationData as a1, HandleDeleteDomainVerificationError as a2, HandleListExecuteRunsData as a3, HandleListExecuteRunsError as a4, HandleGetExecuteRunData as a5, HandleGetExecuteRunError as a6, HandleExecuteScriptData as a7, HandleExecuteScriptResponse as a8, HandleExecuteScriptError as a9, ListRepositoriesHandlerData as aa, ListRepositoriesHandlerError as ab, CreateRepoHandlerData as ac, CreateRepoHandlerError as ad, DeleteRepoHandlerData as ae, DeleteRepoHandlerError as af, HandleGetLogsData as ag, HandleGetLogsError as ah, HandleDeployWebData as ai, HandleDeployWebResponse as aj, HandleDeployWebError as ak, HandleListWebDeploysData as al, HandleListWebDeploysError as am, HandleGetWebDeployDetailsData as an, 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, CreateRepositoryRequest as q, DeploymentLogEntry as r, DeploymentState as s, ExecuteRunInfo as t, ExecuteRunState as u, FreestyleCloudstateDeployConfiguration as v, FreestyleCloudstateDeployErrorResponse as w, FreestyleDeleteDomainVerificationRequest as x, FreestyleDeployWebErrorResponse as y, FreestyleDeployWebPayload as z };