freestyle-sandboxes 0.0.59 → 0.0.60

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.
Files changed (55) hide show
  1. package/dist/ai/inde.d.cts +1 -1
  2. package/dist/ai/inde.d.mts +1 -1
  3. package/dist/ai/index.d.cts +1 -1
  4. package/dist/ai/index.d.mts +1 -1
  5. package/dist/inde.d.cts +2 -2
  6. package/dist/inde.d.mts +2 -2
  7. package/dist/index-BBXyg0JQ.cjs +3253 -0
  8. package/dist/index-BQHqnjZK.mjs +3231 -0
  9. package/dist/index-CEEa9WHp.cjs +3238 -0
  10. package/dist/index-D1ulQeJR.mjs +3247 -0
  11. package/dist/index-DCF70Xbq.mjs +3246 -0
  12. package/dist/index-H7UNEAjs.cjs +3254 -0
  13. package/dist/index.d-CXx1AdyW.d.ts +4210 -0
  14. package/dist/index.d.cts +2 -2
  15. package/dist/index.d.mts +2 -2
  16. package/dist/langgraph/inde.d.cts +1 -1
  17. package/dist/langgraph/inde.d.mts +1 -1
  18. package/dist/langgraph/index.d.cts +1 -1
  19. package/dist/langgraph/index.d.mts +1 -1
  20. package/dist/mastra/inde.d.cts +1 -1
  21. package/dist/mastra/inde.d.mts +1 -1
  22. package/dist/mastra/index.d.cts +1 -1
  23. package/dist/mastra/index.d.mts +1 -1
  24. package/dist/types.gen-1sd31qLV.d.ts +172 -0
  25. package/dist/types.gen-627pxroW.d.ts +830 -0
  26. package/dist/types.gen-BCdfx7yt.d.ts +760 -0
  27. package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
  28. package/dist/types.gen-BbekD8Sd.d.ts +1119 -0
  29. package/dist/types.gen-BtK6PMQy.d.ts +195 -0
  30. package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
  31. package/dist/types.gen-BzRtj_TA.d.ts +725 -0
  32. package/dist/types.gen-C03gaIPq.d.ts +297 -0
  33. package/dist/types.gen-CMuCas4r.d.ts +183 -0
  34. package/dist/types.gen-CZUnqmzP.d.ts +789 -0
  35. package/dist/types.gen-CnEkmbco.d.ts +314 -0
  36. package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
  37. package/dist/types.gen-DHmdEOOa.d.ts +172 -0
  38. package/dist/types.gen-DLYohMJT.d.ts +382 -0
  39. package/dist/types.gen-DbTb_SrD.d.ts +156 -0
  40. package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
  41. package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
  42. package/dist/types.gen-MBZCvIhE.d.ts +311 -0
  43. package/dist/types.gen-YhJAHBw8.d.ts +233 -0
  44. package/dist/types.gen-cCnnhnB6.d.ts +182 -0
  45. package/dist/types.gen-mg_JNXrq.d.ts +830 -0
  46. package/dist/types.gen-uDTr6v-7.d.ts +731 -0
  47. package/dist/utils/inde.d.cts +1 -1
  48. package/dist/utils/inde.d.mts +1 -1
  49. package/dist/utils/index.d.cts +1 -1
  50. package/dist/utils/index.d.mts +1 -1
  51. package/openapi/sdk.gen.ts +98 -1
  52. package/openapi/types.gen.ts +329 -5
  53. package/openapi.json +1 -1
  54. package/package.json +2 -2
  55. package/.env +0 -1
@@ -10,6 +10,9 @@ type FreestyleCloudstateDeployConfiguration = {
10
10
  [key: string]: (string);
11
11
  };
12
12
  };
13
+ type FreestyleCloudstateDeployErrorResponse = {
14
+ message: string;
15
+ };
13
16
  type FreestyleCloudstateDeployRequest = {
14
17
  classes: string;
15
18
  config?: FreestyleCloudstateDeployConfiguration;
@@ -47,12 +50,36 @@ type FreestyleDeployWebConfiguration = {
47
50
  [key: string]: (string);
48
51
  } | null;
49
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
+ };
50
67
  type FreestyleDeployWebSuccessResponse = {
51
68
  projectId: string;
52
69
  };
70
+ type FreestyleExecureScriptResultError = {
71
+ error: string;
72
+ };
53
73
  type FreestyleExecureScriptResultSuccess = {
54
74
  result: unknown;
55
75
  };
76
+ type FreestyleExecuteScriptParams = {
77
+ /**
78
+ * The JavaScript or TypeScript script to execute
79
+ */
80
+ script: string;
81
+ config?: FreestyleExecuteScriptParamsConfiguration;
82
+ };
56
83
  type FreestyleExecuteScriptParamsConfiguration = {
57
84
  /**
58
85
  * The environment variables to set for the script
@@ -75,10 +102,37 @@ type FreestyleExecuteScriptParamsConfiguration = {
75
102
  */
76
103
  timeout?: (string) | null;
77
104
  };
105
+ type FreestyleFile = {
106
+ /**
107
+ * The content of the file
108
+ */
109
+ content: string;
110
+ /**
111
+ * The encoding of the file. Either **utf-8** or **base64**
112
+ */
113
+ encoding?: string;
114
+ };
78
115
  type FreestyleLogResponseObject = {
79
116
  message: string;
80
117
  };
118
+ type HandleDeployCloudstateData = {
119
+ body: FreestyleCloudstateDeployRequest;
120
+ };
121
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
122
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
81
123
  type HandleBackupCloudstateResponse = (Array<(number)>);
124
+ type HandleBackupCloudstateError = (unknown);
125
+ type HandleExecuteScriptData = {
126
+ body: FreestyleExecuteScriptParams;
127
+ };
128
+ type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
129
+ type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
130
+ type HandleDeployWebData = {
131
+ body: FreestyleDeployWebPayload;
132
+ };
133
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
134
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
82
135
  type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
136
+ type HandleGetLogsError = unknown;
83
137
 
84
- export type { FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f };
138
+ export type { FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, FreestyleCloudstateDeployConfiguration as g, FreestyleCloudstateDeployErrorResponse as h, FreestyleDeployWebErrorResponse as i, FreestyleDeployWebPayload as j, FreestyleExecureScriptResultError as k, FreestyleExecuteScriptParams as l, FreestyleFile as m, FreestyleLogResponseObject as n, HandleDeployCloudstateData as o, HandleDeployCloudstateResponse as p, HandleDeployCloudstateError as q, HandleBackupCloudstateError as r, HandleExecuteScriptData as s, HandleExecuteScriptResponse as t, HandleExecuteScriptError as u, HandleDeployWebData as v, HandleDeployWebResponse as w, HandleDeployWebError as x, HandleGetLogsError as y };
@@ -0,0 +1,311 @@
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 FreestyleJavaScriptLog = {
171
+ /**
172
+ * The log message
173
+ */
174
+ message: string;
175
+ /**
176
+ * The log level
177
+ */
178
+ type: string;
179
+ };
180
+ type FreestyleLogResponseObject = {
181
+ message: string;
182
+ timestamp: string;
183
+ };
184
+ type FreestyleVerifyDomainRequest = {
185
+ domain: string;
186
+ };
187
+ type HandleDeployCloudstateData = {
188
+ body: FreestyleCloudstateDeployRequest;
189
+ };
190
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
191
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
192
+ type HandleBackupCloudstateData = {
193
+ path: {
194
+ id: string;
195
+ };
196
+ };
197
+ type HandleBackupCloudstateResponse = (Array<(number)>);
198
+ type HandleBackupCloudstateError = (unknown);
199
+ type HandleVerifyWildcardResponse = ({
200
+ domain: string;
201
+ });
202
+ type HandleVerifyWildcardError = ({
203
+ message: string;
204
+ });
205
+ type HandleListDomainsResponse = (Array<{
206
+ domain: string;
207
+ createdAt: number;
208
+ }>);
209
+ type HandleListDomainsError = ({
210
+ message: string;
211
+ });
212
+ type HandleListDomainVerificationRequestsResponse = (Array<{
213
+ verificationCode: string;
214
+ domain: string;
215
+ createdAt: number;
216
+ }>);
217
+ type HandleListDomainVerificationRequestsError = ({
218
+ message: string;
219
+ });
220
+ type HandleVerifyDomainData = {
221
+ body: FreestyleVerifyDomainRequest;
222
+ };
223
+ type HandleVerifyDomainResponse = ({
224
+ domain: string;
225
+ });
226
+ type HandleVerifyDomainError = ({
227
+ message: string;
228
+ });
229
+ type HandleCreateDomainVerificationData = {
230
+ body: FreestyleDomainVerificationRequest;
231
+ };
232
+ type HandleCreateDomainVerificationResponse = ({
233
+ verificationCode: string;
234
+ domain: string;
235
+ });
236
+ type HandleCreateDomainVerificationError = ({
237
+ message: string;
238
+ });
239
+ type HandleDeleteDomainVerificationData = {
240
+ body: FreestyleDeleteDomainVerificationRequest;
241
+ };
242
+ type HandleDeleteDomainVerificationResponse = ({
243
+ verificationCode: string;
244
+ domain: string;
245
+ });
246
+ type HandleDeleteDomainVerificationError = ({
247
+ message: string;
248
+ });
249
+ type HandleListExecuteRunsData = {
250
+ query?: {
251
+ limit?: (number) | null;
252
+ offset?: (number) | null;
253
+ };
254
+ };
255
+ type HandleListExecuteRunsResponse = ({
256
+ entries: Array<ExecuteLogEntry>;
257
+ total: number;
258
+ offset: number;
259
+ });
260
+ type HandleListExecuteRunsError = ({
261
+ message: string;
262
+ });
263
+ type HandleGetExecuteRunData = {
264
+ path: {
265
+ deployment: string;
266
+ };
267
+ };
268
+ type HandleGetExecuteRunResponse = ({
269
+ metadata: ExecuteLogEntry;
270
+ code: ExecuteRunInfo;
271
+ });
272
+ type HandleGetExecuteRunError = ({
273
+ message: string;
274
+ });
275
+ type HandleExecuteScriptData = {
276
+ body: FreestyleExecuteScriptParams;
277
+ };
278
+ type HandleExecuteScriptResponse = ({
279
+ result: unknown;
280
+ logs: Array<FreestyleJavaScriptLog>;
281
+ });
282
+ type HandleExecuteScriptError = ({
283
+ error: string;
284
+ });
285
+ type HandleGetLogsData = {
286
+ query: {
287
+ deploymentId: string;
288
+ };
289
+ };
290
+ type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
291
+ type HandleGetLogsError = unknown;
292
+ type HandleDeployWebData = {
293
+ body: FreestyleDeployWebPayload;
294
+ };
295
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
296
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
297
+ type HandleListWebDeploysResponse = ({
298
+ entries: Array<DeploymentLogEntry>;
299
+ total: number;
300
+ offset: number;
301
+ });
302
+ type HandleListWebDeploysError = ({
303
+ message: string;
304
+ });
305
+ type HandleGetWebDeployDetailsData = {
306
+ path: {
307
+ deployment_id: string;
308
+ };
309
+ };
310
+
311
+ export type { HandleExecuteScriptError as $, FreestyleFile as A, FreestyleJavaScriptLog as B, FreestyleLogResponseObject as C, DeploymentLogEntry as D, ExecuteLogEntry as E, FreestyleExecuteScriptParamsConfiguration as F, FreestyleVerifyDomainRequest as G, HandleBackupCloudstateResponse as H, HandleDeployCloudstateData as I, HandleDeployCloudstateResponse as J, HandleDeployCloudstateError as K, HandleBackupCloudstateData as L, HandleBackupCloudstateError as M, HandleVerifyWildcardError as N, HandleListDomainsError as O, HandleListDomainVerificationRequestsError as P, HandleVerifyDomainData as Q, HandleCreateDomainVerificationData as R, HandleCreateDomainVerificationError as S, HandleDeleteDomainVerificationData as T, HandleDeleteDomainVerificationError as U, HandleListExecuteRunsData as V, HandleListExecuteRunsError as W, HandleGetExecuteRunData as X, HandleGetExecuteRunError as Y, HandleExecuteScriptData as Z, HandleExecuteScriptResponse as _, FreestyleExecuteScriptResultSuccess as a, HandleGetLogsData as a0, HandleGetLogsError as a1, HandleDeployWebData as a2, HandleDeployWebResponse as a3, HandleDeployWebError as a4, HandleListWebDeploysError as a5, HandleGetWebDeployDetailsData as a6, 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 };
@@ -0,0 +1,233 @@
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 FreestyleDeleteDomainVerificationRequest = {
27
+ /**
28
+ * The domain to create a verification code for
29
+ */
30
+ domain: string;
31
+ /**
32
+ * The verification code
33
+ */
34
+ verificationCode: string;
35
+ };
36
+ type FreestyleDeployWebConfiguration = {
37
+ /**
38
+ * The entrypoint file for the website
39
+ */
40
+ entrypoint?: (string) | null;
41
+ /**
42
+ * The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
43
+ */
44
+ domains?: Array<(string)> | null;
45
+ /**
46
+ * 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.
47
+ * @deprecated
48
+ */
49
+ projectId?: (string) | null;
50
+ /**
51
+ * 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.
52
+ */
53
+ nodeModules?: {
54
+ [key: string]: (string);
55
+ } | null;
56
+ /**
57
+ * The environment variables that the website can access
58
+ * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
59
+ */
60
+ envVars?: {
61
+ [key: string]: (string);
62
+ } | null;
63
+ serverStartCheck?: boolean;
64
+ };
65
+ type FreestyleDeployWebErrorResponse = {
66
+ message: string;
67
+ };
68
+ type FreestyleDeployWebPayload = {
69
+ /**
70
+ * 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\" } }
71
+ *
72
+ * **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.
73
+ */
74
+ files: {
75
+ [key: string]: FreestyleFile;
76
+ };
77
+ config?: FreestyleDeployWebConfiguration;
78
+ };
79
+ type FreestyleDeployWebSuccessResponse = {
80
+ deploymentId: string;
81
+ domains?: Array<(string)> | null;
82
+ /**
83
+ * @deprecated
84
+ */
85
+ projectId?: (string) | null;
86
+ };
87
+ type FreestyleDomainVerificationRequest = {
88
+ /**
89
+ * The domain to create a verification code for
90
+ */
91
+ domain: string;
92
+ };
93
+ type FreestyleExecureScriptResultError = {
94
+ error: string;
95
+ };
96
+ type FreestyleExecureScriptResultSuccess = {
97
+ result: unknown;
98
+ logs: Array<JavaScriptLog>;
99
+ };
100
+ type FreestyleExecuteScriptParams = {
101
+ /**
102
+ * The JavaScript or TypeScript script to execute
103
+ */
104
+ script: string;
105
+ config?: FreestyleExecuteScriptParamsConfiguration;
106
+ };
107
+ type FreestyleExecuteScriptParamsConfiguration = {
108
+ /**
109
+ * The environment variables to set for the script
110
+ */
111
+ envVars?: {
112
+ [key: string]: (string);
113
+ };
114
+ /**
115
+ * The node modules to install for the script
116
+ */
117
+ nodeModules?: {
118
+ [key: string]: (string);
119
+ };
120
+ /**
121
+ * Tags for you to organize your scripts, useful for tracking what you're running
122
+ */
123
+ tags?: Array<(string)>;
124
+ /**
125
+ * The script timeout
126
+ */
127
+ timeout?: (string) | null;
128
+ /**
129
+ * 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.
130
+ */
131
+ peerDependencyResolution?: boolean;
132
+ };
133
+ type FreestyleFile = {
134
+ /**
135
+ * The content of the file
136
+ */
137
+ content: string;
138
+ /**
139
+ * The encoding of the file. Either **utf-8** or **base64**
140
+ */
141
+ encoding?: string;
142
+ };
143
+ type FreestyleLogResponseObject = {
144
+ message: string;
145
+ };
146
+ type FreestyleVerifyDomainRequest = {
147
+ domain: string;
148
+ };
149
+ type JavaScriptLog = {
150
+ /**
151
+ * The log message
152
+ */
153
+ message: string;
154
+ /**
155
+ * The log level
156
+ */
157
+ type: string;
158
+ };
159
+ type HandleDeployCloudstateData = {
160
+ body: FreestyleCloudstateDeployRequest;
161
+ };
162
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
163
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
164
+ type HandleBackupCloudstateData = {
165
+ path: {
166
+ id: string;
167
+ };
168
+ };
169
+ type HandleBackupCloudstateResponse = (Array<(number)>);
170
+ type HandleBackupCloudstateError = (unknown);
171
+ type HandleListDomainsResponse = (Array<{
172
+ domain: string;
173
+ createdAt: number;
174
+ }>);
175
+ type HandleListDomainsError = ({
176
+ message: string;
177
+ });
178
+ type HandleListDomainVerificationRequestsResponse = (Array<{
179
+ verificationCode: string;
180
+ domain: string;
181
+ createdAt: number;
182
+ }>);
183
+ type HandleListDomainVerificationRequestsError = ({
184
+ message: string;
185
+ });
186
+ type HandleVerifyDomainData = {
187
+ body: FreestyleVerifyDomainRequest;
188
+ };
189
+ type HandleVerifyDomainResponse = ({
190
+ domain: string;
191
+ });
192
+ type HandleVerifyDomainError = ({
193
+ message: string;
194
+ });
195
+ type HandleCreateDomainVerificationData = {
196
+ body: FreestyleDomainVerificationRequest;
197
+ };
198
+ type HandleCreateDomainVerificationResponse = ({
199
+ verificationCode: string;
200
+ domain: string;
201
+ });
202
+ type HandleCreateDomainVerificationError = ({
203
+ message: string;
204
+ });
205
+ type HandleDeleteDomainVerificationData = {
206
+ body: FreestyleDeleteDomainVerificationRequest;
207
+ };
208
+ type HandleDeleteDomainVerificationResponse = ({
209
+ verificationCode: string;
210
+ domain: string;
211
+ });
212
+ type HandleDeleteDomainVerificationError = ({
213
+ message: string;
214
+ });
215
+ type HandleExecuteScriptData = {
216
+ body: FreestyleExecuteScriptParams;
217
+ };
218
+ type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
219
+ type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
220
+ type HandleDeployWebData = {
221
+ body: FreestyleDeployWebPayload;
222
+ };
223
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
224
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
225
+ type HandleGetLogsData = {
226
+ path: {
227
+ id: string;
228
+ };
229
+ };
230
+ type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
231
+ type HandleGetLogsError = unknown;
232
+
233
+ export type { HandleBackupCloudstateData as A, HandleBackupCloudstateError as B, HandleListDomainsError as C, HandleListDomainVerificationRequestsError as D, HandleVerifyDomainData as E, FreestyleExecuteScriptParamsConfiguration as F, HandleCreateDomainVerificationData as G, HandleBackupCloudstateResponse as H, HandleCreateDomainVerificationError as I, JavaScriptLog as J, HandleDeleteDomainVerificationData as K, HandleDeleteDomainVerificationError as L, HandleExecuteScriptData as M, HandleExecuteScriptResponse as N, HandleExecuteScriptError as O, HandleDeployWebData as P, HandleDeployWebResponse as Q, HandleDeployWebError as R, HandleGetLogsData as S, HandleGetLogsError as T, FreestyleExecureScriptResultSuccess as a, 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, FreestyleCloudstateDeployConfiguration as m, FreestyleCloudstateDeployErrorResponse as n, FreestyleDeleteDomainVerificationRequest as o, FreestyleDeployWebErrorResponse as p, FreestyleDeployWebPayload as q, FreestyleDomainVerificationRequest as r, FreestyleExecureScriptResultError as s, FreestyleExecuteScriptParams as t, FreestyleFile as u, FreestyleLogResponseObject as v, FreestyleVerifyDomainRequest as w, HandleDeployCloudstateData as x, HandleDeployCloudstateResponse as y, HandleDeployCloudstateError as z };