freestyle-sandboxes 0.0.93 → 0.0.95
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 +16 -6
- package/dist/inde.d.mts +16 -6
- package/dist/index.cjs +19 -8
- package/dist/index.d.cts +16 -6
- package/dist/index.d.mts +16 -6
- package/dist/index.mjs +19 -8
- 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-CG8tIO9M.d.ts → types.gen-DKjMRuu5.d.ts} +448 -43
- 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 +234 -1
- package/openapi/types.gen.ts +389 -19
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -1
- package/dist/index-BBXyg0JQ.cjs +0 -3253
- package/dist/index-BQHqnjZK.mjs +0 -3231
- package/dist/index-CEEa9WHp.cjs +0 -3238
- package/dist/index-D1ulQeJR.mjs +0 -3247
- package/dist/index-DCF70Xbq.mjs +0 -3246
- package/dist/index-H7UNEAjs.cjs +0 -3254
- package/dist/index.d-CXx1AdyW.d.ts +0 -4210
- package/dist/types.gen-1sd31qLV.d.ts +0 -172
- package/dist/types.gen-627pxroW.d.ts +0 -830
- package/dist/types.gen-BCdfx7yt.d.ts +0 -760
- package/dist/types.gen-BVXmFV7d.d.ts +0 -1299
- package/dist/types.gen-BWwhCgTX.d.ts +0 -1462
- package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
- package/dist/types.gen-BbekD8Sd.d.ts +0 -1119
- package/dist/types.gen-BpWMzgc3.d.ts +0 -1493
- package/dist/types.gen-BqN1t03N.d.ts +0 -842
- package/dist/types.gen-BtK6PMQy.d.ts +0 -195
- package/dist/types.gen-BuhQ5LpB.d.ts +0 -764
- package/dist/types.gen-BzRtj_TA.d.ts +0 -725
- package/dist/types.gen-C03gaIPq.d.ts +0 -297
- package/dist/types.gen-CIf3ciN7.d.ts +0 -807
- package/dist/types.gen-CMuCas4r.d.ts +0 -183
- package/dist/types.gen-CWa4Mw0J.d.ts +0 -1493
- package/dist/types.gen-CZUnqmzP.d.ts +0 -789
- package/dist/types.gen-CnEkmbco.d.ts +0 -314
- package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
- package/dist/types.gen-DHmdEOOa.d.ts +0 -172
- package/dist/types.gen-DLYohMJT.d.ts +0 -382
- package/dist/types.gen-DbTb_SrD.d.ts +0 -156
- package/dist/types.gen-DkFlXKTr.d.ts +0 -1354
- package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
- package/dist/types.gen-DyY7Deri.d.ts +0 -138
- package/dist/types.gen-MBZCvIhE.d.ts +0 -311
- package/dist/types.gen-YhJAHBw8.d.ts +0 -233
- package/dist/types.gen-cCnnhnB6.d.ts +0 -182
- package/dist/types.gen-mg_JNXrq.d.ts +0 -830
- package/dist/types.gen-uDTr6v-7.d.ts +0 -731
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, cp as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DKjMRuu5.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, cp as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DKjMRuu5.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, cp as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DKjMRuu5.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, cp as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DKjMRuu5.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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, C as CreateRepoSource,
|
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, t as DevServerConfiguration, C as CreateRepoSource, u as CreateRepoImport, v as CreateRepositoryResponseSuccess, w as HandleListRepositoriesResponse, x as HandleDeleteRepoResponse, G as GitIdentity, y as HandleDeleteIdentityResponse, A as AccessLevel, z as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, B as DescribePermissionResponseSuccess, E as CreatedToken, I as ListGitTokensResponseSuccess, J as HandleListGitTriggersResponse, K as GitTrigger, M as GitTriggerAction, N as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, O as HandleGetContentsResponse, P as GetGithubSyncResponse } from './types.gen-DKjMRuu5.js';
|
|
2
|
+
export { U as AccessTokenInfo, T as AccessibleRepository, V as Behavior, W as BlobEncoding, X as BlobObject, Y as BranchDetails, Z as CommitList, _ as CommitObject, $ as CommitParent, a0 as CommitTree, de as ConfigureGithubSyncData, dg as ConfigureGithubSyncError, a1 as ConfigureGithubSyncRequest, df as ConfigureGithubSyncResponse, a2 as CreateDomainMappingRequest, a3 as CreateRecordParams, a4 as CreateRecordResponse, a6 as CreateRepoRequest, a7 as CreateRepositoryRequest, e0 as CreateVmData, a8 as CreateVmRequest, a9 as CustomBuildOptions, d9 as DeleteDevServerConfigurationData, db as DeleteDevServerConfigurationError, da as DeleteDevServerConfigurationResponse, aa as DeleteRecordResponse, e3 as DeleteVmData, Q as DeploymentBuildOptions, ab as DeploymentLogEntry, ad as DeploymentState, ae as DevServer, ag as DevServerLogsRequest, ah as DevServerPreset, ai as DevServerRequest, aj as DevServerRestartRequest, ak as DevServerStatusRequest, al as DevServerWatchFilesRequest, am as DnsRecord, an as DnsRecordData, ao as DnsRecordKind, ap as DomainVerificationRequest, e5 as ExecAwaitData, aq as ExecAwaitRequest, ar as ExecRequest, as as ExecuteLogEntry, at as ExecuteRunInfo, au as ExecuteRunState, av as FileReadContent, e8 as ForkVmData, ax as ForkVmRequest, ay as FreestyleCloudstateDeployConfiguration, az as FreestyleCloudstateDeployErrorResponse, aA as FreestyleDeleteDomainVerificationRequest, aB as FreestyleDeployWebErrorResponse, aC as FreestyleDeployWebPayload, aD as FreestyleDeployWebPayloadV2, aE as FreestyleDomainVerificationRequest, aF as FreestyleExecuteScriptParams, aG as FreestyleFile, aH as FreestyleGetLogsResponse, aI as FreestyleJavaScriptLog, aJ as FreestyleLogResponseObject, aK as FreestyleNetworkPermission, aM as FreestyleSandboxDomainMapping, aN as FreestyleVerifyDomainRequest, aO as GetDefaultBranchResponse, d3 as GetDevServerConfigurationData, d5 as GetDevServerConfigurationError, d4 as GetDevServerConfigurationResponse, e6 as GetFileData, dc as GetGithubSyncData, dd as GetGithubSyncError, ee as GetTerminalLogsData, ef as GetTerminalXtermData, e2 as GetVmData, aP as GitCommitPushRequest, aQ as GitContents, aS as GitContentsDirEntryItem, aV as GitReference, aW as GitRepositoryTrigger, aT as GithubRepoSyncConfig, aU as GithubSyncConfigResponse, aZ as GrantPermissionRequest, br as HandleBackupCloudstateData, bs as HandleBackupCloudstateError, bN as HandleCreateDomainVerificationData, bO as HandleCreateDomainVerificationError, cO as HandleCreateGitTokenData, cQ as HandleCreateGitTokenError, cP as HandleCreateGitTokenResponse, dS as HandleCreateGitTriggerData, dT as HandleCreateGitTriggerError, cu as HandleCreateIdentityError, ct as HandleCreateIdentityResponse, bw as HandleCreateRecordData, by as HandleCreateRecordError, bx as HandleCreateRecordResponse, cW as HandleCreateRepoData, cY as HandleCreateRepoError, cX as HandleCreateRepoResponse, bJ as HandleDeleteDomainMappingData, bK as HandleDeleteDomainMappingError, bP as HandleDeleteDomainVerificationData, bQ as HandleDeleteDomainVerificationError, dU as HandleDeleteGitTriggerData, dW as HandleDeleteGitTriggerError, dV as HandleDeleteGitTriggerResponse, cv as HandleDeleteIdentityData, cw as HandleDeleteIdentityError, bz as HandleDeleteRecordData, bB as HandleDeleteRecordError, bA as HandleDeleteRecordResponse, dn as HandleDeleteRepoData, dp as HandleDeleteRepoError, bo as HandleDeployCloudstateData, bq as HandleDeployCloudstateError, bp as HandleDeployCloudstateResponse, eh as HandleDeployWebData, ej as HandleDeployWebError, ei as HandleDeployWebResponse, ek as HandleDeployWebV2Data, em as HandleDeployWebV2Error, el as HandleDeployWebV2Response, cA as HandleDescribePermissionData, cC as HandleDescribePermissionError, cB as HandleDescribePermissionResponse, c4 as HandleDevServerLogsData, c6 as HandleDevServerLogsError, c5 as HandleDevServerLogsResponse, c7 as HandleDevServerRestartData, c9 as HandleDevServerRestartError, c8 as HandleDevServerRestartResponse, cd as HandleDevServerStatusData, cf as HandleDevServerStatusError, ce as HandleDevServerStatusResponse, dN as HandleDownloadTarballData, dP as HandleDownloadTarballError, dO as HandleDownloadTarballResponse, dX as HandleDownloadZipData, dZ as HandleDownloadZipError, dY as HandleDownloadZipResponse, bR as HandleEphemeralDevServerData, bT as HandleEphemeralDevServerError, bS as HandleEphemeralDevServerResponse, bU as HandleExecOnEphemeralDevServerData, bW as HandleExecOnEphemeralDevServerError, bV as HandleExecOnEphemeralDevServerResponse, cn as HandleExecuteScriptData, cp as HandleExecuteScriptError, co as HandleExecuteScriptResponse, ds as HandleGetBlobData, du as HandleGetBlobError, dt as HandleGetBlobResponse, dy as HandleGetCommitData, dA as HandleGetCommitError, dz as HandleGetCommitResponse, dq as HandleGetContentsData, dr as HandleGetContentsError, cZ as HandleGetDefaultBranchData, c$ as HandleGetDefaultBranchError, c_ as HandleGetDefaultBranchResponse, cl as HandleGetExecuteRunData, cm as HandleGetExecuteRunError, d_ as HandleGetLogsData, d$ as HandleGetLogsError, dB as HandleGetRefBranchData, dD as HandleGetRefBranchError, dC as HandleGetRefBranchResponse, dE as HandleGetRefTagData, dG as HandleGetRefTagError, dF as HandleGetRefTagResponse, dk as HandleGetRepoInfoData, dm as HandleGetRepoInfoError, dl as HandleGetRepoInfoResponse, dH as HandleGetTagData, dJ as HandleGetTagError, dI as HandleGetTagResponse, dK as HandleGetTreeData, dM as HandleGetTreeError, dL as HandleGetTreeResponse, ep as HandleGetWebDeployDetailsData, c1 as HandleGitCommitPushData, c3 as HandleGitCommitPushError, c2 as HandleGitCommitPushResponse, cD as HandleGrantPermissionData, cE as HandleGrantPermissionError, bH as HandleInsertDomainMappingData, bI as HandleInsertDomainMappingError, dv as HandleListCommitsData, dx as HandleListCommitsError, dw as HandleListCommitsResponse, R as HandleListDomainMappingsData, bG as HandleListDomainMappingsError, bL as HandleListDomainVerificationRequestsError, bE as HandleListDomainsData, bF as HandleListDomainsError, cj as HandleListExecuteRunsData, ck as HandleListExecuteRunsError, cL as HandleListGitTokensData, cN as HandleListGitTokensError, cM as HandleListGitTokensResponse, dQ as HandleListGitTriggersData, dR as HandleListGitTriggersError, cq as HandleListIdentitiesData, cs as HandleListIdentitiesError, cr as HandleListIdentitiesResponse, cx as HandleListPermissionsData, cz as HandleListPermissionsError, cy as HandleListPermissionsResponse, bt as HandleListRecordsData, bv as HandleListRecordsError, bu as HandleListRecordsResponse, cU as HandleListRepositoriesData, cV as HandleListRepositoriesError, en as HandleListWebDeploysData, eo as HandleListWebDeploysError, b_ as HandleReadFileFromEphemeralDevServerData, c0 as HandleReadFileFromEphemeralDevServerError, b$ as HandleReadFileFromEphemeralDevServerResponse, cR as HandleRevokeGitTokenData, cT as HandleRevokeGitTokenError, cS as HandleRevokeGitTokenResponse, cF as HandleRevokePermissionData, cH as HandleRevokePermissionError, cG as HandleRevokePermissionResponse, d0 as HandleSetDefaultBranchData, d2 as HandleSetDefaultBranchError, d1 as HandleSetDefaultBranchResponse, ca as HandleShutdownDevServerData, cc as HandleShutdownDevServerError, cb as HandleShutdownDevServerResponse, cI as HandleUpdatePermissionData, cK as HandleUpdatePermissionError, cJ as HandleUpdatePermissionResponse, bM as HandleVerifyDomainData, bC as HandleVerifyWildcardData, bD as HandleVerifyWildcardError, cg as HandleWatchDevServerFilesData, ci as HandleWatchDevServerFilesError, ch as HandleWatchDevServerFilesResponse, bX as HandleWriteFileFromEphemeralDevServerData, bZ as HandleWriteFileFromEphemeralDevServerError, bY as HandleWriteFileFromEphemeralDevServerResponse, a_ as InternalServerError, a$ as ListRecordsResponse, ed as ListTerminalsData, b0 as NetworkPermissionData, e9 as OptimizeVmData, b1 as PortConfig, b2 as PortMapping, e7 as PutFileData, b3 as ReadFileEphemeralDevServerResponses, dh as RemoveGithubSyncData, dj as RemoveGithubSyncError, di as RemoveGithubSyncResponse, b4 as RepositoryInfoRaw, b5 as RepositoryMetadata, e1 as ResizeVmData, b6 as ResizeVmRequest, b7 as RevokeGitTokenRequest, b8 as SetDefaultBranchResponse, b9 as ShutdownDevServerRequest, ba as Signature, ea as StartVmData, bb as StartVmRequest, eb as StopVmData, ec as SuspendVmData, bc as TagDetails, bd as TagObject, be as TagTarget, bf as TreeEntry, bh as TreeObject, bi as UpdateDevServerConfigRequest, d6 as UpdateDevServerConfigurationData, d8 as UpdateDevServerConfigurationError, d7 as UpdateDevServerConfigurationResponse, bj as UpdatePermissionRequest, bk as Visibility, bl as VmPersistence, e4 as WaitVmData, eg as WatchFilesData, bn as WriteFileRequest, aL as action, aY as action2, aX as event, ac as kind, af as kind2, aw as kind3, a5 as type, aR as type2, bg as type3, bm as type4 } from './types.gen-DKjMRuu5.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -192,11 +192,15 @@ declare class FreestyleSandboxes {
|
|
|
192
192
|
/**
|
|
193
193
|
* Create a new git repository.
|
|
194
194
|
*/
|
|
195
|
-
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, }: {
|
|
195
|
+
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, devServers, }: {
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
|
|
199
|
+
devServers?: DevServerConfiguration;
|
|
200
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
201
|
+
source: never;
|
|
202
|
+
import: never;
|
|
203
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
204
|
/**
|
|
201
205
|
* List git repositories.
|
|
202
206
|
*/
|
|
@@ -292,8 +296,9 @@ declare class FreestyleSandboxes {
|
|
|
292
296
|
/**
|
|
293
297
|
* Delete a git trigger.
|
|
294
298
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
299
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
300
|
triggerId: string;
|
|
301
|
+
repo: string;
|
|
297
302
|
}): Promise<void>;
|
|
298
303
|
/**
|
|
299
304
|
* Set the default branch for a git repository.
|
|
@@ -356,8 +361,13 @@ declare class FreestyleSandboxes {
|
|
|
356
361
|
envVars?: Record<string, string>;
|
|
357
362
|
computeClass?: string;
|
|
358
363
|
timeout?: number;
|
|
364
|
+
gitRef?: string;
|
|
365
|
+
ports?: {
|
|
366
|
+
port: number;
|
|
367
|
+
targetPort: number;
|
|
368
|
+
}[];
|
|
359
369
|
}): Promise<FreestyleDevServer>;
|
|
360
370
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
371
|
}
|
|
362
372
|
|
|
363
|
-
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
373
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, DevServerConfiguration, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, C as CreateRepoSource,
|
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, t as DevServerConfiguration, C as CreateRepoSource, u as CreateRepoImport, v as CreateRepositoryResponseSuccess, w as HandleListRepositoriesResponse, x as HandleDeleteRepoResponse, G as GitIdentity, y as HandleDeleteIdentityResponse, A as AccessLevel, z as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, B as DescribePermissionResponseSuccess, E as CreatedToken, I as ListGitTokensResponseSuccess, J as HandleListGitTriggersResponse, K as GitTrigger, M as GitTriggerAction, N as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, O as HandleGetContentsResponse, P as GetGithubSyncResponse } from './types.gen-DKjMRuu5.js';
|
|
2
|
+
export { U as AccessTokenInfo, T as AccessibleRepository, V as Behavior, W as BlobEncoding, X as BlobObject, Y as BranchDetails, Z as CommitList, _ as CommitObject, $ as CommitParent, a0 as CommitTree, de as ConfigureGithubSyncData, dg as ConfigureGithubSyncError, a1 as ConfigureGithubSyncRequest, df as ConfigureGithubSyncResponse, a2 as CreateDomainMappingRequest, a3 as CreateRecordParams, a4 as CreateRecordResponse, a6 as CreateRepoRequest, a7 as CreateRepositoryRequest, e0 as CreateVmData, a8 as CreateVmRequest, a9 as CustomBuildOptions, d9 as DeleteDevServerConfigurationData, db as DeleteDevServerConfigurationError, da as DeleteDevServerConfigurationResponse, aa as DeleteRecordResponse, e3 as DeleteVmData, Q as DeploymentBuildOptions, ab as DeploymentLogEntry, ad as DeploymentState, ae as DevServer, ag as DevServerLogsRequest, ah as DevServerPreset, ai as DevServerRequest, aj as DevServerRestartRequest, ak as DevServerStatusRequest, al as DevServerWatchFilesRequest, am as DnsRecord, an as DnsRecordData, ao as DnsRecordKind, ap as DomainVerificationRequest, e5 as ExecAwaitData, aq as ExecAwaitRequest, ar as ExecRequest, as as ExecuteLogEntry, at as ExecuteRunInfo, au as ExecuteRunState, av as FileReadContent, e8 as ForkVmData, ax as ForkVmRequest, ay as FreestyleCloudstateDeployConfiguration, az as FreestyleCloudstateDeployErrorResponse, aA as FreestyleDeleteDomainVerificationRequest, aB as FreestyleDeployWebErrorResponse, aC as FreestyleDeployWebPayload, aD as FreestyleDeployWebPayloadV2, aE as FreestyleDomainVerificationRequest, aF as FreestyleExecuteScriptParams, aG as FreestyleFile, aH as FreestyleGetLogsResponse, aI as FreestyleJavaScriptLog, aJ as FreestyleLogResponseObject, aK as FreestyleNetworkPermission, aM as FreestyleSandboxDomainMapping, aN as FreestyleVerifyDomainRequest, aO as GetDefaultBranchResponse, d3 as GetDevServerConfigurationData, d5 as GetDevServerConfigurationError, d4 as GetDevServerConfigurationResponse, e6 as GetFileData, dc as GetGithubSyncData, dd as GetGithubSyncError, ee as GetTerminalLogsData, ef as GetTerminalXtermData, e2 as GetVmData, aP as GitCommitPushRequest, aQ as GitContents, aS as GitContentsDirEntryItem, aV as GitReference, aW as GitRepositoryTrigger, aT as GithubRepoSyncConfig, aU as GithubSyncConfigResponse, aZ as GrantPermissionRequest, br as HandleBackupCloudstateData, bs as HandleBackupCloudstateError, bN as HandleCreateDomainVerificationData, bO as HandleCreateDomainVerificationError, cO as HandleCreateGitTokenData, cQ as HandleCreateGitTokenError, cP as HandleCreateGitTokenResponse, dS as HandleCreateGitTriggerData, dT as HandleCreateGitTriggerError, cu as HandleCreateIdentityError, ct as HandleCreateIdentityResponse, bw as HandleCreateRecordData, by as HandleCreateRecordError, bx as HandleCreateRecordResponse, cW as HandleCreateRepoData, cY as HandleCreateRepoError, cX as HandleCreateRepoResponse, bJ as HandleDeleteDomainMappingData, bK as HandleDeleteDomainMappingError, bP as HandleDeleteDomainVerificationData, bQ as HandleDeleteDomainVerificationError, dU as HandleDeleteGitTriggerData, dW as HandleDeleteGitTriggerError, dV as HandleDeleteGitTriggerResponse, cv as HandleDeleteIdentityData, cw as HandleDeleteIdentityError, bz as HandleDeleteRecordData, bB as HandleDeleteRecordError, bA as HandleDeleteRecordResponse, dn as HandleDeleteRepoData, dp as HandleDeleteRepoError, bo as HandleDeployCloudstateData, bq as HandleDeployCloudstateError, bp as HandleDeployCloudstateResponse, eh as HandleDeployWebData, ej as HandleDeployWebError, ei as HandleDeployWebResponse, ek as HandleDeployWebV2Data, em as HandleDeployWebV2Error, el as HandleDeployWebV2Response, cA as HandleDescribePermissionData, cC as HandleDescribePermissionError, cB as HandleDescribePermissionResponse, c4 as HandleDevServerLogsData, c6 as HandleDevServerLogsError, c5 as HandleDevServerLogsResponse, c7 as HandleDevServerRestartData, c9 as HandleDevServerRestartError, c8 as HandleDevServerRestartResponse, cd as HandleDevServerStatusData, cf as HandleDevServerStatusError, ce as HandleDevServerStatusResponse, dN as HandleDownloadTarballData, dP as HandleDownloadTarballError, dO as HandleDownloadTarballResponse, dX as HandleDownloadZipData, dZ as HandleDownloadZipError, dY as HandleDownloadZipResponse, bR as HandleEphemeralDevServerData, bT as HandleEphemeralDevServerError, bS as HandleEphemeralDevServerResponse, bU as HandleExecOnEphemeralDevServerData, bW as HandleExecOnEphemeralDevServerError, bV as HandleExecOnEphemeralDevServerResponse, cn as HandleExecuteScriptData, cp as HandleExecuteScriptError, co as HandleExecuteScriptResponse, ds as HandleGetBlobData, du as HandleGetBlobError, dt as HandleGetBlobResponse, dy as HandleGetCommitData, dA as HandleGetCommitError, dz as HandleGetCommitResponse, dq as HandleGetContentsData, dr as HandleGetContentsError, cZ as HandleGetDefaultBranchData, c$ as HandleGetDefaultBranchError, c_ as HandleGetDefaultBranchResponse, cl as HandleGetExecuteRunData, cm as HandleGetExecuteRunError, d_ as HandleGetLogsData, d$ as HandleGetLogsError, dB as HandleGetRefBranchData, dD as HandleGetRefBranchError, dC as HandleGetRefBranchResponse, dE as HandleGetRefTagData, dG as HandleGetRefTagError, dF as HandleGetRefTagResponse, dk as HandleGetRepoInfoData, dm as HandleGetRepoInfoError, dl as HandleGetRepoInfoResponse, dH as HandleGetTagData, dJ as HandleGetTagError, dI as HandleGetTagResponse, dK as HandleGetTreeData, dM as HandleGetTreeError, dL as HandleGetTreeResponse, ep as HandleGetWebDeployDetailsData, c1 as HandleGitCommitPushData, c3 as HandleGitCommitPushError, c2 as HandleGitCommitPushResponse, cD as HandleGrantPermissionData, cE as HandleGrantPermissionError, bH as HandleInsertDomainMappingData, bI as HandleInsertDomainMappingError, dv as HandleListCommitsData, dx as HandleListCommitsError, dw as HandleListCommitsResponse, R as HandleListDomainMappingsData, bG as HandleListDomainMappingsError, bL as HandleListDomainVerificationRequestsError, bE as HandleListDomainsData, bF as HandleListDomainsError, cj as HandleListExecuteRunsData, ck as HandleListExecuteRunsError, cL as HandleListGitTokensData, cN as HandleListGitTokensError, cM as HandleListGitTokensResponse, dQ as HandleListGitTriggersData, dR as HandleListGitTriggersError, cq as HandleListIdentitiesData, cs as HandleListIdentitiesError, cr as HandleListIdentitiesResponse, cx as HandleListPermissionsData, cz as HandleListPermissionsError, cy as HandleListPermissionsResponse, bt as HandleListRecordsData, bv as HandleListRecordsError, bu as HandleListRecordsResponse, cU as HandleListRepositoriesData, cV as HandleListRepositoriesError, en as HandleListWebDeploysData, eo as HandleListWebDeploysError, b_ as HandleReadFileFromEphemeralDevServerData, c0 as HandleReadFileFromEphemeralDevServerError, b$ as HandleReadFileFromEphemeralDevServerResponse, cR as HandleRevokeGitTokenData, cT as HandleRevokeGitTokenError, cS as HandleRevokeGitTokenResponse, cF as HandleRevokePermissionData, cH as HandleRevokePermissionError, cG as HandleRevokePermissionResponse, d0 as HandleSetDefaultBranchData, d2 as HandleSetDefaultBranchError, d1 as HandleSetDefaultBranchResponse, ca as HandleShutdownDevServerData, cc as HandleShutdownDevServerError, cb as HandleShutdownDevServerResponse, cI as HandleUpdatePermissionData, cK as HandleUpdatePermissionError, cJ as HandleUpdatePermissionResponse, bM as HandleVerifyDomainData, bC as HandleVerifyWildcardData, bD as HandleVerifyWildcardError, cg as HandleWatchDevServerFilesData, ci as HandleWatchDevServerFilesError, ch as HandleWatchDevServerFilesResponse, bX as HandleWriteFileFromEphemeralDevServerData, bZ as HandleWriteFileFromEphemeralDevServerError, bY as HandleWriteFileFromEphemeralDevServerResponse, a_ as InternalServerError, a$ as ListRecordsResponse, ed as ListTerminalsData, b0 as NetworkPermissionData, e9 as OptimizeVmData, b1 as PortConfig, b2 as PortMapping, e7 as PutFileData, b3 as ReadFileEphemeralDevServerResponses, dh as RemoveGithubSyncData, dj as RemoveGithubSyncError, di as RemoveGithubSyncResponse, b4 as RepositoryInfoRaw, b5 as RepositoryMetadata, e1 as ResizeVmData, b6 as ResizeVmRequest, b7 as RevokeGitTokenRequest, b8 as SetDefaultBranchResponse, b9 as ShutdownDevServerRequest, ba as Signature, ea as StartVmData, bb as StartVmRequest, eb as StopVmData, ec as SuspendVmData, bc as TagDetails, bd as TagObject, be as TagTarget, bf as TreeEntry, bh as TreeObject, bi as UpdateDevServerConfigRequest, d6 as UpdateDevServerConfigurationData, d8 as UpdateDevServerConfigurationError, d7 as UpdateDevServerConfigurationResponse, bj as UpdatePermissionRequest, bk as Visibility, bl as VmPersistence, e4 as WaitVmData, eg as WatchFilesData, bn as WriteFileRequest, aL as action, aY as action2, aX as event, ac as kind, af as kind2, aw as kind3, a5 as type, aR as type2, bg as type3, bm as type4 } from './types.gen-DKjMRuu5.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -192,11 +192,15 @@ declare class FreestyleSandboxes {
|
|
|
192
192
|
/**
|
|
193
193
|
* Create a new git repository.
|
|
194
194
|
*/
|
|
195
|
-
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, }: {
|
|
195
|
+
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, devServers, }: {
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
|
|
199
|
+
devServers?: DevServerConfiguration;
|
|
200
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
201
|
+
source: never;
|
|
202
|
+
import: never;
|
|
203
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
204
|
/**
|
|
201
205
|
* List git repositories.
|
|
202
206
|
*/
|
|
@@ -292,8 +296,9 @@ declare class FreestyleSandboxes {
|
|
|
292
296
|
/**
|
|
293
297
|
* Delete a git trigger.
|
|
294
298
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
299
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
300
|
triggerId: string;
|
|
301
|
+
repo: string;
|
|
297
302
|
}): Promise<void>;
|
|
298
303
|
/**
|
|
299
304
|
* Set the default branch for a git repository.
|
|
@@ -356,8 +361,13 @@ declare class FreestyleSandboxes {
|
|
|
356
361
|
envVars?: Record<string, string>;
|
|
357
362
|
computeClass?: string;
|
|
358
363
|
timeout?: number;
|
|
364
|
+
gitRef?: string;
|
|
365
|
+
ports?: {
|
|
366
|
+
port: number;
|
|
367
|
+
targetPort: number;
|
|
368
|
+
}[];
|
|
359
369
|
}): Promise<FreestyleDevServer>;
|
|
360
370
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
371
|
}
|
|
362
372
|
|
|
363
|
-
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
373
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, DevServerConfiguration, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
package/dist/index.cjs
CHANGED
|
@@ -84,13 +84,13 @@ const handleExecOnEphemeralDevServer = (options) => {
|
|
|
84
84
|
const handleWriteFileFromEphemeralDevServer = (options) => {
|
|
85
85
|
return (options?.client ?? client).put({
|
|
86
86
|
...options,
|
|
87
|
-
url: "/ephemeral/v1/dev-servers/files/{
|
|
87
|
+
url: "/ephemeral/v1/dev-servers/files/{filepath}"
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
const handleReadFileFromEphemeralDevServer = (options) => {
|
|
91
91
|
return (options?.client ?? client).post({
|
|
92
92
|
...options,
|
|
93
|
-
url: "/ephemeral/v1/dev-servers/files/{
|
|
93
|
+
url: "/ephemeral/v1/dev-servers/files/{filepath}"
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
const handleGitCommitPush = (options) => {
|
|
@@ -240,7 +240,7 @@ const handleDeleteRepo = (options) => {
|
|
|
240
240
|
const handleGetContents = (options) => {
|
|
241
241
|
return (options?.client ?? client).get({
|
|
242
242
|
...options,
|
|
243
|
-
url: "/git/v1/repo/{repo}/contents/{
|
|
243
|
+
url: "/git/v1/repo/{repo}/contents/{path}"
|
|
244
244
|
});
|
|
245
245
|
};
|
|
246
246
|
const handleListGitTriggers = (options) => {
|
|
@@ -629,7 +629,8 @@ ${response.error.message}`);
|
|
|
629
629
|
public: pub = false,
|
|
630
630
|
source,
|
|
631
631
|
import: _import,
|
|
632
|
-
defaultBranch
|
|
632
|
+
defaultBranch,
|
|
633
|
+
devServers
|
|
633
634
|
}) {
|
|
634
635
|
const response = await handleCreateRepo({
|
|
635
636
|
client: this.client,
|
|
@@ -638,7 +639,8 @@ ${response.error.message}`);
|
|
|
638
639
|
public: pub,
|
|
639
640
|
source,
|
|
640
641
|
import: _import,
|
|
641
|
-
defaultBranch
|
|
642
|
+
defaultBranch,
|
|
643
|
+
devServers
|
|
642
644
|
}
|
|
643
645
|
});
|
|
644
646
|
if (response.data) {
|
|
@@ -934,11 +936,15 @@ ${response.error.message}`);
|
|
|
934
936
|
/**
|
|
935
937
|
* Delete a git trigger.
|
|
936
938
|
*/
|
|
937
|
-
async deleteGitTrigger({
|
|
939
|
+
async deleteGitTrigger({
|
|
940
|
+
triggerId,
|
|
941
|
+
repo
|
|
942
|
+
}) {
|
|
938
943
|
const response = await handleDeleteGitTrigger({
|
|
939
944
|
client: this.client,
|
|
940
945
|
path: {
|
|
941
|
-
trigger: triggerId
|
|
946
|
+
trigger: triggerId,
|
|
947
|
+
repo
|
|
942
948
|
}
|
|
943
949
|
});
|
|
944
950
|
if (response.data) {
|
|
@@ -997,6 +1003,7 @@ ${response.error.message}`);
|
|
|
997
1003
|
client: this.client,
|
|
998
1004
|
path: {
|
|
999
1005
|
repo: repoId,
|
|
1006
|
+
path: path ?? "",
|
|
1000
1007
|
"*path": path ?? null
|
|
1001
1008
|
},
|
|
1002
1009
|
query: {
|
|
@@ -1111,7 +1118,8 @@ ${response.error.message}`);
|
|
|
1111
1118
|
const data = response.data;
|
|
1112
1119
|
const devServerInstance = {
|
|
1113
1120
|
repoId: options.repoId || options.repo || "",
|
|
1114
|
-
kind: "repo"
|
|
1121
|
+
kind: "repo",
|
|
1122
|
+
gitRef: options.gitRef
|
|
1115
1123
|
};
|
|
1116
1124
|
const client = this.client;
|
|
1117
1125
|
const that = this;
|
|
@@ -1168,6 +1176,7 @@ ${response.error.message}`);
|
|
|
1168
1176
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1169
1177
|
client,
|
|
1170
1178
|
path: {
|
|
1179
|
+
filepath: path,
|
|
1171
1180
|
"*filepath": path
|
|
1172
1181
|
},
|
|
1173
1182
|
body: {
|
|
@@ -1231,6 +1240,7 @@ ${response.error.message}`);
|
|
|
1231
1240
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1232
1241
|
client,
|
|
1233
1242
|
path: {
|
|
1243
|
+
filepath: path,
|
|
1234
1244
|
"*filepath": path
|
|
1235
1245
|
},
|
|
1236
1246
|
body: {
|
|
@@ -1251,6 +1261,7 @@ ${response.error.message}`);
|
|
|
1251
1261
|
const response2 = await handleWriteFileFromEphemeralDevServer({
|
|
1252
1262
|
client,
|
|
1253
1263
|
path: {
|
|
1264
|
+
filepath: path,
|
|
1254
1265
|
"*filepath": path
|
|
1255
1266
|
},
|
|
1256
1267
|
body: {
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, C as CreateRepoSource,
|
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, t as DevServerConfiguration, C as CreateRepoSource, u as CreateRepoImport, v as CreateRepositoryResponseSuccess, w as HandleListRepositoriesResponse, x as HandleDeleteRepoResponse, G as GitIdentity, y as HandleDeleteIdentityResponse, A as AccessLevel, z as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, B as DescribePermissionResponseSuccess, E as CreatedToken, I as ListGitTokensResponseSuccess, J as HandleListGitTriggersResponse, K as GitTrigger, M as GitTriggerAction, N as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, O as HandleGetContentsResponse, P as GetGithubSyncResponse } from './types.gen-DKjMRuu5.js';
|
|
2
|
+
export { U as AccessTokenInfo, T as AccessibleRepository, V as Behavior, W as BlobEncoding, X as BlobObject, Y as BranchDetails, Z as CommitList, _ as CommitObject, $ as CommitParent, a0 as CommitTree, de as ConfigureGithubSyncData, dg as ConfigureGithubSyncError, a1 as ConfigureGithubSyncRequest, df as ConfigureGithubSyncResponse, a2 as CreateDomainMappingRequest, a3 as CreateRecordParams, a4 as CreateRecordResponse, a6 as CreateRepoRequest, a7 as CreateRepositoryRequest, e0 as CreateVmData, a8 as CreateVmRequest, a9 as CustomBuildOptions, d9 as DeleteDevServerConfigurationData, db as DeleteDevServerConfigurationError, da as DeleteDevServerConfigurationResponse, aa as DeleteRecordResponse, e3 as DeleteVmData, Q as DeploymentBuildOptions, ab as DeploymentLogEntry, ad as DeploymentState, ae as DevServer, ag as DevServerLogsRequest, ah as DevServerPreset, ai as DevServerRequest, aj as DevServerRestartRequest, ak as DevServerStatusRequest, al as DevServerWatchFilesRequest, am as DnsRecord, an as DnsRecordData, ao as DnsRecordKind, ap as DomainVerificationRequest, e5 as ExecAwaitData, aq as ExecAwaitRequest, ar as ExecRequest, as as ExecuteLogEntry, at as ExecuteRunInfo, au as ExecuteRunState, av as FileReadContent, e8 as ForkVmData, ax as ForkVmRequest, ay as FreestyleCloudstateDeployConfiguration, az as FreestyleCloudstateDeployErrorResponse, aA as FreestyleDeleteDomainVerificationRequest, aB as FreestyleDeployWebErrorResponse, aC as FreestyleDeployWebPayload, aD as FreestyleDeployWebPayloadV2, aE as FreestyleDomainVerificationRequest, aF as FreestyleExecuteScriptParams, aG as FreestyleFile, aH as FreestyleGetLogsResponse, aI as FreestyleJavaScriptLog, aJ as FreestyleLogResponseObject, aK as FreestyleNetworkPermission, aM as FreestyleSandboxDomainMapping, aN as FreestyleVerifyDomainRequest, aO as GetDefaultBranchResponse, d3 as GetDevServerConfigurationData, d5 as GetDevServerConfigurationError, d4 as GetDevServerConfigurationResponse, e6 as GetFileData, dc as GetGithubSyncData, dd as GetGithubSyncError, ee as GetTerminalLogsData, ef as GetTerminalXtermData, e2 as GetVmData, aP as GitCommitPushRequest, aQ as GitContents, aS as GitContentsDirEntryItem, aV as GitReference, aW as GitRepositoryTrigger, aT as GithubRepoSyncConfig, aU as GithubSyncConfigResponse, aZ as GrantPermissionRequest, br as HandleBackupCloudstateData, bs as HandleBackupCloudstateError, bN as HandleCreateDomainVerificationData, bO as HandleCreateDomainVerificationError, cO as HandleCreateGitTokenData, cQ as HandleCreateGitTokenError, cP as HandleCreateGitTokenResponse, dS as HandleCreateGitTriggerData, dT as HandleCreateGitTriggerError, cu as HandleCreateIdentityError, ct as HandleCreateIdentityResponse, bw as HandleCreateRecordData, by as HandleCreateRecordError, bx as HandleCreateRecordResponse, cW as HandleCreateRepoData, cY as HandleCreateRepoError, cX as HandleCreateRepoResponse, bJ as HandleDeleteDomainMappingData, bK as HandleDeleteDomainMappingError, bP as HandleDeleteDomainVerificationData, bQ as HandleDeleteDomainVerificationError, dU as HandleDeleteGitTriggerData, dW as HandleDeleteGitTriggerError, dV as HandleDeleteGitTriggerResponse, cv as HandleDeleteIdentityData, cw as HandleDeleteIdentityError, bz as HandleDeleteRecordData, bB as HandleDeleteRecordError, bA as HandleDeleteRecordResponse, dn as HandleDeleteRepoData, dp as HandleDeleteRepoError, bo as HandleDeployCloudstateData, bq as HandleDeployCloudstateError, bp as HandleDeployCloudstateResponse, eh as HandleDeployWebData, ej as HandleDeployWebError, ei as HandleDeployWebResponse, ek as HandleDeployWebV2Data, em as HandleDeployWebV2Error, el as HandleDeployWebV2Response, cA as HandleDescribePermissionData, cC as HandleDescribePermissionError, cB as HandleDescribePermissionResponse, c4 as HandleDevServerLogsData, c6 as HandleDevServerLogsError, c5 as HandleDevServerLogsResponse, c7 as HandleDevServerRestartData, c9 as HandleDevServerRestartError, c8 as HandleDevServerRestartResponse, cd as HandleDevServerStatusData, cf as HandleDevServerStatusError, ce as HandleDevServerStatusResponse, dN as HandleDownloadTarballData, dP as HandleDownloadTarballError, dO as HandleDownloadTarballResponse, dX as HandleDownloadZipData, dZ as HandleDownloadZipError, dY as HandleDownloadZipResponse, bR as HandleEphemeralDevServerData, bT as HandleEphemeralDevServerError, bS as HandleEphemeralDevServerResponse, bU as HandleExecOnEphemeralDevServerData, bW as HandleExecOnEphemeralDevServerError, bV as HandleExecOnEphemeralDevServerResponse, cn as HandleExecuteScriptData, cp as HandleExecuteScriptError, co as HandleExecuteScriptResponse, ds as HandleGetBlobData, du as HandleGetBlobError, dt as HandleGetBlobResponse, dy as HandleGetCommitData, dA as HandleGetCommitError, dz as HandleGetCommitResponse, dq as HandleGetContentsData, dr as HandleGetContentsError, cZ as HandleGetDefaultBranchData, c$ as HandleGetDefaultBranchError, c_ as HandleGetDefaultBranchResponse, cl as HandleGetExecuteRunData, cm as HandleGetExecuteRunError, d_ as HandleGetLogsData, d$ as HandleGetLogsError, dB as HandleGetRefBranchData, dD as HandleGetRefBranchError, dC as HandleGetRefBranchResponse, dE as HandleGetRefTagData, dG as HandleGetRefTagError, dF as HandleGetRefTagResponse, dk as HandleGetRepoInfoData, dm as HandleGetRepoInfoError, dl as HandleGetRepoInfoResponse, dH as HandleGetTagData, dJ as HandleGetTagError, dI as HandleGetTagResponse, dK as HandleGetTreeData, dM as HandleGetTreeError, dL as HandleGetTreeResponse, ep as HandleGetWebDeployDetailsData, c1 as HandleGitCommitPushData, c3 as HandleGitCommitPushError, c2 as HandleGitCommitPushResponse, cD as HandleGrantPermissionData, cE as HandleGrantPermissionError, bH as HandleInsertDomainMappingData, bI as HandleInsertDomainMappingError, dv as HandleListCommitsData, dx as HandleListCommitsError, dw as HandleListCommitsResponse, R as HandleListDomainMappingsData, bG as HandleListDomainMappingsError, bL as HandleListDomainVerificationRequestsError, bE as HandleListDomainsData, bF as HandleListDomainsError, cj as HandleListExecuteRunsData, ck as HandleListExecuteRunsError, cL as HandleListGitTokensData, cN as HandleListGitTokensError, cM as HandleListGitTokensResponse, dQ as HandleListGitTriggersData, dR as HandleListGitTriggersError, cq as HandleListIdentitiesData, cs as HandleListIdentitiesError, cr as HandleListIdentitiesResponse, cx as HandleListPermissionsData, cz as HandleListPermissionsError, cy as HandleListPermissionsResponse, bt as HandleListRecordsData, bv as HandleListRecordsError, bu as HandleListRecordsResponse, cU as HandleListRepositoriesData, cV as HandleListRepositoriesError, en as HandleListWebDeploysData, eo as HandleListWebDeploysError, b_ as HandleReadFileFromEphemeralDevServerData, c0 as HandleReadFileFromEphemeralDevServerError, b$ as HandleReadFileFromEphemeralDevServerResponse, cR as HandleRevokeGitTokenData, cT as HandleRevokeGitTokenError, cS as HandleRevokeGitTokenResponse, cF as HandleRevokePermissionData, cH as HandleRevokePermissionError, cG as HandleRevokePermissionResponse, d0 as HandleSetDefaultBranchData, d2 as HandleSetDefaultBranchError, d1 as HandleSetDefaultBranchResponse, ca as HandleShutdownDevServerData, cc as HandleShutdownDevServerError, cb as HandleShutdownDevServerResponse, cI as HandleUpdatePermissionData, cK as HandleUpdatePermissionError, cJ as HandleUpdatePermissionResponse, bM as HandleVerifyDomainData, bC as HandleVerifyWildcardData, bD as HandleVerifyWildcardError, cg as HandleWatchDevServerFilesData, ci as HandleWatchDevServerFilesError, ch as HandleWatchDevServerFilesResponse, bX as HandleWriteFileFromEphemeralDevServerData, bZ as HandleWriteFileFromEphemeralDevServerError, bY as HandleWriteFileFromEphemeralDevServerResponse, a_ as InternalServerError, a$ as ListRecordsResponse, ed as ListTerminalsData, b0 as NetworkPermissionData, e9 as OptimizeVmData, b1 as PortConfig, b2 as PortMapping, e7 as PutFileData, b3 as ReadFileEphemeralDevServerResponses, dh as RemoveGithubSyncData, dj as RemoveGithubSyncError, di as RemoveGithubSyncResponse, b4 as RepositoryInfoRaw, b5 as RepositoryMetadata, e1 as ResizeVmData, b6 as ResizeVmRequest, b7 as RevokeGitTokenRequest, b8 as SetDefaultBranchResponse, b9 as ShutdownDevServerRequest, ba as Signature, ea as StartVmData, bb as StartVmRequest, eb as StopVmData, ec as SuspendVmData, bc as TagDetails, bd as TagObject, be as TagTarget, bf as TreeEntry, bh as TreeObject, bi as UpdateDevServerConfigRequest, d6 as UpdateDevServerConfigurationData, d8 as UpdateDevServerConfigurationError, d7 as UpdateDevServerConfigurationResponse, bj as UpdatePermissionRequest, bk as Visibility, bl as VmPersistence, e4 as WaitVmData, eg as WatchFilesData, bn as WriteFileRequest, aL as action, aY as action2, aX as event, ac as kind, af as kind2, aw as kind3, a5 as type, aR as type2, bg as type3, bm as type4 } from './types.gen-DKjMRuu5.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -192,11 +192,15 @@ declare class FreestyleSandboxes {
|
|
|
192
192
|
/**
|
|
193
193
|
* Create a new git repository.
|
|
194
194
|
*/
|
|
195
|
-
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, }: {
|
|
195
|
+
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, devServers, }: {
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
|
|
199
|
+
devServers?: DevServerConfiguration;
|
|
200
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
201
|
+
source: never;
|
|
202
|
+
import: never;
|
|
203
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
204
|
/**
|
|
201
205
|
* List git repositories.
|
|
202
206
|
*/
|
|
@@ -292,8 +296,9 @@ declare class FreestyleSandboxes {
|
|
|
292
296
|
/**
|
|
293
297
|
* Delete a git trigger.
|
|
294
298
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
299
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
300
|
triggerId: string;
|
|
301
|
+
repo: string;
|
|
297
302
|
}): Promise<void>;
|
|
298
303
|
/**
|
|
299
304
|
* Set the default branch for a git repository.
|
|
@@ -356,8 +361,13 @@ declare class FreestyleSandboxes {
|
|
|
356
361
|
envVars?: Record<string, string>;
|
|
357
362
|
computeClass?: string;
|
|
358
363
|
timeout?: number;
|
|
364
|
+
gitRef?: string;
|
|
365
|
+
ports?: {
|
|
366
|
+
port: number;
|
|
367
|
+
targetPort: number;
|
|
368
|
+
}[];
|
|
359
369
|
}): Promise<FreestyleDevServer>;
|
|
360
370
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
371
|
}
|
|
362
372
|
|
|
363
|
-
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
373
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, DevServerConfiguration, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, C as CreateRepoSource,
|
|
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, q as HandleInsertDomainMappingResponse, r as HandleDeleteDomainMappingResponse, s as HandleListDomainMappingsResponse, t as DevServerConfiguration, C as CreateRepoSource, u as CreateRepoImport, v as CreateRepositoryResponseSuccess, w as HandleListRepositoriesResponse, x as HandleDeleteRepoResponse, G as GitIdentity, y as HandleDeleteIdentityResponse, A as AccessLevel, z as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, B as DescribePermissionResponseSuccess, E as CreatedToken, I as ListGitTokensResponseSuccess, J as HandleListGitTriggersResponse, K as GitTrigger, M as GitTriggerAction, N as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, O as HandleGetContentsResponse, P as GetGithubSyncResponse } from './types.gen-DKjMRuu5.js';
|
|
2
|
+
export { U as AccessTokenInfo, T as AccessibleRepository, V as Behavior, W as BlobEncoding, X as BlobObject, Y as BranchDetails, Z as CommitList, _ as CommitObject, $ as CommitParent, a0 as CommitTree, de as ConfigureGithubSyncData, dg as ConfigureGithubSyncError, a1 as ConfigureGithubSyncRequest, df as ConfigureGithubSyncResponse, a2 as CreateDomainMappingRequest, a3 as CreateRecordParams, a4 as CreateRecordResponse, a6 as CreateRepoRequest, a7 as CreateRepositoryRequest, e0 as CreateVmData, a8 as CreateVmRequest, a9 as CustomBuildOptions, d9 as DeleteDevServerConfigurationData, db as DeleteDevServerConfigurationError, da as DeleteDevServerConfigurationResponse, aa as DeleteRecordResponse, e3 as DeleteVmData, Q as DeploymentBuildOptions, ab as DeploymentLogEntry, ad as DeploymentState, ae as DevServer, ag as DevServerLogsRequest, ah as DevServerPreset, ai as DevServerRequest, aj as DevServerRestartRequest, ak as DevServerStatusRequest, al as DevServerWatchFilesRequest, am as DnsRecord, an as DnsRecordData, ao as DnsRecordKind, ap as DomainVerificationRequest, e5 as ExecAwaitData, aq as ExecAwaitRequest, ar as ExecRequest, as as ExecuteLogEntry, at as ExecuteRunInfo, au as ExecuteRunState, av as FileReadContent, e8 as ForkVmData, ax as ForkVmRequest, ay as FreestyleCloudstateDeployConfiguration, az as FreestyleCloudstateDeployErrorResponse, aA as FreestyleDeleteDomainVerificationRequest, aB as FreestyleDeployWebErrorResponse, aC as FreestyleDeployWebPayload, aD as FreestyleDeployWebPayloadV2, aE as FreestyleDomainVerificationRequest, aF as FreestyleExecuteScriptParams, aG as FreestyleFile, aH as FreestyleGetLogsResponse, aI as FreestyleJavaScriptLog, aJ as FreestyleLogResponseObject, aK as FreestyleNetworkPermission, aM as FreestyleSandboxDomainMapping, aN as FreestyleVerifyDomainRequest, aO as GetDefaultBranchResponse, d3 as GetDevServerConfigurationData, d5 as GetDevServerConfigurationError, d4 as GetDevServerConfigurationResponse, e6 as GetFileData, dc as GetGithubSyncData, dd as GetGithubSyncError, ee as GetTerminalLogsData, ef as GetTerminalXtermData, e2 as GetVmData, aP as GitCommitPushRequest, aQ as GitContents, aS as GitContentsDirEntryItem, aV as GitReference, aW as GitRepositoryTrigger, aT as GithubRepoSyncConfig, aU as GithubSyncConfigResponse, aZ as GrantPermissionRequest, br as HandleBackupCloudstateData, bs as HandleBackupCloudstateError, bN as HandleCreateDomainVerificationData, bO as HandleCreateDomainVerificationError, cO as HandleCreateGitTokenData, cQ as HandleCreateGitTokenError, cP as HandleCreateGitTokenResponse, dS as HandleCreateGitTriggerData, dT as HandleCreateGitTriggerError, cu as HandleCreateIdentityError, ct as HandleCreateIdentityResponse, bw as HandleCreateRecordData, by as HandleCreateRecordError, bx as HandleCreateRecordResponse, cW as HandleCreateRepoData, cY as HandleCreateRepoError, cX as HandleCreateRepoResponse, bJ as HandleDeleteDomainMappingData, bK as HandleDeleteDomainMappingError, bP as HandleDeleteDomainVerificationData, bQ as HandleDeleteDomainVerificationError, dU as HandleDeleteGitTriggerData, dW as HandleDeleteGitTriggerError, dV as HandleDeleteGitTriggerResponse, cv as HandleDeleteIdentityData, cw as HandleDeleteIdentityError, bz as HandleDeleteRecordData, bB as HandleDeleteRecordError, bA as HandleDeleteRecordResponse, dn as HandleDeleteRepoData, dp as HandleDeleteRepoError, bo as HandleDeployCloudstateData, bq as HandleDeployCloudstateError, bp as HandleDeployCloudstateResponse, eh as HandleDeployWebData, ej as HandleDeployWebError, ei as HandleDeployWebResponse, ek as HandleDeployWebV2Data, em as HandleDeployWebV2Error, el as HandleDeployWebV2Response, cA as HandleDescribePermissionData, cC as HandleDescribePermissionError, cB as HandleDescribePermissionResponse, c4 as HandleDevServerLogsData, c6 as HandleDevServerLogsError, c5 as HandleDevServerLogsResponse, c7 as HandleDevServerRestartData, c9 as HandleDevServerRestartError, c8 as HandleDevServerRestartResponse, cd as HandleDevServerStatusData, cf as HandleDevServerStatusError, ce as HandleDevServerStatusResponse, dN as HandleDownloadTarballData, dP as HandleDownloadTarballError, dO as HandleDownloadTarballResponse, dX as HandleDownloadZipData, dZ as HandleDownloadZipError, dY as HandleDownloadZipResponse, bR as HandleEphemeralDevServerData, bT as HandleEphemeralDevServerError, bS as HandleEphemeralDevServerResponse, bU as HandleExecOnEphemeralDevServerData, bW as HandleExecOnEphemeralDevServerError, bV as HandleExecOnEphemeralDevServerResponse, cn as HandleExecuteScriptData, cp as HandleExecuteScriptError, co as HandleExecuteScriptResponse, ds as HandleGetBlobData, du as HandleGetBlobError, dt as HandleGetBlobResponse, dy as HandleGetCommitData, dA as HandleGetCommitError, dz as HandleGetCommitResponse, dq as HandleGetContentsData, dr as HandleGetContentsError, cZ as HandleGetDefaultBranchData, c$ as HandleGetDefaultBranchError, c_ as HandleGetDefaultBranchResponse, cl as HandleGetExecuteRunData, cm as HandleGetExecuteRunError, d_ as HandleGetLogsData, d$ as HandleGetLogsError, dB as HandleGetRefBranchData, dD as HandleGetRefBranchError, dC as HandleGetRefBranchResponse, dE as HandleGetRefTagData, dG as HandleGetRefTagError, dF as HandleGetRefTagResponse, dk as HandleGetRepoInfoData, dm as HandleGetRepoInfoError, dl as HandleGetRepoInfoResponse, dH as HandleGetTagData, dJ as HandleGetTagError, dI as HandleGetTagResponse, dK as HandleGetTreeData, dM as HandleGetTreeError, dL as HandleGetTreeResponse, ep as HandleGetWebDeployDetailsData, c1 as HandleGitCommitPushData, c3 as HandleGitCommitPushError, c2 as HandleGitCommitPushResponse, cD as HandleGrantPermissionData, cE as HandleGrantPermissionError, bH as HandleInsertDomainMappingData, bI as HandleInsertDomainMappingError, dv as HandleListCommitsData, dx as HandleListCommitsError, dw as HandleListCommitsResponse, R as HandleListDomainMappingsData, bG as HandleListDomainMappingsError, bL as HandleListDomainVerificationRequestsError, bE as HandleListDomainsData, bF as HandleListDomainsError, cj as HandleListExecuteRunsData, ck as HandleListExecuteRunsError, cL as HandleListGitTokensData, cN as HandleListGitTokensError, cM as HandleListGitTokensResponse, dQ as HandleListGitTriggersData, dR as HandleListGitTriggersError, cq as HandleListIdentitiesData, cs as HandleListIdentitiesError, cr as HandleListIdentitiesResponse, cx as HandleListPermissionsData, cz as HandleListPermissionsError, cy as HandleListPermissionsResponse, bt as HandleListRecordsData, bv as HandleListRecordsError, bu as HandleListRecordsResponse, cU as HandleListRepositoriesData, cV as HandleListRepositoriesError, en as HandleListWebDeploysData, eo as HandleListWebDeploysError, b_ as HandleReadFileFromEphemeralDevServerData, c0 as HandleReadFileFromEphemeralDevServerError, b$ as HandleReadFileFromEphemeralDevServerResponse, cR as HandleRevokeGitTokenData, cT as HandleRevokeGitTokenError, cS as HandleRevokeGitTokenResponse, cF as HandleRevokePermissionData, cH as HandleRevokePermissionError, cG as HandleRevokePermissionResponse, d0 as HandleSetDefaultBranchData, d2 as HandleSetDefaultBranchError, d1 as HandleSetDefaultBranchResponse, ca as HandleShutdownDevServerData, cc as HandleShutdownDevServerError, cb as HandleShutdownDevServerResponse, cI as HandleUpdatePermissionData, cK as HandleUpdatePermissionError, cJ as HandleUpdatePermissionResponse, bM as HandleVerifyDomainData, bC as HandleVerifyWildcardData, bD as HandleVerifyWildcardError, cg as HandleWatchDevServerFilesData, ci as HandleWatchDevServerFilesError, ch as HandleWatchDevServerFilesResponse, bX as HandleWriteFileFromEphemeralDevServerData, bZ as HandleWriteFileFromEphemeralDevServerError, bY as HandleWriteFileFromEphemeralDevServerResponse, a_ as InternalServerError, a$ as ListRecordsResponse, ed as ListTerminalsData, b0 as NetworkPermissionData, e9 as OptimizeVmData, b1 as PortConfig, b2 as PortMapping, e7 as PutFileData, b3 as ReadFileEphemeralDevServerResponses, dh as RemoveGithubSyncData, dj as RemoveGithubSyncError, di as RemoveGithubSyncResponse, b4 as RepositoryInfoRaw, b5 as RepositoryMetadata, e1 as ResizeVmData, b6 as ResizeVmRequest, b7 as RevokeGitTokenRequest, b8 as SetDefaultBranchResponse, b9 as ShutdownDevServerRequest, ba as Signature, ea as StartVmData, bb as StartVmRequest, eb as StopVmData, ec as SuspendVmData, bc as TagDetails, bd as TagObject, be as TagTarget, bf as TreeEntry, bh as TreeObject, bi as UpdateDevServerConfigRequest, d6 as UpdateDevServerConfigurationData, d8 as UpdateDevServerConfigurationError, d7 as UpdateDevServerConfigurationResponse, bj as UpdatePermissionRequest, bk as Visibility, bl as VmPersistence, e4 as WaitVmData, eg as WatchFilesData, bn as WriteFileRequest, aL as action, aY as action2, aX as event, ac as kind, af as kind2, aw as kind3, a5 as type, aR as type2, bg as type3, bm as type4 } from './types.gen-DKjMRuu5.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -192,11 +192,15 @@ declare class FreestyleSandboxes {
|
|
|
192
192
|
/**
|
|
193
193
|
* Create a new git repository.
|
|
194
194
|
*/
|
|
195
|
-
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, }: {
|
|
195
|
+
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, devServers, }: {
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
|
|
199
|
+
devServers?: DevServerConfiguration;
|
|
200
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
201
|
+
source: never;
|
|
202
|
+
import: never;
|
|
203
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
204
|
/**
|
|
201
205
|
* List git repositories.
|
|
202
206
|
*/
|
|
@@ -292,8 +296,9 @@ declare class FreestyleSandboxes {
|
|
|
292
296
|
/**
|
|
293
297
|
* Delete a git trigger.
|
|
294
298
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
299
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
300
|
triggerId: string;
|
|
301
|
+
repo: string;
|
|
297
302
|
}): Promise<void>;
|
|
298
303
|
/**
|
|
299
304
|
* Set the default branch for a git repository.
|
|
@@ -356,8 +361,13 @@ declare class FreestyleSandboxes {
|
|
|
356
361
|
envVars?: Record<string, string>;
|
|
357
362
|
computeClass?: string;
|
|
358
363
|
timeout?: number;
|
|
364
|
+
gitRef?: string;
|
|
365
|
+
ports?: {
|
|
366
|
+
port: number;
|
|
367
|
+
targetPort: number;
|
|
368
|
+
}[];
|
|
359
369
|
}): Promise<FreestyleDevServer>;
|
|
360
370
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
371
|
}
|
|
362
372
|
|
|
363
|
-
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
373
|
+
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, DevServerConfiguration, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainMappingResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|