freestyle-sandboxes 0.0.79 → 0.0.81

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 (39) hide show
  1. package/dist/inde.d.cts +0 -1
  2. package/dist/inde.d.mts +0 -1
  3. package/dist/{index-BBXyg0JQ.cjs → index-CGc0kRd_.cjs} +9 -5
  4. package/dist/{index-DCF70Xbq.mjs → index-jh-93svX.mjs} +9 -5
  5. package/dist/index.cjs +1 -15
  6. package/dist/index.d.cts +0 -1
  7. package/dist/index.d.mts +0 -1
  8. package/dist/index.mjs +1 -15
  9. package/dist/{types.gen-BVXmFV7d.d.ts → types.gen-0bQ5Wn0o.d.ts} +18 -17
  10. package/dist/{types.gen-CIf3ciN7.d.ts → types.gen-BJArgpto.d.ts} +2 -5
  11. package/dist/{types.gen-DLYohMJT.d.ts → types.gen-CfrGF-JI.d.ts} +1 -1
  12. package/dist/{types.gen-CZUnqmzP.d.ts → types.gen-DxZanGNF.d.ts} +9 -6
  13. package/openapi/sdk.gen.ts +57 -2
  14. package/openapi/types.gen.ts +133 -2
  15. package/openapi.json +1 -1
  16. package/package.json +1 -1
  17. package/src/index.ts +143 -5
  18. package/dist/index-BQHqnjZK.mjs +0 -3231
  19. package/dist/index-CEEa9WHp.cjs +0 -3238
  20. package/dist/types.gen-1sd31qLV.d.ts +0 -172
  21. package/dist/types.gen-627pxroW.d.ts +0 -830
  22. package/dist/types.gen-BCdfx7yt.d.ts +0 -760
  23. package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
  24. package/dist/types.gen-BbekD8Sd.d.ts +0 -1119
  25. package/dist/types.gen-BqN1t03N.d.ts +0 -842
  26. package/dist/types.gen-BtK6PMQy.d.ts +0 -195
  27. package/dist/types.gen-C03gaIPq.d.ts +0 -297
  28. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  29. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  30. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  31. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  32. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  33. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  34. package/dist/types.gen-DyY7Deri.d.ts +0 -138
  35. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  36. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  37. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  38. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  39. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
@@ -1,195 +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 include a single *.style.dev domain here.
33
- */
34
- domains?: Array<(string)> | null;
35
- /**
36
- * 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.
37
- * @deprecated
38
- */
39
- projectId?: (string) | null;
40
- /**
41
- * 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.
42
- */
43
- nodeModules?: {
44
- [key: string]: (string);
45
- } | null;
46
- /**
47
- * The environment variables that the website can access
48
- * e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
49
- */
50
- envVars?: {
51
- [key: string]: (string);
52
- } | null;
53
- };
54
- type FreestyleDeployWebErrorResponse = {
55
- message: string;
56
- };
57
- type FreestyleDeployWebPayload = {
58
- /**
59
- * 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\" } }
60
- *
61
- * **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.
62
- */
63
- files: {
64
- [key: string]: FreestyleFile;
65
- };
66
- config?: FreestyleDeployWebConfiguration;
67
- };
68
- type FreestyleDeployWebSuccessResponse = {
69
- deploymentId: string;
70
- };
71
- type FreestyleDomainVerificationRequest = {
72
- /**
73
- * The domain to create a verification code for
74
- */
75
- domain: string;
76
- };
77
- type FreestyleExecureScriptResultError = {
78
- error: string;
79
- };
80
- type FreestyleExecureScriptResultSuccess = {
81
- result: unknown;
82
- logs: Array<JavaScriptLog>;
83
- };
84
- type FreestyleExecuteScriptParams = {
85
- /**
86
- * The JavaScript or TypeScript script to execute
87
- */
88
- script: string;
89
- config?: FreestyleExecuteScriptParamsConfiguration;
90
- };
91
- type FreestyleExecuteScriptParamsConfiguration = {
92
- /**
93
- * The environment variables to set for the script
94
- */
95
- envVars?: {
96
- [key: string]: (string);
97
- };
98
- /**
99
- * The node modules to install for the script
100
- */
101
- nodeModules?: {
102
- [key: string]: (string);
103
- };
104
- /**
105
- * Tags for you to organize your scripts, useful for tracking what you're running
106
- */
107
- tags?: Array<(string)>;
108
- /**
109
- * The script timeout
110
- */
111
- timeout?: (string) | null;
112
- };
113
- type FreestyleFile = {
114
- /**
115
- * The content of the file
116
- */
117
- content: string;
118
- /**
119
- * The encoding of the file. Either **utf-8** or **base64**
120
- */
121
- encoding?: string;
122
- };
123
- type FreestyleLogResponseObject = {
124
- message: string;
125
- };
126
- type FreestyleVerifyDomainRequest = {
127
- domain: string;
128
- };
129
- type JavaScriptLog = {
130
- /**
131
- * The log message
132
- */
133
- message: string;
134
- /**
135
- * The log level
136
- */
137
- type: string;
138
- };
139
- type HandleDeployCloudstateData = {
140
- body: FreestyleCloudstateDeployRequest;
141
- };
142
- type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
143
- type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
144
- type HandleBackupCloudstateData = {
145
- path: {
146
- id: string;
147
- };
148
- };
149
- type HandleBackupCloudstateResponse = (Array<(number)>);
150
- type HandleBackupCloudstateError = (unknown);
151
- type HandleListDomainsResponse = (Array<{
152
- domain: string;
153
- createdAt: number;
154
- }>);
155
- type HandleListDomainsError = ({
156
- message: string;
157
- });
158
- type HandleVerifyDomainData = {
159
- body: FreestyleVerifyDomainRequest;
160
- };
161
- type HandleVerifyDomainResponse = ({
162
- domain: string;
163
- });
164
- type HandleVerifyDomainError = ({
165
- message: string;
166
- });
167
- type HandleCreateDomainVerificationData = {
168
- body: FreestyleDomainVerificationRequest;
169
- };
170
- type HandleCreateDomainVerificationResponse = ({
171
- verificationCode: string;
172
- domain: string;
173
- });
174
- type HandleCreateDomainVerificationError = ({
175
- message: string;
176
- });
177
- type HandleExecuteScriptData = {
178
- body: FreestyleExecuteScriptParams;
179
- };
180
- type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
181
- type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
182
- type HandleDeployWebData = {
183
- body: FreestyleDeployWebPayload;
184
- };
185
- type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
186
- type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
187
- type HandleGetLogsData = {
188
- path: {
189
- id: string;
190
- };
191
- };
192
- type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
193
- type HandleGetLogsError = unknown;
194
-
195
- 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, JavaScriptLog as J, HandleDeployWebResponse as K, HandleDeployWebError as L, HandleGetLogsData as M, HandleGetLogsError as N, 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 };
@@ -1,297 +0,0 @@
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 };
@@ -1,183 +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 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 };