freestyle-sandboxes 0.0.75 → 0.0.77
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/inde.d.cts +1 -1
- package/dist/ai/inde.d.mts +1 -1
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/inde.d.cts +32 -12
- package/dist/inde.d.mts +32 -12
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +32 -12
- package/dist/index.d.mts +32 -12
- package/dist/index.mjs +4 -2
- package/dist/langgraph/inde.d.cts +1 -1
- package/dist/langgraph/inde.d.mts +1 -1
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/inde.d.cts +1 -1
- package/dist/mastra/inde.d.mts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/types.gen-DkFlXKTr.d.ts +1354 -0
- package/dist/utils/inde.d.cts +1 -1
- package/dist/utils/inde.d.mts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +12 -1
- package/openapi/types.gen.ts +63 -4
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +35 -8
package/dist/ai/inde.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/ai/inde.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/ai/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess,
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/inde.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -79,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
79
79
|
}>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
82
108
|
type Options = {
|
|
83
109
|
/**
|
|
84
110
|
* The base URL for the API.
|
|
@@ -146,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
146
172
|
/**
|
|
147
173
|
* Create a new git repository.
|
|
148
174
|
*/
|
|
149
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
150
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
151
177
|
public?: boolean;
|
|
152
|
-
|
|
153
|
-
type: "git";
|
|
154
|
-
url: string;
|
|
155
|
-
branch?: string;
|
|
156
|
-
depth?: number;
|
|
157
|
-
};
|
|
158
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
159
179
|
/**
|
|
160
180
|
* List git repositories.
|
|
161
181
|
*/
|
|
@@ -280,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
280
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
281
301
|
}
|
|
282
302
|
|
|
283
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/inde.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -79,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
79
79
|
}>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
82
108
|
type Options = {
|
|
83
109
|
/**
|
|
84
110
|
* The base URL for the API.
|
|
@@ -146,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
146
172
|
/**
|
|
147
173
|
* Create a new git repository.
|
|
148
174
|
*/
|
|
149
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
150
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
151
177
|
public?: boolean;
|
|
152
|
-
|
|
153
|
-
type: "git";
|
|
154
|
-
url: string;
|
|
155
|
-
branch?: string;
|
|
156
|
-
depth?: number;
|
|
157
|
-
};
|
|
158
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
159
179
|
/**
|
|
160
180
|
* List git repositories.
|
|
161
181
|
*/
|
|
@@ -280,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
280
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
281
301
|
}
|
|
282
302
|
|
|
283
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/index.cjs
CHANGED
|
@@ -500,14 +500,16 @@ ${response.error.message}`);
|
|
|
500
500
|
async createGitRepository({
|
|
501
501
|
name,
|
|
502
502
|
public: pub = false,
|
|
503
|
-
source
|
|
503
|
+
source,
|
|
504
|
+
import: _import
|
|
504
505
|
}) {
|
|
505
506
|
const response = await handleCreateRepo({
|
|
506
507
|
client: this.client,
|
|
507
508
|
body: {
|
|
508
509
|
name,
|
|
509
510
|
public: pub,
|
|
510
|
-
source
|
|
511
|
+
source,
|
|
512
|
+
import: _import
|
|
511
513
|
}
|
|
512
514
|
});
|
|
513
515
|
if (response.data) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -79,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
79
79
|
}>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
82
108
|
type Options = {
|
|
83
109
|
/**
|
|
84
110
|
* The base URL for the API.
|
|
@@ -146,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
146
172
|
/**
|
|
147
173
|
* Create a new git repository.
|
|
148
174
|
*/
|
|
149
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
150
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
151
177
|
public?: boolean;
|
|
152
|
-
|
|
153
|
-
type: "git";
|
|
154
|
-
url: string;
|
|
155
|
-
branch?: string;
|
|
156
|
-
depth?: number;
|
|
157
|
-
};
|
|
158
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
159
179
|
/**
|
|
160
180
|
* List git repositories.
|
|
161
181
|
*/
|
|
@@ -280,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
280
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
281
301
|
}
|
|
282
302
|
|
|
283
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, 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, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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
|
|
2
|
-
export {
|
|
1
|
+
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, 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 CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
|
|
2
|
+
export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -79,6 +79,32 @@ interface FreestyleDevServerProcess {
|
|
|
79
79
|
}>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Create a new git repository with a single commit from a static import.
|
|
84
|
+
*/
|
|
85
|
+
type CreateGitRepositoryImport = {
|
|
86
|
+
/**
|
|
87
|
+
* Create a new git repository with a single commit from a static import.
|
|
88
|
+
*/
|
|
89
|
+
import: CreateRepoImport;
|
|
90
|
+
/**
|
|
91
|
+
* Create a git repository from another git reopsitory
|
|
92
|
+
*/
|
|
93
|
+
source?: never;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Create a git repository from another git reopsitory
|
|
97
|
+
*/
|
|
98
|
+
type CreateGitRepositorySource = {
|
|
99
|
+
/**
|
|
100
|
+
* Create a git repository from another git reopsitory
|
|
101
|
+
*/
|
|
102
|
+
source: CreateRepoSource;
|
|
103
|
+
/**
|
|
104
|
+
* Create a new git repository with a single commit from a static import.
|
|
105
|
+
*/
|
|
106
|
+
import?: never;
|
|
107
|
+
};
|
|
82
108
|
type Options = {
|
|
83
109
|
/**
|
|
84
110
|
* The base URL for the API.
|
|
@@ -146,16 +172,10 @@ declare class FreestyleSandboxes {
|
|
|
146
172
|
/**
|
|
147
173
|
* Create a new git repository.
|
|
148
174
|
*/
|
|
149
|
-
createGitRepository({ name, public: pub, source, }: {
|
|
150
|
-
name
|
|
175
|
+
createGitRepository({ name, public: pub, source, import: _import, }: {
|
|
176
|
+
name?: string;
|
|
151
177
|
public?: boolean;
|
|
152
|
-
|
|
153
|
-
type: "git";
|
|
154
|
-
url: string;
|
|
155
|
-
branch?: string;
|
|
156
|
-
depth?: number;
|
|
157
|
-
};
|
|
158
|
-
}): Promise<CreateRepositoryResponseSuccess>;
|
|
178
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
|
|
159
179
|
/**
|
|
160
180
|
* List git repositories.
|
|
161
181
|
*/
|
|
@@ -280,4 +300,4 @@ declare class FreestyleSandboxes {
|
|
|
280
300
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
281
301
|
}
|
|
282
302
|
|
|
283
|
-
export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
|
303
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
|
package/dist/index.mjs
CHANGED
|
@@ -498,14 +498,16 @@ ${response.error.message}`);
|
|
|
498
498
|
async createGitRepository({
|
|
499
499
|
name,
|
|
500
500
|
public: pub = false,
|
|
501
|
-
source
|
|
501
|
+
source,
|
|
502
|
+
import: _import
|
|
502
503
|
}) {
|
|
503
504
|
const response = await handleCreateRepo({
|
|
504
505
|
client: this.client,
|
|
505
506
|
body: {
|
|
506
507
|
name,
|
|
507
508
|
public: pub,
|
|
508
|
-
source
|
|
509
|
+
source,
|
|
510
|
+
import: _import
|
|
509
511
|
}
|
|
510
512
|
});
|
|
511
513
|
if (response.data) {
|
package/dist/mastra/inde.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
import { ServerResponse, IncomingMessage } from 'http';
|
|
7
7
|
import { WorkerOptions } from 'worker_threads';
|
|
8
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
8
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DkFlXKTr.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
// Type definitions for pino-std-serializers 2.4
|
package/dist/mastra/inde.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
import { ServerResponse, IncomingMessage } from 'http';
|
|
7
7
|
import { WorkerOptions } from 'worker_threads';
|
|
8
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
8
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DkFlXKTr.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
// Type definitions for pino-std-serializers 2.4
|
package/dist/mastra/index.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
import { ServerResponse, IncomingMessage } from 'http';
|
|
7
7
|
import { WorkerOptions } from 'worker_threads';
|
|
8
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
8
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DkFlXKTr.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
// Type definitions for pino-std-serializers 2.4
|
package/dist/mastra/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { Transform } from 'stream';
|
|
|
5
5
|
import { EventEmitter } from 'events';
|
|
6
6
|
import { ServerResponse, IncomingMessage } from 'http';
|
|
7
7
|
import { WorkerOptions } from 'worker_threads';
|
|
8
|
-
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-
|
|
8
|
+
import { F as FreestyleExecuteScriptParamsConfiguration } from '../types.gen-DkFlXKTr.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
// Type definitions for pino-std-serializers 2.4
|