freestyle-sandboxes 0.0.92 → 0.0.94
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 +13 -4
- package/dist/inde.d.mts +13 -4
- package/dist/index.cjs +15 -6
- package/dist/index.d.cts +13 -4
- package/dist/index.d.mts +13 -4
- package/dist/index.mjs +15 -6
- package/dist/langgraph/inde.d.cts +2198 -180
- package/dist/langgraph/inde.d.mts +2198 -180
- package/dist/langgraph/index.cjs +7867 -5214
- package/dist/langgraph/index.d.cts +2198 -180
- package/dist/langgraph/index.d.mts +2198 -180
- package/dist/langgraph/index.mjs +7868 -5215
- 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--Oxc46AH.d.ts +1586 -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 +28 -6
- package/openapi/types.gen.ts +131 -33
- package/openapi.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +19 -1
- package/src/langgraph/index.ts +17 -11
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, c3 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen--Oxc46AH.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, c3 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen--Oxc46AH.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, c3 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen--Oxc46AH.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, c3 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen--Oxc46AH.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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen
|
|
2
|
-
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as
|
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen--Oxc46AH.js';
|
|
2
|
+
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as CommitList, Z as CommitObject, _ as CommitParent, $ as CommitTree, cL as ConfigureGithubSyncData, cN as ConfigureGithubSyncError, a0 as ConfigureGithubSyncRequest, cM as ConfigureGithubSyncResponse, a1 as CreateDomainMappingRequest, a2 as CreateRecordParams, a4 as CreateRepoRequest, a5 as CreateRepositoryRequest, a6 as CustomBuildOptions, P as DeploymentBuildOptions, a7 as DeploymentLogEntry, a9 as DeploymentState, aa as DevServer, ac as DevServerRequest, ad as DevServerStatusRequest, ae as DevServerWatchFilesRequest, af as DnsRecord, ag as DnsRecordData, ah as DnsRecordKind, ai as DomainVerificationRequest, aj as ExecRequest, ak as ExecuteLogEntry, al as ExecuteRunInfo, am as ExecuteRunState, an as FileReadContent, ap as FreestyleCloudstateDeployConfiguration, aq as FreestyleCloudstateDeployErrorResponse, ar as FreestyleDeleteDomainVerificationRequest, as as FreestyleDeployWebErrorResponse, at as FreestyleDeployWebPayload, au as FreestyleDeployWebPayloadV2, av as FreestyleDomainVerificationRequest, aw as FreestyleExecuteScriptParams, ax as FreestyleFile, ay as FreestyleGetLogsResponse, az as FreestyleJavaScriptLog, aA as FreestyleLogResponseObject, aB as FreestyleNetworkPermission, aD as FreestyleSandboxDomainMapping, aE as FreestyleVerifyDomainRequest, aF as GetDefaultBranchResponse, cJ as GetGithubSyncData, cK as GetGithubSyncError, aG as GitCommitPushRequest, aH as GitContents, aJ as GitContentsDirEntryItem, aM as GitReference, aN as GitRepositoryTrigger, aK as GithubRepoSyncConfig, aL as GithubSyncConfigResponse, aQ as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, bx as HandleCreateDomainVerificationData, by as HandleCreateDomainVerificationError, cs as HandleCreateGitTokenData, cu as HandleCreateGitTokenError, ct as HandleCreateGitTokenResponse, dm as HandleCreateGitTriggerData, dn as HandleCreateGitTriggerError, c8 as HandleCreateIdentityError, c7 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cA as HandleCreateRepoData, cC as HandleCreateRepoError, cB as HandleCreateRepoResponse, bt as HandleDeleteDomainMappingData, bu as HandleDeleteDomainMappingError, bz as HandleDeleteDomainVerificationData, bA as HandleDeleteDomainVerificationError, dp as HandleDeleteGitTriggerData, dr as HandleDeleteGitTriggerError, dq as HandleDeleteGitTriggerResponse, c9 as HandleDeleteIdentityData, ca as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cU as HandleDeleteRepoData, cV as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, dx as HandleDeployWebData, dz as HandleDeployWebError, dy as HandleDeployWebResponse, dA as HandleDeployWebV2Data, dC as HandleDeployWebV2Error, dB as HandleDeployWebV2Response, ce as HandleDescribePermissionData, cg as HandleDescribePermissionError, cf as HandleDescribePermissionResponse, bT as HandleDevServerStatusData, bV as HandleDevServerStatusError, bU as HandleDevServerStatusResponse, dh as HandleDownloadTarballData, dj as HandleDownloadTarballError, di as HandleDownloadTarballResponse, ds as HandleDownloadZipData, du as HandleDownloadZipError, dt as HandleDownloadZipResponse, bB as HandleEphemeralDevServerData, bD as HandleEphemeralDevServerError, bC as HandleEphemeralDevServerResponse, bE as HandleExecOnEphemeralDevServerData, bG as HandleExecOnEphemeralDevServerError, bF as HandleExecOnEphemeralDevServerResponse, c1 as HandleExecuteScriptData, c3 as HandleExecuteScriptError, c2 as HandleExecuteScriptResponse, cY as HandleGetBlobData, c_ as HandleGetBlobError, cZ as HandleGetBlobResponse, d2 as HandleGetCommitData, d4 as HandleGetCommitError, d3 as HandleGetCommitResponse, cW as HandleGetContentsData, cX as HandleGetContentsError, cD as HandleGetDefaultBranchData, cF as HandleGetDefaultBranchError, cE as HandleGetDefaultBranchResponse, b$ as HandleGetExecuteRunData, c0 as HandleGetExecuteRunError, dv as HandleGetLogsData, dw as HandleGetLogsError, d5 as HandleGetRefBranchData, d7 as HandleGetRefBranchError, d6 as HandleGetRefBranchResponse, d8 as HandleGetRefTagData, da as HandleGetRefTagError, d9 as HandleGetRefTagResponse, cR as HandleGetRepoInfoData, cT as HandleGetRepoInfoError, cS as HandleGetRepoInfoResponse, db as HandleGetTagData, dd as HandleGetTagError, dc as HandleGetTagResponse, de as HandleGetTreeData, dg as HandleGetTreeError, df as HandleGetTreeResponse, dF as HandleGetWebDeployDetailsData, bN as HandleGitCommitPushData, bP as HandleGitCommitPushError, bO as HandleGitCommitPushResponse, ch as HandleGrantPermissionData, ci as HandleGrantPermissionError, br as HandleInsertDomainMappingData, bs as HandleInsertDomainMappingError, c$ as HandleListCommitsData, d1 as HandleListCommitsError, d0 as HandleListCommitsResponse, Q as HandleListDomainMappingsData, bq as HandleListDomainMappingsError, bv as HandleListDomainVerificationRequestsError, bo as HandleListDomainsData, bp as HandleListDomainsError, bZ as HandleListExecuteRunsData, b_ as HandleListExecuteRunsError, cp as HandleListGitTokensData, cr as HandleListGitTokensError, cq as HandleListGitTokensResponse, dk as HandleListGitTriggersData, dl as HandleListGitTriggersError, c4 as HandleListIdentitiesData, c6 as HandleListIdentitiesError, c5 as HandleListIdentitiesResponse, cb as HandleListPermissionsData, cd as HandleListPermissionsError, cc as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cy as HandleListRepositoriesData, cz as HandleListRepositoriesError, dD as HandleListWebDeploysData, dE as HandleListWebDeploysError, bK as HandleReadFileFromEphemeralDevServerData, bM as HandleReadFileFromEphemeralDevServerError, bL as HandleReadFileFromEphemeralDevServerResponse, cv as HandleRevokeGitTokenData, cx as HandleRevokeGitTokenError, cw as HandleRevokeGitTokenResponse, cj as HandleRevokePermissionData, cl as HandleRevokePermissionError, ck as HandleRevokePermissionResponse, cG as HandleSetDefaultBranchData, cI as HandleSetDefaultBranchError, cH as HandleSetDefaultBranchResponse, bQ as HandleShutdownDevServerData, bS as HandleShutdownDevServerError, bR as HandleShutdownDevServerResponse, cm as HandleUpdatePermissionData, co as HandleUpdatePermissionError, cn as HandleUpdatePermissionResponse, bw as HandleVerifyDomainData, bm as HandleVerifyWildcardData, bn as HandleVerifyWildcardError, bW as HandleWatchDevServerFilesData, bY as HandleWatchDevServerFilesError, bX as HandleWatchDevServerFilesResponse, bH as HandleWriteFileFromEphemeralDevServerData, bJ as HandleWriteFileFromEphemeralDevServerError, bI as HandleWriteFileFromEphemeralDevServerResponse, aR as InternalServerError, aS as ListRecordsResponse, aT as NetworkPermissionData, aU as PortConfig, aV as ReadFileEphemeralDevServerResponses, cO as RemoveGithubSyncData, cQ as RemoveGithubSyncError, cP as RemoveGithubSyncResponse, aW as RepositoryInfo, aX as RepositoryMetadata, aY as RevokeGitTokenRequest, aZ as SetDefaultBranchResponse, a_ as ShutdownDevServerRequest, a$ as Signature, b0 as TagDetails, b1 as TagObject, b2 as TagTarget, b3 as TreeEntry, b5 as TreeObject, b6 as UpdatePermissionRequest, b7 as Visibility, aC as action, aP as action2, aO as event, a8 as kind, ab as kind2, ao as kind3, a3 as type, aI as type2, b4 as type3 } from './types.gen--Oxc46AH.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -196,7 +196,10 @@ declare class FreestyleSandboxes {
|
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
} & (CreateGitRepositorySource | CreateGitRepositoryImport
|
|
199
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
200
|
+
source: never;
|
|
201
|
+
import: never;
|
|
202
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
203
|
/**
|
|
201
204
|
* List git repositories.
|
|
202
205
|
*/
|
|
@@ -292,8 +295,9 @@ declare class FreestyleSandboxes {
|
|
|
292
295
|
/**
|
|
293
296
|
* Delete a git trigger.
|
|
294
297
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
298
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
299
|
triggerId: string;
|
|
300
|
+
repo: string;
|
|
297
301
|
}): Promise<void>;
|
|
298
302
|
/**
|
|
299
303
|
* Set the default branch for a git repository.
|
|
@@ -356,6 +360,11 @@ declare class FreestyleSandboxes {
|
|
|
356
360
|
envVars?: Record<string, string>;
|
|
357
361
|
computeClass?: string;
|
|
358
362
|
timeout?: number;
|
|
363
|
+
gitRef?: string;
|
|
364
|
+
ports?: {
|
|
365
|
+
port: number;
|
|
366
|
+
targetPort: number;
|
|
367
|
+
}[];
|
|
359
368
|
}): Promise<FreestyleDevServer>;
|
|
360
369
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
370
|
}
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen
|
|
2
|
-
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as
|
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen--Oxc46AH.js';
|
|
2
|
+
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as CommitList, Z as CommitObject, _ as CommitParent, $ as CommitTree, cL as ConfigureGithubSyncData, cN as ConfigureGithubSyncError, a0 as ConfigureGithubSyncRequest, cM as ConfigureGithubSyncResponse, a1 as CreateDomainMappingRequest, a2 as CreateRecordParams, a4 as CreateRepoRequest, a5 as CreateRepositoryRequest, a6 as CustomBuildOptions, P as DeploymentBuildOptions, a7 as DeploymentLogEntry, a9 as DeploymentState, aa as DevServer, ac as DevServerRequest, ad as DevServerStatusRequest, ae as DevServerWatchFilesRequest, af as DnsRecord, ag as DnsRecordData, ah as DnsRecordKind, ai as DomainVerificationRequest, aj as ExecRequest, ak as ExecuteLogEntry, al as ExecuteRunInfo, am as ExecuteRunState, an as FileReadContent, ap as FreestyleCloudstateDeployConfiguration, aq as FreestyleCloudstateDeployErrorResponse, ar as FreestyleDeleteDomainVerificationRequest, as as FreestyleDeployWebErrorResponse, at as FreestyleDeployWebPayload, au as FreestyleDeployWebPayloadV2, av as FreestyleDomainVerificationRequest, aw as FreestyleExecuteScriptParams, ax as FreestyleFile, ay as FreestyleGetLogsResponse, az as FreestyleJavaScriptLog, aA as FreestyleLogResponseObject, aB as FreestyleNetworkPermission, aD as FreestyleSandboxDomainMapping, aE as FreestyleVerifyDomainRequest, aF as GetDefaultBranchResponse, cJ as GetGithubSyncData, cK as GetGithubSyncError, aG as GitCommitPushRequest, aH as GitContents, aJ as GitContentsDirEntryItem, aM as GitReference, aN as GitRepositoryTrigger, aK as GithubRepoSyncConfig, aL as GithubSyncConfigResponse, aQ as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, bx as HandleCreateDomainVerificationData, by as HandleCreateDomainVerificationError, cs as HandleCreateGitTokenData, cu as HandleCreateGitTokenError, ct as HandleCreateGitTokenResponse, dm as HandleCreateGitTriggerData, dn as HandleCreateGitTriggerError, c8 as HandleCreateIdentityError, c7 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cA as HandleCreateRepoData, cC as HandleCreateRepoError, cB as HandleCreateRepoResponse, bt as HandleDeleteDomainMappingData, bu as HandleDeleteDomainMappingError, bz as HandleDeleteDomainVerificationData, bA as HandleDeleteDomainVerificationError, dp as HandleDeleteGitTriggerData, dr as HandleDeleteGitTriggerError, dq as HandleDeleteGitTriggerResponse, c9 as HandleDeleteIdentityData, ca as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cU as HandleDeleteRepoData, cV as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, dx as HandleDeployWebData, dz as HandleDeployWebError, dy as HandleDeployWebResponse, dA as HandleDeployWebV2Data, dC as HandleDeployWebV2Error, dB as HandleDeployWebV2Response, ce as HandleDescribePermissionData, cg as HandleDescribePermissionError, cf as HandleDescribePermissionResponse, bT as HandleDevServerStatusData, bV as HandleDevServerStatusError, bU as HandleDevServerStatusResponse, dh as HandleDownloadTarballData, dj as HandleDownloadTarballError, di as HandleDownloadTarballResponse, ds as HandleDownloadZipData, du as HandleDownloadZipError, dt as HandleDownloadZipResponse, bB as HandleEphemeralDevServerData, bD as HandleEphemeralDevServerError, bC as HandleEphemeralDevServerResponse, bE as HandleExecOnEphemeralDevServerData, bG as HandleExecOnEphemeralDevServerError, bF as HandleExecOnEphemeralDevServerResponse, c1 as HandleExecuteScriptData, c3 as HandleExecuteScriptError, c2 as HandleExecuteScriptResponse, cY as HandleGetBlobData, c_ as HandleGetBlobError, cZ as HandleGetBlobResponse, d2 as HandleGetCommitData, d4 as HandleGetCommitError, d3 as HandleGetCommitResponse, cW as HandleGetContentsData, cX as HandleGetContentsError, cD as HandleGetDefaultBranchData, cF as HandleGetDefaultBranchError, cE as HandleGetDefaultBranchResponse, b$ as HandleGetExecuteRunData, c0 as HandleGetExecuteRunError, dv as HandleGetLogsData, dw as HandleGetLogsError, d5 as HandleGetRefBranchData, d7 as HandleGetRefBranchError, d6 as HandleGetRefBranchResponse, d8 as HandleGetRefTagData, da as HandleGetRefTagError, d9 as HandleGetRefTagResponse, cR as HandleGetRepoInfoData, cT as HandleGetRepoInfoError, cS as HandleGetRepoInfoResponse, db as HandleGetTagData, dd as HandleGetTagError, dc as HandleGetTagResponse, de as HandleGetTreeData, dg as HandleGetTreeError, df as HandleGetTreeResponse, dF as HandleGetWebDeployDetailsData, bN as HandleGitCommitPushData, bP as HandleGitCommitPushError, bO as HandleGitCommitPushResponse, ch as HandleGrantPermissionData, ci as HandleGrantPermissionError, br as HandleInsertDomainMappingData, bs as HandleInsertDomainMappingError, c$ as HandleListCommitsData, d1 as HandleListCommitsError, d0 as HandleListCommitsResponse, Q as HandleListDomainMappingsData, bq as HandleListDomainMappingsError, bv as HandleListDomainVerificationRequestsError, bo as HandleListDomainsData, bp as HandleListDomainsError, bZ as HandleListExecuteRunsData, b_ as HandleListExecuteRunsError, cp as HandleListGitTokensData, cr as HandleListGitTokensError, cq as HandleListGitTokensResponse, dk as HandleListGitTriggersData, dl as HandleListGitTriggersError, c4 as HandleListIdentitiesData, c6 as HandleListIdentitiesError, c5 as HandleListIdentitiesResponse, cb as HandleListPermissionsData, cd as HandleListPermissionsError, cc as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cy as HandleListRepositoriesData, cz as HandleListRepositoriesError, dD as HandleListWebDeploysData, dE as HandleListWebDeploysError, bK as HandleReadFileFromEphemeralDevServerData, bM as HandleReadFileFromEphemeralDevServerError, bL as HandleReadFileFromEphemeralDevServerResponse, cv as HandleRevokeGitTokenData, cx as HandleRevokeGitTokenError, cw as HandleRevokeGitTokenResponse, cj as HandleRevokePermissionData, cl as HandleRevokePermissionError, ck as HandleRevokePermissionResponse, cG as HandleSetDefaultBranchData, cI as HandleSetDefaultBranchError, cH as HandleSetDefaultBranchResponse, bQ as HandleShutdownDevServerData, bS as HandleShutdownDevServerError, bR as HandleShutdownDevServerResponse, cm as HandleUpdatePermissionData, co as HandleUpdatePermissionError, cn as HandleUpdatePermissionResponse, bw as HandleVerifyDomainData, bm as HandleVerifyWildcardData, bn as HandleVerifyWildcardError, bW as HandleWatchDevServerFilesData, bY as HandleWatchDevServerFilesError, bX as HandleWatchDevServerFilesResponse, bH as HandleWriteFileFromEphemeralDevServerData, bJ as HandleWriteFileFromEphemeralDevServerError, bI as HandleWriteFileFromEphemeralDevServerResponse, aR as InternalServerError, aS as ListRecordsResponse, aT as NetworkPermissionData, aU as PortConfig, aV as ReadFileEphemeralDevServerResponses, cO as RemoveGithubSyncData, cQ as RemoveGithubSyncError, cP as RemoveGithubSyncResponse, aW as RepositoryInfo, aX as RepositoryMetadata, aY as RevokeGitTokenRequest, aZ as SetDefaultBranchResponse, a_ as ShutdownDevServerRequest, a$ as Signature, b0 as TagDetails, b1 as TagObject, b2 as TagTarget, b3 as TreeEntry, b5 as TreeObject, b6 as UpdatePermissionRequest, b7 as Visibility, aC as action, aP as action2, aO as event, a8 as kind, ab as kind2, ao as kind3, a3 as type, aI as type2, b4 as type3 } from './types.gen--Oxc46AH.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -196,7 +196,10 @@ declare class FreestyleSandboxes {
|
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
} & (CreateGitRepositorySource | CreateGitRepositoryImport
|
|
199
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
200
|
+
source: never;
|
|
201
|
+
import: never;
|
|
202
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
203
|
/**
|
|
201
204
|
* List git repositories.
|
|
202
205
|
*/
|
|
@@ -292,8 +295,9 @@ declare class FreestyleSandboxes {
|
|
|
292
295
|
/**
|
|
293
296
|
* Delete a git trigger.
|
|
294
297
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
298
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
299
|
triggerId: string;
|
|
300
|
+
repo: string;
|
|
297
301
|
}): Promise<void>;
|
|
298
302
|
/**
|
|
299
303
|
* Set the default branch for a git repository.
|
|
@@ -356,6 +360,11 @@ declare class FreestyleSandboxes {
|
|
|
356
360
|
envVars?: Record<string, string>;
|
|
357
361
|
computeClass?: string;
|
|
358
362
|
timeout?: number;
|
|
363
|
+
gitRef?: string;
|
|
364
|
+
ports?: {
|
|
365
|
+
port: number;
|
|
366
|
+
targetPort: number;
|
|
367
|
+
}[];
|
|
359
368
|
}): Promise<FreestyleDevServer>;
|
|
360
369
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
370
|
}
|
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) => {
|
|
@@ -934,11 +934,15 @@ ${response.error.message}`);
|
|
|
934
934
|
/**
|
|
935
935
|
* Delete a git trigger.
|
|
936
936
|
*/
|
|
937
|
-
async deleteGitTrigger({
|
|
937
|
+
async deleteGitTrigger({
|
|
938
|
+
triggerId,
|
|
939
|
+
repo
|
|
940
|
+
}) {
|
|
938
941
|
const response = await handleDeleteGitTrigger({
|
|
939
942
|
client: this.client,
|
|
940
943
|
path: {
|
|
941
|
-
trigger: triggerId
|
|
944
|
+
trigger: triggerId,
|
|
945
|
+
repo
|
|
942
946
|
}
|
|
943
947
|
});
|
|
944
948
|
if (response.data) {
|
|
@@ -997,6 +1001,7 @@ ${response.error.message}`);
|
|
|
997
1001
|
client: this.client,
|
|
998
1002
|
path: {
|
|
999
1003
|
repo: repoId,
|
|
1004
|
+
path: path ?? "",
|
|
1000
1005
|
"*path": path ?? null
|
|
1001
1006
|
},
|
|
1002
1007
|
query: {
|
|
@@ -1111,7 +1116,8 @@ ${response.error.message}`);
|
|
|
1111
1116
|
const data = response.data;
|
|
1112
1117
|
const devServerInstance = {
|
|
1113
1118
|
repoId: options.repoId || options.repo || "",
|
|
1114
|
-
kind: "repo"
|
|
1119
|
+
kind: "repo",
|
|
1120
|
+
gitRef: options.gitRef
|
|
1115
1121
|
};
|
|
1116
1122
|
const client = this.client;
|
|
1117
1123
|
const that = this;
|
|
@@ -1168,6 +1174,7 @@ ${response.error.message}`);
|
|
|
1168
1174
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1169
1175
|
client,
|
|
1170
1176
|
path: {
|
|
1177
|
+
filepath: path,
|
|
1171
1178
|
"*filepath": path
|
|
1172
1179
|
},
|
|
1173
1180
|
body: {
|
|
@@ -1231,6 +1238,7 @@ ${response.error.message}`);
|
|
|
1231
1238
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1232
1239
|
client,
|
|
1233
1240
|
path: {
|
|
1241
|
+
filepath: path,
|
|
1234
1242
|
"*filepath": path
|
|
1235
1243
|
},
|
|
1236
1244
|
body: {
|
|
@@ -1251,6 +1259,7 @@ ${response.error.message}`);
|
|
|
1251
1259
|
const response2 = await handleWriteFileFromEphemeralDevServer({
|
|
1252
1260
|
client,
|
|
1253
1261
|
path: {
|
|
1262
|
+
filepath: path,
|
|
1254
1263
|
"*filepath": path
|
|
1255
1264
|
},
|
|
1256
1265
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen
|
|
2
|
-
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as
|
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen--Oxc46AH.js';
|
|
2
|
+
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as CommitList, Z as CommitObject, _ as CommitParent, $ as CommitTree, cL as ConfigureGithubSyncData, cN as ConfigureGithubSyncError, a0 as ConfigureGithubSyncRequest, cM as ConfigureGithubSyncResponse, a1 as CreateDomainMappingRequest, a2 as CreateRecordParams, a4 as CreateRepoRequest, a5 as CreateRepositoryRequest, a6 as CustomBuildOptions, P as DeploymentBuildOptions, a7 as DeploymentLogEntry, a9 as DeploymentState, aa as DevServer, ac as DevServerRequest, ad as DevServerStatusRequest, ae as DevServerWatchFilesRequest, af as DnsRecord, ag as DnsRecordData, ah as DnsRecordKind, ai as DomainVerificationRequest, aj as ExecRequest, ak as ExecuteLogEntry, al as ExecuteRunInfo, am as ExecuteRunState, an as FileReadContent, ap as FreestyleCloudstateDeployConfiguration, aq as FreestyleCloudstateDeployErrorResponse, ar as FreestyleDeleteDomainVerificationRequest, as as FreestyleDeployWebErrorResponse, at as FreestyleDeployWebPayload, au as FreestyleDeployWebPayloadV2, av as FreestyleDomainVerificationRequest, aw as FreestyleExecuteScriptParams, ax as FreestyleFile, ay as FreestyleGetLogsResponse, az as FreestyleJavaScriptLog, aA as FreestyleLogResponseObject, aB as FreestyleNetworkPermission, aD as FreestyleSandboxDomainMapping, aE as FreestyleVerifyDomainRequest, aF as GetDefaultBranchResponse, cJ as GetGithubSyncData, cK as GetGithubSyncError, aG as GitCommitPushRequest, aH as GitContents, aJ as GitContentsDirEntryItem, aM as GitReference, aN as GitRepositoryTrigger, aK as GithubRepoSyncConfig, aL as GithubSyncConfigResponse, aQ as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, bx as HandleCreateDomainVerificationData, by as HandleCreateDomainVerificationError, cs as HandleCreateGitTokenData, cu as HandleCreateGitTokenError, ct as HandleCreateGitTokenResponse, dm as HandleCreateGitTriggerData, dn as HandleCreateGitTriggerError, c8 as HandleCreateIdentityError, c7 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cA as HandleCreateRepoData, cC as HandleCreateRepoError, cB as HandleCreateRepoResponse, bt as HandleDeleteDomainMappingData, bu as HandleDeleteDomainMappingError, bz as HandleDeleteDomainVerificationData, bA as HandleDeleteDomainVerificationError, dp as HandleDeleteGitTriggerData, dr as HandleDeleteGitTriggerError, dq as HandleDeleteGitTriggerResponse, c9 as HandleDeleteIdentityData, ca as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cU as HandleDeleteRepoData, cV as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, dx as HandleDeployWebData, dz as HandleDeployWebError, dy as HandleDeployWebResponse, dA as HandleDeployWebV2Data, dC as HandleDeployWebV2Error, dB as HandleDeployWebV2Response, ce as HandleDescribePermissionData, cg as HandleDescribePermissionError, cf as HandleDescribePermissionResponse, bT as HandleDevServerStatusData, bV as HandleDevServerStatusError, bU as HandleDevServerStatusResponse, dh as HandleDownloadTarballData, dj as HandleDownloadTarballError, di as HandleDownloadTarballResponse, ds as HandleDownloadZipData, du as HandleDownloadZipError, dt as HandleDownloadZipResponse, bB as HandleEphemeralDevServerData, bD as HandleEphemeralDevServerError, bC as HandleEphemeralDevServerResponse, bE as HandleExecOnEphemeralDevServerData, bG as HandleExecOnEphemeralDevServerError, bF as HandleExecOnEphemeralDevServerResponse, c1 as HandleExecuteScriptData, c3 as HandleExecuteScriptError, c2 as HandleExecuteScriptResponse, cY as HandleGetBlobData, c_ as HandleGetBlobError, cZ as HandleGetBlobResponse, d2 as HandleGetCommitData, d4 as HandleGetCommitError, d3 as HandleGetCommitResponse, cW as HandleGetContentsData, cX as HandleGetContentsError, cD as HandleGetDefaultBranchData, cF as HandleGetDefaultBranchError, cE as HandleGetDefaultBranchResponse, b$ as HandleGetExecuteRunData, c0 as HandleGetExecuteRunError, dv as HandleGetLogsData, dw as HandleGetLogsError, d5 as HandleGetRefBranchData, d7 as HandleGetRefBranchError, d6 as HandleGetRefBranchResponse, d8 as HandleGetRefTagData, da as HandleGetRefTagError, d9 as HandleGetRefTagResponse, cR as HandleGetRepoInfoData, cT as HandleGetRepoInfoError, cS as HandleGetRepoInfoResponse, db as HandleGetTagData, dd as HandleGetTagError, dc as HandleGetTagResponse, de as HandleGetTreeData, dg as HandleGetTreeError, df as HandleGetTreeResponse, dF as HandleGetWebDeployDetailsData, bN as HandleGitCommitPushData, bP as HandleGitCommitPushError, bO as HandleGitCommitPushResponse, ch as HandleGrantPermissionData, ci as HandleGrantPermissionError, br as HandleInsertDomainMappingData, bs as HandleInsertDomainMappingError, c$ as HandleListCommitsData, d1 as HandleListCommitsError, d0 as HandleListCommitsResponse, Q as HandleListDomainMappingsData, bq as HandleListDomainMappingsError, bv as HandleListDomainVerificationRequestsError, bo as HandleListDomainsData, bp as HandleListDomainsError, bZ as HandleListExecuteRunsData, b_ as HandleListExecuteRunsError, cp as HandleListGitTokensData, cr as HandleListGitTokensError, cq as HandleListGitTokensResponse, dk as HandleListGitTriggersData, dl as HandleListGitTriggersError, c4 as HandleListIdentitiesData, c6 as HandleListIdentitiesError, c5 as HandleListIdentitiesResponse, cb as HandleListPermissionsData, cd as HandleListPermissionsError, cc as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cy as HandleListRepositoriesData, cz as HandleListRepositoriesError, dD as HandleListWebDeploysData, dE as HandleListWebDeploysError, bK as HandleReadFileFromEphemeralDevServerData, bM as HandleReadFileFromEphemeralDevServerError, bL as HandleReadFileFromEphemeralDevServerResponse, cv as HandleRevokeGitTokenData, cx as HandleRevokeGitTokenError, cw as HandleRevokeGitTokenResponse, cj as HandleRevokePermissionData, cl as HandleRevokePermissionError, ck as HandleRevokePermissionResponse, cG as HandleSetDefaultBranchData, cI as HandleSetDefaultBranchError, cH as HandleSetDefaultBranchResponse, bQ as HandleShutdownDevServerData, bS as HandleShutdownDevServerError, bR as HandleShutdownDevServerResponse, cm as HandleUpdatePermissionData, co as HandleUpdatePermissionError, cn as HandleUpdatePermissionResponse, bw as HandleVerifyDomainData, bm as HandleVerifyWildcardData, bn as HandleVerifyWildcardError, bW as HandleWatchDevServerFilesData, bY as HandleWatchDevServerFilesError, bX as HandleWatchDevServerFilesResponse, bH as HandleWriteFileFromEphemeralDevServerData, bJ as HandleWriteFileFromEphemeralDevServerError, bI as HandleWriteFileFromEphemeralDevServerResponse, aR as InternalServerError, aS as ListRecordsResponse, aT as NetworkPermissionData, aU as PortConfig, aV as ReadFileEphemeralDevServerResponses, cO as RemoveGithubSyncData, cQ as RemoveGithubSyncError, cP as RemoveGithubSyncResponse, aW as RepositoryInfo, aX as RepositoryMetadata, aY as RevokeGitTokenRequest, aZ as SetDefaultBranchResponse, a_ as ShutdownDevServerRequest, a$ as Signature, b0 as TagDetails, b1 as TagObject, b2 as TagTarget, b3 as TreeEntry, b5 as TreeObject, b6 as UpdatePermissionRequest, b7 as Visibility, aC as action, aP as action2, aO as event, a8 as kind, ab as kind2, ao as kind3, a3 as type, aI as type2, b4 as type3 } from './types.gen--Oxc46AH.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -196,7 +196,10 @@ declare class FreestyleSandboxes {
|
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
} & (CreateGitRepositorySource | CreateGitRepositoryImport
|
|
199
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
200
|
+
source: never;
|
|
201
|
+
import: never;
|
|
202
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
203
|
/**
|
|
201
204
|
* List git repositories.
|
|
202
205
|
*/
|
|
@@ -292,8 +295,9 @@ declare class FreestyleSandboxes {
|
|
|
292
295
|
/**
|
|
293
296
|
* Delete a git trigger.
|
|
294
297
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
298
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
299
|
triggerId: string;
|
|
300
|
+
repo: string;
|
|
297
301
|
}): Promise<void>;
|
|
298
302
|
/**
|
|
299
303
|
* Set the default branch for a git repository.
|
|
@@ -356,6 +360,11 @@ declare class FreestyleSandboxes {
|
|
|
356
360
|
envVars?: Record<string, string>;
|
|
357
361
|
computeClass?: string;
|
|
358
362
|
timeout?: number;
|
|
363
|
+
gitRef?: string;
|
|
364
|
+
ports?: {
|
|
365
|
+
port: number;
|
|
366
|
+
targetPort: number;
|
|
367
|
+
}[];
|
|
359
368
|
}): Promise<FreestyleDevServer>;
|
|
360
369
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
370
|
}
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen
|
|
2
|
-
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as
|
|
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, t as CreateRepoImport, u as CreateRepositoryResponseSuccess, v as HandleListRepositoriesResponse, w as HandleDeleteRepoResponse, G as GitIdentity, x as HandleDeleteIdentityResponse, A as AccessLevel, y as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, z as DescribePermissionResponseSuccess, B as CreatedToken, E as ListGitTokensResponseSuccess, I as HandleListGitTriggersResponse, J as GitTrigger, K as GitTriggerAction, M as HandleCreateGitTriggerResponse, S as SetDefaultBranchRequest, N as HandleGetContentsResponse, O as GetGithubSyncResponse } from './types.gen--Oxc46AH.js';
|
|
2
|
+
export { T as AccessTokenInfo, R as AccessibleRepository, U as Behavior, V as BlobEncoding, W as BlobObject, X as BranchDetails, Y as CommitList, Z as CommitObject, _ as CommitParent, $ as CommitTree, cL as ConfigureGithubSyncData, cN as ConfigureGithubSyncError, a0 as ConfigureGithubSyncRequest, cM as ConfigureGithubSyncResponse, a1 as CreateDomainMappingRequest, a2 as CreateRecordParams, a4 as CreateRepoRequest, a5 as CreateRepositoryRequest, a6 as CustomBuildOptions, P as DeploymentBuildOptions, a7 as DeploymentLogEntry, a9 as DeploymentState, aa as DevServer, ac as DevServerRequest, ad as DevServerStatusRequest, ae as DevServerWatchFilesRequest, af as DnsRecord, ag as DnsRecordData, ah as DnsRecordKind, ai as DomainVerificationRequest, aj as ExecRequest, ak as ExecuteLogEntry, al as ExecuteRunInfo, am as ExecuteRunState, an as FileReadContent, ap as FreestyleCloudstateDeployConfiguration, aq as FreestyleCloudstateDeployErrorResponse, ar as FreestyleDeleteDomainVerificationRequest, as as FreestyleDeployWebErrorResponse, at as FreestyleDeployWebPayload, au as FreestyleDeployWebPayloadV2, av as FreestyleDomainVerificationRequest, aw as FreestyleExecuteScriptParams, ax as FreestyleFile, ay as FreestyleGetLogsResponse, az as FreestyleJavaScriptLog, aA as FreestyleLogResponseObject, aB as FreestyleNetworkPermission, aD as FreestyleSandboxDomainMapping, aE as FreestyleVerifyDomainRequest, aF as GetDefaultBranchResponse, cJ as GetGithubSyncData, cK as GetGithubSyncError, aG as GitCommitPushRequest, aH as GitContents, aJ as GitContentsDirEntryItem, aM as GitReference, aN as GitRepositoryTrigger, aK as GithubRepoSyncConfig, aL as GithubSyncConfigResponse, aQ as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, bx as HandleCreateDomainVerificationData, by as HandleCreateDomainVerificationError, cs as HandleCreateGitTokenData, cu as HandleCreateGitTokenError, ct as HandleCreateGitTokenResponse, dm as HandleCreateGitTriggerData, dn as HandleCreateGitTriggerError, c8 as HandleCreateIdentityError, c7 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cA as HandleCreateRepoData, cC as HandleCreateRepoError, cB as HandleCreateRepoResponse, bt as HandleDeleteDomainMappingData, bu as HandleDeleteDomainMappingError, bz as HandleDeleteDomainVerificationData, bA as HandleDeleteDomainVerificationError, dp as HandleDeleteGitTriggerData, dr as HandleDeleteGitTriggerError, dq as HandleDeleteGitTriggerResponse, c9 as HandleDeleteIdentityData, ca as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cU as HandleDeleteRepoData, cV as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, dx as HandleDeployWebData, dz as HandleDeployWebError, dy as HandleDeployWebResponse, dA as HandleDeployWebV2Data, dC as HandleDeployWebV2Error, dB as HandleDeployWebV2Response, ce as HandleDescribePermissionData, cg as HandleDescribePermissionError, cf as HandleDescribePermissionResponse, bT as HandleDevServerStatusData, bV as HandleDevServerStatusError, bU as HandleDevServerStatusResponse, dh as HandleDownloadTarballData, dj as HandleDownloadTarballError, di as HandleDownloadTarballResponse, ds as HandleDownloadZipData, du as HandleDownloadZipError, dt as HandleDownloadZipResponse, bB as HandleEphemeralDevServerData, bD as HandleEphemeralDevServerError, bC as HandleEphemeralDevServerResponse, bE as HandleExecOnEphemeralDevServerData, bG as HandleExecOnEphemeralDevServerError, bF as HandleExecOnEphemeralDevServerResponse, c1 as HandleExecuteScriptData, c3 as HandleExecuteScriptError, c2 as HandleExecuteScriptResponse, cY as HandleGetBlobData, c_ as HandleGetBlobError, cZ as HandleGetBlobResponse, d2 as HandleGetCommitData, d4 as HandleGetCommitError, d3 as HandleGetCommitResponse, cW as HandleGetContentsData, cX as HandleGetContentsError, cD as HandleGetDefaultBranchData, cF as HandleGetDefaultBranchError, cE as HandleGetDefaultBranchResponse, b$ as HandleGetExecuteRunData, c0 as HandleGetExecuteRunError, dv as HandleGetLogsData, dw as HandleGetLogsError, d5 as HandleGetRefBranchData, d7 as HandleGetRefBranchError, d6 as HandleGetRefBranchResponse, d8 as HandleGetRefTagData, da as HandleGetRefTagError, d9 as HandleGetRefTagResponse, cR as HandleGetRepoInfoData, cT as HandleGetRepoInfoError, cS as HandleGetRepoInfoResponse, db as HandleGetTagData, dd as HandleGetTagError, dc as HandleGetTagResponse, de as HandleGetTreeData, dg as HandleGetTreeError, df as HandleGetTreeResponse, dF as HandleGetWebDeployDetailsData, bN as HandleGitCommitPushData, bP as HandleGitCommitPushError, bO as HandleGitCommitPushResponse, ch as HandleGrantPermissionData, ci as HandleGrantPermissionError, br as HandleInsertDomainMappingData, bs as HandleInsertDomainMappingError, c$ as HandleListCommitsData, d1 as HandleListCommitsError, d0 as HandleListCommitsResponse, Q as HandleListDomainMappingsData, bq as HandleListDomainMappingsError, bv as HandleListDomainVerificationRequestsError, bo as HandleListDomainsData, bp as HandleListDomainsError, bZ as HandleListExecuteRunsData, b_ as HandleListExecuteRunsError, cp as HandleListGitTokensData, cr as HandleListGitTokensError, cq as HandleListGitTokensResponse, dk as HandleListGitTriggersData, dl as HandleListGitTriggersError, c4 as HandleListIdentitiesData, c6 as HandleListIdentitiesError, c5 as HandleListIdentitiesResponse, cb as HandleListPermissionsData, cd as HandleListPermissionsError, cc as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cy as HandleListRepositoriesData, cz as HandleListRepositoriesError, dD as HandleListWebDeploysData, dE as HandleListWebDeploysError, bK as HandleReadFileFromEphemeralDevServerData, bM as HandleReadFileFromEphemeralDevServerError, bL as HandleReadFileFromEphemeralDevServerResponse, cv as HandleRevokeGitTokenData, cx as HandleRevokeGitTokenError, cw as HandleRevokeGitTokenResponse, cj as HandleRevokePermissionData, cl as HandleRevokePermissionError, ck as HandleRevokePermissionResponse, cG as HandleSetDefaultBranchData, cI as HandleSetDefaultBranchError, cH as HandleSetDefaultBranchResponse, bQ as HandleShutdownDevServerData, bS as HandleShutdownDevServerError, bR as HandleShutdownDevServerResponse, cm as HandleUpdatePermissionData, co as HandleUpdatePermissionError, cn as HandleUpdatePermissionResponse, bw as HandleVerifyDomainData, bm as HandleVerifyWildcardData, bn as HandleVerifyWildcardError, bW as HandleWatchDevServerFilesData, bY as HandleWatchDevServerFilesError, bX as HandleWatchDevServerFilesResponse, bH as HandleWriteFileFromEphemeralDevServerData, bJ as HandleWriteFileFromEphemeralDevServerError, bI as HandleWriteFileFromEphemeralDevServerResponse, aR as InternalServerError, aS as ListRecordsResponse, aT as NetworkPermissionData, aU as PortConfig, aV as ReadFileEphemeralDevServerResponses, cO as RemoveGithubSyncData, cQ as RemoveGithubSyncError, cP as RemoveGithubSyncResponse, aW as RepositoryInfo, aX as RepositoryMetadata, aY as RevokeGitTokenRequest, aZ as SetDefaultBranchResponse, a_ as ShutdownDevServerRequest, a$ as Signature, b0 as TagDetails, b1 as TagObject, b2 as TagTarget, b3 as TreeEntry, b5 as TreeObject, b6 as UpdatePermissionRequest, b7 as Visibility, aC as action, aP as action2, aO as event, a8 as kind, ab as kind2, ao as kind3, a3 as type, aI as type2, b4 as type3 } from './types.gen--Oxc46AH.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -196,7 +196,10 @@ declare class FreestyleSandboxes {
|
|
|
196
196
|
name?: string;
|
|
197
197
|
public?: boolean;
|
|
198
198
|
defaultBranch?: string;
|
|
199
|
-
} & (CreateGitRepositorySource | CreateGitRepositoryImport
|
|
199
|
+
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
200
|
+
source: never;
|
|
201
|
+
import: never;
|
|
202
|
+
})): Promise<CreateRepositoryResponseSuccess>;
|
|
200
203
|
/**
|
|
201
204
|
* List git repositories.
|
|
202
205
|
*/
|
|
@@ -292,8 +295,9 @@ declare class FreestyleSandboxes {
|
|
|
292
295
|
/**
|
|
293
296
|
* Delete a git trigger.
|
|
294
297
|
*/
|
|
295
|
-
deleteGitTrigger({ triggerId }: {
|
|
298
|
+
deleteGitTrigger({ triggerId, repo, }: {
|
|
296
299
|
triggerId: string;
|
|
300
|
+
repo: string;
|
|
297
301
|
}): Promise<void>;
|
|
298
302
|
/**
|
|
299
303
|
* Set the default branch for a git repository.
|
|
@@ -356,6 +360,11 @@ declare class FreestyleSandboxes {
|
|
|
356
360
|
envVars?: Record<string, string>;
|
|
357
361
|
computeClass?: string;
|
|
358
362
|
timeout?: number;
|
|
363
|
+
gitRef?: string;
|
|
364
|
+
ports?: {
|
|
365
|
+
port: number;
|
|
366
|
+
targetPort: number;
|
|
367
|
+
}[];
|
|
359
368
|
}): Promise<FreestyleDevServer>;
|
|
360
369
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
361
370
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -82,13 +82,13 @@ const handleExecOnEphemeralDevServer = (options) => {
|
|
|
82
82
|
const handleWriteFileFromEphemeralDevServer = (options) => {
|
|
83
83
|
return (options?.client ?? client).put({
|
|
84
84
|
...options,
|
|
85
|
-
url: "/ephemeral/v1/dev-servers/files/{
|
|
85
|
+
url: "/ephemeral/v1/dev-servers/files/{filepath}"
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
const handleReadFileFromEphemeralDevServer = (options) => {
|
|
89
89
|
return (options?.client ?? client).post({
|
|
90
90
|
...options,
|
|
91
|
-
url: "/ephemeral/v1/dev-servers/files/{
|
|
91
|
+
url: "/ephemeral/v1/dev-servers/files/{filepath}"
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
const handleGitCommitPush = (options) => {
|
|
@@ -238,7 +238,7 @@ const handleDeleteRepo = (options) => {
|
|
|
238
238
|
const handleGetContents = (options) => {
|
|
239
239
|
return (options?.client ?? client).get({
|
|
240
240
|
...options,
|
|
241
|
-
url: "/git/v1/repo/{repo}/contents/{
|
|
241
|
+
url: "/git/v1/repo/{repo}/contents/{path}"
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
244
|
const handleListGitTriggers = (options) => {
|
|
@@ -932,11 +932,15 @@ ${response.error.message}`);
|
|
|
932
932
|
/**
|
|
933
933
|
* Delete a git trigger.
|
|
934
934
|
*/
|
|
935
|
-
async deleteGitTrigger({
|
|
935
|
+
async deleteGitTrigger({
|
|
936
|
+
triggerId,
|
|
937
|
+
repo
|
|
938
|
+
}) {
|
|
936
939
|
const response = await handleDeleteGitTrigger({
|
|
937
940
|
client: this.client,
|
|
938
941
|
path: {
|
|
939
|
-
trigger: triggerId
|
|
942
|
+
trigger: triggerId,
|
|
943
|
+
repo
|
|
940
944
|
}
|
|
941
945
|
});
|
|
942
946
|
if (response.data) {
|
|
@@ -995,6 +999,7 @@ ${response.error.message}`);
|
|
|
995
999
|
client: this.client,
|
|
996
1000
|
path: {
|
|
997
1001
|
repo: repoId,
|
|
1002
|
+
path: path ?? "",
|
|
998
1003
|
"*path": path ?? null
|
|
999
1004
|
},
|
|
1000
1005
|
query: {
|
|
@@ -1109,7 +1114,8 @@ ${response.error.message}`);
|
|
|
1109
1114
|
const data = response.data;
|
|
1110
1115
|
const devServerInstance = {
|
|
1111
1116
|
repoId: options.repoId || options.repo || "",
|
|
1112
|
-
kind: "repo"
|
|
1117
|
+
kind: "repo",
|
|
1118
|
+
gitRef: options.gitRef
|
|
1113
1119
|
};
|
|
1114
1120
|
const client = this.client;
|
|
1115
1121
|
const that = this;
|
|
@@ -1166,6 +1172,7 @@ ${response.error.message}`);
|
|
|
1166
1172
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1167
1173
|
client,
|
|
1168
1174
|
path: {
|
|
1175
|
+
filepath: path,
|
|
1169
1176
|
"*filepath": path
|
|
1170
1177
|
},
|
|
1171
1178
|
body: {
|
|
@@ -1229,6 +1236,7 @@ ${response.error.message}`);
|
|
|
1229
1236
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1230
1237
|
client,
|
|
1231
1238
|
path: {
|
|
1239
|
+
filepath: path,
|
|
1232
1240
|
"*filepath": path
|
|
1233
1241
|
},
|
|
1234
1242
|
body: {
|
|
@@ -1249,6 +1257,7 @@ ${response.error.message}`);
|
|
|
1249
1257
|
const response2 = await handleWriteFileFromEphemeralDevServer({
|
|
1250
1258
|
client,
|
|
1251
1259
|
path: {
|
|
1260
|
+
filepath: path,
|
|
1252
1261
|
"*filepath": path
|
|
1253
1262
|
},
|
|
1254
1263
|
body: {
|