freestyle-sandboxes 0.0.86 → 0.0.88
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 +23 -3
- package/dist/inde.d.mts +23 -3
- package/dist/index.cjs +85 -1
- package/dist/index.d.cts +23 -3
- package/dist/index.d.mts +23 -3
- package/dist/index.mjs +85 -1
- 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-CWa4Mw0J.d.ts +1493 -0
- package/dist/utils/inde.d.cts +1 -1
- package/dist/utils/inde.d.mts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +12 -2
- package/openapi/types.gen.ts +36 -0
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +81 -1
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, c4 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-CWa4Mw0J.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, c4 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-CWa4Mw0J.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, c4 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-CWa4Mw0J.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, c4 as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-CWa4Mw0J.js';
|
|
2
2
|
import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'node:http';
|
package/dist/inde.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as 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, 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-CWa4Mw0J.js';
|
|
2
|
+
export { R as AccessTokenInfo, Q as AccessibleRepository, T as Behavior, U as BlobEncoding, V as BlobObject, W as BranchDetails, X as CommitObject, Y as CommitParent, Z as CommitTree, cM as ConfigureGithubSyncData, cO as ConfigureGithubSyncError, _ as ConfigureGithubSyncRequest, cN as ConfigureGithubSyncResponse, $ as CreateDomainMappingRequest, a0 as CreateRecordParams, a2 as CreateRepoRequest, a3 as CreateRepositoryRequest, a5 as CustomBuildOptions, P as DeploymentBuildOptions, a6 as DeploymentLogEntry, a8 as DeploymentState, a9 as DevServer, ab as DevServerRequest, ac as DevServerStatusRequest, ad as DevServerWatchFilesRequest, ae as DnsRecord, af as DnsRecordData, ag as DnsRecordKind, ah as DomainVerificationRequest, ai as ExecRequest, aj as ExecuteLogEntry, ak as ExecuteRunInfo, al as ExecuteRunState, am as FileReadContent, ao as FreestyleCloudstateDeployConfiguration, ap as FreestyleCloudstateDeployErrorResponse, aq as FreestyleDeleteDomainVerificationRequest, ar as FreestyleDeployWebErrorResponse, as as FreestyleDeployWebPayload, at as FreestyleDeployWebPayloadV2, au as FreestyleDomainVerificationRequest, av as FreestyleExecuteScriptParams, aw as FreestyleFile, ax as FreestyleGetLogsResponse, ay as FreestyleJavaScriptLog, az as FreestyleLogResponseObject, aA as FreestyleNetworkPermission, aC as FreestyleSandboxDomainMapping, aD as FreestyleVerifyDomainRequest, aE as GetDefaultBranchResponse, cK as GetGithubSyncData, cL as GetGithubSyncError, aF as GitCommitPushRequest, aG as GitContents, aI as GitContentsDirEntryItem, aL as GitReference, aM as GitRepositoryTrigger, aJ as GithubRepoSyncConfig, aK as GithubSyncConfigResponse, aP as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, by as HandleCreateDomainVerificationData, bz as HandleCreateDomainVerificationError, ct as HandleCreateGitTokenData, cv as HandleCreateGitTokenError, cu as HandleCreateGitTokenResponse, dh as HandleCreateGitTriggerData, di as HandleCreateGitTriggerError, c9 as HandleCreateIdentityError, c8 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cB as HandleCreateRepoData, cD as HandleCreateRepoError, cC as HandleCreateRepoResponse, bu as HandleDeleteDomainMappingData, bv as HandleDeleteDomainMappingError, bA as HandleDeleteDomainVerificationData, bB as HandleDeleteDomainVerificationError, dj as HandleDeleteGitTriggerData, dl as HandleDeleteGitTriggerError, dk as HandleDeleteGitTriggerResponse, ca as HandleDeleteIdentityData, cb as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cS as HandleDeleteRepoData, cT as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, ds as HandleDeployWebData, du as HandleDeployWebError, dt as HandleDeployWebResponse, dv as HandleDeployWebV2Data, dx as HandleDeployWebV2Error, dw as HandleDeployWebV2Response, cf as HandleDescribePermissionData, ch as HandleDescribePermissionError, cg as HandleDescribePermissionResponse, bU as HandleDevServerStatusData, bW as HandleDevServerStatusError, bV as HandleDevServerStatusResponse, dc as HandleDownloadTarballData, de as HandleDownloadTarballError, dd as HandleDownloadTarballResponse, dm as HandleDownloadZipData, dp as HandleDownloadZipError, dn as HandleDownloadZipResponse, bC as HandleEphemeralDevServerData, bE as HandleEphemeralDevServerError, bD as HandleEphemeralDevServerResponse, bF as HandleExecOnEphemeralDevServerData, bH as HandleExecOnEphemeralDevServerError, bG as HandleExecOnEphemeralDevServerResponse, c2 as HandleExecuteScriptData, c4 as HandleExecuteScriptError, c3 as HandleExecuteScriptResponse, cW as HandleGetBlobData, cY as HandleGetBlobError, cX as HandleGetBlobResponse, cZ as HandleGetCommitData, c$ as HandleGetCommitError, c_ as HandleGetCommitResponse, cU as HandleGetContentsData, cV as HandleGetContentsError, cE as HandleGetDefaultBranchData, cG as HandleGetDefaultBranchError, cF as HandleGetDefaultBranchResponse, c0 as HandleGetExecuteRunData, c1 as HandleGetExecuteRunError, dq as HandleGetLogsData, dr as HandleGetLogsError, d0 as HandleGetRefBranchData, d2 as HandleGetRefBranchError, d1 as HandleGetRefBranchResponse, d3 as HandleGetRefTagData, d5 as HandleGetRefTagError, d4 as HandleGetRefTagResponse, d6 as HandleGetTagData, d8 as HandleGetTagError, d7 as HandleGetTagResponse, d9 as HandleGetTreeData, db as HandleGetTreeError, da as HandleGetTreeResponse, dA as HandleGetWebDeployDetailsData, bO as HandleGitCommitPushData, bQ as HandleGitCommitPushError, bP as HandleGitCommitPushResponse, ci as HandleGrantPermissionData, cj as HandleGrantPermissionError, bs as HandleInsertDomainMappingData, bt as HandleInsertDomainMappingError, bm as HandleListDomainMappingsData, bn as HandleListDomainMappingsError, bw as HandleListDomainVerificationRequestsError, bq as HandleListDomainsData, br as HandleListDomainsError, b_ as HandleListExecuteRunsData, b$ as HandleListExecuteRunsError, cq as HandleListGitTokensData, cs as HandleListGitTokensError, cr as HandleListGitTokensResponse, df as HandleListGitTriggersData, dg as HandleListGitTriggersError, c5 as HandleListIdentitiesData, c7 as HandleListIdentitiesError, c6 as HandleListIdentitiesResponse, cc as HandleListPermissionsData, ce as HandleListPermissionsError, cd as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cz as HandleListRepositoriesData, cA as HandleListRepositoriesError, dy as HandleListWebDeploysData, dz as HandleListWebDeploysError, bL as HandleReadFileFromEphemeralDevServerData, bN as HandleReadFileFromEphemeralDevServerError, bM as HandleReadFileFromEphemeralDevServerResponse, cw as HandleRevokeGitTokenData, cy as HandleRevokeGitTokenError, cx as HandleRevokeGitTokenResponse, ck as HandleRevokePermissionData, cm as HandleRevokePermissionError, cl as HandleRevokePermissionResponse, cH as HandleSetDefaultBranchData, cJ as HandleSetDefaultBranchError, cI as HandleSetDefaultBranchResponse, bR as HandleShutdownDevServerData, bT as HandleShutdownDevServerError, bS as HandleShutdownDevServerResponse, cn as HandleUpdatePermissionData, cp as HandleUpdatePermissionError, co as HandleUpdatePermissionResponse, bx as HandleVerifyDomainData, bo as HandleVerifyWildcardData, bp as HandleVerifyWildcardError, bX as HandleWatchDevServerFilesData, bZ as HandleWatchDevServerFilesError, bY as HandleWatchDevServerFilesResponse, bI as HandleWriteFileFromEphemeralDevServerData, bK as HandleWriteFileFromEphemeralDevServerError, bJ as HandleWriteFileFromEphemeralDevServerResponse, aQ as InternalServerError, aR as ListRecordsResponse, aS as NetworkPermissionData, aT as ReadFileEphemeralDevServerResponses, aU as ReadFileRequest, cP as RemoveGithubSyncData, cR as RemoveGithubSyncError, cQ as RemoveGithubSyncResponse, aV as RepositoryInfo, aW as RepositoryMetadata, aX as RevokeGitTokenRequest, aY as SetDefaultBranchResponse, aZ as ShutdownDevServerRequest, a_ as Signature, a$ as TagDetails, b0 as TagObject, b1 as TagTarget, b2 as TreeEntry, b4 as TreeObject, b5 as UpdatePermissionRequest, b6 as Visibility, b7 as WriteFileRequest, aB as action, aO as action2, aN as event, a7 as kind, aa as kind2, an as kind3, a1 as type, a4 as type2, aH as type3, b3 as type4 } from './types.gen-CWa4Mw0J.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -170,6 +170,26 @@ declare class FreestyleSandboxes {
|
|
|
170
170
|
getExecuteRun(id: string): Promise<HandleGetExecuteRunResponse>;
|
|
171
171
|
/** Provision a wildcard certificate for domain. */
|
|
172
172
|
provisionWildcard(domain: string): Promise<HandleVerifyWildcardResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Insert a domain mapping for a deployment.
|
|
175
|
+
*/
|
|
176
|
+
insertDomainMapping({ domain, deploymentId, }: {
|
|
177
|
+
domain: string;
|
|
178
|
+
deploymentId: string;
|
|
179
|
+
}): Promise<HandleInsertDomainMappingResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Remove a domain mapping for a deployment.
|
|
182
|
+
*/
|
|
183
|
+
removeDomainMapping({ domain, deploymentId, }: {
|
|
184
|
+
domain: string;
|
|
185
|
+
deploymentId: string;
|
|
186
|
+
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
|
+
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
|
+
domain?: string;
|
|
189
|
+
domainOwnership?: string;
|
|
190
|
+
limit?: number;
|
|
191
|
+
offset?: number;
|
|
192
|
+
}): Promise<HandleListDomainMappingsResponse>;
|
|
173
193
|
/**
|
|
174
194
|
* Create a new git repository.
|
|
175
195
|
*/
|
|
@@ -341,4 +361,4 @@ declare class FreestyleSandboxes {
|
|
|
341
361
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
342
362
|
}
|
|
343
363
|
|
|
344
|
-
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, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
364
|
+
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 };
|
package/dist/inde.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as 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, 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-CWa4Mw0J.js';
|
|
2
|
+
export { R as AccessTokenInfo, Q as AccessibleRepository, T as Behavior, U as BlobEncoding, V as BlobObject, W as BranchDetails, X as CommitObject, Y as CommitParent, Z as CommitTree, cM as ConfigureGithubSyncData, cO as ConfigureGithubSyncError, _ as ConfigureGithubSyncRequest, cN as ConfigureGithubSyncResponse, $ as CreateDomainMappingRequest, a0 as CreateRecordParams, a2 as CreateRepoRequest, a3 as CreateRepositoryRequest, a5 as CustomBuildOptions, P as DeploymentBuildOptions, a6 as DeploymentLogEntry, a8 as DeploymentState, a9 as DevServer, ab as DevServerRequest, ac as DevServerStatusRequest, ad as DevServerWatchFilesRequest, ae as DnsRecord, af as DnsRecordData, ag as DnsRecordKind, ah as DomainVerificationRequest, ai as ExecRequest, aj as ExecuteLogEntry, ak as ExecuteRunInfo, al as ExecuteRunState, am as FileReadContent, ao as FreestyleCloudstateDeployConfiguration, ap as FreestyleCloudstateDeployErrorResponse, aq as FreestyleDeleteDomainVerificationRequest, ar as FreestyleDeployWebErrorResponse, as as FreestyleDeployWebPayload, at as FreestyleDeployWebPayloadV2, au as FreestyleDomainVerificationRequest, av as FreestyleExecuteScriptParams, aw as FreestyleFile, ax as FreestyleGetLogsResponse, ay as FreestyleJavaScriptLog, az as FreestyleLogResponseObject, aA as FreestyleNetworkPermission, aC as FreestyleSandboxDomainMapping, aD as FreestyleVerifyDomainRequest, aE as GetDefaultBranchResponse, cK as GetGithubSyncData, cL as GetGithubSyncError, aF as GitCommitPushRequest, aG as GitContents, aI as GitContentsDirEntryItem, aL as GitReference, aM as GitRepositoryTrigger, aJ as GithubRepoSyncConfig, aK as GithubSyncConfigResponse, aP as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, by as HandleCreateDomainVerificationData, bz as HandleCreateDomainVerificationError, ct as HandleCreateGitTokenData, cv as HandleCreateGitTokenError, cu as HandleCreateGitTokenResponse, dh as HandleCreateGitTriggerData, di as HandleCreateGitTriggerError, c9 as HandleCreateIdentityError, c8 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cB as HandleCreateRepoData, cD as HandleCreateRepoError, cC as HandleCreateRepoResponse, bu as HandleDeleteDomainMappingData, bv as HandleDeleteDomainMappingError, bA as HandleDeleteDomainVerificationData, bB as HandleDeleteDomainVerificationError, dj as HandleDeleteGitTriggerData, dl as HandleDeleteGitTriggerError, dk as HandleDeleteGitTriggerResponse, ca as HandleDeleteIdentityData, cb as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cS as HandleDeleteRepoData, cT as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, ds as HandleDeployWebData, du as HandleDeployWebError, dt as HandleDeployWebResponse, dv as HandleDeployWebV2Data, dx as HandleDeployWebV2Error, dw as HandleDeployWebV2Response, cf as HandleDescribePermissionData, ch as HandleDescribePermissionError, cg as HandleDescribePermissionResponse, bU as HandleDevServerStatusData, bW as HandleDevServerStatusError, bV as HandleDevServerStatusResponse, dc as HandleDownloadTarballData, de as HandleDownloadTarballError, dd as HandleDownloadTarballResponse, dm as HandleDownloadZipData, dp as HandleDownloadZipError, dn as HandleDownloadZipResponse, bC as HandleEphemeralDevServerData, bE as HandleEphemeralDevServerError, bD as HandleEphemeralDevServerResponse, bF as HandleExecOnEphemeralDevServerData, bH as HandleExecOnEphemeralDevServerError, bG as HandleExecOnEphemeralDevServerResponse, c2 as HandleExecuteScriptData, c4 as HandleExecuteScriptError, c3 as HandleExecuteScriptResponse, cW as HandleGetBlobData, cY as HandleGetBlobError, cX as HandleGetBlobResponse, cZ as HandleGetCommitData, c$ as HandleGetCommitError, c_ as HandleGetCommitResponse, cU as HandleGetContentsData, cV as HandleGetContentsError, cE as HandleGetDefaultBranchData, cG as HandleGetDefaultBranchError, cF as HandleGetDefaultBranchResponse, c0 as HandleGetExecuteRunData, c1 as HandleGetExecuteRunError, dq as HandleGetLogsData, dr as HandleGetLogsError, d0 as HandleGetRefBranchData, d2 as HandleGetRefBranchError, d1 as HandleGetRefBranchResponse, d3 as HandleGetRefTagData, d5 as HandleGetRefTagError, d4 as HandleGetRefTagResponse, d6 as HandleGetTagData, d8 as HandleGetTagError, d7 as HandleGetTagResponse, d9 as HandleGetTreeData, db as HandleGetTreeError, da as HandleGetTreeResponse, dA as HandleGetWebDeployDetailsData, bO as HandleGitCommitPushData, bQ as HandleGitCommitPushError, bP as HandleGitCommitPushResponse, ci as HandleGrantPermissionData, cj as HandleGrantPermissionError, bs as HandleInsertDomainMappingData, bt as HandleInsertDomainMappingError, bm as HandleListDomainMappingsData, bn as HandleListDomainMappingsError, bw as HandleListDomainVerificationRequestsError, bq as HandleListDomainsData, br as HandleListDomainsError, b_ as HandleListExecuteRunsData, b$ as HandleListExecuteRunsError, cq as HandleListGitTokensData, cs as HandleListGitTokensError, cr as HandleListGitTokensResponse, df as HandleListGitTriggersData, dg as HandleListGitTriggersError, c5 as HandleListIdentitiesData, c7 as HandleListIdentitiesError, c6 as HandleListIdentitiesResponse, cc as HandleListPermissionsData, ce as HandleListPermissionsError, cd as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cz as HandleListRepositoriesData, cA as HandleListRepositoriesError, dy as HandleListWebDeploysData, dz as HandleListWebDeploysError, bL as HandleReadFileFromEphemeralDevServerData, bN as HandleReadFileFromEphemeralDevServerError, bM as HandleReadFileFromEphemeralDevServerResponse, cw as HandleRevokeGitTokenData, cy as HandleRevokeGitTokenError, cx as HandleRevokeGitTokenResponse, ck as HandleRevokePermissionData, cm as HandleRevokePermissionError, cl as HandleRevokePermissionResponse, cH as HandleSetDefaultBranchData, cJ as HandleSetDefaultBranchError, cI as HandleSetDefaultBranchResponse, bR as HandleShutdownDevServerData, bT as HandleShutdownDevServerError, bS as HandleShutdownDevServerResponse, cn as HandleUpdatePermissionData, cp as HandleUpdatePermissionError, co as HandleUpdatePermissionResponse, bx as HandleVerifyDomainData, bo as HandleVerifyWildcardData, bp as HandleVerifyWildcardError, bX as HandleWatchDevServerFilesData, bZ as HandleWatchDevServerFilesError, bY as HandleWatchDevServerFilesResponse, bI as HandleWriteFileFromEphemeralDevServerData, bK as HandleWriteFileFromEphemeralDevServerError, bJ as HandleWriteFileFromEphemeralDevServerResponse, aQ as InternalServerError, aR as ListRecordsResponse, aS as NetworkPermissionData, aT as ReadFileEphemeralDevServerResponses, aU as ReadFileRequest, cP as RemoveGithubSyncData, cR as RemoveGithubSyncError, cQ as RemoveGithubSyncResponse, aV as RepositoryInfo, aW as RepositoryMetadata, aX as RevokeGitTokenRequest, aY as SetDefaultBranchResponse, aZ as ShutdownDevServerRequest, a_ as Signature, a$ as TagDetails, b0 as TagObject, b1 as TagTarget, b2 as TreeEntry, b4 as TreeObject, b5 as UpdatePermissionRequest, b6 as Visibility, b7 as WriteFileRequest, aB as action, aO as action2, aN as event, a7 as kind, aa as kind2, an as kind3, a1 as type, a4 as type2, aH as type3, b3 as type4 } from './types.gen-CWa4Mw0J.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -170,6 +170,26 @@ declare class FreestyleSandboxes {
|
|
|
170
170
|
getExecuteRun(id: string): Promise<HandleGetExecuteRunResponse>;
|
|
171
171
|
/** Provision a wildcard certificate for domain. */
|
|
172
172
|
provisionWildcard(domain: string): Promise<HandleVerifyWildcardResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Insert a domain mapping for a deployment.
|
|
175
|
+
*/
|
|
176
|
+
insertDomainMapping({ domain, deploymentId, }: {
|
|
177
|
+
domain: string;
|
|
178
|
+
deploymentId: string;
|
|
179
|
+
}): Promise<HandleInsertDomainMappingResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Remove a domain mapping for a deployment.
|
|
182
|
+
*/
|
|
183
|
+
removeDomainMapping({ domain, deploymentId, }: {
|
|
184
|
+
domain: string;
|
|
185
|
+
deploymentId: string;
|
|
186
|
+
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
|
+
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
|
+
domain?: string;
|
|
189
|
+
domainOwnership?: string;
|
|
190
|
+
limit?: number;
|
|
191
|
+
offset?: number;
|
|
192
|
+
}): Promise<HandleListDomainMappingsResponse>;
|
|
173
193
|
/**
|
|
174
194
|
* Create a new git repository.
|
|
175
195
|
*/
|
|
@@ -341,4 +361,4 @@ declare class FreestyleSandboxes {
|
|
|
341
361
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
342
362
|
}
|
|
343
363
|
|
|
344
|
-
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, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
364
|
+
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -15,6 +15,12 @@ const handleBackupCloudstate = (options) => {
|
|
|
15
15
|
url: "/cloudstate/v1/projects/{id}/backup"
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
+
const handleListDomainMappings = (options) => {
|
|
19
|
+
return (options?.client ?? client).get({
|
|
20
|
+
...options,
|
|
21
|
+
url: "/domains/mappings"
|
|
22
|
+
});
|
|
23
|
+
};
|
|
18
24
|
const handleVerifyWildcard = (options) => {
|
|
19
25
|
return (options?.client ?? client).post({
|
|
20
26
|
...options,
|
|
@@ -27,6 +33,18 @@ const handleListDomains = (options) => {
|
|
|
27
33
|
url: "/domains/v1/domains"
|
|
28
34
|
});
|
|
29
35
|
};
|
|
36
|
+
const handleInsertDomainMapping = (options) => {
|
|
37
|
+
return (options?.client ?? client).post({
|
|
38
|
+
...options,
|
|
39
|
+
url: "/domains/v1/mappings/{domain}"
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const handleDeleteDomainMapping = (options) => {
|
|
43
|
+
return (options?.client ?? client).delete({
|
|
44
|
+
...options,
|
|
45
|
+
url: "/domains/v1/mappings/{domain}"
|
|
46
|
+
});
|
|
47
|
+
};
|
|
30
48
|
const handleListDomainVerificationRequests = (options) => {
|
|
31
49
|
return (options?.client ?? client).get({
|
|
32
50
|
...options,
|
|
@@ -539,6 +557,72 @@ ${response.error.message}`);
|
|
|
539
557
|
`Failed to provision wildcard for domain ${domain}: ${response.error.message}`
|
|
540
558
|
);
|
|
541
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* Insert a domain mapping for a deployment.
|
|
562
|
+
*/
|
|
563
|
+
async insertDomainMapping({
|
|
564
|
+
domain,
|
|
565
|
+
deploymentId
|
|
566
|
+
}) {
|
|
567
|
+
const response = await handleInsertDomainMapping({
|
|
568
|
+
client: this.client,
|
|
569
|
+
path: {
|
|
570
|
+
domain
|
|
571
|
+
},
|
|
572
|
+
body: {
|
|
573
|
+
deploymentId
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
if (response.data) {
|
|
577
|
+
return response.data;
|
|
578
|
+
}
|
|
579
|
+
throw new Error(
|
|
580
|
+
`Failed to insert domain mapping for domain ${domain} and deployment ${deploymentId}: ${response.error.message}`
|
|
581
|
+
);
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Remove a domain mapping for a deployment.
|
|
585
|
+
*/
|
|
586
|
+
async removeDomainMapping({
|
|
587
|
+
domain,
|
|
588
|
+
deploymentId
|
|
589
|
+
}) {
|
|
590
|
+
const response = await handleDeleteDomainMapping({
|
|
591
|
+
client: this.client,
|
|
592
|
+
path: {
|
|
593
|
+
domain
|
|
594
|
+
},
|
|
595
|
+
body: {
|
|
596
|
+
deploymentId
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
if (response.data) {
|
|
600
|
+
return response.data;
|
|
601
|
+
}
|
|
602
|
+
throw new Error(
|
|
603
|
+
`Failed to remove domain mapping for domain ${domain} and deployment ${deploymentId}: ${response.error.message}`
|
|
604
|
+
);
|
|
605
|
+
}
|
|
606
|
+
async listDomainMappings({
|
|
607
|
+
domain,
|
|
608
|
+
domainOwnership,
|
|
609
|
+
limit = 10,
|
|
610
|
+
offset = 0
|
|
611
|
+
}) {
|
|
612
|
+
const response = await handleListDomainMappings({
|
|
613
|
+
client: this.client,
|
|
614
|
+
query: {
|
|
615
|
+
limit,
|
|
616
|
+
offset,
|
|
617
|
+
domain,
|
|
618
|
+
domainOwnership
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
if (response.data) {
|
|
622
|
+
return response.data;
|
|
623
|
+
}
|
|
624
|
+
throw new Error(`Failed to list domain mappings: ${response.error}`);
|
|
625
|
+
}
|
|
542
626
|
/**
|
|
543
627
|
* Create a new git repository.
|
|
544
628
|
*/
|
|
@@ -1086,7 +1170,7 @@ ${response.error.message}`);
|
|
|
1086
1170
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1087
1171
|
client,
|
|
1088
1172
|
path: {
|
|
1089
|
-
filepath: path
|
|
1173
|
+
"*filepath": path
|
|
1090
1174
|
},
|
|
1091
1175
|
body: {
|
|
1092
1176
|
devServer: devServerInstance,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as 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, 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-CWa4Mw0J.js';
|
|
2
|
+
export { R as AccessTokenInfo, Q as AccessibleRepository, T as Behavior, U as BlobEncoding, V as BlobObject, W as BranchDetails, X as CommitObject, Y as CommitParent, Z as CommitTree, cM as ConfigureGithubSyncData, cO as ConfigureGithubSyncError, _ as ConfigureGithubSyncRequest, cN as ConfigureGithubSyncResponse, $ as CreateDomainMappingRequest, a0 as CreateRecordParams, a2 as CreateRepoRequest, a3 as CreateRepositoryRequest, a5 as CustomBuildOptions, P as DeploymentBuildOptions, a6 as DeploymentLogEntry, a8 as DeploymentState, a9 as DevServer, ab as DevServerRequest, ac as DevServerStatusRequest, ad as DevServerWatchFilesRequest, ae as DnsRecord, af as DnsRecordData, ag as DnsRecordKind, ah as DomainVerificationRequest, ai as ExecRequest, aj as ExecuteLogEntry, ak as ExecuteRunInfo, al as ExecuteRunState, am as FileReadContent, ao as FreestyleCloudstateDeployConfiguration, ap as FreestyleCloudstateDeployErrorResponse, aq as FreestyleDeleteDomainVerificationRequest, ar as FreestyleDeployWebErrorResponse, as as FreestyleDeployWebPayload, at as FreestyleDeployWebPayloadV2, au as FreestyleDomainVerificationRequest, av as FreestyleExecuteScriptParams, aw as FreestyleFile, ax as FreestyleGetLogsResponse, ay as FreestyleJavaScriptLog, az as FreestyleLogResponseObject, aA as FreestyleNetworkPermission, aC as FreestyleSandboxDomainMapping, aD as FreestyleVerifyDomainRequest, aE as GetDefaultBranchResponse, cK as GetGithubSyncData, cL as GetGithubSyncError, aF as GitCommitPushRequest, aG as GitContents, aI as GitContentsDirEntryItem, aL as GitReference, aM as GitRepositoryTrigger, aJ as GithubRepoSyncConfig, aK as GithubSyncConfigResponse, aP as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, by as HandleCreateDomainVerificationData, bz as HandleCreateDomainVerificationError, ct as HandleCreateGitTokenData, cv as HandleCreateGitTokenError, cu as HandleCreateGitTokenResponse, dh as HandleCreateGitTriggerData, di as HandleCreateGitTriggerError, c9 as HandleCreateIdentityError, c8 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cB as HandleCreateRepoData, cD as HandleCreateRepoError, cC as HandleCreateRepoResponse, bu as HandleDeleteDomainMappingData, bv as HandleDeleteDomainMappingError, bA as HandleDeleteDomainVerificationData, bB as HandleDeleteDomainVerificationError, dj as HandleDeleteGitTriggerData, dl as HandleDeleteGitTriggerError, dk as HandleDeleteGitTriggerResponse, ca as HandleDeleteIdentityData, cb as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cS as HandleDeleteRepoData, cT as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, ds as HandleDeployWebData, du as HandleDeployWebError, dt as HandleDeployWebResponse, dv as HandleDeployWebV2Data, dx as HandleDeployWebV2Error, dw as HandleDeployWebV2Response, cf as HandleDescribePermissionData, ch as HandleDescribePermissionError, cg as HandleDescribePermissionResponse, bU as HandleDevServerStatusData, bW as HandleDevServerStatusError, bV as HandleDevServerStatusResponse, dc as HandleDownloadTarballData, de as HandleDownloadTarballError, dd as HandleDownloadTarballResponse, dm as HandleDownloadZipData, dp as HandleDownloadZipError, dn as HandleDownloadZipResponse, bC as HandleEphemeralDevServerData, bE as HandleEphemeralDevServerError, bD as HandleEphemeralDevServerResponse, bF as HandleExecOnEphemeralDevServerData, bH as HandleExecOnEphemeralDevServerError, bG as HandleExecOnEphemeralDevServerResponse, c2 as HandleExecuteScriptData, c4 as HandleExecuteScriptError, c3 as HandleExecuteScriptResponse, cW as HandleGetBlobData, cY as HandleGetBlobError, cX as HandleGetBlobResponse, cZ as HandleGetCommitData, c$ as HandleGetCommitError, c_ as HandleGetCommitResponse, cU as HandleGetContentsData, cV as HandleGetContentsError, cE as HandleGetDefaultBranchData, cG as HandleGetDefaultBranchError, cF as HandleGetDefaultBranchResponse, c0 as HandleGetExecuteRunData, c1 as HandleGetExecuteRunError, dq as HandleGetLogsData, dr as HandleGetLogsError, d0 as HandleGetRefBranchData, d2 as HandleGetRefBranchError, d1 as HandleGetRefBranchResponse, d3 as HandleGetRefTagData, d5 as HandleGetRefTagError, d4 as HandleGetRefTagResponse, d6 as HandleGetTagData, d8 as HandleGetTagError, d7 as HandleGetTagResponse, d9 as HandleGetTreeData, db as HandleGetTreeError, da as HandleGetTreeResponse, dA as HandleGetWebDeployDetailsData, bO as HandleGitCommitPushData, bQ as HandleGitCommitPushError, bP as HandleGitCommitPushResponse, ci as HandleGrantPermissionData, cj as HandleGrantPermissionError, bs as HandleInsertDomainMappingData, bt as HandleInsertDomainMappingError, bm as HandleListDomainMappingsData, bn as HandleListDomainMappingsError, bw as HandleListDomainVerificationRequestsError, bq as HandleListDomainsData, br as HandleListDomainsError, b_ as HandleListExecuteRunsData, b$ as HandleListExecuteRunsError, cq as HandleListGitTokensData, cs as HandleListGitTokensError, cr as HandleListGitTokensResponse, df as HandleListGitTriggersData, dg as HandleListGitTriggersError, c5 as HandleListIdentitiesData, c7 as HandleListIdentitiesError, c6 as HandleListIdentitiesResponse, cc as HandleListPermissionsData, ce as HandleListPermissionsError, cd as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cz as HandleListRepositoriesData, cA as HandleListRepositoriesError, dy as HandleListWebDeploysData, dz as HandleListWebDeploysError, bL as HandleReadFileFromEphemeralDevServerData, bN as HandleReadFileFromEphemeralDevServerError, bM as HandleReadFileFromEphemeralDevServerResponse, cw as HandleRevokeGitTokenData, cy as HandleRevokeGitTokenError, cx as HandleRevokeGitTokenResponse, ck as HandleRevokePermissionData, cm as HandleRevokePermissionError, cl as HandleRevokePermissionResponse, cH as HandleSetDefaultBranchData, cJ as HandleSetDefaultBranchError, cI as HandleSetDefaultBranchResponse, bR as HandleShutdownDevServerData, bT as HandleShutdownDevServerError, bS as HandleShutdownDevServerResponse, cn as HandleUpdatePermissionData, cp as HandleUpdatePermissionError, co as HandleUpdatePermissionResponse, bx as HandleVerifyDomainData, bo as HandleVerifyWildcardData, bp as HandleVerifyWildcardError, bX as HandleWatchDevServerFilesData, bZ as HandleWatchDevServerFilesError, bY as HandleWatchDevServerFilesResponse, bI as HandleWriteFileFromEphemeralDevServerData, bK as HandleWriteFileFromEphemeralDevServerError, bJ as HandleWriteFileFromEphemeralDevServerResponse, aQ as InternalServerError, aR as ListRecordsResponse, aS as NetworkPermissionData, aT as ReadFileEphemeralDevServerResponses, aU as ReadFileRequest, cP as RemoveGithubSyncData, cR as RemoveGithubSyncError, cQ as RemoveGithubSyncResponse, aV as RepositoryInfo, aW as RepositoryMetadata, aX as RevokeGitTokenRequest, aY as SetDefaultBranchResponse, aZ as ShutdownDevServerRequest, a_ as Signature, a$ as TagDetails, b0 as TagObject, b1 as TagTarget, b2 as TreeEntry, b4 as TreeObject, b5 as UpdatePermissionRequest, b6 as Visibility, b7 as WriteFileRequest, aB as action, aO as action2, aN as event, a7 as kind, aa as kind2, an as kind3, a1 as type, a4 as type2, aH as type3, b3 as type4 } from './types.gen-CWa4Mw0J.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -170,6 +170,26 @@ declare class FreestyleSandboxes {
|
|
|
170
170
|
getExecuteRun(id: string): Promise<HandleGetExecuteRunResponse>;
|
|
171
171
|
/** Provision a wildcard certificate for domain. */
|
|
172
172
|
provisionWildcard(domain: string): Promise<HandleVerifyWildcardResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Insert a domain mapping for a deployment.
|
|
175
|
+
*/
|
|
176
|
+
insertDomainMapping({ domain, deploymentId, }: {
|
|
177
|
+
domain: string;
|
|
178
|
+
deploymentId: string;
|
|
179
|
+
}): Promise<HandleInsertDomainMappingResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Remove a domain mapping for a deployment.
|
|
182
|
+
*/
|
|
183
|
+
removeDomainMapping({ domain, deploymentId, }: {
|
|
184
|
+
domain: string;
|
|
185
|
+
deploymentId: string;
|
|
186
|
+
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
|
+
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
|
+
domain?: string;
|
|
189
|
+
domainOwnership?: string;
|
|
190
|
+
limit?: number;
|
|
191
|
+
offset?: number;
|
|
192
|
+
}): Promise<HandleListDomainMappingsResponse>;
|
|
173
193
|
/**
|
|
174
194
|
* Create a new git repository.
|
|
175
195
|
*/
|
|
@@ -341,4 +361,4 @@ declare class FreestyleSandboxes {
|
|
|
341
361
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
342
362
|
}
|
|
343
363
|
|
|
344
|
-
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, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
364
|
+
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as 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, 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-CWa4Mw0J.js';
|
|
2
|
+
export { R as AccessTokenInfo, Q as AccessibleRepository, T as Behavior, U as BlobEncoding, V as BlobObject, W as BranchDetails, X as CommitObject, Y as CommitParent, Z as CommitTree, cM as ConfigureGithubSyncData, cO as ConfigureGithubSyncError, _ as ConfigureGithubSyncRequest, cN as ConfigureGithubSyncResponse, $ as CreateDomainMappingRequest, a0 as CreateRecordParams, a2 as CreateRepoRequest, a3 as CreateRepositoryRequest, a5 as CustomBuildOptions, P as DeploymentBuildOptions, a6 as DeploymentLogEntry, a8 as DeploymentState, a9 as DevServer, ab as DevServerRequest, ac as DevServerStatusRequest, ad as DevServerWatchFilesRequest, ae as DnsRecord, af as DnsRecordData, ag as DnsRecordKind, ah as DomainVerificationRequest, ai as ExecRequest, aj as ExecuteLogEntry, ak as ExecuteRunInfo, al as ExecuteRunState, am as FileReadContent, ao as FreestyleCloudstateDeployConfiguration, ap as FreestyleCloudstateDeployErrorResponse, aq as FreestyleDeleteDomainVerificationRequest, ar as FreestyleDeployWebErrorResponse, as as FreestyleDeployWebPayload, at as FreestyleDeployWebPayloadV2, au as FreestyleDomainVerificationRequest, av as FreestyleExecuteScriptParams, aw as FreestyleFile, ax as FreestyleGetLogsResponse, ay as FreestyleJavaScriptLog, az as FreestyleLogResponseObject, aA as FreestyleNetworkPermission, aC as FreestyleSandboxDomainMapping, aD as FreestyleVerifyDomainRequest, aE as GetDefaultBranchResponse, cK as GetGithubSyncData, cL as GetGithubSyncError, aF as GitCommitPushRequest, aG as GitContents, aI as GitContentsDirEntryItem, aL as GitReference, aM as GitRepositoryTrigger, aJ as GithubRepoSyncConfig, aK as GithubSyncConfigResponse, aP as GrantPermissionRequest, bb as HandleBackupCloudstateData, bc as HandleBackupCloudstateError, by as HandleCreateDomainVerificationData, bz as HandleCreateDomainVerificationError, ct as HandleCreateGitTokenData, cv as HandleCreateGitTokenError, cu as HandleCreateGitTokenResponse, dh as HandleCreateGitTriggerData, di as HandleCreateGitTriggerError, c9 as HandleCreateIdentityError, c8 as HandleCreateIdentityResponse, bg as HandleCreateRecordData, bi as HandleCreateRecordError, bh as HandleCreateRecordResponse, cB as HandleCreateRepoData, cD as HandleCreateRepoError, cC as HandleCreateRepoResponse, bu as HandleDeleteDomainMappingData, bv as HandleDeleteDomainMappingError, bA as HandleDeleteDomainVerificationData, bB as HandleDeleteDomainVerificationError, dj as HandleDeleteGitTriggerData, dl as HandleDeleteGitTriggerError, dk as HandleDeleteGitTriggerResponse, ca as HandleDeleteIdentityData, cb as HandleDeleteIdentityError, bj as HandleDeleteRecordData, bl as HandleDeleteRecordError, bk as HandleDeleteRecordResponse, cS as HandleDeleteRepoData, cT as HandleDeleteRepoError, b8 as HandleDeployCloudstateData, ba as HandleDeployCloudstateError, b9 as HandleDeployCloudstateResponse, ds as HandleDeployWebData, du as HandleDeployWebError, dt as HandleDeployWebResponse, dv as HandleDeployWebV2Data, dx as HandleDeployWebV2Error, dw as HandleDeployWebV2Response, cf as HandleDescribePermissionData, ch as HandleDescribePermissionError, cg as HandleDescribePermissionResponse, bU as HandleDevServerStatusData, bW as HandleDevServerStatusError, bV as HandleDevServerStatusResponse, dc as HandleDownloadTarballData, de as HandleDownloadTarballError, dd as HandleDownloadTarballResponse, dm as HandleDownloadZipData, dp as HandleDownloadZipError, dn as HandleDownloadZipResponse, bC as HandleEphemeralDevServerData, bE as HandleEphemeralDevServerError, bD as HandleEphemeralDevServerResponse, bF as HandleExecOnEphemeralDevServerData, bH as HandleExecOnEphemeralDevServerError, bG as HandleExecOnEphemeralDevServerResponse, c2 as HandleExecuteScriptData, c4 as HandleExecuteScriptError, c3 as HandleExecuteScriptResponse, cW as HandleGetBlobData, cY as HandleGetBlobError, cX as HandleGetBlobResponse, cZ as HandleGetCommitData, c$ as HandleGetCommitError, c_ as HandleGetCommitResponse, cU as HandleGetContentsData, cV as HandleGetContentsError, cE as HandleGetDefaultBranchData, cG as HandleGetDefaultBranchError, cF as HandleGetDefaultBranchResponse, c0 as HandleGetExecuteRunData, c1 as HandleGetExecuteRunError, dq as HandleGetLogsData, dr as HandleGetLogsError, d0 as HandleGetRefBranchData, d2 as HandleGetRefBranchError, d1 as HandleGetRefBranchResponse, d3 as HandleGetRefTagData, d5 as HandleGetRefTagError, d4 as HandleGetRefTagResponse, d6 as HandleGetTagData, d8 as HandleGetTagError, d7 as HandleGetTagResponse, d9 as HandleGetTreeData, db as HandleGetTreeError, da as HandleGetTreeResponse, dA as HandleGetWebDeployDetailsData, bO as HandleGitCommitPushData, bQ as HandleGitCommitPushError, bP as HandleGitCommitPushResponse, ci as HandleGrantPermissionData, cj as HandleGrantPermissionError, bs as HandleInsertDomainMappingData, bt as HandleInsertDomainMappingError, bm as HandleListDomainMappingsData, bn as HandleListDomainMappingsError, bw as HandleListDomainVerificationRequestsError, bq as HandleListDomainsData, br as HandleListDomainsError, b_ as HandleListExecuteRunsData, b$ as HandleListExecuteRunsError, cq as HandleListGitTokensData, cs as HandleListGitTokensError, cr as HandleListGitTokensResponse, df as HandleListGitTriggersData, dg as HandleListGitTriggersError, c5 as HandleListIdentitiesData, c7 as HandleListIdentitiesError, c6 as HandleListIdentitiesResponse, cc as HandleListPermissionsData, ce as HandleListPermissionsError, cd as HandleListPermissionsResponse, bd as HandleListRecordsData, bf as HandleListRecordsError, be as HandleListRecordsResponse, cz as HandleListRepositoriesData, cA as HandleListRepositoriesError, dy as HandleListWebDeploysData, dz as HandleListWebDeploysError, bL as HandleReadFileFromEphemeralDevServerData, bN as HandleReadFileFromEphemeralDevServerError, bM as HandleReadFileFromEphemeralDevServerResponse, cw as HandleRevokeGitTokenData, cy as HandleRevokeGitTokenError, cx as HandleRevokeGitTokenResponse, ck as HandleRevokePermissionData, cm as HandleRevokePermissionError, cl as HandleRevokePermissionResponse, cH as HandleSetDefaultBranchData, cJ as HandleSetDefaultBranchError, cI as HandleSetDefaultBranchResponse, bR as HandleShutdownDevServerData, bT as HandleShutdownDevServerError, bS as HandleShutdownDevServerResponse, cn as HandleUpdatePermissionData, cp as HandleUpdatePermissionError, co as HandleUpdatePermissionResponse, bx as HandleVerifyDomainData, bo as HandleVerifyWildcardData, bp as HandleVerifyWildcardError, bX as HandleWatchDevServerFilesData, bZ as HandleWatchDevServerFilesError, bY as HandleWatchDevServerFilesResponse, bI as HandleWriteFileFromEphemeralDevServerData, bK as HandleWriteFileFromEphemeralDevServerError, bJ as HandleWriteFileFromEphemeralDevServerResponse, aQ as InternalServerError, aR as ListRecordsResponse, aS as NetworkPermissionData, aT as ReadFileEphemeralDevServerResponses, aU as ReadFileRequest, cP as RemoveGithubSyncData, cR as RemoveGithubSyncError, cQ as RemoveGithubSyncResponse, aV as RepositoryInfo, aW as RepositoryMetadata, aX as RevokeGitTokenRequest, aY as SetDefaultBranchResponse, aZ as ShutdownDevServerRequest, a_ as Signature, a$ as TagDetails, b0 as TagObject, b1 as TagTarget, b2 as TreeEntry, b4 as TreeObject, b5 as UpdatePermissionRequest, b6 as Visibility, b7 as WriteFileRequest, aB as action, aO as action2, aN as event, a7 as kind, aa as kind2, an as kind3, a1 as type, a4 as type2, aH as type3, b3 as type4 } from './types.gen-CWa4Mw0J.js';
|
|
3
3
|
|
|
4
4
|
interface FreestyleDevServer {
|
|
5
5
|
/**
|
|
@@ -170,6 +170,26 @@ declare class FreestyleSandboxes {
|
|
|
170
170
|
getExecuteRun(id: string): Promise<HandleGetExecuteRunResponse>;
|
|
171
171
|
/** Provision a wildcard certificate for domain. */
|
|
172
172
|
provisionWildcard(domain: string): Promise<HandleVerifyWildcardResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Insert a domain mapping for a deployment.
|
|
175
|
+
*/
|
|
176
|
+
insertDomainMapping({ domain, deploymentId, }: {
|
|
177
|
+
domain: string;
|
|
178
|
+
deploymentId: string;
|
|
179
|
+
}): Promise<HandleInsertDomainMappingResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Remove a domain mapping for a deployment.
|
|
182
|
+
*/
|
|
183
|
+
removeDomainMapping({ domain, deploymentId, }: {
|
|
184
|
+
domain: string;
|
|
185
|
+
deploymentId: string;
|
|
186
|
+
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
|
+
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
|
+
domain?: string;
|
|
189
|
+
domainOwnership?: string;
|
|
190
|
+
limit?: number;
|
|
191
|
+
offset?: number;
|
|
192
|
+
}): Promise<HandleListDomainMappingsResponse>;
|
|
173
193
|
/**
|
|
174
194
|
* Create a new git repository.
|
|
175
195
|
*/
|
|
@@ -341,4 +361,4 @@ declare class FreestyleSandboxes {
|
|
|
341
361
|
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
342
362
|
}
|
|
343
363
|
|
|
344
|
-
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, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|
|
364
|
+
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,12 @@ const handleBackupCloudstate = (options) => {
|
|
|
13
13
|
url: "/cloudstate/v1/projects/{id}/backup"
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
+
const handleListDomainMappings = (options) => {
|
|
17
|
+
return (options?.client ?? client).get({
|
|
18
|
+
...options,
|
|
19
|
+
url: "/domains/mappings"
|
|
20
|
+
});
|
|
21
|
+
};
|
|
16
22
|
const handleVerifyWildcard = (options) => {
|
|
17
23
|
return (options?.client ?? client).post({
|
|
18
24
|
...options,
|
|
@@ -25,6 +31,18 @@ const handleListDomains = (options) => {
|
|
|
25
31
|
url: "/domains/v1/domains"
|
|
26
32
|
});
|
|
27
33
|
};
|
|
34
|
+
const handleInsertDomainMapping = (options) => {
|
|
35
|
+
return (options?.client ?? client).post({
|
|
36
|
+
...options,
|
|
37
|
+
url: "/domains/v1/mappings/{domain}"
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const handleDeleteDomainMapping = (options) => {
|
|
41
|
+
return (options?.client ?? client).delete({
|
|
42
|
+
...options,
|
|
43
|
+
url: "/domains/v1/mappings/{domain}"
|
|
44
|
+
});
|
|
45
|
+
};
|
|
28
46
|
const handleListDomainVerificationRequests = (options) => {
|
|
29
47
|
return (options?.client ?? client).get({
|
|
30
48
|
...options,
|
|
@@ -537,6 +555,72 @@ ${response.error.message}`);
|
|
|
537
555
|
`Failed to provision wildcard for domain ${domain}: ${response.error.message}`
|
|
538
556
|
);
|
|
539
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Insert a domain mapping for a deployment.
|
|
560
|
+
*/
|
|
561
|
+
async insertDomainMapping({
|
|
562
|
+
domain,
|
|
563
|
+
deploymentId
|
|
564
|
+
}) {
|
|
565
|
+
const response = await handleInsertDomainMapping({
|
|
566
|
+
client: this.client,
|
|
567
|
+
path: {
|
|
568
|
+
domain
|
|
569
|
+
},
|
|
570
|
+
body: {
|
|
571
|
+
deploymentId
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
if (response.data) {
|
|
575
|
+
return response.data;
|
|
576
|
+
}
|
|
577
|
+
throw new Error(
|
|
578
|
+
`Failed to insert domain mapping for domain ${domain} and deployment ${deploymentId}: ${response.error.message}`
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Remove a domain mapping for a deployment.
|
|
583
|
+
*/
|
|
584
|
+
async removeDomainMapping({
|
|
585
|
+
domain,
|
|
586
|
+
deploymentId
|
|
587
|
+
}) {
|
|
588
|
+
const response = await handleDeleteDomainMapping({
|
|
589
|
+
client: this.client,
|
|
590
|
+
path: {
|
|
591
|
+
domain
|
|
592
|
+
},
|
|
593
|
+
body: {
|
|
594
|
+
deploymentId
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
if (response.data) {
|
|
598
|
+
return response.data;
|
|
599
|
+
}
|
|
600
|
+
throw new Error(
|
|
601
|
+
`Failed to remove domain mapping for domain ${domain} and deployment ${deploymentId}: ${response.error.message}`
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
async listDomainMappings({
|
|
605
|
+
domain,
|
|
606
|
+
domainOwnership,
|
|
607
|
+
limit = 10,
|
|
608
|
+
offset = 0
|
|
609
|
+
}) {
|
|
610
|
+
const response = await handleListDomainMappings({
|
|
611
|
+
client: this.client,
|
|
612
|
+
query: {
|
|
613
|
+
limit,
|
|
614
|
+
offset,
|
|
615
|
+
domain,
|
|
616
|
+
domainOwnership
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
if (response.data) {
|
|
620
|
+
return response.data;
|
|
621
|
+
}
|
|
622
|
+
throw new Error(`Failed to list domain mappings: ${response.error}`);
|
|
623
|
+
}
|
|
540
624
|
/**
|
|
541
625
|
* Create a new git repository.
|
|
542
626
|
*/
|
|
@@ -1084,7 +1168,7 @@ ${response.error.message}`);
|
|
|
1084
1168
|
const response2 = await handleReadFileFromEphemeralDevServer({
|
|
1085
1169
|
client,
|
|
1086
1170
|
path: {
|
|
1087
|
-
filepath: path
|
|
1171
|
+
"*filepath": path
|
|
1088
1172
|
},
|
|
1089
1173
|
body: {
|
|
1090
1174
|
devServer: devServerInstance,
|