freestyle-sandboxes 0.0.30 → 0.0.32
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.cjs +7 -1
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/ai/index.mjs +7 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +4 -7
- package/dist/index.d.mts +4 -7
- package/dist/index.mjs +5 -5
- 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-BCdfx7yt.d.ts +760 -0
- package/dist/types.gen-uDTr6v-7.d.ts +731 -0
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +14 -2
- package/openapi/types.gen.ts +42 -0
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/ai/index.ts +7 -1
- package/src/index.ts +3 -9
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as FreestyleDeployWebPayload, $ as FreestyleFile } from '../types.gen-BCdfx7yt.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 { W as FreestyleDeployWebPayload, $ as FreestyleFile } from '../types.gen-BCdfx7yt.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, 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';
|
|
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, HandleDeployWebV2Data, HandleDeployWebV2Error, HandleDeployWebV2Response, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
|
|
5
5
|
|
|
6
6
|
export const client = createClient(createConfig());
|
|
7
7
|
|
|
@@ -376,7 +376,8 @@ export const handleGetLogs = <ThrowOnError extends boolean = false>(options?: Op
|
|
|
376
376
|
};
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
|
-
*
|
|
379
|
+
* @deprecated
|
|
380
|
+
* Deploy a Website (v1)
|
|
380
381
|
* Deploy a website. Files is a map of file paths to file contents. Configuration is optional and contains additional information about the deployment.
|
|
381
382
|
*/
|
|
382
383
|
export const handleDeployWeb = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeployWebData, ThrowOnError>) => {
|
|
@@ -386,6 +387,17 @@ export const handleDeployWeb = <ThrowOnError extends boolean = false>(options: O
|
|
|
386
387
|
});
|
|
387
388
|
};
|
|
388
389
|
|
|
390
|
+
/**
|
|
391
|
+
* Deploy a Website (v2)
|
|
392
|
+
* Deploy a website. Files is a map of file paths to file contents. Configuration is optional and contains additional information about the deployment.
|
|
393
|
+
*/
|
|
394
|
+
export const handleDeployWebV2 = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeployWebV2Data, ThrowOnError>) => {
|
|
395
|
+
return (options?.client ?? client).post<HandleDeployWebV2Response, HandleDeployWebV2Error, ThrowOnError>({
|
|
396
|
+
...options,
|
|
397
|
+
url: '/web/v1/deployment'
|
|
398
|
+
});
|
|
399
|
+
};
|
|
400
|
+
|
|
389
401
|
/**
|
|
390
402
|
* List web deploys
|
|
391
403
|
* List web deploys.
|
package/openapi/types.gen.ts
CHANGED
|
@@ -54,6 +54,18 @@ export type DeploymentLogEntry = {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
export type DeploymentSource = {
|
|
58
|
+
files: {
|
|
59
|
+
[key: string]: FreestyleFile;
|
|
60
|
+
};
|
|
61
|
+
kind: 'files';
|
|
62
|
+
} | {
|
|
63
|
+
url: string;
|
|
64
|
+
kind: 'tar';
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type kind = 'files';
|
|
68
|
+
|
|
57
69
|
export type DeploymentState = 'provisioning' | 'deployed' | 'failed';
|
|
58
70
|
|
|
59
71
|
export type DescribePermissionResponseSuccess = {
|
|
@@ -188,6 +200,16 @@ export type FreestyleDeployWebPayload = {
|
|
|
188
200
|
config?: FreestyleDeployWebConfiguration;
|
|
189
201
|
};
|
|
190
202
|
|
|
203
|
+
export type FreestyleDeployWebPayloadV2 = {
|
|
204
|
+
/**
|
|
205
|
+
* 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\" } }
|
|
206
|
+
*
|
|
207
|
+
* **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.
|
|
208
|
+
*/
|
|
209
|
+
source: DeploymentSource;
|
|
210
|
+
config?: FreestyleDeployWebConfiguration;
|
|
211
|
+
};
|
|
212
|
+
|
|
191
213
|
export type FreestyleDeployWebSuccessResponse = {
|
|
192
214
|
deploymentId: string;
|
|
193
215
|
domains?: Array<(string)> | null;
|
|
@@ -197,6 +219,11 @@ export type FreestyleDeployWebSuccessResponse = {
|
|
|
197
219
|
projectId?: (string) | null;
|
|
198
220
|
};
|
|
199
221
|
|
|
222
|
+
export type FreestyleDeployWebSuccessResponseV2 = {
|
|
223
|
+
deploymentId: string;
|
|
224
|
+
domains?: Array<(string)> | null;
|
|
225
|
+
};
|
|
226
|
+
|
|
200
227
|
export type FreestyleDomainVerificationRequest = {
|
|
201
228
|
/**
|
|
202
229
|
* The domain to create a verification code for
|
|
@@ -238,6 +265,12 @@ export type FreestyleExecuteScriptParamsConfiguration = {
|
|
|
238
265
|
*/
|
|
239
266
|
peerDependencyResolution?: boolean;
|
|
240
267
|
networkPermissions?: Array<FreestyleNetworkPermission> | null;
|
|
268
|
+
/**
|
|
269
|
+
* These headers will be added to every fetch request made through the script
|
|
270
|
+
*/
|
|
271
|
+
customHeaders?: {
|
|
272
|
+
[key: string]: (string);
|
|
273
|
+
};
|
|
241
274
|
};
|
|
242
275
|
|
|
243
276
|
export type FreestyleExecuteScriptResultSuccess = {
|
|
@@ -568,6 +601,7 @@ export type HandleExecuteScriptResponse = ({
|
|
|
568
601
|
|
|
569
602
|
export type HandleExecuteScriptError = ({
|
|
570
603
|
error: string;
|
|
604
|
+
logs?: Array<FreestyleJavaScriptLog> | null;
|
|
571
605
|
});
|
|
572
606
|
|
|
573
607
|
export type HandleCreateIdentityResponse = (GitIdentity);
|
|
@@ -849,6 +883,14 @@ export type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
|
849
883
|
|
|
850
884
|
export type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
851
885
|
|
|
886
|
+
export type HandleDeployWebV2Data = {
|
|
887
|
+
body: FreestyleDeployWebPayloadV2;
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
export type HandleDeployWebV2Response = (FreestyleDeployWebSuccessResponseV2);
|
|
891
|
+
|
|
892
|
+
export type HandleDeployWebV2Error = (FreestyleDeployWebErrorResponse);
|
|
893
|
+
|
|
852
894
|
export type HandleListWebDeploysData = {
|
|
853
895
|
query: {
|
|
854
896
|
/**
|