freestyle-sandboxes 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/index.cjs +309 -58
- package/dist/index.d.cts +73 -8
- package/dist/index.d.mts +73 -8
- package/dist/index.mjs +309 -58
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/types.gen-BzRtj_TA.d.ts +725 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +203 -9
- package/openapi/types.gen.ts +440 -20
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +397 -91
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as FreestyleDeployWebPayload, X as FreestyleFile } from '../types.gen-BzRtj_TA.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<FreestyleDeployWebPayload["files"]>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => {
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as FreestyleDeployWebPayload, X as FreestyleFile } from '../types.gen-BzRtj_TA.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<FreestyleDeployWebPayload["files"]>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => {
|
package/openapi/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch';
|
|
4
|
-
import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsError, HandleListDomainsResponse, HandleListDomainVerificationRequestsError, HandleListDomainVerificationRequestsResponse, HandleVerifyDomainData, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleCreateDomainVerificationData, HandleCreateDomainVerificationError, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationData, HandleDeleteDomainVerificationError, HandleDeleteDomainVerificationResponse, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse,
|
|
4
|
+
import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleListRecordsData, HandleListRecordsError, HandleListRecordsResponse, HandleCreateRecordData, HandleCreateRecordError, HandleCreateRecordResponse, HandleDeleteRecordData, HandleDeleteRecordError, HandleDeleteRecordResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsError, HandleListDomainsResponse, HandleInsertDomainMappingData, HandleInsertDomainMappingError, HandleInsertDomainMappingResponse, HandleDeleteDomainMappingData, HandleDeleteDomainMappingError, HandleDeleteDomainMappingResponse, HandleListDomainVerificationRequestsError, HandleListDomainVerificationRequestsResponse, HandleVerifyDomainData, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleCreateDomainVerificationData, HandleCreateDomainVerificationError, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationData, HandleDeleteDomainVerificationError, HandleDeleteDomainVerificationResponse, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse, HandleCreateIdentityError, HandleCreateIdentityResponse, HandleDeleteIdentityData, HandleDeleteIdentityError, HandleDeleteIdentityResponse, HandleListPermissionsData, HandleListPermissionsError, HandleListPermissionsResponse, HandleDescribePermissionData, HandleDescribePermissionError, HandleDescribePermissionResponse, HandleGrantPermissionData, HandleGrantPermissionError, HandleGrantPermissionResponse, HandleRevokePermissionData, HandleRevokePermissionError, HandleRevokePermissionResponse, HandleUpdatePermissionData, HandleUpdatePermissionError, HandleUpdatePermissionResponse, HandleListGitTokensData, HandleListGitTokensError, HandleListGitTokensResponse, HandleCreateGitTokenData, HandleCreateGitTokenError, HandleCreateGitTokenResponse, HandleRevokeGitTokenData, HandleRevokeGitTokenError, HandleRevokeGitTokenResponse, HandleListRepositoriesData, HandleListRepositoriesError, HandleListRepositoriesResponse, HandleCreateRepoData, HandleCreateRepoError, HandleCreateRepoResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleDeployWebData, HandleDeployWebError, HandleDeployWebResponse, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -27,6 +27,36 @@ export const handleBackupCloudstate = <ThrowOnError extends boolean = false>(opt
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* List DNS Records
|
|
32
|
+
*/
|
|
33
|
+
export const handleListRecords = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleListRecordsData, ThrowOnError>) => {
|
|
34
|
+
return (options?.client ?? client).get<HandleListRecordsResponse, HandleListRecordsError, ThrowOnError>({
|
|
35
|
+
...options,
|
|
36
|
+
url: '/dns/v1/records'
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Create DNS Record
|
|
42
|
+
*/
|
|
43
|
+
export const handleCreateRecord = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleCreateRecordData, ThrowOnError>) => {
|
|
44
|
+
return (options?.client ?? client).post<HandleCreateRecordResponse, HandleCreateRecordError, ThrowOnError>({
|
|
45
|
+
...options,
|
|
46
|
+
url: '/dns/v1/records'
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Delete DNS Record
|
|
52
|
+
*/
|
|
53
|
+
export const handleDeleteRecord = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteRecordData, ThrowOnError>) => {
|
|
54
|
+
return (options?.client ?? client).delete<HandleDeleteRecordResponse, HandleDeleteRecordError, ThrowOnError>({
|
|
55
|
+
...options,
|
|
56
|
+
url: '/dns/v1/records'
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
|
|
30
60
|
/**
|
|
31
61
|
* Provision a wildcard certificate
|
|
32
62
|
* Provisions a wildcard certificate for a verified domain
|
|
@@ -36,7 +66,7 @@ export const handleBackupCloudstate = <ThrowOnError extends boolean = false>(opt
|
|
|
36
66
|
*
|
|
37
67
|
* `_acme-challenge.yourdomain.com` NS `dns.freestyle.sh`
|
|
38
68
|
*/
|
|
39
|
-
export const handleVerifyWildcard = <ThrowOnError extends boolean = false>(options
|
|
69
|
+
export const handleVerifyWildcard = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleVerifyWildcardData, ThrowOnError>) => {
|
|
40
70
|
return (options?.client ?? client).post<HandleVerifyWildcardResponse, HandleVerifyWildcardError, ThrowOnError>({
|
|
41
71
|
...options,
|
|
42
72
|
url: '/domains/v1/certs/{domain}/wildcard'
|
|
@@ -54,6 +84,27 @@ export const handleListDomains = <ThrowOnError extends boolean = false>(options?
|
|
|
54
84
|
});
|
|
55
85
|
};
|
|
56
86
|
|
|
87
|
+
/**
|
|
88
|
+
* Insert Domain Mapping
|
|
89
|
+
* This will unmap any other deployment to this domain
|
|
90
|
+
*/
|
|
91
|
+
export const handleInsertDomainMapping = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleInsertDomainMappingData, ThrowOnError>) => {
|
|
92
|
+
return (options?.client ?? client).post<HandleInsertDomainMappingResponse, HandleInsertDomainMappingError, ThrowOnError>({
|
|
93
|
+
...options,
|
|
94
|
+
url: '/domains/v1/mappings/{domain}'
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Remove Domain Mapping
|
|
100
|
+
*/
|
|
101
|
+
export const handleDeleteDomainMapping = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteDomainMappingData, ThrowOnError>) => {
|
|
102
|
+
return (options?.client ?? client).delete<HandleDeleteDomainMappingResponse, HandleDeleteDomainMappingError, ThrowOnError>({
|
|
103
|
+
...options,
|
|
104
|
+
url: '/domains/v1/mappings/{domain}'
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
57
108
|
/**
|
|
58
109
|
* List domain verification requests for an account
|
|
59
110
|
* Lists domain verification requests for the current account.
|
|
@@ -66,7 +117,7 @@ export const handleListDomainVerificationRequests = <ThrowOnError extends boolea
|
|
|
66
117
|
};
|
|
67
118
|
|
|
68
119
|
/**
|
|
69
|
-
* Verify a domain
|
|
120
|
+
* Verify a domain verification request
|
|
70
121
|
* This checks a pre-existing verification request for a domain. To create a verification request, call the [create domain verification](/#tag/domains/POST/domains/v1/verifications) endpoint. This endpoint will check if the domain has a TXT record with the verification code. If it does, the domain will be verified.
|
|
71
122
|
*/
|
|
72
123
|
export const handleVerifyDomain = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleVerifyDomainData, ThrowOnError>) => {
|
|
@@ -131,12 +182,122 @@ export const handleExecuteScript = <ThrowOnError extends boolean = false>(option
|
|
|
131
182
|
});
|
|
132
183
|
};
|
|
133
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Create a Git identity
|
|
187
|
+
* Create a Git identity. This identity will be used to authenticate with the Git server.
|
|
188
|
+
*/
|
|
189
|
+
export const handleCreateIdentity = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => {
|
|
190
|
+
return (options?.client ?? client).post<HandleCreateIdentityResponse, HandleCreateIdentityError, ThrowOnError>({
|
|
191
|
+
...options,
|
|
192
|
+
url: '/git/v1/identity'
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Delete a Git identity
|
|
198
|
+
* Delete a Git identity. This will revoke all permissions granted to this identity.
|
|
199
|
+
*/
|
|
200
|
+
export const handleDeleteIdentity = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteIdentityData, ThrowOnError>) => {
|
|
201
|
+
return (options?.client ?? client).delete<HandleDeleteIdentityResponse, HandleDeleteIdentityError, ThrowOnError>({
|
|
202
|
+
...options,
|
|
203
|
+
url: '/git/v1/identity/{identity}'
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* List repository permissions for an identity
|
|
209
|
+
* List repository permissions for an identity. This will return a list of repositories that the identity has access to.
|
|
210
|
+
*/
|
|
211
|
+
export const handleListPermissions = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleListPermissionsData, ThrowOnError>) => {
|
|
212
|
+
return (options?.client ?? client).get<HandleListPermissionsResponse, HandleListPermissionsError, ThrowOnError>({
|
|
213
|
+
...options,
|
|
214
|
+
url: '/git/v1/identity/{identity}/permissions'
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Get the permission of an identity on a repository
|
|
220
|
+
* Get the permission of an identity on a repository. This will return the access level of the identity on the repository.
|
|
221
|
+
*/
|
|
222
|
+
export const handleDescribePermission = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDescribePermissionData, ThrowOnError>) => {
|
|
223
|
+
return (options?.client ?? client).get<HandleDescribePermissionResponse, HandleDescribePermissionError, ThrowOnError>({
|
|
224
|
+
...options,
|
|
225
|
+
url: '/git/v1/identity/{identity}/permissions/{repo}'
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Grant a permission to a Git identity
|
|
231
|
+
* Grant a permission to a Git identity on a repository
|
|
232
|
+
*/
|
|
233
|
+
export const handleGrantPermission = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGrantPermissionData, ThrowOnError>) => {
|
|
234
|
+
return (options?.client ?? client).post<HandleGrantPermissionResponse, HandleGrantPermissionError, ThrowOnError>({
|
|
235
|
+
...options,
|
|
236
|
+
url: '/git/v1/identity/{identity}/permissions/{repo}'
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Revoke permissions from a Git identity
|
|
242
|
+
* Revoke a permission to a Git identity on a repository
|
|
243
|
+
*/
|
|
244
|
+
export const handleRevokePermission = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleRevokePermissionData, ThrowOnError>) => {
|
|
245
|
+
return (options?.client ?? client).delete<HandleRevokePermissionResponse, HandleRevokePermissionError, ThrowOnError>({
|
|
246
|
+
...options,
|
|
247
|
+
url: '/git/v1/identity/{identity}/permissions/{repo}'
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Update a permission for a Git identity
|
|
253
|
+
* Update a permission for a Git identity on a repository
|
|
254
|
+
*/
|
|
255
|
+
export const handleUpdatePermission = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleUpdatePermissionData, ThrowOnError>) => {
|
|
256
|
+
return (options?.client ?? client).patch<HandleUpdatePermissionResponse, HandleUpdatePermissionError, ThrowOnError>({
|
|
257
|
+
...options,
|
|
258
|
+
url: '/git/v1/identity/{identity}/permissions/{repo}'
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* List access tokens for a Git identity
|
|
264
|
+
* List access tokens for a Git identity
|
|
265
|
+
*/
|
|
266
|
+
export const handleListGitTokens = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleListGitTokensData, ThrowOnError>) => {
|
|
267
|
+
return (options?.client ?? client).get<HandleListGitTokensResponse, HandleListGitTokensError, ThrowOnError>({
|
|
268
|
+
...options,
|
|
269
|
+
url: '/git/v1/identity/{identity}/tokens'
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Create an access token for a Git identity
|
|
275
|
+
* Create an access token for a Git identity
|
|
276
|
+
*/
|
|
277
|
+
export const handleCreateGitToken = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleCreateGitTokenData, ThrowOnError>) => {
|
|
278
|
+
return (options?.client ?? client).post<HandleCreateGitTokenResponse, HandleCreateGitTokenError, ThrowOnError>({
|
|
279
|
+
...options,
|
|
280
|
+
url: '/git/v1/identity/{identity}/tokens'
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Revoke an access token for a Git identity
|
|
286
|
+
* Revoke an access token for a Git identity
|
|
287
|
+
*/
|
|
288
|
+
export const handleRevokeGitToken = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleRevokeGitTokenData, ThrowOnError>) => {
|
|
289
|
+
return (options?.client ?? client).delete<HandleRevokeGitTokenResponse, HandleRevokeGitTokenError, ThrowOnError>({
|
|
290
|
+
...options,
|
|
291
|
+
url: '/git/v1/identity/{identity}/tokens'
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
|
|
134
295
|
/**
|
|
135
296
|
* List repositories
|
|
136
297
|
* List repositories.
|
|
137
298
|
*/
|
|
138
|
-
export const
|
|
139
|
-
return (options?.client ?? client).get<
|
|
299
|
+
export const handleListRepositories = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleListRepositoriesData, ThrowOnError>) => {
|
|
300
|
+
return (options?.client ?? client).get<HandleListRepositoriesResponse, HandleListRepositoriesError, ThrowOnError>({
|
|
140
301
|
...options,
|
|
141
302
|
url: '/git/v1/repo'
|
|
142
303
|
});
|
|
@@ -152,8 +313,8 @@ export const listRepositoriesHandler = <ThrowOnError extends boolean = false>(op
|
|
|
152
313
|
* The repo will be available at `git.freestyle.sh/{repo-id}`
|
|
153
314
|
*
|
|
154
315
|
*/
|
|
155
|
-
export const
|
|
156
|
-
return (options?.client ?? client).post<
|
|
316
|
+
export const handleCreateRepo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleCreateRepoData, ThrowOnError>) => {
|
|
317
|
+
return (options?.client ?? client).post<HandleCreateRepoResponse, HandleCreateRepoError, ThrowOnError>({
|
|
157
318
|
...options,
|
|
158
319
|
url: '/git/v1/repo'
|
|
159
320
|
});
|
|
@@ -163,13 +324,46 @@ export const createRepoHandler = <ThrowOnError extends boolean = false>(options:
|
|
|
163
324
|
* Delete a repository
|
|
164
325
|
* Delete a repository. This is irreversible, and will also delete the repository on the Git server.
|
|
165
326
|
*/
|
|
166
|
-
export const
|
|
167
|
-
return (options?.client ?? client).delete<
|
|
327
|
+
export const handleDeleteRepo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteRepoData, ThrowOnError>) => {
|
|
328
|
+
return (options?.client ?? client).delete<HandleDeleteRepoResponse, HandleDeleteRepoError, ThrowOnError>({
|
|
168
329
|
...options,
|
|
169
330
|
url: '/git/v1/repo/{repo}'
|
|
170
331
|
});
|
|
171
332
|
};
|
|
172
333
|
|
|
334
|
+
/**
|
|
335
|
+
* List git triggers for a repository
|
|
336
|
+
* List git triggers for the given repository.
|
|
337
|
+
*/
|
|
338
|
+
export const handleListGitTriggers = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleListGitTriggersData, ThrowOnError>) => {
|
|
339
|
+
return (options?.client ?? client).get<HandleListGitTriggersResponse, HandleListGitTriggersError, ThrowOnError>({
|
|
340
|
+
...options,
|
|
341
|
+
url: '/git/v1/repo/{repo}/trigger'
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Create a git trigger
|
|
347
|
+
* Create a git trigger for the given repository.
|
|
348
|
+
*/
|
|
349
|
+
export const handleCreateGitTrigger = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleCreateGitTriggerData, ThrowOnError>) => {
|
|
350
|
+
return (options?.client ?? client).post<HandleCreateGitTriggerResponse, HandleCreateGitTriggerError, ThrowOnError>({
|
|
351
|
+
...options,
|
|
352
|
+
url: '/git/v1/repo/{repo}/trigger'
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Delete a git trigger
|
|
358
|
+
* Delete a git trigger. This is irreversible.
|
|
359
|
+
*/
|
|
360
|
+
export const handleDeleteGitTrigger = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteGitTriggerData, ThrowOnError>) => {
|
|
361
|
+
return (options?.client ?? client).delete<HandleDeleteGitTriggerResponse, HandleDeleteGitTriggerError, ThrowOnError>({
|
|
362
|
+
...options,
|
|
363
|
+
url: '/git/v1/repo/{repo}/trigger/{trigger}'
|
|
364
|
+
});
|
|
365
|
+
};
|
|
366
|
+
|
|
173
367
|
/**
|
|
174
368
|
* Deployment Logs
|
|
175
369
|
* Get the logs for a deployment
|