freestyle-sandboxes 0.0.31 → 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/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 +36 -0
- package/openapi.json +1 -3016
- package/package.json +1 -1
- package/src/ai/index.ts +7 -1
- package/src/index.ts +3 -9
package/dist/ai/index.cjs
CHANGED
|
@@ -74,7 +74,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
74
74
|
return acc;
|
|
75
75
|
}, {});
|
|
76
76
|
try {
|
|
77
|
-
const res = await api.deployWeb(
|
|
77
|
+
const res = await api.deployWeb(
|
|
78
|
+
{
|
|
79
|
+
kind: "files",
|
|
80
|
+
files: new_files
|
|
81
|
+
},
|
|
82
|
+
config
|
|
83
|
+
);
|
|
78
84
|
return res;
|
|
79
85
|
} catch (e) {
|
|
80
86
|
console.log("ERROR: ", e.message);
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, c as FreestyleDeployWebSuccessResponse } from '../types.gen-
|
|
2
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, c as FreestyleDeployWebSuccessResponse } from '../types.gen-BCdfx7yt.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const executeCodeSchema: z.ZodObject<{
|
package/dist/ai/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, c as FreestyleDeployWebSuccessResponse } from '../types.gen-
|
|
2
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, c as FreestyleDeployWebSuccessResponse } from '../types.gen-BCdfx7yt.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const executeCodeSchema: z.ZodObject<{
|
package/dist/ai/index.mjs
CHANGED
|
@@ -72,7 +72,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
|
|
|
72
72
|
return acc;
|
|
73
73
|
}, {});
|
|
74
74
|
try {
|
|
75
|
-
const res = await api.deployWeb(
|
|
75
|
+
const res = await api.deployWeb(
|
|
76
|
+
{
|
|
77
|
+
kind: "files",
|
|
78
|
+
files: new_files
|
|
79
|
+
},
|
|
80
|
+
config
|
|
81
|
+
);
|
|
76
82
|
return res;
|
|
77
83
|
} catch (e) {
|
|
78
84
|
console.log("ERROR: ", e.message);
|
package/dist/index.cjs
CHANGED
|
@@ -153,10 +153,10 @@ const handleGetLogs = (options) => {
|
|
|
153
153
|
url: "/observability/v1/logs"
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
|
-
const
|
|
156
|
+
const handleDeployWebV2 = (options) => {
|
|
157
157
|
return (options?.client ?? client).post({
|
|
158
158
|
...options,
|
|
159
|
-
url: "/web/v1/
|
|
159
|
+
url: "/web/v1/deployment"
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
162
|
const handleListWebDeploys = (options) => {
|
|
@@ -219,11 +219,11 @@ ${JSON.stringify(
|
|
|
219
219
|
/**
|
|
220
220
|
* Deploy a Web project to a sandbox.
|
|
221
221
|
*/
|
|
222
|
-
async deployWeb(
|
|
223
|
-
const response = await
|
|
222
|
+
async deployWeb(source, config) {
|
|
223
|
+
const response = await handleDeployWebV2({
|
|
224
224
|
client: this.client,
|
|
225
225
|
body: {
|
|
226
|
-
|
|
226
|
+
source,
|
|
227
227
|
config
|
|
228
228
|
}
|
|
229
229
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponse, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess,
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponse, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess } from './types.gen-BCdfx7yt.js';
|
|
2
|
+
export { y as AccessTokenInfo, x as AccessibleRepository, B as Behavior, z as CreateDomainMappingRequest, E as CreateRepositoryRequest, I as DeploymentLogEntry, K as DeploymentState, M as DnsRecord, N as DnsRecordKind, O as DomainVerificationRequest, P as ExecuteLogEntry, Q as ExecuteRunInfo, R as ExecuteRunState, S as FreestyleCloudstateDeployConfiguration, T as FreestyleCloudstateDeployErrorResponse, U as FreestyleDeleteDomainVerificationRequest, V as FreestyleDeployWebErrorResponse, W as FreestyleDeployWebPayload, X as FreestyleDeployWebPayloadV2, Y as FreestyleDeployWebSuccessResponseV2, Z as FreestyleDomainVerificationRequest, _ as FreestyleExecuteScriptParams, $ as FreestyleFile, a0 as FreestyleGetLogsResponse, a1 as FreestyleJavaScriptLog, a2 as FreestyleLogResponseObject, a3 as FreestyleNetworkPermission, a5 as FreestyleVerifyDomainRequest, a6 as GitRepositoryTrigger, a9 as GitTrigger, aa as GitTriggerAction, ab as GrantPermissionRequest, al as HandleBackupCloudstateData, am as HandleBackupCloudstateError, aH as HandleCreateDomainVerificationData, aI as HandleCreateDomainVerificationError, bb as HandleCreateGitTokenData, bd as HandleCreateGitTokenError, bc as HandleCreateGitTokenResponse, br as HandleCreateGitTriggerData, bt as HandleCreateGitTriggerError, bs as HandleCreateGitTriggerResponse, aT as HandleCreateIdentityError, aS as HandleCreateIdentityResponse, aq as HandleCreateRecordData, as as HandleCreateRecordError, ar as HandleCreateRecordResponse, bj as HandleCreateRepoData, bl as HandleCreateRepoError, bk as HandleCreateRepoResponse, aC as HandleDeleteDomainMappingData, aE as HandleDeleteDomainMappingError, aD as HandleDeleteDomainMappingResponse, aJ as HandleDeleteDomainVerificationData, aK as HandleDeleteDomainVerificationError, bu as HandleDeleteGitTriggerData, bw as HandleDeleteGitTriggerError, bv as HandleDeleteGitTriggerResponse, aU as HandleDeleteIdentityData, aV as HandleDeleteIdentityError, at as HandleDeleteRecordData, av as HandleDeleteRecordError, au as HandleDeleteRecordResponse, bm as HandleDeleteRepoData, bn as HandleDeleteRepoError, ai as HandleDeployCloudstateData, ak as HandleDeployCloudstateError, aj as HandleDeployCloudstateResponse, bz as HandleDeployWebData, bB as HandleDeployWebError, bA as HandleDeployWebResponse, bC as HandleDeployWebV2Data, bE as HandleDeployWebV2Error, bD as HandleDeployWebV2Response, aZ as HandleDescribePermissionData, a$ as HandleDescribePermissionError, a_ as HandleDescribePermissionResponse, aP as HandleExecuteScriptData, aR as HandleExecuteScriptError, aQ as HandleExecuteScriptResponse, aN as HandleGetExecuteRunData, aO as HandleGetExecuteRunError, bx as HandleGetLogsData, by as HandleGetLogsError, bH as HandleGetWebDeployDetailsData, b0 as HandleGrantPermissionData, b1 as HandleGrantPermissionError, az as HandleInsertDomainMappingData, aB as HandleInsertDomainMappingError, aA as HandleInsertDomainMappingResponse, aF as HandleListDomainVerificationRequestsError, ay as HandleListDomainsError, aL as HandleListExecuteRunsData, aM as HandleListExecuteRunsError, b8 as HandleListGitTokensData, ba as HandleListGitTokensError, b9 as HandleListGitTokensResponse, bo as HandleListGitTriggersData, bq as HandleListGitTriggersError, bp as HandleListGitTriggersResponse, aW as HandleListPermissionsData, aY as HandleListPermissionsError, aX as HandleListPermissionsResponse, an as HandleListRecordsData, ap as HandleListRecordsError, ao as HandleListRecordsResponse, bh as HandleListRepositoriesData, bi as HandleListRepositoriesError, bF as HandleListWebDeploysData, bG as HandleListWebDeploysError, be as HandleRevokeGitTokenData, bg as HandleRevokeGitTokenError, bf as HandleRevokeGitTokenResponse, b2 as HandleRevokePermissionData, b4 as HandleRevokePermissionError, b3 as HandleRevokePermissionResponse, b5 as HandleUpdatePermissionData, b7 as HandleUpdatePermissionError, b6 as HandleUpdatePermissionResponse, aG as HandleVerifyDomainData, aw as HandleVerifyWildcardData, ax as HandleVerifyWildcardError, ac as ListRecordsResponse, ad as NetworkPermissionData, ae as RepositoryInfo, af as RevokeGitTokenRequest, ag as UpdatePermissionRequest, ah as Visibility, a4 as action, a8 as action2, a7 as event, J as kind } from './types.gen-BCdfx7yt.js';
|
|
3
3
|
|
|
4
4
|
declare class FreestyleSandboxes {
|
|
5
5
|
private client;
|
|
@@ -24,10 +24,7 @@ declare class FreestyleSandboxes {
|
|
|
24
24
|
/**
|
|
25
25
|
* Deploy a Web project to a sandbox.
|
|
26
26
|
*/
|
|
27
|
-
deployWeb(
|
|
28
|
-
content: string;
|
|
29
|
-
encoding?: string;
|
|
30
|
-
}>, config?: FreestyleDeployWebConfiguration): Promise<FreestyleDeployWebSuccessResponse>;
|
|
27
|
+
deployWeb(source: DeploymentSource, config?: FreestyleDeployWebConfiguration): Promise<FreestyleDeployWebSuccessResponse>;
|
|
31
28
|
/**
|
|
32
29
|
* Deploy a Cloudstate project to a sandbox.
|
|
33
30
|
*/
|
|
@@ -152,4 +149,4 @@ declare class FreestyleSandboxes {
|
|
|
152
149
|
listGitAccessTokens(identityId: string): Promise<ListGitTokensResponseSuccess>;
|
|
153
150
|
}
|
|
154
151
|
|
|
155
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponse, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
152
|
+
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponse, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponse, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess,
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponse, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess } from './types.gen-BCdfx7yt.js';
|
|
2
|
+
export { y as AccessTokenInfo, x as AccessibleRepository, B as Behavior, z as CreateDomainMappingRequest, E as CreateRepositoryRequest, I as DeploymentLogEntry, K as DeploymentState, M as DnsRecord, N as DnsRecordKind, O as DomainVerificationRequest, P as ExecuteLogEntry, Q as ExecuteRunInfo, R as ExecuteRunState, S as FreestyleCloudstateDeployConfiguration, T as FreestyleCloudstateDeployErrorResponse, U as FreestyleDeleteDomainVerificationRequest, V as FreestyleDeployWebErrorResponse, W as FreestyleDeployWebPayload, X as FreestyleDeployWebPayloadV2, Y as FreestyleDeployWebSuccessResponseV2, Z as FreestyleDomainVerificationRequest, _ as FreestyleExecuteScriptParams, $ as FreestyleFile, a0 as FreestyleGetLogsResponse, a1 as FreestyleJavaScriptLog, a2 as FreestyleLogResponseObject, a3 as FreestyleNetworkPermission, a5 as FreestyleVerifyDomainRequest, a6 as GitRepositoryTrigger, a9 as GitTrigger, aa as GitTriggerAction, ab as GrantPermissionRequest, al as HandleBackupCloudstateData, am as HandleBackupCloudstateError, aH as HandleCreateDomainVerificationData, aI as HandleCreateDomainVerificationError, bb as HandleCreateGitTokenData, bd as HandleCreateGitTokenError, bc as HandleCreateGitTokenResponse, br as HandleCreateGitTriggerData, bt as HandleCreateGitTriggerError, bs as HandleCreateGitTriggerResponse, aT as HandleCreateIdentityError, aS as HandleCreateIdentityResponse, aq as HandleCreateRecordData, as as HandleCreateRecordError, ar as HandleCreateRecordResponse, bj as HandleCreateRepoData, bl as HandleCreateRepoError, bk as HandleCreateRepoResponse, aC as HandleDeleteDomainMappingData, aE as HandleDeleteDomainMappingError, aD as HandleDeleteDomainMappingResponse, aJ as HandleDeleteDomainVerificationData, aK as HandleDeleteDomainVerificationError, bu as HandleDeleteGitTriggerData, bw as HandleDeleteGitTriggerError, bv as HandleDeleteGitTriggerResponse, aU as HandleDeleteIdentityData, aV as HandleDeleteIdentityError, at as HandleDeleteRecordData, av as HandleDeleteRecordError, au as HandleDeleteRecordResponse, bm as HandleDeleteRepoData, bn as HandleDeleteRepoError, ai as HandleDeployCloudstateData, ak as HandleDeployCloudstateError, aj as HandleDeployCloudstateResponse, bz as HandleDeployWebData, bB as HandleDeployWebError, bA as HandleDeployWebResponse, bC as HandleDeployWebV2Data, bE as HandleDeployWebV2Error, bD as HandleDeployWebV2Response, aZ as HandleDescribePermissionData, a$ as HandleDescribePermissionError, a_ as HandleDescribePermissionResponse, aP as HandleExecuteScriptData, aR as HandleExecuteScriptError, aQ as HandleExecuteScriptResponse, aN as HandleGetExecuteRunData, aO as HandleGetExecuteRunError, bx as HandleGetLogsData, by as HandleGetLogsError, bH as HandleGetWebDeployDetailsData, b0 as HandleGrantPermissionData, b1 as HandleGrantPermissionError, az as HandleInsertDomainMappingData, aB as HandleInsertDomainMappingError, aA as HandleInsertDomainMappingResponse, aF as HandleListDomainVerificationRequestsError, ay as HandleListDomainsError, aL as HandleListExecuteRunsData, aM as HandleListExecuteRunsError, b8 as HandleListGitTokensData, ba as HandleListGitTokensError, b9 as HandleListGitTokensResponse, bo as HandleListGitTriggersData, bq as HandleListGitTriggersError, bp as HandleListGitTriggersResponse, aW as HandleListPermissionsData, aY as HandleListPermissionsError, aX as HandleListPermissionsResponse, an as HandleListRecordsData, ap as HandleListRecordsError, ao as HandleListRecordsResponse, bh as HandleListRepositoriesData, bi as HandleListRepositoriesError, bF as HandleListWebDeploysData, bG as HandleListWebDeploysError, be as HandleRevokeGitTokenData, bg as HandleRevokeGitTokenError, bf as HandleRevokeGitTokenResponse, b2 as HandleRevokePermissionData, b4 as HandleRevokePermissionError, b3 as HandleRevokePermissionResponse, b5 as HandleUpdatePermissionData, b7 as HandleUpdatePermissionError, b6 as HandleUpdatePermissionResponse, aG as HandleVerifyDomainData, aw as HandleVerifyWildcardData, ax as HandleVerifyWildcardError, ac as ListRecordsResponse, ad as NetworkPermissionData, ae as RepositoryInfo, af as RevokeGitTokenRequest, ag as UpdatePermissionRequest, ah as Visibility, a4 as action, a8 as action2, a7 as event, J as kind } from './types.gen-BCdfx7yt.js';
|
|
3
3
|
|
|
4
4
|
declare class FreestyleSandboxes {
|
|
5
5
|
private client;
|
|
@@ -24,10 +24,7 @@ declare class FreestyleSandboxes {
|
|
|
24
24
|
/**
|
|
25
25
|
* Deploy a Web project to a sandbox.
|
|
26
26
|
*/
|
|
27
|
-
deployWeb(
|
|
28
|
-
content: string;
|
|
29
|
-
encoding?: string;
|
|
30
|
-
}>, config?: FreestyleDeployWebConfiguration): Promise<FreestyleDeployWebSuccessResponse>;
|
|
27
|
+
deployWeb(source: DeploymentSource, config?: FreestyleDeployWebConfiguration): Promise<FreestyleDeployWebSuccessResponse>;
|
|
31
28
|
/**
|
|
32
29
|
* Deploy a Cloudstate project to a sandbox.
|
|
33
30
|
*/
|
|
@@ -152,4 +149,4 @@ declare class FreestyleSandboxes {
|
|
|
152
149
|
listGitAccessTokens(identityId: string): Promise<ListGitTokensResponseSuccess>;
|
|
153
150
|
}
|
|
154
151
|
|
|
155
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponse, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
152
|
+
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponse, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/index.mjs
CHANGED
|
@@ -151,10 +151,10 @@ const handleGetLogs = (options) => {
|
|
|
151
151
|
url: "/observability/v1/logs"
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
|
-
const
|
|
154
|
+
const handleDeployWebV2 = (options) => {
|
|
155
155
|
return (options?.client ?? client).post({
|
|
156
156
|
...options,
|
|
157
|
-
url: "/web/v1/
|
|
157
|
+
url: "/web/v1/deployment"
|
|
158
158
|
});
|
|
159
159
|
};
|
|
160
160
|
const handleListWebDeploys = (options) => {
|
|
@@ -217,11 +217,11 @@ ${JSON.stringify(
|
|
|
217
217
|
/**
|
|
218
218
|
* Deploy a Web project to a sandbox.
|
|
219
219
|
*/
|
|
220
|
-
async deployWeb(
|
|
221
|
-
const response = await
|
|
220
|
+
async deployWeb(source, config) {
|
|
221
|
+
const response = await handleDeployWebV2({
|
|
222
222
|
client: this.client,
|
|
223
223
|
body: {
|
|
224
|
-
|
|
224
|
+
source,
|
|
225
225
|
config
|
|
226
226
|
}
|
|
227
227
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BCdfx7yt.js';
|
|
2
2
|
import { DynamicStructuredTool } from '@langchain/core/tools';
|
|
3
3
|
|
|
4
4
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BCdfx7yt.js';
|
|
2
2
|
import { DynamicStructuredTool } from '@langchain/core/tools';
|
|
3
3
|
|
|
4
4
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
package/dist/mastra/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _mastra_core_tools from '@mastra/core/tools';
|
|
2
2
|
import * as _mastra_core from '@mastra/core';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
4
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BCdfx7yt.js';
|
|
5
5
|
|
|
6
6
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
7
7
|
apiKey: string;
|
package/dist/mastra/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _mastra_core_tools from '@mastra/core/tools';
|
|
2
2
|
import * as _mastra_core from '@mastra/core';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
4
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-BCdfx7yt.js';
|
|
5
5
|
|
|
6
6
|
declare const executeTool: (config: FreestyleExecuteScriptParamsConfiguration & {
|
|
7
7
|
apiKey: string;
|