freestyle-sandboxes 0.0.97 → 0.1.1
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/README.md +39 -48
- package/index.cjs +4381 -0
- package/index.d.cts +9404 -0
- package/index.d.mts +9404 -0
- package/index.mjs +4367 -0
- package/package.json +16 -109
- package/dist/ai/inde.d.cts +0 -75
- package/dist/ai/inde.d.mts +0 -75
- package/dist/ai/index.cjs +0 -13
- package/dist/ai/index.d.cts +0 -75
- package/dist/ai/index.d.mts +0 -75
- package/dist/ai/index.mjs +0 -4
- package/dist/expo/inde.d.cts +0 -6
- package/dist/expo/inde.d.mts +0 -6
- package/dist/expo/index.cjs +0 -319
- package/dist/expo/index.d.cts +0 -6
- package/dist/expo/index.d.mts +0 -6
- package/dist/expo/index.mjs +0 -297
- package/dist/inde.d.cts +0 -373
- package/dist/inde.d.mts +0 -373
- package/dist/index-BKAG8L-o.mjs +0 -3061
- package/dist/index-DuOpIaWc.cjs +0 -3068
- package/dist/index.cjs +0 -1329
- package/dist/index.d-9H_wnIbz.d.ts +0 -4223
- package/dist/index.d.cts +0 -373
- package/dist/index.d.mts +0 -373
- package/dist/index.mjs +0 -1327
- package/dist/langgraph/inde.d.cts +0 -4180
- package/dist/langgraph/inde.d.mts +0 -4180
- package/dist/langgraph/index.cjs +0 -17155
- package/dist/langgraph/index.d.cts +0 -4180
- package/dist/langgraph/index.d.mts +0 -4180
- package/dist/langgraph/index.mjs +0 -17153
- package/dist/mastra/inde.d.cts +0 -2623
- package/dist/mastra/inde.d.mts +0 -2623
- package/dist/mastra/index.cjs +0 -55
- package/dist/mastra/index.d.cts +0 -2623
- package/dist/mastra/index.d.mts +0 -2623
- package/dist/mastra/index.mjs +0 -53
- package/dist/react/dev-server/index..d.cts +0 -33
- package/dist/react/dev-server/index..d.mts +0 -33
- package/dist/react/dev-server/index.cjs +0 -148
- package/dist/react/dev-server/index.d.cts +0 -33
- package/dist/react/dev-server/index.d.mts +0 -33
- package/dist/react/dev-server/index.mjs +0 -145
- package/dist/types.gen-CJa21P0C.d.ts +0 -1902
- package/dist/types.gen-DKjMRuu5.d.ts +0 -1898
- package/dist/utils/inde.d.cts +0 -10
- package/dist/utils/inde.d.mts +0 -10
- package/dist/utils/index.cjs +0 -100
- package/dist/utils/index.d.cts +0 -10
- package/dist/utils/index.d.mts +0 -10
- package/dist/utils/index.mjs +0 -75
- package/openapi/index.ts +0 -3
- package/openapi/sdk.gen.ts +0 -929
- package/openapi/types.gen.ts +0 -2234
- package/openapi-ts.config.ts +0 -7
- package/openapi.json +0 -1
- package/src/ai/index.ts +0 -164
- package/src/dev-server.ts +0 -95
- package/src/expo/_expo_internals.ts +0 -389
- package/src/expo/index.ts +0 -26
- package/src/index.ts +0 -1459
- package/src/langgraph/index.ts +0 -33
- package/src/mastra/index.ts +0 -38
- package/src/react/dev-server/index.tsx +0 -195
- package/src/react/dev-server/types.ts +0 -5
- package/src/utils/index.ts +0 -97
- package/tsconfig.json +0 -8
package/dist/index.d.mts
DELETED
|
@@ -1,373 +0,0 @@
|
|
|
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 HandleListDomainMappingsResponse, s as DevServerConfiguration, 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-CJa21P0C.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, dc as ConfigureGithubSyncData, de as ConfigureGithubSyncError, a0 as ConfigureGithubSyncRequest, dd as ConfigureGithubSyncResponse, a1 as CreateDomainMappingRequest, a2 as CreateRecordParams, a3 as CreateRecordResponse, a5 as CreateRepoRequest, a6 as CreateRepositoryRequest, d_ as CreateVmData, a7 as CreateVmRequest, a8 as CustomBuildOptions, d7 as DeleteDevServerConfigurationData, d9 as DeleteDevServerConfigurationError, d8 as DeleteDevServerConfigurationResponse, a9 as DeleteRecordResponse, e1 as DeleteVmData, P as DeploymentBuildOptions, aa as DeploymentLogEntry, ac as DeploymentState, ad as DevServer, af as DevServerLogsRequest, ag as DevServerPreset, ah as DevServerRequest, ai as DevServerRestartRequest, aj as DevServerStatusRequest, ak as DevServerWatchFilesRequest, al as DnsRecord, am as DnsRecordData, an as DnsRecordKind, ao as DomainVerificationRequest, e3 as ExecAwaitData, ap as ExecAwaitRequest, aq as ExecRequest, ar as ExecuteLogEntry, as as ExecuteRunInfo, at as ExecuteRunState, au as FileReadContent, e6 as ForkVmData, aw as ForkVmRequest, ax as FreestyleCloudstateDeployConfiguration, ay as FreestyleCloudstateDeployErrorResponse, az as FreestyleDeleteDomainVerificationRequest, aA as FreestyleDeployWebErrorResponse, aB as FreestyleDeployWebPayload, aC as FreestyleDeployWebPayloadV2, aD as FreestyleDomainVerificationRequest, aE as FreestyleExecuteScriptParams, aF as FreestyleFile, aG as FreestyleGetLogsResponse, aH as FreestyleJavaScriptLog, aI as FreestyleLogResponseObject, aJ as FreestyleNetworkPermission, aL as FreestyleSandboxDomainMapping, aM as FreestyleVerifyDomainRequest, aN as GetDefaultBranchResponse, d1 as GetDevServerConfigurationData, d3 as GetDevServerConfigurationError, d2 as GetDevServerConfigurationResponse, e4 as GetFileData, da as GetGithubSyncData, db as GetGithubSyncError, ec as GetTerminalLogsData, ed as GetTerminalXtermData, e0 as GetVmData, aO as GitCommitPushRequest, aP as GitContents, aR as GitContentsDirEntryItem, aU as GitReference, aV as GitRepositoryTrigger, aS as GithubRepoSyncConfig, aT as GithubSyncConfigResponse, aY as GrantPermissionRequest, bq as HandleBackupCloudstateData, br as HandleBackupCloudstateError, bL as HandleCreateDomainVerificationData, bM as HandleCreateDomainVerificationError, cM as HandleCreateGitTokenData, cO as HandleCreateGitTokenError, cN as HandleCreateGitTokenResponse, dQ as HandleCreateGitTriggerData, dR as HandleCreateGitTriggerError, cs as HandleCreateIdentityError, cr as HandleCreateIdentityResponse, bv as HandleCreateRecordData, bx as HandleCreateRecordError, bw as HandleCreateRecordResponse, cU as HandleCreateRepoData, cW as HandleCreateRepoError, cV as HandleCreateRepoResponse, bI as HandleDeleteDomainMappingData, bN as HandleDeleteDomainVerificationData, bO as HandleDeleteDomainVerificationError, dS as HandleDeleteGitTriggerData, dU as HandleDeleteGitTriggerError, dT as HandleDeleteGitTriggerResponse, ct as HandleDeleteIdentityData, cu as HandleDeleteIdentityError, by as HandleDeleteRecordData, bA as HandleDeleteRecordError, bz as HandleDeleteRecordResponse, dl as HandleDeleteRepoData, dm as HandleDeleteRepoError, bn as HandleDeployCloudstateData, bp as HandleDeployCloudstateError, bo as HandleDeployCloudstateResponse, ef as HandleDeployWebData, eh as HandleDeployWebError, eg as HandleDeployWebResponse, ei as HandleDeployWebV2Data, ek as HandleDeployWebV2Error, ej as HandleDeployWebV2Response, cy as HandleDescribePermissionData, cA as HandleDescribePermissionError, cz as HandleDescribePermissionResponse, c2 as HandleDevServerLogsData, c4 as HandleDevServerLogsError, c3 as HandleDevServerLogsResponse, c5 as HandleDevServerRestartData, c7 as HandleDevServerRestartError, c6 as HandleDevServerRestartResponse, cb as HandleDevServerStatusData, cd as HandleDevServerStatusError, cc as HandleDevServerStatusResponse, dL as HandleDownloadTarballData, dN as HandleDownloadTarballError, dM as HandleDownloadTarballResponse, dV as HandleDownloadZipData, dX as HandleDownloadZipError, dW as HandleDownloadZipResponse, bP as HandleEphemeralDevServerData, bR as HandleEphemeralDevServerError, bQ as HandleEphemeralDevServerResponse, bS as HandleExecOnEphemeralDevServerData, bU as HandleExecOnEphemeralDevServerError, bT as HandleExecOnEphemeralDevServerResponse, cl as HandleExecuteScriptData, cn as HandleExecuteScriptError, cm as HandleExecuteScriptResponse, dq as HandleGetBlobData, ds as HandleGetBlobError, dr as HandleGetBlobResponse, dw as HandleGetCommitData, dy as HandleGetCommitError, dx as HandleGetCommitResponse, dn as HandleGetContentsData, dp as HandleGetContentsError, cX as HandleGetDefaultBranchData, cZ as HandleGetDefaultBranchError, cY as HandleGetDefaultBranchResponse, cj as HandleGetExecuteRunData, ck as HandleGetExecuteRunError, dY as HandleGetLogsData, dZ as HandleGetLogsError, dz as HandleGetRefBranchData, dB as HandleGetRefBranchError, dA as HandleGetRefBranchResponse, dC as HandleGetRefTagData, dE as HandleGetRefTagError, dD as HandleGetRefTagResponse, di as HandleGetRepoInfoData, dk as HandleGetRepoInfoError, dj as HandleGetRepoInfoResponse, dF as HandleGetTagData, dH as HandleGetTagError, dG as HandleGetTagResponse, dI as HandleGetTreeData, dK as HandleGetTreeError, dJ as HandleGetTreeResponse, en as HandleGetWebDeployDetailsData, b$ as HandleGitCommitPushData, c1 as HandleGitCommitPushError, c0 as HandleGitCommitPushResponse, cB as HandleGrantPermissionData, cC as HandleGrantPermissionError, bG as HandleInsertDomainMappingData, bH as HandleInsertDomainMappingError, dt as HandleListCommitsData, dv as HandleListCommitsError, du as HandleListCommitsResponse, Q as HandleListDomainMappingsData, bF as HandleListDomainMappingsError, bJ as HandleListDomainVerificationRequestsError, bD as HandleListDomainsData, bE as HandleListDomainsError, ch as HandleListExecuteRunsData, ci as HandleListExecuteRunsError, cJ as HandleListGitTokensData, cL as HandleListGitTokensError, cK as HandleListGitTokensResponse, dO as HandleListGitTriggersData, dP as HandleListGitTriggersError, co as HandleListIdentitiesData, cq as HandleListIdentitiesError, cp as HandleListIdentitiesResponse, cv as HandleListPermissionsData, cx as HandleListPermissionsError, cw as HandleListPermissionsResponse, bs as HandleListRecordsData, bu as HandleListRecordsError, bt as HandleListRecordsResponse, cS as HandleListRepositoriesData, cT as HandleListRepositoriesError, el as HandleListWebDeploysData, em as HandleListWebDeploysError, bY as HandleReadFileFromEphemeralDevServerData, b_ as HandleReadFileFromEphemeralDevServerError, bZ as HandleReadFileFromEphemeralDevServerResponse, cP as HandleRevokeGitTokenData, cR as HandleRevokeGitTokenError, cQ as HandleRevokeGitTokenResponse, cD as HandleRevokePermissionData, cF as HandleRevokePermissionError, cE as HandleRevokePermissionResponse, c_ as HandleSetDefaultBranchData, d0 as HandleSetDefaultBranchError, c$ as HandleSetDefaultBranchResponse, c8 as HandleShutdownDevServerData, ca as HandleShutdownDevServerError, c9 as HandleShutdownDevServerResponse, cG as HandleUpdatePermissionData, cI as HandleUpdatePermissionError, cH as HandleUpdatePermissionResponse, bK as HandleVerifyDomainData, bB as HandleVerifyWildcardData, bC as HandleVerifyWildcardError, ce as HandleWatchDevServerFilesData, cg as HandleWatchDevServerFilesError, cf as HandleWatchDevServerFilesResponse, bV as HandleWriteFileFromEphemeralDevServerData, bX as HandleWriteFileFromEphemeralDevServerError, bW as HandleWriteFileFromEphemeralDevServerResponse, aZ as InternalServerError, a_ as ListRecordsResponse, eb as ListTerminalsData, a$ as NetworkPermissionData, e7 as OptimizeVmData, b0 as PortConfig, b1 as PortMapping, e5 as PutFileData, b2 as ReadFileEphemeralDevServerResponses, df as RemoveGithubSyncData, dh as RemoveGithubSyncError, dg as RemoveGithubSyncResponse, b3 as RepositoryInfoRaw, b4 as RepositoryMetadata, d$ as ResizeVmData, b5 as ResizeVmRequest, b6 as RevokeGitTokenRequest, b7 as SetDefaultBranchResponse, b8 as ShutdownDevServerRequest, b9 as Signature, e8 as StartVmData, ba as StartVmRequest, e9 as StopVmData, ea as SuspendVmData, bb as TagDetails, bc as TagObject, bd as TagTarget, be as TreeEntry, bg as TreeObject, bh as UpdateDevServerConfigRequest, d4 as UpdateDevServerConfigurationData, d6 as UpdateDevServerConfigurationError, d5 as UpdateDevServerConfigurationResponse, bi as UpdatePermissionRequest, bj as Visibility, bk as VmPersistence, e2 as WaitVmData, ee as WatchFilesData, bm as WriteFileRequest, aK as action, aX as action2, aW as event, ab as kind, ae as kind2, av as kind3, a4 as type, aQ as type2, bf as type3, bl as type4 } from './types.gen-CJa21P0C.js';
|
|
3
|
-
|
|
4
|
-
interface FreestyleDevServer {
|
|
5
|
-
/**
|
|
6
|
-
* The URL for the dev server's HTTP API.
|
|
7
|
-
*/
|
|
8
|
-
ephemeralUrl: string;
|
|
9
|
-
/**
|
|
10
|
-
* The URL to the MCP endpoint for the dev server.
|
|
11
|
-
*/
|
|
12
|
-
mcpEphemeralUrl: string;
|
|
13
|
-
/**
|
|
14
|
-
* The URL for the VSCode server running in the dev server.
|
|
15
|
-
*/
|
|
16
|
-
codeServerUrl: string;
|
|
17
|
-
/**
|
|
18
|
-
* Whether the dev server was just created.
|
|
19
|
-
*/
|
|
20
|
-
isNew: boolean;
|
|
21
|
-
fs: FreestyleDevServerFilesystem;
|
|
22
|
-
process: FreestyleDevServerProcess;
|
|
23
|
-
devCommandRunning: boolean;
|
|
24
|
-
installCommandRunning: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Get the status of the dev server
|
|
27
|
-
*/
|
|
28
|
-
status(): Promise<{
|
|
29
|
-
installing: boolean;
|
|
30
|
-
devRunning: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
/**
|
|
33
|
-
* Commit and push changes to the dev server repository
|
|
34
|
-
* @param message The commit message
|
|
35
|
-
*/
|
|
36
|
-
commitAndPush(message: string): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Shutdown the dev server
|
|
39
|
-
*/
|
|
40
|
-
shutdown(): Promise<{
|
|
41
|
-
success: boolean;
|
|
42
|
-
message: string;
|
|
43
|
-
}>;
|
|
44
|
-
}
|
|
45
|
-
interface FreestyleDevServerFilesystem {
|
|
46
|
-
/**
|
|
47
|
-
* List files in the dev server directory
|
|
48
|
-
*/
|
|
49
|
-
ls(path?: string): Promise<Array<string>>;
|
|
50
|
-
/**
|
|
51
|
-
* Read a file from the dev server
|
|
52
|
-
* @param path The path to the file
|
|
53
|
-
* @param encoding The encoding to use (defaults to utf-8)
|
|
54
|
-
*/
|
|
55
|
-
readFile(path: string, encoding?: string): Promise<string>;
|
|
56
|
-
/**
|
|
57
|
-
* Write a file to the dev server
|
|
58
|
-
* @param path The path to write to
|
|
59
|
-
* @param content The content to write
|
|
60
|
-
* @param encoding The encoding to use (defaults to utf-8)
|
|
61
|
-
*/
|
|
62
|
-
writeFile(path: string, content: string | ArrayBufferLike, encoding?: string): Promise<void>;
|
|
63
|
-
watch(): AsyncGenerator<{
|
|
64
|
-
eventType: string;
|
|
65
|
-
filename: string;
|
|
66
|
-
}>;
|
|
67
|
-
}
|
|
68
|
-
interface FreestyleDevServerProcess {
|
|
69
|
-
/**
|
|
70
|
-
* Execute a command on the dev server
|
|
71
|
-
* @param cmd The command to execute
|
|
72
|
-
* @param background Whether to run the command in the background
|
|
73
|
-
*/
|
|
74
|
-
exec(cmd: string, background?: boolean): Promise<{
|
|
75
|
-
id: string;
|
|
76
|
-
isNew: boolean;
|
|
77
|
-
stdout?: string[];
|
|
78
|
-
stderr?: string[];
|
|
79
|
-
}>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Create a new git repository with a single commit from a static import.
|
|
84
|
-
*/
|
|
85
|
-
type CreateGitRepositoryImport = {
|
|
86
|
-
/**
|
|
87
|
-
* Create a new git repository with a single commit from a static import.
|
|
88
|
-
*/
|
|
89
|
-
import: CreateRepoImport;
|
|
90
|
-
/**
|
|
91
|
-
* Create a git repository from another git reopsitory
|
|
92
|
-
*/
|
|
93
|
-
source?: never;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Create a git repository from another git reopsitory
|
|
97
|
-
*/
|
|
98
|
-
type CreateGitRepositorySource = {
|
|
99
|
-
/**
|
|
100
|
-
* Create a git repository from another git reopsitory
|
|
101
|
-
*/
|
|
102
|
-
source: CreateRepoSource;
|
|
103
|
-
/**
|
|
104
|
-
* Create a new git repository with a single commit from a static import.
|
|
105
|
-
*/
|
|
106
|
-
import?: never;
|
|
107
|
-
};
|
|
108
|
-
type Options = {
|
|
109
|
-
/**
|
|
110
|
-
* The base URL for the API.
|
|
111
|
-
*/
|
|
112
|
-
baseUrl?: string;
|
|
113
|
-
/**
|
|
114
|
-
* The API key to use for requests.
|
|
115
|
-
*/
|
|
116
|
-
apiKey?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Custom Headers to be sent with each request.
|
|
119
|
-
*/
|
|
120
|
-
headers?: Record<string, string>;
|
|
121
|
-
};
|
|
122
|
-
declare class FreestyleSandboxes {
|
|
123
|
-
private client;
|
|
124
|
-
options: Options;
|
|
125
|
-
constructor(options?: Options);
|
|
126
|
-
/**
|
|
127
|
-
* Execute a script in a sandbox.
|
|
128
|
-
*/
|
|
129
|
-
executeScript(script: string, config?: FreestyleExecuteScriptParamsConfiguration): Promise<FreestyleExecuteScriptResultSuccess>;
|
|
130
|
-
/**
|
|
131
|
-
* Deploy a Web project to a sandbox.
|
|
132
|
-
*/
|
|
133
|
-
deployWeb(source: DeploymentSource, config?: FreestyleDeployWebConfiguration): Promise<FreestyleDeployWebSuccessResponseV2>;
|
|
134
|
-
/**
|
|
135
|
-
* Deploy a Cloudstate project to a sandbox.
|
|
136
|
-
*/
|
|
137
|
-
deployCloudstate(body: FreestyleCloudstateDeployRequest): Promise<FreestyleCloudstateDeploySuccessResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* Get a backup of a Cloudstate project in a sandbox.
|
|
140
|
-
* @param id The ID of the Cloudstate project.
|
|
141
|
-
* @returns The backup of the Cloudstate project.
|
|
142
|
-
* @throws An error if the backup could not be retrieved.
|
|
143
|
-
*/
|
|
144
|
-
backupCloudstate(id: string): Promise<HandleBackupCloudstateResponse>;
|
|
145
|
-
/**
|
|
146
|
-
* Get logs for an execute run, or web deployment.
|
|
147
|
-
* @param id The ID of the sandbox.
|
|
148
|
-
* @returns The logs for the sandbox.
|
|
149
|
-
* @throws An error if the logs could not be retrieved.
|
|
150
|
-
*/
|
|
151
|
-
getLogs(id: string): Promise<HandleGetLogsResponse>;
|
|
152
|
-
/**
|
|
153
|
-
* Create a a domain verification request.
|
|
154
|
-
* @param domain The domain to verify.
|
|
155
|
-
* @returns The domain verification token.
|
|
156
|
-
*/
|
|
157
|
-
createDomainVerificationRequest(domain: string): Promise<HandleCreateDomainVerificationResponse>;
|
|
158
|
-
verifyDomainVerificationRequest(id: string): Promise<HandleVerifyDomainResponse>;
|
|
159
|
-
/**
|
|
160
|
-
* Verify a domain. Note, this requires the domain verification token to be already set up.
|
|
161
|
-
* @param domain The domain to verify.
|
|
162
|
-
* @returns The domain verification request.
|
|
163
|
-
*/
|
|
164
|
-
verifyDomain(domain: string): Promise<HandleVerifyDomainResponse | HandleVerifyDomainError>;
|
|
165
|
-
listDomains(): Promise<HandleListDomainsResponse>;
|
|
166
|
-
listDomainVerificationRequests(): Promise<HandleListDomainVerificationRequestsResponse>;
|
|
167
|
-
deleteDomainVerificationRequest(domain: string, verificationCode: string): Promise<HandleDeleteDomainVerificationResponse>;
|
|
168
|
-
listWebDeployments(limit?: number, offset?: number): Promise<HandleListWebDeploysResponse>;
|
|
169
|
-
listExecuteRuns(limit?: number, offset?: number): Promise<HandleListExecuteRunsResponse>;
|
|
170
|
-
getExecuteRun(id: string): Promise<HandleGetExecuteRunResponse>;
|
|
171
|
-
/** Provision a wildcard certificate for domain. */
|
|
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, }: {
|
|
184
|
-
domain: string;
|
|
185
|
-
}): Promise<void>;
|
|
186
|
-
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
187
|
-
domain?: string;
|
|
188
|
-
domainOwnership?: string;
|
|
189
|
-
limit?: number;
|
|
190
|
-
offset?: number;
|
|
191
|
-
}): Promise<HandleListDomainMappingsResponse>;
|
|
192
|
-
/**
|
|
193
|
-
* Create a new git repository.
|
|
194
|
-
*/
|
|
195
|
-
createGitRepository({ name, public: pub, source, import: _import, defaultBranch, devServers, }: {
|
|
196
|
-
name?: string;
|
|
197
|
-
public?: boolean;
|
|
198
|
-
defaultBranch?: string;
|
|
199
|
-
devServers?: DevServerConfiguration;
|
|
200
|
-
} & (CreateGitRepositorySource | CreateGitRepositoryImport | {
|
|
201
|
-
source?: never;
|
|
202
|
-
import?: never;
|
|
203
|
-
})): Promise<CreateRepositoryResponseSuccess>;
|
|
204
|
-
/**
|
|
205
|
-
* List git repositories.
|
|
206
|
-
*/
|
|
207
|
-
listGitRepositories({ limit, offset, }?: {
|
|
208
|
-
limit?: number;
|
|
209
|
-
offset?: number;
|
|
210
|
-
}): Promise<HandleListRepositoriesResponse>;
|
|
211
|
-
/**
|
|
212
|
-
* Delete a git repository.
|
|
213
|
-
*/
|
|
214
|
-
deleteGitRepository({ repoId, }: {
|
|
215
|
-
repoId: string;
|
|
216
|
-
}): Promise<HandleDeleteRepoResponse>;
|
|
217
|
-
/**
|
|
218
|
-
* Create a new git identity.
|
|
219
|
-
*/
|
|
220
|
-
createGitIdentity(): Promise<GitIdentity>;
|
|
221
|
-
/**
|
|
222
|
-
* Delete a git identity.
|
|
223
|
-
*/
|
|
224
|
-
deleteGitIdentity({ identityId, }: {
|
|
225
|
-
identityId: string;
|
|
226
|
-
}): Promise<HandleDeleteIdentityResponse>;
|
|
227
|
-
/**
|
|
228
|
-
* Grant a git identity access to a repository.
|
|
229
|
-
*/
|
|
230
|
-
grantGitPermission({ repoId, identityId, permission, }: {
|
|
231
|
-
repoId: string;
|
|
232
|
-
identityId: string;
|
|
233
|
-
permission: AccessLevel;
|
|
234
|
-
}): Promise<HandleGrantPermissionResponse>;
|
|
235
|
-
/**
|
|
236
|
-
* Update a git identity's permissions on a repository.
|
|
237
|
-
*/
|
|
238
|
-
updateGitPermission({ repoId, identityId, permission, }: {
|
|
239
|
-
repoId: string;
|
|
240
|
-
identityId: string;
|
|
241
|
-
permission: AccessLevel;
|
|
242
|
-
}): Promise<void>;
|
|
243
|
-
/**
|
|
244
|
-
* Revoke a git identity's access to a repository.
|
|
245
|
-
*/
|
|
246
|
-
revokeGitPermission({ repoId, identityId, }: {
|
|
247
|
-
repoId: string;
|
|
248
|
-
identityId: string;
|
|
249
|
-
}): Promise<void>;
|
|
250
|
-
/**
|
|
251
|
-
* List access permissions for a git identity.
|
|
252
|
-
*/
|
|
253
|
-
listGitPermissions({ identityId, }: {
|
|
254
|
-
identityId: string;
|
|
255
|
-
}): Promise<ListPermissionResponseSuccess>;
|
|
256
|
-
/**
|
|
257
|
-
* Get the permission of a git identity on a repository.
|
|
258
|
-
*/
|
|
259
|
-
getGitPermission({ repoId, identityId, }: {
|
|
260
|
-
repoId: string;
|
|
261
|
-
identityId: string;
|
|
262
|
-
}): Promise<DescribePermissionResponseSuccess>;
|
|
263
|
-
/**
|
|
264
|
-
* Create a new git access token for an identity.
|
|
265
|
-
*/
|
|
266
|
-
createGitAccessToken({ identityId, }: {
|
|
267
|
-
identityId: string;
|
|
268
|
-
}): Promise<CreatedToken>;
|
|
269
|
-
/**
|
|
270
|
-
* Revoke a git access token.
|
|
271
|
-
*/
|
|
272
|
-
revokeGitAccessToken({ identityId, tokenId, }: {
|
|
273
|
-
identityId: string;
|
|
274
|
-
tokenId: string;
|
|
275
|
-
}): Promise<void>;
|
|
276
|
-
/**
|
|
277
|
-
* List git access tokens for an identity.
|
|
278
|
-
*/
|
|
279
|
-
listGitAccessTokens({ identityId, }: {
|
|
280
|
-
identityId: string;
|
|
281
|
-
}): Promise<ListGitTokensResponseSuccess>;
|
|
282
|
-
/**
|
|
283
|
-
* List git triggers for a repository.
|
|
284
|
-
*/
|
|
285
|
-
listGitTriggers({ repoId, }: {
|
|
286
|
-
repoId: string;
|
|
287
|
-
}): Promise<HandleListGitTriggersResponse>;
|
|
288
|
-
/**
|
|
289
|
-
* Create a git trigger for a repository.
|
|
290
|
-
*/
|
|
291
|
-
createGitTrigger({ repoId, trigger, action, }: {
|
|
292
|
-
repoId: string;
|
|
293
|
-
trigger: GitTrigger;
|
|
294
|
-
action: GitTriggerAction;
|
|
295
|
-
}): Promise<HandleCreateGitTriggerResponse>;
|
|
296
|
-
/**
|
|
297
|
-
* Delete a git trigger.
|
|
298
|
-
*/
|
|
299
|
-
deleteGitTrigger({ triggerId, repo, }: {
|
|
300
|
-
triggerId: string;
|
|
301
|
-
repo: string;
|
|
302
|
-
}): Promise<void>;
|
|
303
|
-
/**
|
|
304
|
-
* Set the default branch for a git repository.
|
|
305
|
-
*/
|
|
306
|
-
setGitRepoDefaultBranch({ repoId, defaultBranch, }: SetDefaultBranchRequest & {
|
|
307
|
-
repoId: string;
|
|
308
|
-
}): Promise<void>;
|
|
309
|
-
/**
|
|
310
|
-
* Get the default branch for a git repository.
|
|
311
|
-
*/
|
|
312
|
-
getGitRepoDefaultBranch({ repoId, }: {
|
|
313
|
-
repoId: string;
|
|
314
|
-
}): Promise<string>;
|
|
315
|
-
/**
|
|
316
|
-
* Get the contents of a git repository at the given path.
|
|
317
|
-
*/
|
|
318
|
-
getGitRepoContents({ repoId, path, ref, }: {
|
|
319
|
-
repoId: string;
|
|
320
|
-
path?: string;
|
|
321
|
-
ref?: string;
|
|
322
|
-
}): Promise<HandleGetContentsResponse>;
|
|
323
|
-
/**
|
|
324
|
-
* Configure a git repository to sync with GitHub.
|
|
325
|
-
*/
|
|
326
|
-
configureGitRepoGitHubSync({ repoId, githubRepoName, }: {
|
|
327
|
-
repoId: string;
|
|
328
|
-
githubRepoName: string;
|
|
329
|
-
}): Promise<void>;
|
|
330
|
-
/**
|
|
331
|
-
* Remove the GitHub sync configuration for a git repository.
|
|
332
|
-
*/
|
|
333
|
-
removeGitRepoGitHubSync({ repoId }: {
|
|
334
|
-
repoId: string;
|
|
335
|
-
}): Promise<void>;
|
|
336
|
-
/**
|
|
337
|
-
* Get the GitHub sync configuration for a git repository.
|
|
338
|
-
*/
|
|
339
|
-
getGitRepoGitHubSyncConfig({ repoId, }: {
|
|
340
|
-
repoId: any;
|
|
341
|
-
}): Promise<GetGithubSyncResponse | null>;
|
|
342
|
-
/**
|
|
343
|
-
* Request a dev server for a repository. If a dev server is already running
|
|
344
|
-
* for that repository, it will return a url to that server. Dev servers are
|
|
345
|
-
* ephemeral so you should call this function every time you need a url. Do
|
|
346
|
-
* not store the url in your database!
|
|
347
|
-
*/
|
|
348
|
-
requestDevServer(options: {
|
|
349
|
-
/**
|
|
350
|
-
* @deprecated
|
|
351
|
-
*/
|
|
352
|
-
repoUrl?: string;
|
|
353
|
-
repoId?: string;
|
|
354
|
-
/**
|
|
355
|
-
* @deprecated
|
|
356
|
-
*/
|
|
357
|
-
repo?: string;
|
|
358
|
-
baseId?: string;
|
|
359
|
-
devCommand?: string;
|
|
360
|
-
preDevCommandOnce?: string;
|
|
361
|
-
envVars?: Record<string, string>;
|
|
362
|
-
computeClass?: string;
|
|
363
|
-
timeout?: number;
|
|
364
|
-
gitRef?: string;
|
|
365
|
-
ports?: {
|
|
366
|
-
port: number;
|
|
367
|
-
targetPort: number;
|
|
368
|
-
}[];
|
|
369
|
-
}): Promise<FreestyleDevServer>;
|
|
370
|
-
fetch(path: string, init?: RequestInit): Promise<Response>;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, DevServerConfiguration, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GetGithubSyncResponse, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetContentsResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleInsertDomainMappingResponse, HandleListDomainMappingsResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess, SetDefaultBranchRequest };
|