freestyle-sandboxes 0.0.84 → 0.0.85

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 (32) hide show
  1. package/dist/{index-CGc0kRd_.cjs → index-BBXyg0JQ.cjs} +5 -9
  2. package/dist/index-BQHqnjZK.mjs +3231 -0
  3. package/dist/index-CEEa9WHp.cjs +3238 -0
  4. package/dist/{index-jh-93svX.mjs → index-DCF70Xbq.mjs} +5 -9
  5. package/dist/index.cjs +2 -2
  6. package/dist/index.mjs +2 -2
  7. package/dist/types.gen-1sd31qLV.d.ts +172 -0
  8. package/dist/types.gen-627pxroW.d.ts +830 -0
  9. package/dist/types.gen-BCdfx7yt.d.ts +760 -0
  10. package/dist/{types.gen-0bQ5Wn0o.d.ts → types.gen-BVXmFV7d.d.ts} +17 -18
  11. package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
  12. package/dist/types.gen-BbekD8Sd.d.ts +1119 -0
  13. package/dist/types.gen-BqN1t03N.d.ts +842 -0
  14. package/dist/types.gen-BtK6PMQy.d.ts +195 -0
  15. package/dist/types.gen-C03gaIPq.d.ts +297 -0
  16. package/dist/{types.gen-BJArgpto.d.ts → types.gen-CIf3ciN7.d.ts} +5 -2
  17. package/dist/types.gen-CMuCas4r.d.ts +183 -0
  18. package/dist/{types.gen-DxZanGNF.d.ts → types.gen-CZUnqmzP.d.ts} +6 -9
  19. package/dist/types.gen-CnEkmbco.d.ts +314 -0
  20. package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
  21. package/dist/types.gen-DHmdEOOa.d.ts +172 -0
  22. package/dist/{types.gen-CfrGF-JI.d.ts → types.gen-DLYohMJT.d.ts} +1 -1
  23. package/dist/types.gen-DbTb_SrD.d.ts +156 -0
  24. package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
  25. package/dist/types.gen-DyY7Deri.d.ts +138 -0
  26. package/dist/types.gen-MBZCvIhE.d.ts +311 -0
  27. package/dist/types.gen-YhJAHBw8.d.ts +233 -0
  28. package/dist/types.gen-cCnnhnB6.d.ts +182 -0
  29. package/dist/types.gen-mg_JNXrq.d.ts +830 -0
  30. package/dist/types.gen-uDTr6v-7.d.ts +731 -0
  31. package/package.json +1 -1
  32. package/src/index.ts +44 -44
@@ -0,0 +1,172 @@
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 };
@@ -379,4 +379,4 @@ type HandleGetWebDeployDetailsData = {
379
379
  };
380
380
  };
381
381
 
382
- export type { HandleListExecuteRunsError as $, action as A, Behavior as B, CreateRepositoryRequest 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, NetworkPermissionData as N, HandleVerifyWildcardResponse as O, HandleVerifyWildcardError as P, HandleListDomainsError as Q, RepositoryInfo as R, HandleListDomainVerificationRequestsError as S, HandleVerifyDomainData as T, HandleVerifyDomainError as U, HandleCreateDomainVerificationData as V, HandleCreateDomainVerificationError as W, HandleDeleteDomainVerificationData as X, HandleDeleteDomainVerificationError as Y, HandleListExecuteRunsData as Z, HandleListExecuteRunsResponse as _, FreestyleExecuteScriptResultSuccess as a, HandleGetExecuteRunData as a0, HandleGetExecuteRunResponse as a1, HandleGetExecuteRunError as a2, HandleExecuteScriptData as a3, HandleExecuteScriptResponse as a4, HandleExecuteScriptError as a5, ListRepositoriesHandlerData as a6, ListRepositoriesHandlerResponse as a7, ListRepositoriesHandlerError as a8, CreateRepoHandlerData as a9, CreateRepoHandlerResponse as aa, CreateRepoHandlerError as ab, DeleteRepoHandlerData as ac, DeleteRepoHandlerResponse as ad, DeleteRepoHandlerError as ae, HandleGetLogsData as af, HandleGetLogsError as ag, HandleDeployWebData as ah, HandleDeployWebResponse as ai, HandleDeployWebError as aj, HandleListWebDeploysData as ak, HandleListWebDeploysResponse 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, HandleListDomainsResponse as i, HandleListDomainVerificationRequestsResponse as j, HandleDeleteDomainVerificationResponse as k, DeploymentState as l, ExecuteRunInfo as m, ExecuteRunState as n, FreestyleCloudstateDeployConfiguration as o, FreestyleCloudstateDeployErrorResponse as p, FreestyleDeleteDomainVerificationRequest as q, FreestyleDeployWebErrorResponse as r, FreestyleDeployWebPayload as s, FreestyleDomainVerificationRequest as t, FreestyleExecuteScriptParams as u, FreestyleFile as v, FreestyleGetLogsResponse as w, FreestyleJavaScriptLog as x, FreestyleLogResponseObject as y, FreestyleNetworkPermission as z };
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 };
@@ -0,0 +1,156 @@
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
+ domain: string;
72
+ };
73
+ type FreestyleExecureScriptResultError = {
74
+ error: string;
75
+ };
76
+ type FreestyleExecureScriptResultSuccess = {
77
+ result: unknown;
78
+ };
79
+ type FreestyleExecuteScriptParams = {
80
+ /**
81
+ * The JavaScript or TypeScript script to execute
82
+ */
83
+ script: string;
84
+ config?: FreestyleExecuteScriptParamsConfiguration;
85
+ };
86
+ type FreestyleExecuteScriptParamsConfiguration = {
87
+ /**
88
+ * The environment variables to set for the script
89
+ */
90
+ envVars?: {
91
+ [key: string]: (string);
92
+ };
93
+ /**
94
+ * The node modules to install for the script
95
+ */
96
+ nodeModules?: {
97
+ [key: string]: (string);
98
+ };
99
+ /**
100
+ * Tags for you to organize your scripts, useful for tracking what you're running
101
+ */
102
+ tags?: Array<(string)>;
103
+ /**
104
+ * The script timeout
105
+ */
106
+ timeout?: (string) | null;
107
+ };
108
+ type FreestyleFile = {
109
+ /**
110
+ * The content of the file
111
+ */
112
+ content: string;
113
+ /**
114
+ * The encoding of the file. Either **utf-8** or **base64**
115
+ */
116
+ encoding?: string;
117
+ };
118
+ type FreestyleLogResponseObject = {
119
+ message: string;
120
+ };
121
+ type FreestyleVerifyDomainRequest = {
122
+ domain: string;
123
+ };
124
+ type HandleDeployCloudstateData = {
125
+ body: FreestyleCloudstateDeployRequest;
126
+ };
127
+ type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
128
+ type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
129
+ type HandleBackupCloudstateResponse = (Array<(number)>);
130
+ type HandleBackupCloudstateError = (unknown);
131
+ type HandleVerifyDomainData = {
132
+ body: FreestyleVerifyDomainRequest;
133
+ };
134
+ type HandleVerifyDomainResponse = ({
135
+ domain: string;
136
+ });
137
+ type HandleVerifyDomainError = ({
138
+ message: string;
139
+ });
140
+ type HandleCreateDomainVerificationData = {
141
+ body: FreestyleDomainVerificationRequest;
142
+ };
143
+ type HandleExecuteScriptData = {
144
+ body: FreestyleExecuteScriptParams;
145
+ };
146
+ type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
147
+ type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
148
+ type HandleDeployWebData = {
149
+ body: FreestyleDeployWebPayload;
150
+ };
151
+ type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
152
+ type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
153
+ type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
154
+ type HandleGetLogsError = unknown;
155
+
156
+ export type { HandleExecuteScriptError as A, HandleDeployWebData as B, HandleDeployWebResponse as C, HandleDeployWebError as D, HandleGetLogsError as E, FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleVerifyDomainResponse as g, FreestyleCloudstateDeployConfiguration as h, FreestyleCloudstateDeployErrorResponse as i, FreestyleDeployWebErrorResponse as j, FreestyleDeployWebPayload as k, FreestyleDomainVerificationRequest as l, FreestyleExecureScriptResultError as m, FreestyleExecuteScriptParams as n, FreestyleFile as o, FreestyleLogResponseObject as p, FreestyleVerifyDomainRequest as q, HandleDeployCloudstateData as r, HandleDeployCloudstateResponse as s, HandleDeployCloudstateError as t, HandleBackupCloudstateError as u, HandleVerifyDomainData as v, HandleVerifyDomainError as w, HandleCreateDomainVerificationData as x, HandleExecuteScriptData as y, HandleExecuteScriptResponse as z };